/*
 * reset.css
 * ブラウザのデフォルトスタイルをゼロにリセットする。
 * 全CSSの中で最初に読み込む土台ファイル。
 * ここを変更することはほぼない。
 */

/* ボックスモデルの統一 */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* マージン・パディングの除去 */
* {
    margin: 0;
    padding: 0;
}

/* HTMLの基本設定 */
html {
    font-size: 16px;
    line-height: 1;
    -webkit-text-size-adjust: 100%; /* iOSでフォントサイズが勝手に変わるのを防ぐ */
    scroll-behavior: smooth;
}

/* 最低限の高さを確保 */
body {
    min-height: 100vh;
}

/* 画像・動画をブロック要素化し、はみ出し防止 */
img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
}

/* フォーム要素のフォントを親から継承させる（ブラウザ既定では継承されない） */
input,
button,
textarea,
select {
    font: inherit;
}

/* 長い単語の折り返し */
p,
h1,
h2,
h3,
h4,
h5,
h6 {
    overflow-wrap: break-word;
}

/* リンクのデフォルト装飾を除去 */
a {
    color: inherit;
    text-decoration: none;
}

/* リストのデコレーションを除去 */
ul,
ol {
    list-style: none;
}

/* テーブルの隙間を除去 */
table {
    border-collapse: collapse;
}

/* ボタンのデフォルトスタイルを除去 */
button {
    background: none;
    border: none;
    cursor: pointer;
}
