/*! destyle.css v4.0.1 | MIT License | https://github.com/nicolas-cusan/destyle.css */

/* ボックスモデルをリセットし、ボーダーを設定 */
/* ============================================ */

*,
::before,
::after {
  box-sizing: border-box;
  border-style: solid;
  border-width: 0;
  min-width: 0;
}

/* ドキュメント */
/* ============================================ */

/**
 * 1. すべてのブラウザで行間を修正。
 * 2. iOSでの向き変更後のフォントサイズ調整を防止。
 * 3. iOSのリンクのグレーオーバーレイを削除。
 */

html {
  line-height: 1.15; /* 1 */
  -webkit-text-size-adjust: 100%; /* 2 */
  -webkit-tap-highlight-color: transparent; /* 3*/
}

/* セクション */
/* ============================================ */

/**
 * すべてのブラウザでマージンを削除。
 */

body {
  margin: 0;
}

/**
 * IEで`main`要素を一貫して表示。
 */

main {
  display: block;
}

/* 垂直リズム */
/* ============================================ */

p,
table,
blockquote,
address,
pre,
iframe,
form,
figure,
dl {
  margin: 0;
}

/* 見出し */
/* ============================================ */

h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: inherit;
  font-weight: inherit;
  margin: 0;
}

/* リスト（列挙） */
/* ============================================ */

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* リスト（定義） */
/* ============================================ */

dt {
  font-weight: bold;
}

dd {
  margin-left: 0;
}

/* グループ化されたコンテンツ */
/* ============================================ */

/**
 * 1. Firefoxで正しいボックスサイズを追加。
 * 2. EdgeとIEでオーバーフローを表示。
 */

hr {
  box-sizing: content-box; /* 1 */
  height: 0; /* 1 */
  overflow: visible; /* 2 */
  border-top-width: 1px;
  margin: 0;
  clear: both;
  color: inherit;
}

/**
 * 1. すべてのブラウザでフォントサイズの継承とスケーリングを修正。
 * 2. すべてのブラウザで奇妙な`em`フォントサイズを修正。
 */

pre {
  font-family: monospace, monospace; /* 1 */
  font-size: inherit; /* 2 */
}

address {
  font-style: inherit;
}

/* テキストレベルのセマンティクス */
/* ============================================ */

/**
 * IE 10でアクティブリンクのグレー背景を削除。
 */

a {
  background-color: transparent;
  text-decoration: none;
  color: inherit;
}

/**
 * 1. Chrome 57-で下線を削除。
 * 2. Chrome、Edge、IE、Opera、Safariで正しいテキスト装飾を追加。
 */

abbr[title] {
  text-decoration: underline dotted; /* 2 */
}

/**
 * Chrome、Edge、Safariで正しいフォントウェイトを追加。
 */

b,
strong {
  font-weight: bolder;
}

/**
 * 1. すべてのブラウザでフォントサイズの継承とスケーリングを修正。
 * 2. すべてのブラウザで奇妙な`em`フォントサイズを修正。
 */

code,
kbd,
samp {
  font-family: monospace, monospace; /* 1 */
  font-size: inherit; /* 2 */
}

/**
 * すべてのブラウザで正しいフォントサイズを追加。
 */

small {
  font-size: 80%;
}

/**
 * すべてのブラウザで`sub`と`sup`要素が行間に影響を与えないようにする。
 */

sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

/* 置換コンテンツ */
/* ============================================ */

/**
 * 垂直方向の整列の問題を防ぐ。
 */

svg,
img,
embed,
object,
iframe {
  vertical-align: bottom;
}

/* フォーム */
/* ============================================ */

/**
 * フォームフィールドをリセットしてスタイル可能にする。
 * 1. iOSを特に考慮して、システム全体でフォーム要素をスタイル可能にする。
 * 2. 親からのテキスト変換を継承。
 */

button,
input,
optgroup,
select,
textarea {
  -webkit-appearance: none; /* 1 */
  appearance: none;
  vertical-align: middle;
  color: inherit;
  font: inherit;
  background: transparent;
  padding: 0;
  margin: 0;
  border-radius: 0;
  text-align: inherit;
  text-transform: inherit; /* 2 */
}

/**
 * クリック可能な要素のカーソルを修正。
 */

button,
[type="button"],
[type="reset"],
[type="submit"] {
  cursor: pointer;
}

button:disabled,
[type="button"]:disabled,
[type="reset"]:disabled,
[type="submit"]:disabled {
  cursor: default;
}

/**
 * Firefoxのアウトラインを改善し、入力要素とボタンのスタイルを統一。
 */

:-moz-focusring {
  outline: auto;
}

select:disabled {
  opacity: inherit;
}

/**
 * パディングを削除
 */

option {
  padding: 0;
}

/**
 * 見えないようにリセット
 */

fieldset {
  margin: 0;
  padding: 0;
  min-width: 0;
}

legend {
  padding: 0;
}

/**
 * Chrome、Firefox、Operaで正しい垂直方向の整列を追加。
 */

progress {
  vertical-align: baseline;
}

/**
 * IE 10+でデフォルトの垂直スクロールバーを削除。
 */

textarea {
  overflow: auto;
}

/**
 * Chromeでインクリメントとデクリメントボタンのカーソルスタイルを修正。
 */

[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
  height: auto;
}

/**
 * Safariでアウトラインスタイルを修正。
 */

[type="search"] {
  outline-offset: -2px; /* 1 */
}

/**
 * macOSのChromeとSafariで内部パディングを削除。
 */

[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
}

/**
 * 1. iOSとSafariでクリック可能なタイプをスタイルできない問題を修正。
 * 2. フォントの継承を修正。
 */

::-webkit-file-upload-button {
  -webkit-appearance: button; /* 1 */
  font: inherit; /* 2 */
}

/**
 * Firefoxの外観を修正
 */
[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}

/**
 * クリック可能なラベル
 */

label[for] {
  cursor: pointer;
}

/* インタラクティブ */
/* ============================================ */

/*
 * Edge、IE 10+、Firefoxで正しい表示を追加。
 */

details {
  display: block;
}

/*
 * すべてのブラウザで正しい表示を追加。
 */

summary {
  display: list-item;
}

/*
 * 編集可能なコンテンツのアウトラインを削除。
 */

[contenteditable]:focus {
  outline: auto;
}

/* テーブル */
/* ============================================ */

/**
1. ChromeとSafariですべてのテーブルボーダーカラーの継承を修正。
*/

table {
  border-color: inherit; /* 1 */
  border-collapse: collapse;
}

caption {
  text-align: left;
}

td,
th {
  vertical-align: top;
  padding: 0;
}

th {
  text-align: left;
  font-weight: bold;
}
