/* 件数のページ（/area/ 以下）の CSS。値は DESIGN.md（src/styles/main.css の :root と同じ値）。16進の値は :root の中だけ。
   JavaScript を使わない静的なページなので、main.css は読まない。表は数字の比較表なので table を使う。 */
:root {
  --c-text: #1B1F24; --c-text-muted: #56606B; --c-canvas: #F6F7F9; --c-surface: #FFFFFF;
  --c-line: #E4E8ED; --c-border: #D3D8DE; --c-border-strong: #7C8794;
  --c-accent: #0F5AA8; --c-accent-hover: #0B4682; --c-accent-soft: #E8F0F9; --c-on-accent: #FFFFFF;
  --c-neutral-soft: #ECEEF1; --c-notice: #6B4A00; --c-notice-soft: #FFF6DB;
  --font: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic UI", "Meiryo", sans-serif;
  --ctl: 2.75rem;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--c-surface); color: var(--c-text); font-family: var(--font); font-size: 0.9375rem; line-height: 1.7; font-variant-numeric: tabular-nums; line-break: strict; overflow-wrap: anywhere; }
h1, h2, h3, p, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: var(--c-accent); text-underline-offset: 0.2em; }
a:hover { color: var(--c-accent-hover); }
:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { text-wrap: balance; }
.nb { white-space: nowrap; }
small { font-size: 0.8125rem; font-weight: 400; color: var(--c-text-muted); }

.wrap { max-width: 64rem; margin: 0 auto; padding: 0 1rem; }
.top { border-bottom: 1px solid var(--c-line); }
.top__in { display: flex; align-items: center; gap: 0.75rem; min-height: 3.5rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: var(--ctl); padding: 0 1rem; border: 1px solid var(--c-border-strong); border-radius: 10px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.btn--primary { border-color: var(--c-accent); background: var(--c-accent); color: var(--c-on-accent); }
.btn--primary:hover { border-color: var(--c-accent-hover); background: var(--c-accent-hover); color: var(--c-on-accent); }
.cta { justify-items: start; }
.logo { margin-right: auto; display: inline-flex; align-items: center; min-height: 3rem; color: var(--c-text); font-weight: 700; text-decoration: none; white-space: nowrap; }
main { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; padding-top: 0.5rem; padding-bottom: 2.5rem; }
h1 { font-size: 1.5rem; font-weight: 700; line-height: 1.35; }
.crumb ol { display: flex; flex-wrap: wrap; align-items: center; font-size: 0.8125rem; color: var(--c-text-muted); }
.crumb li { display: inline-flex; align-items: center; min-height: var(--ctl); }
.crumb li + li::before { content: "＞"; margin: 0 0.5rem; }
.crumb a { display: inline-flex; align-items: center; min-height: var(--ctl); font-weight: 600; }

.ar { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.75rem; padding: 1.5rem 0; border-top: 1px solid var(--c-border); min-width: 0; }
.ar h2 { font-size: 1.125rem; font-weight: 700; line-height: 1.4; }
.ar h3 { font-size: 1rem; font-weight: 700; }
.regions { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem 2.5rem; }
.region { display: grid; align-content: start; gap: 0.25rem; min-width: 0; }

.tbl { min-width: 0; max-width: 40rem; }
.ct { width: 100%; border-collapse: collapse; font-size: 0.875rem; line-height: 1.5; }
.ct th, .ct td { padding: 0.5rem 0.25rem; border-top: 1px solid var(--c-line); text-align: right; vertical-align: middle; font-weight: 400; }
.ct th:first-child { padding-left: 0; text-align: left; font-weight: 600; }
.ct thead th { border-top: 0; border-bottom: 1px solid var(--c-border-strong); color: var(--c-text-muted); font-weight: 600; white-space: nowrap; }
.ct td { font-weight: 700; white-space: nowrap; }
.ct a { display: inline-flex; align-items: center; min-height: var(--ctl); }
.ct--idx th[scope="row"] { padding-top: 0; padding-bottom: 0; }

/* 0件は数字のまま薄く。札は言葉で伝える（色だけにしない）：収集前は黄色の塗り、速報は灰色 */
.zero { color: var(--c-text-muted); font-weight: 400; }
.st { display: inline-block; padding: 0 0.375rem; border-radius: 6px; background: var(--c-neutral-soft); color: var(--c-text-muted); font-size: 0.75rem; font-weight: 600; line-height: 1.6; white-space: nowrap; }
.st--none { background: var(--c-notice-soft); color: var(--c-notice); }

.links { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.links a { display: inline-flex; align-items: center; min-height: var(--ctl); padding: 0 0.875rem; border: 1px solid var(--c-border); border-radius: 10px; font-weight: 600; text-decoration: none; }
.links a:hover { background: var(--c-accent-soft); }
.src { display: grid; gap: 0.25rem; font-size: 0.875rem; }
.src a { display: inline-flex; align-items: center; min-height: var(--ctl); }

.foot { padding: 1.5rem 0; background: var(--c-canvas); font-size: 0.875rem; }
.foot__nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0 1.25rem; }
.foot__nav a { display: inline-flex; align-items: center; min-height: var(--ctl); color: var(--c-text); }
.foot__nav a[aria-current="page"] { color: var(--c-accent); font-weight: 600; }
.foot__nav span { color: var(--c-text-muted); }

/* 規約・プライバシー・表記・出典のページ（docPages.ts） */
.lead { color: var(--c-text-muted); }
.prose { display: grid; gap: 0.75rem; max-width: 44rem; }
.prose ul { display: grid; gap: 0.5rem; padding-left: 1.25rem; list-style: disc; }
.items { display: grid; gap: 0; max-width: 44rem; margin: 0; }
.items > div { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.125rem; padding: 0.75rem 0; border-top: 1px solid var(--c-line); }
.items dt { font-weight: 700; }
.items dd { margin: 0; }
.srcs { display: grid; gap: 1rem; max-width: 44rem; }
.srcs h3 { font-size: 0.9375rem; }

/* 入口（homeRender.ts）。パンくずが無いので、見出しの上をあける */
main > h1:first-child { padding-top: 1.5rem; }
main > .lead, main > .note { max-width: 44rem; }
.acts { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.25rem; }
.acts a:not(.btn) { display: inline-flex; align-items: center; min-height: var(--ctl); font-weight: 600; }
.note { font-size: 0.875rem; color: var(--c-text-muted); }
.plans { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; }
.plan { display: grid; align-content: start; gap: 0.5rem; min-width: 0; padding: 1.25rem; border: 1px solid var(--c-border); border-radius: 14px; }
.plan h3 { font-size: 1.125rem; }
.plan__for { font-size: 0.875rem; color: var(--c-text-muted); }
.plan__price { font-size: 2rem; font-weight: 700; line-height: 1.3; }
.plan__price small { font-size: 0.875rem; font-weight: 600; }
.plan__items { display: grid; gap: 0.25rem; padding-left: 1.25rem; list-style: disc; font-size: 0.875rem; }
.plan__items .off { color: var(--c-text-muted); }
.plan .btn, .plan__wait { margin-top: 0.5rem; }
.plan__wait { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; font-size: 0.875rem; color: var(--c-text-muted); }

@media (min-width: 40rem) {
  .wrap { padding: 0 1.5rem; }
  .items > div { grid-template-columns: 12rem minmax(0, 1fr); gap: 1rem; }
  h1 { font-size: 1.875rem; }
  .ct th, .ct td { padding-left: 0.75rem; padding-right: 0.75rem; }
}
@media (min-width: 64rem) {
  .regions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plans { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
