:root {
  --red: #e5252a;
  --red-dk: #b8141a;
  --yellow: #ffd43b;
  --ink: #141414;
  --blue: #1d5fd1;
  --gray: #f2f2f0;
  --line: #d9d9d6;
  --muted: #555;
  --white: #fff;
  --font: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", "Yu Gothic UI", "Yu Gothic", Meiryo, sans-serif;
  --num: "Bahnschrift", "DIN Alternate", "Roboto Condensed", "Arial Narrow", var(--font);
  --head-h: 52px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--gray); line-height: 1.6; font-size: 15px; }
h1, h2, h3, p, ol, ul, dl, dd { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: var(--blue); }
button, input { font: inherit; color: inherit; }
img { max-width: 100%; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--yellow); color: var(--ink); padding: 8px 14px; font-weight: 800; }
.skip:focus { top: 8px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.ext { font-size: .8em; margin-left: 2px; }
[hidden] { display: none !important; }
section[id], [id="find"] { scroll-margin-top: calc(var(--head-h) + 12px); }

/* utility row */
.utility { background: var(--ink); color: #eee; font-size: 12px; }
.utility-inner { display: flex; justify-content: space-between; gap: 12px; padding-top: 5px; padding-bottom: 5px; }
.utility strong { color: var(--yellow); }
.u-pref { background: var(--red); color: #fff; font-weight: 800; padding: 1px 6px; }
.u-sep { margin: 0 6px; color: #888; }
.u-note { color: #bbb; }

/* masthead */
.masthead { background: var(--white); border-bottom: 4px solid var(--red); }
.masthead-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 8px; padding-bottom: 8px; }
/* ロゴ画像は上下に透明余白があるため、幅基準の%マージンで余白だけ詰める（縦横比は維持） */
.wordmark { display: block; flex: 0 1 260px; min-width: 0; text-decoration: none; line-height: 0; }
.wm-logo, .fb-logo { display: block; width: 100%; height: auto; margin: -5.2% 0 -4.9%; }
.head-search { display: flex; flex: 0 1 380px; border: 2px solid var(--ink); }
.head-search input { flex: 1; min-width: 0; border: 0; padding: 8px 10px; min-height: 42px; background: #fff; }
.head-search button { border: 0; background: var(--ink); color: #fff; font-weight: 800; padding: 0 16px; cursor: pointer; min-height: 42px; }
.head-search button:hover { background: var(--red); }
.gnav { background: var(--ink); position: sticky; top: 0; z-index: 30; }
.gnav-inner { display: flex; overflow-x: auto; scrollbar-width: none; }
.gnav a { flex: 0 0 auto; color: #fff; text-decoration: none; font-weight: 800; padding: 0 18px; line-height: var(--head-h); border-right: 1px solid #333; }
.gnav a:first-child { border-left: 1px solid #333; }
.gnav a:hover { background: var(--red); }

/* hero */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background:
    repeating-linear-gradient(-45deg, rgba(255,255,255,.04) 0 6px, transparent 6px 14px),
    radial-gradient(circle at 85% 30%, rgba(229,37,42,.55), transparent 55%),
    linear-gradient(120deg, #1a0d0e 0%, #2b1012 55%, #3a1214 100%);
}
/* 画像あり：筐体全体を切らずに右へ置き、暗い背景とグラデーションでつなぐ */
.hero.has-img {
  background:
    radial-gradient(ellipse at 70% 50%, rgba(229,37,42,.18), transparent 60%),
    #120909;
}
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: repeating-linear-gradient(-45deg, var(--yellow) 0 10px, var(--ink) 10px 20px); }
.hero-inner { position: relative; min-height: 250px; display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; padding-top: 24px; padding-bottom: 30px; }
.hero-copy { grid-area: 1 / 1; position: relative; z-index: 2; max-width: 520px; }
.hero.has-img .hero-inner { min-height: 0; padding-top: 0; padding-bottom: 6px; }
.hero-media { grid-area: 1 / 1; justify-self: end; position: relative; width: min(888px, 80%); margin: 0; }
.hero-media img { display: block; width: 100%; height: auto; aspect-ratio: 1942 / 809; object-fit: contain; }
.hero-media::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, #120909 0%, rgba(18,9,9,.82) 14%, rgba(18,9,9,.35) 26%, transparent 34%, transparent 96%, #120909 100%),
    linear-gradient(180deg, rgba(18,9,9,.5) 0%, transparent 7%, transparent 93%, rgba(18,9,9,.5) 100%);
}
.hero h1 { font-size: clamp(28px, 4.6vw, 48px); font-weight: 900; line-height: 1.2; letter-spacing: -.01em; text-shadow: 0 2px 0 rgba(0,0,0,.4); }
.hero h1 em { font-style: normal; color: var(--yellow); }
.br-sp { display: none; }
.hero.has-img .br-sp { display: inline; }
.hero-sub { margin-top: 10px; font-size: clamp(14px, 1.8vw, 18px); font-weight: 700; }
.hero-sub::before { content: ""; display: inline-block; width: 22px; height: 4px; background: var(--red); vertical-align: middle; margin-right: 8px; }
.hero-cap { position: absolute; right: 8px; bottom: 8px; font-size: 11px; color: rgba(255,255,255,.85); background: rgba(0,0,0,.55); padding: 1px 6px; line-height: 1.5; }

/* stats */
.stats-bar { background: var(--white); border-bottom: 2px solid var(--ink); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); }
.stats li + li { border-left: 1px solid var(--line); }
.stats a { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding: 10px 14px; color: var(--ink); text-decoration: none; min-height: 44px; }
.stats a:hover { background: #fff6d6; }
.st-k { font-size: 12px; font-weight: 800; color: #fff; background: var(--red); padding: 1px 6px; }
.stats li:nth-child(2) .st-k { background: var(--blue); }
.stats li:nth-child(3) .st-k { background: var(--ink); }
.st-v { font-weight: 800; }
.st-v b { font-family: var(--num); font-size: 26px; line-height: 1; margin: 0 2px; font-variant-numeric: tabular-nums; }

/* layout */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; padding-top: 20px; padding-bottom: 40px; align-items: start; }
.block { background: var(--white); border: 2px solid var(--ink); margin-bottom: 20px; padding: 0 16px 16px; }
.band { margin: 0 -16px 14px; background: var(--red); color: #fff; font-size: 18px; font-weight: 900; padding: 8px 16px; position: relative; letter-spacing: .02em; }
.band span { position: relative; }
.band::after { content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 90px; background: repeating-linear-gradient(-60deg, rgba(255,255,255,.22) 0 4px, transparent 4px 10px); }
.band-ink { background: var(--ink); }

/* filters */
.filters { display: grid; gap: 10px; padding: 12px; background: var(--gray); border: 1px solid var(--line); }
.f-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.f-label { font-size: 13px; font-weight: 800; min-width: 3.5em; }
.chips, .sort { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.chips button, .sort button {
  min-height: 40px; padding: 0 14px; border: 2px solid var(--ink); background: #fff; font-weight: 800; cursor: pointer; border-radius: 0;
}
.chips button:hover, .sort button:hover { background: #fff6d6; }
.chips button[aria-pressed="true"], .sort button[aria-pressed="true"] { background: var(--ink); color: var(--yellow); }
.f-search input { flex: 1 1 200px; min-height: 42px; border: 2px solid var(--ink); padding: 0 10px; background: #fff; }
.btn-reset { min-height: 42px; padding: 0 14px; background: #fff; border: 2px solid var(--red); color: var(--red-dk); font-weight: 800; cursor: pointer; }
.btn-reset:hover { background: var(--red); color: #fff; }
.status { font-size: 13px; color: var(--muted); margin: 10px 0 8px; font-weight: 700; }

/* store list */
.store-list { border-top: 2px solid var(--ink); }
.store-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px 12px; align-items: center; padding: 8px 4px; border-bottom: 1px solid var(--line); }
.sr-main { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.sr-area { flex: 0 0 auto; font-size: 11px; font-weight: 800; color: var(--blue); border: 1px solid var(--blue); padding: 0 5px; }
.sr-name { font-size: 16px; font-weight: 900; }
.sr-tags { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.dtag { font-size: 11px; font-weight: 800; padding: 1px 6px; white-space: nowrap; }
.t-res { background: #fde3e3; color: var(--red-dk); }
.t-plan { background: #e1ebfb; color: #143f8c; }
.t-pend { background: #eee; color: #444; border: 1px dashed #888; }
.store-row .btn-detail { min-height: 44px; padding: 0 12px; }
.empty { padding: 18px; border: 2px dashed var(--red); background: #fff8f8; text-align: center; display: grid; gap: 8px; justify-items: center; }
.empty-title { font-weight: 900; font-size: 17px; }

/* results */
.sec-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.scope-note { font-size: 13px; font-weight: 700; border-left: 4px solid var(--yellow); padding-left: 8px; margin-bottom: 10px; }
.sec-head .scope-note { margin-bottom: 0; }
.result-list { border-top: 2px solid var(--ink); }
.res-row { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.res-rank { background: var(--ink); color: #fff; text-align: center; padding: 6px 2px; line-height: 1.1; }
.rk-k { display: block; font-size: 10px; color: var(--yellow); font-weight: 800; }
.res-rank b { font-family: var(--num); font-size: 30px; }
.res-name { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.res-name h4 { font-size: 18px; font-weight: 900; }
/* 日付ごとの結果グループ（最新／履歴）。異なる日の結果は別グループに分ける */
.res-group + .res-group { margin-top: 18px; }
.res-day { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 6px; font-size: 17px; font-weight: 900; margin-bottom: 6px; }
.res-day .tag { align-self: center; }
.res-day small { font-size: 12px; color: var(--muted); font-weight: 800; }
.res-hist { background: var(--gray); border: 1px solid var(--line); padding: 10px 10px 4px; }
.res-hist .res-day { color: #333; }
.res-hist .result-list { background: #fff; }
.nums { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); }
.nums > div { padding: 4px 8px; border-left: 1px solid var(--line); }
.nums > div:first-child { border-left: 0; }
.nums > div.on { background: #fff6d6; box-shadow: inset 0 -3px 0 var(--yellow); }
.nums dt { font-size: 11px; font-weight: 800; color: #fff; background: var(--red); display: inline-block; padding: 0 5px; }
.nums dd { font-family: var(--num); font-size: 21px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.3; white-space: nowrap; }
.nums small { font-size: 12px; color: var(--muted); margin-left: 1px; }
.pos { color: var(--red-dk); }
.neg { color: var(--blue); }
.res-act, .ev-act { display: grid; gap: 6px; justify-items: stretch; }
.btn-detail { min-height: 44px; padding: 0 14px; background: var(--red); color: #fff; border: 2px solid var(--red); font-weight: 900; cursor: pointer; white-space: nowrap; }
.btn-detail:hover { background: var(--red-dk); border-color: var(--red-dk); }
.src-link { font-size: 13px; font-weight: 700; text-align: center; padding: 4px; }
.src-line { font-size: 12px; color: var(--muted); margin-top: 8px; }
.sec-empty { padding: 12px; background: var(--gray); font-weight: 700; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

/* events */
.event { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 14px; padding: 4px 0 8px; }
.event + .event { border-top: 1px solid var(--line); padding-top: 14px; }
.cal { border: 2px solid var(--ink); text-align: center; align-self: start; background: #fff; }
.cal-m { display: block; background: var(--red); color: #fff; font-weight: 900; font-size: 13px; }
.cal-d { display: block; font-family: var(--num); font-size: 44px; line-height: 1.05; }
.cal-w { display: block; font-weight: 900; border-top: 1px solid var(--line); }
.cal-w.sat { color: var(--blue); }
.cal-w.sun { color: var(--red); }
.ev-area { font-size: 12px; font-weight: 800; color: var(--blue); }
.ev-name { font-size: clamp(22px, 3vw, 28px); font-weight: 900; line-height: 1.2; }
.ev-title { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 8px 0 4px; }
.ev-title b { font-size: 18px; font-weight: 900; background: linear-gradient(transparent 60%, var(--yellow) 60%); }
.ev-entry { font-size: 14px; font-weight: 700; }
.ev-k { display: inline-block; font-size: 11px; background: var(--ink); color: #fff; padding: 0 6px; margin-right: 6px; }
.ev-unconf { font-size: 13px; margin-top: 4px; display: flex; gap: 6px; align-items: center; }
.tag { display: inline-block; font-size: 11px; font-weight: 900; padding: 1px 6px; margin-right: 4px; vertical-align: middle; }
.tag-fact { background: var(--ink); color: #fff; }
.tag-hyp { background: var(--yellow); color: var(--ink); }
.tag-org { background: var(--red); color: #fff; }
.tag-unk { background: #fff; color: var(--ink); border: 1px dashed var(--ink); }
.prev { margin: 12px 0; border: 2px solid #c79a00; background: #fffbea; padding: 10px; }
.prev-head { font-weight: 900; margin-bottom: 6px; }
.nums-prev { grid-template-columns: repeat(3, minmax(0, 1fr)); background: #fff; }
.nums-prev dt { background: #8a6a00; }
.prev-warn { font-size: 12.5px; font-weight: 700; margin-top: 6px; color: #5a4500; }
.ev-act { grid-auto-flow: column; justify-content: start; align-items: center; margin-top: 8px; }

/* pending */
.pend { border: 2px dashed var(--ink); padding: 12px; }
.pend-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pend-head h3 { font-size: 18px; font-weight: 900; }
.pend-date { font-size: 13px; color: var(--muted); font-weight: 700; }
.pend-st { font-weight: 900; color: var(--red-dk); margin: 6px 0; }
.timeline { border-left: 3px solid var(--line); margin: 8px 0 8px 4px; padding-left: 12px; display: grid; gap: 6px; font-size: 14px; }
.timeline time { display: block; font-family: var(--num); font-size: 12px; color: var(--muted); font-weight: 700; }
.pend-src { font-size: 13px; }

/* reference data (external) */
.ref { display: grid; gap: 12px; }
.ref-head { border-left: 6px solid var(--yellow); padding-left: 10px; }
.ref-name { font-size: 18px; font-weight: 900; margin: 4px 0 2px; }
.ref-desc { font-size: 14px; }
.ref-notes { display: grid; gap: 4px; font-size: 13.5px; }
.ref-notes li { padding-left: 1.2em; position: relative; }
.ref-notes li::before { content: "！"; position: absolute; left: 0; color: var(--red); font-weight: 900; }
.ref-check { border: 2px solid var(--ink); background: #fffbea; padding: 10px 12px; }
.ref-check-t { font-weight: 900; margin-bottom: 6px; }
.ref-check ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 14px; counter-reset: rc; font-size: 13.5px; }
.ref-check li { counter-increment: rc; display: grid; grid-template-columns: auto 1fr; gap: 0 6px; align-items: baseline; }
.ref-check li::before { content: counter(rc); font-family: var(--num); background: var(--ink); color: var(--yellow); width: 22px; text-align: center; font-weight: 700; grid-row: 1 / span 2; }
.ref-check b { font-size: 14px; font-weight: 900; }
.ref-act { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.btn-ext { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; background: var(--ink); color: var(--yellow); font-weight: 900; text-decoration: none; border: 2px solid var(--ink); }
.btn-ext:hover { background: var(--red); border-color: var(--red); color: #fff; }
.ref-checked { font-size: 12px; color: var(--muted); font-weight: 700; }

/* method / policy */
.method { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; counter-reset: m; }
.method li { border-top: 3px solid var(--ink); padding-top: 6px; counter-increment: m; }
.method b { font-size: 16px; font-weight: 900; }
.method b::before { content: counter(m); font-family: var(--num); background: var(--red); color: #fff; display: inline-block; width: 24px; text-align: center; margin-right: 6px; }
.method p { font-size: 14px; margin-top: 4px; }
.policy { display: grid; gap: 6px; font-size: 14px; }
.policy li { padding-left: 14px; position: relative; }
.policy li::before { content: ""; position: absolute; left: 0; top: .6em; width: 7px; height: 7px; background: var(--red); }

/* sidebar */
.col-side { display: grid; gap: 16px; position: sticky; top: calc(var(--head-h) + 12px); }
.side-box { background: #fff; border: 2px solid var(--ink); padding: 0 12px 12px; }
.side-title { margin: 0 -12px 10px; background: var(--ink); color: #fff; font-size: 15px; font-weight: 900; padding: 6px 12px; border-left: 6px solid var(--red); }
.side-title small { color: var(--yellow); font-size: 11px; margin-left: 4px; }
.side-cap { font-size: 12px; color: var(--muted); font-weight: 700; }
.bars { display: grid; gap: 8px; margin: 8px 0; }
.bars li { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; align-items: center; }
.bar-n { font-size: 13px; font-weight: 800; grid-column: 1 / -1; }
.bar-t { height: 10px; background: var(--gray); border: 1px solid var(--line); }
.bar-f { display: block; height: 100%; background: var(--red); }
.bar-v { font-family: var(--num); font-weight: 700; font-variant-numeric: tabular-nums; min-width: 3.5em; text-align: right; }
.sp-store { font-weight: 900; font-size: 16px; }
.sp-st { font-size: 13px; font-weight: 700; margin: 4px 0 6px; }
.side-read { display: grid; gap: 6px; font-size: 13px; }
.side-read b { color: var(--red-dk); }
.side-more { display: inline-flex; align-items: center; min-height: 44px; font-weight: 800; font-size: 13px; }
.side-more::after { content: "›"; margin-left: 4px; }

/* dialog */
.detail { width: min(860px, calc(100% - 24px)); max-height: calc(100% - 24px); padding: 0; border: 3px solid var(--ink); border-radius: 0; box-shadow: 8px 8px 0 var(--red); }
.detail::backdrop { background: rgba(0,0,0,.6); }
.detail[open] { display: flex; flex-direction: column; }
.detail-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; background: var(--red); color: #fff; padding: 6px 8px 6px 16px; flex: 0 0 auto; }
.detail-head h2 { font-size: 18px; font-weight: 900; }
.detail-close { min-height: 44px; min-width: 44px; padding: 0 12px; background: var(--ink); color: #fff; border: 0; font-weight: 900; cursor: pointer; }
.detail-close:hover { background: #000; color: var(--yellow); }
.detail-body { overflow-y: auto; padding: 14px 16px 20px; overscroll-behavior: contain; }
.dt-area { font-size: 12px; font-weight: 800; color: var(--blue); }
.dt-sec { border-top: 3px solid var(--ink); padding-top: 10px; margin-top: 12px; display: grid; gap: 10px; }
.dt-sec h3 { font-size: 17px; font-weight: 900; }
.dt-prev { background: #fffbea; border: 2px solid #c79a00; border-top-width: 3px; padding: 10px; }
.dt-hyp { font-size: 14px; border-left: 4px solid var(--yellow); padding-left: 8px; }
.dt-note { font-size: 13px; font-weight: 700; }
.dt-basis { font-size: 13px; color: var(--muted); }
.meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); font-size: 13px; }
.meta > div { display: grid; grid-template-columns: 5.5em 1fr; border-bottom: 1px solid var(--line); }
.meta dt { background: var(--gray); font-weight: 800; padding: 4px 6px; }
.meta dd { padding: 4px 6px; }
.cautions { font-size: 13px; display: grid; gap: 2px; }
.cautions li { padding-left: 1.2em; position: relative; }
.cautions li::before { content: "！"; position: absolute; left: 0; color: var(--red); font-weight: 900; }
.facts { display: grid; gap: 6px; }
.facts li { display: grid; grid-template-columns: 8em 1fr; gap: 2px 10px; border-bottom: 1px dashed var(--line); padding-bottom: 6px; font-size: 14px; }
.facts b { font-size: 13px; }
.facts small { grid-column: 2; font-size: 12px; color: var(--muted); }
.facts .unconf b { color: var(--red-dk); }
.table-wrap { overflow-x: auto; border: 1px solid var(--ink); -webkit-overflow-scrolling: touch; background: #fff; }
table { border-collapse: collapse; width: 100%; min-width: 460px; font-size: 13px; }
th, td { padding: 5px 8px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
thead th { background: var(--red); color: #fff; font-weight: 800; text-align: right; position: sticky; top: 0; }
thead th:first-child, tbody th, td.txt { text-align: left; }
tbody th { font-weight: 800; }
tbody tr:nth-child(even) { background: #fafafa; }
td { font-family: var(--num); font-size: 14px; }
td.txt { font-family: var(--font); font-size: 13px; }

/* footer */
.site-footer { background: var(--ink); color: #ddd; border-top: 6px solid var(--red); padding: 22px 0 28px; font-size: 13px; }
.footer-inner { display: grid; gap: 8px; }
.footer-brand { width: min(300px, 100%); line-height: 0; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 0 4px; }
.footer-nav a { color: #fff; font-weight: 700; display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; }
.footer-nav a:first-child { padding-left: 0; }

/* bottom nav (mobile) */
.bottom-nav { display: none; }

@media (max-width: 960px) {
  /* タブレット以下：コピーと画像帯を縦に分け、画像は全幅で全体を表示 */
  .hero.has-img .hero-inner { grid-template-columns: minmax(0, 1fr); }
  .hero.has-img .hero-copy { grid-area: auto; max-width: none; padding: 20px 0 16px; }
  .hero-media { grid-area: auto; justify-self: stretch; width: auto; margin: 0 -16px; }
  .hero-media::before { background: linear-gradient(180deg, #120909 0%, transparent 8%, transparent 94%, rgba(18,9,9,.4) 100%); }
  .layout { grid-template-columns: minmax(0, 1fr); }
  .col-side { position: static; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
}

@media (max-width: 720px) {
  body { font-size: 14px; padding-bottom: calc(60px + env(safe-area-inset-bottom)); }
  .utility-inner { flex-direction: column; gap: 0; }
  .u-note { font-size: 11px; }
  .masthead-inner { flex-direction: column; align-items: stretch; gap: 10px; }
  .wordmark { flex: 0 0 auto; align-self: center; width: min(230px, 100%); }
  .head-search { flex: 1 1 auto; }
  .gnav a { padding: 0 12px; font-size: 14px; }
  .hero-inner { min-height: 180px; padding-top: 18px; padding-bottom: 34px; }
  .br-sp { display: inline; }
  .hero-cap { left: 8px; right: auto; bottom: 6px; font-size: 10px; }
  .stats a { padding: 8px; flex-direction: column; gap: 2px; align-items: flex-start; }
  .st-k { font-size: 11px; }
  .st-v b { font-size: 22px; }
  .layout { padding-left: 10px; padding-right: 10px; gap: 16px; }
  .block { padding: 0 12px 12px; }
  .band { margin: 0 -12px 12px; padding: 8px 12px; font-size: 17px; }
  .store-row { grid-template-columns: minmax(0, 1fr) auto; }
  .sr-tags { grid-column: 1; grid-row: 2; justify-content: flex-start; }
  .store-row .btn-detail { grid-column: 2; grid-row: 1 / span 2; }
  .res-row { grid-template-columns: 52px minmax(0, 1fr); }
  .res-rank b { font-size: 24px; }
  .res-act { grid-column: 1 / -1; grid-template-columns: 1fr auto; align-items: center; }
  .nums { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nums > div:nth-child(3) { border-left: 0; }
  .nums > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .nums-prev { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .nums-prev > div:nth-child(3) { border-left: 1px solid var(--line); }
  .nums-prev > div:nth-child(n+3) { border-top: 0; }
  .event { grid-template-columns: 64px minmax(0, 1fr); gap: 10px; }
  .cal-d { font-size: 32px; }
  .ev-act { grid-auto-flow: row; justify-content: stretch; }
  .method { grid-template-columns: 1fr; }
  .ref-check ol { grid-template-columns: 1fr; }
  .btn-ext { width: 100%; justify-content: center; text-align: center; }
  .res-hist { padding: 8px 6px 2px; }
  .meta { grid-template-columns: 1fr; }
  .facts li { grid-template-columns: 1fr; }
  .facts small { grid-column: 1; }
  .detail { width: 100%; max-width: 100%; max-height: 100%; height: 100%; margin: 0; border: 0; box-shadow: none; }
  .bottom-nav {
    display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    background: var(--ink); border-top: 3px solid var(--red); padding-bottom: env(safe-area-inset-bottom);
  }
  .bottom-nav a { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 56px; color: #fff; text-decoration: none; font-size: 11px; font-weight: 800; gap: 1px; }
  .bottom-nav a:active, .bottom-nav a:hover { background: #2a2a2a; }
  .bn-i { width: 24px; height: 24px; display: grid; place-items: center; background: var(--red); font-size: 13px; font-weight: 900; }
  .bottom-nav a:nth-child(2) .bn-i { background: var(--yellow); color: var(--ink); }
  .bottom-nav a:nth-child(3) .bn-i { background: var(--blue); }
  .bottom-nav a:nth-child(4) .bn-i { background: #fff; color: var(--ink); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ===== 店舗一覧・地域ページ（scripts/build.js の生成ページ、トップの店舗一覧検索） ===== */
.page { padding-top: 16px; padding-bottom: 40px; max-width: 980px; }
.page-title { font-size: 26px; font-weight: 900; line-height: 1.35; margin: 6px 0 12px; border-left: 8px solid var(--red); padding-left: 10px; }
.page > .scope-note { margin-bottom: 16px; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 0 6px; font-size: 13px; }
.crumbs li + li::before { content: "›"; margin-right: 6px; color: var(--muted); }
.crumbs a { font-weight: 700; }
.area-meta, .hall-meta, .about-meta { grid-template-columns: 1fr; margin-bottom: 4px; }
.area-meta > div, .hall-meta > div, .about-meta > div { grid-template-columns: 8em 1fr; }
.area-note { margin-top: 10px; font-size: 14px; }
.hall-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.hall-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 16px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.hr-name { font-size: 16px; font-weight: 900; margin-right: 6px; }
.hr-main .dtag { margin-right: 4px; }
.hr-addr { font-size: 13px; color: var(--muted); margin-top: 2px; }
.hr-loc { display: inline-block; margin-left: 8px; font-weight: 700; color: var(--ink); }
.hr-act .src-link { display: inline-block; }
.area-links { display: flex; flex-wrap: wrap; gap: 6px; }
.area-links a { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 4px 12px; border: 2px solid var(--ink); background: #fff; color: var(--ink); font-weight: 800; text-decoration: none; }
.area-links a:hover { background: var(--red); border-color: var(--red); color: #fff; }
.al-n { font-family: var(--num); font-size: 12px; font-weight: 700; background: var(--yellow); color: var(--ink); padding: 0 5px; }
.al-hub { flex-basis: 100%; display: grid; gap: 6px; }
.al-hub > a { justify-self: start; background: var(--ink); color: #fff; }
.al-sub { padding-left: 14px; border-left: 3px solid var(--line); }
.al-sub a { min-height: 36px; border-width: 1px; }
.data-halls { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.data-halls a { font-weight: 800; margin-right: 4px; }
.hub-link, .dir-hub a, .dir-all a { font-weight: 800; }
.hall-official { margin: 12px 0 10px; }
.hall-data .dt-sec:first-of-type { margin-top: 4px; }
.prose { display: grid; gap: 10px; font-size: 14px; }
.back-areas, .back-top { margin: 4px 0 16px; font-weight: 700; display: flex; flex-wrap: wrap; gap: 4px 16px; }
.dir-form { margin-bottom: 8px; }
.dir-fields { display: grid; grid-template-columns: auto minmax(0, 240px) auto minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.dir-fields select, .dir-fields input { min-height: 44px; border: 2px solid var(--ink); background: #fff; padding: 0 8px; font: inherit; min-width: 0; }
.dir-fields button { min-height: 44px; border: 0; background: var(--ink); color: #fff; font-weight: 800; padding: 0 18px; cursor: pointer; }
.dir-fields button:hover { background: var(--red); }
.dir-results { display: grid; border-top: 1px solid var(--line); margin-bottom: 12px; max-height: 520px; overflow-y: auto; }
.dir-item { padding: 8px 0; border-bottom: 1px solid var(--line); }
.dir-name { font-weight: 900; margin-right: 6px; }
.dir-meta { display: block; font-size: 13px; color: var(--muted); }
.dir-h { font-size: 16px; font-weight: 900; margin: 14px 0 8px; border-bottom: 3px solid var(--ink); padding-bottom: 2px; }
.dir-areas { display: grid; gap: 12px; }
.dir-gt { font-size: 14px; font-weight: 900; margin: 0 0 6px; }
.dir-hub { margin-bottom: 6px; }
@media (max-width: 720px) {
  .page-title { font-size: 21px; }
  .hall-row { grid-template-columns: 1fr; }
  .area-meta > div, .hall-meta > div, .about-meta > div { grid-template-columns: 6em 1fr; }
  .dir-fields { grid-template-columns: 1fr; }
  .dir-fields button { width: 100%; }
  .hall-official .btn-ext { width: 100%; }
}
