:root {
    --color-night: #071526;
    --color-ocean: #0B3045;
    --color-deep: #04111F;
    --color-sand: #F3DFBF;
    --color-paper: #FFF8EA;
    --color-cream: #F9EEDB;
    --color-sunset: #FF2E92;
    --color-cyan: #2EE3F3;
    --color-violet: #8A2BE2;
    --color-orange: #FFA45B;
    --color-gold: #FFD23F;
    --color-ink: #10202F;
    --color-white: #FFFFFF;
    /* 暗い地の上で読む文字の白。真っ白は暗い地で滲んで眩しいので一段落とす（色の付いた板・ボタンの上は --color-white） */
    --color-mist: #DFE5EA;
    --color-guide: #5FF0A5;
    --color-matome: #FFE26B;
    /* 影トークン: 既定=ダーク値（暗地で見える黒影＋inset白ハイライトは弱める）。
       ライト値は html[data-theme="light"] で再定義（厚紙ハイライト復活）。
       theme: モード追従（コンテンツ領域の立体感の正本） */
    --shadow-ambient: 0 28px 80px rgba(0, 0, 0, 0.55);
    --shadow-card:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 1px 2px rgba(0, 0, 0, 0.4),
        0 12px 24px rgba(0, 0, 0, 0.45),
        0 28px 52px rgba(0, 0, 0, 0.35);
    --shadow-deck: 0 24px 0 -16px rgba(0, 0, 0, 0.45), 0 36px 78px rgba(0, 0, 0, 0.5);
    --radius-xl: 1.875rem;
    --radius-lg: 1.5rem;
    --radius-md: 1.125rem;
    --max-page: 1280px;
    /* 配信者PR枠の閉じるボタン: カウントダウン秒数（将来 customizer で可変化） */
    --cv-close-delay: 5s;
    /* 404の無信号画面に流す砂嵐の SVGノイズ（feTurbulence pre-render dataURI、軽量・ループ可） */
    --crt-noise: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");

    --font-display: "Anton", "Zen Kaku Gothic New", system-ui, sans-serif;
    --font-body: "Zen Kaku Gothic New", "Inter", system-ui, sans-serif;
    --font-en: "Inter", "Zen Kaku Gothic New", system-ui, sans-serif;
    --font-mono: "M PLUS 1 Code", ui-monospace, monospace;
    --font-num: "Anton", "Inter", system-ui, sans-serif;

    /* ===== セマンティックテーマトークン（既定=ダーク） =====
       コンテンツ領域はこのトークンだけを参照する。値を html[data-theme="light"] で差し替え2モード化。
       UIシェル/演出（ヘッダー/ドロワー/検索/トップのヒーロー画面/記事ヘッダー帯/crew-vision）は
       常時ダーク＝モード非追従なので、これらは生色のまま据え置く。 */
    /* サーフェス（地・器・カード・入力） */
    /* 夜空グラデ + 遠景ネオン玉ボケテクスチャ（光には源がある: 遠景の発光を強ブラー+暗化トーン層で深く沈め「空気」化）。
       上=暗化トーン層（テクスチャを沈める半透明の夜空グラデ）→ 下=テクスチャ画像。fixed(body)でスクロール非追従＝高さ非依存 */
    --surface-page:
        linear-gradient(180deg, rgba(11, 29, 51, 0.90) 0%, rgba(7, 21, 38, 0.93) 55%, rgba(4, 17, 31, 0.95) 100%),
        url("../img/bg-neon-bokeh.webp");
    --surface-panel: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.018));
    --surface-card: linear-gradient(160deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.032));
    --surface-input: rgba(255, 255, 255, 0.06);
    --surface-hover: rgba(255, 255, 255, 0.10);
    /* テキスト（用途別） */
    --text-strong: var(--color-mist);
    --text-muted: rgba(232, 241, 248, 0.72);
    --text-faint: rgba(232, 241, 248, 0.5);
    --text-link: var(--color-cyan);
    --text-placeholder: rgba(232, 241, 248, 0.4);
    /* 線・フォーカス */
    --border-hair: rgba(255, 255, 255, 0.09);
    --border-strong: rgba(255, 255, 255, 0.16);
    --focus-ring: var(--color-cyan);
    /* いいね/悪いね（枠+文字色・透明地）: 文字が乗る実地はカード半透明地。
       like=cyanはカード地で9.29でAA余裕。dislikeは生sunset #FF2E92 だとカード地で4.20とAA割れ → 明ピンク #FF5BA8(5.07)へ。ライトは濃色 override */
    --reaction-like: var(--color-cyan);
    --reaction-dislike: #FF5BA8;
    /* カテゴリの文字色（札の分類名・トップの欄の棒と時刻）。ブリップの円は両モードとも生色のまま */
    /* 記事見出しの太さ。暗い地では白く太い線が滲んで眩しいので一段細く、明るい地では最も太く置く */
    --title-weight: 700;
    --cat-ink-official: var(--color-cyan);
    --cat-ink-guide: var(--color-guide);
    --cat-ink-matome: var(--color-matome);
}

/* ===== ライトモード: コンテンツ領域トークンを白パステル値に差し替え =====
   （UIシェル/演出は据え置きのためここでは扱わない＝常時ダーク） */
html[data-theme="light"] {
    /* 紙パステルグラデ + 昼の拡散光テクスチャ（光には源がある昼版: 太陽=拡散光源が紙に柔らかく乗る。紫は不使用）。
       上=白パステルのトーン層（テクスチャを沈める半透明グラデ）→ 下=暖色パステル紙テクスチャ。ダークと対称構造 */
    --surface-page:
        linear-gradient(180deg, rgba(255, 246, 228, 0.40) 0%, rgba(255, 248, 234, 0.44) 40%, rgba(247, 226, 204, 0.48) 100%),
        url("../img/bg-paper-warm.webp");
    --surface-panel: linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 246, 228, 0.6));
    --surface-card: linear-gradient(160deg, #ffffff, #fff6e4);
    --surface-input: var(--color-white);
    --surface-hover: rgba(16, 32, 47, 0.04);
    --text-strong: var(--color-ink);
    --text-muted: rgba(16, 32, 47, 0.66);
    --text-faint: rgba(16, 32, 47, 0.62);
    --text-link: var(--color-ocean);
    --text-placeholder: rgba(16, 32, 47, 0.4);
    --border-hair: rgba(16, 32, 47, 0.08);
    --border-strong: rgba(16, 32, 47, 0.16);
    /* いいね/悪いね: 白地で生のシアン/ピンクは1.57/3.47とAA未達 → 濃色へ（実測4.91/5.87でAA通過） */
    --reaction-like: #0E7C8B;
    --reaction-dislike: #C2185B;
    /* 紙の地では蛍光色の文字が読めないので、同じ色相の濃い色にする */
    --title-weight: 900;
    --cat-ink-official: #006B7A;
    --cat-ink-guide: #0E6E3F;
    --cat-ink-matome: #7A5800;

    /* 影: ライトは厚紙ハイライト＋ネイビー細影を復活 */
    --shadow-ambient: 0 28px 80px rgba(7, 21, 38, 0.16);
    --shadow-card:
        inset 0 1px 0 rgba(255, 255, 255, 0.95),
        inset 0 -1px 0 rgba(7, 21, 38, 0.06),
        0 1px 2px rgba(7, 21, 38, 0.08),
        0 12px 22px rgba(7, 21, 38, 0.1),
        0 28px 52px rgba(7, 21, 38, 0.12);
    --shadow-deck: 0 24px 0 -16px rgba(7, 21, 38, 0.2), 0 36px 78px rgba(7, 21, 38, 0.22);
}

* {
    box-sizing: border-box;
}

/* ページ間遷移をクロスフェード化（クロスドキュメントView Transitions）。
   CSSオプトインのみ＝非対応ブラウザは従来遷移のまま（プログレッシブエンハンスメント）。
   白フラッシュが消え、Hub⇔記事の行き来がアプリの画面切替に近づく */
@view-transition {
    navigation: auto;
}

@media (prefers-reduced-motion: reduce) {
    @view-transition {
        navigation: none;
    }
}

html {
    /* 等比拡縮エンジン スマホ世界: アンカー430で16px (16/430≈3.72vw)。
       下限11px(極小端末の安全弁)、上限30px(~806pxで到達=768帯内は純粋拡縮)。
       全要素remがこのrootに比例し、レイアウトを保ったまま画面幅で等比拡縮する。 */
    font-size: clamp(11px, 3.72vw, 30px);
    scroll-behavior: smooth;
    /* アンカー着地を sticky ヘッダー分だけ下げる（#latest / #expansion 等の全アンカー共通）。
       要素側の scroll-margin はページ初回ロードのフラグメントスクロールで無視される環境があるため、
       コンテナ側の scroll-padding で持つのが確実 */
    scroll-padding-top: 4.5rem;
    /* PCのスクロールバーを地に馴染む半透明へ（Windows既定の明るいバーが世界を切るのを防ぐ）。
       バーはページ地(コンテンツ領域)上を走るためモード追従＝ライトは下のoverride */
    scrollbar-color: rgba(255, 255, 255, 0.22) transparent;
    /* 横はみ出し封じ: オフキャンバスの検索パネル(.site-search)が right:0+translateX(102%) で
       画面右外(正座標)に控えるため横スクロール領域が生まれる。html と body の両方に clip を
       かけて初めて消える(片側だけだと他方がスクロールコンテナとして残る)。clip は hidden と違い
       スクロールコンテナを作らず sticky ヘッダーを壊さない。全モダンブラウザ対応。 */
    overflow-x: clip;
}

html[data-theme="light"] {
    scrollbar-color: rgba(16, 32, 47, 0.28) transparent;
}

/* テキスト選択色: OS既定の青のままだと記事本文の選択で世界が切れる。
   シアン地×濃紺文字（信号色シアン=肯定/操作の延長）。両モード共通＝どちらの地でも成立する組合せ */
::selection {
    background: rgba(46, 227, 243, 0.85);
    color: var(--color-ink);
}

body {
    margin: 0;
    overflow-x: clip; /* html と対で横はみ出しを封じる（理由は html の overflow-x コメント参照） */
    /* sticky footer: 記事が少ない一覧等の短いページでフッターが画面途中で終わり、
       下に地のテクスチャだけが露出する「作りかけ」見えを防ぐ。縦flex+main側flex-growで
       フッターを常にビューポート下端以深へ置く。fixed要素(ドロワー/検索/crew-vision等)は
       flowの外なので無影響。dvhはアドレスバー伸縮に追従（非対応環境はvhフォールバック） */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
    background: var(--surface-page);
    /* グラデ暗化層=要素全体に1枚 / テクスチャ画像=720px四方タイルで縦に繰り返す（均質なので継ぎ目が溶ける）。
       fixedは使わない（スマホのアドレスバー伸縮で背景がカクつくため）。背景はコンテンツと一緒にスクロールする */
    background-repeat: no-repeat, repeat;
    background-size: auto, 720px 720px;
    color: var(--text-strong);
    font-family: "Zen Kaku Gothic New", "M PLUS 1 Code", system-ui, sans-serif;
    font-feature-settings: "palt" 1;
    /* UIはボタンとして扱う: タップ時に指が少し動いても文字が範囲選択されない。
       読ませる文章（記事本文・コメント本文）だけ下で user-select を戻す。 */
    -webkit-user-select: none;
    user-select: none;
    /* タップ時の青いフラッシュ（モバイル）も消す */
    -webkit-tap-highlight-color: transparent;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: 0.22;
    background-image:
        radial-gradient(circle at 50% 50%, rgba(16, 32, 47, 0.05) 0 1px, transparent 2px);
    background-size: 3px 3px;
    mask-image: linear-gradient(180deg, black, transparent 90%);
}

a {
    color: inherit;
    text-decoration: none;
}

/* focus=シアン（ピンクはCTA・否定に使うので、focusには使わない） */
a:focus-visible {
    outline: 2px solid var(--focus-ring);
    outline-offset: 3px;
    border-radius: 0.25rem;
}

/* skip link: キーボード/スクリーンリーダー利用者向けの本文直行導線。
   通常は画面外、focus時だけヘッダー上に現れる（黒キーキャップ言語） */
.skip-link {
    position: fixed;
    top: 0.5rem;
    left: 0.5rem;
    z-index: 200;
    padding: 0.625rem 1rem;
    border-radius: 999px;
    background: #0b0d10;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--color-mist);
    font-size: 0.8125rem;
    font-weight: 700;
    transform: translateY(-300%);
}

.skip-link:focus-visible {
    transform: translateY(0);
    outline: 2px solid var(--focus-ring);
    outline-offset: 3px;
}

img {
    max-width: 100%;
}

/* === ヘッダー: ピアノブラック前面パネル（黒鏡面ガラス×黒ベゼル） === */
/* 構成: [≡メニュー] [VIブランド中央] [🔍検索] の3カラム */
/* 質感の肝: 上端=鏡面ハイライト1本、地=上が照り下が深黒の縦グラデ、縁=黒ベゼル＋冷たい照り一滴 */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    display: grid;
    grid-template-columns: 2.25rem 1fr 2.25rem;
    align-items: center;
    gap: 0.625rem;
    padding: 0.5rem 0.75rem;
    background:
        linear-gradient(180deg, rgba(24, 28, 33, 0.82) 0%, rgba(10, 12, 15, 0.86) 46%, rgba(4, 5, 7, 0.92) 100%);
    color: var(--color-mist);
    backdrop-filter: blur(20px) saturate(125%);
    -webkit-backdrop-filter: blur(20px) saturate(125%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.6);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.16),
        inset 0 7px 16px rgba(255, 255, 255, 0.04),
        inset 0 -1px 0 rgba(46, 227, 243, 0.1),
        0 10px 30px rgba(0, 0, 0, 0.5);
}

