@charset "UTF-8";

/* ----------------------------------------
   1. Box Sizing
---------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* ----------------------------------------
   2. Reset（Modern Normalize ベース）
---------------------------------------- */
html,
body,
div,
span,
h1, h2, h3, h4, h5, h6,
p, blockquote, pre,
a, abbr, address, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strong, sub, sup, var,
b, i, u,
dl, dt, dd,
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,
main, menu, nav, output, ruby, section, summary,
time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}

/* ----------------------------------------
   3. セマンティック要素のブロック化
---------------------------------------- */
article, aside, details, figcaption, figure,
footer, header, hgroup, main, menu, nav, section, summary {
    display: block;
}

/* ----------------------------------------
   4. HTML / Body
---------------------------------------- */
html {
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-behavior: smooth;
    hanging-punctuation: first last;
}

body {
    font-size: 15px;
    line-height: 1.8;
    overflow-x: hidden;
    width: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* ----------------------------------------
   5. リスト
---------------------------------------- */
ol,
ul {
    list-style: none;
}

/* ----------------------------------------
   6. リンク
---------------------------------------- */
a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    text-decoration: none;
}

/* ----------------------------------------
   7. 画像・メディア
---------------------------------------- */
img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
    height: auto;
}

img {
    vertical-align: middle;
    font-style: italic;
    background-repeat: no-repeat;
    background-size: cover;
}

/* ----------------------------------------
   8. フォーム要素
---------------------------------------- */
button,
input,
select,
textarea {
    font: inherit;
    margin: 0;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    padding: 0;
    appearance: none;
    -webkit-appearance: none;
}

input,
textarea {
    border: none;
    outline: none;
    background: none;
    appearance: none;
    -webkit-appearance: none;
}

select {
    appearance: none;
    -webkit-appearance: none;
}

textarea {
    resize: vertical;
}

fieldset {
    border: none;
    padding: 0;
    margin: 0;
}

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

/* ----------------------------------------
   10. 引用
---------------------------------------- */
blockquote,
q {
    quotes: none;
}

blockquote::before,
blockquote::after,
q::before,
q::after {
    content: '';
    content: none;
}

/* ----------------------------------------
   11. アクセシビリティ（フォーカス）
---------------------------------------- */
:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}

/* マウス操作時はフォーカスリングを非表示 */
:focus:not(:focus-visible) {
    outline: none;
}

/* ----------------------------------------
   12. テキスト選択色
---------------------------------------- */
::selection {
    background: #000;
    color: #fff;
}

/* ----------------------------------------
   14. その他
---------------------------------------- */
abbr[title] {
    text-decoration: underline dotted;
    cursor: help;
}

strong,
b {
    font-weight: 700;
}

em,
i {
    font-style: italic;
}

small {
    font-size: 80%;
}

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

sub {
    bottom: -0.25em;
}

sup {
    top: -0.5em;
}

hr {
    border: none;
    border-top: 1px solid currentColor;
    margin: 0;
    height: 0;
    overflow: visible;
}

/* 非表示ユーティリティ（スクリーンリーダー向け） */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* 動き抑制設定への対応 */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
