/* A案（地域から探す）：落ち着いた行政サイト寄り。スマホ優先 */
:root {
  --bg: #F2F5F3; --surface: #FFFFFF; --ink: #1B2A2F; --muted: #5A6B70; --line: #D5DED9; --line-soft: #E6ECE9;
  --accent: #0F5F7A; --accent-dark: #0A4255; --accent-soft: #E9F3F6;
  --live-bg: #E3F1EA; --live-fg: #1E6B45; --warn-bg: #FDE7DF; --warn-fg: #9A3412;
  --soon-bg: #E7EEF7; --soon-fg: #1D4E89; --end-bg: #ECECEC; --end-fg: #4A4A4A;
  --font-body: "BIZ UDPGothic", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
  --font-head: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", sans-serif;
  --radius: 10px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 15px; line-height: 1.7; }
a { color: var(--accent); }
a:hover { color: var(--accent-dark); }
main { max-width: 760px; margin: 0 auto; padding: 0 16px 32px; }
h1, h2, h3 { font-family: var(--font-head); text-wrap: balance; }
.muted { color: var(--muted); }
.small { font-size: 12px; }

.site-header { background: var(--surface); border-bottom: 1px solid var(--line); padding: 12px 16px; }
.logo { text-decoration: none; color: var(--ink); display: flex; flex-direction: column; max-width: 760px; margin: 0 auto; }
.logo-name { font-family: var(--font-head); font-weight: 900; font-size: 20px; }
.logo-sub { font-size: 11px; color: var(--muted); }
.intent-nav { background: var(--surface); border-bottom: 1px solid var(--line); display: flex; justify-content: center; gap: 4px; padding: 6px 8px; flex-wrap: wrap; }
.intent-nav a { text-decoration: none; color: var(--ink); font-weight: 700; font-size: 14px; padding: 10px 14px; border-radius: 999px; }
.intent-nav a:hover { background: var(--accent-soft); }
.crumbs { max-width: 760px; margin: 0 auto; padding: 10px 16px 0; font-size: 12px; color: var(--muted); }

.hero { padding: 20px 0 4px; }
.hero h1 { font-size: 26px; font-weight: 900; margin: 0 0 6px; line-height: 1.35; }
.hero p { margin: 0; color: var(--muted); font-size: 14px; }
.page-head { padding: 16px 0 0; }
.page-head h1 { font-size: 23px; font-weight: 900; margin: 0 0 4px; line-height: 1.35; }
.lead-date { font-size: 17px; }

.block { margin-top: 24px; }
.block-title { font-size: 19px; font-weight: 900; margin: 0 0 4px; }
.block-lead { margin: 0 0 12px; color: var(--muted); font-size: 13px; }
.sub-title { font-size: 14px; color: var(--muted); letter-spacing: .04em; margin: 22px 0 8px; }
.more { display: inline-block; margin-top: 8px; font-size: 14px; }

.region { margin-bottom: 12px; }
.region-name { font-size: 13px; color: var(--muted); margin: 0 0 6px; }
.pref-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 6px; }
.pref { display: flex; justify-content: space-between; align-items: center; gap: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 10px; text-decoration: none; color: var(--ink); font-size: 14px; min-height: 44px; }
.pref-n { font-size: 11px; background: var(--accent); color: #fff; border-radius: 999px; padding: 0 7px; }
.pref-empty { color: var(--muted); background: transparent; }

.cards { display: grid; gap: 10px; }
.card, .detail { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.card-kind { font-size: 12px; font-weight: 700; color: var(--accent); min-width: 0; }
.card-title { margin: 0; font-size: 15px; line-height: 1.5; }
.card-title a { color: var(--ink); text-decoration: none; }
.card-title a:hover { text-decoration: underline; }
.badge { font-size: 11px; border-radius: 999px; padding: 2px 8px; white-space: nowrap; }
.badge-live { background: var(--live-bg); color: var(--live-fg); }
.badge-warn { background: var(--warn-bg); color: var(--warn-fg); }
.badge-soon { background: var(--soon-bg); color: var(--soon-fg); }
.badge-end { background: var(--end-bg); color: var(--end-fg); }
.rate { display: flex; align-items: baseline; gap: 6px; }
.rate-pre, .rate-post { font-size: 12px; }
.rate-num { font-family: var(--font-head); font-weight: 900; font-size: 36px; line-height: 1; color: var(--accent); }
.rate-big .rate-num { font-size: 48px; }
.facts { margin: 0; display: grid; grid-template-columns: 72px 1fr; row-gap: 3px; font-size: 13px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; min-width: 0; }
.facts-big { font-size: 14px; grid-template-columns: 84px 1fr; }
.official { font-size: 13px; }

.rows { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.row + .row { border-top: 1px solid var(--line-soft); }
.row a { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 12px 14px; text-decoration: none; color: var(--ink); min-height: 44px; }
.row-main { font-weight: 700; min-width: 0; }
.row-rate { font-weight: 700; color: var(--accent); font-variant-numeric: tabular-nums; }
.row-sub { grid-column: 1 / -1; font-size: 12px; color: var(--muted); }

.sale-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; }
.sale-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 4px; }
.sale-name { font-weight: 700; }
.sale-when { font-size: 13px; }
.pay-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.pay-links a { font-size: 13px; }

.city-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; }
.city-list li { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 10px; display: flex; flex-direction: column; }

.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.history { border-collapse: collapse; width: 100%; font-size: 13px; min-width: 360px; }
.history th, .history td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line-soft); }
.history th { color: var(--muted); font-weight: 700; }
.day-title { font-size: 16px; margin: 0 0 6px; }
.cal { font-size: 13px; }

.detail { margin-top: 12px; }
.detail h1 { margin: 0; font-size: 22px; line-height: 1.4; }
.summary { margin: 0; }
.alert { margin: 0; background: var(--warn-bg); color: var(--warn-fg); padding: 10px 12px; border-radius: 8px; font-size: 14px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.btn { display: inline-block; text-decoration: none; border: 1px solid var(--accent); color: var(--accent); border-radius: 8px; padding: 11px 16px; font-weight: 700; font-size: 14px; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { color: #fff; background: var(--accent-dark); }

.prose { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-top: 16px; }
.prose h1 { margin-top: 0; font-size: 22px; }
.prose h2 { font-size: 17px; margin: 20px 0 6px; }
.plain { padding-left: 18px; }

.site-footer { margin-top: 32px; background: var(--surface); border-top: 1px solid var(--line); padding: 20px 16px 28px; font-size: 12px; color: var(--muted); }
.site-footer > * { max-width: 760px; margin-left: auto; margin-right: auto; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 8px; }
.footer-links a { color: var(--muted); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
