/*
Theme Name: Gofunai88
Description: 御府内八十八ヶ所めぐり（非公式ガイド）のテーマ。スマホ1カラム、上に結願までの進捗帯、下に固定タブ。札所データと API はプラグイン「Gofunai88 Core」が持つ。
Version: 0.3.84
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: gofunai88
License: GPL-2.0-or-later
*/

/* 色：藍（ai）＝未踏・リンク、朱（shu）＝チェックイン済みだけに使う。
   表示は「自動（端末の設定に合わせる・初期値、0.3.82〜）」「ライト」「ダーク」。<html data-theme="light|dark|auto"> で切り替える。 */
:root{
  --paper:#fbfaf6; --sheet:#ffffff; --ink:#1b2737; --ink-2:#5a6676; --rule:#e6e2d8;
  --ai:#2d4f7c; --shu:#c23a2b; --shu-wash:#fbe7e2; --ai-wash:#eaf0f8; --ok:#2f7a4f; --kin:#b8860b;
  --f-disp:"Shippori Mincho B1","Hiragino Mincho ProN","Yu Mincho",serif;
  --f-body:"BIZ UDPGothic","Hiragino Sans","Meiryo",sans-serif;
  --f-num:"IBM Plex Mono",ui-monospace,monospace;
  --tabs-h:64px;
  color-scheme:light;
}
@media (prefers-color-scheme:dark){:root[data-theme="auto"]{
  --paper:#111821; --sheet:#18222e; --ink:#e4e9f0; --ink-2:#9aa8ba; --rule:#2a3747;
  --ai:#8fb0dc; --shu:#ec6a58; --shu-wash:#3a2422; --ai-wash:#1f2d40; --ok:#6cc08f; --kin:#e0b44c; color-scheme:dark}}
:root[data-theme="dark"]{
  --paper:#111821; --sheet:#18222e; --ink:#e4e9f0; --ink-2:#9aa8ba; --rule:#2a3747;
  --ai:#8fb0dc; --shu:#ec6a58; --shu-wash:#3a2422; --ai-wash:#1f2d40; --ok:#6cc08f; --kin:#e0b44c; color-scheme:dark}

*{box-sizing:border-box}
[hidden]{display:none!important}
html,body{background:var(--paper);margin:0}
body{color:var(--ink);font-family:var(--f-body);font-size:15px;line-height:1.75;
  padding-left:max(16px,env(safe-area-inset-left,0px));padding-right:max(16px,env(safe-area-inset-right,0px));
  padding-bottom:calc(var(--tabs-h) + 24px + env(safe-area-inset-bottom,0px));-webkit-text-size-adjust:100%}
.wrap{max-width:720px;margin:0 auto}
h1,h2,h3{font-family:var(--f-disp);text-wrap:balance;line-height:1.35;margin:0}
h1{font-size:1.75rem;font-weight:800}
h2{font-size:1.3rem;font-weight:800}
h3{font-size:1.05rem;font-weight:600}
p{margin:0}
a{color:var(--ai)}
img{max-width:100%;height:auto}
.num{font-family:var(--f-num);font-variant-numeric:tabular-nums}
.eyebrow{font-size:.75rem;letter-spacing:.12em;color:var(--ink-2)}
.muted{color:var(--ink-2)}
.small{font-size:.82rem}
.screen-reader-text{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(1px,1px,1px,1px);white-space:nowrap}
.skip-link:focus{position:fixed;top:8px;left:8px;width:auto;height:auto;clip:auto;z-index:20;background:var(--sheet);padding:.5em 1em;border-radius:6px}

/* 上部：進捗帯 */
.top{position:sticky;top:0;z-index:5;background:var(--paper);padding-block:12px 10px;border-bottom:1px solid var(--rule)}
.top .row{display:flex;align-items:baseline;justify-content:space-between;gap:12px}
.brand{font-family:var(--f-disp);font-weight:800;font-size:1.05rem;color:var(--ink);text-decoration:none}
.brand small{font-family:var(--f-body);font-weight:400;font-size:.72rem;color:var(--ink-2);margin-left:.4em}
.bar{height:6px;background:var(--rule);border-radius:3px;margin-top:8px;overflow:hidden}
.bar i{display:block;height:100%;background:var(--shu);width:0;transition:width .4s}
@media (prefers-reduced-motion:reduce){.bar i{transition:none}}

main.page{padding-block:20px 8px;display:flex;flex-direction:column;gap:18px}
.sheet{background:var(--sheet);border:1px solid var(--rule);border-radius:10px;padding:16px;display:flex;flex-direction:column;gap:10px;min-width:0}
.hero{display:flex;flex-direction:column;gap:12px;padding-block:6px}
.hero p{max-width:34em}
.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.stat{background:var(--sheet);border:1px solid var(--rule);border-radius:8px;padding:10px;display:flex;flex-direction:column;gap:2px;min-width:0}
.stat b{font-family:var(--f-num);font-size:1.35rem;font-weight:500}
.stat span{font-size:.75rem;color:var(--ink-2)}
.next{display:flex;gap:12px;align-items:center}
.seal{flex:none;width:58px;height:58px;border-radius:50%;border:2px solid var(--ai);color:var(--ai);display:grid;place-items:center;font-family:var(--f-disp);font-weight:800;font-size:1.05rem;line-height:1}
.seal.done{border-color:var(--shu);color:var(--shu);background:var(--shu-wash);transform:rotate(-8deg)}
.btn{appearance:none;display:inline-block;text-decoration:none;border:1px solid var(--ai);background:var(--ai);color:var(--sheet);font:700 .92rem var(--f-body);padding:.6em 1em;border-radius:8px;cursor:pointer;line-height:1.4}
.btn.ghost{background:transparent;color:var(--ai)}
.btn.shu{background:var(--shu);border-color:var(--shu)}
.btn[disabled]{opacity:.5;cursor:default}
.btn:focus-visible,.tab:focus-visible,.chip:focus-visible,a:focus-visible{outline:3px solid var(--ai);outline-offset:2px}
.btns{display:flex;flex-wrap:wrap;gap:8px}

/* 地図 */
.mapbox{position:relative;isolation:isolate;z-index:0;background:var(--sheet);border:1px solid var(--rule);border-radius:10px;overflow:hidden}
.g88-map{width:100%;height:62vh;min-height:320px;max-height:640px}
.g88-map.mini{height:240px;min-height:0}
.legend{display:flex;flex-wrap:wrap;gap:12px;font-size:.78rem;color:var(--ink-2)}
.legend i{display:inline-block;width:12px;height:12px;border-radius:50%;margin-right:4px;vertical-align:-1px}
.wards{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:6px}
.ward{display:flex;justify-content:space-between;gap:8px;font-size:.85rem;padding:6px 8px;border-radius:6px;background:var(--paper);color:var(--ink);text-decoration:none}
.ward.full{background:var(--shu-wash);color:var(--shu);font-weight:700}
.leaflet-container{font:inherit;background:var(--paper)}
.leaflet-popup-content{margin:10px 12px;font-size:.88rem;line-height:1.6}

/* 札所の一覧 */
.list{display:flex;flex-direction:column;margin:0;padding:0;list-style:none}
.item{display:grid;grid-template-columns:44px 1fr auto;gap:10px;align-items:center;padding:10px 2px;border-bottom:1px solid var(--rule);color:var(--ink);text-decoration:none}
.item .n{font-family:var(--f-num);color:var(--ink-2);text-align:right}
.item .nm{font-weight:700;display:block}
.item .ad{font-size:.78rem;color:var(--ink-2);display:block}
.dot{width:14px;height:14px;border-radius:50%;border:2px solid var(--ai)}
.is-done .item .n,.item.is-done .n{color:var(--shu)}
.is-done .dot,.item.is-done .dot{background:var(--shu);border-color:var(--shu)}
.filters{display:flex;gap:6px;overflow-x:auto;padding-bottom:2px}
.chip{flex:none;border:1px solid var(--rule);background:var(--sheet);color:var(--ink);padding:.3em .8em;border-radius:999px;font:inherit;font-size:.82rem;cursor:pointer;text-decoration:none}
.chip[aria-pressed="true"],.chip[aria-current="page"]{background:var(--ai);color:var(--sheet);border-color:var(--ai)}

/* ルート */
.routes{display:flex;flex-direction:column;gap:10px}
.route{display:grid;grid-template-columns:1fr auto;gap:4px 12px;align-items:baseline}
.route .km{font-family:var(--f-num);font-size:1.25rem}
.days{display:flex;flex-direction:column;gap:6px}
.day{display:grid;grid-template-columns:3.6em 1fr auto;gap:8px;font-size:.86rem;align-items:baseline;padding:6px 0;border-bottom:1px dashed var(--rule)}
.day .seq{color:var(--ink-2);min-width:0;word-break:keep-all;overflow-wrap:break-word}

/* 札所ページ */
.crumb{font-size:.78rem;color:var(--ink-2)}
.crumb a{color:var(--ink-2)}
.temple-head{display:flex;gap:14px;align-items:center}
.temple-head .yomi{font-size:.82rem;color:var(--ink-2)}
.temple-head>div:nth-child(2){flex:1;min-width:0}
.arrows{display:flex;gap:6px;align-self:flex-start}
.arrow{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:50%;border:1px solid var(--rule);background:var(--sheet);color:var(--ink);text-decoration:none;font-size:1.5rem;line-height:1}
.arrow:hover{border-color:var(--shu);color:var(--shu)}
.arrow.off{opacity:.3}
.via-label{margin:-6px 0 0;text-align:right}
dl.kv{display:grid;grid-template-columns:6.5em 1fr;gap:6px 12px;margin:0;font-size:.9rem}
dl.kv dt{color:var(--ink-2)}
dl.kv dd{margin:0;min-width:0;overflow-wrap:anywhere}
.official{border:2px solid var(--ai);border-radius:10px;padding:14px;display:flex;flex-direction:column;gap:8px;background:var(--ai-wash)}
.prevnext{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.prevnext a{display:block;text-decoration:none;background:var(--sheet);border:1px solid var(--rule);border-radius:8px;padding:10px;color:var(--ink);font-size:.86rem}
.entry{display:flex;flex-direction:column;gap:12px}
.entry > *{margin:0}
.entry ul,.entry ol{padding-left:1.3em}
.notice{font-size:.82rem;color:var(--ink-2);border-left:3px solid var(--rule);padding-left:10px}

/* 下部タブ */
nav.tabs{position:fixed;left:0;right:0;bottom:0;z-index:6;background:var(--sheet);border-top:1px solid var(--rule);
  display:grid;grid-template-columns:repeat(5,1fr);
  padding-bottom:env(safe-area-inset-bottom,0px);padding-left:env(safe-area-inset-left,0px);padding-right:env(safe-area-inset-right,0px)}
.tab{color:var(--ink-2);font:700 .7rem var(--f-body);padding:8px 2px 10px;display:flex;flex-direction:column;align-items:center;gap:3px;text-decoration:none;min-height:var(--tabs-h)}
.tab svg{width:22px;height:22px;stroke:currentColor;fill:none;stroke-width:1.7}
.tab[aria-current="page"]{color:var(--shu)}

/* チェックインの結果シート */
.ci{position:fixed;left:0;right:0;bottom:0;z-index:8;background:var(--sheet);border-top:2px solid var(--ai);border-radius:14px 14px 0 0;
  padding:16px max(16px,env(safe-area-inset-right,0px)) calc(16px + env(safe-area-inset-bottom,0px)) max(16px,env(safe-area-inset-left,0px));
  box-shadow:0 -6px 24px rgba(0,0,0,.18)}
.ci[hidden]{display:none}
.ci .wrap{display:flex;flex-direction:column;gap:10px}
.judge{display:grid;grid-template-columns:auto 1fr;gap:4px 12px;font-size:.88rem;margin:0}
.judge dt{color:var(--ink-2)}.judge dd{margin:0}
.pass{color:var(--ok);font-weight:700}.fail{color:var(--shu);font-weight:700}
.toast{position:fixed;left:50%;transform:translateX(-50%);bottom:calc(var(--tabs-h) + 12px + env(safe-area-inset-bottom,0px));background:var(--ink);color:var(--paper);padding:.5em 1em;border-radius:8px;font-size:.88rem;z-index:7}
.toast[hidden]{display:none}
.site-foot{font-size:.78rem;color:var(--ink-2);padding-block:24px 8px;display:flex;flex-direction:column;gap:6px}
.site-foot a{color:var(--ink-2)}

/* 絞り込み・投票・訪問履歴・ルート計算・Google 埋め込み */
.filter-rows{display:flex;flex-direction:column;gap:6px}
.filters-label{flex:none;font-size:.75rem;color:var(--ink-2);align-self:center;min-width:3.2em}
.legend .halo{background:var(--kin);opacity:.45;width:16px;height:16px}
.ranking .votes{font-size:1.1rem;color:var(--shu)}
.ranking .votes small{font-size:.7em;margin-left:2px;color:var(--ink-2)}
.map-error{padding:8px 12px}
.visit{gap:8px}
.visit-head{display:flex;gap:10px;align-items:center}
.small-seal{width:40px;height:40px;font-size:.9rem}
.visit label{display:flex;flex-direction:column;gap:4px}
.visit input[type=date],.visit textarea,.h-add select,.h-add input{font:inherit;font-size:16px;color:var(--ink);background:var(--paper);border:1px solid var(--rule);border-radius:6px;padding:.4em .5em;max-width:100%}
.h-add{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.h-add select{flex:1 1 220px;min-width:0}
.photos{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.photo{display:flex;flex-direction:column;gap:4px;align-items:stretch;min-width:0}
.photo img,.photo .ph{width:100%;aspect-ratio:1;object-fit:cover;border-radius:6px;background:var(--paper);border:1px dashed var(--rule)}
.photo .ph{display:grid;place-items:center;font-size:.78rem;color:var(--ink-2)}
.small-btn{font-size:.72rem;padding:.4em .3em;text-align:center}
.linkish{appearance:none;border:0;background:none;color:var(--ink-2);font:inherit;font-size:.72rem;text-decoration:underline;cursor:pointer;padding:0}
#g88-plan label{display:block}
#g88-plan-result{display:flex;flex-direction:column;gap:8px}
#g88-plan-result .seq{color:var(--ink-2);word-break:keep-all;overflow-wrap:anywhere}

/* 記録を守る案内・はじめての案内 */
.keep{border:2px solid var(--shu);background:var(--shu-wash);border-radius:10px;padding:12px 14px;display:flex;flex-direction:column;gap:6px}
.keep .btns{align-items:center}
.steps{margin:0;padding-left:1.4em;display:flex;flex-direction:column;gap:4px}
.site-foot .linkish{font-size:inherit;color:var(--ink-2)}
.tour{position:fixed;inset:0;z-index:20;background:rgba(10,16,24,.55);display:flex;align-items:flex-end;justify-content:center;padding:16px;padding-bottom:calc(16px + env(safe-area-inset-bottom,0px))}
.tour[hidden]{display:none}
.tour-card{position:relative;background:var(--sheet);color:var(--ink);border-radius:14px;max-width:440px;width:100%;padding:20px 18px 16px;display:flex;flex-direction:column;gap:12px;box-shadow:0 10px 40px rgba(0,0,0,.3)}
.tour-body{display:flex;flex-direction:column;gap:8px;min-height:9.5em}
.tour-body h2{font-size:1.25rem}
.tour .dots{display:flex;gap:6px;justify-content:center}
.tour .dots i{width:7px;height:7px;border-radius:50%;background:var(--rule)}
.tour .dots i.on{background:var(--shu)}
.tour .btns{justify-content:flex-end}
.tour-skip{position:absolute;top:12px;right:14px}
/* ルートの日割り・目次 */
.toc{display:flex;flex-wrap:wrap;gap:6px}
html{scroll-padding-top:84px;scroll-behavior:smooth}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

.day-stops{list-style:none;margin:8px 0;padding:0;display:flex;flex-direction:column}
.day-stops li{display:grid;grid-template-columns:4.6em 1fr auto auto;gap:8px;align-items:baseline;padding:5px 0;border-bottom:1px solid var(--rule);font-size:.9rem}
.day-stops .leg{color:var(--ink-2);font-size:.78rem;text-align:right}
.day-stops a{color:var(--ink);text-decoration:none}
.day-stops li.is-done a{color:var(--shu)}

/* 表示の切り替え */
.theme-switch{display:inline-flex;border:1px solid var(--rule);border-radius:999px;overflow:hidden;background:var(--sheet)}
.theme-switch button{appearance:none;border:0;background:transparent;color:var(--ink-2);font:inherit;font-size:.78rem;padding:.35em .9em;cursor:pointer}
.theme-switch button[aria-pressed="true"]{background:var(--ai);color:var(--sheet)}
.theme-switch button:focus-visible{outline:3px solid var(--ai);outline-offset:-3px}

@media (min-width:760px){.tour{align-items:center}}

@media (min-width:760px){
  h1{font-size:2.1rem}
  .stats{gap:12px}
}

/* ルートのページ：タブ・要約・日ごとのカード・持ち物 */
.seg{display:flex;gap:4px;background:var(--paper);border:1px solid var(--rule);border-radius:999px;padding:4px;overflow-x:auto;scrollbar-width:none}
.seg::-webkit-scrollbar{display:none}
.seg [role=tab]{flex:1 0 auto;border:0;background:transparent;color:var(--ink-2);font:inherit;font-size:.88rem;padding:.5em .9em;border-radius:999px;cursor:pointer;white-space:nowrap}
.seg [role=tab][aria-selected=true]{background:var(--shu);color:#fff;font-weight:700}
.seg.small-seg{margin:12px 0 10px}
.seg.small-seg [role=tab]{font-size:.8rem;padding:.45em .7em}
.seg.small-seg [role=tab][aria-selected=true]{background:var(--ai)}
.route-panel h2{margin-top:0}
.plan-opts{display:flex;flex-direction:column;gap:4px}
.rv-sum{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:6px}
.rv-sum>div:first-child{display:flex;flex-direction:column}
.rv-sum .km{font-size:2rem;font-weight:700;line-height:1}
.rv-sum .km small{font-size:.5em;margin-left:2px}
.rv-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin:10px 0 0}
.rv-stats>div{background:var(--paper);border:1px solid var(--rule);border-radius:8px;padding:6px 8px}
.rv-stats dt{font-size:.72rem;color:var(--ink-2)}
.rv-stats dd{margin:0;font-weight:700;font-size:.9rem}
.day-card{border:1px solid var(--rule);border-radius:10px;padding:10px 12px;margin:12px 0;background:var(--sheet);scroll-margin-top:70px}
.day-card header{display:flex;justify-content:space-between;align-items:baseline;gap:8px}
.day-card header b{font-size:1.05rem}
.day-card .mapbox{margin:8px 0}
.leaflet-tooltip.num-tip{padding:1px 6px;font-size:14px;font-weight:700;line-height:1.3;color:#1b2737;border:2px solid #1b2737;border-radius:5px;box-shadow:none}
/* 0.3.75 地図の札所の名前：黒い小さな字で目立たなかった → 朱の札に白い大きな字（地図は明暗の設定に関係なく明るいので色は固定） */
.leaflet-tooltip.me-tip,.leaflet-tooltip.pick-tip{padding:5px 12px;font:700 17px/1.35 var(--f-body);letter-spacing:.02em;color:#fff;background:#c23a2b;border:2px solid #fff;border-radius:8px;box-shadow:0 2px 6px rgba(0,0,0,.35);white-space:nowrap}
.leaflet-tooltip.pick-tip{background:#2d4f7c}
.leaflet-tooltip-top.me-tip:before{border-top-color:#c23a2b}
.leaflet-tooltip-top.pick-tip:before{border-top-color:#2d4f7c}
@media (max-width:480px){.leaflet-tooltip.me-tip,.leaflet-tooltip.pick-tip{font-size:16px;padding:4px 10px}}
ul.plain{padding-left:1.1em;margin:0}
ul.plain li{margin:4px 0}
.goods .pr,.entry .pr{font-size:.7rem;font-weight:400;border:1px solid var(--rule);border-radius:4px;padding:1px 6px;vertical-align:middle;color:var(--ink-2)}
.goods-list{list-style:none;margin:8px 0;padding:0}
.goods-list li{display:grid;grid-template-columns:5.5em 1fr;gap:2px 10px;padding:8px 0;border-bottom:1px solid var(--rule)}
.goods-list .goods-kind{font-weight:700;font-size:.85rem}
.goods-list a{color:var(--ink)}

/* ホームの KPI・記録の表 */
.kpis{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}
@media (min-width:640px){.kpis{grid-template-columns:repeat(4,1fr)}}
.kpi{display:flex;flex-direction:column;gap:2px;background:var(--sheet);border:1px solid var(--rule);border-radius:10px;padding:10px 12px;color:var(--ink);text-decoration:none}
a.kpi:hover{border-color:var(--shu)}
.kpi-l{font-size:.75rem;color:var(--ink-2)}
.kpi b{font-family:var(--f-num);font-size:1.7rem;line-height:1.1}
.kpi b small{font-size:.5em;margin-left:2px;color:var(--ink-2)}
.kpi-s{font-size:.72rem;color:var(--ink-2)}
.kpi b.kpi-date{font-size:1.25rem;line-height:1.5}
.done-chip{border-color:var(--shu);color:var(--shu)}
.ktable-wrap{overflow-x:auto}
.ktable{width:100%;border-collapse:collapse;font-size:.9rem}
.ktable th{text-align:left;font-size:.75rem;color:var(--ink-2);font-weight:400;border-bottom:1px solid var(--rule);padding:4px 6px}
.ktable td{border-bottom:1px solid var(--rule);padding:8px 6px;vertical-align:top}
.ktable tr.same-day td{border-top:0}
.ktable .kd{white-space:nowrap;font-size:.82rem;color:var(--ink-2)}
.ktable .kx{text-align:right;white-space:nowrap}
.ktable a{color:var(--ink);text-decoration:none}
.ktable .marks{display:flex;flex-wrap:wrap;gap:4px;margin-top:3px}
.tag{font-size:.68rem;border:1px solid var(--rule);border-radius:4px;padding:0 5px;color:var(--ink-2)}
.tag.shu{border-color:var(--shu);color:var(--shu)}
.hl{outline:2px solid var(--kin);outline-offset:2px}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}

/* 区分ページ：地図を上に固定して一覧だけ流す。行を押すと地図で光る */
.sticky-map{position:sticky;top:var(--top-h,0px);z-index:4;background:var(--paper);padding-bottom:6px}
.sticky-map .g88-map.mini{height:min(38vh,320px)}
.pick-list li{display:grid;grid-template-columns:1fr auto;align-items:stretch}
.pick-list .item.pick{width:100%;background:none;border:0;border-bottom:1px solid var(--rule);font:inherit;text-align:left;cursor:pointer}
.pick-list .item.pick.picked{background:var(--ai-wash)}
.pick-list .go{display:flex;align-items:center;justify-content:center;width:44px;border-bottom:1px solid var(--rule);color:var(--ai);font-size:1.3rem;text-decoration:none}
.pick-list .go:hover{color:var(--shu)}
.leaflet-interactive.pulse,path.pulse{animation:g88pulse 0.9s ease-in-out 4}
@keyframes g88pulse{0%,100%{stroke-opacity:1;stroke-width:4}50%{stroke-opacity:.15;stroke-width:10}}
@media (prefers-reduced-motion:reduce){path.pulse{animation:none}}

.day-stops .tr{text-decoration:none;font-size:.95rem;padding:0 2px}
#backup{scroll-margin-top:80px}

.stay-pick{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:4px 0 10px}

/* ホームのメニュー */
.menu h2{margin:0 0 8px}
.menu-grid{display:grid;grid-template-columns:1fr;gap:8px}
@media (min-width:560px){.menu-grid{grid-template-columns:repeat(2,1fr)}}
@media (min-width:900px){.menu-grid{grid-template-columns:repeat(3,1fr)}}
.menu-item{display:grid;grid-template-columns:44px 1fr auto;gap:12px;align-items:center;background:var(--sheet);border:1px solid var(--rule);border-radius:12px;padding:12px;color:var(--ink);text-decoration:none;min-height:64px}
.menu-item:hover,.menu-item:focus-visible{border-color:var(--shu)}
.menu-ic{width:44px;height:44px;border-radius:50%;border:2px solid var(--shu);color:var(--shu);display:flex;align-items:center;justify-content:center;font-family:var(--f-disp);font-weight:700;font-size:1.25rem;background:var(--shu-wash)}
.menu-tx{display:flex;flex-direction:column;gap:2px;min-width:0}
.menu-tx b{font-size:1rem}
.menu-tx small{font-size:.76rem;color:var(--ink-2);line-height:1.4}
.menu-go{color:var(--ink-2);font-size:1.4rem}

/* 持ち物のイラスト */
.pil-fig{margin:6px 0 4px;text-align:center}
.pil-fig svg{width:100%;max-width:420px;height:auto;display:block;margin:0 auto}
.pil-ground{fill:var(--rule)}
.pil-tag line{stroke:var(--ink-2);stroke-width:1.5}
.pil-tag circle{fill:var(--shu)}
.pil-tag text{fill:#fff;font:700 13px var(--f-body);text-anchor:middle}
.goods-list{counter-reset:none}
.goods-list .goods-kind{display:flex;align-items:center;gap:6px}
.goods-no{display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px;border-radius:50%;background:var(--shu);color:#fff;font-size:.72rem;font-weight:700;flex:none}
.goods-list li{grid-template-columns:7em 1fr}

.howto{display:grid;grid-template-columns:1fr;gap:8px;margin:6px 0}
@media (min-width:640px){.howto{grid-template-columns:repeat(3,1fr)}}
.howto>div{background:var(--paper);border:1px solid var(--rule);border-radius:8px;padding:8px 10px}
.howto ol{margin:4px 0 0;padding-left:1.2em}
.howto li{margin:2px 0}
#gpx-garmin{scroll-margin-top:80px}

/* ヘルプの手順（スマホの画面） 0.3.22 */
.help-step{display:grid;grid-template-columns:150px 1fr;gap:14px;align-items:start;margin:14px 0;padding:12px;border:1px solid var(--rule);border-radius:12px;background:var(--sheet)}
@media (min-width:640px){.help-step{grid-template-columns:200px 1fr}}
.phone{margin:0;border:6px solid #1c2129;border-radius:22px;overflow:hidden;background:#000;box-shadow:0 2px 8px rgba(0,0,0,.15)}
.phone img{display:block;width:100%;height:auto}
.help-step-tx b{display:block;font-size:1rem;margin:2px 0 4px}
.help-step-tx p{margin:0;font-size:.9rem}
.help-no{display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;border-radius:50%;background:var(--shu);color:#fff;font-weight:700;font-size:.85rem}
.entry h2[id],.entry h3[id]{scroll-margin-top:80px}

/* 読みもののページ：章の見出し・イラスト・数字・お参りの流れ・機能のカード */
:root{--il-bg:#f4efe4;--il-line:#d9cfbb;--il-ground:#e7dfcf;--il-city:#e3ddd0;--il-roof:#4a4f57;--il-stone:#c8c1b3}
:root[data-theme="dark"]{--il-bg:#1d2733;--il-line:#3a4859;--il-ground:#263241;--il-city:#243040;--il-roof:#2a2f36;--il-stone:#5d6670}
@media (prefers-color-scheme:dark){:root[data-theme="auto"]{--il-bg:#1d2733;--il-line:#3a4859;--il-ground:#263241;--il-city:#243040;--il-roof:#2a2f36;--il-stone:#5d6670}}
.entry{gap:14px}
.entry > h2{margin-top:30px;padding:2px 0 10px 16px;position:relative;border-bottom:1px solid var(--rule);font-size:1.35rem}
.entry > h2::before{content:"";position:absolute;left:0;top:4px;bottom:12px;width:6px;border-radius:3px;background:var(--shu)}
.entry > h2:first-child{margin-top:4px}
.entry > h3{margin-top:12px;padding-left:18px;position:relative}
.entry > h3::before{content:"";position:absolute;left:2px;top:.5em;width:8px;height:8px;background:var(--shu);transform:rotate(45deg)}
.entry > h2 + *{margin-top:2px}
.il-fig{margin:4px 0;text-align:center}
.il-fig svg{width:100%;max-width:480px;height:auto;display:block;margin:0 auto}
.il-fig figcaption{font-size:.78rem;color:var(--ink-2);margin-top:4px}
.il-bg{fill:var(--il-bg)}
.il-ring{fill:none;stroke:var(--il-line);stroke-dasharray:3 4}
.il-dot{fill:var(--shu);stroke:var(--sheet);stroke-width:1.2}
.il-castle path{fill:var(--ai);stroke:var(--ai);stroke-width:1.5}
.il-lb{font:700 11px var(--f-body);fill:var(--ink);paint-order:stroke;stroke:var(--il-bg);stroke-width:4px;stroke-linejoin:round}
.il-lb-c{text-anchor:middle}
.il-lb-s{font-weight:400;font-size:10px;fill:var(--ink-2)}
.il-tag rect{fill:var(--sheet);stroke:var(--shu)}
.il-tag text{font:700 11px var(--f-body);fill:var(--shu);text-anchor:middle}
.il-city{fill:var(--il-city)}
.il-sun{fill:var(--shu-wash);stroke:var(--shu);stroke-width:1.5}
.il-ground{fill:var(--il-ground)}
.il-path{fill:none;stroke:var(--il-line);stroke-width:10;stroke-linecap:round;stroke-dasharray:1 16}
.il-shu{fill:#c23a2b}
.il-roof{fill:var(--il-roof)}
.il-stone{fill:var(--il-stone)}
.il-tl{stroke:var(--il-line);stroke-width:4;stroke-linecap:round}
.il-node circle{fill:var(--sheet);stroke:var(--ai);stroke-width:2.5}
.il-node text{font:700 16px var(--f-disp);fill:var(--ai);text-anchor:middle}
.il-node-hi circle{fill:var(--shu-wash);stroke:var(--shu)}
.il-node-hi text{fill:var(--shu)}
.il-t1{font:700 12px var(--f-body);fill:var(--ink);text-anchor:middle}
.il-t2{font:700 11px var(--f-body);fill:var(--ink);text-anchor:middle}
.il-t3{font:400 10px var(--f-body);fill:var(--ink-2);text-anchor:middle}
.il-wheel{fill:none;stroke:var(--ink);stroke-width:3}
.il-frame{fill:none;stroke:var(--ai);stroke-width:3.5;stroke-linecap:round;stroke-linejoin:round}
.il-train{fill:var(--ai)}
.il-rail{fill:none;stroke:var(--ink-2);stroke-width:2.5;stroke-linecap:round}
.il-water{fill:none;stroke:#5b8fc9;stroke-width:2.5;stroke-linecap:round}
.il-water-f{fill:#bcd6ef}
.il-smoke{fill:none;stroke:var(--ink-2);stroke-width:1.5;stroke-linecap:round}
.il-seal{stroke:#c23a2b;stroke-width:2}
.il-seal-f{fill:#c23a2b}
.il-arrow{fill:none;stroke:var(--shu);stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}
ul.figs,.entry ul.figs{display:grid;padding:0;grid-template-columns:repeat(2,1fr);gap:8px;margin:0;padding:0;list-style:none}
@media (min-width:640px){ul.figs,.entry ul.figs{grid-template-columns:repeat(4,1fr)}}
.figs li{background:var(--sheet);border:1px solid var(--rule);border-radius:12px;padding:10px 12px;display:flex;flex-direction:column;gap:2px}
.figs b{font:800 1.6rem/1.1 var(--f-disp);color:var(--shu)}
.figs b small{font-size:.8rem;margin-left:2px;color:var(--ink)}
.figs span{font-size:.78rem;color:var(--ink-2);line-height:1.4}
ol.flow{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:1fr;gap:8px;counter-reset:flow}
@media (min-width:640px){ol.flow{grid-template-columns:repeat(5,1fr)}}
ol.flow li{counter-increment:flow;display:grid;grid-template-columns:64px 1fr;gap:10px;align-items:center;background:var(--sheet);border:1px solid var(--rule);border-radius:12px;padding:8px 10px;font-size:.88rem;line-height:1.5}
@media (min-width:640px){ol.flow li{grid-template-columns:1fr;text-align:center;align-content:start}}
ol.flow svg{width:64px;height:64px;display:block;margin:0 auto}
ol.flow .fl-no{display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px;border-radius:50%;background:var(--shu);color:#fff;font-size:.72rem;font-weight:700;margin-right:4px;vertical-align:1px}
.entry .menu-grid{margin:0}
.menu-ic svg{width:24px;height:24px;stroke:currentColor;fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.feature-list{display:grid;grid-template-columns:1fr;gap:10px}
.feature-card{display:grid;grid-template-columns:1fr;gap:6px;background:var(--sheet);border:1px solid var(--rule);border-radius:14px;padding:14px;color:var(--ink);text-decoration:none}
a.feature-card:hover,a.feature-card:focus-visible{border-color:var(--shu)}
.feature-card .fc-kind{font-size:.72rem;font-weight:700;color:var(--shu);letter-spacing:.06em}
.feature-card b{font:800 1.1rem var(--f-disp)}
.feature-card small{color:var(--ink-2);font-size:.85rem;line-height:1.5}

/* 特集：半日モデルコース */
.course{display:flex;flex-direction:column;gap:10px}
dl.course-sum{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:0}
dl.course-sum div{background:var(--sheet);border:1px solid var(--rule);border-radius:10px;padding:8px 10px}
dl.course-sum dt{font-size:.72rem;color:var(--ink-2)}
dl.course-sum dd{margin:0;font:800 1.1rem var(--f-disp);color:var(--shu)}
.course .btns{display:flex;flex-wrap:wrap;gap:8px}
.course-toc{display:flex;flex-wrap:wrap;gap:6px}
/* 各ページの頭のイラスト */
.page-il{margin:2px 0 6px}
.page-il svg{width:100%;max-width:520px;height:auto;display:block;margin:0 auto}
.il-dot2{fill:var(--ai);stroke:var(--sheet);stroke-width:1.2;opacity:.75}
.il-paper{fill:var(--sheet);stroke:var(--il-line);stroke-width:1.5}
.il-fold{fill:none;stroke:var(--il-line);stroke-width:1.2;stroke-dasharray:4 3}
.il-lines{fill:none;stroke:var(--ink-2);stroke-width:2;stroke-linecap:round;opacity:.6}
.il-route{fill:none;stroke:var(--shu);stroke-width:3;stroke-dasharray:2 7;stroke-linecap:round}
.il-pin circle{fill:var(--shu)}
.il-pin text{font:700 11px var(--f-body);fill:#fff;text-anchor:middle}
.il-pod{fill:var(--il-stone)}
.il-podt{font:800 16px var(--f-disp);fill:var(--sheet);text-anchor:middle}
.il-ink{stroke:var(--ink);fill:none}
/* メニューのカードをそろえる：同じ高さ、説明は1行 */
.menu-grid{grid-auto-rows:1fr}
.menu-item{height:100%;min-height:72px}
.menu-tx b{font-size:.98rem;line-height:1.35}
.menu-tx small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* 文字の大きさ・ホーム画面に追加 */
body{font-size:.9375rem}
:root[data-fs="s"]{font-size:93.75%}
:root[data-fs="l"]{font-size:118.75%}
.foot-tools{display:flex;flex-wrap:wrap;align-items:center;gap:10px 16px}
.foot-tool{display:inline-flex;align-items:center;gap:6px}
.a2hs{display:inline-flex;align-items:center;gap:6px;font-size:.82rem;padding:.4em .9em}
.a2hs svg{width:18px;height:18px;stroke:currentColor;fill:none;stroke-width:1.7}
/* フッターの道具を1行に。「自動」ボタンはなくした（保存済みの auto はそのまま動く） */
.foot-tools{flex-wrap:nowrap;gap:8px;justify-content:flex-start}
.foot-tools .theme-switch button{padding:.35em .75em;white-space:nowrap}
.fs-switch button{min-width:34px;padding:.2em .55em;line-height:1}
.fs-s{font-size:.72rem}.fs-m{font-size:.9rem}.fs-l{font-size:1.1rem}
.fs-switch span{font-weight:700;font-family:var(--f-body)}
.a2hs{white-space:nowrap;padding:.35em .75em;margin-left:auto}
@media (max-width:360px){.foot-tools .theme-switch button{padding:.35em .55em}.a2hs{padding:.35em .55em}}
/* 半日モデルコースの「近くでランチ」 */
.lunch{border:1px solid var(--rule);border-radius:12px;background:var(--sheet);padding:10px 12px}
.lunch-h{font:800 .95rem var(--f-disp);margin:0 0 4px;color:var(--shu)}
ul.lunch-list,.entry ul.lunch-list{list-style:none;margin:0;padding:0}
.lunch-list li{display:flex;flex-direction:column;gap:1px;padding:8px 0;border-top:1px solid var(--rule)}
.lunch-list li:first-child{border-top:0}
.lunch-list b{font-size:.95rem}
.lunch-meta{font-size:.78rem;color:var(--ink-2)}
/* フッター：案内のリンクと表示の道具を、それぞれ枠で囲む */
.foot-nav,.site-foot .foot-tools{background:var(--sheet);border:1px solid var(--rule);border-radius:12px;padding:10px 12px}
.foot-nav{line-height:2}
.site-foot .copy{margin-top:4px}
/* 記録を更新したあとの「書き出す」のおすすめ */
.site-foot .foot-tools{padding:8px;gap:6px}
@media (max-width:400px){.foot-tools .theme-switch button{padding:.35em .5em}.fs-switch button{min-width:28px;padding:.2em .4em}.a2hs{padding:.35em .5em;gap:4px}.a2hs svg{width:16px;height:16px}}
/* ヘッダーのアイコン */
.top .row{align-items:center}
.brand{display:inline-flex;align-items:center;gap:8px}
.brand-ic{width:28px;height:28px;border-radius:6px;flex:none;display:block}
/* 進み具合の共有カード */
.share-img{display:block;width:100%;max-width:360px;height:auto;margin:8px auto;border:1px solid var(--rule);border-radius:12px}

/* 「進み具合をシェア」をメニューのカードで */
button.menu-item{font:inherit;text-align:left;width:100%;cursor:pointer;appearance:none}
.share-grid{margin-top:8px}
nav.menu .share-grid{grid-auto-rows:auto}
/* 御朱印帳（訪問履歴集）の印刷。画面では A5 の見本、印刷では1記録＝1ページ */
.book{display:flex;flex-direction:column;gap:18px;align-items:center;-webkit-print-color-adjust:exact;print-color-adjust:exact}
.book-page{container-type:inline-size;width:min(100%,420px);aspect-ratio:148/210;background:#fffdf7;color:#1b2737;border:1px solid #e6e2d8;border-radius:6px;box-shadow:0 4px 14px rgba(0,0,0,.12);display:flex;flex-direction:column;padding:6cqw;gap:3cqw;overflow:hidden;position:relative;font-family:"Shippori Mincho B1","Yu Mincho",serif}
.bp-head{display:flex;align-items:baseline;gap:3cqw;border-bottom:.4cqw solid #c23a2b;padding-bottom:2cqw}
.bp-head b{font-size:5.2cqw;color:#c23a2b}
.bp-head span{font-size:5cqw;font-weight:800;flex:1;min-width:0}
.bp-head time{font-size:3.4cqw;color:#5a6676;font-family:"BIZ UDPGothic",sans-serif}
.bp-main{flex:1;min-height:0;display:flex;align-items:center;justify-content:center}
.bp-main img{max-width:100%;max-height:100%;object-fit:contain;box-shadow:0 1px 4px rgba(0,0,0,.18)}
.bp-empty{border:.4cqw dashed #c9c1b0;color:#8a8070;width:70%;height:80%;display:flex;align-items:center;justify-content:center;font-size:3.6cqw}
.bp-subs{display:flex;gap:3cqw;justify-content:center}
.bp-subs figure{margin:0;width:26cqw;text-align:center}
.bp-subs img{width:100%;height:20cqw;object-fit:cover;border-radius:1cqw}
.bp-subs figcaption{font-size:2.8cqw;color:#5a6676}
.bp-memo{font-size:3.3cqw;line-height:1.6;margin:0;font-family:"BIZ UDPGothic",sans-serif;color:#33404f}
.bp-foot{position:absolute;bottom:3cqw;left:0;right:0;text-align:center;font-size:2.8cqw;color:#8a8070}
.book-cover{background:#2d4f7c;color:#fffdf7;padding:8cqw}

.bs-title{font-size:6cqw;font-weight:800;margin:0;text-align:center}
.bs-grid{display:grid;grid-template-columns:repeat(8,1fr);gap:1.6cqw;flex:1;align-content:center}
.bs-grid span{aspect-ratio:1;display:flex;align-items:center;justify-content:center;border:.3cqw solid #c9c1b0;border-radius:50%;font-size:3cqw;color:#8a8070;font-family:"BIZ UDPGothic",sans-serif}
.bs-grid span.on{background:#c23a2b;border-color:#c23a2b;color:#fff;font-weight:700}
.bs-count{text-align:center;font-size:5cqw;font-weight:800;color:#c23a2b;margin:0}

@page{size:A5 portrait;margin:0}
@media print{
  html{margin-top:0!important}
  body.is-book{padding:0!important;background:#fff}
  body.is-book .top,body.is-book nav.tabs,body.is-book .site-foot,body.is-book .page-il,body.is-book .notice,body.is-book #backup,body.is-book #offline-prep,body.is-book .share-grid,body.is-book .book-tools,body.is-book main>div:first-child,body.is-book main>.entry,body.is-book .keep,body.is-book .nudge,body.is-book .toast,body.is-book #wpadminbar,body.is-book .skip-link,body.is-book .ci{display:none!important}
  body.is-book main.wrap{max-width:none;margin:0;padding:0;gap:0}
  body.is-book .book{gap:0;display:block}
  .book-page{width:148mm;height:210mm;aspect-ratio:auto;border:0;border-radius:0;box-shadow:none;break-after:page;page-break-after:always}
  .book-page:last-child{break-after:auto;page-break-after:auto}
}
/* cqw はページの中の要素で効く：余白と間隔は内側の .bp-in に */
.book-page{padding:0;display:block}
.bp-in{height:100%;box-sizing:border-box;display:flex;flex-direction:column;padding:6cqw;gap:3cqw}
.book-cover .bp-in{padding:8cqw}
/* 御朱印帳のデザインを作り直し：布の表紙と題箋、日ごとの道のり、縦書きの札所名 */
.book-page{background:#fbf7ee;border-color:#e3dac7}
.bp-in{position:relative}
.book-cover{background-color:#22406b;background-image:radial-gradient(circle at 50% 100%,transparent 30%,rgba(255,255,255,.08) 31% 35%,transparent 36% 46%,rgba(255,255,255,.08) 47% 51%,transparent 52% 62%,rgba(255,255,255,.08) 63% 67%,transparent 68%),radial-gradient(circle at 0 50%,transparent 30%,rgba(255,255,255,.08) 31% 35%,transparent 36% 46%,rgba(255,255,255,.08) 47% 51%,transparent 52% 62%,rgba(255,255,255,.08) 63% 67%,transparent 68%);background-size:12cqw 6cqw;color:#fffdf7}
.book-cover .bp-in{padding:0}
.bc-label{position:absolute;top:9%;right:14%;width:21cqw;height:66%;background:#fbf7ee;color:#1b2737;writing-mode:vertical-rl;display:flex;align-items:center;justify-content:center;gap:4cqw;border:.6cqw double #b8862b;box-shadow:0 .5cqw 1.5cqw rgba(0,0,0,.25)}
.bc-label span{font-size:4.6cqw;letter-spacing:.2em;font-weight:600}
.bc-label b{font-size:10cqw;letter-spacing:.25em;font-weight:800}
.bc-meta{position:absolute;left:10%;bottom:8%;margin:0;font:600 3.2cqw "BIZ UDPGothic",sans-serif;color:#e9cf8f;letter-spacing:.06em}
.bk-kicker{margin:0;font-size:3.6cqw;font-weight:800;color:#c23a2b;letter-spacing:.3em;display:flex;align-items:center;gap:2cqw}
.bk-kicker::after{content:"";flex:1;border-top:.3cqw solid #c23a2b;opacity:.5}
.bk-stats{display:grid;grid-template-columns:1fr 1fr;gap:2.4cqw;margin:0}
.bk-stats div{border:.3cqw solid #e3dac7;border-radius:1.5cqw;padding:2cqw 3cqw;background:#fffdf7}
.bk-stats dt{font:600 2.8cqw "BIZ UDPGothic",sans-serif;color:#6b6457}
.bk-stats dd{margin:0;font-size:8cqw;font-weight:800;color:#1b2737;line-height:1.1}
.bk-stats small{font-size:3.4cqw;color:#6b6457;margin-left:.6cqw}
.bk-mapbox{flex:1;min-height:0;display:flex;align-items:center;justify-content:center}
.bk-map{width:100%;height:auto;max-height:100%;border-radius:1.5cqw}
.bk-note{margin:0;font:2.7cqw "BIZ UDPGothic",sans-serif;color:#6b6457}
.bk-date{margin:0;font-size:7.4cqw;font-weight:800}
.bk-daysum{margin:-1.5cqw 0 0;font:600 3.2cqw "BIZ UDPGothic",sans-serif;color:#6b6457}
.bk-stops{list-style:none;margin:0;padding:0;display:grid;gap:1.2cqw;font-size:3.6cqw}
.bk-stops li{display:grid;grid-template-columns:6cqw 11cqw 1fr;align-items:center;gap:1.5cqw;border-bottom:.2cqw dotted #d8cfbb;padding-bottom:1cqw}
.bk-no{width:5cqw;height:5cqw;border-radius:50%;background:#c23a2b;color:#fff;display:flex;align-items:center;justify-content:center;font:700 2.8cqw "BIZ UDPGothic",sans-serif}
.bk-tm{font:600 3cqw "BIZ UDPGothic",sans-serif;color:#6b6457}
.book-shuin .bp-in{display:grid;grid-template-columns:1fr 10cqw;grid-template-rows:1fr auto;gap:3cqw}
.book-shuin .bp-main{grid-column:1;grid-row:1}
.bs-cap{grid-column:2;grid-row:1/3;writing-mode:vertical-rl;display:flex;align-items:center;gap:3cqw;border-left:.3cqw solid #c23a2b;padding-left:1.5cqw}
.bs-cap b{font-size:5cqw;color:#c23a2b;font-weight:800}
.bs-cap span{font-size:6cqw;font-weight:800;letter-spacing:.12em}
.bs-cap time{font:600 3cqw "BIZ UDPGothic",sans-serif;color:#6b6457;margin-top:auto}
.tcy{text-combine-upright:all;-webkit-text-combine:horizontal}
.bp-main img{box-shadow:0 .4cqw 1.6cqw rgba(0,0,0,.18);border-radius:.6cqw}
.bp-bottom{grid-column:1;grid-row:2;display:flex;gap:3cqw;align-items:flex-start}
.bp-bottom .bp-subs{display:flex;gap:2cqw;flex:none}
.bp-bottom .bp-subs img{width:18cqw;height:14cqw;object-fit:cover;border-radius:1cqw}
.bp-bottom .bp-memo{flex:1;font-size:3cqw}
.book-shuin .bp-foot{bottom:2.5cqw}
.book-sum .bs-grid span{font-family:"Shippori Mincho B1",serif;font-weight:700}
.book-sum .bs-count{font-size:7cqw;letter-spacing:.2em}
.bc-label{gap:3cqw;padding:5cqw 0}
.bc-label span,.bc-label b{white-space:nowrap}
.bc-label span{font-size:3.9cqw;letter-spacing:.12em}
.bc-label b{font-size:8.6cqw;letter-spacing:.2em}
/* 御朱印帳の選べる項目：表紙の色・結願之證・A4 見開き・札所のひとこと */
.book-cover.c-shu{background-color:#9e2a20}
.book-cover.c-sumi{background-color:#26282c}
.book-cover.c-sumi .bc-label{border-color:#9a9a9a}
.bs-cap em{font-style:normal;font:500 2.7cqw "BIZ UDPGothic",sans-serif;color:#6b6457;letter-spacing:.05em}
.bk-daylist{list-style:none;margin:0;padding:0;display:grid;gap:1.4cqw;font-size:3.4cqw}
.bk-daylist li{display:grid;grid-template-columns:12cqw 1fr auto;gap:2cqw;border-bottom:.2cqw dotted #d8cfbb;padding-bottom:1cqw}
.bk-daylist b{color:#c23a2b}
.book-kechi{background:#fffdf7}
.bk-kframe{flex:1;border:.8cqw double #c23a2b;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5cqw;padding:8cqw;text-align:center}
.bk-ktitle{margin:0;font-size:13cqw;font-weight:800;letter-spacing:.3em;writing-mode:vertical-rl}
.bk-ktext{margin:0;font-size:3.8cqw;line-height:1.9}
.bk-kdate{margin:0;font:600 3.6cqw "BIZ UDPGothic",sans-serif;color:#6b6457}
.bk-kseal{width:22cqw;height:22cqw;border:1.2cqw solid #c23a2b;border-radius:50%;color:#c23a2b;display:flex;align-items:center;justify-content:center;font-size:7cqw;font-weight:800;transform:rotate(-8deg);opacity:.9}
.bk-ksite{margin:0;font-size:3.2cqw;color:#6b6457}
.book-blank{background:#fff;border-style:dashed}

.book.paper-a4 .spread{display:flex;gap:18px;justify-content:center;flex-wrap:wrap;width:100%}
.book.paper-a4 .spread .book-page{width:min(48%,340px)}
@media print{
  body.is-book .book.paper-a4 .spread{display:flex;gap:0;width:297mm;height:210mm;break-after:page;page-break-after:always;flex-wrap:nowrap}
  body.is-book .book.paper-a4 .spread:last-child{break-after:auto;page-break-after:auto}
  body.is-book .book.paper-a4 .spread .book-page{width:148.5mm;height:210mm;break-after:auto;page-break-after:auto;border-right:.2mm dashed #d8cfbb}
  body.is-book .book-blank{border:0}
}

/* 札所ページの外部リンクを小さなアイコンつきに */

.ext{display:inline-flex;align-items:center;gap:5px;font-size:.82rem;color:var(--ai);text-decoration:none;border:1px solid var(--rule);background:var(--sheet);border-radius:999px;padding:.3em .8em .3em .6em}
.ext:hover,.ext:focus-visible{border-color:var(--ai)}
.ext svg{width:16px;height:16px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.ext::after{content:"↗";font-size:.75em;opacity:.7}
.day-stops .tr svg{width:18px;height:18px;stroke:var(--ai);fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;display:block}
/* 御朱印のページ：外観・その他の写真を中央に2枚、その下にメモ */
.bp-bottom{flex-direction:column;align-items:center;gap:2cqw}
.bp-bottom .bp-subs{justify-content:center;gap:3cqw}
.bp-bottom .bp-subs figure{margin:0;text-align:center}
.bp-bottom .bp-subs img{width:24cqw;height:18cqw;object-fit:cover;border-radius:1cqw;display:block}
.bp-bottom .bp-subs figcaption{font:500 2.5cqw "BIZ UDPGothic",sans-serif;color:#6b6457;margin-top:.6cqw}
.bp-bottom .bp-memo{align-self:stretch;text-align:left}
/* デジタル御朱印帳のページ：印刷設定を表のように並べる */
body.is-book main > .page-il,body.is-book main > .notice,body.is-book #backup{display:none}
.book-link{margin-top:0}
.bt-tabs{display:inline-flex;border:1px solid var(--rule);border-radius:999px;overflow:hidden;background:var(--sheet);align-self:flex-start}
.bt-tab{padding:.45em 1.1em;font-size:.88rem;color:var(--ink-2);text-decoration:none}
.bt-tab.on{background:var(--ai);color:var(--sheet);font-weight:700}
.bt-tab.off{opacity:.45;cursor:not-allowed}
.bt-h{font-size:1.05rem;margin:6px 0 0;padding-bottom:6px;border-bottom:1px solid var(--rule)}
.bt-grid{display:grid;grid-template-columns:5.5em 1fr;gap:10px 12px;margin:0;align-items:center}
.bt-grid dt{font-size:.8rem;color:var(--ink-2);font-weight:700}
.bt-grid dd{margin:0;display:flex;flex-wrap:wrap;gap:6px}
.opt{position:relative;display:inline-flex}
.opt input{position:absolute;opacity:0;width:1px;height:1px}
.opt span{display:inline-flex;align-items:center;gap:6px;border:1px solid var(--rule);background:var(--sheet);border-radius:8px;padding:.35em .8em;font-size:.86rem;cursor:pointer;color:var(--ink)}
.opt input:checked + span{border-color:var(--ai);background:var(--ai-wash);color:var(--ai);font-weight:700}
.opt input[type=checkbox] + span::before{content:"";width:12px;height:12px;border:1.5px solid currentColor;border-radius:3px;flex:none}
.opt input[type=checkbox]:checked + span::before{background:currentColor;box-shadow:inset 0 0 0 2px var(--ai-wash)}
.opt input:focus-visible + span{outline:3px solid var(--ai);outline-offset:1px}
.sw span::before{content:"";width:14px;height:14px;border-radius:50%;flex:none}
.sw-ai span::before{background:#22406b}.sw-shu span::before{background:#9e2a20}.sw-sumi span::before{background:#26282c}
.book-tools{gap:12px}
.menu-grid.book-link{grid-template-columns:1fr}
/* A5横（1枚に2ページ＝1ページ A6、御朱印帳に近い大きさ） */
@media print{
  body.is-book .book.paper-a5w .spread{width:210mm;height:148mm}
  body.is-book .book.paper-a5w .spread .book-page{width:105mm;height:148mm}
}
/* 訪問履歴：枠と枠の間をトップページと同じ間隔に */
#g88-history{display:flex;flex-direction:column;gap:18px}
#g88-history > .book-link{margin:0}
.bt-note{border-left:3px solid var(--shu);padding-left:10px;color:var(--ink)}

/* 札所一覧の1行をサイト内で統一：番号の丸（参拝済み＝朱）・行＝地図で表示 or ページへ・右端の → ＝ページへ */
.list li.row{display:grid;grid-template-columns:1fr auto;align-items:stretch;border-bottom:1px solid var(--rule)}
.list li.row:last-child{border-bottom:0}
.list li.row .item{grid-template-columns:34px 1fr auto;border-bottom:0;padding:9px 2px;width:100%}
.list li.row .item.pick{background:none;border:0;font:inherit;text-align:left;cursor:pointer;color:var(--ink)}
.list li.row .item.pick.picked{background:var(--ai-wash)}
.list li.row .n{width:30px;height:30px;border-radius:50%;border:2px solid var(--ai);color:var(--ai);display:grid;place-items:center;font-size:.8rem;font-weight:700;text-align:center;line-height:1}
.list li.row.is-done .n{background:var(--shu);border-color:var(--shu);color:#fff}
.list li.row.is-done .nm::after{content:"参拝済み";margin-left:.5em;font-size:.68rem;font-weight:700;color:var(--shu);border:1px solid var(--shu);border-radius:999px;padding:.05em .5em;vertical-align:.15em;white-space:nowrap}
.list li.row .go{display:flex;align-items:center;justify-content:center;width:40px;color:var(--ai);font-size:1.2rem;text-decoration:none}
.list li.row a.go:hover,.list li.row a.item:hover .go{color:var(--shu)}
.list li.row .dot{display:none}
.list li.row .tx{min-width:0}
.pick-list li.row .item.pick{border-bottom:0}
.pick-list li.row .go{border-bottom:0}
/* ルートの日割りの札所も同じ見た目に */
.day-stops li.row{grid-template-columns:4.6em 1fr auto auto;align-items:center;padding:0;font-size:inherit}
.day-stops li.row .item{grid-template-columns:34px 1fr}
.day-stops li.row .tr{display:flex;align-items:center;padding:0 6px}
.day-stops li.row.is-done a{color:inherit}
.day-stops li.row a.go{color:var(--ai)}
/* 札所ページ：行き方・受付・特集 */
.access{gap:10px}
.access h3{margin-top:6px;font-size:1rem}
.access .addr{font-weight:700}
.access .btn svg{width:18px;height:18px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;margin-right:6px;vertical-align:-3px}
.official .hours{background:var(--sheet);border-radius:6px;padding:8px 10px}
.story{display:grid;grid-template-columns:auto 1fr auto;gap:12px;align-items:center;background:var(--sheet);border:1px solid var(--rule);border-radius:10px;padding:12px 14px;color:var(--ink);text-decoration:none}
.story:hover{border-color:var(--ai)}
.story svg{width:26px;height:26px;stroke:var(--ai);fill:none;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.story b{display:block}
.story .go{color:var(--ai);font-size:1.2rem}
.ranking li.row .item{grid-template-columns:34px 1fr auto auto}
.ranking li.row .n{border:0;width:auto;height:auto;color:var(--ink-2);font-family:var(--f-num);font-size:.95rem}
.ranking li.row.is-done .n{background:none;color:var(--shu)}
/* 特集の記事 */
.feature-card .fc-date{margin-left:8px;color:var(--ink-2);font-weight:400;letter-spacing:0;font-family:var(--f-num)}
.home-tokushu{display:flex;flex-direction:column;gap:10px}
.home-tokushu h2{margin:0}
.post-article{display:flex;flex-direction:column;gap:12px}
.post-article > *{margin:0}
.post-article .crumb a{color:var(--ai)}
.post-eye img{width:100%;height:auto;border-radius:14px;display:block}
.share-links{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:18px;padding-top:14px;border-top:1px solid var(--rule)}
.post-more{display:flex;flex-direction:column;gap:10px;margin-top:28px}
.post-more h2{margin:0}
.entry table{border-collapse:collapse;width:100%;font-size:.92rem}
.entry th,.entry td{border:1px solid var(--rule);padding:6px 8px;text-align:left;vertical-align:top}
.entry th{background:var(--ai-wash)}
.entry .src{font-size:.82rem;color:var(--ink-2)}
/* 札所ページの地図：このページの札所に戻るボタン */
.leaflet-control .g88-back,.g88-back{background:#fff;color:#1b2737;border:2px solid #c23a2b;border-radius:999px;padding:5px 12px;font:700 .82rem var(--f-body);box-shadow:0 1px 4px rgba(0,0,0,.25);cursor:pointer}
.g88-back:hover,.g88-back:focus-visible{background:#fbe7e2}
/* 札所ページの地図の「現在地」ボタンと緑の点（札所の印の青・朱と分ける） */
.leaflet-control .g88-me,.g88-me{border-color:#15803d;color:#1b2737;margin-top:6px}
.g88-me:hover,.g88-me:focus-visible{background:#e3f4e8}
.g88-me[aria-pressed="true"]{background:#15803d;color:#fff}
.leaflet-tooltip.me-here{background:#15803d;color:#fff;border:2px solid #fff;border-radius:6px;font:700 14px var(--f-body);padding:2px 8px;box-shadow:0 1px 4px rgba(0,0,0,.3)}
.leaflet-tooltip.me-here::before{border-bottom-color:#15803d}
/* 札所ページのチェックイン：朱印の形の丸いボタン。参拝済みは朱で押した印 */
.ci-wrap{display:flex;flex-direction:column;align-items:center;gap:6px;margin:6px 0 4px}
.ci-btn{appearance:none;position:relative;width:132px;height:132px;border-radius:50%;cursor:pointer;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;
  background:#fff;color:#c23a2b;border:6px double #c23a2b;box-shadow:0 0 0 4px #fff,0 0 0 6px #e8b84a,0 6px 16px rgba(194,58,43,.25);font-family:var(--f-disp);line-height:1;padding:0}
.ci-btn::after{content:"";position:absolute;inset:-14px;border-radius:50%;border:3px solid #e8b84a;opacity:0;animation:ci-halo 2.4s ease-out infinite;pointer-events:none}
.ci-top,.ci-bot{font-size:.82rem;font-weight:800;letter-spacing:.08em}
.ci-n{font-size:2.6rem;font-weight:800}
.ci-btn:hover{background:#fbe7e2}
.ci-btn:active{transform:scale(.97)}
.ci-btn:focus-visible{outline:3px solid var(--ai);outline-offset:8px}
.ci-btn[disabled]{cursor:progress}
.ci-btn[disabled]::after{animation-duration:.9s}
.ci-btn.is-done{background:#c23a2b;color:#fff;border-color:#fff;transform:rotate(-8deg);box-shadow:0 0 0 4px #c23a2b,0 0 0 6px #e8b84a,0 4px 12px rgba(0,0,0,.15)}
.ci-btn.is-done::after{display:none}
.ci-btn.is-done .ci-top{font-size:1.05rem}
.ci-btn.is-done .ci-bot{font-size:1.5rem;letter-spacing:.1em;margin-top:6px}
.ci-date{color:var(--ink-2);font-family:var(--f-num)}
@keyframes ci-halo{0%{opacity:.9;transform:scale(.92)}70%{opacity:0;transform:scale(1.08)}100%{opacity:0}}
.ci-stamp{display:flex;justify-content:center;margin:2px 0 8px}
.ci-stamp span{width:112px;height:112px;border-radius:50%;border:5px double #c23a2b;color:#c23a2b;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;font:800 1rem/1.25 var(--f-disp);transform:rotate(-10deg);animation:ci-press .55s cubic-bezier(.2,1.6,.4,1) both;background:rgba(251,231,226,.6)}
.ci-stamp b{font-size:2.1rem;line-height:1}
.ci-stamp i{font-style:normal;font-size:.85rem}
@keyframes ci-press{0%{opacity:0;transform:scale(2.2) rotate(-10deg)}100%{opacity:1;transform:scale(1) rotate(-10deg)}}
@media (prefers-reduced-motion:reduce){.ci-btn::after,.ci-stamp span{animation:none}}
/* 札所ページ：最寄り駅 */
.stations{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;border-top:1px solid var(--rule)}
.stations li{display:grid;grid-template-columns:20px 1fr auto;gap:10px;align-items:center;padding:8px 2px;border-bottom:1px solid var(--rule)}
.stations svg{width:18px;height:18px;stroke:var(--ai);fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.stations .st-nm b{display:block}
.stations .st-ln{display:block;font-size:.78rem;color:var(--ink-2)}
.stations .st-walk{text-align:right;font-weight:700;white-space:nowrap}
.stations .st-walk small{display:block;font-weight:400;font-size:.8125rem;color:var(--ink-2)}
/* みんなのアンケート */
.poll h2{font-size:1.05rem;margin:4px 0 2px}
.poll-opts{display:flex;flex-wrap:wrap;gap:8px}
.poll-opts .btn{flex:1 1 calc(50% - 8px);min-width:9em}
.poll-sel{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.poll-sel select{flex:1 1 14em;min-height:44px;font:inherit;padding:6px 8px;border:1px solid var(--rule);border-radius:8px;background:var(--sheet);color:inherit}
.poll-gate{margin:6px 0 10px;padding:8px 10px;border-left:3px solid var(--shu);background:rgba(0,0,0,.03);font-size:.9rem}
.poll-res{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px}
.poll-res li{display:grid;grid-template-columns:9.5em 1fr 3em;gap:8px;align-items:center;font-size:.9rem}
.poll-res .pl small{margin-left:.4em;font-size:.68rem;color:var(--shu);border:1px solid var(--shu);border-radius:999px;padding:0 .45em}
.poll-res .bar{height:10px;background:var(--rule);border-radius:5px;overflow:hidden}
.poll-res .bar i{display:block;height:100%;background:var(--ai)}
.poll-res li.me .bar i{background:var(--shu)}
.poll-res b{text-align:right}
@media (max-width:380px){.poll-res li{grid-template-columns:7.5em 1fr 2.6em}}
body.is-book main > .poll{display:none}
@media print{.poll{display:none!important}}

/* ---------- Cookie 同意バナー（Complianz）。0.3.67 ---------- */
.cmplz-cookiebanner{font-family:inherit !important;color:var(--ink) !important;background:var(--sheet) !important;border:1px solid var(--rule) !important;box-shadow:0 6px 24px rgba(0,0,0,.18) !important}
.cmplz-cookiebanner .cmplz-title,.cmplz-cookiebanner .cmplz-message,.cmplz-cookiebanner .cmplz-category-title,.cmplz-cookiebanner .cmplz-description{color:var(--ink) !important}
.cmplz-cookiebanner .cmplz-message{font-size:.85rem !important;line-height:1.6 !important}
/* 「同意する」「拒否する」は同じ大きさ・同じ形（欧州の同意の決まりに合わせる） */
.cmplz-cookiebanner .cmplz-btn.cmplz-accept,.cmplz-cookiebanner .cmplz-btn.cmplz-deny{background:var(--ai) !important;border:1px solid var(--ai) !important;color:var(--sheet) !important;font-weight:700 !important}
.cmplz-cookiebanner .cmplz-btn.cmplz-view-preferences,.cmplz-cookiebanner .cmplz-btn.cmplz-save-preferences{background:transparent !important;border:1px solid var(--rule) !important;color:var(--ink) !important}
.cmplz-cookiebanner .cmplz-links a,.cmplz-cookiebanner .cmplz-link{color:var(--ai) !important}
/* PC は下のタブの上に出す（タブをふさがない） */
.cmplz-cookiebanner.cmplz-bottom-right{bottom:calc(var(--tabs-h) + 12px + env(safe-area-inset-bottom,0px)) !important}
@media (max-width:768px){
  /* スマホは画面の上に出す（下に出すと TOP の「現在地から探す」と下のタブをふさぐため）。0.3.69 */
  .cmplz-cookiebanner,.cmplz-cookiebanner.cmplz-bottom-right{top:calc(8px + env(safe-area-inset-top,0px)) !important;bottom:auto !important;left:8px !important;right:8px !important;width:auto !important;max-width:none !important;max-height:46vh;overflow:auto;transform:none !important}
  .cmplz-cookiebanner .cmplz-message{font-size:.8rem !important;line-height:1.55 !important}
  .cmplz-cookiebanner .cmplz-btn{min-height:44px}
}
/* バナー下のリンクは1つに（Complianz が WordPress のプライバシーポリシーをもう一度出すため）。0.3.70 */
.cmplz-cookiebanner .cmplz-link.privacy-statement,.cmplz-cookiebanner li:has(> .cmplz-link.privacy-statement){display:none !important}
/* プライバシーポリシーの中の「Cookie の設定を変える」ボタン。0.3.70 */
.g88-cookie-settings{margin:.5em 0 1em}
@media print{.cmplz-cookiebanner,#cmplz-manage-consent,.g88-cookie-settings{display:none !important}}

/* ---------- チェックインのボタンを「押せる」形に（朱で厚みがあり、押すと沈む）。参拝済みは白地に朱の印 ---------- */
.ci-btn{background:radial-gradient(circle at 50% 35%,#d9483a 0%,#c23a2b 60%,#a92f22 100%);color:#fff;border:3px solid #fff;
  box-shadow:0 0 0 3px #c23a2b,0 0 0 5px #e8b84a,0 7px 0 2px #8f2519,0 12px 18px rgba(0,0,0,.28);transition:transform .08s,box-shadow .08s}
.ci-btn:hover{background:radial-gradient(circle at 50% 35%,#e0574a 0%,#c93f30 60%,#a92f22 100%)}
.ci-btn:active{transform:translateY(5px);box-shadow:0 0 0 3px #c23a2b,0 0 0 5px #e8b84a,0 2px 0 2px #8f2519,0 4px 8px rgba(0,0,0,.25)}
.ci-btn .ci-n{text-shadow:0 2px 0 rgba(0,0,0,.18)}
.ci-btn[disabled]{opacity:.85}
.ci-hint{font-size:.8rem;font-weight:700;color:var(--shu);margin-top:8px}
.ci-hint[hidden]{display:none}
.ci-btn.is-done{background:#fff8f6;color:#c23a2b;border:6px double #c23a2b;transform:rotate(-8deg);box-shadow:0 0 0 3px #fff8f6,0 0 0 5px #e8b84a;cursor:default}
.ci-btn.is-done:hover{background:#fff8f6}
.ci-btn.is-done:active{transform:rotate(-8deg)}
@media (prefers-color-scheme:dark){.ci-btn{border-color:var(--sheet)}.ci-btn.is-done{background:var(--sheet);box-shadow:0 0 0 3px var(--sheet),0 0 0 5px #e8b84a}}
:root[data-theme="dark"] .ci-btn{border-color:var(--sheet)}
:root[data-theme="dark"] .ci-btn.is-done{background:var(--sheet);box-shadow:0 0 0 3px var(--sheet),0 0 0 5px #e8b84a}
:root[data-theme="light"] .ci-btn.is-done{background:#fff8f6}
@media (prefers-reduced-motion:reduce){.ci-btn{transition:none}}

/* ---------- フッターの案内（使い方〜プライバシーポリシー）をスマホでも1行に。文字を大きくした時は項目の切れ目で折り返す ---------- */
.foot-nav{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;column-gap:0;row-gap:2px;line-height:1.9;font-size:clamp(.66rem,2.95vw,.78rem);letter-spacing:-.01em;padding:8px 6px}
.foot-nav>*{flex:0 0 auto;white-space:nowrap}

/* 札所ページの導入文（寺院ごとのデータから作る、2026-10-26） */
.temple-lead{margin:.2em 0 1em;line-height:1.85;color:var(--ink-2,#5a6676)}

/* ---------- 札所ページの紹介文と特集の書き出し ---------- */
.temple-about .temple-intro{margin:0 0 12px}
.temple-about .temple-intro p{margin:0 0 .8em;line-height:1.85}
.temple-about .temple-intro .src{font-size:.75rem;color:var(--ink-2)}
.story-ex{background:var(--sheet);border:1px solid var(--rule);border-top:0;border-radius:0 0 12px 12px;padding:10px 14px 4px;margin:-6px 0 12px;font-size:.9rem;line-height:1.8}
.story-ex p{margin:0 0 .6em}

/* 0.3.74 圏外対応・記録の引っ越し */
.offline-bar{position:sticky;top:var(--top-h,0);z-index:6;background:var(--ink);color:var(--sheet);font-size:.85rem;line-height:1.5;padding:6px 14px;text-align:center}
.offline-bar b{color:#ffd9d2}
.offline-sheet .meter{height:8px;background:var(--rule);border-radius:4px;overflow:hidden;margin:6px 0}
.offline-sheet .meter i{display:block;height:100%;width:0;background:var(--ai);transition:width .2s}
.keep.welcome{border-color:var(--ai);background:var(--ai-wash)}
.keep.welcome label.btn{cursor:pointer}
@media print{.offline-bar{display:none!important}}
.add-visit{border:2px solid var(--shu)}
#g88-add:empty{display:none}
body.is-book #g88-add{display:none!important}

/* ---------- 0.3.82〜0.3.83：サイト制作レギュレーション（情報サイト）に照らした点検（2026-11-04、依頼 d03） ----------
   本文16px・補助14px以上、押せる物は高さ44px以上、キーボードの印をボタン・入力欄にも、スマホの地図ページはイラストを小さく */
body{font-size:1rem}
.small,.notice,.crumb,.legend,.site-foot,.temple-head .yomi,.item .ad,.il-fig figcaption,.figs span,.lunch-meta,.day-stops .leg{font-size:.875rem}
.kpi-l,.kpi-s,.eyebrow,.filters-label,.temple-about .temple-intro .src{font-size:.8125rem}
.ward{font-size:.9375rem;min-height:44px;align-items:center}
.btn{min-height:44px}
.btn:not(.a2hs){display:inline-flex;align-items:center;justify-content:center}
.chip{min-height:44px;display:inline-flex;align-items:center;font-size:.875rem}
.crumb a{display:inline-flex;align-items:center;min-height:44px}
.arrow{width:44px;height:44px}
.list li.row a.go{width:44px}
.foot-nav>a,.foot-nav>.linkish{display:inline-flex;align-items:center;justify-content:center;min-height:44px;min-width:44px;padding-inline:2px}
.top .brand{display:inline-flex;align-items:center;min-height:44px;margin-block:-8px}
.theme-switch button{min-height:44px;min-width:44px}
.fs-switch button{min-width:44px}
.keep .linkish{display:inline-flex;align-items:center;min-height:44px;font-size:.875rem}
.h-add select,.h-add input{min-height:44px}
.leaflet-control .g88-back,.g88-back{min-height:44px;padding:8px 14px}
.mapbox .leaflet-bar a,.mapbox .leaflet-touch .leaflet-bar a{width:44px;height:44px;line-height:44px}
.ci-hint{font-size:.875rem}
.st-walk small,.menu-tx small{font-size:.8125rem}
button:focus-visible,select:focus-visible,input:focus-visible,textarea:focus-visible,summary:focus-visible,[role=tab]:focus-visible{outline:3px solid var(--ai);outline-offset:2px}
.theme-switch button:focus-visible{outline-offset:-3px}
@media (max-width:640px){main .page-il svg{max-height:76px;width:auto;max-width:100%}}