/* ≡ ハンバーガー: 36x36、艶ある黒キーキャップ、hoverでシアン発光 */
.site-header__menu {
    display: grid;
    place-items: center;
    width: 2.25rem;
    height: 2.25rem;
    border: 1px solid rgba(0, 0, 0, 0.55);
    border-radius: 0.5625rem;
    background: linear-gradient(180deg, rgba(38, 42, 48, 0.9), rgba(12, 14, 17, 0.92));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.14),
        inset 0 -2px 4px rgba(0, 0, 0, 0.45),
        0 2px 4px rgba(0, 0, 0, 0.4);
    cursor: pointer;
    transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.site-header__menu:hover {
    border-color: rgba(46, 227, 243, 0.4);
    background: linear-gradient(180deg, rgba(44, 50, 57, 0.92), rgba(16, 19, 23, 0.94));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.18),
        inset 0 -2px 4px rgba(0, 0, 0, 0.45),
        0 0 14px rgba(46, 227, 243, 0.22);
}

.site-header__menu-lines {
    position: relative;
    display: block;
    width: 1rem;
    height: 0.0875rem;
    background: rgba(255, 255, 255, 0.78);
    border-radius: 1px;
    transition: background 180ms ease;
}

.site-header__menu-lines::before,
.site-header__menu-lines::after {
    content: "";
    position: absolute;
    left: 0;
    width: 1rem;
    height: 0.0875rem;
    background: rgba(255, 255, 255, 0.78);
    border-radius: 1px;
    transition: background 180ms ease;
}

.site-header__menu-lines::before { top: -0.375rem; }
.site-header__menu-lines::after  { top:  0.375rem; }

.site-header__menu:hover .site-header__menu-lines,
.site-header__menu:hover .site-header__menu-lines::before,
.site-header__menu:hover .site-header__menu-lines::after {
    background: var(--color-cyan);
}

/* VI ブランド: 中央寄せ、控えめ */
.site-header__brand {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    justify-self: center;
    min-width: 0;
}

/* ロゴは隣のボタンより0.5rem高い。上下へ0.25remずつはみ出させ、ヘッダーの高さはボタンのまま保つ */
.site-header__logo {
    display: block;
    height: 2.75rem;
    width: auto;
    margin-block: -0.25rem;
}

/* 🔍 検索: ハンバーガーと同じ艶ある黒キーキャップ */
.site-header__search {
    display: grid;
    place-items: center;
    width: 2.25rem;
    height: 2.25rem;
    border: 1px solid rgba(0, 0, 0, 0.55);
    border-radius: 0.5625rem;
    background: linear-gradient(180deg, rgba(38, 42, 48, 0.9), rgba(12, 14, 17, 0.92));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.14),
        inset 0 -2px 4px rgba(0, 0, 0, 0.45),
        0 2px 4px rgba(0, 0, 0, 0.4);
    color: rgba(255, 255, 255, 0.78);
    cursor: pointer;
    transition: border-color 180ms ease, background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.site-header__search svg {
    width: 1rem;
    height: 1rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.site-header__search:hover {
    border-color: rgba(46, 227, 243, 0.4);
    background: linear-gradient(180deg, rgba(44, 50, 57, 0.92), rgba(16, 19, 23, 0.94));
    color: var(--color-cyan);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.18),
        inset 0 -2px 4px rgba(0, 0, 0, 0.45),
        0 0 14px rgba(46, 227, 243, 0.22);
}

.site-header__search:focus-visible,
.site-header__menu:focus-visible {
    outline: 2px solid var(--color-cyan);
    outline-offset: 3px;
}

/* === 左ドロワー: ピアノブラック前面パネル、ヘッダーと同じ黒鏡面言語 === */
/* 隠しcheckbox: 画面外固定で focus 時のスクロール抑止 */
.site-drawer__toggle {
    position: fixed;
    top: 0;
    left: 0;
    width: 0.0625rem;
    height: 0.0625rem;
    opacity: 0;
    pointer-events: none;
}

/* バックドロップ: 開閉時に背景を暗くする */
.site-drawer__backdrop {
    position: fixed;
    inset: 0;
    z-index: 180;
    background: rgba(2, 3, 4, 0.66);
    backdrop-filter: blur(4px);
    opacity: 0;
    pointer-events: none;
    cursor: pointer;
    transition: opacity 240ms ease;
}

.site-drawer__toggle:checked ~ .site-drawer__backdrop {
    opacity: 1;
    pointer-events: auto;
}

/* ドロワー本体: 左から滑り出る。地=黒鏡面の縦グラデ、左端に鏡面ハイライト1本、右縁=黒ベゼル＋冷たい照り一滴 */
.site-drawer {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    width: min(14rem, 72vw);
    z-index: 200;
    overflow-y: auto;
    background:
        linear-gradient(180deg, rgba(20, 23, 27, 0.96) 0%, rgba(10, 12, 15, 0.96) 40%, rgba(4, 5, 7, 0.97) 100%);
    backdrop-filter: blur(24px) saturate(120%);
    -webkit-backdrop-filter: blur(24px) saturate(120%);
    border-right: 1px solid rgba(0, 0, 0, 0.7);
    box-shadow:
        inset 1px 0 0 rgba(255, 255, 255, 0.08),
        inset -1px 0 0 rgba(46, 227, 243, 0.08),
        16px 0 40px rgba(0, 0, 0, 0.6);
    transform: translateX(-102%);
    transition: transform 280ms cubic-bezier(0.4, 0.05, 0.25, 1);
}

.site-drawer__toggle:checked ~ .site-drawer {
    transform: translateX(0);
}

/* ドロワー上部: VIマーク mini + MENU タイトル + × */
.site-drawer__head {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.5);
    box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.06);
}

.site-drawer__head-title {
    font-family: var(--font-en);
    font-size: 0.625rem;
    font-weight: 800;
    letter-spacing: 0.32em;
    color: rgba(255, 255, 255, 0.55);
    text-transform: uppercase;
}

.site-drawer__close {
    margin-left: auto;
    display: grid;
    width: 2rem;
    height: 2rem;
    place-items: center;
    border: 1px solid rgba(0, 0, 0, 0.55);
    border-radius: 0.5625rem;
    background: linear-gradient(180deg, rgba(38, 42, 48, 0.9), rgba(12, 14, 17, 0.92));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.14),
        inset 0 -2px 4px rgba(0, 0, 0, 0.45),
        0 2px 4px rgba(0, 0, 0, 0.4);
    color: rgba(255, 255, 255, 0.72);
    cursor: pointer;
    font-family: var(--font-en);
    font-size: 1rem;
    line-height: 1;
    transition: border-color 180ms ease, color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.site-drawer__close:hover {
    border-color: rgba(46, 227, 243, 0.4);
    background: linear-gradient(180deg, rgba(44, 50, 57, 0.92), rgba(16, 19, 23, 0.94));
    color: var(--color-mist);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.18),
        inset 0 -2px 4px rgba(0, 0, 0, 0.45),
        0 0 14px rgba(46, 227, 243, 0.22);
}

/* メニューリスト: いま開ける行き先。名前＋説明の2行で、行ごとに息をさせる。
   英字の小見出しは行には付けず、節の見出し（.site-drawer__heading）だけが使う */
.site-drawer__list {
    display: grid;
    gap: 0.125rem;
    list-style: none;
    margin: 0;
    padding: 0.5rem 0 0.75rem;
}

.site-drawer__item--feature {
    margin-bottom: 0.25rem;
    border-bottom: 1px solid rgba(46, 227, 243, 0.1);
    padding-bottom: 0.375rem;
}

.site-drawer__link {
    display: grid;
    grid-template-columns: 2.375rem 1fr 0.875rem;
    gap: 0.75rem;
    align-items: center;
    padding: 0.4375rem 1rem;
    color: rgba(255, 255, 255, 0.78);
    transition: background 180ms ease, color 180ms ease;
}

.site-drawer__link:hover {
    background: linear-gradient(90deg, rgba(46, 227, 243, 0.1), transparent 70%);
    color: var(--color-mist);
}

.site-drawer__link:focus-visible,
.site-drawer__soon-link:focus-visible {
    outline: 2px solid var(--color-cyan);
    outline-offset: -2px;
}

