*,
*::before,
*::after {
    box-sizing: border-box;
}

/* マージン、パディングのリセット */
* {
    margin: 0;
    padding: 0;
}

/* HTML要素の基本設定 */
html {
    -webkit-text-size-adjust: 100%; /* iOS でのフォントサイズ調整を防ぐ */
    -moz-tab-size: 4; /* Firefoxでのタブサイズ */
    tab-size: 4;
}

/* body要素の基本設定 */
body {
    line-height: 1.5;
    -webkit-font-smoothing: antialiased; /* フォントのスムージング設定 */
    -moz-osx-font-smoothing: grayscale;
}

/* 見出し要素のフォントウェイトをリセット */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-size: inherit;
    font-weight: inherit;
}

/* リストスタイルのリセット */
ul,
ol {
    list-style: none;
}

/* リンクの下線とデフォルトカラーのリセット */
a {
    color: inherit;
    text-decoration: none;
}

/* 画像とメディア要素 */
img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%; /* 画像のmax-width: 100%設定 */
}

/* フォーム要素のフォント継承 */
input,
button,
textarea,
select {
    font: inherit;
}

/* テキストオーバーフローの処理 */
p,
h1,
h2,
h3,
h4,
h5,
h6 {
    overflow-wrap: break-word;
}

/* ボタンのデフォルトスタイルをリセット */
button {
    background-color: transparent;
    border: none;
    cursor: pointer;
}

/* テーブル要素 */
table {
    border-collapse: collapse;
    border-spacing: 0;
}

/* フォーカス時のアウトラインを削除（アクセシビリティのため、代替スタイルを後で追加） */
button:focus,
a:focus {
    outline: none;
}
