/* 神社とお寺のおまいり帖(2026-10-16 作り直し): 色は伏見稲荷大社にならって墨色の地に朱と金を差す。
   ページのつくりはタトゥーOK温泉マップ(onsen-map)のトップを参考にした(写真の入口・目的別カード・色の線のカード・都道府県の丸ボタン)。 */
:root {
  --paper: #0e0c0b;      /* 地: 墨 */
  --paper-2: #151210;    /* 帯の地 */
  --card: #1b1714;
  --card-2: #241f1b;
  --ink: #f2ece2;        /* 本文 */
  --muted: #b9ad9c;      /* 補足(地とのコントラスト 8:1 以上) */
  --line: #3a322b;
  --shu: #ec5b36;        /* 朱(文字・線) */
  --shu-deep: #c3361b;   /* 朱(ボタンの地。白文字で 5:1 以上) */
  --shu-soft: rgba(236, 91, 54, .15);
  --gold: #d2ac62;       /* 金 */
  --gold-deep: #9c7a36;
  --gold-soft: rgba(210, 172, 98, .14);
  /* 旧トークン名(寺院の色)。金に寄せる */
  --moss: var(--gold);
  --moss-soft: var(--gold-soft);
  --font-display: "Shippori Mincho B1", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --font-body: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; background: var(--paper); }
body { overflow-x: clip; margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-body); font-size: 16px; line-height: 1.8; line-break: strict; overflow-wrap: break-word; }
pb-t { word-break: keep-all; overflow-wrap: break-word; }
a { color: inherit; }
a:hover { color: var(--gold); }
main { max-width: 1080px; margin: 0 auto; padding-inline: 16px; padding-block: 0 56px; }
h1, h2, h3 { font-family: var(--font-display); text-wrap: balance; line-height: 1.35; }
.muted { color: var(--muted); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ヘッダー: 黒地に白文字、メニューは縦線で区切る */
.top { position: sticky; top: 0; z-index: 1000; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 20px;
  padding: 10px 16px; padding-top: max(10px, env(safe-area-inset-top)); background: rgba(8, 7, 6, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--gold-deep); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-display); font-weight: 800; font-size: 18px; letter-spacing: .04em; color: var(--ink); white-space: nowrap; }