.site-drawer__icon {
    display: grid;
    place-items: center;
    width: 2.375rem;
    height: 2.375rem;
    border: 1px solid rgba(0, 0, 0, 0.5);
    border-radius: 0.5625rem;
    background: linear-gradient(180deg, rgba(34, 38, 43, 0.85), rgba(11, 13, 16, 0.9));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        inset 0 -2px 4px rgba(0, 0, 0, 0.4);
    color: rgba(255, 255, 255, 0.72);
    transition: border-color 180ms ease, background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.site-drawer__icon svg,
.site-drawer__soon-link svg {
    width: 1.125rem;
    height: 1.125rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.site-drawer__link:hover .site-drawer__icon {
    border-color: rgba(46, 227, 243, 0.42);
    background: rgba(46, 227, 243, 0.06);
    color: var(--color-cyan);
    box-shadow: 0 0 12px rgba(46, 227, 243, 0.18);
}

.site-drawer__text {
    display: grid;
    gap: 0.1875rem;
    min-width: 0;
}

.site-drawer__label {
    font-size: 0.9375rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    line-height: 1.2;
    color: var(--color-mist);
}

.wiki-new {
    width: 3.25rem;
    height: 2rem;
    image-rendering: pixelated;
    animation: wiki-new-hop 2.4s steps(1) infinite;
}

.site-drawer__label .wiki-new {
    width: 2.4375rem;
    height: 1.5rem;
    margin-left: 0.4rem;
    vertical-align: -0.3rem;
}

@keyframes wiki-new-hop {
    0%, 84%, 100% { transform: translateY(0); }
    88% { transform: translateY(-0.1875rem); }
    92% { transform: translateY(0); }
    96% { transform: translateY(-0.0625rem); }
}

@media (prefers-reduced-motion: reduce) {
    .wiki-new {
        animation: none;
    }
}

.wiki-key {
    --pop: 0.6rem;
    --slot: 2.45rem;
    --lip: 0.3rem;
    --title-h: 1.55rem;
    position: relative;
    display: block;
    padding-top: var(--pop);
    padding-bottom: var(--lip);
    color: #1A0B2E;
    -webkit-tap-highlight-color: transparent;
}

.wiki-key img {
    image-rendering: pixelated;
}

.wiki-key__face {
    position: relative;
    z-index: 1;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    min-height: 3.3rem;
    padding: 0.4rem 0.5rem 0.4rem 0.75rem;
    border: 2px solid #1A0B2E;
    border-radius: 0.6rem;
    background: #F2B53A url("../img/wiki/key-face.png") 0 0 / 0.25rem 100% repeat-x;
    image-rendering: pixelated;
    box-shadow: 0 var(--lip) 0 -2px #8A5300, 0 var(--lip) 0 0 #1A0B2E;
    transition: transform 70ms steps(2), box-shadow 70ms steps(2);
}

.wiki-key__text {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}

.wiki-key__title {
    width: auto;
    height: var(--title-h);
    align-self: flex-start;
}

.wiki-key__line {
    overflow: hidden;
    font-size: 0.66rem;
    font-weight: 900;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wiki-key__slots {
    display: flex;
    flex: none;
    gap: 0.3rem;
}

.wiki-key__slot {
    position: relative;
    display: grid;
    width: var(--slot);
    height: var(--slot);
    place-items: center;
    border-radius: 0.35rem;
    background: rgba(26, 11, 46, 0.82);
    box-shadow: inset 0 0.15rem 0 rgba(0, 0, 0, 0.55), 0 0.1rem 0 rgba(255, 243, 190, 0.7);
}

.wiki-key__slot img {
    width: calc(var(--slot) - 0.55rem);
    height: calc(var(--slot) - 0.55rem);
    transition: transform 160ms steps(3);
}

.wiki-key__slot b {
    position: absolute;
    right: 0.12rem;
    bottom: -0.05rem;
    color: #FFFFFF;
    font-size: 0.56rem;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
    line-height: 1;
    text-shadow: 0.06rem 0 0 #1A0B2E, -0.06rem 0 0 #1A0B2E, 0 0.06rem 0 #1A0B2E, 0 -0.06rem 0 #1A0B2E;
}

.wiki-key__go {
    display: flex;
    flex: none;
    align-items: center;
    gap: 0.3rem;
    padding: 0.4rem 0.5rem 0.4rem 0.6rem;
    border: 2px solid #1A0B2E;
    border-radius: 0.45rem;
    background: #FF2E92;
    box-shadow: inset 0 -0.18rem 0 rgba(26, 11, 46, 0.35), inset 0 0.12rem 0 rgba(255, 255, 255, 0.45);
    color: #FFFFFF;
    font-size: 0.78rem;
    font-weight: 900;
    line-height: 1;
    text-shadow: 0 0.08rem 0 #1A0B2E;
    white-space: nowrap;
}

.wiki-key__go::after {
    border-top: 0.32rem solid transparent;
    border-bottom: 0.32rem solid transparent;
    border-left: 0.45rem solid #FFFFFF;
    content: "";
    filter: drop-shadow(0 0.08rem 0 #1A0B2E);
    animation: wiki-key-nudge 1.2s steps(1) infinite;
}

.wiki-key__face::after {
    position: absolute;
    top: -20%;
    bottom: -20%;
    left: -3rem;
    width: 1.4rem;
    background: rgba(255, 250, 225, 0.55);
    box-shadow: 1.1rem 0 0 -0.35rem rgba(255, 250, 225, 0.4);
    content: "";
    transform: skewX(-22deg);
    z-index: 2;
    animation: wiki-key-shine 4.8s 1.2s infinite;
    pointer-events: none;
}

.wiki-key__face > * {
    position: relative;
    z-index: 1;
}

.wiki-key .wiki-new {
    position: absolute;
    z-index: 3;
    top: calc(var(--pop) - 0.95rem);
    right: -0.35rem;
    rotate: 8deg;
}

@media (hover: hover) {
    .wiki-key:hover .wiki-key__slot img {
        transform: translateY(-0.12rem);
    }
}

.wiki-key:active .wiki-key__face {
    transform: translateY(calc(var(--lip) - 0.05rem));
}

.wiki-key:active .wiki-key__face {
    box-shadow: 0 0.05rem 0 -2px #8A5300, 0 0.05rem 0 0 #1A0B2E;
}

.wiki-key:focus-visible {
    outline: none;
}

.wiki-key:focus-visible .wiki-key__face {
    outline: 3px solid var(--focus-ring);
    outline-offset: 2px;
}

.wiki-key.is-waiting .wiki-key__slot img {
    opacity: 0;
}

.wiki-key.is-dealt .wiki-key__slot img {
    animation: wiki-slot-in 320ms steps(4) both;
}

.wiki-key.is-dealt .wiki-key__slot:nth-child(2) img { animation-delay: 80ms; }
.wiki-key.is-dealt .wiki-key__slot:nth-child(3) img { animation-delay: 160ms; }
.wiki-key.is-dealt .wiki-key__slot:nth-child(4) img { animation-delay: 240ms; }
.wiki-key.is-dealt .wiki-key__slot:nth-child(5) img { animation-delay: 320ms; }
.wiki-key.is-dealt .wiki-key__slot:nth-child(6) img { animation-delay: 400ms; }

@keyframes wiki-slot-in {
    0% { opacity: 0; transform: translateY(0.5rem) scale(0.6); }
    60% { opacity: 1; transform: translateY(-0.15rem) scale(1.1); }
    100% { opacity: 1; transform: none; }
}

@keyframes wiki-key-nudge {
    0%, 50% { transform: none; }
    51%, 100% { transform: translateX(0.15rem); }
}

@keyframes wiki-key-shine {
    0% { left: -3rem; animation-timing-function: steps(9); }
    16%, 100% { left: calc(100% + 2rem); }
}

@media (prefers-reduced-motion: reduce) {
    .wiki-key__go::after,
    .wiki-key__face::after {
        animation: none;
    }

    .wiki-key__face::after {
        display: none;
    }
}

.wiki-key--wide {
    --pop: 1rem;
    --slot: 2.6rem;
    --title-h: 1.9rem;
}

.wiki-key--wide .wiki-key__face {
    min-height: 4rem;
    padding: 0.6rem 0.7rem 0.6rem 0.9rem;
}

.wiki-key--wide .wiki-key__slot:nth-child(n + 5) {
    display: none;
}

.wiki-key--wide .wiki-key__line {
    font-size: 0.74rem;
}

.single-article__content .wiki-key {
    margin-top: 2.5rem;
    color: #1A0B2E;
    text-decoration: none;
}

.single-article__content .wiki-key img {
    max-width: none;
    border-radius: 0;
}

.single-article__content .wiki-key__title {
    height: var(--title-h);
}

.single-article__content .wiki-key__slot img {
    height: calc(var(--slot) - 0.55rem);
}

.single-article__content .wiki-new {
    height: 2rem;
}

.single-article__content .wiki-key__slot:nth-child(n + 3) {
    display: none;
}

@media (min-width: 768px) {
    .wiki-key--wide {
        --pop: 1rem;
        --slot: 3rem;
        --title-h: 2.3rem;
    }

    .wiki-key--wide .wiki-key__face {
        min-height: 4.4rem;
        padding: 0.7rem 1rem;
    }

    .wiki-key--wide .wiki-key__slot:nth-child(n + 5),
    .single-article__content .wiki-key__slot:nth-child(n + 3) {
        display: grid;
    }

    .wiki-key--wide .wiki-key__line {
        font-size: 0.8rem;
    }
}

.site-drawer__desc {
    font-size: 0.6875rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.3;
}

.site-drawer__arrow {
    font-family: var(--font-en);
    font-size: 0.875rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.32);
    transition: transform 180ms ease, color 180ms ease;
}

.site-drawer__link:hover .site-drawer__arrow {
    color: var(--color-cyan);
    transform: translateX(3px);
}

/* HOME 強調: ピンク寄りのアクセント */
.site-drawer__item--feature .site-drawer__icon {
    border-color: rgba(255, 46, 146, 0.36);
    background: rgba(255, 46, 146, 0.06);
    color: rgba(255, 205, 225, 0.86);
}

.site-drawer__item--feature .site-drawer__link:hover .site-drawer__icon {
    border-color: rgba(255, 46, 146, 0.6);
    background: rgba(255, 46, 146, 0.12);
    color: #FFD3E5;
    box-shadow: 0 0 14px rgba(255, 46, 146, 0.28);
}

/* 節: 準備中の行き先と、表示モード。英字の見出しで区切る */
.site-drawer__section {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.75rem 1rem 0.875rem;
}

.site-drawer__heading {
    display: block;
    margin-bottom: 0.5625rem;
    font-family: var(--font-en);
    font-size: 0.5625rem;
    font-weight: 800;
    letter-spacing: 0.22em;
    line-height: 1.15;
    color: rgba(46, 227, 243, 0.6);
    text-transform: uppercase;
}

/* 準備中のもの: 2列の小さな札。いま開ける行より一段控えめに置く。押すと吹き出しで「準備中です」と告げる */
.site-drawer__soon {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.375rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-drawer__soon-link {
    display: flex;
    align-items: center;
    gap: 0.4375rem;
    min-height: 2.75rem;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 0.5625rem;
    padding: 0 0.5rem;
    position: relative;
    width: 100%;
    background: none;
    color: rgba(255, 255, 255, 0.56);
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: border-color 180ms ease, color 180ms ease, background 180ms ease;
}

/* 吹き出し（札の真上）と、そのしっぽ */
.site-drawer__soon-link::after,
.site-drawer__soon-link::before {
    position: absolute;
    left: 50%;
    z-index: 2;
    opacity: 0;
    pointer-events: none;
    transition: opacity 140ms ease, transform 140ms ease;
}

.site-drawer__soon-link::after {
    content: "準備中です";
    bottom: calc(100% + 0.375rem);
    border-radius: 0.5rem;
    padding: 0.3125rem 0.5625rem;
    background: var(--color-white);
    color: var(--color-night);
    font-size: 0.6875rem;
    font-weight: 800;
    line-height: 1.2;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    transform: translate(-50%, 0.25rem);
}

.site-drawer__soon-link::before {
    content: "";
    bottom: calc(100% + 0.125rem);
    width: 0.5rem;
    height: 0.5rem;
    background: var(--color-white);
    transform: translate(-50%, 0.25rem) rotate(45deg);
}

.site-drawer__soon-link.is-told::after {
    opacity: 1;
    transform: translate(-50%, 0);
}

.site-drawer__soon-link.is-told::before {
    opacity: 1;
    transform: translate(-50%, 0) rotate(45deg);
}

.site-drawer__soon-link.is-told {
    border-color: rgba(46, 227, 243, 0.3);
    color: var(--color-mist);
}

.site-drawer__soon-link svg {
    flex: none;
    width: 0.9375rem;
    height: 0.9375rem;
}

.site-drawer__soon-link:hover {
    border-color: rgba(46, 227, 243, 0.3);
    background: rgba(46, 227, 243, 0.05);
    color: var(--color-mist);
}

/* === 右検索パネル: 左ドロワーと対称、右から滑り出るピアノブラック === */
.site-search__toggle {
    position: fixed;
    top: 0;
    left: 0;
    width: 0.0625rem;
    height: 0.0625rem;
    opacity: 0;
    pointer-events: none;
}

.site-search__backdrop {
    position: fixed;
    inset: 0;
    z-index: 180;
    background: rgba(2, 3, 4, 0.66);
    backdrop-filter: blur(4px);
    opacity: 0;
    pointer-events: none;
    cursor: pointer;
    transition: opacity 240ms ease;
}

.site-search__toggle:checked ~ .site-search__backdrop {
    opacity: 1;
    pointer-events: auto;
}

/* 右から滑り出る。地=黒鏡面の縦グラデ、右端に鏡面ハイライト1本、左縁=黒ベゼル＋冷たい照り一滴 */
.site-search {
    position: fixed;
    top: 0;
    bottom: 0;
    right: 0;
    width: min(100vw, 30rem);
    z-index: 200;
    overflow-y: auto;
    background:
        linear-gradient(180deg, rgba(20, 23, 27, 0.96) 0%, rgba(10, 12, 15, 0.96) 40%, rgba(4, 5, 7, 0.97) 100%);
    backdrop-filter: blur(24px) saturate(120%);
    -webkit-backdrop-filter: blur(24px) saturate(120%);
    border-left: 1px solid rgba(0, 0, 0, 0.7);
    box-shadow:
        inset -1px 0 0 rgba(255, 255, 255, 0.08),
        inset 1px 0 0 rgba(46, 227, 243, 0.08),
        -16px 0 40px rgba(0, 0, 0, 0.6);
    transform: translateX(102%);
    transition: transform 280ms cubic-bezier(0.4, 0.05, 0.25, 1);
}

.site-search__toggle:checked ~ .site-search {
    transform: translateX(0);
}

.site-search__head {
    position: sticky;
    top: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 0.625rem;
    margin: 0;
    padding: 0.75rem 0.875rem;
    background: rgba(14, 16, 20, 0.96);
    border-bottom: 1px solid rgba(0, 0, 0, 0.5);
    box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.06);
}

.site-search__field {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    height: 2.5rem;
    padding: 0 0.875rem;
    border: 1px solid rgba(0, 0, 0, 0.55);
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(8, 10, 12, 0.9), rgba(24, 27, 32, 0.9));
    box-shadow:
        inset 0 2px 4px rgba(0, 0, 0, 0.5),
        0 1px 0 rgba(255, 255, 255, 0.08);
    color: rgba(46, 227, 243, 0.75);
    cursor: text;
    transition: border-color 180ms ease;
}

.site-search__field:focus-within {
    border-color: rgba(46, 227, 243, 0.55);
}

.site-search__field svg {
    flex: none;
    width: 1.125rem;
    height: 1.125rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
}

.site-search__input {
    flex: 1;
    min-width: 0;
    height: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--color-mist);
    font: inherit;
    font-size: max(16px, 1rem);
    font-weight: 700;
    outline: none;
}

.site-search__input::placeholder {
    color: rgba(255, 255, 255, 0.4);
    font-weight: 600;
}

.site-search__input::-webkit-search-cancel-button {
    filter: invert(1) opacity(0.6);
}

.site-search__close {
    flex: none;
    display: grid;
    width: 2.5rem;
    height: 2.5rem;
    place-items: center;
    border: 1px solid rgba(0, 0, 0, 0.55);
    border-radius: 0.625rem;
    background: linear-gradient(180deg, rgba(38, 42, 48, 0.9), rgba(12, 14, 17, 0.92));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.14),
        inset 0 -2px 4px rgba(0, 0, 0, 0.45),
        0 2px 4px rgba(0, 0, 0, 0.4);
    color: rgba(255, 255, 255, 0.72);
    cursor: pointer;
    font-family: var(--font-en);
    font-size: 1.125rem;
    line-height: 1;
    transition: border-color 180ms ease, color 180ms ease;
}

.site-search__close:hover {
    border-color: rgba(46, 227, 243, 0.4);
    color: var(--color-mist);
}

.site-search__body {
    padding: 0.25rem 0 9rem;
    transition: opacity 160ms ease;
}

.site-search.is-loading .site-search__body {
    opacity: 0.5;
}

.site-search__section-head {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    padding: 1rem 1rem 0.5rem;
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 0.06em;
}

.site-search__section-head::before {
    content: "";
    width: 0.1875rem;
    height: 0.875rem;
    border-radius: 1px;
    background: var(--color-cyan);
}

.site-search__count {
    color: var(--color-cyan);
    font-family: var(--font-en);
}

.site-search__row {
    display: grid;
    grid-template-columns: 5.5rem 1fr;
    gap: 0.75rem;
    align-items: center;
    padding: 0.625rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    color: inherit;
    text-decoration: none;
    transition: background 180ms ease;
}

.site-search__row--wiki {
    grid-template-columns: 3rem 1fr;
}

.site-search__row:hover {
    background: linear-gradient(90deg, rgba(46, 227, 243, 0.1), transparent 70%);
}

.site-search__row:focus-visible {
    outline: 2px solid var(--color-cyan);
    outline-offset: -2px;
}

.site-search__thumb,
.site-search__icon {
    display: block;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.55);
    background: linear-gradient(180deg, rgba(34, 38, 43, 0.85), rgba(11, 13, 16, 0.9));
}

.site-search__thumb {
    aspect-ratio: 16 / 9;
    border-radius: 0.5rem;
}

.site-search__icon {
    aspect-ratio: 1;
    border-radius: 0.625rem;
}

.site-search__thumb img,
.site-search__icon img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.site-search__text {
    display: grid;
    gap: 0.3125rem;
    min-width: 0;
}

.site-search__title {
    color: var(--color-mist);
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.site-search__snippet {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.75rem;
    line-height: 1.5;
}

.site-search mark {
    padding: 0 0.0625rem;
    border-radius: 2px;
    background: rgba(46, 227, 243, 0.24);
    color: #fff;
}

.site-search__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem 0.625rem;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.6875rem;
    font-weight: 700;
}

.site-search .category-badge {
    --cat-ink: var(--cat);
}

.site-search__wiki-cat {
    color: var(--color-gold);
}

.site-search__message {
    margin: 0;
    padding: 2.5rem 1.25rem;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8125rem;
    font-weight: 700;
    line-height: 1.6;
    text-align: center;
}

