/* ============================================================
   アカホン — デザインシステム
   コンセプト: 警告テープ×黒×赤を上質に。「工業仕様書」の格好良さ。
   構成: 1.トークン 2.ベース 3.ヘッダー 4.ヒーロー 5.一覧 6.カード
        7.記事 8.シェア 9.404 10.フッター 11.モーション 12.レスポンシブ
   ============================================================ */

/* ---- 1. トークン ------------------------------------------------ */
:root {
    --bg: #0b0c0f;
    --surface: #121419;
    --raised: #191c22;
    --line: rgba(240, 237, 230, .09);
    --ink: #f0ede6;
    --ink-body: #cfccc6;
    --muted: #9aa0aa;
    --red: #e6002d;
    --red-bright: #ff2d4f;
    --red-deep: #8f001c;
    --yellow: #ffd21e;

    --font-jp: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Meiryo", sans-serif;
    --font-disp: "Oswald", "Zen Kaku Gothic New", sans-serif;

    --r-s: 8px;
    --r-l: 14px;
    --shadow-1: 0 2px 10px rgba(0, 0, 0, .35);
    --shadow-2: 0 18px 44px -14px rgba(0, 0, 0, .65);
    --ease: cubic-bezier(.2, .7, .3, 1);

    /* 黄黒ストライプ(横周期 24px/cos45° ≒ 33.94px) */
    --stripes: repeating-linear-gradient(-45deg, var(--yellow) 0 12px, #14161a 12px 24px);
}

/* ---- 2. ベース -------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-jp);
    font-size: 16px;
    line-height: 1.8;
    letter-spacing: .02em;
    color: var(--ink);
    background: var(--bg);
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}

main { flex: 1; width: 100%; }

h1, h2, h3, p, figure, dl, dt, dd, ol, ul { margin: 0; padding: 0; }

a { color: inherit; text-decoration: none; transition: color .2s ease, opacity .2s ease; }

img { max-width: 100%; display: block; }

button { font-family: inherit; }

::selection { background: var(--red); color: #fff; }

:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; border-radius: 2px; }

.container { max-width: 1180px; margin-inline: auto; padding-inline: clamp(18px, 4vw, 32px); }

.icon { width: 1em; height: 1em; fill: currentColor; flex: none; }

.accent {
    color: var(--red-bright);
    background: repeating-linear-gradient(-45deg, var(--yellow) 0 7px, var(--red-deep) 7px 14px) left bottom / 100% .16em no-repeat;
    padding-bottom: .12em;
}

.skip-link {
    position: fixed; top: -60px; left: 16px; z-index: 100;
    background: var(--yellow); color: #111; font-weight: 700; font-size: .85rem;
    padding: 10px 18px; border-radius: var(--r-s);
    transition: top .2s ease;
}
.skip-link:focus { top: 12px; }

/* 警告テープ帯。.flow でゆっくり流れる */
.tape-strip {
    height: 6px;
    background: var(--stripes);
}
.tape-strip.flow { animation: tape-slide 26s linear infinite; }
@keyframes tape-slide { to { background-position: 33.94px 0; } }

/* ---- 3. ヘッダー ------------------------------------------------ */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(11, 12, 15, .84);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 28px; padding-block: 13px; }

.logo { display: flex; align-items: center; gap: 12px; }
.logo-mark {
    display: grid; place-items: center;
    width: 40px; height: 40px; flex: none;
    background: var(--red); color: #fff;
    font-size: 1.3rem; font-weight: 900;
    border-radius: 9px;
    transform: rotate(-4deg);
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .25), 0 6px 14px -6px rgba(230, 0, 45, .6);
}
.logo-text { font-size: 1.3rem; font-weight: 900; line-height: 1.1; letter-spacing: .04em; }
.logo-text small {
    display: block;
    font-family: var(--font-disp); font-weight: 500;
    font-size: .8125rem; letter-spacing: .32em;
    color: var(--muted); margin-top: 2px;
}

