/* キボ速 — 夜空の紺 × 空色 × 星の金 */
:root {
  --bg: #f2f5fb; --panel: #ffffff; --ink: #18213d; --muted: #5a6685; --line: #dde4f2; --soft: #eef3fd;
  --night: #14275a; --night2: #0c1838; --azure: #2b6ff2; --star: #f4c04e; --on-night: #ffffff;
  --c-matome: #2b6ff2; --c-overseas: #12996f; --c-news: #e0533a; --c-data: #7d55e8; --c-guide: #d98a0c;
  --red: #d6303d; --blue: #2459c9; --green: #1f8f4e;
  --radius: 12px; --shadow: 0 1px 2px rgba(20, 39, 90, .06), 0 6px 18px rgba(20, 39, 90, .07);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1122; --panel: #141c33; --ink: #e8ecf6; --muted: #9ba7c6; --line: #25304c; --soft: #1a2442;
    --azure: #78a6ff; --c-matome: #78a6ff; --c-overseas: #3cc79a; --c-news: #ff8064; --c-data: #a888ff; --c-guide: #f2b347;
    --red: #ff6b75; --blue: #86aaff; --green: #57c785; --shadow: 0 1px 2px rgba(0, 0, 0, .3);
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink);
       font: 16px/1.8 "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic UI", Meiryo, sans-serif; }
a { color: var(--azure); }
a:focus-visible, .btn:focus-visible { outline: 3px solid var(--star); outline-offset: 2px; }
img { max-width: 100%; height: auto; }