/* === フッター: ヘッダーと対になるピアノブラック背面パネル（theme: 常時ダーク） ===
   ヘッダー=前面パネル（下端にベゼル影）に対し、フッター=背面パネル（上端に鏡面ハイライト1本）。
   同じ黒鏡面言語で世界を上下から挟み、ページを筐体の中に収める */
.site-footer {
    margin-top: 5rem;
    padding: 1.75rem 1.075rem 2rem;
    background: linear-gradient(180deg, rgba(24, 28, 33, 0.98) 0%, rgba(10, 12, 15, 0.99) 46%, rgba(4, 5, 7, 1) 100%);
    color: rgba(255, 255, 255, 0.62);
    border-top: 1px solid rgba(0, 0, 0, 0.6);
    /* 上端=鏡面ハイライト1本 + 冷たい照り一滴（ヘッダー下端と鏡映） */
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.14),
        inset 0 2px 10px rgba(255, 255, 255, 0.03),
        inset 0 1px 0 rgba(46, 227, 243, 0.06);
    font-family: var(--font-en);
    font-size: 0.75rem;
    letter-spacing: 0.06em;
}

/* 回遊ナビ: 黒キーキャップの小ボタン列（ヘッダーの≡/🔍と同じ艶の言語） */
.site-footer__copy {
    margin: 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.45);
}

.site-footer__sep {
    margin: 0 0.375rem;
    color: rgba(255, 255, 255, 0.25);
}

.site-footer__policy {
    color: rgba(255, 255, 255, 0.55);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: rgba(255, 255, 255, 0.25);
    transition: color 180ms ease;
}

.site-footer__policy:hover {
    color: var(--color-cyan);
}

.site-main {
    min-height: 60vh;
}

/* sticky footer の相方: 本文(main)が余り高さを引き受け、.site-footer を下端へ押し下げる。
   0%基準（flex-basis:0ではなくauto）だと grid 子の内在高さ計算が崩れないので flex-grow のみ */
body > main {
    flex-grow: 1;
}

/*
 * カテゴリ札：地図のブリップ（色の円・濃い縁・記号）と分類名。
 * 分類は色だけでなく記号の形でも見分ける（公式＝認証の印、攻略＝目的地のピン、海外の反応＝吹き出し）。
 * 円は濃い縁で持つので、紙・ガラス・絵のどの上でも同じ生色のまま置ける。分類名は地に合わせた同じ色相（--cat-ink-*）。
 * 絵の上に置くときだけ --plate で夜の板を敷き、絵の色と焼き込み文字から切り離す。
 */
.category-badge {
    --cat: var(--text-faint);
    --cat-glyph: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
    width: fit-content;
    color: var(--cat-ink, var(--text-strong));
    font-size: 0.6875rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    line-height: 1.1;
    white-space: nowrap;
}

.category-badge::before {
    content: "";
    flex: none;
    width: 1.5em;
    height: 1.5em;
    border-radius: 50%;
    background: var(--cat-glyph) center / 64% no-repeat, var(--cat);
    box-shadow: 0 0 0 0.12em rgba(4, 12, 22, 0.8);
}

.category-badge--official {
    --cat: var(--color-cyan);
    --cat-ink: var(--cat-ink-official);
    --cat-glyph: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%2306141F' stroke-width='3.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.category-badge--guide {
    --cat: var(--color-guide);
    --cat-ink: var(--cat-ink-guide);
    --cat-glyph: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%2306141F' d='M12 1.5C7.9 1.5 4.6 4.8 4.6 8.9c0 5.6 7.4 13.6 7.4 13.6s7.4-8 7.4-13.6c0-4.1-3.3-7.4-7.4-7.4zm0 10.2a2.8 2.8 0 1 1 0-5.6 2.8 2.8 0 0 1 0 5.6z'/%3E%3C/svg%3E");
}

.category-badge--matome {
    --cat: var(--color-matome);
    --cat-ink: var(--cat-ink-matome);
    --cat-glyph: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%2306141F' d='M5 3h14a3 3 0 0 1 3 3v8.5a3 3 0 0 1-3 3h-7.6L6 21.8v-4.3H5a3 3 0 0 1-3-3V6a3 3 0 0 1 3-3z'/%3E%3C/svg%3E");
}

/* 絵の上：夜の板に載せ、分類名は生色で光らせずに読ませる */
.category-badge--plate {
    padding: 0.25em 0.65em 0.25em 0.25em;
    border-radius: 999px;
    background: rgba(7, 21, 38, 0.86);
    box-shadow: 0 1px 4px rgba(4, 12, 22, 0.35);
    color: var(--cat);
}

.empty-message {
    color: var(--text-muted);
    background: var(--surface-panel);
    border: 1px dashed var(--border-strong);
    border-radius: var(--radius-md);
    padding: 1.125rem;
    font-size: 0.8125rem;
    line-height: 1.65;
    box-shadow: var(--shadow-card);
}

.single-article-page,
.archive-page {
    display: grid;
    /* 列の下限を 0 にする。既定の 1fr=minmax(auto,1fr) だと、中身に縮まない要素
       （WP動画 [video] が吐く width:2112px 等）があるとトラックが膨張し、記事カラムが
       画面幅を超えて右にはみ出す。minmax(0,1fr) で「中身がどうあれ親幅まで縮め」を強制する
       （Grid はみ出しの定石）。overflow-x:clip は見た目を切り落とすだけで膨張自体は残るため、ここが根治。 */
    grid-template-columns: minmax(0, 1fr);
    /* sticky footer(body flex)で main が余り高さを引き受けるため、grid 既定の
       align-content:stretch だと行が縦に間延びする（チップが縦長化）。上詰めに固定 */
    align-content: start;
    gap: 1.75rem;
    width: min(100%, var(--max-page));
    margin: 0 auto;
    padding: 1.125rem;
}

.single-article,
.archive-page__header {
    width: min(100%, 60rem);
    margin: 0 auto;
}

.single-article {
    display: grid;
    gap: 1.5rem;
    border-radius: 2.125rem;
    padding: 1.5rem;
    background: var(--surface-card);
    box-shadow: var(--shadow-ambient);
}

/* 記事ヘッダー: 囲いカードにせず素組み（小ピル→大タイトル→日付）。コンテンツ領域=2モード追従 */
.single-article__header {
    display: grid;
    gap: 0.875rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-hair);
}

.single-article__header h1 {
    margin: 0;
    font-size: 2.125rem;
    line-height: 1.08;
    letter-spacing: 0;
}

.single-article__header h1 {
    color: var(--text-strong);
}

/* 記事の分類はこの見出しの上の一つだけなので、一覧の札より一段大きく読ませる */
.single-article__header .category-badge {
    font-size: 0.8125rem;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 800;
}

.article-meta time {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
}

.article-meta__icon {
    width: 1rem;
    height: 1rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 0.7;
}

.article-meta__modified {
    color: var(--text-faint);
}

.single-article__thumbnail {
    overflow: hidden;
    border-radius: 1.625rem;
}

.single-article__thumbnail img {
    display: block;
    width: 100%;
    height: auto;
}

.single-article__content {
    font-size: 1.0625rem;
    line-height: 1.9;
    /* 記事本文は読者がコピー・引用できるよう選択可に戻す（body の選択抑止を上書き） */
    -webkit-user-select: text;
    user-select: text;
}

/* コメント本文も読者が引用・コピーできるよう選択可に戻す（body の選択抑止を上書き） */
.comment-text {
    -webkit-user-select: text;
    user-select: text;
}

/* ===== 本文 見出し（/ow の階層感をGTA6トンマナへ翻訳: H2=面、H3=帯、H4=小マーカー） ===== */
.single-article__content :is(h2, h3, h4) {
    position: relative;
    color: var(--text-strong);
    font-weight: 900;
    line-height: 1.5;
}

.single-article__content :is(h2.wp-block-heading, h2:not([class])) {
    margin: 1.5em 0 1em;
    padding: 0.55em 1em;
    border-radius: var(--radius-md);
    /* グラデ両端とも不透明な濃色で、乗る白文字のコントラストをAA(4.5)以上に保つ
       （半透明シアンだと白背景/ライトテーマで透けて白文字が読めなくなるため不採用）。
       ocean #0B3045(白文字13.8) → teal #0E6B78(白文字6.2) */
    background: linear-gradient(135deg, var(--color-ocean), #0E6B78);
    color: #ffffff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 10px 24px rgba(4, 17, 31, 0.22);
    font-size: 1.375rem;
}

.single-article__content :is(h3.wp-block-heading, h3:not([class])) {
    margin: 1.2em 0 0.8em;
    padding: 0.38em 0.9em;
    border-left: 0.42rem solid var(--color-cyan);
    border-bottom: 1px solid rgba(46, 227, 243, 0.3);
    background: rgba(46, 227, 243, 0.075);
    font-size: 1.1875rem;
}

.single-article__content :is(h4.wp-block-heading, h4:not([class])) {
    margin: 0.8em 0 0.6em;
    padding: 0.2em 0 0.2em 1em;
    font-size: 1.0625rem;
}

.single-article__content :is(h4.wp-block-heading, h4:not([class]))::before {
    content: "";
    position: absolute;
    top: 0.72em;
    left: 0;
    width: 0.58em;
    height: 0.58em;
    border-radius: 999px;
    background: var(--color-cyan);
    box-shadow: 0 0 0 0.18em rgba(46, 227, 243, 0.16);
}

.single-article__content p {
    margin: 0 0 1.4em;
}

.single-article__content a {
    color: var(--text-link);
    text-decoration: underline;
    text-decoration-color: rgba(46, 227, 243, 0.5);
    text-underline-offset: 3px;
}

/* サイト内関連記事: 編集部が選んだ次の記事として見せる、角のない横長カード。
   推薦タブ→16:9画像→カテゴリ→タイトル→CTAの順に束ね、参照元カードとは構造から分ける。 */
.single-article__content .gta6-internal-link {
    position: relative;
    margin: 2.25em 0 1.75em;
    max-width: 100%;
    padding-top: 1.375rem;
}
.single-article__content .gta6-internal-link__recommendation {
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    padding: 0.3125rem 0.75rem;
    border-left: 3px solid var(--color-sunset);
    background: var(--color-night);
    color: var(--color-mist);
    font-size: 0.6875rem;
    font-weight: 900;
    line-height: 1.25;
    letter-spacing: 0.08em;
}
.single-article__content .gta6-internal-link__anchor {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
        "media"
        "body"
        "action";
    min-height: 0;
    padding: 0.5rem;
    gap: 0.625rem;
    color: var(--text-strong);
    background: var(--surface-card);
    border: 1px solid var(--border-strong);
    border-radius: 0;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
    text-decoration: none;
    transition: border-color 160ms ease, background-color 160ms ease;
}
html[data-theme="light"] .single-article__content .gta6-internal-link__anchor {
    box-shadow: 0 10px 24px rgba(7, 21, 38, 0.1);
}
.single-article__content .gta6-internal-link__anchor:hover,
.single-article__content .gta6-internal-link__anchor:focus-visible {
    border-color: var(--focus-ring);
    background: var(--surface-hover);
}
.single-article__content .gta6-internal-link__anchor:focus-visible {
    outline: 3px solid var(--focus-ring);
    outline-offset: 3px;
}
.single-article__content .gta6-internal-link__media {
    display: block;
    grid-area: media;
    min-width: 0;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--color-ocean);
}
.single-article__content .gta6-internal-link__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    transition: transform 220ms ease;
}
.single-article__content .gta6-internal-link__anchor:hover .gta6-internal-link__image,
.single-article__content .gta6-internal-link__anchor:focus-visible .gta6-internal-link__image {
    transform: scale(1.03);
}
.single-article__content .gta6-internal-link__body {
    display: flex;
    grid-area: body;
    min-width: 0;
    padding: 0 0.5rem;
    align-items: flex-start;
    flex-direction: column;
}
.single-article__content .gta6-internal-link .category-badge {
    margin-bottom: 0.375rem;
    font-size: 0.625rem;
}
.single-article__content .gta6-internal-link__title {
    display: block;
    color: var(--text-strong);
    font-size: 1rem;
    font-weight: 900;
    line-height: 1.5;
}
.single-article__content .gta6-internal-link__action {
    grid-area: action;
    justify-self: end;
    padding: 0.3125rem 0.5625rem;
    background: var(--color-night);
    color: var(--color-mist);
    font-size: 0.6875rem;
    font-weight: 900;
    line-height: 1.2;
    white-space: nowrap;
    transition: background-color 160ms ease;
}
.single-article__content .gta6-internal-link__action b {
    display: inline-block;
    margin-left: 0.2rem;
    color: var(--color-cyan);
    transition: transform 160ms ease;
}
.single-article__content .gta6-internal-link__anchor:hover .gta6-internal-link__action,
.single-article__content .gta6-internal-link__anchor:focus-visible .gta6-internal-link__action {
    background: var(--color-ocean);
}
.single-article__content .gta6-internal-link__anchor:hover .gta6-internal-link__action b,
.single-article__content .gta6-internal-link__anchor:focus-visible .gta6-internal-link__action b {
    transform: translateX(0.2rem);
}
@media (prefers-reduced-motion: reduce) {
    .single-article__content .gta6-internal-link__anchor,
    .single-article__content .gta6-internal-link__image,
    .single-article__content .gta6-internal-link__action,
    .single-article__content .gta6-internal-link__action b {
        transition-duration: 1ms;
    }
}

.single-article__content ul,
.single-article__content ol {
    margin: 0 0 1.4em;
    padding-left: 1.5em;
}

.single-article__content li {
    margin-bottom: 0.5em;
}

.single-article__content blockquote {
    margin: 1.6em 0;
    padding: 0.875rem 1.25rem;
    border-left: 4px solid var(--color-cyan);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    background: rgba(46, 227, 243, 0.08);
    color: var(--text-strong);
}

.single-article__content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
}