.search-form {
    margin-left: auto; position: relative;
    display: flex; align-items: center;
}
.search-form .icon {
    position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
    color: var(--muted); pointer-events: none;
}
.search-form input {
    width: 250px; height: 40px;
    background: var(--raised); color: var(--ink);
    border: 1px solid var(--line); border-radius: 999px;
    padding: 0 96px 0 38px;
    font-family: inherit; font-size: .84rem;
    transition: border-color .25s ease, width .3s var(--ease);
}
.search-form input:focus { border-color: rgba(255, 210, 30, .5); outline: none; width: 290px; }
.search-form input::placeholder { color: var(--muted); }
.search-form button {
    position: absolute; right: 4px; top: 4px; bottom: 4px;
    background: var(--red); color: #fff;
    border: 0; border-radius: 999px;
    font-size: .8125rem; font-weight: 700; letter-spacing: .08em;
    padding-inline: 15px; cursor: pointer;
    transition: background .2s ease;
}
.search-form button:hover { background: var(--red-bright); }

/* ---- 4. ヒーロー ------------------------------------------------ */
.hero { text-align: center; padding: clamp(64px, 10vw, 110px) 0 clamp(48px, 7vw, 72px); }

.hero-warning {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: var(--font-disp); font-weight: 600;
    font-size: .8125rem; letter-spacing: .18em; text-transform: uppercase;
    color: var(--red-bright);
}
.hero-warning .icon { width: 17px; height: 17px; }

.hero-title {
    margin-top: 22px;
    font-size: clamp(2.1rem, 5.6vw, 3.9rem);
    font-weight: 900; line-height: 1.22; letter-spacing: -.01em;
}
.hero-sub { margin: 26px auto 0; max-width: 44em; color: var(--muted); font-size: .95rem; }

.hero-stats {
    margin: 52px auto 0; max-width: 720px;
    display: grid; grid-template-columns: repeat(3, 1fr);
    border-block: 1px solid var(--line);
}
.hero-stats > div { padding: 20px 12px; }
.hero-stats > div + div { border-left: 1px solid var(--line); }
.hero-stats dt { font-size: .8125rem; color: var(--muted); letter-spacing: .12em; }
.hero-stats dd {
    margin-top: 6px;
    font-family: var(--font-disp); font-weight: 600;
    font-size: 1.55rem; line-height: 1.2; letter-spacing: .02em;
}
.hero-stats dd small { font-size: .8125rem; font-family: var(--font-jp); font-weight: 700; color: var(--muted); margin-left: 5px; }
.hero-stats .stat-date { font-size: 1.05rem; padding-top: .5rem; }

/* ---- 5. 一覧共通 ------------------------------------------------ */
.breadcrumb {
    display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
    padding-top: 26px;
    font-size: .8125rem; color: var(--muted);
}
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb span[aria-hidden] { color: var(--red); font-weight: 700; }

.list-head { padding: 44px 0 10px; }

.kicker {
    font-family: var(--font-disp); font-weight: 600;
    font-size: .8125rem; letter-spacing: .18em; text-transform: uppercase;
    color: var(--kick-color, var(--red-bright));
}
.page-title { margin-top: 10px; font-size: clamp(1.5rem, 3.4vw, 2.1rem); font-weight: 900; line-height: 1.3; }
.page-title small { display: block; font-size: .82rem; font-weight: 500; color: var(--muted); margin-top: 8px; letter-spacing: .04em; }
.list-count { margin-top: 12px; font-size: .85rem; color: var(--muted); }
.list-count strong { color: var(--yellow); font-weight: 700; }

.cat-nav { display: flex; flex-wrap: wrap; gap: 12px; align-items: baseline; padding: 64px 0 72px; }
.cat-nav-title {
    width: 100%;
    font-family: var(--font-disp); font-weight: 600;
    font-size: .8125rem; letter-spacing: .3em; text-transform: uppercase;
    color: var(--muted); margin-bottom: 6px;
}

