@import url("./vegas-world.css?v=night-stock-6");
/* デザインシステム STOCK AFTER DARK（後から読み込んで上書きする） */
@import url("./ds/tokens.css?v=ds-1");
@import url("./ds/fonts.css?v=ds-1");
@import url("./ds/base.css?v=ds-1");
@import url("./ds/components.css?v=ds-1");
@import url("./ds/pages.css?v=ds-1");
@import url("./ds/motion.css?v=ds-1");
/* =========================================================
   Sから始まるStock日記 — ゲームセンター版のデザイン
   ・サイト全体は「暗い背景＋ネオンの差し色」で統一
   ・記事本文は白い「読書パネル」（記事内グラフの白背景と合わせる）
   色はすべてここのトークンで管理する
   ========================================================= */
:root {
  /* 外側（ゲームセンター） */
  --bg: #07070f;
  --bg-2: #0b0b18;
  --panel: #10111d;
  --panel-2: #171a2b;
  --line: #24263a;
  --line-2: #33364f;
  --ink: #f1f2ff;
  --ink-2: #c9cbe3;
  --muted: #8f93b5;
  --neon-y: #ffd23f;        /* 黄：S印・強調 */
  --neon-p: #ff4fa3;        /* ピンク */
  --neon-c: #3ee0ff;        /* シアン */
  --neon-v: #8a6cff;        /* 紫 */
  --glow-y: 0 0 24px #ffd23f55;
  /* 読書パネル（記事本文） */
  --paper: #ffffff;
  --paper-2: #f3f3f7;
  --paper-ink: #1b2025;
  --paper-ink-2: #3c444c;
  --paper-muted: #6b7279;
  --paper-line: #e1e2ea;
  --paper-accent: #2747b8;
  --paper-marker: #ffe88a;
  --code: #14161f;
  --shadow: 0 10px 40px rgb(0 0 0 / 45%);
  --radius: 14px;
  --font: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "BIZ UDPGothic", "Yu Gothic UI", Meiryo, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  color-scheme: dark;
}
/* ダークモードの人はまぶしさを少し抑える（グラフの白背景とは揃えたまま） */
@media (prefers-color-scheme: dark) {
  :root { --paper: #f6f6f9; --paper-2: #ebebf1; }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 120px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.85;
  overflow-wrap: anywhere;
}
img { max-width: 100%; height: auto; }
a { color: var(--neon-c); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--neon-y); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4 { line-height: 1.4; letter-spacing: .01em; }

.wrap { width: min(1240px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(780px, 100% - 32px); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; z-index: 100; background: var(--panel); padding: 8px 12px; }
.kicker { margin: 0 0 4px; font: 700 1rem var(--mono); letter-spacing: .28em; text-transform: uppercase; color: var(--neon-p); }
.chip { display: inline-block; padding: 0 10px; border-radius: 999px; background: #ffffff12; color: var(--ink-2); font-size: 1rem; font-weight: 700; line-height: 1.9; white-space: nowrap; }
.button { display: inline-block; padding: 9px 20px; border-radius: 999px; background: var(--neon-y); color: #111; font-weight: 900; text-decoration: none; }

/* ---------- ヘッダー ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: #07070fe0; backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 22px; min-height: 62px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; flex: none; }
.brand-mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 9px; background: var(--neon-y); color: #111; font: 900 1.3rem Georgia, "Times New Roman", serif; box-shadow: var(--glow-y); }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-size: 1.1rem; font-weight: 900; letter-spacing: .02em; }
.brand-small { font: 700 1rem var(--mono); letter-spacing: .32em; color: var(--neon-p); }
.global-nav { flex: 1; min-width: 0; }
.global-nav ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; overflow-x: auto; scrollbar-width: none; }
.global-nav ul::-webkit-scrollbar { display: none; }
.global-nav a { display: block; white-space: nowrap; padding: 5px 11px; border-radius: 8px; color: var(--muted); text-decoration: none; font-size: 1rem; font-weight: 700; }
.global-nav a:hover { color: var(--ink); background: #ffffff0d; }
.global-nav a[aria-current="page"] { color: #fff; background: #ffffff17; }
.global-nav .nav-game a { color: var(--neon-y); }
.header-tools { display: flex; align-items: center; gap: 10px; flex: none; }
.found-meter { display: flex; align-items: baseline; gap: 6px; padding: 4px 11px; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); font-size: 1rem; text-decoration: none; white-space: nowrap; }
.found-meter b { color: #fff; font: 700 1rem var(--mono); }
.found-meter[hidden] { display: none; }
.search-link { display: inline-grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); text-decoration: none; }
.search-link:hover { border-color: var(--neon-c); color: var(--neon-c); }
.search-link span { position: absolute; left: -9999px; }
@media (max-width: 900px) {
  .header-row { flex-wrap: wrap; gap: 0 12px; padding-top: 8px; }
  .header-tools { margin-left: auto; }
  .global-nav { order: 3; flex-basis: 100%; margin: 4px -16px 0; padding: 0 16px 8px; }
  .found-meter span:first-child { display: none; }
}

/* ---------- ゲームセンター（トップ） ---------- */
.arcade-hero { position: relative; overflow: hidden; padding: 42px 0 0; background:
  linear-gradient(180deg, transparent 55%, var(--bg) 100%),
  radial-gradient(600px 300px at 15% 10%, #ff4fa333, transparent 70%),
  radial-gradient(700px 300px at 85% 0%, #3ee0ff2a, transparent 70%), var(--bg-2); }
.arcade-hero::after { content: ""; position: absolute; left: -10%; right: -10%; bottom: 0; height: 200px; pointer-events: none; transform: perspective(400px) rotateX(55deg); transform-origin: bottom;
  background: linear-gradient(transparent, var(--bg)), repeating-linear-gradient(90deg, #8a6cff33 0 1px, transparent 1px 80px), repeating-linear-gradient(0deg, #8a6cff33 0 1px, transparent 1px 40px); }
.arcade-title { margin: 0; text-align: center; font-size: clamp(1.9rem, 4.6vw, 3.5rem); font-weight: 900; letter-spacing: .04em; line-height: 1.25; }
.arcade-title span { color: var(--neon-y); text-shadow: 0 0 24px #ffd23f66; }
.arcade-lead { text-align: center; color: var(--muted); margin: 6px 0 30px; }
.cabs { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; padding-bottom: 40px; margin: 0; list-style: none; padding-left: 0; }
.cab { --c: #ff4fa3; --c2: #8a6cff; display: flex; flex-direction: column; align-items: center; color: var(--ink); text-decoration: none; transition: transform .2s; }
a.cab:hover, a.cab:focus-visible { transform: translateY(-6px); }
.cab-mq { width: 100%; padding: 10px 8px 8px; text-align: center; border-radius: 12px 12px 4px 4px; background: linear-gradient(180deg, var(--c), var(--c2)); box-shadow: 0 0 22px var(--c), inset 0 -3px 0 #0004; }
.cab-no { display: block; font: 900 1.35rem var(--mono); line-height: 1; color: #fff; text-shadow: 0 2px 0 #0005; }
.cab-name { display: block; font: 900 1rem var(--mono); letter-spacing: .14em; color: #fff; }
.cab-body { width: 94%; background: linear-gradient(90deg, #15172a, #22253f 50%, #15172a); border-inline: 4px solid var(--c); padding: 12px 10px 0; box-shadow: 0 0 18px color-mix(in srgb, var(--c) 40%, transparent); }
.cab-scr { position: relative; aspect-ratio: 3 / 4; border-radius: 10px; overflow: hidden; background: #000; border: 6px solid #050508; box-shadow: inset 0 0 30px #000; }
.cab-scr img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cab-scr::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(135deg, #ffffff22, transparent 40%), repeating-linear-gradient(0deg, #0002 0 1px, transparent 1px 3px); }
.cab-deck { margin: 10px -16px 0; height: 38px; background: linear-gradient(180deg, #2c3052, #191b30); clip-path: polygon(8% 0, 92% 0, 100% 100%, 0 100%); display: flex; align-items: center; justify-content: center; gap: 12px; }
.cab-deck i { width: 13px; height: 13px; border-radius: 50%; background: var(--c); box-shadow: 0 0 8px var(--c), inset 0 -2px 0 #0005; }
.cab-deck i:last-child { background: var(--neon-y); box-shadow: 0 0 8px var(--neon-y); }
.cab-deck b { width: 6px; height: 20px; background: #ccc; border-radius: 3px; position: relative; top: -6px; }
.cab-deck b::before { content: ""; position: absolute; left: -5px; top: -8px; width: 16px; height: 16px; border-radius: 50%; background: #e33; }
.cab-base { width: 94%; padding: 12px 10px 14px; background: #111325; border: 4px solid var(--c); border-top: 0; border-radius: 0 0 10px 10px; text-align: center; }
.cab-op { display: block; font-size: 1rem; color: var(--muted); min-height: 36px; line-height: 1.5; }
.cab-go { display: inline-block; margin-top: 6px; padding: 4px 18px; border-radius: 999px; background: var(--c); color: #111; font: 900 1rem var(--mono); letter-spacing: .12em; }
.cab-soon .cab-scr::before { content: "COMING SOON"; position: absolute; z-index: 2; left: -30%; right: -30%; top: 44%; text-align: center; transform: rotate(-14deg); background: var(--neon-y); color: #111; font: 900 1rem var(--mono); letter-spacing: .2em; padding: 4px 0; }
.cab-soon .cab-go { background: var(--line-2); color: var(--muted); }
.cab-soon { cursor: default; }
@media (max-width: 1000px) {
  .cabs { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: -16px; padding-inline: 16px; scrollbar-width: thin; }
  .cab { flex: 0 0 min(58%, 220px); scroll-snap-align: start; }
  .cab-name { font-size: 1rem; letter-spacing: .04em; }
}

.arcade-lower { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 22px; margin-block: 10px 40px; }
.box { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.box-head { display: flex; justify-content: space-between; align-items: baseline; margin: 0 0 12px; font: 700 1rem var(--mono); letter-spacing: .28em; color: var(--muted); }
.box-head a { color: var(--neon-y); letter-spacing: .1em; text-decoration: none; }
.topics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.mini { display: block; color: var(--ink); text-decoration: none; }
.mini img, .mini .mini-noimg { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; display: block; background: var(--panel-2); }
.mini h3 { margin: 8px 0 2px; font-size: 1rem; line-height: 1.5; font-weight: 700; }
.mini small { color: var(--muted); font-size: 1rem; }
.mini:hover h3 { color: var(--neon-y); }
.stats-row { display: flex; justify-content: space-between; padding: 9px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 1rem; }
.stats-row b { color: #fff; font: 700 1rem var(--mono); }
.stats-row .stats-note { display: block; font-size: 1rem; opacity: .8; }
.rank { margin-top: 10px; padding: 10px; border-radius: 10px; text-align: center; font: 900 1.1rem var(--mono); letter-spacing: .2em; }
.rank-bar { height: 6px; border-radius: 3px; background: var(--line); margin-top: 8px; overflow: hidden; }
.rank-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--neon-p), var(--neon-y)); }
.note { color: var(--muted); font-size: 1rem; margin: 10px 0 0; line-height: 1.6; }
@media (max-width: 1000px) { .arcade-lower { grid-template-columns: 1fr; } .topics { grid-template-columns: repeat(2, 1fr); } }

/* ---------- セクション・カード ---------- */
.section { margin-block: 48px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); margin-bottom: 20px; padding-bottom: 8px; }
.section-head h2 { margin: 0; font-size: 1.25rem; }
.section-head a { font-size: 1rem; font-weight: 700; text-decoration: none; white-space: nowrap; color: var(--neon-y); }
.section-desc { margin: -8px 0 20px; color: var(--muted); font-size: 1rem; }
.section-battle { background: linear-gradient(135deg, #ff4fa314, #3ee0ff10), var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); gap: 20px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease; }
.card:hover { transform: translateY(-3px); border-color: var(--neon-c); box-shadow: 0 0 0 1px var(--neon-c), 0 0 24px #3ee0ff33; }
.card-link { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.card-thumb { aspect-ratio: 16 / 9; background: var(--panel-2); overflow: hidden; }
.card-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-noimg { display: grid; place-items: center; height: 100%; font: 900 3rem Georgia, serif; color: var(--line-2); }
.card-body { padding: 12px 15px 16px; }
.card-meta { display: flex; align-items: center; gap: 10px; margin: 0 0 6px; font-size: 1rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.card-title { margin: 0; font-size: 1rem; font-weight: 700; line-height: 1.55; }
.card-lead { margin-bottom: 8px; }
.card-lead .card-excerpt { margin: 10px 0 0; color: var(--ink-2); font-size: 1rem; }
@media (min-width: 820px) {
  .card-lead .card-link { flex-direction: row; }
  .card-lead .card-thumb { flex: 0 0 56%; }
  .card-lead .card-body { padding: 28px 30px; align-self: center; }
  .card-lead .card-title { font-size: 1.5rem; }
}

/* ---------- 一覧 ---------- */
.list-head { padding: 36px 0 24px; }
.list-head h1 { margin: 0; font-size: clamp(1.6rem, 4vw, 2.3rem); }
.list-desc { margin: 8px 0 0; color: var(--ink-2); }
.list-count { margin: 8px 0 0; color: var(--muted); font: 1rem var(--mono); }
.pagination { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 40px 0 64px; flex-wrap: wrap; font-variant-numeric: tabular-nums; }
.pagination ol { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.pagination a, .pagination span { display: inline-grid; place-items: center; min-width: 40px; height: 40px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); text-decoration: none; color: var(--ink); font-weight: 700; font-family: var(--mono); }
.pagination a:hover { border-color: var(--neon-c); }
.pagination [aria-current] { background: var(--neon-y); color: #111; border-color: var(--neon-y); }
.pagination .pg-disabled { opacity: .35; }
.pagination .pg-gap { align-self: center; color: var(--muted); }

/* ---------- 記事（暗い外枠＋白い読書パネル） ---------- */
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; padding-top: 28px; }
.article { min-width: 0; max-width: 820px; margin-inline: auto; width: 100%; background: var(--paper); color: var(--paper-ink); border-radius: 18px; padding: 30px clamp(18px, 4vw, 44px) 36px; box-shadow: var(--shadow), 0 0 0 1px #ffffff14; }
.article a { color: var(--paper-accent); }
@media (min-width: 1160px) {
  .article-layout.has-toc { grid-template-columns: minmax(0, 820px) 280px; justify-content: center; }
  .toc-inline { display: none; }
}
@media (max-width: 600px) { .article-layout { padding-top: 14px; } .article { border-radius: 12px; } }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: 1rem; color: var(--paper-muted); }
.article .breadcrumb a { color: var(--paper-muted); }
.article-title { margin: 12px 0 10px; font-size: clamp(1.45rem, 3.4vw, 2.05rem); font-weight: 900; }
.article-meta { display: flex; gap: 16px; margin: 0 0 20px; color: var(--paper-muted); font-size: 1rem; font-variant-numeric: tabular-nums; }
.article-eyecatch { display: block; width: 100%; border-radius: 12px; border: 1px solid var(--paper-line); margin-bottom: 28px; }

.toc { border-radius: var(--radius); font-size: 1rem; }
.toc ol { list-style: none; margin: 0; padding: 0; }
.toc li a { display: block; padding: 4px 0; text-decoration: none; line-height: 1.5; }
.toc .toc-3 a { padding-left: 1em; font-size: 1rem; }
.toc-inline { margin-bottom: 28px; background: var(--paper-2); border: 1px solid var(--paper-line); }
.toc-inline li a { color: var(--paper-ink-2); }
.toc-inline summary { cursor: pointer; padding: 12px 18px; font-weight: 700; }
.toc-inline ol { padding: 0 18px 14px; }
.toc-side { display: none; background: var(--panel); border: 1px solid var(--line); }
.toc-side li a { color: var(--ink-2); }
.toc-side li a:hover { color: var(--neon-y); }
.toc-side .toc-3 a { color: var(--muted); }
@media (min-width: 1160px) {
  .toc-side { display: block; position: sticky; top: 90px; align-self: start; max-height: calc(100vh - 110px); overflow: auto; padding: 18px 20px; }
}
.toc-title { margin: 0 0 8px; font: 700 1rem var(--mono); letter-spacing: .28em; color: var(--neon-p); }

/* 本文（WordPress のブロックHTMLにも対応） */
.prose { font-size: 1.03rem; }
.prose > * { margin-block: 0 1.25em; }
.prose h2 { margin: 2.6em 0 1em; padding: .55em .9em; font-size: 1.35rem; background: #10111d; color: #fff; border-left: 6px solid var(--neon-y); border-radius: 6px; }
.prose h3 { margin: 2em 0 .8em; padding-bottom: .3em; font-size: 1.16rem; border-bottom: 2px solid var(--paper-line); }
.prose h4 { margin: 1.6em 0 .6em; font-size: 1.04rem; }
.prose strong { background: linear-gradient(transparent 60%, var(--paper-marker) 60%); }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: .3em; }
.prose hr { border: 0; border-top: 1px solid var(--paper-line); margin: 2.4em 0; }
.prose figure { margin-inline: 0; }
.prose figure img, .prose > p img { border-radius: 8px; }
.prose figcaption { color: var(--paper-muted); font-size: 1rem; text-align: center; margin-top: 6px; }
.prose blockquote { margin-inline: 0; padding: 14px 20px; background: var(--paper-2); border-left: 4px solid var(--neon-v); border-radius: 0 8px 8px 0; color: var(--paper-ink-2); }
.prose blockquote > :last-child { margin-bottom: 0; }
.prose blockquote cite { display: block; margin-top: 6px; font-size: 1rem; color: var(--paper-muted); font-style: normal; }
.prose code { font-family: var(--mono); font-size: 1em; background: var(--paper-2); padding: .1em .35em; border-radius: 4px; }
.prose pre { background: var(--code); color: #e6e8ea; padding: 16px 18px; border-radius: 10px; overflow-x: auto; font-size: 1rem; line-height: 1.65; }
.prose pre code { background: none; padding: 0; color: inherit; }
.table-scroll, .prose .wp-block-table { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.prose table { border-collapse: collapse; width: 100%; font-size: 1rem; font-variant-numeric: tabular-nums; background: var(--paper); }
.prose th, .prose td { border: 1px solid var(--paper-line); padding: 8px 10px; text-align: left; vertical-align: top; }
.prose th, .prose thead td { background: var(--paper-2); font-weight: 700; white-space: nowrap; }
.prose .has-text-align-center { text-align: center; }
.prose .has-text-align-right { text-align: right; }
.prose .aligncenter { margin-inline: auto; text-align: center; }
.prose .wp-block-image.aligncenter img, .prose .aligncenter img { margin-inline: auto; }
.prose .notice { padding: 14px 18px; background: #fff6cf; border-radius: 10px; }
.article .button { color: #111; }
/* 枠線は外側の .sn-embed に付け、iframe 自体は枠なし（枠線の分だけ高さが足りずにスクロールバーが出るのを防ぐ） */
.sn-embed { margin: 2em -8px; border: 1px solid var(--paper-line); border-radius: 12px; overflow: hidden; background: #fff; }
.sn-embed iframe { display: block; width: 100%; border: 0; background: #fff; }
@media (min-width: 900px) { .sn-embed { margin-inline: -24px; } }

.article-foot { margin-top: 48px; padding-top: 24px; border-top: 2px solid var(--paper-ink); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 24px; }
.tags a { display: inline-block; padding: 2px 12px; border: 1px solid var(--paper-line); border-radius: 999px; background: var(--paper-2); color: var(--paper-ink-2) !important; text-decoration: none; font-size: 1rem; }
.tags a:hover { border-color: var(--paper-ink); }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 28px; font-size: 1rem; }
.share span { font-weight: 700; color: var(--paper-muted); margin-right: 4px; }
.share a, .share button { padding: 6px 14px; border-radius: 999px; background: #10111d; color: #fff !important; text-decoration: none; font: inherit; font-weight: 700; border: 0; cursor: pointer; }
.share a:hover, .share button:hover { background: #2a2d45; }
.prevnext { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 28px; }
.prevnext a { display: block; padding: 14px 16px; background: var(--paper-2); border: 1px solid var(--paper-line); border-radius: 12px; color: var(--paper-ink) !important; text-decoration: none; font-size: 1rem; line-height: 1.5; }
.prevnext a:hover { border-color: var(--paper-ink); }
.prevnext a span { display: block; font-size: 1rem; color: var(--paper-muted); font-weight: 700; margin-bottom: 4px; }
.prevnext .next { text-align: right; }
@media (max-width: 600px) { .prevnext { grid-template-columns: 1fr; } .prevnext .next { text-align: left; } }
.game-cta { display: flex; align-items: center; gap: 14px; margin-top: 22px; padding: 14px 18px; border-radius: 12px; background: #10111d; color: #fff !important; text-decoration: none; }
.game-cta b { display: block; color: var(--neon-y); font: 900 1rem var(--mono); letter-spacing: .2em; }
.game-cta small { color: #c9cbe3; font-size: 1rem; }
.game-cta i { font-style: normal; margin-left: auto; color: var(--neon-y); font-weight: 900; }

/* ---------- ランキング・フッター ---------- */
.ranking { text-align: center; padding: 20px 0; }
.ranking-lead { margin: 0 0 10px; font-size: 1rem; color: var(--muted); }
.article .ranking-lead { color: var(--paper-muted); }
.ranking-banners { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: center; }
.ranking-banners img { display: block; }
.site-footer { margin-top: 80px; background: var(--bg-2); border-top: 1px solid var(--line); padding-top: 40px; font-size: 1rem; }
.footer-grid { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.footer-brand { margin: 0; font-weight: 900; font-size: 1.05rem; }
.footer-tagline { margin: 4px 0 12px; color: var(--muted); }
.footer-head { margin: 0 0 8px; font: 700 1rem var(--mono); letter-spacing: .28em; color: var(--neon-p); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li a { color: var(--ink-2); text-decoration: none; line-height: 2; }
.site-footer li a:hover { color: var(--neon-y); text-decoration: underline; }
.footer-sns { display: flex; gap: 16px; }
.copyright { color: var(--muted); font-size: 1rem; padding: 16px 0 32px; border-top: 1px solid var(--line); margin-top: 8px; }

/* ---------- 検索・404 ---------- */
.notfound { padding: 48px 0 0; }
.notfound-code { margin: 0; font: 900 clamp(4rem, 16vw, 8rem) var(--mono); line-height: 1; color: var(--neon-p); text-shadow: 0 0 30px #ff4fa366; }
.search-form { display: flex; gap: 8px; margin-top: 20px; }
.search-form input, .search-box input { flex: 1; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--panel); color: var(--ink); font: inherit; }
.search-form input:focus, .search-box input:focus { border-color: var(--neon-c); outline: none; box-shadow: 0 0 0 3px #3ee0ff33; }
.search-form button { padding: 0 20px; border-radius: 10px; border: 0; background: var(--neon-y); color: #111; font: inherit; font-weight: 900; cursor: pointer; }
.hint { color: var(--muted); font-size: 1rem; }

@media (prefers-reduced-motion: reduce) {
  .card, .cab { transition: none; }
  .card:hover, a.cab:hover { transform: none; }
}

/* ---------- ビルド不要版の追加分 ---------- */
#sn-header { min-height: 63px; }
@media (max-width: 900px) { #sn-header { min-height: 98px; } }
.is-loading { min-height: 40vh; }
.loading-note { color: var(--muted); padding: 40px 0; text-align: center; }
.search-box { display: flex; gap: 8px; margin-bottom: 20px; }
.search-box input { padding: 14px 16px; border-radius: 12px; font-size: 1.05rem; }
.search-count { color: var(--muted); font-size: 1rem; margin: 0 0 16px; }
.search-results { list-style: none; margin: 0; padding: 0; }
.search-results li { border-top: 1px solid var(--line); }
.search-results a { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 16px 0; color: inherit; text-decoration: none; }
.search-results a:hover h2 { color: var(--neon-y); }
.search-results img, .search-results a > span { width: 120px; aspect-ratio: 16/9; object-fit: cover; border-radius: 8px; background: var(--panel-2); }
.search-results h2 { margin: 0 0 4px; font-size: 1rem; }
.search-results p { margin: 0; color: var(--muted); font-size: 1rem; line-height: 1.6; }
.search-results mark { background: #ffd23f44; color: inherit; }
@media (max-width: 520px) { .search-results a { grid-template-columns: 88px 1fr; } .search-results img, .search-results a > span { width: 88px; } }
