/* Open Now Japan
   配色・角丸の決まりは docs/brand-guidelines.md。値の正はこのファイルの :root。
   2026-10-29 に作り直した。GA4 ではセッションの 88% がスマホ、外部クリックの
   6割が「地図で開く」で、一覧の1件目は画面2枚ぶん下にあった。
   - 一覧ページは「施設を選んで地図を開く」までを最短にする
   - 値はすべて下のトークンから取る（余白 2/4/8/12/16/24/32/40/48/64/80/96、
     文字は Tailwind の段 12/14/16/18/20/24/30/36/48/60、角丸は Tailwind の段）
   - 背景はベタ塗り。グラデーションはトップの見出しの文字にだけ使う
   - 太さは 700 まで。斜体は使わない
   書体は日本語の字形が要るので OS の日本語ゴシックを使う（Web フォントは読まない）。 */
:root{
  --bg:#FAF8F4;--surface:#FFFFFF;--surface-2:#F3F0E9;--surface-3:#E9E4DA;
  --ink:#14202E;--ink-2:#43505E;--ink-3:#5C6773;--rule:#E4DFD5;--rule-2:#CFC8BA;
  --brand:#1D4E89;--brand-strong:#163A66;--brand-soft:#E4EDF7;
  --open:#0F7A45;--open-soft:#DFF3E7;--soon:#8F4A05;--soon-soft:#FCEFD9;
  --closed:#5C6773;--closed-soft:#EEF0F2;
  --accent:#B4491A;--accent-soft:#FCEEE4;
  /* 旧名。記事などの部品が参照している */
  --ground:var(--bg);--teal:var(--brand);--teal-dark:var(--brand-strong);--yes:var(--open);
  --accent-dark:var(--accent);
  --body:"Hiragino Sans","Hiragino Kaku Gothic ProN","Noto Sans JP","Yu Gothic UI","Yu Gothic",system-ui,sans-serif;
  --ease:cubic-bezier(.22,1,.36,1);
  --shadow:0 1px 2px rgba(20,32,46,.04),0 8px 24px rgba(20,32,46,.06);
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
/* 自動広告が full-width-responsive で画面幅より広い枠を一覧の中に差し込み、
   スマホで横スクロールが出ていた（本番 390px 幅で 553px）。clip は hidden と違って
   スクロールコンテナを作らないので、絞り込みバーの sticky は効いたまま。 */
html,body{overflow-x:clip}
body{margin:0;background:var(--bg);color:var(--ink);font-family:var(--body);font-size:16px;line-height:24px;-webkit-font-smoothing:antialiased;font-feature-settings:"palt" 0}
.wrap{width:min(calc(100% - 32px),1120px);margin-inline:auto}
a{color:var(--brand);text-underline-offset:2px;transition:color .3s var(--ease)}
a:hover{color:var(--brand-strong)}
:where(a,button,select,summary,input,label):focus-visible{outline:2px solid var(--brand);outline-offset:2px;border-radius:4px}
.chk input:focus-visible+span{outline:2px solid var(--brand);outline-offset:2px}
b,strong,h1,h2,h3,th{font-weight:700}
p,li,dd{text-wrap:pretty}
h1,h2,h3{text-wrap:balance;word-break:auto-phrase;letter-spacing:-.01em;color:var(--ink)}
h1{font-size:30px;line-height:36px;margin:24px 0 16px}
h2{font-size:20px;line-height:28px;margin:48px 0 12px}
h3{font-size:18px;line-height:28px}
.icon{width:24px;height:24px;display:block}
.tw{overflow-x:auto}

.skip{position:absolute;left:16px;top:-64px;z-index:20;padding:8px 12px;border-radius:8px;background:var(--brand);color:#fff;font-size:14px;line-height:20px;font-weight:600}
.skip:focus{top:8px;color:#fff}

/* ---------- ヘッダー：上端から浮いた小さなバー ---------- */
header{padding:8px 16px 0}
header .wrap{width:fit-content;max-width:100%;min-height:48px;display:flex;align-items:center;gap:24px;
  padding:4px 4px 4px 12px;border:1px solid var(--rule);border-radius:9999px;
  background:rgba(255,255,255,.8);-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px)}
.brand{display:inline-flex;align-items:center;gap:8px;color:var(--ink);font-size:16px;line-height:24px;font-weight:700;text-decoration:none;white-space:nowrap}
.brand em{font-style:normal;color:var(--brand)}
.brand-mark{width:24px;height:24px;display:block;flex:none}
.meta{display:flex;align-items:center;gap:4px;font-size:14px;line-height:20px;font-weight:600}
.meta a{color:var(--ink-2);text-decoration:none;white-space:nowrap;padding:8px 12px;border-radius:9999px;transition:background-color .3s var(--ease),color .3s var(--ease)}
.meta a:hover{background:var(--surface-2);color:var(--ink)}
.meta a[aria-current]{background:var(--surface-2);color:var(--ink)}
.lang{background:var(--surface-2)}

/* ---------- 一覧ページの頭 ---------- */
.crumb{font-size:12px;line-height:16px;color:var(--ink-3);margin-top:24px;white-space:nowrap;overflow-x:auto;scrollbar-width:none}
.crumb::-webkit-scrollbar{display:none}
.crumb a{color:var(--ink-3)}
.title-row{display:flex;align-items:center;gap:12px;margin-top:12px}
.title-row h1{margin:0}
.title-icon{width:40px;height:40px;flex:0 0 auto;display:grid;place-items:center;border-radius:12px;background:var(--brand-soft);color:var(--brand)}
.title-icon .icon{width:24px;height:24px}
.answer{background:var(--surface-2);border-radius:16px;padding:12px 16px;margin:16px 0 0}
.answer .q{margin:0;font-size:14px;line-height:20px;font-weight:700;color:var(--ink)}
.answer .a{margin:4px 0 0;font-size:14px;line-height:20px;color:var(--ink-2)}
.answer .lab{display:none}
.count{font-size:12px;line-height:16px;color:var(--ink-3);margin:24px 0 8px;font-variant-numeric:tabular-nums}
.eyebrow{margin:0 0 8px!important;color:var(--brand)!important;font-size:12px!important;line-height:16px!important;font-weight:700!important;letter-spacing:.08em}

/* チップ：スマホでは折り返さず横にスクロールする1行にして、一覧を押し下げない */
.chips{display:flex;flex-wrap:wrap;gap:8px;margin:16px 0}
.chips a{display:inline-flex;align-items:center;gap:4px;white-space:nowrap;font-size:14px;line-height:20px;font-weight:600;padding:8px 12px;border:1px solid var(--rule);border-radius:9999px;text-decoration:none;background:var(--surface);color:var(--ink);transition:background-color .3s var(--ease),border-color .3s var(--ease),transform .5s var(--ease)}
.chips a:hover{border-color:var(--rule-2);background:var(--surface-2)}
.chips a:active{transform:scale(.98)}
.chips a i{font-style:normal;font-size:12px;line-height:16px;color:var(--ink-3);font-variant-numeric:tabular-nums}
.chips a.on{background:var(--ink);border-color:var(--ink);color:#fff}
.chips a.on i{color:rgba(255,255,255,.7)}
.chips.munis{max-height:none}
h2.near{font-size:14px;line-height:20px;color:var(--ink-2);margin:16px 0 -8px}
.cond-head{font-size:14px;line-height:20px;font-weight:700;color:var(--ink-2);margin:24px 0 -8px}
.more{margin:16px 0;font-size:14px;line-height:20px;font-weight:600}
.more a{text-decoration:none}
.more a:hover{text-decoration:underline}
.more.next-hol{margin:8px 0 0}
.fnote{margin:8px 0 16px;font-size:12px;line-height:16px;color:var(--ink-3)}

/* ---------- 絞り込みバー：一覧の直前に置き、上に貼りつく ---------- */
.filters{position:sticky;top:8px;z-index:8;margin:16px 0;padding:12px;border:1px solid var(--rule);border-radius:16px;
  background:rgba(255,255,255,.88);-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);
  display:flex;flex-wrap:wrap;align-items:center;gap:8px 16px;box-shadow:var(--shadow)}
.filters .now{flex:1 0 100%;margin:0;font-size:14px;line-height:20px;color:var(--ink-2);font-variant-numeric:tabular-nums}
.filters .now b{color:var(--open)}
.filters fieldset{border:0;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:8px;align-items:center;min-width:0}
.filters legend{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
.chk{display:inline-flex;align-items:center;cursor:pointer;position:relative}
.chk input{position:absolute;opacity:0;width:0;height:0}
.chk span{display:inline-flex;align-items:center;gap:4px;border:1px solid var(--rule);border-radius:9999px;padding:4px 12px;font-size:14px;line-height:20px;font-weight:600;background:var(--surface);white-space:nowrap;transition:background-color .3s var(--ease),border-color .3s var(--ease),transform .5s var(--ease)}
.chk:hover span{border-color:var(--rule-2)}
.chk:active span{transform:scale(.98)}
.chk span i{font-style:normal;font-size:12px;line-height:16px;color:var(--ink-3)}
.chk input:checked+span{background:var(--open);border-color:var(--open);color:#fff}
.chk input:checked+span i{color:rgba(255,255,255,.75)}
.filters select{font:600 14px/20px var(--body);padding:4px 8px;background:var(--surface);color:var(--ink);border:1px solid var(--rule);border-radius:8px;max-width:min(100%,320px)}
.fstat{margin:0 0 0 auto;font-size:12px;line-height:16px;color:var(--ink-3);font-variant-numeric:tabular-nums;white-space:nowrap}
.fstat #shown{color:var(--ink);font-weight:700}
.fstat button{font:600 12px/16px var(--body);background:none;border:1px solid var(--rule);color:var(--ink-2);border-radius:9999px;padding:4px 8px;margin-left:4px;cursor:pointer;transition:background-color .3s var(--ease)}
.fstat button:hover{background:var(--surface-2)}
.fstat button:active{transform:scale(.98)}
.nomatch{background:var(--surface);border:1px solid var(--rule);color:var(--ink-2);padding:16px;border-radius:16px;font-size:14px;line-height:20px}

/* ---------- 施設の行 ---------- */
.muni h2{display:flex;align-items:baseline;gap:8px;margin:32px 0 12px;scroll-margin-top:96px}
.muni h2 .n{font-size:14px;line-height:20px;color:var(--ink-3);font-weight:400;font-variant-numeric:tabular-nums}
.rows{list-style:none;margin:0 0 24px;padding:0;display:grid;gap:12px}
.row[hidden],.muni[hidden]{display:none}
.row,.fac{background:var(--surface);border:1px solid var(--rule);border-radius:16px;padding:16px;display:flex;flex-direction:column}
.st{align-self:flex-start;display:inline-flex;align-items:center;gap:8px;margin:0 0 8px;padding:2px 8px;border-radius:9999px;font-size:12px;line-height:16px;font-weight:700;font-variant-numeric:tabular-nums}
.st:before{content:"";width:8px;height:8px;border-radius:9999px;background:currentColor}
.st.open{background:var(--open-soft);color:var(--open)}
.st.soon{background:var(--soon-soft);color:var(--soon)}
.st.later{background:var(--surface-2);color:var(--ink-2)}
.st.closed{background:var(--closed-soft);color:var(--closed)}
.st.closed:before{background:transparent;border:1.5px solid currentColor}
.rh{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap}
.row .nm{font-size:18px;line-height:28px;font-weight:700}
.row .kind,.fac .kind{font-size:12px;line-height:16px;color:var(--ink-3)}
.row .alt,.fac .alt{font-size:12px;line-height:16px;color:var(--ink-3)}
.focus{margin:4px 0 0;font-size:20px;line-height:28px;font-weight:700;font-variant-numeric:tabular-nums;color:var(--ink)}
.focus span{font-size:14px;line-height:20px;font-weight:600;color:var(--ink-2);margin-right:4px}
.hours{display:flex;flex-wrap:wrap;gap:4px;margin-top:8px}
.hours span{font-size:14px;line-height:20px;padding:2px 8px;border-radius:6px;background:var(--surface-2);color:var(--ink-2);white-space:nowrap;font-variant-numeric:tabular-nums}
.hours span.hit{background:var(--brand-soft);color:var(--brand-strong);font-weight:700}
.row .addr,.fac .addr{font-size:14px;line-height:20px;color:var(--ink-2);margin-top:8px}
.row .depts,.fac .depts{font-size:12px;line-height:16px;color:var(--ink-3);margin-top:4px}
.ny{display:flex;gap:4px;flex-wrap:wrap;margin-top:8px}
.ny span{font-size:12px;line-height:16px;padding:2px 8px;border-radius:6px;border:1px solid var(--rule);white-space:nowrap;font-variant-numeric:tabular-nums}
.ny span.o{color:var(--open);border-color:var(--open);font-weight:700}
.ny span.x,.ny span.u{color:var(--ink-3)}
.ny span.u{opacity:.5}
.row .ny{display:none}
body.ny-on .row .ny{display:flex}
/* 主な行動は「地図で開く」。横幅いっぱいのボタンにする */
.acts{display:flex;gap:8px;margin-top:12px}
.acts a{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:8px 12px;border-radius:8px;font-size:16px;line-height:24px;font-weight:600;text-decoration:none;border:1px solid var(--rule);color:var(--ink);background:var(--surface);transition:background-color .3s var(--ease),transform .5s var(--ease)}
.acts a:hover{background:var(--surface-2);color:var(--ink)}
.acts a:active{transform:scale(.98)}
.acts a.map{flex:1;background:var(--brand);border-color:var(--brand);color:#fff}
.acts a.map:hover{background:var(--brand-strong);border-color:var(--brand-strong);color:#fff}
/* Phosphor の MapPin / ArrowUpRight。行ごとに SVG を書くとページが重くなるので CSS で1回だけ持つ */
.acts a:before{content:"";width:20px;height:20px;flex:none;background:currentColor;
  -webkit-mask:var(--i) center/contain no-repeat;mask:var(--i) center/contain no-repeat}
.acts a.map{--i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M128,64a40,40,0,1,0,40,40A40,40,0,0,0,128,64Zm0,64a24,24,0,1,1,24-24A24,24,0,0,1,128,128Zm0-112a88.1,88.1,0,0,0-88,88c0,31.4,14.51,64.68,42,96.25a254.19,254.19,0,0,0,41.45,38.3,8,8,0,0,0,9.18,0A254.19,254.19,0,0,0,174,200.25c27.45-31.57,42-64.85,42-96.25A88.1,88.1,0,0,0,128,16Zm0,206c-16.53-13-72-60.75-72-118a72,72,0,0,1,144,0C200,161.23,144.53,209,128,222Z'/%3E%3C/svg%3E")}
.acts a.ghost{--i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M200,64V168a8,8,0,0,1-16,0V83.31L69.66,197.66a8,8,0,0,1-11.32-11.32L172.69,72H88a8,8,0,0,1,0-16H192A8,8,0,0,1,200,64Z'/%3E%3C/svg%3E");color:var(--ink-2)}
.acts a.ghost:before{order:2;width:16px;height:16px}

/* PC では2列。1列だと 1,120px に伸びて、名前と地図ボタンが離れる */
@media (min-width:768px){
  .rows{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}
  .rows>:not(li){grid-column:1/-1}
  .answer{max-width:768px}
}

/* ---------- 一覧のあとの要約 ---------- */
.digest,.week{margin:32px 0 0;padding:16px;background:var(--surface);border:1px solid var(--rule);border-radius:16px}
.digest h2,.week h2{font-size:16px;line-height:24px;margin:0 0 8px}
.digest ul{margin:0;padding-left:16px;font-size:14px;line-height:20px}
.digest li{margin-top:8px}
.digest li b{display:block;font-size:12px;line-height:16px;color:var(--ink-2)}
.digest p,.week p{margin:8px 0 0;font-size:12px;line-height:16px;color:var(--ink-3)}
.digest .lead{font-size:14px;line-height:20px;color:var(--ink)}
.week .today{margin:0 0 8px;font-size:14px;line-height:20px;font-weight:600;color:var(--ink)}
.week table{margin:8px 0 0}
.week td{font-variant-numeric:tabular-nums}
.week tr.on th,.week tr.on td{background:var(--brand-soft);color:var(--brand-strong);font-weight:700}
table{width:100%;border-collapse:collapse;font-size:14px;line-height:20px;margin:16px 0}
th,td{text-align:left;padding:8px;border-bottom:1px solid var(--rule)}
thead th{font-size:12px;line-height:16px;color:var(--ink-3);font-weight:600}
td.n,th.n{text-align:right;font-variant-numeric:tabular-nums}
details{margin:8px 0 0}
summary{font-size:12px;line-height:16px;color:var(--ink-3);cursor:pointer}

/* ---------- 汎用グリッド・カード ---------- */
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(192px,1fr));gap:8px;margin:16px 0}
.grid a{background:var(--surface);border:1px solid var(--rule);border-radius:12px;padding:12px 16px;text-decoration:none;color:var(--ink);display:flex;justify-content:space-between;align-items:baseline;gap:8px;font-size:14px;line-height:20px;transition:background-color .3s var(--ease),border-color .3s var(--ease),transform .5s var(--ease)}
.grid a:hover{border-color:var(--rule-2);background:var(--surface-2);color:var(--ink)}
.grid a:active{transform:scale(.98)}
.grid a span{font-size:12px;line-height:16px;color:var(--ink-3);font-variant-numeric:tabular-nums}
.grid a.category-card{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:12px;padding:16px}
.category-icon{width:40px;height:40px!important;display:grid!important;place-items:center;border-radius:12px;background:var(--brand-soft);color:var(--brand)}
.category-icon .icon{width:24px;height:24px}
.grid .category-card>b{font-size:16px;line-height:24px;word-break:keep-all}
.grid.nation{grid-template-columns:repeat(3,minmax(0,1fr))}
.pref-grid{grid-template-columns:repeat(6,1fr)}
.pref-grid a{min-width:0;padding:12px}
.pref-grid a small{margin-left:2px}
.cta,.related{margin-top:48px;border-top:1px solid var(--rule);padding-top:16px}
.cta .grid,.related .grid{grid-template-columns:repeat(auto-fill,minmax(160px,1fr))}
.lead{color:var(--ink-2);font-size:16px;line-height:24px;margin:4px 0 16px}
.grid.nums{grid-template-columns:repeat(auto-fill,minmax(144px,1fr))}
dl{margin:16px 0;display:grid;grid-template-columns:auto 1fr;gap:4px 24px;font-size:14px;line-height:20px}
dt{font-size:12px;line-height:16px;color:var(--ink-3);font-weight:600;padding-top:2px;white-space:nowrap}
dd{margin:0}

/* ---------- トップ ---------- */
.hero{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:center;gap:48px;padding:64px 0 96px}
.hero h1{max-width:680px;font-size:48px;line-height:1.15;margin:8px 0 24px;
  background:linear-gradient(90deg,#000000,#666666);-webkit-background-clip:text;background-clip:text;color:transparent}
.hero h1 em{font-style:normal}
.hero-lead{max-width:680px;color:var(--ink-2);font-size:18px;line-height:28px;margin:0}
.trust{display:flex;align-items:center;gap:8px;margin:24px 0 0;color:var(--ink-2);font-size:14px;line-height:20px;font-weight:600}
.trust span{flex:none;width:24px;height:24px;border-radius:9999px;display:grid;place-items:center;background:var(--open-soft);color:var(--open);font-size:12px}
.hero-art{min-width:0}
.hero-art img{width:100%;height:auto;max-height:480px;object-fit:cover;border-radius:16px;display:block}
.finder{position:relative;z-index:4;margin:-48px 0 0;background:var(--surface);border:1px solid var(--rule);border-radius:16px;padding:24px;box-shadow:var(--shadow)}
.finder-head{display:flex;align-items:center;gap:12px;margin-bottom:16px}
.finder-head h2{font-size:18px;line-height:28px;margin:0}
.finder-head p{font-size:12px;line-height:16px;color:var(--ink-3);margin:0}
.finder-icon{width:40px;height:40px;display:grid;place-items:center;border-radius:12px;background:var(--brand-soft);color:var(--brand)}
#home-finder{display:grid;grid-template-columns:1.2fr 1fr 1fr auto;gap:12px;align-items:end}
#home-finder label>span{display:block;margin:0 0 4px;font-size:12px;line-height:16px;color:var(--ink-2);font-weight:600}
#home-finder select{width:100%;height:48px;padding:0 32px 0 12px;border:1px solid var(--rule);border-radius:8px;background:var(--surface);color:var(--ink);font:600 16px/24px var(--body)}
#home-finder label.needs-value select{border-color:var(--accent);background:var(--accent-soft)}
#home-finder button{height:48px;padding:8px 24px;border:0;border-radius:8px;background:var(--brand);color:#fff;font:600 16px/24px var(--body);white-space:nowrap;cursor:pointer;transition:background-color .3s var(--ease),transform .5s var(--ease)}
#home-finder button:hover{background:var(--brand-strong)}
#home-finder button:active{transform:scale(.98)}
#home-finder button span{margin-left:8px}
.home-section{padding:80px 0 16px}
.section-heading{display:grid;grid-template-columns:1fr minmax(280px,.72fr);gap:48px;align-items:end;margin-bottom:24px}
.section-heading.compact{align-items:center}
.section-heading h2{margin:0;font-size:30px;line-height:36px}
.section-heading>p{color:var(--ink-2);font-size:14px;line-height:20px;margin:0}
.stat-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}
.stat-grid article{background:var(--surface);border:1px solid var(--rule);border-radius:16px;padding:24px}
.stat-grid article>span{display:block;font-size:12px;line-height:16px;font-weight:600;color:var(--ink-2);margin-bottom:8px}
.stat-grid strong{font-size:36px;line-height:40px;color:var(--ink);font-variant-numeric:tabular-nums}
.stat-grid small{font-size:12px;line-height:16px;color:var(--ink-3);margin-left:4px}
.source-note{text-align:right;color:var(--ink-3);font-size:12px;line-height:16px;margin:8px 0 0}
.home-posts{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.home-posts a{min-height:208px;border-radius:16px;padding:24px;display:flex;flex-direction:column;align-items:stretch}
.home-posts .post-no{font-size:12px;line-height:16px;font-weight:700;color:var(--accent);margin:0 0 24px}
.home-posts a b{font-size:18px;line-height:28px}
.home-posts a>span:not(.post-no){margin-top:8px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.home-posts a i{font-style:normal;color:var(--brand);margin-top:auto;align-self:flex-end}
.more-link{display:table;margin:24px 0 0 auto;font-size:14px;line-height:20px;font-weight:600;text-decoration:none}
.more-link span{margin-left:4px}
.newyear-panel{margin:80px 0 16px;background:var(--surface);border:1px solid var(--rule);border-radius:16px;overflow:hidden}
.newyear-panel>summary{list-style:none;cursor:pointer;padding:16px 24px;display:flex;justify-content:space-between;align-items:center;font-size:16px;line-height:24px;font-weight:700;color:var(--ink);position:relative}
.newyear-panel>summary::-webkit-details-marker{display:none}
.newyear-panel>summary:after{content:"＋";color:var(--brand)}
.newyear-panel[open]>summary:after{content:"−"}
.newyear-panel>summary small{margin-left:auto;margin-right:24px;font-weight:400;font-size:12px;color:var(--ink-3)}
.newyear-panel .tw{padding:0 16px 16px}

/* ---------- 読みもの ---------- */
.guides-hero{display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:48px;padding:48px 0}
.guides-hero h1{max-width:680px;font-size:48px;line-height:1.15;margin:8px 0 24px}
.guides-hero h1 em{font-style:normal;color:var(--brand)}
.guides-hero-copy>p:not(.eyebrow){max-width:680px;color:var(--ink-2);font-size:16px;line-height:24px;margin:0}
.guide-count{display:inline-flex;margin-top:24px;padding:4px 12px;border-radius:9999px;background:var(--brand-soft);color:var(--brand);font-size:12px;line-height:16px;font-weight:700}
.guides-hero-art{min-width:0}
.guides-hero-art img{width:100%;max-height:420px;height:auto;object-fit:cover;border-radius:16px;display:block}
.topic-nav{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;background:var(--surface);border:1px solid var(--rule);border-radius:9999px;padding:8px}
.topic-nav a{display:inline-flex;align-items:center;gap:8px;padding:8px 12px;border-radius:9999px;color:var(--ink-2);font-size:14px;line-height:20px;font-weight:600;text-decoration:none;transition:background-color .3s var(--ease)}
.topic-nav a:hover{background:var(--surface-2);color:var(--ink)}
.topic-mini-icon{width:16px;height:16px;display:block;flex:0 0 auto}
.guide-topics{padding-top:16px}
.guide-topic{padding:64px 0 0;scroll-margin-top:80px}
.topic-heading{display:flex;align-items:center;gap:12px;margin-bottom:16px}
.topic-icon{width:48px;height:48px;display:grid;place-items:center;border-radius:16px;background:var(--accent-soft);color:var(--accent)}
.topic-icon .icon{width:24px;height:24px}
.topic-heading div p{font-size:12px;line-height:16px;font-weight:700;letter-spacing:.08em;color:var(--accent);margin:0}
.topic-heading h2{font-size:24px;line-height:32px;margin:0}
.topic-heading>small{margin-left:auto;color:var(--ink-3);font-size:12px;line-height:16px;font-weight:600}
.guide-cards{display:grid;grid-template-columns:repeat(2,1fr);gap:12px;margin:0}
.guide-cards a{min-height:192px;padding:24px;display:grid;grid-template-columns:auto 1fr auto;grid-template-rows:auto auto 1fr;column-gap:12px;position:relative;border-radius:16px}
.guide-cards .card-icon{grid-column:1;grid-row:1;width:32px;height:32px;display:grid;place-items:center;border-radius:8px;background:var(--surface-2);color:var(--brand);margin:0}
.guide-cards .card-icon .icon{width:16px;height:16px}
.guide-cards a>small{grid-column:2;grid-row:1;align-self:center;font-size:12px;line-height:16px;color:var(--ink-3)}
.guide-cards a>b{grid-column:1/4;grid-row:2;font-size:16px;line-height:24px;margin:12px 0 0}
.guide-cards a>span:not(.card-icon){grid-column:1/4;grid-row:3;margin-top:8px}
.guide-cards a>i{position:absolute;right:24px;top:24px;color:var(--brand);font-style:normal}
.posts{display:grid;gap:12px;margin:16px 0}
.posts a{background:var(--surface);border:1px solid var(--rule);border-radius:16px;padding:16px;text-decoration:none;color:var(--ink);display:block;transition:background-color .3s var(--ease),border-color .3s var(--ease),transform .5s var(--ease)}
.posts a:hover{background:var(--surface-2);border-color:var(--rule-2);color:var(--ink)}
.posts a:active{transform:scale(.98)}
.posts a b{display:block;font-size:16px;line-height:24px}
.posts a span{display:block;font-size:14px;line-height:20px;color:var(--ink-2);margin-top:4px}

/* ---------- 記事・固定ページ ---------- */
.post{max-width:704px}
.post h1{font-size:36px;line-height:40px}
.post h2{font-size:24px;line-height:32px;margin-top:48px}
.post p{margin:0 0 16px;line-height:28px}
.post ul{margin:0 0 16px;padding-left:24px}
.post li{margin-bottom:8px;line-height:28px}
.post li::marker{color:var(--brand)}
.callout{background:var(--accent-soft);padding:16px 24px;border-radius:16px}
.cap{font-size:12px;line-height:16px;color:var(--ink-3);margin-top:-8px}
.article-post{max-width:100%}
.article-hero{display:grid;grid-template-columns:minmax(0,1fr) 224px;gap:48px;align-items:center;padding:40px 0 48px;border-bottom:1px solid var(--rule);margin-bottom:40px}
.article-hero-copy{max-width:768px}
.article-hero h1{font-size:48px;line-height:1.2;margin:12px 0 16px}
.topic-label{display:inline-flex;align-items:center;gap:8px;padding:4px 12px;background:var(--brand-soft);color:var(--brand);border-radius:9999px;font-size:12px;line-height:16px;font-weight:700}
.article-deck{font-size:18px!important;line-height:28px!important;color:var(--ink-2);max-width:680px;margin:0!important}
.article-byline{margin:16px 0 0!important;color:var(--ink-3);font-size:12px!important;line-height:16px!important;font-weight:600}
.article-visual{aspect-ratio:1;border-radius:9999px;display:flex;flex-direction:column;align-items:center;justify-content:center;background:var(--brand-soft);color:var(--brand)}
.article-visual span{width:80px;height:80px;display:grid;place-items:center;border-radius:24px;background:var(--surface)}
.article-icon{width:40px;height:40px}
.article-visual small{margin-top:12px;color:var(--ink-2);font-size:12px;line-height:16px;font-weight:600}
.article-body{max-width:704px}
.article-body>p:first-of-type{font-size:18px;line-height:32px}
.article-body h2{display:flex;align-items:center;gap:12px;scroll-margin-top:96px}
.section-icon{width:24px;height:24px;flex:0 0 auto;color:var(--accent);padding:4px;border-radius:8px;background:var(--accent-soft)}
.article-outline{display:grid;grid-template-columns:1fr 176px;gap:16px;margin:0 0 40px;padding:16px;background:var(--surface);border:1px solid var(--rule);border-radius:16px}
.article-outline>div:first-child{grid-column:1;display:flex;align-items:center;gap:12px}
.outline-icon{width:40px;height:40px;display:grid;place-items:center;border-radius:12px;background:var(--surface-2);color:var(--brand)}
.outline-icon .icon{width:20px;height:20px}
.article-outline h2{font-size:16px;line-height:24px;margin:0}
.article-outline ul{grid-column:1;margin:4px 0 0;padding-left:24px;font-size:14px;line-height:20px}
.article-outline li{margin:4px 0}
.article-outline a{color:var(--ink-2);text-decoration:none}
.article-outline a:hover{color:var(--brand);text-decoration:underline}
.article-fact{grid-column:2;grid-row:1/3;border-radius:8px;background:var(--brand-soft);padding:16px;display:flex;flex-direction:column;justify-content:center}
.article-fact>span{color:var(--brand);font-size:12px;line-height:16px;font-weight:700}
.article-fact strong{font-size:30px;line-height:36px;color:var(--ink);margin:4px 0}
.article-fact small{font-size:12px;line-height:16px;color:var(--ink-3)}
.data-flow{width:min(1040px,calc(100vw - 32px));margin:32px 0 48px;padding:16px;background:var(--surface);border:1px solid var(--rule);border-radius:16px}
.flow-steps{display:grid;grid-template-columns:repeat(4,1fr);gap:1px;background:var(--rule);border:1px solid var(--rule);border-radius:12px;overflow:hidden}
.flow-step{position:relative;background:var(--surface);padding:16px;min-height:160px}
.flow-step:not(:last-child):after{content:"→";position:absolute;right:-12px;top:50%;z-index:2;width:24px;height:24px;border-radius:9999px;display:grid;place-items:center;background:var(--brand);color:#fff;font-size:12px;transform:translateY(-50%)}
.flow-step>span{width:40px;height:40px;display:grid;place-items:center;border-radius:12px;background:var(--surface-2);color:var(--brand)}
.flow-step .icon{width:20px;height:20px}
.flow-step small{display:block;margin-top:12px;font-size:12px;line-height:16px;font-weight:700;letter-spacing:.04em;color:var(--accent)}
.flow-step b{display:block;margin-top:2px;font-size:14px;line-height:20px}
.flow-step p{margin:4px 0 0!important;font-size:12px;line-height:16px!important;color:var(--ink-3)}
.data-flow figcaption{margin:12px 2px 0;color:var(--ink-3);font-size:12px;line-height:16px}
.source-links{display:grid;gap:8px;margin:16px 0 32px}
.source-links a{display:grid;grid-template-columns:auto 1fr auto;grid-template-rows:auto auto;column-gap:12px;padding:12px 16px;border:1px solid var(--rule);border-radius:12px;background:var(--surface);color:var(--ink);text-decoration:none;transition:background-color .3s var(--ease)}
.source-links a:hover{background:var(--surface-2);color:var(--ink)}
.source-links a>span{grid-row:1/3;width:32px;height:32px;display:grid;place-items:center;border-radius:8px;background:var(--brand-soft);color:var(--brand)}
.source-links .icon{width:16px;height:16px}
.source-links b{font-size:14px;line-height:20px}
.source-links small{grid-column:2;color:var(--ink-3);font-size:12px;line-height:16px}
.source-links i{grid-column:3;grid-row:1/3;align-self:center;color:var(--brand);font-style:normal}
.source-trust{display:grid;grid-template-columns:auto 1fr;gap:16px;margin:48px 0 0;padding:16px 24px;border-radius:16px;background:var(--surface-2)}
.source-trust>span{width:40px;height:40px;display:grid;place-items:center;border-radius:12px;background:var(--surface);color:var(--brand)}
.source-trust .icon{width:20px;height:20px}
.source-trust h2{font-size:14px;line-height:20px;margin:0 0 4px}
.source-trust p{font-size:12px;line-height:16px;color:var(--ink-2);margin:0 0 4px}
.source-trust a{font-size:12px;line-height:16px;font-weight:700;text-decoration:none}
.source-trust i{font-style:normal}
.faq{margin-top:40px;border-top:1px solid var(--rule);padding-top:24px}
.faq dl{display:block;margin:0;font-size:16px;line-height:24px}
.faq dt{font-weight:700;font-size:16px;line-height:24px;color:var(--ink);white-space:normal;margin-top:24px;padding-top:0}
.faq dd{margin:4px 0 0;color:var(--ink-2);line-height:28px}
.pagelinks{margin-top:40px;padding-top:16px;border-top:1px solid var(--rule);font-size:14px;line-height:20px}
.pagelinks a{margin-right:4px}
.legal-dates{font-size:12px;line-height:16px;color:var(--ink-3);margin-top:16px;font-variant-numeric:tabular-nums}

/* ---------- 広告枠 ---------- */
/* min-height でおおよその高さを予約し、読み込み時のガタつき(CLS)を抑える。
   スロット未設定のときはこの要素自体が出力されないので、空白は生じない。 */
.adslot{margin:32px 0;min-height:140px;text-align:center}
/* 広告が配信されなかったときは、ラベルごと畳む。
   AdSense は配信できなかった ins に data-ad-status="unfilled" を付ける。
   これが無いと、在庫が無い時間帯に「広告」の文字と 140px の空白だけが残る。 */
.adslot:has(ins[data-ad-status="unfilled"]){display:none}
.adslot .adlabel{display:block;font-size:12px;line-height:16px;letter-spacing:.08em;color:var(--ink-3);margin-bottom:4px}
/* 施設一覧の中には広告を置かない。置いてしまったときに気づけるよう、
   ここで潰しておく（preflight でも検出する）。 */
.rows .adslot,.filters .adslot,.acts .adslot{display:none}

/* ---------- 共有ボタン ---------- */
.share{margin-top:40px;padding-top:24px;border-top:1px solid var(--rule)}
.share h2{font-size:16px;line-height:24px;margin:0 0 12px}
.share-links{display:flex;flex-wrap:wrap;gap:8px}
.share-links a,.share-links button{display:inline-flex;align-items:center;gap:8px;font:inherit;font-size:14px;line-height:20px;padding:8px 12px;border-radius:9999px;border:1px solid var(--rule);background:var(--surface);color:var(--ink);text-decoration:none;cursor:pointer;transition:background-color .3s var(--ease),transform .5s var(--ease)}
.share-links a:hover,.share-links button:hover{background:var(--surface-2);color:var(--ink)}
.share-links a:active,.share-links button:active{transform:scale(.98)}
.share-icon{width:16px;height:16px;flex:none}
.share-copy.done{border-color:var(--open);color:var(--open)}

/* ---------- フッター ---------- */
footer{border-top:1px solid var(--rule);margin-top:80px;padding-top:24px}
.fnav{font-size:14px;line-height:20px;display:flex;flex-wrap:wrap;gap:8px 16px;color:transparent}
.fnav a{color:var(--ink-2);text-decoration:none}
.fnav a:hover{color:var(--ink);text-decoration:underline}
footer p{font-size:12px;line-height:16px;color:var(--ink-3);padding:12px 0 0;margin:0;max-width:928px}
footer .copy{padding-bottom:40px}

@media (max-width:900px){
  .hero{grid-template-columns:1fr;gap:32px;padding:40px 0 80px}
  .hero-art img{max-height:240px}
  .hero h1{font-size:36px;line-height:1.2}
  #home-finder{grid-template-columns:1fr 1fr}
  .finder button{grid-column:2}
  .stat-grid{grid-template-columns:repeat(2,1fr)}
  .pref-grid{grid-template-columns:repeat(4,1fr)}
  .home-posts{grid-template-columns:1fr}
  .home-posts a{min-height:0}
  .section-heading{grid-template-columns:1fr;gap:8px;align-items:start}
  .guides-hero{grid-template-columns:1fr;gap:32px}
  .guides-hero-art img{max-height:240px}
  .guide-cards{grid-template-columns:1fr}
  .article-hero{grid-template-columns:1fr 160px;gap:24px}
  .flow-steps{grid-template-columns:repeat(2,1fr)}
  .flow-step:nth-child(2):after{display:none}
}
@media (max-width:640px){
  .wrap{width:calc(100% - 32px)}
  header{padding:8px 8px 0}
  .meta>a:first-child{display:none}
  header .wrap{gap:8px}
  .meta a{padding:8px}
  h1,.title-row h1{font-size:24px;line-height:32px}
  h2{font-size:20px;line-height:28px;margin-top:40px}
  .title-icon{width:32px;height:32px;border-radius:8px}
  .title-icon .icon{width:20px;height:20px}
  /* チップは1行で横にスクロール。画面の端まで流して、続きがあることを見せる */
  .chips{flex-wrap:nowrap;overflow-x:auto;margin-inline:-16px;padding:2px 16px;scrollbar-width:none;scroll-padding-inline:16px}
  .chips::-webkit-scrollbar{display:none}
  .chips a{flex:none}
  .filters{margin-inline:-8px}
  .filters fieldset{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none}
  .filters fieldset::-webkit-scrollbar{display:none}
  .grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .grid a{padding:12px;font-size:14px}
  dl{grid-template-columns:1fr;gap:2px}
  dd{margin-bottom:12px}
  .hero{padding:32px 0 80px}
  .hero h1{font-size:30px;line-height:36px}
  .hero-lead{font-size:16px;line-height:24px}
  .finder{padding:16px;margin-top:-48px}
  .finder-head p{display:none}
  #home-finder{grid-template-columns:1fr;gap:8px}
  #home-finder button{grid-column:auto;width:100%}
  .home-section{padding-top:64px}
  .section-heading h2{font-size:24px;line-height:32px}
  .stat-grid{gap:8px}
  .stat-grid article{padding:16px}
  .stat-grid strong{font-size:24px;line-height:32px}
  .pref-grid{grid-template-columns:repeat(2,1fr)}
  /* スマホのトップは見出しのすぐ下に検索を出す（イラストは render.py の picture で読まない） */
  .hero-art{display:none}
  .grid.nation{grid-template-columns:1fr}
  .newyear-panel>summary{align-items:flex-start;flex-direction:column}
  .newyear-panel>summary small{margin:4px 0 0}
  .newyear-panel>summary:after{position:absolute;right:16px}
  .guides-hero{padding:32px 0}
  .guides-hero h1{font-size:30px;line-height:36px}
  .topic-nav{justify-content:flex-start;overflow-x:auto;flex-wrap:nowrap;border-radius:16px}
  .topic-nav a{white-space:nowrap}
  .guide-topic{padding-top:48px}
  .topic-heading h2{font-size:20px;line-height:28px}
  .guide-cards a{min-height:0;padding:16px}
  .article-hero{grid-template-columns:1fr;padding:24px 0 32px}
  .article-hero h1{font-size:24px;line-height:32px}
  .article-visual{display:none}
  .article-deck{font-size:16px!important;line-height:24px!important}
  .article-body>p:first-of-type{font-size:16px;line-height:28px}
  .post h1{font-size:30px;line-height:36px}
  .grid a.category-card{grid-template-columns:auto 1fr;padding:12px}
  .category-card>span:last-child{grid-column:2}
  .grid.nation a.category-card{grid-template-columns:auto 1fr auto}
  .grid.nation .category-card>span:last-child{grid-column:3}
  .article-outline{grid-template-columns:1fr;padding:12px}
  .article-outline>div:first-child,.article-outline ul,.article-fact{grid-column:1}
  .article-fact{grid-row:auto;display:grid;grid-template-columns:1fr auto;align-items:end}
  .article-fact strong{grid-column:2;grid-row:1/3}
  .article-fact small{grid-column:1}
  .data-flow{width:100%;padding:8px}
  .flow-steps{grid-template-columns:1fr}
  .flow-step{min-height:0;padding:16px}
  .flow-step:not(:last-child):after{content:"↓";right:50%;top:auto;bottom:-12px;transform:translateX(50%)}
  .flow-step:nth-child(2):after{display:grid}
  .source-trust{grid-template-columns:1fr}
  .source-trust>span{display:none}
  .share-links a span,.share-links button span{display:none}
  .share-links a,.share-links button{padding:8px}
}
@media (prefers-reduced-motion:reduce){*{transition-duration:.01ms!important;animation:none!important}}