/* カテゴリチップ(--cat-color を要素に注入) */
.cat-chip {
    position: relative; isolation: isolate;
    display: inline-block;
    color: var(--cat-color, var(--muted));
    font-size: .8125rem; font-weight: 700; letter-spacing: .06em;
    padding: 3px 11px; border-radius: 999px;
}
.cat-chip::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: currentColor; opacity: .13; border-radius: inherit;
    transition: opacity .25s ease;
}
.cat-chip-lg {
    font-size: .88rem; padding: 10px 24px; font-weight: 500;
    border: 1px solid var(--line);
    transition: transform .25s var(--ease);
}
.cat-chip-lg:hover { transform: translateY(-2px); }
.cat-chip-lg:hover::before { opacity: .22; }

.empty-state {
    text-align: center; padding: 96px 20px; color: var(--muted);
    border: 1px dashed var(--line); border-radius: var(--r-l);
    margin: 40px 0 72px; font-size: .92rem; line-height: 2;
}
.empty-state .icon { width: 52px; height: 52px; margin-bottom: 18px; color: #3a3e47; }

/* ---- 6. カード -------------------------------------------------- */
.card-grid {
    display: grid; gap: 26px;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    padding: 28px 0 24px;
}

.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-l);
    overflow: hidden;
    transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s ease;
}
.card:hover {
    transform: translateY(-6px);
    border-color: rgba(240, 237, 230, .18);
    box-shadow: var(--shadow-2);
}
.card-link { display: flex; flex-direction: column; height: 100%; }

.card-thumb { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-bottom: 1px solid var(--line); }
.card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.card:hover .card-thumb img { transform: scale(1.05); }

.thumb-tape {
    position: absolute; top: 16px; left: -6px;
    transform: rotate(-3deg);
    background: var(--yellow); color: #141414;
    font-size: .8125rem; font-weight: 900; letter-spacing: .1em;
    padding: 4px 16px 4px 14px;
    border: 1px dashed rgba(0, 0, 0, .38);
    clip-path: polygon(0 0, 100% 0, calc(100% - 9px) 50%, 100% 100%, 0 100%);
    box-shadow: 0 6px 14px -6px rgba(0, 0, 0, .55);
}

.card-body { display: flex; flex-direction: column; gap: 10px; flex: 1; padding: 20px 22px 22px; }
.card-meta {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    font-size: .8125rem; color: var(--muted);
}
.card-meta time { font-variant-numeric: tabular-nums; letter-spacing: .04em; }

.card-title {
    font-size: 1.04rem; font-weight: 700; line-height: 1.55; letter-spacing: .01em;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
    transition: color .25s ease;
}
.card:hover .card-title { color: var(--red-bright); }

