/*
Theme Name: 駐車場しらべ v2
Template: shirabe
Description: 駐車場しらべのデザインのリニューアル(2026-10-11、codex の見本の案2)。機能は親テーマ shirabe を使い、見た目だけをこの style.css で入れ替える。戻すときは shirabe を有効にする
Version: 1.0.0
*/

:root {
  color-scheme: light;
  --bg: #f4f6f3;
  --surface: #ffffff;
  --surface-soft: #eef3ef;
  --surface-blue: #edf3f5;
  --text: #182521;
  --muted: #56645e;
  --line: #d6ded9;
  --line-strong: #b9c7c0;
  --brand: #174f45;
  --brand-strong: #103c35;
  --brand-soft: #dcebe5;
  --accent: #b9562c;
  --accent-soft: #f7e6dc;
  --good: #166346;
  --good-soft: #e4f2ea;
  --warn: #8b560d;
  --warn-soft: #fff2d8;
  --shadow-sm: 0 2px 10px rgb(28 48 41 / 7%);
  --shadow-md: 0 14px 36px rgb(28 48 41 / 11%);
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --max: 1120px;
  --reading: 760px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  overflow-wrap: anywhere;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", "Hiragino Sans", "Yu Gothic UI", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.8;
  letter-spacing: .015em;
}
a { color: var(--brand); text-underline-offset: 3px; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 70%, transparent);
  outline-offset: 3px;
}
.wrap { width: min(100%, var(--max)); margin-inline: auto; padding-inline: 20px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 75%, transparent);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(12px);
}
.site-header .wrap { min-height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-size: 18px; font-weight: 800; text-decoration: none; letter-spacing: .04em; }
.logo svg { flex: none; filter: saturate(.75); }
.header-nav { display: flex; gap: 24px; }
.header-nav a { position: relative; color: var(--muted); font-size: 15px; font-weight: 650; text-decoration: none; }
.header-nav a::after { content: ""; position: absolute; right: 0; bottom: -5px; left: 0; height: 2px; background: var(--brand); transform: scaleX(0); transition: transform .2s ease; }
.header-nav a:hover::after { transform: scaleX(1); }

/* Intro */
main.wrap { padding-bottom: 24px; }
main.wrap > .breadcrumb { padding-top: 18px; }
main.wrap > .updated { position: relative; padding-bottom: 24px; }
main.wrap > .updated::after { content: ""; position: absolute; right: 0; bottom: 0; left: 0; height: 1px; background: linear-gradient(90deg, var(--brand), var(--line) 32%, transparent); }
.breadcrumb { overflow: hidden; color: var(--muted); font-size: 14px; white-space: nowrap; text-overflow: ellipsis; }
.breadcrumb a { color: inherit; }
.breadcrumb .sep { margin-inline: 7px; color: var(--line-strong); }
main.wrap > h1 { margin: 18px 0 5px; font-size: clamp(30px, 5vw, 46px); line-height: 1.25; letter-spacing: -.035em; }
.updated { margin: 0; color: var(--muted); font-size: 14px; }
h2 { margin: 54px 0 20px; font-size: clamp(23px, 3vw, 30px); line-height: 1.4; letter-spacing: -.02em; }
h3 { margin: 30px 0 10px; font-size: 19px; line-height: 1.5; }
section[id], h2[id] { scroll-margin-top: 88px; }

/* Key information */
#keypoints { margin-top: 26px; }
.keylist { display: grid; grid-template-columns: 1.55fr 1fr .72fr; gap: 12px; margin: 0; }
.keylist > div { position: relative; min-width: 0; overflow: hidden; padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); }
.keylist > div::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 5px; background: var(--brand); }
.keylist > div:first-child { background: linear-gradient(135deg, var(--surface), var(--brand-soft)); }
.keylist > div:first-child::before { background: var(--accent); }
.keylist dt { margin: 0 0 6px; color: var(--muted); font-size: 14px; font-weight: 750; }
.keylist dd { margin: 0; }
.keylist dd b { display: block; font-size: clamp(19px, 2.2vw, 25px); line-height: 1.45; letter-spacing: -.02em; }
.keylist dd span { display: block; margin-top: 8px; color: var(--muted); font-size: 16px; line-height: 1.65; }
.keylist > div.special { border-color: var(--warn); background: var(--warn-soft); }
.keylist > div.special dt { color: var(--warn); }