.seal { display: grid; place-items: center; width: 34px; height: 34px; border: 1.5px solid var(--gold); color: var(--gold); border-radius: 50%; font-size: 16px; box-shadow: inset 0 0 0 3px var(--paper), inset 0 0 0 4px var(--gold-deep); }
.nav { display: flex; flex-wrap: wrap; align-items: center; }
.nav a { text-decoration: none; padding: 2px 14px; font-size: 14px; color: #ebe4d8; white-space: nowrap; border-left: 1px solid #4a4038; line-height: 1.6; }
.nav a:first-child { border-left: 0; padding-left: 0; }
.nav a:hover { color: var(--gold); }
.nav a[aria-current="page"] { color: var(--gold); font-weight: 700; }
.account { margin-left: auto; display: flex; align-items: center; gap: 8px; font-size: 13px; min-height: 32px; color: var(--muted); }
.account button { font: inherit; }

/* 共通部品 */
.btn { appearance: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--shu-deep); background: var(--shu-deep); color: #fff; font: inherit; font-weight: 700; padding: 12px 22px; border-radius: 4px; cursor: pointer; width: 100%; text-decoration: none; letter-spacing: .04em; }
.btn:hover { background: #d23d1f; color: #fff; }
.btn:disabled { opacity: .5; cursor: default; }
.btn-ghost { appearance: none; display: inline-block; border: 1px solid var(--gold-deep); background: transparent; color: var(--ink); font: inherit; font-size: 14px; padding: 8px 16px; border-radius: 4px; cursor: pointer; text-decoration: none; }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.link-btn { appearance: none; border: 0; background: none; color: var(--muted); font: inherit; font-size: 13px; text-decoration: underline; cursor: pointer; padding: 0; }
.kind { display: inline-block; font-size: 12px; font-weight: 700; padding: 0 8px; border-radius: 3px; line-height: 1.7; white-space: nowrap; }
.kind-jinja { color: #fff; background: var(--shu-deep); }
.kind-tera { color: #1a1408; background: var(--gold); }
.tag { display: inline-block; font-size: 12px; color: var(--muted); border: 1px solid var(--line); padding: 0 6px; border-radius: 3px; line-height: 1.7; white-space: nowrap; }

/* 見出しまわり(各ページの最初) */
.intro { padding-block: 36px 12px; max-width: 44em; }
.intro h1 { font-size: clamp(28px, 6vw, 44px); margin: 0 0 14px; letter-spacing: .04em; }
.intro h1::after { content: ""; display: block; width: 48px; height: 2px; margin-top: 14px; background: linear-gradient(90deg, var(--shu) 50%, var(--gold) 50%); }
.intro p { margin: 0 0 8px; color: var(--muted); }
.progress { font-weight: 700; color: var(--ink) !important; }
.sub { font-size: 21px; margin: 36px 0 12px; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.sub::before { content: ""; align-self: center; width: 6px; height: 20px; background: var(--shu); border-radius: 1px; }
.eyebrow { margin: 0 0 10px; font-size: 13px; font-weight: 700; letter-spacing: .18em; color: var(--gold); }
.sec { margin-top: 56px; }
.sec-h { font-size: clamp(22px, 4.6vw, 30px); margin: 0 0 6px; letter-spacing: .04em; }
.sec-lede { margin: 0 0 20px; color: var(--muted); max-width: 40em; }

/* トップの最初の画面: 写真を全面に敷く */
.kv { position: relative; margin-inline: calc(50% - 50vw); min-height: min(88vh, 720px); display: grid; align-items: end; overflow: hidden; background: #000; }
.kv picture, .kv-bg { position: absolute; inset: 0; width: 100%; height: 100%; }
.kv-bg { object-fit: cover; object-position: center; opacity: .9; }
.kv::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,12,11,.15) 0%, rgba(14,12,11,.2) 40%, rgba(14,12,11,.88) 78%, var(--paper) 100%); }
.kv-in { position: relative; z-index: 1; padding: 40px 16px 44px; max-width: 1080px; width: 100%; margin: 0 auto; }
.kv h1 { font-size: clamp(34px, 8.4vw, 64px); margin: 0 0 14px; letter-spacing: .05em; text-shadow: 0 2px 20px rgba(0,0,0,.6); }
.kv .lede { margin: 0 0 22px; max-width: 34em; color: #e6dccd; font-size: 16px; text-shadow: 0 1px 8px rgba(0,0,0,.7); }
.cta { display: flex; flex-wrap: wrap; gap: 10px; }
.cta .btn, .cta .btn-ghost { width: auto; min-width: 12em; padding: 13px 22px; font-size: 16px; font-weight: 700; text-align: center; }
.cta .btn-ghost { background: rgba(14,12,11,.55); border-color: var(--gold); color: var(--gold); }
.kv-count { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 18px 0 0; padding: 0; list-style: none; font-size: 14px; color: #ddd2c2; }
.kv-count b { font-family: var(--font-display); font-size: 22px; color: var(--gold); margin-right: 2px; font-variant-numeric: tabular-nums; }

/* 目的別の入口: 写真付きの大きなカード */
.ways { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.way { position: relative; display: block; text-decoration: none; border-radius: 6px; overflow: hidden; border: 1px solid var(--line); background: var(--card); aspect-ratio: 3 / 2; }
.way img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.way::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(8,7,6,.92) 100%); }
.way:hover img { transform: scale(1.04); }
.way-in { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; padding: 16px 18px; display: grid; gap: 2px; }
.way-in strong { font-family: var(--font-display); font-size: clamp(20px, 3.4vw, 26px); color: #fff; letter-spacing: .04em; }
.way-in span { font-size: 14px; color: #e0d6c6; line-height: 1.6; }
.way-in em { font-style: normal; font-weight: 700; color: var(--gold); font-size: 14px; margin-top: 4px; }

/* 種類の説明: 上に色の線が付いたカード */
.kinds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.kinds article { background: var(--card); border: 1px solid var(--line); border-top: 4px solid var(--c, var(--shu)); border-radius: 4px; padding: 18px 18px 16px; }
.kinds h3 { margin: 0 0 6px; font-size: 19px; color: var(--c, var(--shu)); }
.kinds p { margin: 0; font-size: 15px; color: var(--muted); line-height: 1.75; }
.kinds .n { display: block; margin-top: 10px; font-size: 13px; color: var(--ink); }
.kinds .n b { font-family: var(--font-display); font-size: 22px; margin-right: 2px; color: var(--c, var(--shu)); font-variant-numeric: tabular-nums; }

/* 絞り込み・地図・一覧 */
.finder { display: grid; gap: 14px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.f { appearance: none; font: inherit; font-size: 14px; border: 1px solid var(--line); background: var(--card); color: var(--ink); padding: 6px 14px; border-radius: 999px; cursor: pointer; white-space: nowrap; }
.f:hover { border-color: var(--gold-deep); }
.f b { font-variant-numeric: tabular-nums; color: var(--muted); font-weight: 500; margin-left: 2px; }
.f[aria-pressed="true"] { background: var(--shu-deep); color: #fff; border-color: var(--shu-deep); }
.f[aria-pressed="true"] b { color: inherit; }
.search { display: flex; gap: 8px; flex-wrap: wrap; }
.search input { flex: 1 1 220px; min-width: 0; font: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: 4px; background: var(--card); color: var(--ink); }
.search input::placeholder { color: #8e8476; }
.map { height: min(56vh, 460px); border-radius: 6px; border: 1px solid var(--line); background: var(--card); z-index: 0; }
.map .leaflet-tile-pane { filter: brightness(.82) contrast(1.05) saturate(.75); }
.map-small { height: 260px; margin-top: 28px; }
.count { margin: 0; font-size: 13px; color: var(--muted); }

/* 社寺カード(一覧) */
.list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 10px; }
.row { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 6px; transition: border-color .2s; }
.row:hover { border-color: var(--gold-deep); }
.row a { display: grid; gap: 4px; padding: 14px 70px 14px 16px; text-decoration: none; height: 100%; }
.row a:hover { color: inherit; }
.row-main { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
.row-name { font-family: var(--font-display); font-weight: 700; font-size: 18px; letter-spacing: .02em; }
.row-kana { font-size: 12px; color: var(--muted); }
.row-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; font-size: 13px; color: var(--muted); }
.row-addr { margin-right: 2px; }
.row-done { position: absolute; right: 10px; top: 12px; font-family: var(--font-display); font-weight: 800; font-size: 12px; color: var(--shu); border: 1.5px solid var(--shu); border-radius: 50%; width: 46px; height: 46px; display: grid; place-items: center; transform: rotate(-10deg); background: var(--shu-soft); }
.row-dist { position: absolute; right: 12px; bottom: 12px; font-size: 12px; color: var(--gold); font-variant-numeric: tabular-nums; }
.row-done:not([hidden]) ~ .row-dist { display: none; }
.row:hover .row-name { color: var(--gold); }

/* 社寺ページ */
.crumb { font-size: 13px; color: var(--muted); margin: 20px 0 0; }
.crumb a { color: var(--muted); }
.site-head { padding: 8px 0 18px; border-bottom: 1px solid var(--line); }
.site-head h1 { font-size: clamp(30px, 7vw, 50px); margin: 6px 0 0; letter-spacing: .04em; }
.site-kind { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 0; }
.site-kana { margin: 2px 0 0; color: var(--gold); letter-spacing: .12em; font-size: 14px; }
.site-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; margin-top: 24px; align-items: start; }
.summary { font-size: 17px; max-width: 36em; margin: 0; line-height: 1.95; }
.src { font-size: 12px; color: var(--muted); }
.facts { display: grid; gap: 0; margin: 14px 0 20px; border-top: 1px solid var(--line); }
.facts div { display: grid; grid-template-columns: 7em minmax(0, 1fr); gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--gold); font-size: 14px; }
.facts dd { margin: 0; overflow-wrap: anywhere; }
.facts a, .site-text a { color: var(--ink); text-decoration-color: var(--gold-deep); }
.checkin { background: var(--card); border: 1px solid var(--gold-deep); border-radius: 6px; padding: 20px; position: sticky; top: 84px; box-shadow: 0 0 0 4px var(--paper), 0 0 0 5px var(--line); }
.checkin h2 { font-size: 19px; margin: 0 0 4px; color: var(--gold); }
.ck-note { font-size: 13px; color: var(--muted); margin: 0 0 14px; }
#ck-body { display: grid; gap: 10px; }
.ck-msg { font-size: 14px; margin: 0; }
.ck-msg.err { color: var(--shu); }
.ck-manual { display: grid; gap: 8px; border-top: 1px dashed var(--line); padding-top: 12px; margin-top: 4px; font-size: 14px; }
.ck-manual summary { cursor: pointer; }
.ck-manual input { font: inherit; padding: 8px; border: 1px solid var(--line); border-radius: 4px; background: var(--paper); color: var(--ink); }
.ck-history { font-size: 13px; color: var(--muted); margin: 0; padding-left: 1.2em; }
.near { margin-top: 36px; }
.near h2 { font-size: 21px; }

/* 一宮 */
.region h2 { font-size: 22px; margin: 36px 0 10px; display: flex; align-items: baseline; gap: 10px; padding-bottom: 6px; border-bottom: 1px solid var(--gold-deep); }
.region h2 small { font-family: var(--font-body); font-size: 13px; color: var(--muted); font-weight: 400; }
.kuni { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 0 24px; }
.kuni-row { display: grid; grid-template-columns: 5.5em minmax(0, 1fr); gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.kuni-name { font-family: var(--font-display); font-weight: 700; color: var(--gold); }
.kuni-sites { display: flex; flex-wrap: wrap; gap: 2px 12px; }
.kuni-sites a { text-decoration: none; }
.kuni-sites a small { font-size: 11px; color: var(--muted); margin-left: 4px; }
.kuni-sites a.done { color: var(--shu); font-weight: 700; }
.kuni-sites a.done::before { content: "●"; font-size: 10px; margin-right: 3px; vertical-align: 2px; }

/* 参拝帳 */
.me-head { display: flex; flex-wrap: wrap; gap: 12px; margin: 8px 0 20px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 12px 16px; min-width: 9em; flex: 1 1 9em; }
.stat b { display: block; font-family: var(--font-display); font-size: 30px; font-variant-numeric: tabular-nums; line-height: 1.2; color: var(--gold); }
.stat span { font-size: 13px; color: var(--muted); }
.stat .bar { height: 4px; background: var(--line); border-radius: 2px; margin-top: 8px; overflow: hidden; }
.stat .bar i { display: block; height: 100%; background: var(--shu); }
.book { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; margin-top: 20px; }
/* 札は和紙の色のまま(御朱印帳の見開きに見えるように) */
.leaf { position: relative; background: #f3ede0; color: #1d1915; border: 1px solid #c9b993; border-radius: 4px; aspect-ratio: 2 / 3; max-width: 100%; padding: 14px 10px; display: flex; flex-direction: row-reverse; justify-content: space-between; text-decoration: none; overflow: hidden; box-shadow: 0 6px 18px rgba(0,0,0,.4); }
.leaf:hover { color: #1d1915; }
.leaf-name { writing-mode: vertical-rl; font-family: var(--font-display); font-weight: 800; font-size: 20px; letter-spacing: .08em; line-height: 1.2; max-height: 100%; }
.leaf-date { writing-mode: vertical-rl; font-size: 12px; color: #6b6156; letter-spacing: .1em; align-self: flex-end; }
.leaf-stamp { position: absolute; left: 50%; top: 55%; transform: translate(-50%, -50%) rotate(-8deg); width: 64px; height: 64px; border: 2px solid #c3361b; border-radius: 50%; color: #c3361b; display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 13px; text-align: center; line-height: 1.2; opacity: .88; }
.leaf-stamp.manual { border-style: dashed; color: #7a7064; border-color: #7a7064; }
.timeline { list-style: none; margin: 8px 0 0; padding: 0; border-top: 1px solid var(--line); }
.timeline li { display: grid; grid-template-columns: 7.5em minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.timeline time { font-variant-numeric: tabular-nums; color: var(--muted); font-size: 14px; }
.timeline .how { font-size: 12px; color: var(--muted); }
.login-card { background: var(--card); border: 1px solid var(--gold-deep); border-radius: 6px; padding: 24px; max-width: 30em; display: grid; gap: 12px; }

.foot { max-width: 1080px; margin: 0 auto; padding-inline: 16px; padding-block: 28px 44px; font-size: 12px; color: var(--muted); border-top: 1px solid var(--gold-deep); }
.foot p { margin: 0 0 6px; }
.foot a { color: var(--muted); }

/* 地図のピン */
.pin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.4); }
.pin-jinja { background: #d9401f; }
.pin-tera { background: #c99a3e; }
.pin-done { outline: 3px solid #1d1915; }
.leaflet-popup-content { font-family: var(--font-body); }
.leaflet-popup-content-wrapper, .leaflet-popup-tip { background: var(--card); color: var(--ink); }
.leaflet-popup-content a { font-weight: 700; color: var(--gold); }
.leaflet-container a.leaflet-popup-close-button { color: var(--muted); }
.leaflet-bar a { background: var(--card); color: var(--ink); border-bottom-color: var(--line); }
.leaflet-control-attribution { background: rgba(14,12,11,.8) !important; color: var(--muted); }
.leaflet-control-attribution a { color: var(--muted); }

@media (max-width: 760px) {
  .site-grid { grid-template-columns: minmax(0, 1fr); }
  .checkin { position: static; }
  .account { margin-left: 0; width: 100%; }
  .timeline li { grid-template-columns: 6.5em minmax(0, 1fr); }
  .timeline li .how { grid-column: 2; }
  .kinds { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .ways { grid-template-columns: minmax(0, 1fr); }
  .way { aspect-ratio: 16 / 9; }
  .cta .btn, .cta .btn-ghost { flex: 1 1 100%; }
  .nav a { padding: 2px 10px; font-size: 13px; }
  .brand { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }

/* 参拝の案内(詳細情報) */
.h3 { font-size: 19px; margin: 32px 0 4px; color: var(--ink); display: flex; align-items: center; gap: 10px; }
.h3::before { content: ""; width: 6px; height: 18px; background: var(--shu); border-radius: 1px; }
.plain { margin: 0; padding-left: 1.2em; }
.plain li + li { margin-top: 2px; }
.plain li::marker { color: var(--gold); }
.site-text > .plain { margin-top: 8px; }
.badge { display: inline-block; font-size: 12px; font-weight: 700; padding: 0 8px; border-radius: 3px; line-height: 1.8; color: var(--muted); border: 1px solid var(--line); }
.badge.on { color: #1a1408; background: var(--gold); border-color: transparent; }
.badge.off { color: #fff; background: var(--shu-deep); border-color: transparent; }
.fact-note { display: block; font-size: 14px; color: var(--muted); margin-top: 2px; }
.tag-go { color: var(--shu); border-color: rgba(236, 91, 54, .45); }
.tag-park { color: var(--gold); border-color: rgba(210, 172, 98, .45); }
.refs { margin-top: 20px; font-size: 13px; color: var(--muted); }
.refs summary { cursor: pointer; }
.refs ul { padding-left: 1.2em; }
.refs a { color: var(--muted); }
.refs small { margin-left: 4px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: 13px; padding: 0 10px; border-radius: 999px; background: var(--shu-soft); color: #f7a58e; line-height: 1.9; }
.fact-note.warn { color: var(--gold); }

/* 参拝の種類(現地=GPS/手で記録)と進み具合 */
.me-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 16px; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.me-tab { appearance: none; font: inherit; font-family: var(--font-display); font-weight: 700; font-size: 16px; border: 1px solid var(--line); background: var(--card); color: var(--muted); padding: 6px 16px; border-radius: 4px; cursor: pointer; }
.me-tab[aria-selected="true"] { background: var(--shu-deep); color: #fff; border-color: var(--shu-deep); }
.stat.st-gps b { color: var(--shu); }
.stat.st-man b { color: var(--muted); }
.progs { display: grid; gap: 14px; margin: 4px 0 20px; background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 16px; }
.prog-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.prog-label { font-weight: 700; }
.prog-num { font-variant-numeric: tabular-nums; color: var(--muted); font-size: 14px; }
.prog-num b { font-family: var(--font-display); font-size: 22px; color: var(--gold); }
.prog-bar { display: flex; height: 10px; border-radius: 5px; background: var(--line); overflow: hidden; margin-top: 4px; }
.prog-bar .seg-gps { background: var(--shu); }
.prog-bar .seg-man { background: repeating-linear-gradient(45deg, var(--muted) 0 3px, transparent 3px 6px); opacity: .7; }
.prog-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12px; color: var(--muted); margin-top: 4px; font-variant-numeric: tabular-nums; }
.prog-legend .lg-gps::before, .prog-legend .lg-man::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 4px; vertical-align: -1px; }
.prog-legend .lg-gps::before { background: var(--shu); }
.prog-legend .lg-man::before { background: repeating-linear-gradient(45deg, var(--muted) 0 2px, transparent 2px 4px); }
.prog-note { font-size: 12px; color: var(--muted); margin: 0; }
.progress .prog { font-weight: 400; max-width: 32em; margin-top: 8px; background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 12px 14px; }
.row-done.manual { color: var(--muted); border-color: var(--muted); border-style: dashed; background: transparent; }
.kuni-sites a.done-manual { color: var(--muted); }
.kuni-sites a.done-manual::before { content: "○"; font-size: 10px; margin-right: 3px; vertical-align: 2px; }
.pin-manual { outline: 2px dashed #f3ede0; }
.leaf-name small { display: block; font-size: 11px; color: #6b6156; letter-spacing: 0; margin-bottom: 4px; }
.leaf-man { opacity: .85; }
.how-badge { display: inline-block; font-size: 12px; padding: 0 6px; border-radius: 3px; }
.hb-gps { color: #fff; background: var(--shu-deep); }
.hb-man { color: var(--muted); border: 1px dashed var(--muted); }
.henro-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 6px; margin: 0 0 20px; }
.hg { display: grid; place-items: center; text-align: center; gap: 0; padding: 6px 2px; border: 1px solid var(--line); border-radius: 4px; background: var(--card); text-decoration: none; min-width: 0; }
.hg b { font-family: var(--font-display); font-size: 17px; font-variant-numeric: tabular-nums; }
.hg span { font-size: 10px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.hg-gps { background: var(--shu-deep); border-color: var(--shu-deep); }
.hg-gps b, .hg-gps span { color: #fff; }
.hg-man { border: 1.5px dashed var(--muted); }
.row-no { font-size: 12px; font-weight: 700; color: var(--shu); font-variant-numeric: tabular-nums; }
.sub-note { font-family: var(--font-body); font-size: 13px; font-weight: 400; color: var(--muted); }

/* 都道府県から探す: 上位3つを王冠つきで、全体は件数つきの丸いボタン */
.kings { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.kings a { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); background: linear-gradient(180deg, rgba(210,172,98,.22), rgba(210,172,98,.05)); border: 2px solid var(--gold); padding: 8px 16px 8px 12px; border-radius: 999px; font-weight: 700; font-size: 16px; white-space: nowrap; }
.kings a:hover { background: rgba(210,172,98,.26); color: var(--ink); }
.kings em { font-style: normal; font-weight: 800; font-size: 12px; line-height: 1; color: #1a1408; background: var(--gold); border-radius: 999px; padding: 4px 8px; }
.kings small { color: var(--gold); font-variant-numeric: tabular-nums; font-size: 14px; }
.crown { flex: none; }
.pref-groups { display: grid; gap: 14px; }
.pref-group h3 { margin: 0 0 6px; font-size: 13px; color: var(--muted); font-weight: 700; font-family: var(--font-body); letter-spacing: .1em; }
.pref-group ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pref-group a { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; background: var(--card); border: 1px solid var(--line); padding: 5px 13px; border-radius: 999px; font-size: 15px; white-space: nowrap; }
.pref-group a:hover { border-color: var(--gold); color: var(--ink); }
.pref-group a.king { border-color: var(--gold); }
.pref-group small { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.more { margin-top: 12px; justify-self: start; }
.small { font-size: 14px; }
.chip-plain { background: var(--gold-soft); color: var(--gold); }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 8px !important; }
.doc { max-width: 40em; padding-block: 28px; }
.doc h1 { font-size: 30px; }
.doc h1::after { content: ""; display: block; width: 48px; height: 2px; margin-top: 12px; background: linear-gradient(90deg, var(--shu) 50%, var(--gold) 50%); }
.doc h2 { font-size: 18px; margin-top: 28px; color: var(--gold); }
.doc li::marker { color: var(--gold); }
/* Google のログインボタン(iframe)は明るい配色のまま読み込まないと周りが白い四角になる */
.gsi-slot, .gsi-slot iframe { color-scheme: light; }

/* 社寺ページの要点(御朱印・駐車場・アクセス)。2026-10-21 */
.quick { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 8px; }
.quick a { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: var(--card); border: 1px solid var(--line); border-radius: 8px; color: var(--ink); text-decoration: none; }
.quick a:hover { border-color: var(--gold-deep); }
.quick-k { flex: none; width: 4.5em; color: var(--gold); font-size: 14px; }
.quick-v { font-size: 14px; line-height: 1.6; }
#annai { scroll-margin-top: 16px; }
@media (min-width: 700px) { .quick { grid-template-columns: auto auto 1fr; } }
