/* =====================================================================
   トップページ（front-page.php）専用。トップ以外では読み込まない。
   素材はサイト共通のまま（main.css のトークン、カテゴリ札、絵葉書カード、ガラスの盤、
   ヒーローのCRTモニタ）。夜（または紙）の地の上にガラスの盤を置き、盤の上に絵葉書を載せる三層で組む。
   欄ごとに変えるのは盤の中の並べ方だけ：ヒーロー＝CRTに映るミッション選択、注目＝絵葉書、
   ランキング＝順位の札、公式＝絵と見出しの1本と時刻の行、攻略＝バナーの格子、海外の反応＝最新3本の記事と罫で区切った一覧。
   人の声（記事コメント）はヒーローの下の「みんなの声」の帯に集め、記事カードにはコメント数だけを添える。
   光らせるのはCRTだけ（DESIGN_BRIEF「光には源がある」）。紙・ガラス・カードは黒影で持ち上げる。
   寸法は rem（html の font-size が画面幅に比例する。px で書くとそこだけ拡縮しない）。
   ===================================================================== */

.hub {
    --hub-g: 1rem;
    --hub-gap: 1rem;
    /* カテゴリの文字色（見出しの棒・時刻）。正本は main.css の --cat-ink-*（モードで切り替わる） */
    --hub-official: var(--cat-ink-official);
    --hub-guide: var(--cat-ink-guide);
    --hub-matome: var(--cat-ink-matome);
    /* カテゴリに属さない欄（ランキングの数字）の色。ロゴの帯と同じマゼンタ */
    --hub-brand: var(--color-sunset);
    --hub-wiki: #F5C542;

    display: block;
    width: min(100%, var(--max-page));
    margin: 0 auto;
    padding: 0 0 2.5rem;
    color: var(--text-strong);
    line-height: 1.55;
    /* 空白の無い長い英数字（URLなど）が列の外へ伸びないように */
    overflow-wrap: anywhere;
}

html[data-theme="light"] .hub {
    --hub-brand: #C2186B;
    --hub-wiki: #8A6100;
}

/* 既定の余白を消すだけの土台。:where で詳細度を0にし、各部品の margin を上書きしない */
:where(.hub) a {
    color: inherit;
    text-decoration: none;
}

:where(.hub) :is(ol, ul) {
    margin: 0;
    padding: 0;
    list-style: none;
}

:where(.hub) :is(h2, p) {
    margin: 0;
}

:where(.hub) img {
    display: block;
    width: 100%;
    height: auto;
}

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

/* カテゴリ札：見出しの上に一段として置く */
.hub .hub-cat {
    display: flex;
    font-size: 0.66rem;
}

/* CRTの画面と筐体はモードに関わらず夜なので、分類名は生色のまま */
.hub-hero__frame {
    --cat-ink-official: var(--color-cyan);
    --cat-ink-guide: var(--color-guide);
    --cat-ink-matome: var(--color-matome);
}

/* 記事が1本も無いときのヒーローの画面。嘘の絵は映さず、夜の地に薄い「GTA6」の透かしだけを置く */
.hub-noimg {
    display: grid;
    aspect-ratio: 16 / 9;
    background: linear-gradient(160deg, var(--color-ocean), var(--color-night));
    container-type: inline-size;
    place-items: center;
}