.unique { position: relative; margin-top: 14px; padding: 22px 24px; border: 1px solid color-mix(in srgb, var(--brand) 28%, var(--line)); border-radius: var(--radius-lg); background: var(--surface-soft); }
.unique::after { content: ""; position: absolute; top: 0; right: 0; width: 92px; height: 92px; border-radius: 0 var(--radius-lg) 0 100%; background: color-mix(in srgb, var(--brand) 8%, transparent); pointer-events: none; }
.unique h2 { display: flex; align-items: center; gap: 9px; margin: 0 0 12px; color: var(--brand-strong); font-size: 19px; }
.unique h2 .icon { width: 20px; height: 20px; }
.unique ul { margin: 0; padding-left: 1.4em; }
.unique li { margin-block: 6px; padding-left: 4px; }

/* Shared panels and table of contents */
.card { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-sm); }
.toc { margin-top: 14px; padding: 22px 24px; }
.toc > b { display: block; color: var(--brand-strong); font-size: 19px; }
.toc ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 30px; margin: 12px 0 0; padding: 0; list-style: none; counter-reset: toc; }
.toc li { counter-increment: toc; min-width: 0; }
.toc a { display: flex; gap: 10px; align-items: baseline; padding: 7px 2px; color: var(--text); text-decoration: none; }
.toc a::before { content: counter(toc, decimal-leading-zero); flex: none; color: var(--accent); font-size: 13px; font-weight: 800; }
.toc a:hover { color: var(--brand); }
#calc, #compare, #nav, #near { position: relative; }
#calc > h2, #compare > h2, #nav > h2, #near > h2 , #nearlots > h2, .entry > h2 { display: flex; align-items: center; gap: 14px; }
#calc > h2::before, #compare > h2::before, #nav > h2::before, #near > h2::before , #nearlots > h2::before, .entry > h2::before { content: ""; width: 9px; height: 30px; flex: none; border-radius: 99px; background: linear-gradient(var(--accent), color-mix(in srgb, var(--accent) 35%, var(--brand))); }

