/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */
/* カスタマイズ版: iOS Safari対応を含むリセットCSS */

/* Document
   ========================================================================== */

/**
 * 1. すべてのブラウザで行の高さを修正。
 * 2. iOS・Safari でフォントサイズが変更されるのを防止。
 */

html {
    line-height: 1.15;
    /* 1 */
    -webkit-text-size-adjust: 100%;
    /* 2 */
}

/* Sections
   ========================================================================== */

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

body {
    margin: 0;
}

/**
 * Chrome、Firefox、Safari で一貫したレンダリング。
 */

main {
    display: block;
}

/**
 * `section` および `article` 内の `h1` のフォントサイズとマージンを修正。
 */

h1 {
    font-size: 2em;
    margin: 0.67em 0;
}

/* Grouping content
   ========================================================================== */

/**
 * 1. Firefox で正しいボックスサイズを設定。
 * 2. Edge と IE で overflow を表示。
 */

hr {
    box-sizing: content-box;
    /* 1 */
    height: 0;
    /* 1 */
    overflow: visible;
    /* 2 */
}

/**
 * 1. すべてのブラウザで正しいフォントサイズの継承と拡大・縮小を設定。
 * 2. すべてのブラウザで奇数な `em` フォントサイズを修正。
 */

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

/* Text-level semantics
   ========================================================================== */

/**
 * IE 10 でアクティブなリンクの灰色背景を削除。
 */

a {
    background-color: transparent;
}

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

abbr[title] {
    border-bottom: none;
    /* 1 */
    text-decoration: underline;
    /* 2 */
    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: 1em;
    /* 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;
}

/* Embedded content
   ========================================================================== */

/**
 * IE 10 で `a` 要素内の画像のボーダーを削除。
 */

img {
    border-style: none;
}

/* Forms
   ========================================================================== */

/**
 * 1. すべてのブラウザでフォントスタイルを変更。
 * 2. Firefox と Safari でマージンを削除。
 */

button,
input,
optgroup,
select,
textarea {
    font-family: inherit;
    /* 1 */
    font-size: 100%;
    /* 1 */
    line-height: 1.15;
    /* 1 */
    margin: 0;
    /* 2 */
}

/**
 * IE で overflow を表示。
 * Edge で overflow を表示。
 */

button,
input {
    overflow: visible;
}

/**
 * Edge、Firefox、IE でテキスト変換の継承を削除。
 * Firefox でテキスト変換の継承を削除。
 */

button,
select {
    text-transform: none;
}

/**
 * iOS と Safari で -webkit-appearance をクリック可能な型に修正。
 */

button,
[type="button"],
[type="reset"],
[type="submit"] {
    -webkit-appearance: button;
}

/**
 * Firefox で内側のボーダーとパディングを削除。
 */

button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
    border-style: none;
    padding: 0;
}

/**
 * 前のルールで設定解除されたフォーカススタイルを復元。
 */

button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
    outline: 1px dotted ButtonText;
}

/**
 * Firefox でパディングを修正。
 */

fieldset {
    padding: 0.35em 0.75em 0.625em;
}

/**
 * 1. Edge と IE でテキストの折り返しを修正。
 * 2. Edge と IE で `fieldset` 要素からの色の継承を修正。
 * 3. すべてのブラウザでパディングを削除して、開発者が fieldset 要素をゼロにしたときにキャッチされないようにする。
 */

legend {
    box-sizing: border-box;
    /* 1 */
    color: inherit;
    /* 2 */
    display: table;
    /* 1 */
    max-width: 100%;
    /* 1 */
    padding: 0;
    /* 3 */
    white-space: normal;
    /* 1 */
}

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

progress {
    vertical-align: baseline;
}

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

textarea {
    overflow: auto;
}

/**
 * 1. IE 10 で正しいボックスサイズを追加。
 * 2. IE 10 でパディングを削除。
 */

[type="checkbox"],
[type="radio"] {
    box-sizing: border-box;
    /* 1 */
    padding: 0;
    /* 2 */
}

/**
 * Chrome で増減ボタンのカーソルスタイルを修正。
 */

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

/**
 * 1. Chrome と Safari で奇妙な外観を修正。
 * 2. Safari でアウトラインスタイルを修正。
 */

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

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

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

/**
 * 1. iOS と Safari で -webkit-appearance をクリック可能な型に修正。
 * 2. Safari でフォントプロパティを `inherit` に変更。
 */

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

/* Interactive
   ========================================================================== */

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

details {
    display: block;
}

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

summary {
    display: list-item;
}

/* Misc
   ========================================================================== */

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

template {
    display: none;
}

/**
 * IE 10 で正しい表示を追加。
 */

[hidden] {
    display: none;
}

/* カスタム追加: iOS Safari 対応
   ========================================================================== */

/**
 * iOS Safari のタップハイライトを無効化
 */
* {
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

/**
 * iOS Safari のテキストサイズ調整を防止
 */
html {
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

/**
 * スムーズスクロール
 */
html {
    scroll-behavior: smooth;
}

/**
 * ボックスサイズをborder-boxに統一
 */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/**
 * iOS Safari のフォーム要素のデフォルトスタイルをリセット
 */
input,
textarea,
select,
button {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border-radius: 0;
}