.hub-noimg::after {
    content: "GTA6";
    color: rgba(255, 255, 255, 0.16);
    font-family: var(--font-en);
    font-size: 18cqw;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.hub-more {
    display: block;
    margin-top: 0.75rem;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 700;
    text-align: right;
}

.hub-more:hover {
    color: var(--text-link);
}

.hub-empty {
    padding: 0.75rem 0;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.hub a:focus-visible {
    outline: 2px solid var(--focus-ring);
    outline-offset: 2px;
}

/* 読み上げだけに渡す文字 */
.hub-vh {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

/* 盤（.board）と欄の見出しは main.css の共通部品。トップでは盤を画面の端から少し離して縦に積む */
.hub .board {
    margin: var(--hub-gap) var(--hub-g) 0;
}

.hub-bulletin { --board-accent: var(--hub-official); }
.hub-guides { --board-accent: var(--hub-guide); }
.hub-overseas { --board-accent: var(--hub-matome); }

/* ===== ヒーロー：CRTモニタに映るミッション選択（theme: 常時ダーク。発光する筐体なので地を反転しない） ===== */
.hub-hero {
    padding: 1.1rem var(--hub-g) 0;
}

/* 筐体。配信者PRのモニタと同じ「宙に浮いた一台」 */
.hub-hero__frame {
    position: relative;
    border: 1px solid rgba(46, 227, 243, 0.38);
    border-radius: 1.5rem;
    background: #0a0c10;
    box-shadow:
        0 0 0 0.5rem rgba(7, 21, 38, 0.18),
        0 1.5rem 3.6rem rgba(7, 21, 38, 0.34),
        0 0 2.5rem rgba(255, 46, 146, 0.1),
        0 0 3.75rem rgba(46, 227, 243, 0.08);
}

.hub-hero__screen {
    position: relative;
    z-index: 1;
    overflow: hidden;
    border-radius: 1.4375rem;
    background: #0a0c10;
    color: #fff;
}

.hub-hero__stage {
    position: relative;
    aspect-ratio: 16 / 9;
}

.hub-hero__shot {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}

.hub-hero__shot.is-on {
    opacity: 1;
    pointer-events: auto;
}

.hub-hero__shot img,
.hub-hero__stage > .hub-noimg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* スマホの切り替え：旧ヒーローと同じ小さな点。字幕の帯の右上で日付の行と並べる。押せる範囲は点より広い */
.hub-hero__dots {
    position: absolute;
    top: 0.5rem;
    right: 0.55rem;
    display: flex;
    pointer-events: auto;
}

.hub-hero__dots button {
    display: grid;
    width: 1.6rem;
    height: 1.6rem;
    padding: 0;
    border: 0;
    background: none;
    place-items: center;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.hub-hero__dots span {
    width: 0.4rem;
    height: 0.4rem;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    background: rgba(5, 6, 10, 0.6);
    transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.hub-hero__dots button[aria-pressed="true"] span {
    border-color: var(--color-cyan);
    background: var(--color-cyan);
    box-shadow: 0 0 0.5rem rgba(46, 227, 243, 0.6);
}

.hub-hero__dots button:focus-visible {
    outline: 2px solid var(--focus-ring);
    outline-offset: -2px;
}

/* 字幕は絵の下の帯。攻略のアイキャッチは見出しが焼き込まれているので、絵の上には重ねない。
   全部を同じ升に重ね、映している1本だけを見せる（切り替えで高さが跳ねない）。上に揃え、短い字幕の余りは下へ */
.hub-hero__captions {
    position: relative;
    z-index: 2;
    display: grid;
    padding: 0.7rem 1rem 0.85rem;
    pointer-events: none;
}

.hub-hero__caption {
    grid-area: 1 / 1;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hub-hero__caption.is-on {
    visibility: visible;
    opacity: 1;
}

.hub-hero__caption a {
    pointer-events: auto;
}

.hub-hero__meta {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    min-height: 1.4rem;
    margin-bottom: 0.3rem;
}

.hub-hero__meta time {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.7rem;
}

.hub-hero__title {
    font-size: 1.08rem;
    font-weight: 900;
    line-height: 1.35;
}

.hub-hero__sub {
    display: none;
}

.hub-hero__rest {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.86em;
}

/* ブラウン管の層：砂嵐・走査線・四隅の滲み。普段はほぼ透明で、ときどき一瞬だけ乱れる */
.hub-hero__noise,
.hub-hero__scan,
.hub-hero__vignette {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hub-hero__noise {
    z-index: 3;
    background: var(--crt-noise) 0 0 / 11.25rem 11.25rem repeat;
    opacity: 0;
    mix-blend-mode: screen;
    animation: hub-noise-flash 11.7s linear infinite;
}

.hub-hero__scan {
    z-index: 4;
    background: repeating-linear-gradient(180deg, rgba(0, 0, 0, 0.32) 0 1px, transparent 1px 3px);
    opacity: 0;
    animation: hub-scan-roll 17.3s linear infinite;
}

.hub-hero__vignette {
    z-index: 5;
    background:
        radial-gradient(ellipse 60% 50% at 0% 0%, rgba(255, 46, 146, 0.28), transparent 65%),
        radial-gradient(ellipse 60% 50% at 100% 0%, rgba(46, 227, 243, 0.24), transparent 65%),
        radial-gradient(ellipse 60% 50% at 0% 100%, rgba(46, 227, 243, 0.18), transparent 65%),
        radial-gradient(ellipse 60% 50% at 100% 100%, rgba(255, 46, 146, 0.2), transparent 65%),
        radial-gradient(ellipse at center, transparent 60%, rgba(0, 0, 0, 0.55) 100%);
    mix-blend-mode: screen;
    opacity: 0.65;
}

@keyframes hub-noise-flash {
    0%, 94%, 100% { opacity: 0; transform: translateX(0); }
    94.4% { opacity: 0.24; transform: translateX(-4px); }
    94.9% { opacity: 0.1; transform: translateX(5px); }
    95.4% { opacity: 0.26; transform: translateX(-2px); }
    96% { opacity: 0; transform: translateX(0); }
}

@keyframes hub-scan-roll {
    0%, 90%, 100% { opacity: 0; transform: translateY(0); }
    90.4% { opacity: 0.5; transform: translateY(-2px); }
    91% { opacity: 0.16; transform: translateY(3px); }
    91.6% { opacity: 0.42; transform: translateY(-1px); }
    92.2% { opacity: 0; transform: translateY(0); }
}

/* チャンネルを替えた瞬間の砂嵐（hub.js が .is-zapping を付ける） */
.hub-hero__frame.is-zapping .hub-hero__noise {
    animation: hub-zap-noise 0.45s steps(9);
}

.hub-hero__frame.is-zapping .hub-hero__scan {
    animation: hub-zap-scan 0.45s steps(9);
}

@keyframes hub-zap-noise {
    0% { opacity: 0.2; transform: translateX(-6px); }
    30% { opacity: 0.85; transform: translateX(5px); }
    60% { opacity: 0.5; transform: translateX(-3px); }
    100% { opacity: 0; transform: translateX(0); }
}

@keyframes hub-zap-scan {
    0% { opacity: 0.6; background-position: 0 0; }
    40% { opacity: 0.9; background-position: 0 -1.5rem; }
    100% { opacity: 0; background-position: 0 1rem; }
}

/* ===== 目的別メニュー：行き先ごとの色の線画を載せた紙の札。左に線画、右に名前と行き先で何ができるか。
   スマホは攻略Wikiと記事一覧を幅いっぱい、その下に外部の2つを2列。PCは横一列（同じ札を並べ方だけ変える） ===== */
.hub-menu {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
    margin-top: 1rem;
}

.hub-menu__card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-items: center;
    gap: 0 0.6rem;
    padding: 0.6rem 0.7rem;
    border: 1px solid var(--border-hair);
    border-radius: 1.1rem;
    background: var(--surface-card);
    box-shadow: var(--shadow-card);
    transition: transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1.08), box-shadow 220ms ease, border-color 180ms ease;
    -webkit-tap-highlight-color: transparent;
}

.hub-menu__card:hover {
    border-color: currentColor;
    box-shadow: var(--shadow-deck);
    transform: translateY(-2px);
}

.hub-menu__card:active {
    transform: translateY(1px) scale(0.99);
    transition-duration: 34ms;
}

.hub-menu__art {
    grid-row: 1 / span 2;
    width: 2.2rem;
    height: 2.2rem;
    transition: transform 320ms cubic-bezier(0.2, 0.8, 0.2, 1.08);
}

.hub-menu__art svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.hub-menu__card:hover .hub-menu__art {
    transform: rotate(-3deg);
}

.hub-menu__label {
    align-self: end;
    overflow: hidden;
    color: var(--text-strong);
    font-size: 0.9rem;
    font-weight: 900;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hub-menu__ext {
    margin-left: 0.15em;
    color: var(--text-muted);
    font-size: 0.85em;
}

.hub-menu__desc {
    align-self: start;
    overflow: hidden;
    color: var(--text-muted);
    font-size: 0.66rem;
    font-weight: 700;
    line-height: 1.4;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 行き先の色（線画と縁）。ライトの濃い色は旧 Quick Deck と同じ値 */
.hub-menu__wiki,
.hub-menu__wiki + .hub-menu__card {
    grid-column: 1 / -1;
}

.hub-menu__wiki .wiki-key__slot:nth-child(n + 4) {
    display: none;
}

.hub-menu__card--article { color: #FF5FA3; }
.hub-menu__card--youtube { color: #FF6B6B; }
.hub-menu__card--discord { color: #8A95F5; }

html[data-theme="light"] .hub-menu__card--article { color: #C9216D; }
html[data-theme="light"] .hub-menu__card--youtube { color: #D62D2D; }
html[data-theme="light"] .hub-menu__card--discord { color: #4451C9; }

/* ===== 映す記事の選択肢（PCだけ）：モニタと同じ筐体の右側。映している行が点り、画面の側へ矢印を向ける ===== */
.hub-index {
    display: none;
}

.hub-index__item {
    position: relative;
    display: flex;
}

.hub-index__item + .hub-index__item::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0.6rem;
    left: 0.6rem;
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
}

.hub-index__item a {
    display: grid;
    flex: 1;
    grid-template-columns: 1.7rem 5.6rem minmax(0, 1fr);
    align-items: center;
    gap: 0.65rem;
    padding: 0.45rem 0.6rem;
    border-radius: 0.9rem;
    transition: background 0.25s ease;
}

/* 選択肢にも同じ絵を小さく出し、画面に映るものと一目で結びつける */
.hub-index__thumb {
    overflow: hidden;
    border-radius: 0.5rem;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1);
    opacity: 0.55;
    transition: opacity 0.25s ease, box-shadow 0.25s ease;
}

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

.hub-index__item.is-on .hub-index__thumb,
.hub-index__item a:hover .hub-index__thumb {
    opacity: 1;
}

.hub-index__item.is-on .hub-index__thumb {
    box-shadow: 0 0 0 2px var(--color-cyan);
}

/* 白抜きの番号。映している1本だけ、映している行の印と同じ水色で塗る */
.hub-index__no {
    color: transparent;
    font-family: var(--font-num);
    font-size: 1.35rem;
    line-height: 1;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.36);
    transition: color 0.25s ease;
}

.hub-index__body .hub-cat {
    margin-bottom: 0.2rem;
}

.hub-index__t {
    display: block;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.42;
    transition: color 0.25s ease;
}

.hub-index__item.is-on a {
    background: rgba(46, 227, 243, 0.07);
}

.hub-index__item.is-on .hub-index__no {
    color: var(--color-cyan);
    -webkit-text-stroke: 1px var(--color-cyan);
}

.hub-index__item.is-on .hub-index__t,
.hub-index__item a:hover .hub-index__t {
    color: #fff;
}

/* 映している行から画面へ向く小さな三角 */
.hub-index__item.is-on::before {
    content: "";
    position: absolute;
    top: 50%;
    left: -0.45rem;
    border-top: 0.4rem solid transparent;
    border-right: 0.45rem solid var(--color-cyan);
    border-bottom: 0.4rem solid transparent;
    transform: translateY(-50%);
}

/* ===== みんなの声（スマホではメニューの下、PCではメニューの下の段） ===== */
.hub-hero__side {
    margin-top: 1.1rem;
}

/* みんなの声：記事コメントの新着（中身は voices.js が描く）。左の細い列に時刻、1行目に声、2行目にどの記事での話か */
.hub-live {
    padding: 0.65rem 0.9rem 0.5rem;
    border: 1px solid var(--border-hair);
    border-radius: var(--radius-lg);
    background: var(--surface-panel);
}

.hub-live[hidden] {
    display: none;
}

.hub-live__head {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.2rem;
}

.hub-live__dot {
    width: 0.42rem;
    height: 0.42rem;
    border-radius: 50%;
    background: var(--hub-brand);
    animation: hub-blink 1.6s infinite;
}

.hub-live__dot.is-receiving {
    animation: hub-blink 0.25s 4;
}

@keyframes hub-blink {
    50% { opacity: 0.25; }
}

.hub-live__ja {
    font-size: 0.8rem;
    font-weight: 900;
}

.hub-live__item a {
    display: grid;
    /* 時刻の列は「23時間」「11/19」が収まる幅だけ（声に横幅を回す） */
    grid-template-columns: 2.3rem minmax(0, 1fr);
    column-gap: 0.4rem;
    padding: 0.36rem 0;
    border-top: 1px solid var(--border-hair);
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.45;
}

.hub-live__item time {
    grid-row: 1 / span 2;
    padding-top: 0.12rem;
}

.hub-live__voice,
.hub-live__where {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hub-live__where {
    margin-top: 0.1rem;
    color: var(--text-muted);
    font-size: 0.62rem;
    font-weight: 500;
}

/* どの記事での声かの印（紙）。記事の名前の左に小さく */
.hub-live__mark svg {
    width: 1.1em;
    height: 1.1em;
    margin-right: 0.3em;
    fill: none;
    stroke: currentColor;
    stroke-linejoin: round;
    stroke-width: 2;
    vertical-align: -0.2em;
}

.hub-live__item:first-child a {
    border-top: 0;
}

.hub-live__item time {
    color: var(--text-faint);
    font-size: 0.62rem;
    white-space: nowrap;
}

.hub-live__item.is-entering {
    animation: hub-fresh 2.4s ease-out;
}

@keyframes hub-fresh {
    from { background: var(--surface-hover); }
    to { background: transparent; }
}

/* ===== 注目の記事：盤に載せた絵葉書（スマホは絵を左に置いた横長、PCは縦の絵葉書を横に並べる） ===== */
.hub-picks__list {
    display: grid;
    gap: 0.6rem;
}

.hub-picks__card {
    display: grid;
    grid-template-columns: minmax(0, 40%) minmax(0, 1fr);
    height: 100%;
    overflow: hidden;
    border: 1px solid var(--border-hair);
    border-radius: var(--radius-md);
    background: var(--surface-card);
    box-shadow: var(--shadow-card);
    transition: transform 190ms ease, box-shadow 190ms ease, border-color 190ms ease;
}

.hub-picks__card:hover {
    border-color: var(--border-strong);
    box-shadow: var(--shadow-ambient);
    transform: translateY(-3px);
}

.hub-picks__img {
    position: relative;
    display: block;
}

.hub-picks__img img {
    height: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.hub-picks__img .hub-cat {
    position: absolute;
    top: 0.4rem;
    left: 0.4rem;
    z-index: 1;
}

.hub-picks__body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 0.3rem;
    padding: 0.55rem 0.7rem;
}

.hub-picks__t {
    display: block;
    font-size: 0.82rem;
    font-weight: var(--title-weight);
    line-height: 1.42;
}

.hub-picks__body time {
    color: var(--text-faint);
    font-size: 0.7rem;
}

/* ===== よく読まれている記事：順位は絵の左上の札。1位だけ大きな絵 ===== */
.hub-rank .board__head {
    padding-bottom: 0.6rem;
    border-bottom: 1px solid var(--border-strong);
    margin-bottom: 0;
}

.hub-rank__item a {
    display: grid;
    grid-template-columns: 5.2rem minmax(0, 1fr);
    align-items: center;
    gap: 0.7rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--border-hair);
}

.hub-rank__item:last-child a {
    border-bottom: 0;
    padding-bottom: 0;
}

/* サムネに見出しが焼き込まれているので、2位以下も小さな絵で見分けられるようにする */
.hub-rank__thumb {
    position: relative;
}

.hub-rank__thumb img {
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border-radius: 0.55rem;
    object-fit: cover;
}

.hub-rank__body .hub-cat {
    margin-bottom: 0.25rem;
}

.hub-rank__t {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.42;
}

.hub-rank__item a:hover .hub-rank__t {
    color: var(--text-link);
}

.hub-rank__item--lead a {
    position: relative;
    display: block;
    padding-top: 0.8rem;
}

.hub-rank__img {
    display: block;
    overflow: hidden;
    margin-bottom: 0.6rem;
    border-radius: var(--radius-md);
}

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

.hub-rank__item--lead .rank-badge {
    top: 0.35rem;
    left: -0.4rem;
}

.hub-rank__item--lead .hub-rank__t {
    font-size: 1rem;
    font-weight: var(--title-weight);
}

/* ===== 公式情報：他の欄と同じ盤。公式の色は見出しの棒と時刻だけに使う ===== */
.hub-bulletin__main {
    display: grid;
    grid-template-columns: 42% minmax(0, 1fr);
    align-items: center;
    gap: 0.85rem;
}

.hub-bulletin__img {
    overflow: hidden;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
}

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

.hub-bulletin__body time,
.hub-bulletin__row time {
    color: var(--hub-official);
    font-size: 0.72rem;
}

.hub-bulletin__body time {
    display: block;
    margin-bottom: 0.15rem;
}

.hub-bulletin__t {
    display: block;
    font-size: 1rem;
    font-weight: var(--title-weight);
    line-height: 1.38;
}

.hub-bulletin__s {
    display: block;
    margin-top: 0.3rem;
    color: var(--text-muted);
    font-size: 0.76rem;
    font-weight: 700;
    line-height: 1.45;
}

.hub-bulletin__main:hover .hub-bulletin__t,
.hub-bulletin__row:hover span {
    color: var(--text-link);
}

.hub-bulletin__row {
    display: grid;
    grid-template-columns: 5rem minmax(0, 1fr);
    align-items: baseline;
    gap: 0.5rem;
    padding: 0.55rem 0;
    border-top: 1px solid var(--border-hair);
    font-size: 0.86rem;
    font-weight: 700;
    line-height: 1.42;
}

.hub-bulletin__main + .hub-bulletin__row {
    margin-top: 0.8rem;
}

/* ===== 攻略：画像が情報（見出しが焼き込まれたバナー）。大きな1本と2列の格子 ===== */
.hub-guides__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem 0.6rem;
}

.hub-guides__item a > img {
    aspect-ratio: 16 / 9;
    border-radius: 0.8rem;
    box-shadow: var(--shadow-card);
    object-fit: cover;
    transition: transform 190ms ease, box-shadow 190ms ease;
}

.hub-guides__item a:hover > img {
    box-shadow: var(--shadow-ambient);
    transform: translateY(-3px);
}

.hub-guides__t {
    display: block;
    margin-top: 0.4rem;
    font-size: 0.76rem;
    font-weight: 700;
    line-height: 1.42;
}

.hub-guides__item time {
    display: block;
    margin-top: 0.15rem;
    color: var(--hub-guide);
    font-size: 0.7rem;
}

.hub-guides__item--lead {
    grid-column: 1 / -1;
}

.hub-guides__item--lead .hub-guides__t {
    font-size: 0.95rem;
    font-weight: var(--title-weight);
}

.hub-wiki__h {
    margin: 0 0 0.8rem;
}

.hub-wiki__start {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin: 0 0 0.6rem;
    padding: 0.5rem 0.8rem 0.5rem 0.6rem;
    border: 2px solid var(--border-strong);
    border-radius: 0.5rem;
    background: var(--surface-card);
    box-shadow: 0 0.2rem 0 rgba(0, 0, 0, 0.4);
    transition: transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1.08), border-color 180ms ease;
    -webkit-tap-highlight-color: transparent;
}

.hub-wiki__start:hover {
    border-color: var(--hub-wiki);
    transform: translateY(-2px);
}

.hub-wiki__start:active {
    transform: translateY(1px) scale(0.99);
    transition-duration: 34ms;
}

.hub-wiki__start img {
    flex: none;
    width: 2.25rem;
    height: 2.25rem;
    image-rendering: pixelated;
    filter: drop-shadow(0 2px 0 rgba(0, 0, 0, 0.4));
}

.hub-wiki__start-text {
    display: grid;
    flex: 1;
    min-width: 0;
}

.hub-wiki__start-name {
    color: var(--text-strong);
    font-size: 0.9rem;
    font-weight: 900;
    line-height: 1.3;
}

.hub-wiki__start-sub {
    color: var(--text-muted);
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1.35;
}

.hub-wiki__start-go {
    flex: none;
    color: var(--hub-wiki);
    font-weight: 900;
}

.hub-wiki__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.hub-wiki__tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    padding: 0.65rem 0.2rem 0.55rem;
    border: 2px solid var(--border-strong);
    border-radius: 0.5rem;
    background: var(--surface-card);
    box-shadow: 0 0.2rem 0 rgba(0, 0, 0, 0.4);
    text-align: center;
    transition: transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1.08), box-shadow 220ms ease, border-color 180ms ease;
    -webkit-tap-highlight-color: transparent;
}

.hub-wiki__tile:hover {
    border-color: var(--hub-wiki);
    transform: translateY(-2px);
}

.hub-wiki__tile:active {
    transform: translateY(1px) scale(0.98);
    transition-duration: 34ms;
}

.hub-wiki__tile img {
    width: 2.25rem;
    height: 2.25rem;
    margin-bottom: 0.35rem;
    image-rendering: pixelated;
    filter: drop-shadow(0 2px 0 rgba(0, 0, 0, 0.4));
}

.hub-wiki__name {
    color: var(--text-strong);
    font-size: 0.74rem;
    font-weight: 900;
    line-height: 1.25;
    white-space: nowrap;
}

.hub-wiki__sub {
    margin-top: 0.1rem;
    color: var(--text-muted);
    font-size: 0.6rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    line-height: 1.3;
    white-space: nowrap;
}

/* ===== 海外の反応：記事の行（.stream、main.css の共通部品）。最新3本は記事の形、残りは小さな絵の一行 ===== */
.hub-overseas .board__head {
    margin-bottom: 0.4rem;
}

/* ===== 全記事への入口（板のボタン。発光させない） ===== */
.hub-all {
    display: block;
    width: fit-content;
    margin: 1.75rem auto 0;
    padding: 0.85rem 2.2rem;
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    background: var(--surface-card);
    box-shadow: var(--shadow-card);
    font-size: 0.92rem;
    font-weight: 900;
    transition: transform 190ms ease, box-shadow 190ms ease;
}

.hub-all:hover {
    box-shadow: var(--shadow-deck);
    transform: translateY(-2px);
}

/* ===== 準備中：まだ行き先の無い機能を控えめに ===== */
.hub-soon {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem 1.1rem;
    margin: 1.75rem var(--hub-g) 0;
    padding: 0.75rem 1rem;
    border: 1px dashed var(--border-strong);
    border-radius: var(--radius-lg);
    color: var(--text-muted);
}

.hub-soon__h {
    font-size: 0.76rem;
    font-weight: 900;
}

.hub-soon ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem 1rem;
    font-size: 0.78rem;
    font-weight: 700;
}

@media (prefers-reduced-motion: reduce) {
    .hub-hero__shot,
    .hub-hero__caption {
        transition: none;
    }

    .hub-hero__noise,
    .hub-hero__scan,
    .hub-live__dot,
    .hub-live__item.is-entering {
        animation: none;
    }
}

/* ===================== PC（768px〜） ===================== */
@media (min-width: 768px) {
    .hub {
        --hub-g: 0rem;
        --hub-gap: 1.25rem;
        padding: 0.25rem 2rem 2.5rem;
    }

    .hub-hero {
        padding-top: 1.5rem;
    }

    /* 一台の筐体に、左の画面と右の選択肢を収める */
    .hub-hero__frame {
        display: grid;
        grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
        align-items: stretch;
    }

    .hub-index {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 0.15rem;
        padding: 0.6rem 0.6rem 0.6rem 0.8rem;
    }

    .hub-index__item {
        flex: 0 1 auto;
    }

    .hub-hero__side {
        margin-top: 1rem;
    }

    /* みんなの声は一本の帯：左に灯りと欄名、右へ声を札で並べる */
    .hub-live {
        display: grid;
        grid-template-columns: auto auto minmax(0, 1fr);
        align-items: center;
        gap: 0.5rem 0.55rem;
        padding: 0.5rem 0.6rem 0.5rem 1.1rem;
        border-radius: 999px;
    }

    .hub-live__head {
        display: contents;
    }

    .hub-live__dot {
        grid-column: 1;
        grid-row: 1;
    }

    .hub-live__ja {
        grid-column: 2;
        grid-row: 1;
        margin-right: 0.6rem;
        white-space: nowrap;
    }

    .hub-live__list {
        display: flex;
        flex-wrap: wrap;
        gap: 0.4rem;
        grid-column: 3;
        grid-row: 1;
    }

    .hub-live__item a,
    .hub-live__item:first-child a {
        display: inline-flex;
        align-items: baseline;
        gap: 0.5rem;
        padding: 0.3rem 0.85rem;
        border: 1px solid var(--border-hair);
        border-radius: 999px;
        background: var(--surface-card);
        font-size: 0.78rem;
        transition: border-color 180ms ease;
    }

    .hub-live__voice {
        max-width: 14em;
    }

    .hub-live__where {
        max-width: 11em;
        order: 1;
    }

    .hub-live__item a:hover {
        border-color: var(--border-strong);
    }

    /* 札の中は「何が」を先に、「どこで」「いつ」を後ろに */
    .hub-live__item time {
        order: 2;
    }

    .hub-hero__dots {
        display: none;
    }

    .hub-hero__captions {
        padding: 0.8rem 1.25rem 0.95rem;
    }

    .hub-hero__title {
        font-size: 1.3rem;
    }

    .hub-hero__rest {
        display: none;
    }

    .hub-hero__sub {
        display: block;
        margin-top: 0.25rem;
        color: rgba(255, 255, 255, 0.72);
        font-size: 0.78rem;
        font-weight: 700;
        line-height: 1.45;
    }

    .hub-menu {
        grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr));
        gap: 0.9rem;
        margin-top: 1.25rem;
    }

    .hub-menu__wiki {
        --pop: 0rem;
        --slot: 2.3rem;
        --title-h: 1.45rem;
        grid-column: auto;
        align-self: stretch;
    }

    .hub-menu__wiki + .hub-menu__card {
        grid-column: auto;
    }

    .hub-menu__wiki .wiki-key__face {
        height: 100%;
        min-height: 0;
        padding: 0.45rem 0.6rem 0.45rem 0.8rem;
    }

    .hub-menu__wiki .wiki-new {
        top: -0.9rem;
    }

    .hub-menu__wiki .wiki-key__slot:nth-child(n + 4) {
        display: grid;
    }

    .hub-menu__card {
        gap: 0.05rem 0.75rem;
        padding: 0.65rem 0.8rem;
        border-radius: 1.2rem;
    }

    .hub-menu__art {
        width: 2.4rem;
        height: 2.4rem;
    }

    .hub-menu__label {
        font-size: 1rem;
    }

    .hub-menu__desc {
        font-size: 0.68rem;
    }

    /* 縦の絵葉書を横に並べる。本数で列数を決め、段の途中に穴を空けない（5本＝5列、6本＝3列×2） */
    .hub-picks__list {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 1rem;
    }

    .hub-picks__list:has(> li:last-child:nth-child(5)) {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }

    .hub-picks__list:has(> li:last-child:nth-child(3)),
    .hub-picks__list:has(> li:last-child:nth-child(6)) {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .hub-picks__list:has(> li:last-child:nth-child(-n + 2)) {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hub-picks__card {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: auto 1fr;
        border-radius: var(--radius-lg);
    }

    .hub-picks__img img {
        height: auto;
    }

    .hub-picks__body {
        padding: 0.7rem 0.85rem 0.8rem;
    }

    .hub-picks__t {
        font-size: 0.86rem;
    }

    /* 1位を左に大きく、2〜5位を右に積む */
    .hub-rank__list {
        display: grid;
        grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
        grid-auto-flow: dense;
        column-gap: 2rem;
    }

    .hub-rank__item--lead {
        grid-column: 1;
        grid-row: 1 / span 4;
    }

    .hub-rank__item:not(.hub-rank__item--lead) {
        grid-column: 2;
    }

    .hub-rank__item--lead a {
        border-bottom: 0;
    }

    .hub-rank__item:nth-last-child(2) a {
        border-bottom: 0;
    }

    .hub-bulletin__main {
        grid-template-columns: 18rem minmax(0, 1fr);
        gap: 1.4rem;
    }

    .hub-bulletin__t {
        font-size: 1.3rem;
    }

    .hub-bulletin__s {
        font-size: 0.82rem;
    }

    .hub-guides__grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 1.1rem 0.9rem;
    }

    /* 先頭の1本は横長の段：絵を左、見出しを右。2段ぶち抜きにすると見出しの長さ次第で横に空きが出る */
    .hub-guides__item--lead a {
        display: grid;
        grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
        align-items: center;
        gap: 0 1.4rem;
    }

    .hub-guides__item--lead a > img {
        grid-row: 1 / span 2;
    }

    .hub-guides__item--lead .hub-guides__t {
        align-self: end;
        margin-top: 0;
        font-size: 1.25rem;
        line-height: 1.45;
    }

    .hub-guides__item--lead time {
        align-self: start;
        margin-top: 0.4rem;
        font-size: 0.8rem;
    }

    .hub-wiki__grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        gap: 0.75rem;
    }

    .hub-wiki__tile {
        padding: 0.85rem 0.3rem 0.75rem;
    }

    .hub-wiki__tile img {
        width: 2.7rem;
        height: 2.7rem;
    }

    .hub-wiki__name {
        font-size: 0.8rem;
    }

    .hub-wiki__sub {
        font-size: 0.64rem;
    }

    .hub-soon {
        margin-top: 2rem;
    }
}
