/* ==========================================================================
   Modern CSS Reset (2026 Standard)
   ========================================================================== */

/* 1. box-sizingを全要素に適用（余白計算の破綻を防ぐ） */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* 2. デフォルトのマージンをリセット */
* {
    margin: 0;
    padding: 0;
}

/* 3. HTMLとBodyの基本挙動 */
html {
    /* スマホでの文字サイズ自動拡大を防止 */
    -webkit-text-size-adjust: 100%;
    /* ページ内リンクのスムーズスクロール（アクセシビリティ配慮は下部） */
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    /* 日本語環境で最も美しく可読性の高いシステムフォントスタック */
    font-family:
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif,
        "Apple Color Emoji",
        "Segoe UI Emoji";
    line-height: 1.6;
    text-rendering: optimizeSpeed;
    -webkit-font-smoothing: antialiased;
}

/* 4. 画像・メディア要素のレスポンシブ崩れ・はみ出しを防ぐ */
img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
    height: auto;
}

/* 5. フォーム要素のフォント継承と操作性 */
input,
button,
textarea,
select {
    font: inherit;
    color: inherit;
}

/* 6. ボタンのカーソル設定 */
button {
    cursor: pointer;
}

/* 7. テキストエリアのリサイズ制限（横方向の突き抜け防止） */
textarea {
    resize: vertical;
}

/* 8. 見出しやテキストの折り返し最適化（日本語の改行崩れを防ぐ） */
p,
h1,
h2,
h3,
h4,
h5,
h6 {
    overflow-wrap: break-word;
}

/* 9. リストの装飾リセット（classがあるリストのみ装飾を外す設定） */
ul[class],
ol[class] {
    list-style: none;
}

/* 10. テーブルのボーダー統合 */
table {
    border-collapse: collapse;
    border-spacing: 0;
}

/* 11. リンク要素のリセット */
body a {
    text-decoration: none;
}

html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}
HTML5 display-role reset for older browsers article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section,
ol,
ul {
    list-style: none;
}
blockquote,
q {
    quotes: none;
}
blockquote:before,
blockquote:after,
q:before,
q:after {
    content: "";
    content: none;
}
table {
    border-collapse: collapse;
    border-spacing: 0;
}