/* ===== 本文に来うる全要素を「枠内に収める＋等比拡縮」する防波堤 =====
   思想: ライターは何も気にせず書く。埋め込み・テーブル・コード・長URL等を
   レイアウト内に収めて拡縮させるのはテーマ側の責務。font-sizeは全rem固定（vw無し）
   のためroot連動で両世界とも自動拡縮する（PC override不要）。 */

/* 長い語・URL・無分割文字列をはみ出させず折り返す。
   min-width:0 はグリッド/フレックス子の「内容で膨らむ」を止める（pre等の横スクロールを効かせる肝） */
.single-article__content {
    min-width: 0;
    overflow-wrap: break-word;
    word-break: break-word;
}

/* 見出し h5/h6 も階層を補完（h2-h4 と地続きのサイズ感） */
.single-article__content :is(h5.wp-block-heading, h5:not([class])) {
    margin: 1.2em 0 0.5em;
    font-size: 1rem;
    color: var(--text-strong);
    font-weight: 900;
    line-height: 1.4;
}
.single-article__content :is(h6.wp-block-heading, h6:not([class])) {
    margin: 1.2em 0 0.5em;
    font-size: 0.9375rem;
    color: var(--text-muted);
    font-weight: 900;
    line-height: 1.4;
}

/* 埋め込み（YouTube/Twitter等のiframe・動画）: 幅100%＋16:9でレスポンシブ。
   width/height属性の固定px（560×315等）を打ち消し、枠内で拡縮させる。
   ただし外部WordPressサイトのカード iframe（wp-embedded-content）は動画ではないため除外する。 */
.single-article__content :is(iframe:not(.wp-embedded-content), video, embed, object) {
    display: block;
    max-width: 100%;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    border: 0;
    border-radius: var(--radius-md);
    margin: 1.6em 0;
}

/* 外部WordPressサイトの埋め込みカード: 16:9動画扱いせず、WP標準のカード高さで表示する。
   通常は wp-embed.js が postMessage で高さを実コンテンツ（200px〜）に同期する。
   min-height はそのJSが走る前（初期描画・JS無効時）に潰れて見えないためのフォールバック床。 */
.single-article__content iframe.wp-embedded-content {
    display: block;
    max-width: 100%;
    width: 100%;
    min-height: 10rem;
    aspect-ratio: auto;
    border: 0;
    border-radius: var(--radius-md);
    margin: 1.6em 0;
}

/* WordPress埋め込みブロック（.wp-block-embed__wrapper 内の iframe）も同様に */
.single-article__content .wp-block-embed {
    margin: 1.6em 0;
}
.single-article__content .wp-block-embed iframe:not(.wp-embedded-content) {
    margin: 0;
}

/* テーブル: 表は表のまま（display:blockにするとテーブルレイアウトが失われ、
   中身が内容幅に縮こまってコンテナに広がらない＝等比拡縮に乗れない）。
   はみ出し対策はラッパー側の overflow-x:auto が担う:
   - Gutenberg表 = figure.wp-block-table（WP標準ラッパー）
   - 旧エディタ/コピペの裸<table> = .gta6-table-scroll（the_contentフィルタで自動付与） */
.single-article__content :is(figure.wp-block-table, .wp-block-table, .gta6-table-scroll) {
    margin: 1.6em 0;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.single-article__content table {
    width: 100%;
    border-collapse: collapse;
    /* 地を敷く: サイト背景（夜空グラデ/紙テクスチャ）の上に文字が直接乗ると読みづらい。
       入力欄と同じ一段持ち上げトークン＝背景と区別がつき、モード追従で文字コントラストも保たれる */
    background: var(--surface-input);
    font-size: 0.9375rem;
    line-height: 1.6;
}
.single-article__content :is(th, td) {
    padding: 0.5em 0.75em;
    border: 1px solid var(--border-strong);
    text-align: left;
    vertical-align: top;
}
.single-article__content th {
    background: var(--surface-hover);
    font-weight: 900;
    white-space: nowrap;
}

/* コードブロック: 長い行は枠内で横スクロール（本文全体ははみ出させない） */
.single-article__content pre {
    margin: 1.6em 0;
    padding: 1em 1.25em;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    /* コードブロックは両モード共通で常時ダーク（コードは暗地が読みやすい・GitHub等と同様）。theme非追従 */
    background: var(--color-ink);
    color: #E6F2F8;
    border-radius: var(--radius-md);
    font-family: var(--font-mono);
    font-size: 0.875rem;
    line-height: 1.7;
}
.single-article__content pre code {
    background: none;
    padding: 0;
    color: inherit;
    font-size: inherit;
    white-space: pre;
}
/* インラインコード: 折り返し可能・控えめな下地 */
.single-article__content :not(pre) > code {
    padding: 0.1em 0.4em;
    background: var(--surface-input);
    border-radius: 0.25rem;
    font-family: var(--font-mono);
    font-size: 0.9em;
    overflow-wrap: break-word;
}

/* figure（画像キャプション・埋め込みの外枠）: はみ出させない */
.single-article__content figure {
    margin: 1.6em 0;
    max-width: 100%;
}
.single-article__content figcaption {
    margin-top: 0.6em;
    font-size: 0.875rem;
    color: var(--text-muted);
    text-align: center;
    line-height: 1.6;
}

/* 区切り線 hr */
.single-article__content hr {
    margin: 2em 0;
    border: 0;
    border-top: 1px solid var(--border-hair);
}

/* ===== 本文 クイックタグ装飾（gta6-balloon / gta6-cite） =====
   旧エディターのクイックタグ（quicktags-custom.js）が挿入するクラスの表側スタイル。配色はトークンで持つ。 */
.single-article__content .gta6-balloon {
    position: relative;
    margin: 1.6em 0;
    padding: 0.875rem 1.25rem;
    background: var(--surface-panel);
    border: 1px solid var(--border-hair);
    border-radius: var(--radius-md);
    color: var(--text-strong);
}
/* 吹き出しの「しっぽ」: 左辺中ほどに CSS 三角を出す（絵文字は使わない） */
.single-article__content .gta6-balloon::before {
    content: "";
    position: absolute;
    top: 1.25rem;
    left: -0.5rem;
    border-width: 0.4rem 0.5rem 0.4rem 0;
    border-style: solid;
    border-color: transparent var(--surface-panel) transparent transparent;
}
/* 吹き出し内 p は既存の段落下マージンを打ち消し、枠内で詰める */
.single-article__content .gta6-balloon p {
    margin: 0;
}

/* 引用元枠: 出典＝シアン左ボーダー（blockquote / source-card と同系で統一） */
.single-article__content .gta6-cite {
    margin: 1.6em 0;
    padding: 0.75rem 1.25rem;
    border-left: 4px solid var(--color-cyan);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    background: rgba(46, 227, 243, 0.08);
    font-size: 0.9375rem;
}
.single-article__content .gta6-cite__label {
    display: block;
    margin-bottom: 0.25rem;
    font-weight: 900;
    font-size: 0.8125rem;
    color: var(--color-cyan);
}
.single-article__content .gta6-cite a {
    word-break: break-all;
}

.source-card {
    display: grid;
    gap: 0.25rem;
    border: 1px solid var(--border-hair);
    border-left: 4px solid var(--color-cyan);
    border-radius: var(--radius-md);
    padding: 0.875rem 1.125rem;
    background: rgba(46, 227, 243, 0.10);
    color: var(--text-strong);
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.source-card:hover {
    transform: translateY(-2px);
    background: rgba(46, 227, 243, 0.12);
    box-shadow: 0 10px 24px rgba(7, 21, 38, 0.12);
}

.source-card__label {
    font-family: var(--font-en);
    font-size: 0.6875rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    color: var(--text-faint);
}

.source-card__url {
    overflow: hidden;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text-link);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.archive-page__header {
    display: grid;
    gap: 0.875rem;
}

.archive-page__description {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.8;
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.625rem;
}

.page-numbers {
    border-radius: 999px;
    padding: 0.5rem 0.8125rem;
    background: rgba(7, 21, 38, 0.08);
    font-weight: 900;
}

.page-numbers.current {
    background: var(--color-night);
    color: var(--color-mist);
}

/* 隠しcheckbox: ハンドル位置に fixed 配置することで focus 時のページ上端スクロールを抑止 */
.crew-vision__toggle {
    position: fixed;
    right: 0;
    bottom: clamp(190px, 22vh, 240px);
    width: 0.0625rem;
    height: 0.0625rem;
    opacity: 0;
    pointer-events: none;
}

/* === 配信者PR 右下スライドモニタ === */
/* オーバーレイ: viewport 右下に固定（モニタ底をボトムから120px浮かせて下部CTA空間を確保） */
/* 開閉: 右端のドロワーハンドル（80sプラ + 垂直リブ）から多段キーフレームでスライドイン/アウト */

.crew-vision {
    position: fixed;
    right: 14px; /* ハンドルの幅分だけ左へ */
    bottom: 120px; /* モニタの底をボトムから120px浮かせる（下部CTA/モバイルナビ空間を確保） */
    z-index: 90;
    width: min(calc(100vw - 1.875rem), 26.25rem);
    transform-origin: 100% 100%;
    will-change: transform, opacity;
    animation: crew-vision-deploy 820ms cubic-bezier(0.5, 0.05, 0.3, 1.05) both;
    pointer-events: auto;
}

/* 展開: 機械的シーケンス（右外からの多段スライドイン）
   0%→26%   : 画面右外から第1段階の伸びでスライドイン
   26%→38%  : ガコンと一瞬停止
   38%→72%  : 第2段階で画面内へ
   72%→82%  : 定位置でガコッと固定
   82%→92%  : わずかにオーバーシュート
   92%→100% : 最終位置に戻る
*/
@keyframes crew-vision-deploy {
    0%   { transform: translateX(120%); opacity: 0; visibility: visible; }
    14%  { opacity: 1; }
    26%  { transform: translateX(54%); }
    38%  { transform: translateX(54%); }
    72%  { transform: translateX(0); }
    82%  { transform: translateX(-1.2%); }
    92%  { transform: translateX(0.4%); }
    100% { transform: translateX(0); opacity: 1; }
}

/* 収納: 機械的シーケンス（逆順、やや速め） */
@keyframes crew-vision-retract {
    0%   { transform: translateX(0); opacity: 1; visibility: visible; }
    14%  { transform: translateX(-1.4%); }
    48%  { transform: translateX(54%); opacity: 1; }
    58%  { transform: translateX(54%); }
    85%  { opacity: 1; }
    100% { transform: translateX(120%); opacity: 0; visibility: hidden; }
}

.crew-vision__screen {
    position: relative;
    overflow: hidden;
    /* モバイル基準のモニタ比率(16:9)を全幅で固定。中身は子のabsolute配置で重ねる(縦に積まない=比率維持) */
    aspect-ratio: 16 / 9;
    border: 1px solid rgba(46, 227, 243, 0.38);
    border-radius: 1.375rem;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 18px),
        linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 14px),
        radial-gradient(circle at 16% 12%, rgba(255, 46, 146, 0.45), transparent 34%),
        radial-gradient(circle at 86% 18%, rgba(46, 227, 243, 0.32), transparent 34%),
        linear-gradient(135deg, rgba(7, 21, 38, 0.96), rgba(13, 47, 71, 0.94) 58%, rgba(76, 25, 118, 0.92));
    color: var(--color-white);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.12),
        inset 0 -16px 40px rgba(7, 21, 38, 0.42),
        0 0 0 8px rgba(7, 21, 38, 0.18),
        0 24px 58px rgba(7, 21, 38, 0.34);
}

.crew-vision__screen::before {
    content: "";
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 5px);
    opacity: 0.3;
    pointer-events: none;
}

.crew-vision__screen::after {
    content: "";
    position: absolute;
    inset: -40% -20% auto;
    height: 72%;
    background: linear-gradient(110deg, transparent 18%, rgba(255, 255, 255, 0.24) 42%, transparent 58%);
    transform: translateX(-28%) rotate(-8deg);
    pointer-events: none;
}

/* 広告リンク: 枠全体(画像＋オーバーレイ)を1つのクリック領域にする。飛び先は1クリエイティブ1つ */
.crew-vision__link {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: block;
    overflow: hidden;
    border-radius: 1.5rem;
}

/* サムネ(WPアイキャッチ)が主役。get_the_post_thumbnail が出す <img> にこのclassが付く */
.crew-vision__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 画像なし時のフォールバック。崩さずブランド色のグラデで埋める */
.crew-vision__placeholder {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(7, 21, 38, 0.96), rgba(76, 25, 118, 0.92));
}

/* 流れるテロップ帯: 配信画面下部を控えめに流れる煽り文(可変)。画像本体は隠さない。
   文言=sponsorタイトル。画像を作り直さずテロップだけ差し替えられる運用が肝 */
.crew-vision__ticker {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    overflow: hidden;
    height: 1.625rem;
    display: flex;
    align-items: center;
    background: rgba(5, 6, 10, 0.62);
    backdrop-filter: blur(6px) saturate(140%);
    -webkit-backdrop-filter: blur(6px) saturate(140%);
    border-top: 1px solid rgba(46, 227, 243, 0.32);
}

.crew-vision__ticker-track {
    display: inline-flex;
    flex: none;
    white-space: nowrap;
    will-change: transform;
    animation: cv-marquee var(--ticker-duration, 18s) linear infinite;
}

.crew-vision__ticker-item {
    padding: 0 1.5em;
    color: rgba(255, 255, 255, 0.92);
    font-family: var(--font-en);
    font-size: 0.6875rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

/* JSが文字幅と表示幅を測り、CSS変数で1周距離と時間だけ渡す。JSなしでも既定値で静的に崩れない */
@keyframes cv-marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(var(--ticker-offset, -50%)); }
}