/* Calculator */
#calc > .card { padding: clamp(18px, 3vw, 30px); box-shadow: var(--shadow-md); }
.calc-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.calc-form > div, .calc-form input { min-width: 0; max-width: 100%; }
.calc-form .full { grid-column: 1 / -1; }
.calc-form label:not(.check) { display: block; margin-bottom: 5px; color: var(--muted); font-size: 14px; font-weight: 700; }
.calc-form input[type="date"], .calc-form input[type="time"], .calc-form select {
  width: 100%; min-height: 50px; padding: 10px 13px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--bg); color: var(--text); font-size: 16px;
}
.calc-form input[type="date"], .calc-form input[type="time"] { -webkit-appearance: none; appearance: none; display: block; text-align: left; }
.calc-form input::-webkit-date-and-time-value { text-align: left; }
.presets, .filters, .sortbar { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 44px; padding: 8px 15px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface); color: var(--text); font-size: 15px; font-weight: 700; line-height: 1.3; cursor: pointer; transition: transform .16s ease, background .16s ease, border-color .16s ease; }
.chip:hover { border-color: var(--brand); transform: translateY(-1px); }
.chip[aria-pressed="true"] { border-color: var(--brand); background: var(--brand); color: #fff; box-shadow: 0 5px 14px color-mix(in srgb, var(--brand) 24%, transparent); }
.calc-form .check { display: flex; align-items: flex-start; gap: 11px; padding: 14px 16px; border: 1px solid color-mix(in srgb, var(--good) 28%, var(--line)); border-radius: 11px; background: var(--good-soft); color: var(--text); font-size: 16px; font-weight: 650; line-height: 1.55; cursor: pointer; }
.check input { width: 20px; height: 20px; flex: none; margin-top: 2px; accent-color: var(--good); }
.calc-result { margin-top: 18px; }
.result-row { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 14px 4px; border-top: 1px solid var(--line); }
.result-row:first-child { border-top: 0; }
.rank { display: grid; width: 28px; height: 28px; place-items: center; border-radius: 50%; background: var(--brand-soft); color: var(--brand-strong); font-size: 14px; font-weight: 850; }
.result-row .name { font-weight: 750; line-height: 1.45; }
.result-row .detail, .result-row .name .sub { display: block; margin-top: 3px; color: var(--muted); font-size: 14px; font-weight: 400; line-height: 1.5; }
.result-row .spec { display: flex; flex-wrap: wrap; gap: 2px 14px; margin-top: 4px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.result-row .spec b { margin-right: 4px; color: var(--muted); font-size: 12px; font-weight: 700; }
.calc-result:not(.show-spec) .result-row .spec, .calc-form .check[hidden] { display: none; }
.result-row > div > .sub { display: block; margin-top: 3px; color: var(--muted); font-size: 13px; line-height: 1.45; }
.result-row .price { color: var(--brand-strong); font-size: clamp(20px, 3vw, 26px); font-weight: 850; white-space: nowrap; }
.result-row.best .price { color: var(--good); }
.tag { display: inline-block; margin-left: 5px; padding: 2px 7px; border-radius: 5px; background: var(--brand-soft); color: var(--brand-strong); font-size: 12px; font-weight: 750; vertical-align: 2px; }
.tag.own { background: var(--good-soft); color: var(--good); }
.warn { display: inline-block; margin-top: 5px; padding: 4px 8px; border-radius: 6px; background: var(--warn-soft); color: var(--warn); font-size: 14px; }
.note, .more-note { margin-top: 12px; color: var(--muted); font-size: 14px; line-height: 1.7; }

/* Comparison */
.sortbar { align-items: center; margin-bottom: 14px; color: var(--muted); font-size: 15px; }
.table-scroll { width: 100%; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); }
table.compare { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 15px; }
table.compare th, table.compare td { padding: 13px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; overflow-wrap: anywhere; }
table.compare th { background: var(--surface-soft); color: var(--muted); font-size: 13px; font-weight: 750; }
table.compare th:first-child { width: 25%; }
table.compare th:nth-child(2) { width: 17%; }
table.compare th:nth-child(3) { width: 23%; }
table.compare th:nth-child(4), table.compare th:nth-child(5) { width: 10%; }
table.compare th:nth-child(6) { width: 15%; }
table.compare tr:last-child td { border-bottom: 0; }
table.compare td:first-child { color: var(--text); font-weight: 750; }
.nw { white-space: normal; }
table.compare td .sub { display: block; margin-top: 3px; color: var(--muted); font-size: 13px; font-weight: 400; line-height: 1.45; }
table.compare td.num { text-align: right; }
table.compare.days { min-width: 0; }
table.compare.days th:not(:first-child) { text-align: right; }
table.compare.days td[colspan] { color: var(--muted); }
.compare-more { margin-top: 12px; }
.show-all { display: block; margin: 12px auto 0; }
.show-all[hidden] { display: none; }

/* Map and navigation */
.lotmap { overflow: hidden; margin-top: 12px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #eef1f4; box-shadow: var(--shadow-md); }
.lotmap .lm { height: 390px; background: #eef1f4; }
.lotmap .ph { display: flex; height: 100%; align-items: center; justify-content: center; color: #5f6b7a; font-size: 16px; }
.lmpin { display: inline-flex; min-width: 24px; height: 24px; align-items: center; justify-content: center; padding: 0 6px; border: 2px solid #fff; border-radius: 12px; box-shadow: 0 2px 5px rgb(0 0 0 / 38%); color: #fff; font: 800 12px/1 system-ui, sans-serif; white-space: nowrap; }
.lmpin.lot { background: #176f91; }
.lmpin.own { background: #166346; }
.lmpin.fac { background: #26342f; }
.lmtoggle { min-height: 44px; margin-top: 12px; padding: 8px 14px; border: 1px solid var(--line-strong); border-radius: 9px; background: var(--surface); color: var(--brand); cursor: pointer; }
.lmlegend { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 6px 14px; margin: 12px 0 0; padding: 0; list-style: none; font-size: 14px; }
.lmlegend[hidden] { display: none; }
.lmlegend li { display: flex; min-width: 0; align-items: center; gap: 7px; }
.lmlegend li span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lmlegend .lmpin { flex: none; }
.navlist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
.navcard { padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); }
.navcard .head { display: flex; align-items: center; gap: 11px; }
.navcard .num { display: grid; width: 32px; height: 32px; flex: none; place-items: center; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 850; }
.navcard .num.own { background: var(--good); font-size: 14px; }
.navcard .title { font-weight: 800; line-height: 1.45; }
.navcard .dist { color: var(--muted); font-size: 14px; }
.navbtns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 13px; }
.navbtn { display: inline-flex; min-height: 46px; align-items: center; gap: 7px; padding: 9px 14px; border: 1px solid var(--line-strong); border-radius: 9px; background: var(--bg); color: var(--text); font-size: 15px; font-weight: 750; text-decoration: none; }
.navbtn.car { border-color: var(--brand); background: var(--brand); color: #fff; }
.navbtn .icon { width: 18px; height: 18px; }

/* Nearby facilities */
.filters { margin: 12px 0 18px; }
.facility-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.facility-card { display: block; min-width: 0; padding: 17px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); color: var(--text); text-decoration: none; transition: border-color .16s ease, transform .16s ease; }
.facility-card:hover { border-color: var(--brand); transform: translateY(-2px); }
.facility-card .top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.facility-card .fname { font-size: 17px; font-weight: 800; line-height: 1.45; }
.facility-card .ftype { flex: none; color: var(--muted); font-size: 13px; }
.facility-card .facts { display: flex; flex-wrap: wrap; gap: 5px 14px; margin-top: 8px; color: var(--muted); font-size: 14px; }
.facility-card .facts b { color: var(--text); }
.facility-card .point { margin-top: 6px; color: var(--muted); font-size: 14px; }
.facility-card[hidden] { display: none; }
.subareas { display: flex; flex-wrap: wrap; gap: 8px; }
.subareas a { padding: 7px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--text); text-decoration: none; }
.subareas a small { margin-left: 4px; color: var(--muted); }
.subareas + h2, .subareas + h3 { margin-top: 28px; }

/* Article */
.entry { max-width: var(--reading); margin: 58px auto 0; padding-top: 2px; }
.entry > p { margin: 0 0 18px; font-size: 17px; line-height: 1.9; }
.entry > h2 { margin-top: 56px; }
.entry > h2 + p { margin-top: 0; }
.entry p strong { color: var(--brand-strong); }
.entry ul, .entry ol { padding-left: 1.5em; }
.entry li { margin: 6px 0; }
.entry table { width: 100%; border-collapse: collapse; background: var(--surface); font-size: 16px; }
.entry th, .entry td { padding: 9px 11px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.entry img { max-width: 100%; height: auto; }
.fee-table { width: 100%; border-collapse: collapse; font-size: 16px; }
.fee-table th, .fee-table td { padding: 9px 5px; border-bottom: 1px solid var(--line); text-align: left; }
.fee-table th { color: var(--muted); font-size: 14px; }
.fee-table td.num { text-align: right; }
details.fee { margin-top: 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
details.fee summary { padding: 13px 16px; font-weight: 750; cursor: pointer; }
details.fee .inner { padding: 0 16px 16px; }
.reserve-list { margin: 8px 0; padding-left: 1.2em; }
.hub-back { position: relative; display: block; margin: 14px 0 18px; padding: 14px 44px 14px 16px; border-radius: var(--radius); background: var(--brand); color: #fff; text-decoration: none; box-shadow: 0 3px 0 rgb(0 0 0 / 18%); }
.hub-back:hover, .hub-back:focus-visible { color: #fff; opacity: .92; }
.hub-back .k { display: block; margin-bottom: 2px; font-size: 12.5px; color: #cfe3db; }
.hub-back b { display: block; margin-bottom: 2px; color: #fff; font-size: 17px; }
.hub-back::after { content: "›"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-size: 28px; line-height: 1; color: #fff; }
.hub-back.bottom { margin-top: 34px; }
.hub-back.after-calc { margin: 18px 0 16px; }
.hub-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; margin: 12px 0; }
.hub-card, .hub-jump { position: relative; display: block; padding: 14px 44px 14px 16px; border-radius: var(--radius); background: var(--brand); color: #fff; text-decoration: none; box-shadow: 0 3px 0 rgb(0 0 0 / 18%); }
.hub-card:hover, .hub-card:focus-visible, .hub-jump:hover, .hub-jump:focus-visible { color: #fff; opacity: .92; }
.hub-card::after, .hub-jump::after { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); line-height: 1; color: #fff; }
.hub-card::after { content: "›"; font-size: 28px; }
.hub-card .tag { display: inline-block; margin-bottom: 6px; padding: 1px 8px; border-radius: 999px; background: #fff; color: var(--brand); font-size: 12px; font-weight: 700; }
.hub-card b { display: block; margin-bottom: 4px; color: #fff; font-size: 17px; }
.hub-card .meta { display: block; color: #cfe3db; font-size: 13px; }
.hub-jump { margin: 18px 0 14px; padding-top: 12px; padding-bottom: 12px; }
.hub-jump::after { content: "↓"; font-size: 22px; }
.hub-jump .k { display: block; margin-bottom: 2px; color: #cfe3db; font-size: 12.5px; }
.hub-jump b { display: block; color: #fff; font-size: 16px; }
.hub-jump .names { display: block; color: #cfe3db; font-size: 13px; }

/* Advertising: dimensions and placement rules retained */
.ad-slot { position: relative; display: grid; min-height: 120px; place-items: center; margin: 28px 0; border: 2px dashed var(--line); border-radius: var(--radius); color: var(--muted); font-size: 12px; }
.ad-slot > span { position: absolute; top: 4px; left: 8px; color: var(--muted); font-size: 11px; }
.ad-slot.is-live { display: block; place-items: normal; min-height: 0; padding-top: 20px; border: 0; text-align: center; }
.ad-slot.is-live > span { top: 0; left: 0; }
.ad-slot.is-live:has(ins.adsbygoogle[data-ad-status="unfilled"]) { display: none; }

/* Footer and utilities */
.site-footer { margin-top: 54px; border-top: 1px solid var(--line); background: var(--surface); color: var(--muted); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 22px; padding-block: 26px; }
.site-footer a { color: var(--muted); }
.icon { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.to-top { position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 50; display: grid; width: 48px; height: 48px; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); box-shadow: var(--shadow-md); color: var(--brand); cursor: pointer; }
.to-top[hidden] { display: none; }
.to-top svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.site-note { position: fixed; right: 0; bottom: 0; left: 0; z-index: 60; padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid #f0d58c; background: #fff8e1; box-shadow: 0 -2px 8px rgb(0 0 0 / 8%); color: #3b2f00; font-size: 14px; line-height: 1.6; }
.has-site-note body { padding-bottom: var(--site-note-h, 0px); }
.has-site-note .to-top { bottom: calc(18px + var(--site-note-h, 0px)); }
.empty { color: var(--muted); }
.pagination { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 18px; }
.pagination .page-numbers { padding: 5px 11px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); text-decoration: none; }
.pagination .current { border-color: var(--brand); background: var(--brand); color: #fff; }

@media (max-width: 900px) {
  .wrap { max-width: 780px; }
  .keylist { grid-template-columns: 1.4fr 1fr; }
  .keylist > div:last-child { grid-column: 1 / -1; }
  .navlist, .facility-list { grid-template-columns: 1fr; }
  table.compare { font-size: 14px; }
  table.compare th, table.compare td { padding-inline: 7px; }
}

@media (max-width: 620px) {
  .wrap { padding-inline: 16px; }
  .site-header .wrap { min-height: 60px; }
  .header-nav { gap: 12px; }
  .header-nav a { font-size: 13px; }
  .header-nav a:first-child { display: none; }
  main.wrap > .breadcrumb { padding-top: 14px; }
  main.wrap > h1 { margin-top: 13px; }
  .keylist { grid-template-columns: 1fr 1fr; gap: 9px; }
  .keylist > div { padding: 16px; }
  .keylist > div:first-child { grid-column: 1 / -1; }
  .keylist > div:last-child { grid-column: auto; }
  .keylist dd b { font-size: 18px; }
  .unique { padding: 19px 18px; }
  .toc { padding: 19px 18px; }
  .toc ol { grid-template-columns: 1fr; gap: 1px; }
  h2 { margin-top: 46px; }
  .calc-form { grid-template-columns: 1fr; gap: 14px; }
  .calc-form .full { grid-column: auto; }
  .presets .chip { flex: 1 1 calc(33.333% - 8px); }
  .result-row { grid-template-columns: 30px minmax(0, 1fr); }
  .result-row .price { grid-column: 2; justify-self: start; }
  .table-scroll { border: 0; border-radius: 0; background: transparent; box-shadow: none; }
  table.compare, table.compare tbody { display: block; }
  table.compare thead { display: none; }
  table.compare tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 12px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); }
  table.compare td { min-width: 0; padding: 10px 12px; border-right: 1px solid var(--line); overflow-wrap: anywhere; }
  table.compare td:first-child { grid-column: 1 / -1; border-right: 0; background: var(--surface-soft); font-size: 16px; }
  table.compare td:nth-child(3), table.compare td:nth-child(5) { border-right: 0; }
  table.compare td:nth-last-child(-n+2) { border-bottom: 0; }
  table.compare td.num { text-align: left; }
  table.compare.days thead { display: table-header-group; }
  table.compare.days { display: table; }
  table.compare.days tbody { display: table-row-group; }
  table.compare.days tr { display: table-row; border: 0; }
  table.compare.days td { border-right: 0; }
  .lotmap .lm { height: 340px; }
  .navbtn { flex: 1 1 auto; justify-content: center; }
  .facility-card .top { display: block; }
  .facility-card .ftype { display: block; margin-top: 3px; }
  .entry { margin-top: 48px; }
  .entry > p { font-size: 16px; }
  .site-footer .wrap { display: block; }
  .site-footer .wrap span { display: block; margin-top: 6px; }
}

@media (max-width: 380px) {
  .wrap { padding-inline: 14px; }
  .logo { font-size: 16px; }
  .header-nav a { font-size: 12px; }
  .keylist > div { padding: 14px 12px; }
  .keylist dd b { font-size: 16px; }
  .keylist dd span { font-size: 16px; }
  .presets .chip { padding-inline: 9px; }
  .filters .chip { flex: 1 1 auto; }
}

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

/* 比較表(駐車場・単価・最大料金・台数(・予約)。高さ・営業時間は出さない。要件書 5.2) */
@media (max-width: 620px) {
  /* 台数で終わる行は、台数を横幅いっぱいにする(予約の列がある記事は 台数|予約 の2つ並び) */
  table.compare:not(.days) td:nth-child(4):last-child { grid-column: 1 / -1; border-right: 0; }
  table.compare:not(.days) td:nth-child(3):nth-last-child(2) { border-bottom: 1px solid var(--line); }
  /* カードでは値の上に項目名を出す(facility.js が表の見出しから data-label を付ける)。台数は「〇台」で分かるので出さない */
  table.compare:not(.days) td[data-label]:not(:first-child):not([data-label="台数"])::before {
    content: attr(data-label); display: block; margin-bottom: 4px; color: var(--muted); font-size: 12px; font-weight: 750;
  }
}

/* 見本は施設の記事だけを見て作られたため、ほかのページ用に足す(wp2 で全種類のページを見て直した分。2026-10-11) */
/* トップ・地域・種類の一覧の見出しにも、施設の記事と同じ飾りを付ける(「この施設ならでは」の見出しは星のアイコンがあるので除く) */
main.wrap > section:not(.unique) > h2, main.wrap > h2 { display: flex; align-items: center; gap: 14px; }
main.wrap > section:not(.unique) > h2::before, main.wrap > h2::before { content: ""; width: 9px; height: 30px; flex: none; border-radius: 99px; background: linear-gradient(var(--accent), color-mix(in srgb, var(--accent) 35%, var(--brand))); }
/* 要点の最後のカードは、行の残りの幅いっぱいに広げる(数が合わないときに空きを作らない。2026-09-29 の決定「奇数のときは最後を横幅いっぱい」を新しい並びで守る) */
/* 見本に無かった部品(親の style.css から。2026-10-11、本番でGoogleマップが正方形になったとユーザー指摘。親にあって子に無いクラスを洗い出した3つ) */
.mapbox { margin-top: 12px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.mapbox iframe { display: block; width: 100%; border: 0; }
.lead { color: var(--muted); margin: 0 0 16px; }
.flist .filters { margin-top: 10px; }
/* 日数別の料金表(福岡空港など、列が多い表)は、列の幅を固定せず、金額を折り返さずに横へスクロールさせる(見本の固定幅のままだと金額が1文字ずつ縦に折り返された) */
.table-scroll:has(> table.compare.days) { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.compare.days { table-layout: auto; width: max-content; min-width: 100%; }
table.compare.days th { width: auto !important; white-space: nowrap; }
table.compare.days td.num { white-space: nowrap; overflow-wrap: normal; }
table.compare.days td:first-child { min-width: 7em; }
/* PC(3列): 最後が1列目なら3列ぶん、2列目なら2列目から右端まで */
.keylist > div:last-child:nth-child(3n+1) { grid-column: 1 / -1; }
.keylist > div:last-child:nth-child(3n+2) { grid-column: 2 / -1; }
@media (max-width: 900px) {
  /* 2列: 最後が奇数番目なら横幅いっぱい */
  .keylist > div:last-child:nth-child(3n+1), .keylist > div:last-child:nth-child(3n+2), .keylist > div:last-child:nth-child(even) { grid-column: auto; }
  .keylist > div:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (max-width: 620px) {
  /* スマホ: 最初のカードが横幅いっぱいなので、最後が偶数番目なら横幅いっぱい */
  .keylist > div:last-child:nth-child(odd) { grid-column: auto; }
  .keylist > div:first-child, .keylist > div:last-child:nth-child(even) { grid-column: 1 / -1; }
}
/* 特Pのボタン(2026-10-12、ユーザー選択 案1。白い文字とのコントラスト比 4.74)。
   色は親・子どちらのテーマでも同じにするため固定の値。広告枠(上下 28px)と間を空け、[PR] で広告と見分ける */
.tokup { margin: 24px 0 40px; position: relative; }
/* 施設の記事は 2026-10-17 から広告Bのすぐ下に特Pのボタンが来るので、上も 40px 空ける(下と同じ。要件書 5.2) */
.ad-slot + .tokup { margin-top: 40px; }
.tokup-pr { margin: 0 0 6px; font-size: 12px; line-height: 1.5; color: #56645e; }
a.tokup-btn { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: #b9562c; color: #fff; text-decoration: none; box-shadow: 0 3px 0 rgb(0 0 0 / 18%); transition: opacity .2s ease; }
a.tokup-btn:hover, a.tokup-btn:focus-visible { color: #fff; opacity: .92; }
.tokup-ic { flex: 0 0 40px; width: 40px; height: 40px; border-radius: 8px; background: #f7e6dc; color: #b9562c; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 24px; line-height: 1; }
.tokup-tx { flex: 1; min-width: 0; line-height: 1.4; }
.tokup-l { display: inline-block; font-weight: 700; font-size: 17px; }
.tokup-sub { display: block; font-size: 12px; margin-top: 2px; }
.tokup-ar { flex-shrink: 0; font-size: 22px; font-weight: 700; line-height: 1; }
.tokup-px { position: absolute; width: 1px; height: 1px; border: 0; }

/* 検索順位の対策の新しい形(印 new_form のあるページだけ。2026-10-29) */
#fee-compare .fc-bar { margin-bottom: 6px; }
#fee-compare .fc-table { margin-top: 6px; }
table.fee-cmp caption { text-align: left; font-size: 12px; color: var(--muted); padding: 0 0 4px; }
.fc-rank { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; margin-right: 6px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line); font-size: 12px; font-weight: 700; vertical-align: 1px; }
.navcard .navfee { margin-top: 2px; line-height: 1.5; }
.facility-card .top .lmpin { flex: none; align-self: center; }
.facility-card .fdist { margin-top: 4px; font-size: 13px; color: var(--muted); }
.near-same .more-type { margin: 10px 0 0; font-size: 14px; }
.facility-card .top .lmpin + .fname { flex: 1; min-width: 0; }
.hub-list.hub-one { grid-template-columns: 1fr; margin: 16px 0 0; }
.facility-card .fgo { margin-top: 10px; color: var(--brand); font-size: 14px; font-weight: 700; }
#special { margin-top: 28px; }
@media (max-width: 620px) { table.fee-cmp caption { display: block; width: auto; } }

/* 徒歩のナビ(2026-11-04)。隠す印(hidden)の付いた徒歩のボタンは隠す(.navbtn の display:inline-flex が優先されて、行き先を選べるハブで全部の行き先が出ていた)。畳む案Bはやめた(ユーザー決定 案2) */
.navbtn[hidden] { display: none; }