.card-excerpt {
    color: var(--muted); font-size: .83rem; line-height: 1.8;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card .gauge { margin-top: auto; padding-top: 6px; }

/* ヤバさ度ゲージ */
.gauge { display: inline-flex; align-items: center; gap: 9px; }
.gauge-head {
    font-family: var(--font-disp); font-weight: 500;
    font-size: .8125rem; letter-spacing: .22em; text-transform: uppercase;
    color: var(--muted);
}
.gauge-bar { display: inline-flex; gap: 3px; }
.seg {
    width: 13px; height: 7px;
    background: #262a32; border-radius: 2px;
    transform: skewX(-14deg);
}
.seg.on { background: var(--seg); box-shadow: 0 0 7px -2px var(--seg); }
.glv1, .glv2 { --seg: var(--yellow); }
.glv3 { --seg: #ff8c00; }
.glv4 { --seg: #ff4040; }
.glv5 { --seg: var(--red-bright); }
.gauge-num { font-family: var(--font-disp); font-weight: 600; font-size: .9rem; line-height: 1; color: var(--ink); }
.gauge-num small { font-size: .8125rem; color: var(--muted); font-weight: 500; }
.glv5 .gauge-num { color: var(--red-bright); }

.gauge-lg { gap: 13px; }
.gauge-lg .gauge-head { font-size: .8125rem; }
.gauge-lg .seg { width: 21px; height: 10px; border-radius: 3px; }
.gauge-lg .gauge-num { font-size: 1.35rem; }

/* ---- 7. 記事 ---------------------------------------------------- */
.article-layout {
    display: grid; grid-template-columns: minmax(0, 1fr) 296px;
    gap: 56px; align-items: start;
    padding: 12px 0 88px;
}

.article { max-width: 780px; }

.article-header { margin-bottom: 40px; }
.article-header .card-meta { justify-content: flex-start; gap: 16px; margin-bottom: 18px; font-size: .8125rem; }
.article-title {
    font-size: clamp(1.65rem, 3.6vw, 2.45rem);
    font-weight: 900; line-height: 1.38; letter-spacing: -.01em;
}
.article-header .gauge { margin-top: 20px; }
.article-figure { margin-top: 30px; border: 1px solid var(--line); border-radius: var(--r-l); overflow: hidden; }
.article-figure img { width: 100%; height: auto; }

.toc-rail { position: sticky; top: 88px; }

.toc {
    background: var(--surface);
    border: 1px solid var(--line); border-radius: var(--r-l);
    padding: 20px 20px 14px;
    font-size: .82rem; line-height: 1.6;
}
.toc-title { padding-bottom: 12px; margin-bottom: 8px; border-bottom: 1px solid var(--line); font-weight: 900; }
.toc-title span {
    display: block;
    font-family: var(--font-disp); font-weight: 600;
    font-size: .8125rem; letter-spacing: .28em; text-transform: uppercase;
    color: var(--red-bright); margin-bottom: 3px;
}
.toc li a {
    display: block; padding: 6px 10px;
    color: var(--muted); border-left: 2px solid transparent; border-radius: 4px;
    transition: color .2s ease, border-color .2s ease, background .2s ease;
}
.toc li a:hover { color: var(--ink); background: rgba(240, 237, 230, .04); }
.toc li a.active { color: var(--red-bright); border-left-color: var(--red); background: rgba(230, 0, 45, .07); }
.toc-level3 a { padding-left: 26px; }

/* 本文タイポグラフィ */
.article-body {
    font-size: .97rem; line-height: 2.0; letter-spacing: .02em;
    color: var(--ink-body);
    counter-reset: h2c;
}
.article-body > * + * { margin-top: 1.6em; }

.article-body a { color: var(--red-bright); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.article-body a:hover { color: var(--yellow); }

.article-body h2 {
    margin-top: 2.6em; padding-bottom: 14px;
    font-size: 1.42rem; font-weight: 900; line-height: 1.45; letter-spacing: .01em;
    color: var(--ink);
    border-bottom: 1px solid var(--line);
    position: relative;
}
.article-body h2::before {
    content: counter(h2c, decimal-leading-zero);
    counter-increment: h2c;
    display: inline-block; margin-right: .7em;
    font-family: var(--font-disp); font-weight: 600; font-size: .95rem;
    color: var(--red-bright); letter-spacing: .08em;
    transform: translateY(-2px);
}
.article-body h2::after {
    content: ""; position: absolute; left: 0; bottom: -3px;
    width: 72px; height: 6px;
    background: repeating-linear-gradient(-45deg, var(--yellow) 0 8px, var(--red) 8px 16px);
}
.article-body h3 {
    margin-top: 2.2em;
    font-size: 1.13rem; font-weight: 700; color: var(--ink);
}

.article-body ul, .article-body ol { padding-left: 1.5em; }
.article-body ul { list-style: disc; }
.article-body ol { list-style: decimal; }
.article-body li { margin-block: .5em; padding-left: .2em; }
.article-body li::marker { color: var(--red-bright); }

.article-body strong { color: var(--ink); font-weight: 700; }
.article-body em { font-style: normal; color: var(--yellow); }

.article-body blockquote {
    margin-block: 2em; padding: 16px 22px;
    border: 1px solid var(--line);
    background: rgba(240, 237, 230, .03);
    color: var(--muted); font-size: .92em;
}

.article-body img { border-radius: var(--r-s); }
.article-body figure { margin-block: 2em; }
.article-body figure img { border: 1px solid var(--line); }

.lead {
    font-size: 1rem; font-weight: 500; line-height: 2.1;
    color: var(--ink);
}

.alert {
    padding: 20px 24px; margin-block: 2em;
    font-size: .93rem;
    border: 1px solid rgba(255, 210, 30, .35);
    border-radius: var(--r-s);
    background: rgba(255, 210, 30, .06);
}
.alert-danger {
    border-color: rgba(230, 0, 45, .45);
    background: rgba(230, 0, 45, .08);
}

/* チェックリスト(本文内) */
.article-body .checklist { list-style: none; padding: 0; margin-block: 2em; }
.article-body .checklist li {
    position: relative; padding: 14px 0 14px 34px;
    border-bottom: 1px dashed var(--line);
    margin: 0;
}
.article-body .checklist li::before {
    content: ""; position: absolute; left: 2px; top: 19px;
    width: 17px; height: 17px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="%23e6002d" d="M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-6h2v6z"/></svg>') no-repeat center / contain;
}
.check-ng {
    display: inline-block; vertical-align: 2px;
    margin: 0 8px 0 6px; padding: 1px 8px;
    background: var(--red); color: #fff;
    font-family: var(--font-disp); font-size: .8125rem; font-weight: 600;
    letter-spacing: .12em; border-radius: 4px;
}
.check-note { display: block; margin-top: 4px; color: var(--muted); font-size: .88em; }

.article-body table { width: 100%; border-collapse: collapse; margin-block: 2em; font-size: .88rem; line-height: 1.7; }
.article-body th {
    background: var(--raised); color: var(--ink);
    font-weight: 700; text-align: left; white-space: nowrap;
}
.article-body th, .article-body td { border: 1px solid var(--line); padding: 10px 14px; vertical-align: top; }
.article-body tbody tr:nth-child(even) td { background: rgba(240, 237, 230, .025); }

/* シェア */
.share {
    margin-top: 60px; padding: 26px 28px;
    background: var(--surface);
    border: 1px solid var(--line); border-radius: var(--r-l);
}
.share-title { display: flex; align-items: center; gap: 9px; font-weight: 900; font-size: .95rem; }
.share-title .icon { color: var(--red-bright); }
.share-buttons { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.share-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 9px 18px;
    background: transparent; color: var(--ink);
    border: 1px solid var(--line); border-radius: 999px;
    font-size: .8125rem; font-weight: 700; letter-spacing: .02em;
    cursor: pointer;
    transition: transform .25s var(--ease), border-color .25s ease, background .25s ease, color .25s ease, box-shadow .25s ease;
}
.share-btn:hover { transform: translateY(-2px); }
.share-btn .icon { width: 15px; height: 15px; }
.share-x:hover { background: #fff; border-color: #fff; color: #111; }
.share-line:hover { background: #06c755; border-color: #06c755; color: #fff; }
.share-hatebu:hover { background: #00a4de; border-color: #00a4de; color: #fff; }
.share-fb:hover { background: #1877f2; border-color: #1877f2; color: #fff; }
.share-copy:hover { border-color: var(--yellow); color: var(--yellow); }
.hb-b, .hb-f {
    display: inline-grid; place-items: center;
    min-width: 18px; height: 18px; padding-inline: 2px;
    font-family: var(--font-disp); font-size: .8125rem; font-weight: 700; line-height: 1;
    border: 1.5px solid currentColor; border-radius: 4px;
}

.section-title {
    display: flex; align-items: center; gap: 13px;
    margin: 72px 0 6px;
    font-size: 1.28rem; font-weight: 900;
}
.section-title::before {
    content: ""; width: 26px; height: 11px; flex: none;
    background: repeating-linear-gradient(-45deg, var(--yellow) 0 7px, var(--red) 7px 14px);
    transform: skewX(-14deg);
}

/* 固定ページ(About等) */
.page-wrap { padding-bottom: 72px; }
.page-body { max-width: 720px; margin-top: 8px; }

/* 広告スロット(AdSense設定時のみHTMLが出力される) */
.ad-slot { margin-block: 2.4em; min-height: 1px; }
.ad-sidebar { margin-top: 18px; }

/* ---- 9. 404 ----------------------------------------------------- */
.not-found { text-align: center; padding: 56px 0 110px; }
.nf-code {
    font-family: var(--font-disp); font-weight: 700;
    font-size: clamp(6rem, 19vw, 11.5rem); line-height: 1;
    color: var(--yellow);
}
.nf-title { margin-top: 26px; font-size: clamp(1.15rem, 2.6vw, 1.5rem); font-weight: 900; }
.nf-text { margin-top: 16px; color: var(--muted); font-size: .9rem; line-height: 2; }
.nf-actions { margin-top: 36px; }

.btn {
    display: inline-flex; align-items: center; gap: 9px;
    background: var(--red); color: #fff;
    font-size: .88rem; font-weight: 700; letter-spacing: .06em;
    padding: 14px 34px; border-radius: 999px;
    transition: transform .25s var(--ease), background .25s ease, box-shadow .25s ease;
}
.btn:hover {
    background: var(--red-bright);
    transform: translateY(-2px);
    box-shadow: 0 12px 26px -10px rgba(230, 0, 45, .55);
}

/* ---- 10. フッター ----------------------------------------------- */
.site-footer { background: #08090b; border-top: 1px solid var(--line); }
.footer-inner { padding: 44px 0 40px; }
.footer-logo { display: flex; align-items: center; gap: 10px; font-size: 1.05rem; font-weight: 900; }
.footer-logo .logo-mark { width: 30px; height: 30px; font-size: .95rem; border-radius: 7px; }
.footer-note { margin-top: 14px; color: var(--muted); font-size: .8125rem; line-height: 2; }
.footer-nav { display: flex; gap: 10px; margin-top: 18px; font-size: .8125rem; color: var(--muted); }
.footer-nav span[aria-hidden] { color: #33363d; }
.footer-nav a:hover { color: var(--ink); }
.footer-copy { margin-top: 22px; color: #565b64; font-size: .8125rem; letter-spacing: .06em; }

/* ---- 11. モーション --------------------------------------------- */
/* JS有効 & モーション許可時のみ、スクロールでふわっと表示 */
@media (prefers-reduced-motion: no-preference) {
    .js [data-reveal] { opacity: 0; transform: translateY(16px); }
    .js [data-reveal].in {
        opacity: 1; transform: none;
        transition: opacity .6s ease, transform .6s var(--ease);
    }
    .card-grid [data-reveal]:nth-child(3n+2) { transition-delay: .08s; }
    .card-grid [data-reveal]:nth-child(3n+3) { transition-delay: .16s; }
}
@media (prefers-reduced-motion: reduce) {
    .tape-strip.flow { animation: none; }
    html { scroll-behavior: auto; }
}

/* ---- 12. レスポンシブ ------------------------------------------- */
@media (max-width: 1100px) {
    .article-layout { grid-template-columns: 1fr; gap: 36px; }
    /* 縦積みでは「見出し→目次→本文」の順に並べる(display:contentsで子をグリッドアイテム化) */
    .article { display: contents; }
    .toc-rail { position: static; order: 1; }
    .article-header { order: 0; }
    .article-body, .share, .related { order: 2; }
    .share { margin-top: 0; }
    .related { margin-top: 16px; }
}

@media (max-width: 900px) {
    .header-inner { gap: 16px; }
    .logo-text { font-size: 1.12rem; }
    .logo-text small { display: none; }
    .search-form input { width: 170px; padding-right: 76px; }
    .search-form input:focus { width: 200px; }
}

@media (max-width: 640px) {
    .header-inner { flex-wrap: wrap; padding-block: 11px; row-gap: 10px; }
    .search-form { margin-left: 0; width: 100%; order: 3; }
    .search-form input,
    .search-form input:focus { width: 100%; padding-right: 76px; }
    .logo-mark { width: 34px; height: 34px; font-size: 1.1rem; }
    .hero-warning { letter-spacing: .2em; }

    .hero-stats { grid-template-columns: 1fr; border-block: 0; }
    .hero-stats > div { border-block: 1px solid var(--line); padding: 14px 12px; }
    .hero-stats > div + div { border-left: 0; }

    .article-body { font-size: .93rem; }
    .article-body table { display: block; overflow-x: auto; white-space: nowrap; }
    .share { padding: 20px 18px; }
    .card-grid { grid-template-columns: 1fr; }
}