/* 動きが苦手な人向け(酔い対策): アニメ停止し先頭固定 */
@media (prefers-reduced-motion: reduce) {
    .crew-vision__ticker-track {
        animation: none;
    }
}

/* 広告明示: 枠の上辺からわずかに生やす小タブ。画像(焼き込みのLIVE等)と絶対に被らず、
   PR表記が独立して見える。右端の縦書きSPONSOREDタブと同じ黒ガラス×ネオンで世界観統一 */
.crew-vision__sponsored-tab {
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    padding: 0.1875rem 0.75rem 0.25rem;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(10px) saturate(150%);
    -webkit-backdrop-filter: blur(10px) saturate(150%);
    border: 1px solid rgba(46, 227, 243, 0.34);
    border-bottom: 0;
    border-radius: 0.5rem 0.5rem 0 0;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.16),
        0 -3px 10px rgba(0, 0, 0, 0.3);
    color: rgba(255, 255, 255, 0.74);
    font-family: var(--font-en);
    font-size: 0.5625rem;
    font-weight: 800;
    letter-spacing: 0.26em;
    text-indent: 0.26em;
    pointer-events: none;
}

/* 閉じるボタン: ページロード時1回だけカウントダウンが起動。収納→再展開ではリセットしない */
.crew-vision__close {
    position: absolute;
    top: 9px;
    right: 10px;
    z-index: 3;
    display: grid;
    width: 1.875rem;
    height: 1.875rem;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    background: rgba(7, 21, 38, 0.52);
    color: rgba(255, 255, 255, 0.86);
    cursor: pointer;
    font-family: var(--font-en);
    font-size: 1.125rem;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1;
    animation:
        cv-close-style var(--cv-close-delay) step-end forwards,
        cv-close-unlock var(--cv-close-delay) step-end forwards;
}

.crew-vision__close::before {
    content: "×";
    animation: cv-close-countdown var(--cv-close-delay) step-end forwards;
}

@keyframes cv-close-countdown {
    0%   { content: "5"; }
    20%  { content: "4"; }
    40%  { content: "3"; }
    60%  { content: "2"; }
    80%  { content: "1"; }
    100% { content: "×"; }
}

@keyframes cv-close-style {
    0% {
        border-color: rgba(255, 255, 255, 0.18);
        background: rgba(7, 21, 38, 0.42);
        color: rgba(255, 255, 255, 0.5);
        font-size: 0.875rem;
    }
    100% {
        border-color: rgba(255, 255, 255, 0.28);
        background: rgba(7, 21, 38, 0.52);
        color: rgba(255, 255, 255, 0.86);
        font-size: 1.125rem;
        cursor: pointer;
    }
}

@keyframes cv-close-unlock {
    0%, 99.99% { pointer-events: none; }
    100% { pointer-events: auto; }
}

/* ドロワーハンドル: 画面右端、モニタ中央あたりに常駐。引き出しの取手として機能。
   ロード時1回だけ --cv-close-delay 秒間ロック（半透明＋クリック不可）→ 満了で復帰 */
.crew-vision-tab {
    position: fixed;
    right: 0;
    bottom: clamp(160px, 24vh, 200px); /* モニタの中央右に揃える */
    z-index: 95;
    display: inline-flex;
    padding: 0;
    background: transparent;
    border: 0;
    cursor: pointer;
    animation: cv-handle-unlock var(--cv-close-delay) step-end forwards;
}

@keyframes cv-handle-unlock {
    0%, 99.99% { pointer-events: none; cursor: default; }
    100% { pointer-events: auto; cursor: pointer; }
}

@keyframes cv-handle-plate-lock {
    0% { opacity: 0.4; }
    100% { opacity: 1; }
}

/* 黒透明ガラスタブ × 縦書きSPONSORED — サイトと色被らない、高級感。
   ロード時1回だけ opacity 0.4 → 1.0 で「ロック中→解除」を視覚表示 */
.crew-vision-tab__plate {
    position: relative;
    overflow: hidden;
    width: 1.375rem;
    height: 8.75rem;
    background: rgba(0, 0, 0, 0.58);
    backdrop-filter: blur(12px) saturate(160%);
    -webkit-backdrop-filter: blur(12px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-right: 0;
    border-radius: 0.5rem 0 0 0.5rem;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.18),
        inset 1px 0 0 rgba(255, 255, 255, 0.08),
        -4px 6px 18px rgba(0, 0, 0, 0.42),
        -8px 0 22px rgba(0, 0, 0, 0.25);
    transition: transform 220ms ease, box-shadow 220ms ease, background 220ms ease;
    animation: cv-handle-plate-lock var(--cv-close-delay) step-end forwards;
}

.crew-vision-tab:hover .crew-vision-tab__plate,
.crew-vision-tab:focus-visible .crew-vision-tab__plate {
    transform: translateX(-2px);
    background: rgba(0, 0, 0, 0.5);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.22),
        inset 1px 0 0 rgba(255, 255, 255, 0.1),
        -5px 7px 22px rgba(0, 0, 0, 0.5),
        -10px 0 28px rgba(0, 0, 0, 0.3);
}

/* 縦書きラベル: SPONSORED */
.crew-vision-tab__plate::before {
    content: "SPONSORED";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-family: var(--font-en);
    font-size: 0.5rem;
    font-weight: 800;
    letter-spacing: 0.3em;
    color: rgba(255, 255, 255, 0.62);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
    white-space: nowrap;
    pointer-events: none;
}

/* 引き出せそう感: 下端に小さなドラッグハンドル風ドット3つ */
.crew-vision-tab__plate::after {
    content: "";
    position: absolute;
    bottom: 10px;
    left: 50%;
    width: 0.1875rem;
    height: 0.875rem;
    transform: translateX(-50%);
    background:
        radial-gradient(circle at 50% 1.5px, rgba(255, 255, 255, 0.5) 0 1px, transparent 1.4px),
        radial-gradient(circle at 50% 7px, rgba(255, 255, 255, 0.5) 0 1px, transparent 1.4px),
        radial-gradient(circle at 50% 12.5px, rgba(255, 255, 255, 0.5) 0 1px, transparent 1.4px);
    pointer-events: none;
}

.crew-vision__toggle:checked ~ .crew-vision {
    animation: crew-vision-retract 620ms cubic-bezier(0.55, 0.05, 0.35, 1) both;
    pointer-events: none;
}

/* ===== 記事一覧（カテゴリ・すべて）：見出しと絞り込みの下に、人気記事とトップと同じ盤の新着記事を置く ===== */
.archive-page__title {
    margin: 0;
    color: var(--text-strong);
    font-size: 1.75rem;
    font-weight: 900;
    letter-spacing: 0.02em;
    line-height: 1.2;
    white-space: normal;
}

.archive-page__title::before {
    width: 1em;
    height: 1em;
}

.category-chips {
    display: flex;
    gap: 1.25rem;
    border-bottom: 1px solid var(--border-hair);
    overflow-x: auto;
    scrollbar-width: none;
}

.category-chip {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
    margin-bottom: -1px;
    border-bottom: 3px solid transparent;
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 700;
    white-space: nowrap;
}

.category-chip:hover {
    color: var(--text-strong);
}

.category-chip--official { --cat-ink: var(--cat-ink-official); }
.category-chip--guide { --cat-ink: var(--cat-ink-guide); }
.category-chip--matome { --cat-ink: var(--cat-ink-matome); }

.category-chip.is-active {
    border-bottom-color: var(--cat-ink, var(--text-strong));
    color: var(--text-strong);
    font-weight: 900;
}

/*
 * 盤と記事の行（トップの欄と一覧の新着記事で共通）。
 * 盤＝欄を載せるガラスの面。見出しは日本語の欄名と短い棒で、カテゴリの欄だけ棒にカテゴリの色（--board-accent）を差す。
 * 行＝一本ずつが独立した記事と読めるよう、左端を揃えて罫で区切る（字下げや線でつなぐと返信に見える）。
 * --lead は四角いサムネと大きめの見出しで記事として読ませる形、無印は小さな絵の一行。日の見出しは行の間に挟む。
 */
.board {
    padding: 1rem 0.9rem 0.9rem;
    border: 1px solid var(--border-hair);
    border-radius: var(--radius-xl);
    background: var(--surface-panel);
}

.board--official { --board-accent: var(--cat-ink-official); }
.board--guide { --board-accent: var(--cat-ink-guide); }
.board--matome { --board-accent: var(--cat-ink-matome); }

.board__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.8rem;
}

.board__h {
    margin: 0;
    padding-left: 0.6rem;
    border-left: 0.25rem solid var(--board-accent, var(--text-strong));
    font-size: 1.15rem;
    font-weight: 900;
    line-height: 1.2;
}

.board__note {
    flex: none;
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 700;
}

.stream {
    margin: 0;
    padding: 0;
    list-style: none;
}

.stream img {
    display: block;
    width: 100%;
    height: auto;
}

.stream time {
    font-family: var(--font-en);
    font-weight: 700;
    letter-spacing: 0.04em;
}

.stream__day {
    padding: 0.6rem 0 0.2rem;
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 900;
}

.stream__post a {
    display: grid;
    grid-template-columns: 5rem minmax(0, 1fr);
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0;
}

.stream__post + .stream__post a {
    border-top: 1px solid var(--border-hair);
}

.stream__mini {
    overflow: hidden;
    border-radius: 0.5rem;
}

.stream__mini img {
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.stream__body time {
    display: block;
    color: var(--text-faint);
    font-size: 0.7rem;
}

/* 一覧の行：札と時刻はサムネの上に一行で置き、右の列は題名だけにする（数文字の情報に右の列の行を使わない） */
.stream__side {
    display: grid;
    gap: 0.35rem;
}

.stream__meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    line-height: 1.2;
}

.stream__meta time {
    display: inline;
    color: var(--text-faint);
    font-size: 0.64rem;
}

.stream__meta .category-badge {
    gap: 0.3em;
    font-size: 0.6rem;
    letter-spacing: 0.02em;
}

.stream__meta .category-badge::before {
    width: 1.2em;
    height: 1.2em;
}

.stream__t {
    display: block;
    margin-top: 0.05rem;
    font-size: 0.86rem;
    font-weight: 700;
    line-height: 1.48;
}

.stream__post a:hover .stream__t {
    color: var(--text-link);
}

/* 題名が長くてもサムネの下だけに空きが溜まらないよう、サムネを題名の高さの真ん中に置く */
.stream__post--lead a {
    grid-template-columns: minmax(0, 40%) minmax(0, 1fr);
    align-items: center;
    gap: 0.8rem;
    padding: 0.5rem 0;
}

.stream__thumb {
    overflow: hidden;
    border-radius: 0.7rem;
    box-shadow: var(--shadow-card);
}