/* ヘッダー */
.site-header { color: var(--on-night);
  background:
    radial-gradient(1px 1px at 12% 30%, #fff8 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 38% 70%, #fff9 50%, transparent 51%),
    radial-gradient(1px 1px at 63% 25%, #fff7 50%, transparent 51%),
    radial-gradient(2px 2px at 82% 60%, #f4c04ecc 50%, transparent 51%),
    radial-gradient(1px 1px at 92% 20%, #fff8 50%, transparent 51%),
    linear-gradient(120deg, #2457c9 0%, var(--night) 55%, var(--night2) 100%); }
.header-in, .gnav-in, .footer-in { max-width: 1120px; margin: 0 auto; padding-inline: 16px; }
.header-in { padding-block: 14px 10px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name { font-size: 1.6rem; font-weight: 900; letter-spacing: .04em; }
.brand-sub { font-size: .78rem; opacity: .85; letter-spacing: .02em; }
.gnav { background: rgba(5, 12, 32, .35); border-top: 1px solid rgba(255, 255, 255, .12); }
.gnav-in { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.gnav-in::-webkit-scrollbar { display: none; }
.gnav a { color: #fff; text-decoration: none; white-space: nowrap; font-size: .9rem; font-weight: 600;
          padding: 10px 12px; border-bottom: 3px solid transparent; }
.gnav a:hover { border-bottom-color: var(--star); }
.promo { max-width: 1120px; margin: 8px auto 0; padding-inline: 16px; font-size: .72rem; color: var(--muted); }

/* レイアウト */
.wrap { max-width: 1120px; margin: 0 auto; padding: 16px; display: grid;
        grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: start; }
main { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
main > section { min-width: 0; }
@media (max-width: 920px) { .wrap { grid-template-columns: minmax(0, 1fr); } }

.sec-title { font-size: 1.05rem; margin: 0 0 12px; display: flex; align-items: center; gap: 8px; }
.sec-title::before { content: ""; width: 12px; height: 12px; background: var(--star);
                     clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }
.page-title { font-size: 1.4rem; margin: 0; }
.crumb { font-size: .8rem; color: var(--muted); }
.crumb a { color: var(--muted); }

/* チップ(カテゴリ色) */
.chip { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .03em; line-height: 1;
        padding: 5px 9px; border-radius: 999px; color: #fff; background: var(--c-matome); text-decoration: none; white-space: nowrap; }
.chip-matome { background: var(--c-matome); } .chip-overseas { background: var(--c-overseas); }
.chip-news { background: var(--c-news); } .chip-data { background: var(--c-data); } .chip-guide { background: var(--c-guide); }
@media (prefers-color-scheme: dark) { .chip { color: #0b1122; } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }

/* カード */
.grid, .pickup-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.grid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.pickup-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pickup-grid .card-hero { grid-column: 1 / -1; }
.card { min-width: 0; }
.card-link { display: flex; flex-direction: column; height: 100%; background: var(--panel); border-radius: var(--radius);
             overflow: hidden; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); border: 1px solid var(--line);
             transition: transform .15s ease, box-shadow .15s ease; }
.card-link:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(20, 39, 90, .14); }
.thumb { display: block; width: 100%; aspect-ratio: 1200 / 630; object-fit: cover; background: var(--soft); }
.thumb-none { background: linear-gradient(120deg, var(--azure), var(--night)); }
.card-body { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px 14px; align-items: flex-start; }
.card-title { font-weight: 700; line-height: 1.55; font-size: .95rem;
              display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-date { font-size: .75rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.card-hero .card-link { display: grid; grid-template-columns: 1.35fr 1fr; }
.card-hero .card-body { justify-content: center; padding: 18px 20px; gap: 10px; }
.card-hero .card-title { font-size: 1.25rem; -webkit-line-clamp: 4; }
@media (max-width: 640px) {
  .card-hero .card-link { display: flex; }
  .card-hero .card-title { font-size: 1.1rem; }
  .pickup-grid { grid-template-columns: minmax(0, 1fr); }
  .grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .grid .card-link, .pickup-grid .card:not(.card-hero) .card-link { flex-direction: row; align-items: flex-start; }
  .grid .thumb, .grid .thumb-none, .pickup-grid .card:not(.card-hero) .thumb { width: 44%; flex: none; height: auto; align-self: flex-start; }
  .grid .card-body, .pickup-grid .card:not(.card-hero) .card-body { padding: 8px 10px; gap: 4px; }
  .grid .card-title, .pickup-grid .card:not(.card-hero) .card-title { font-size: .86rem; }
  .grid .card-date, .pickup-grid .card:not(.card-hero) .card-date { font-size: .7rem; }
}
.pager { display: flex; justify-content: space-between; }
.pager:empty { display: none; }
.btn { display: inline-block; background: var(--panel); border: 1px solid var(--line); border-radius: 999px;
       padding: 8px 18px; text-decoration: none; font-weight: 700; color: var(--ink); }

/* サイドバー */
aside { display: grid; gap: 20px; min-width: 0; }
.side-box { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.side-box h2 { font-size: .95rem; margin: 0 0 12px; padding-bottom: 8px; border-bottom: 2px solid var(--night); }
@media (prefers-color-scheme: dark) { .side-box h2 { border-bottom-color: var(--azure); } }
.mini { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; counter-reset: rank; }
.mini a { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 10px; align-items: start; text-decoration: none; color: var(--ink); position: relative; }
.mini-thumb { width: 96px; aspect-ratio: 1200 / 630; object-fit: cover; border-radius: 6px; display: block; }
.mini-title { font-size: .84rem; font-weight: 600; line-height: 1.5;
              display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.numbered li { counter-increment: rank; }
.numbered a::before { content: counter(rank); position: absolute; left: -6px; top: -6px; z-index: 1; width: 22px; height: 22px;
                      border-radius: 50%; background: var(--star); color: #1b1b1b; font-size: .75rem; font-weight: 800;
                      display: grid; place-items: center; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); }
.xbox p { margin: 0 0 10px; font-size: .85rem; color: var(--muted); }
.btn-x { background: #000; color: #fff; border-color: #000; width: 100%; text-align: center; }

/* 記事 */
.post { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); min-width: 0; }
@media (max-width: 640px) { .post { padding: 14px; border-radius: 0; margin-inline: -16px; border-inline: 0; } }
.post-meta { display: flex; align-items: center; gap: 10px; margin-top: 10px; font-size: .82rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.post-title { font-size: 1.55rem; line-height: 1.45; margin: 8px 0 14px; text-wrap: balance; }
@media (max-width: 640px) { .post-title { font-size: 1.3rem; } }
.eyecatch { display: block; width: 100%; aspect-ratio: 1200 / 630; border-radius: 10px; margin-bottom: 14px; }
.share { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 12px 0; }
.sh { text-align: center; color: #fff; font-weight: 700; font-size: .85rem; text-decoration: none; padding: 9px 4px; border-radius: 8px; }
.sh-x { background: #000; } .sh-line { background: #06c755; } .sh-hatena { background: #00a4de; }
.src-top { font-size: .78rem; color: var(--muted); word-break: break-all; margin-bottom: 10px; }
.post-body h2 { font-size: 1.15rem; margin: 30px 0 12px; padding: 10px 12px; background: var(--soft);
                border-left: 5px solid var(--night); border-radius: 0 8px 8px 0; }
@media (prefers-color-scheme: dark) { .post-body h2 { border-left-color: var(--azure); } }
.post-body p { margin: 0 0 14px; }
.lead { background: linear-gradient(120deg, var(--soft), transparent); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; margin-bottom: 18px; }
.lead::before { content: "管理人より"; display: block; font-size: .72rem; font-weight: 800; color: var(--azure); letter-spacing: .08em; margin-bottom: 4px; }
.tbl { overflow-x: auto; margin: 0 0 16px; border: 1px solid var(--line); border-radius: 10px; }
table { border-collapse: collapse; width: 100%; font-size: .9rem; }
th, td { border-bottom: 1px solid var(--line); padding: 8px 10px; text-align: left; min-width: 4.8em; vertical-align: top; }
td:first-child, th:first-child { min-width: 3em; white-space: nowrap; }
td:nth-child(2) { min-width: 6.5em; }
th { background: var(--night); color: #fff; font-weight: 700; white-space: nowrap; }
tbody tr:nth-child(even) td { background: var(--soft); }
caption { caption-side: bottom; text-align: left; font-size: .75rem; color: var(--muted); padding: 6px 10px; }
.linkcard { margin: 0 0 12px; }
.linkcard a { display: block; border: 1px solid var(--line); border-left: 5px solid var(--star); border-radius: 8px;
              padding: 12px 14px; text-decoration: none; font-weight: 700; color: var(--ink); background: var(--panel); }
.linkcard a::before { content: "関連記事"; display: block; font-size: .7rem; color: var(--muted); font-weight: 600; }
.twitter-tweet { margin: 16px auto; }
figure.quote { margin: 18px 0 6px; padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--soft); }
figure.quote img { display: block; margin: 0 auto; border-radius: 6px; max-height: 560px; width: auto; }
figure.quote figcaption { font-size: .75rem; color: var(--muted); margin-top: 8px; word-break: break-all; }
figure.quote figcaption::before { content: "引用 "; font-weight: 800; color: var(--azure); }
figure.quote.licensed figcaption::before { content: none; }
.quote-note { margin: 0 0 18px; }
blockquote.twitter-tweet { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; background: var(--soft); max-width: 550px; }
blockquote.twitter-tweet a { font-weight: 700; text-decoration: none; }
blockquote.twitter-tweet a.x-fallback::before { content: "𝕏 "; }

/* 5chレス */
.res { padding: 12px 2px; border-bottom: 1px dashed var(--line); }
.res-head { font-size: .78rem; color: var(--muted); }
.res-no { font-weight: 800; color: var(--ink); }
.res-name { color: var(--green); font-weight: 700; }
.res-body { margin-top: 4px; font-size: 1.02rem; word-break: break-word; }
.res-red .res-body { color: var(--red); font-weight: 700; font-size: 1.12rem; }
.res-blue .res-body { color: var(--blue); font-weight: 700; }
.res-big .res-body { font-size: 1.35rem; font-weight: 800; }
.ov { border: 1px solid var(--line); border-radius: 10px; padding: 12px; margin: 10px 0; }
.ov-head, .ov-note { font-size: .78rem; color: var(--muted); }
.ov-excerpt { font-size: .85rem; color: var(--muted); border-left: 3px solid var(--line); padding-left: 8px; margin: 6px 0; }

.prevnext { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 16px 0; }
.pn { display: flex; flex-direction: column; gap: 4px; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; text-decoration: none; color: var(--ink); }
.pn-next { grid-column: 2; text-align: right; }
.pn-label { font-size: .72rem; color: var(--muted); font-weight: 700; }
.pn-title { font-size: .85rem; font-weight: 700; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sources { font-size: .8rem; word-break: break-all; color: var(--muted); border-top: 1px solid var(--line); padding-top: 8px; }
.sources h2 { font-size: .9rem; color: var(--ink); }
.ad { text-align: center; }
.ad:empty { display: none; }

/* フッター */
.site-footer { margin-top: 32px; background: var(--night2); color: #c8d2ec; font-size: .8rem; }
.footer-in { padding-block: 24px; display: grid; gap: 10px; justify-items: start; }
.site-footer a { color: #fff; }
.site-footer nav { display: flex; gap: 16px; }
.brand-foot .brand-name { font-size: 1.2rem; color: #fff; }
@media (prefers-reduced-motion: reduce) { .card-link { transition: none; } .card-link:hover { transform: none; } }

/* ===== 公式素材を使ったデザイン(許諾範囲 header / site_design のときだけクラスが付く) ===== */
.site-header.has-hero {
  background:
    linear-gradient(90deg, rgba(10, 20, 52, .92) 0%, rgba(10, 20, 52, .72) 32%, rgba(10, 20, 52, .05) 62%, transparent 100%),
    url("/brand/header-wide.webp") center 30% / cover no-repeat, var(--night);
}
.site-header.has-hero .header-in { min-height: 220px; display: flex; align-items: center; padding-block: 24px; }
.site-header.has-hero .brand-name { font-size: 2.6rem; text-shadow: 0 2px 10px rgba(0, 0, 0, .55); }
.site-header.has-hero .brand-sub { font-size: .95rem; text-shadow: 0 1px 6px rgba(0, 0, 0, .6); }
.site-header.has-hero .brand img { width: 64px; height: 64px; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .5)); }
.site-header.has-hero .gnav { background: rgba(5, 12, 32, .82); backdrop-filter: blur(4px); }
@media (max-width: 640px) {
  .site-header.has-hero {
    background:
      linear-gradient(180deg, rgba(10, 20, 52, .15) 0%, rgba(10, 20, 52, .35) 45%, rgba(10, 20, 52, .9) 100%),
      url("/brand/header-sp.webp") center 25% / cover no-repeat, var(--night);
  }
  .site-header.has-hero .header-in { min-height: 170px; align-items: flex-end; padding-block: 14px; }
  .site-header.has-hero .brand-name { font-size: 1.9rem; }
  .site-header.has-hero .brand img { width: 48px; height: 48px; }
}

.faces { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px 6px; }
.faces a { display: flex; flex-direction: column; align-items: center; gap: 4px; text-decoration: none; color: var(--ink); font-size: .72rem; font-weight: 700; }
.faces img { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; border: 3px solid var(--panel);
             box-shadow: 0 0 0 2px var(--star), 0 2px 6px rgba(20, 39, 90, .2); transition: transform .15s ease; }
.faces a:hover img { transform: scale(1.06); }
.faces span { text-align: center; line-height: 1.3; }
.chara-strip .faces { display: flex; gap: 14px; overflow-x: auto; padding: 6px 4px 10px; scrollbar-width: thin; }
.chara-strip .faces li { flex: none; width: 72px; }
.chara-strip .faces img { width: 66px; height: 66px; }
.more { margin: 12px 0 0; font-size: .82rem; text-align: right; }

.official-box { position: relative; overflow: hidden; }
.official-box .deco { position: absolute; right: -8px; top: 6px; width: 92px; height: auto; opacity: .95; pointer-events: none; }
.official-box h2, .official-box p { padding-right: 70px; }
.official-box p { margin: 0 0 12px; font-size: .84rem; color: var(--muted); }
.official-box .btns { display: grid; gap: 8px; position: relative; }
.official-box .btn { text-align: center; padding: 8px 10px; font-size: .88rem; }
.btn-pre { background: linear-gradient(120deg, #f4c04e, #f09a3e); border-color: transparent; color: #2b1a00; }

.site-footer.has-world {
  background:
    linear-gradient(180deg, rgba(12, 24, 56, .55) 0%, rgba(12, 24, 56, .92) 55%, var(--night2) 100%),
    url("/brand/footer-world.webp") center 35% / cover no-repeat, var(--night2);
}
.site-footer.has-world .footer-in { padding-block: 80px 28px; }
@media (prefers-reduced-motion: reduce) { .faces img { transition: none; } .faces a:hover img { transform: none; } }

/* ===== A: 情報量と回遊の改善 ===== */
/* NEW バッジ */
.new { display: inline-block; background: #e8273b; color: #fff; font-size: .66rem; font-weight: 900; letter-spacing: .06em;
       line-height: 1; padding: 4px 6px; border-radius: 4px; margin-right: 6px; vertical-align: 2px; }
.card-meta { display: flex; align-items: center; gap: 6px; }
.card-meta .new { margin: 0; }

/* 新着: コンパクトなリスト(PCは2列、スマホは1列) */
.grid.list-compact { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.list-compact .card-link { flex-direction: row; align-items: center; box-shadow: none; }
.list-compact .thumb, .list-compact .thumb-none { width: 150px; flex: none; height: auto; aspect-ratio: 1200 / 630; align-self: center; object-fit: cover; }
.list-compact .card-link { padding-left: 0; }
.list-compact .card-body { padding: 8px 12px; gap: 4px; }
.list-compact .card-title { font-size: .9rem; -webkit-line-clamp: 2; }
.list-compact .card-date { font-size: .72rem; }
@media (max-width: 640px) {
  .grid.list-compact { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .list-compact .thumb, .list-compact .thumb-none { width: 112px; }
  .list-compact .card-body { padding: 6px 10px; }
  .list-compact .card-title { font-size: .84rem; }
  .list-compact .chip { font-size: .62rem; padding: 3px 7px; }
  /* ピックアップも小さく */
  .card-hero .card-body { padding: 10px 12px; gap: 6px; }
  .card-hero .card-title { font-size: 1rem; -webkit-line-clamp: 2; }
  .card-hero .card-date { display: none; }
}

/* 1行リスト(記事下・検索結果) */
.rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.rows a { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 12px; align-items: center; text-decoration: none; color: var(--ink);
          background: var(--panel); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.row-thumb { width: 120px; aspect-ratio: 1200 / 630; object-fit: cover; display: block; }
.row-body { display: flex; flex-direction: column; gap: 2px; padding: 6px 10px 6px 0; min-width: 0; }
.row-title { font-weight: 700; font-size: .88rem; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rows time { font-size: .72rem; color: var(--muted); font-variant-numeric: tabular-nums; }

/* ヘッダー: 検索アイコンと、記事ページ用の低いヘッダー */
.header-in { position: relative; }
.head-search { margin-left: auto; display: inline-flex; flex-direction: column; align-items: center; gap: 2px; color: #fff; text-decoration: none;
               font-size: .68rem; font-weight: 700; padding: 6px 8px; border-radius: 10px; background: rgba(5, 12, 32, .35); }
.head-search:hover { background: rgba(5, 12, 32, .6); }
.site-header .header-in { display: flex; align-items: center; gap: 12px; }
.site-header.has-hero.hero-compact .header-in { min-height: 120px; }
.site-header.has-hero.hero-compact .brand-name { font-size: 2rem; }
.site-header.has-hero.hero-compact .brand img { width: 52px; height: 52px; }
@media (max-width: 640px) {
  .site-header.has-hero.hero-compact .header-in { min-height: 96px; align-items: center; }
  .site-header.has-hero.hero-compact .brand-name { font-size: 1.5rem; }
  .site-header.has-hero.hero-compact .brand-sub { display: none; }
  .site-header.has-hero.hero-compact .brand img { width: 40px; height: 40px; }
  .site-header.has-hero .header-in { align-items: flex-end; }
  .head-search span { display: none; }
}

/* スマホ: 画面下の固定メニュー */
.bottom-bar { display: none; }
@media (max-width: 920px) {
  .bottom-bar { display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
                background: rgba(12, 24, 56, .96); backdrop-filter: blur(6px); border-top: 1px solid rgba(255, 255, 255, .12);
                padding-bottom: env(safe-area-inset-bottom, 0px); }
  .bottom-bar a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 7px 0 6px; color: #dfe6f8;
                  text-decoration: none; font-size: .66rem; font-weight: 700; }
  .bottom-bar svg { width: 22px; height: 22px; }
  .bottom-bar a:active { color: var(--star); }
  body { padding-bottom: calc(58px + env(safe-area-inset-bottom, 0px)); }
}

/* カテゴリメニュー(:target で開くドロワー。JS不要) */
.drawer { display: none; }
.drawer:target { display: block; position: fixed; inset: 0; z-index: 60; }
.drawer-bg { position: absolute; inset: 0; background: rgba(5, 10, 25, .55); }
.drawer-panel { position: absolute; right: 0; top: 0; bottom: 0; width: min(320px, 86vw); background: var(--panel); padding: 16px;
                overflow-y: auto; box-shadow: -8px 0 24px rgba(0, 0, 0, .3); padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
.drawer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.drawer-close { font-size: .85rem; text-decoration: none; color: var(--muted); }
.drawer-cats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.drawer-cats .chip { font-size: .85rem; padding: 8px 12px; }
.drawer-links { display: grid; }
.drawer-links a { padding: 12px 4px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 600; }

/* 検索ページ */
.search-form input { width: 100%; font-size: 1rem; padding: 12px 14px; border-radius: 10px; border: 2px solid var(--line);
                     background: var(--panel); color: var(--ink); }
.search-form input:focus { outline: none; border-color: var(--azure); }
.search-status { font-size: .85rem; color: var(--muted); }

/* 広告枠(4か所)。サイドバーは追従 */
.ad-sidebar { position: sticky; top: 16px; }
.ad-preview { border: 2px dashed var(--line); border-radius: 10px; color: var(--muted); font-size: .8rem; font-weight: 700;
              display: grid; place-items: center; min-height: 100px; margin: 16px 0; background: repeating-linear-gradient(45deg, transparent 0 10px, var(--soft) 10px 20px); }
.ad-sidebar.ad-preview { min-height: 250px; }

@media (max-width: 640px) {
  /* スマホのトップ: ヘッダーを低く、ピックアップの大カードは画像(タイトル入り)+分類だけに */
  .site-header.has-hero .header-in { min-height: 140px; }
  .site-header.has-hero .brand-sub { font-size: .72rem; }
  .card-hero .card-title, .card-hero .card-date { display: none; }
  .card-hero .card-body { padding: 8px 12px; }
  .list-compact .card-link { align-items: center; }
}

/* ===== 他の上位まとめサイトとの比較で追加した要素 ===== */
/* 一覧の抜粋文(PCのコンパクトリストだけで表示) */
.card-excerpt { display: none; }
@media (min-width: 641px) {
  .list-compact .card-excerpt { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
                                font-size: .76rem; color: var(--muted); line-height: 1.5; }
}

/* 話題タグ */
.topic { display: inline-block; font-size: .78rem; font-weight: 700; color: var(--azure); background: var(--soft);
         border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; text-decoration: none; }
.topic:hover { border-color: var(--azure); }
.topics { display: flex; flex-wrap: wrap; gap: 6px; margin: -4px 0 12px; }
.drawer-label { font-size: .78rem; font-weight: 800; color: var(--muted); margin: 0 0 8px; }
.drawer-topics { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }

/* 目的から探す */
.hubs ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.hubs a { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 10px; align-items: center; padding: 8px; height: 100%;
          background: var(--panel); border: 1px solid var(--line); border-radius: 10px; text-decoration: none; color: var(--ink);
          box-shadow: var(--shadow); transition: border-color .15s ease; }
.hubs a:hover { border-color: var(--azure); }
.hubs img, .hub-noimg { width: 96px; aspect-ratio: 1200 / 630; object-fit: cover; border-radius: 6px; display: block; background: var(--soft); }
.hub-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.hub-title { font-weight: 800; font-size: .9rem; }
.hub-desc { font-size: .72rem; color: var(--muted); line-height: 1.45; }
@media (max-width: 920px) { .hubs ul { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .hubs ul { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .hubs a { grid-template-columns: minmax(0, 1fr); padding: 6px; gap: 4px; }
  .hubs img, .hub-noimg { width: 100%; }
  .hub-desc { display: none; }
  .hub-title { font-size: .82rem; text-align: center; }
}

/* Xのフォロー導線 */
.x-cta { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
         background: var(--soft); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin: 14px 0; }
.x-cta p { margin: 0; font-size: .82rem; color: var(--muted); }
.x-cta strong { display: block; color: var(--ink); font-size: .92rem; }
.x-cta .btn-x { width: auto; }

/* アフィリエイト商品(PR表記付き) */
.product { position: relative; border: 2px solid var(--star); border-radius: 12px; padding: 14px 16px 14px 16px; margin: 16px 0; background: var(--panel); }
.product .pr { position: absolute; top: -10px; left: 12px; background: var(--star); color: #2b1a00; font-size: .68rem; font-weight: 900; padding: 2px 8px; border-radius: 4px; }
.product-body { display: flex; flex-direction: column; gap: 6px; }
.product-name { font-weight: 800; }
.product-note { font-size: .8rem; color: var(--muted); }
.btn-shop { align-self: flex-start; background: linear-gradient(120deg, #f4c04e, #f09a3e); color: #2b1a00; border-color: transparent; }

/* YouTube */
figure.yt { margin: 12px 0 22px; }
.yt-frame { position: relative; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: #000; }
.yt-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
figure.yt figcaption { font-size: .78rem; color: var(--muted); margin-top: 6px; }

/* 掲示板の反応 */
.reactions { margin: 28px 0 8px; border: 1px solid var(--line); border-radius: 12px; padding: 4px 16px 10px; background: var(--panel); }
.reactions h2 { margin-top: 14px; }
.reactions-note { font-size: .75rem; color: var(--c-news); font-weight: 700; margin: 0 0 4px; }

/* 目次 */
.toc { margin: 18px 0 22px; border: 1px solid var(--line); border-radius: 12px; background: var(--soft); }
.toc summary { cursor: pointer; padding: 10px 14px; font-weight: 800; font-size: .95rem; }
.toc ol { margin: 0; padding: 0 16px 12px 36px; display: grid; gap: 6px; font-size: .9rem; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }
.post-body h2[id] { scroll-margin-top: 72px; }

/* 配信日・テスト日程 */
.schedule-main { margin: 22px 0; padding: 4px 16px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.sch-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.sch { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.sch:last-child { border-bottom: 0; }
.sch-state { font-size: .72rem; font-weight: 800; padding: 3px 8px; border-radius: 999px; background: var(--soft); color: var(--muted); white-space: nowrap; }
.sch-live .sch-state { background: var(--red); color: #fff; }
.sch-soon .sch-state { background: var(--azure); color: #fff; }
.sch-main { display: grid; gap: 2px; min-width: 0; }
.sch-label { font-weight: 800; font-size: .92rem; }
.sch-label a { text-decoration: none; }
.sch-span { font-size: .78rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.sch-count { font-size: .8rem; font-weight: 800; white-space: nowrap; font-variant-numeric: tabular-nums; }
.sch-done { opacity: .6; }
.sch-note { font-size: .72rem; color: var(--muted); margin: 8px 0 0; }
.side-box.schedule .sch { grid-template-columns: auto minmax(0, 1fr); }
.side-box.schedule .sch-count { grid-column: 2; }
.new.up { background: var(--green); }
@media (min-width: 921px) { .schedule-main { display: none; } }