.stream__thumb img {
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.stream__post--lead .stream__t {
    margin-top: 0.15rem;
    font-size: 0.92rem;
    font-weight: var(--title-weight);
    line-height: 1.45;
}

/* 前回の訪問より後に入った記事（stream-seen.js が付ける）：時刻だけを欄の色にする。
   間を空けて開くと全部が新着になるので、サムネを縁取ると一覧全体が光って印にならない */
.stream__post.is-new time {
    color: var(--board-accent, var(--text-link));
}

.archive-page .board {
    width: min(100%, 60rem);
    margin: 0 auto;
}

.talk {
    display: inline-flex;
    align-items: center;
    gap: 0.18rem;
    margin-left: 0.4em;
    color: var(--text-muted);
    font-family: var(--font-en);
    font-size: 0.72em;
    font-weight: 700;
    line-height: 1;
    vertical-align: 0.08em;
    white-space: nowrap;
}

.talk svg {
    width: 1.05em;
    height: 1.05em;
    fill: currentColor;
}

.talk__label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

/*
 * 順位の札：絵の角に半分はみ出して貼った紙の札（トップの「よく読まれている記事」と一覧の人気記事で共通）。
 * 絵の色は記事ごとに違い、焼き込みの見出しも桃色が多いので、札は絵の色に頼らない白い紙と濃い桃の数字にし、
 * 半分を盤の上へ逃がして絵から切り離す。1位だけ地と字を反転し、白い縁で絵から浮かせる。
 */
.rank-badge {
    position: absolute;
    top: -0.35rem;
    left: -0.35rem;
    z-index: 1;
    display: flex;
    align-items: baseline;
    gap: 0.06em;
    padding: 0.22rem 0.36rem 0.18rem;
    border-radius: 0.4rem;
    background: #fff;
    box-shadow: 0 0 0 1px rgba(16, 32, 47, 0.12), 0 0.2rem 0.5rem rgba(0, 0, 0, 0.3);
    color: #10202f;
    font-size: 0.6rem;
    font-weight: 900;
    line-height: 1;
}

.rank-badge b {
    color: #c2186b;
    font-family: var(--font-num);
    font-size: 1.12rem;
    font-weight: 400;
    letter-spacing: 0.01em;
}

.rank-badge--lead {
    padding: 0.32rem 0.55rem 0.26rem;
    border-radius: 0.6rem;
    background: #c2186b;
    box-shadow: 0 0 0 2px #fff, 0 0.3rem 0.8rem rgba(0, 0, 0, 0.35);
    color: #fff;
    font-size: 0.85rem;
}

.rank-badge--lead b {
    color: #fff;
    font-size: 1.7rem;
}

/* 人気記事：期間はラジオとCSSで切り替える。見出しとタブは一行、スマホは横に送る帯、PCは5列2段 */
.popular {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.625rem 0.5rem;
    width: min(100%, 60rem);
    margin: 0 auto;
    padding: 0.8125rem 0 0.875rem;
    border: 1px solid var(--border-hair);
    border-radius: var(--radius-lg);
    background: var(--surface-panel);
}

.popular__title {
    margin: 0;
    padding-left: 1rem;
    color: var(--text-strong);
    font-size: 0.9375rem;
    font-weight: 900;
    line-height: 1.3;
}

.popular__radio {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.popular__tabs {
    display: flex;
    gap: 0.3125rem;
    padding-right: 1rem;
}

.popular__tab {
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    padding: 0.3125rem 0.6875rem;
    background: var(--surface-panel);
    color: var(--text-muted);
    font-size: 0.6875rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    cursor: pointer;
}

.popular__radio--24h:checked ~ .popular__tabs .popular__tab--24h,
.popular__radio--7d:checked ~ .popular__tabs .popular__tab--7d,
.popular__radio--30d:checked ~ .popular__tabs .popular__tab--30d {
    border-color: transparent;
    background: linear-gradient(180deg, #16202f, #0e1722);
    color: var(--color-mist);
}

.popular__radio--24h:focus-visible ~ .popular__tabs .popular__tab--24h,
.popular__radio--7d:focus-visible ~ .popular__tabs .popular__tab--7d,
.popular__radio--30d:focus-visible ~ .popular__tabs .popular__tab--30d {
    outline: 2px solid var(--focus-ring);
    outline-offset: 2px;
}

.popular__radio--24h:not(:checked) ~ .popular__panel--24h,
.popular__radio--7d:not(:checked) ~ .popular__panel--7d,
.popular__radio--30d:not(:checked) ~ .popular__panel--30d {
    display: none;
}

.popular__panel {
    grid-column: 1 / -1;
}

.popular__empty {
    margin: 0;
    padding: 0 1rem;
    color: var(--text-muted);
    font-size: 0.8125rem;
}

.popular__list {
    display: flex;
    gap: 0.75rem;
    margin: 0;
    padding: 0.35rem 1rem 0.25rem;
    list-style: none;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 1rem;
    scrollbar-width: none;
}

.popular__list::-webkit-scrollbar {
    display: none;
}

.popular__item {
    flex: 0 0 9.5rem;
    scroll-snap-align: start;
}

.popular__item a {
    display: grid;
    align-content: start;
    gap: 0.4rem;
    color: var(--text-strong);
}

.popular__thumb {
    position: relative;
    display: block;
}

.popular__thumb img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    border-radius: 0.55rem;
    object-fit: cover;
}

/* 帯のサムネは小さいので、1位も他と同じ大きさの札にして絵を隠さない（色の反転だけで1位と分かる） */
.popular .rank-badge--lead {
    padding: 0.22rem 0.36rem 0.18rem;
    border-radius: 0.4rem;
    font-size: 0.6rem;
}

.popular .rank-badge--lead b {
    font-size: 1.12rem;
}

/* 記事一覧（すべて）では、分類の札を絵の右上に小さく載せる（色で分かるので文字は小さくてよい）。順位の札が左上なので重ねない */
.popular__cat {
    position: absolute;
    top: 0.3rem;
    right: 0.3rem;
    z-index: 1;
    font-size: 0.5rem;
    letter-spacing: 0.02em;
}

.popular__t {
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.38;
}

.popular__item a:hover .popular__t {
    color: var(--text-link);
}

/* ページネーション（数字、世界観） */
.archive-page .nav-links,
.archive-page .pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.25rem;
    width: min(100%, 60rem);
    margin: 0.5rem auto 0;
}

.archive-page .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.75rem;
    min-height: 2.75rem;
    padding: 0 0.5rem;
    border-bottom: 3px solid transparent;
    color: var(--text-muted);
    font-family: var(--font-num);
    font-size: 1.125rem;
    letter-spacing: 0.02em;
}

.archive-page .page-numbers:hover {
    color: var(--text-strong);
}

.archive-page .page-numbers.current {
    border-bottom-color: var(--text-strong);
    color: var(--text-strong);
}

/* prev/next の線画シェブロン（WP絵文字▶◀を廃し、検索/ドロワーと同じ線画言語に統一） */
.page-numbers__chevron {
    display: block;
    width: 0.9375rem;
    height: 0.9375rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ===== Single Article（記事ページ：没入リーダー型） ===== */

/* パンくず */
.article-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    width: min(100%, 60rem);
    margin: 0 auto;
    font-size: 0.8125rem;
    font-weight: 700;
}

.article-breadcrumb a {
    color: var(--text-link);
    border-bottom: 1px solid rgba(46, 227, 243, 0.5);
    padding-bottom: 0.0625rem;
    transition: color 160ms ease, border-color 160ms ease;
}

.article-breadcrumb a:hover {
    color: var(--color-sunset);
    border-color: var(--color-sunset);
}

.article-breadcrumb__sep {
    color: var(--text-faint);
}

.article-breadcrumb__current {
    overflow: hidden;
    max-width: 100%;
    color: var(--text-muted);
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Twitterシェアタブ（記事ページ左上・crew-vision-tab左右反転版・常時ダーク基調）
   theme: 常時ダーク扱い（UIシェル）。トークン非参照・生色直書き。
   配色: Twitterブルー #1DA1F2 はプラットフォーム識別信号（紫を使わない決まりの例外）。
   板はフラット＝色付きglowなし、影は黒のみ（光には源がある）。色とサイズで主張させる。
   位置/サイズの px は「画面端固定演出位置」「outline」としてpx維持の例外 */
.article-share-tab {
    position: fixed;
    left: 0;
    top: 45%; /* 中心を縦45%＝真ん中よりわずかに上に置く（translateY -50% と合わせる） */
    transform: translateY(-50%);
    z-index: 95;
    display: inline-flex;
    padding: 0;
    background: transparent;
    border: 0;
    text-decoration: none;
    /* バネの解放（戻り）: オーバーシュート曲線で外へ「ポンッ」と張り出す。
       常時外向きの圧力がかかっている物体の質感（tactile: 非対称タイミング） */
    transition: transform 420ms cubic-bezier(0.2, 1.6, 0.4, 1);
}

/* スクロール下降中＝バネを抑え込む: 引っ込みは短く沈む(ease-out)、
   解放は上の遅く跳ねる曲線 — 押すのは速く、戻るのはバネ。付け外しは article-share.js */
.article-share-tab.is-tucked {
    transform: translateY(-50%) translateX(-58%);
    transition: transform 200ms cubic-bezier(0.3, 0.7, 0.4, 1);
}

.article-share-tab.is-tucked:hover,
.article-share-tab.is-tucked:focus-visible {
    transform: translateY(-50%); /* 引っ込み中でも触れば全開（触れる=使う意思） */
}

@media (prefers-reduced-motion: reduce) {
    .article-share-tab { transition-duration: 1ms; }
}

/* crew-vision-tab__plate の左右反転版（左端に貼り付く）。Twitterブルーの透明ガラス＝クリア感・高級感。
   border-left:0 / 角丸を右側 / 半透明＋backdrop-filterでガラス化 / inset光沢で高級感 / 影は黒のみ（板＝フラット） */
.article-share-tab__plate {
    position: relative;
    overflow: hidden;
    width: 2.25rem;
    height: 10.5rem;
    background: rgba(29, 161, 242, 0.68);
    backdrop-filter: blur(12px) saturate(160%);
    -webkit-backdrop-filter: blur(12px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-left: 0;
    border-radius: 0 0.625rem 0.625rem 0;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.42),
        inset -1px 0 0 rgba(255, 255, 255, 0.18),
        4px 6px 18px rgba(0, 0, 0, 0.42),
        8px 0 22px rgba(0, 0, 0, 0.25);
    transition: transform 220ms ease, box-shadow 220ms ease, background 220ms ease;
}

.article-share-tab:hover .article-share-tab__plate,
.article-share-tab:focus-visible .article-share-tab__plate {
    transform: translateX(3px);
    background: rgba(20, 140, 220, 0.78);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.5),
        inset -1px 0 0 rgba(255, 255, 255, 0.22),
        5px 7px 22px rgba(0, 0, 0, 0.5),
        10px 0 28px rgba(0, 0, 0, 0.3);
}

/* キーボードfocus時の明示（crew-vision-tabには無いがアクセシビリティ強化） */
.article-share-tab:focus-visible .article-share-tab__plate {
    outline: 2px solid rgba(255, 255, 255, 0.85);
    outline-offset: 2px;
}

/* 縦書きラベル: SHARE。鳥マークと干渉しないよう中心をやや上に。白でくっきり */
.article-share-tab__plate::before {
    content: "SHARE";
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-family: var(--font-en);
    font-size: 0.625rem;
    font-weight: 900;
    letter-spacing: 0.32em;
    color: #FFFFFF;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
    pointer-events: none;
}

/* 青い鳥マークをplate下部に配置（上にSHARE縦書き、下に鳥）。白塗りで青地に映える */
.article-share-tab__icon {
    position: absolute;
    bottom: 12px;
    left: 50%;
    width: 1.125rem;
    height: 1.125rem;
    transform: translateX(-50%);
    fill: #FFFFFF;
    pointer-events: none;
}

/* スポンサー枠プレースホルダ：空のときは出さない（浮かせない） */
.single-sponsor-slot:empty {
    display: none;
}

/* コメント欄 */
.article-comments {
    width: min(100%, 60rem);
    margin: 0 auto;
    display: grid;
    gap: 1.25rem;
}

.article-comments__title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 900;
}

.article-comments__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 1rem;
}

.article-comments__list .children {
    list-style: none;
    margin: 0.75rem 0 0;
    padding-left: 1.075rem;
    display: grid;
    gap: 0.75rem;
}

.article-comments .comment-body {
    border: 1px solid var(--border-hair);
    border-radius: var(--radius-md);
    padding: 1rem 1.125rem;
    background: var(--surface-card);
    box-shadow: var(--shadow-card);
}

/* コメントを送った直後（WordPressが #comment-N へ戻す）など、コメントを指すリンクから着いたとき、どの1件か一目で分かるよう枠を一瞬だけ点す */
@media (prefers-reduced-motion: no-preference) {
    .article-comments li:target > .comment-body {
        animation: gta6-comment-arrive 1.4s ease-out 1;
    }
}

@keyframes gta6-comment-arrive {
    from { border-color: var(--focus-ring); box-shadow: 0 0 0 2px var(--focus-ring), var(--shadow-card); }
    to { border-color: var(--border-hair); box-shadow: 0 0 0 2px transparent, var(--shadow-card); }
}

.article-comments .comment-meta {
    font-size: 0.75rem;
    color: var(--text-faint);
    font-weight: 700;
}

.article-comments .comment-meta a {
    color: var(--text-muted);
}

.article-comments .reply {
    margin-top: 0.5rem;
    font-weight: 900;
    font-size: 0.8125rem;
}

.article-comments .reply a {
    color: var(--color-sunset);
}

.article-comments__closed {
    color: var(--text-muted);
    font-weight: 700;
}

/* コメントフォーム */
.article-comments .comment-respond {
    border: 1px solid var(--border-hair);
    border-radius: var(--radius-lg);
    padding: 1.125rem;
    background: var(--surface-card);
    box-shadow: var(--shadow-card);
}

.article-comments .comment-reply-title {
    margin: 0 0 0.875rem;
    font-size: 1.125rem;
    font-weight: 900;
}

.article-comments .comment-form-comment textarea,
.article-comments input[type="text"],
.article-comments input[type="email"],
.article-comments input[type="url"] {
    width: 100%;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-md);
    padding: 0.75rem 0.875rem;
    background: var(--surface-input);
    color: var(--text-strong);
    font-family: var(--font-body);
    font-size: 0.9375rem;
}

.article-comments .comment-form-comment textarea::placeholder,
.article-comments input::placeholder {
    color: var(--text-placeholder);
}

.article-comments .comment-form > p {
    margin: 0 0 0.875rem;
}

.comment-form-hp {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.article-comments .comment-form label {
    display: block;
    margin-bottom: 0.375rem;
    font-weight: 800;
    font-size: 0.875rem;
}

.article-comments .form-submit .submit {
    border: none;
    border-radius: 999px;
    padding: 0.75rem 1.625rem;
    background: var(--color-sunset);
    color: var(--color-white);
    font-family: var(--font-body);
    font-weight: 900;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: transform 140ms ease;
}

.article-comments .form-submit .submit:hover {
    transform: translateY(-2px);
}

/* コメントページネーション（記事ページ内、archive-page セレクタ外なので個別指定） */
.article-comments .nav-links {
    display: flex;
    justify-content: center;
    gap: 0.625rem;
}

.article-comments .page-numbers {
    border-radius: 999px;
    padding: 0.5rem 0.8125rem;
    background: var(--surface-input);
    color: var(--text-strong);
    font-weight: 900;
}

/* コメントのいいね/悪いね・返信 */
.comment-reactions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.625rem;
}

.comment-reaction {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    padding: 0.3125rem 0.75rem;
    background: var(--surface-input);
    color: var(--text-strong);
    font-family: var(--font-body);
    font-weight: 800;
    font-size: 0.8125rem;
    cursor: pointer;
    transition: transform 120ms ease, border-color 120ms ease, color 120ms ease;
}

.comment-reaction svg {
    width: 0.9375rem;
    height: 0.9375rem;
}

.comment-reaction--like:hover {
    color: var(--reaction-like);
    border-color: var(--reaction-like);
    transform: translateY(-1px);
}

.comment-reaction--dislike:hover {
    color: var(--reaction-dislike);
    border-color: var(--reaction-dislike);
    transform: translateY(-1px);
}

.comment-reaction.is-active {
    background: transparent;
}

.comment-reaction.is-active.comment-reaction--like {
    border-color: var(--reaction-like);
    color: var(--reaction-like);
}

.comment-reaction.is-active.comment-reaction--dislike {
    border-color: var(--reaction-dislike);
    color: var(--reaction-dislike);
}

.comment-reaction.is-pop svg {
    animation: comment-react-pop 260ms ease-out;
}

@keyframes comment-react-pop {
    0% { transform: scale(1); }
    40% { transform: scale(1.35) rotate(-8deg); }
    100% { transform: scale(1); }
}

.comment-reactions.is-error {
    animation: comment-react-shake 600ms ease;
}

@keyframes comment-react-shake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-3px); }
    40% { transform: translateX(3px); }
    60% { transform: translateX(-2px); }
    80% { transform: translateX(2px); }
}

@media (prefers-reduced-motion: reduce) {
    .comment-reactions.is-error,
    .comment-reaction.is-pop svg {
        animation: none;
    }
}

.comment-reply-toggle {
    margin-top: 0.625rem;
    border: none;
    background: none;
    padding: 0;
    color: var(--color-sunset);
    font-family: var(--font-body);
    font-weight: 900;
    font-size: 0.8125rem;
    cursor: pointer;
}

.comment-reply-form {
    margin-top: 0.75rem;
    display: grid;
    gap: 0.625rem;
}

.comment-reply-form[hidden] {
    display: none;
}

.comment-reply-form textarea {
    width: 100%;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-md);
    padding: 0.75rem 0.875rem;
    background: var(--surface-input);
    color: var(--text-strong);
    font-family: var(--font-body);
    font-size: 0.9375rem;
}
.comment-reply-form textarea::placeholder {
    color: var(--text-placeholder);
}

.comment-reply-submit {
    justify-self: start;
    border: none;
    border-radius: 999px;
    padding: 0.625rem 1.375rem;
    background: var(--color-sunset);
    color: var(--color-white);
    font-family: var(--font-body);
    font-weight: 900;
    font-size: 0.875rem;
    cursor: pointer;
    transition: transform 140ms ease;
}

.comment-reply-submit:hover {
    transform: translateY(-2px);
}

/* ===== 404（NO SIGNAL）: 無信号のブラウン管（発光物体） =====
   画面(スクリーン)は発光してよい（光には源がある）。文言・導線はコンテンツ領域＝モード追従 */
.error-404-page {
    width: min(100%, var(--max-page));
    margin: 0 auto;
    padding: 2.5rem 1.075rem 4rem;
}

.error-404 {
    display: grid;
    justify-items: center;
    gap: 1rem;
    width: min(100%, 34rem);
    margin: 0 auto;
    text-align: center;
}

/* 無信号のブラウン管: 暗灰・16:9・角丸 */
.error-404__screen {
    position: relative;
    display: grid;
    place-items: center;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 1.4375rem;
    background: #0a0c10;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow:
        inset 0 0 4rem rgba(0, 0, 0, 0.7),
        0 12px 24px rgba(0, 0, 0, 0.45);
}

/* 砂嵐: --crt-noise を常時うっすら明滅 */
.error-404__noise {
    position: absolute;
    inset: 0;
    background-image: var(--crt-noise);
    background-size: 180px 180px;
    opacity: 0.14;
    animation: error-404-noise 0.45s steps(3) infinite;
    pointer-events: none;
}

@keyframes error-404-noise {
    0% { background-position: 0 0; }
    50% { background-position: -60px 40px; }
    100% { background-position: 40px -60px; }
}

/* 走査線: 画面をゆっくり流れる1本の輝線 */
.error-404__scanline {
    position: absolute;
    inset: 0 0 auto;
    height: 18%;
    background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    animation: error-404-scan 4.5s linear infinite;
    pointer-events: none;
}

@keyframes error-404-scan {
    from { transform: translateY(-120%); }
    to { transform: translateY(650%); }
}

@media (prefers-reduced-motion: reduce) {
    .error-404__noise,
    .error-404__scanline { animation: none; }
}

.error-404__signal {
    margin: 0;
    font-family: var(--font-en);
    font-size: 0.8125rem;
    font-weight: 900;
    letter-spacing: 0.45em;
    text-indent: 0.45em; /* letter-spacing の右端余りを相殺し視覚センターへ */
    color: rgba(244, 249, 252, 0.55);
}

.error-404__code {
    margin: 0;
    font-family: var(--font-num);
    font-size: 4.5rem;
    line-height: 1;
    color: rgba(244, 249, 252, 0.92);
    text-shadow: 0 0 1.5rem rgba(46, 227, 243, 0.25); /* 画面=発光物体なので微グローは正当 */
}

.error-404__title {
    margin: 0.75rem 0 0;
    font-size: 1.375rem;
    font-weight: 900;
    color: var(--text-strong);
}

.error-404__desc {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.8;
    color: var(--text-muted);
}

.error-404__actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

/* 導線: カテゴリチップと同じインク言語（板は光らせない） */
.error-404__action {
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    padding: 0.625rem 1.375rem;
    background: var(--surface-panel);
    color: var(--text-strong);
    font-weight: 900;
    font-size: 0.8125rem;
    letter-spacing: 0.04em;
    box-shadow: var(--shadow-card);
    transition: transform 160ms ease, box-shadow 160ms ease;
}

.error-404__action:hover {
    transform: translateY(-2px);
}

.error-404__action:focus-visible {
    outline: 2px solid var(--focus-ring);
    outline-offset: 3px;
}

/* =================================================================
   PCレイアウト（≥768px）— 2マス設計のPC側。スマホ正本（@media外のベース）
   に対するPC上書きをここに集約する。構造を切り替える唯一の境界。
   このブロックは必ずファイル末尾に置く（全ベース宣言より後＝後勝ちで成立）。
   ================================================================= */
@media (min-width: 768px) {
    /* 等比拡縮エンジン PC世界: アンカー1024で16px (16/1024=1.5625vw)。
       768pxで12px(下端=基準リセット)、1024pxで16px、1280pxで20px(上限=頭打ち)。
       1280px超は20px固定。PCレイアウトを保ったまま画面幅で等比拡縮する。 */
    html { font-size: clamp(12px, 1.5625vw, 20px); }

    /* 骨格PC復元（M3: 768→base反転の対。各 base が768値=スマホ正本になったので PC値をここで戻す） */
    .site-header {
        grid-template-columns: 2.5rem 1fr 2.5rem;
        gap: 1.28rem;
        /* 背景帯は全幅のまま、中身だけ --max-page(1280px) 内に収め .portal-home と縦ラインを揃える。
           +1.075rem は .portal-home の内側 padding と一致させる分。超ワイドで中身が散らばるのを防ぐ */
        padding: 0.625rem max(1.92rem, calc((100vw - var(--max-page)) / 2 + 1.075rem));
    }
    .site-header__menu,
    .site-header__search { width: 2.5rem; height: 2.5rem; border-radius: 0.625rem; }
    .site-header__menu-lines,
    .site-header__menu-lines::before,
    .site-header__menu-lines::after { width: 1.125rem; }
    .site-header__search svg { width: 1.125rem; height: 1.125rem; }
    .site-header__logo { height: 3rem; }
    /* PC展開幅: スマホ流用(min(14rem,72vw))を脱却し純remで広げる（vw禁止・等比拡縮）。
       72vwの安全上限はPC幅では常に効かないため不要 */
    .site-drawer { width: 18rem; }
    .site-search { width: 26rem; }
    .site-drawer__head { padding: 1.125rem 1.25rem 0.875rem; }
    .site-drawer__link { padding: 0.6875rem 1.25rem; }
    .site-drawer__section { padding-left: 1.25rem; padding-right: 1.25rem; }
    .crew-vision { width: min(35.25rem, calc(100vw - 2.25rem)); right: 1.25rem; }
    .crew-vision__screen { border-radius: 1.5rem; }
    .crew-vision__ticker { height: 1.875rem; }
    .crew-vision__ticker-item { font-size: 0.75rem; }
    .crew-vision-tab { bottom: clamp(190px, 22vh, 240px); }
    .crew-vision-tab__plate { width: 1.625rem; height: 13.125rem; }
    .crew-vision-tab__plate::before { font-size: 0.5625rem; letter-spacing: 0.36em; }
    /* Twitterシェアタブ PC拡大（base=スマホ正本は 2.25rem/10.5rem） */
    .article-share-tab__plate { width: 2.625rem; height: 11.5rem; }

    /* 人気記事: PCは横送りをやめて5列2段に並べる */
    .popular { padding: 1.25rem 0 1.375rem; }
    .popular__title { padding-left: 1.25rem; font-size: 1.0625rem; }
    .popular__tabs { padding-right: 1.25rem; }
    .popular__tab { padding: 0.375rem 0.875rem; font-size: 0.75rem; }
    .popular__empty { padding: 0 1.25rem; }
    .popular__t { font-size: 0.78rem; line-height: 1.42; }
    .popular__list {
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 1.125rem 0.875rem;
        padding: 0.35rem 1.25rem 0;
        overflow: visible;
    }

    /* === 等比拡縮: base層スマホ≠PCのPC世界override（1024評価rem） === */
    .site-footer {
        padding: 2rem 2.56rem;
    }

    .archive-page {
        gap: 3.2rem;
        padding: 2.56rem;
    }
    .single-article {
        padding: 3.2rem;
    }
    .single-article__header {
        padding-bottom: 2.5rem;
    }
    .archive-page__title { font-size: 2.5rem; }
    .board { padding: 1.2rem 1.4rem 1.2rem; }
    .board__h { font-size: 1.3rem; }
    /* 記事の行：--lead を縦の記事で横に3本、無印は2列。日の見出しは段をまたぐ */
    .stream {
        display: grid;
        grid-template-columns: repeat(6, minmax(0, 1fr));
        column-gap: 1.5rem;
    }
    .stream__post { grid-column: span 3; }
    .stream__post--lead { grid-column: span 2; }
    .stream__post--lead a {
        grid-template-columns: minmax(0, 1fr);
        align-items: start;
        gap: 0.5rem;
        padding-bottom: 0.9rem;
    }
    .stream__day {
        grid-column: 1 / -1;
        border-bottom: 1px solid var(--border-hair);
    }
    /* 列に並べると上下の罫を下側だけに揃える（隣り合う行の上罫と重ねない） */
    .stream__post a,
    .stream__post + .stream__post a {
        height: 100%;
        border-top: 0;
        border-bottom: 1px solid var(--border-hair);
    }
    .single-article__content .gta6-internal-link__anchor {
        grid-template-columns: 14rem minmax(0, 1fr);
        grid-template-areas:
            "media body"
            "media action";
        gap: 0.375rem 0.5rem;
        align-items: center;
    }
    .single-article__content .gta6-internal-link__body {
        grid-area: body;
        align-self: end;
    }
    .single-article__content .gta6-internal-link__title {
        font-size: 0.9375rem;
        line-height: 1.4;
    }
    .single-article__content .gta6-internal-link__action {
        grid-area: action;
        align-self: start;
        justify-self: end;
    }
    .single-article__content :is(h2.wp-block-heading, h2:not([class])) {
        font-size: 1.75rem;
    }
    .single-article__content :is(h3.wp-block-heading, h3:not([class])) {
        font-size: 1.375rem;
    }
    .single-article__content :is(h4.wp-block-heading, h4:not([class])) {
        font-size: 1.1875rem;
    }
    .article-comments__title {
        font-size: 1.625rem;
    }
    .article-comments__list .children {
        padding-left: 2rem;
    }
    .article-comments .comment-respond {
        padding: 1.75rem;
    }
    .article-comments .comment-reply-title {
        font-size: 1.375rem;
    }
}

/* ===== テーマ切替トグル — GTA6ミニマル（サンセット⇄ナイトのグラデ帯＋滑る円） ===== */
/* 表示モードの切替。左に名前、右にスイッチ */
.theme-toggle {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    border: 0;
    padding: 0;
    background: none;
    font-family: var(--font-body);
    text-align: left;
    cursor: pointer;
    /* スイッチを横になぞって切り替えられるよう、横の動きはページへ渡さない */
    touch-action: pan-y;
    -webkit-tap-highlight-color: transparent;
}

/* スイッチ: ドット絵の街（scene）の上を、ガラス玉（glass）が滑る。枠はメニューのアイコンの箱と同じ材質。
   ドットの格子は theme-toggle.js がこの大きさから決め、端末の画素の整数倍へ合わせ直す */
.theme-toggle__rail {
    position: relative;
    display: block;
    width: 5rem;
    height: 2rem;
    overflow: hidden;
    border-radius: 999px;
    background: var(--color-night);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.5);
}

.theme-toggle__rail canvas {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
}

.theme-toggle__scene {
    image-rendering: pixelated;
}

.theme-toggle__rail::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        inset 0 2px 5px rgba(0, 0, 0, 0.5);
    pointer-events: none;
}

.theme-toggle:focus-visible {
    outline: 2px solid var(--focus-ring);
    outline-offset: 3px;
    border-radius: 0.625rem;
}

/* テーマ切替の瞬間だけ: 新しい画面を、玉から広がる網点のマスク越しに重ねる。
   マスクの絵は theme-toggle.js が毎コマ --theme-switch-mask へ入れる。
   html.theme-switch が付いている間だけ効くので、ページ間遷移のクロスフェードには触れない */
html.theme-switch::view-transition-old(root),
html.theme-switch::view-transition-new(root) {
    mix-blend-mode: normal;
    animation: theme-switch-hold 700ms linear both;
}

html.theme-switch::view-transition-new(root) {
    -webkit-mask-image: var(--theme-switch-mask);
    mask-image: var(--theme-switch-mask);
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    image-rendering: pixelated;
}

/* ドロワーは切替中も生きたまま前面に置く（止め絵にすると玉の動きが止まって見える） */
html.theme-switch .site-drawer {
    view-transition-name: theme-switch-drawer;
}

html.theme-switch::view-transition-group(theme-switch-drawer) {
    animation: none;
}

html.theme-switch::view-transition-old(theme-switch-drawer) {
    display: none;
}

html.theme-switch::view-transition-new(theme-switch-drawer) {
    animation: none;
}

/* 見た目は変えず、網点が広がり切るまで遷移を保つためだけの動き */
@keyframes theme-switch-hold {
    from { opacity: 1; }
    to { opacity: 1; }
}
