:root {
  /* 和モダン：生成りの紙・墨・朱 */
  --bg: #f5efe3;
  --surface: #fffcf5;
  --surface-2: #ede4d3;
  --text: #2a2420;
  --muted: #7b6e60;
  --line: #ddd1bd;
  --accent: #b5382a;
  --accent-ink: #fffaf2;
  --accent-soft: #f2e0d4;
  --ai: #2c4766;
  --kin: #a07e35;
  --tile-0: #e9e0cf;
  --shadow: 0 1px 0 rgba(60, 40, 20, .04), 0 6px 18px -8px rgba(60, 40, 20, .18);
  /* 地方の色（日本の伝統色：浅葱・若竹・柿・藤・山吹・青磁・薄紅・萌黄） */
  --rg-0: #7eaebf; --rg-1: #86ad8f; --rg-2: #d69472; --rg-3: #a397c4;
  --rg-4: #d8ad4b; --rg-5: #82b5a7; --rg-6: #d99aa5; --rg-7: #a9b866;
  --sea-0: #dfe7e6; --sea-1: #eef3f1; --sea-line: rgba(44, 71, 102, .10); --land-0: #d8cdb9;
  --radius: 6px;
  --seigaiha: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='20'%3E%3Cg fill='%23e7eeec' stroke='%23cfdcdb' stroke-width='1'%3E%3Ccircle cx='0' cy='0' r='19.5'/%3E%3Ccircle cx='0' cy='0' r='14.5'/%3E%3Ccircle cx='0' cy='0' r='9.5'/%3E%3Ccircle cx='0' cy='0' r='4.5'/%3E%3Ccircle cx='40' cy='0' r='19.5'/%3E%3Ccircle cx='40' cy='0' r='14.5'/%3E%3Ccircle cx='40' cy='0' r='9.5'/%3E%3Ccircle cx='40' cy='0' r='4.5'/%3E%3Ccircle cx='20' cy='10' r='19.5'/%3E%3Ccircle cx='20' cy='10' r='14.5'/%3E%3Ccircle cx='20' cy='10' r='9.5'/%3E%3Ccircle cx='20' cy='10' r='4.5'/%3E%3Ccircle cx='0' cy='20' r='19.5'/%3E%3Ccircle cx='0' cy='20' r='14.5'/%3E%3Ccircle cx='0' cy='20' r='9.5'/%3E%3Ccircle cx='0' cy='20' r='4.5'/%3E%3Ccircle cx='40' cy='20' r='19.5'/%3E%3Ccircle cx='40' cy='20' r='14.5'/%3E%3Ccircle cx='40' cy='20' r='9.5'/%3E%3Ccircle cx='40' cy='20' r='4.5'/%3E%3C/g%3E%3C/svg%3E");
  --mincho: "Shippori Mincho B1", "Hiragino Mincho ProN", "Yu Mincho", serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1b1815; --surface: #24201c; --surface-2: #2e2924; --text: #eee5d6; --muted: #a59684;
    --line: #3c352d; --accent: #e06a52; --accent-ink: #1b1512; --accent-soft: #3b241d; --ai: #8fb0d3; --kin: #cfae63; --tile-0: #2e2823;
    --shadow: 0 1px 0 rgba(0,0,0,.25), 0 8px 20px -10px rgba(0,0,0,.6);
    --rg-0: #4d7f91; --rg-1: #55806a; --rg-2: #a8674a; --rg-3: #74689a;
    --rg-4: #a7832f; --rg-5: #4f877b; --rg-6: #a46876; --rg-7: #7b8a3f;
    --sea-0: #141a1c; --sea-1: #1c2528; --sea-line: rgba(160, 200, 220, .07); --land-0: #3b342d;
    --seigaiha: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='20'%3E%3Cg fill='%23171e20' stroke='%231f292d' stroke-width='1'%3E%3Ccircle cx='0' cy='0' r='19.5'/%3E%3Ccircle cx='0' cy='0' r='14.5'/%3E%3Ccircle cx='0' cy='0' r='9.5'/%3E%3Ccircle cx='0' cy='0' r='4.5'/%3E%3Ccircle cx='40' cy='0' r='19.5'/%3E%3Ccircle cx='40' cy='0' r='14.5'/%3E%3Ccircle cx='40' cy='0' r='9.5'/%3E%3Ccircle cx='40' cy='0' r='4.5'/%3E%3Ccircle cx='20' cy='10' r='19.5'/%3E%3Ccircle cx='20' cy='10' r='14.5'/%3E%3Ccircle cx='20' cy='10' r='9.5'/%3E%3Ccircle cx='20' cy='10' r='4.5'/%3E%3Ccircle cx='0' cy='20' r='19.5'/%3E%3Ccircle cx='0' cy='20' r='14.5'/%3E%3Ccircle cx='0' cy='20' r='9.5'/%3E%3Ccircle cx='0' cy='20' r='4.5'/%3E%3Ccircle cx='40' cy='20' r='19.5'/%3E%3Ccircle cx='40' cy='20' r='14.5'/%3E%3Ccircle cx='40' cy='20' r='9.5'/%3E%3Ccircle cx='40' cy='20' r='4.5'/%3E%3C/g%3E%3C/svg%3E");
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #1b1815; --surface: #24201c; --surface-2: #2e2924; --text: #eee5d6; --muted: #a59684;
  --line: #3c352d; --accent: #e06a52; --accent-ink: #1b1512; --accent-soft: #3b241d; --ai: #8fb0d3; --kin: #cfae63; --tile-0: #2e2823;
  --shadow: 0 1px 0 rgba(0,0,0,.25), 0 8px 20px -10px rgba(0,0,0,.6);
  --rg-0: #4d7f91; --rg-1: #55806a; --rg-2: #a8674a; --rg-3: #74689a;
  --rg-4: #a7832f; --rg-5: #4f877b; --rg-6: #a46876; --rg-7: #7b8a3f;
  --sea-0: #141a1c; --sea-1: #1c2528; --sea-line: rgba(160, 200, 220, .07); --land-0: #3b342d;
    --seigaiha: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='20'%3E%3Cg fill='%23171e20' stroke='%231f292d' stroke-width='1'%3E%3Ccircle cx='0' cy='0' r='19.5'/%3E%3Ccircle cx='0' cy='0' r='14.5'/%3E%3Ccircle cx='0' cy='0' r='9.5'/%3E%3Ccircle cx='0' cy='0' r='4.5'/%3E%3Ccircle cx='40' cy='0' r='19.5'/%3E%3Ccircle cx='40' cy='0' r='14.5'/%3E%3Ccircle cx='40' cy='0' r='9.5'/%3E%3Ccircle cx='40' cy='0' r='4.5'/%3E%3Ccircle cx='20' cy='10' r='19.5'/%3E%3Ccircle cx='20' cy='10' r='14.5'/%3E%3Ccircle cx='20' cy='10' r='9.5'/%3E%3Ccircle cx='20' cy='10' r='4.5'/%3E%3Ccircle cx='0' cy='20' r='19.5'/%3E%3Ccircle cx='0' cy='20' r='14.5'/%3E%3Ccircle cx='0' cy='20' r='9.5'/%3E%3Ccircle cx='0' cy='20' r='4.5'/%3E%3Ccircle cx='40' cy='20' r='19.5'/%3E%3Ccircle cx='40' cy='20' r='14.5'/%3E%3Ccircle cx='40' cy='20' r='9.5'/%3E%3Ccircle cx='40' cy='20' r='4.5'/%3E%3C/g%3E%3C/svg%3E");
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: "Zen Kaku Gothic New", "Hiragino Sans", "Noto Sans JP", "Yu Gothic UI", system-ui, sans-serif;
  line-height: 1.7; font-size: 15px; letter-spacing: .02em;
}
h1, h2, h3, .logo { font-family: var(--mincho); line-height: 1.35; letter-spacing: .04em; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
[hidden] { display: none !important; }

/* header */
.site-header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 16px; padding-top: 10px; padding-bottom: 10px; }
.logo { display: flex; align-items: center; gap: 8px; font-weight: 900; font-size: 19px; text-decoration: none; white-space: nowrap; }
.logo-mark { font-size: 22px; }
.search { position: relative; flex: 1; display: flex; max-width: 520px; margin-left: auto; }
.search input { flex: 1; min-width: 0; padding: 9px 14px; border: 1.5px solid var(--line); border-right: 0; border-radius: 999px 0 0 999px; background: var(--surface); outline: none; }
.search input:focus { border-color: var(--accent); }
.search button { padding: 0 16px; border: 0; border-radius: 0 999px 999px 0; background: var(--accent); color: var(--accent-ink); font-weight: 700; cursor: pointer; }
.suggest { position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); overflow: hidden; }
.suggest a { display: flex; align-items: center; gap: 10px; padding: 9px 14px; text-decoration: none; }
.suggest a:hover, .suggest a.active { background: var(--accent-soft); }
.suggest .s-type { font-size: 11px; color: var(--muted); border: 1px solid var(--line); border-radius: 6px; padding: 0 6px; white-space: nowrap; }
.suggest .s-sub { margin-left: auto; font-size: 12px; color: var(--muted); white-space: nowrap; }
@media (max-width: 640px) {
  .header-inner { flex-wrap: wrap; gap: 8px; }
  .search { max-width: none; flex-basis: 100%; }
}

main { padding-top: 24px; padding-bottom: 48px; min-height: 70vh; }

/* hero + modes */
.hero { text-align: center; padding: 20px 0 8px; }
.hero h1 { font-size: clamp(28px, 5vw, 44px); margin: 0 0 6px; font-weight: 900; }
.hero p { margin: 0; color: var(--muted); }
.modes { display: flex; justify-content: center; gap: 8px; margin: 22px 0 18px; flex-wrap: wrap; }
.mode { display: flex; align-items: center; gap: 8px; padding: 10px 18px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--surface); text-decoration: none; font-weight: 700; }
.mode[aria-current="page"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.panel-lead { margin: 0 0 14px; color: var(--muted); font-size: 14px; }

/* japan map */
.jmap, .pref-map {
  position: relative; border-radius: 20px; overflow: hidden; padding: 14px;
  background: radial-gradient(ellipse at 75% 20%, var(--sea-1), var(--sea-0) 70%);
}
.jmap::before, .pref-map::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: var(--seigaiha); background-size: 40px 20px; opacity: 1;
}
.jmap svg, .pref-map svg { position: relative; display: block; width: 100%; height: auto; margin: 0 auto; overflow: visible; }
.jmap svg { max-height: 78vh; }
.jmap.compact { padding: 6px; border-radius: 14px; }
.pf {
  stroke: var(--sea-0); stroke-width: 1.4; stroke-linejoin: round; cursor: pointer;
  transition: fill .18s, transform .18s, filter .18s, opacity .18s; transform-box: fill-box; transform-origin: center;
}
.pf.rg-0 { fill: var(--rg-0); } .pf.rg-1 { fill: var(--rg-1); } .pf.rg-2 { fill: var(--rg-2); } .pf.rg-3 { fill: var(--rg-3); }
.pf.rg-4 { fill: var(--rg-4); } .pf.rg-5 { fill: var(--rg-5); } .pf.rg-6 { fill: var(--rg-6); } .pf.rg-7 { fill: var(--rg-7); }
a:hover > .pf, a:focus-visible > .pf { fill: var(--accent); transform: translateY(-3px) scale(1.03); filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .35)); }
.pf.current { fill: var(--accent); }
.pf.heat { fill: color-mix(in srgb, var(--accent) var(--p), var(--land-0)); }
.pf.heat.none { fill: var(--land-0); cursor: default; opacity: .7; }
.pf.heat:not(.none):hover { filter: brightness(1.15) drop-shadow(0 4px 6px rgba(0, 0, 0, .3)); }
.pf.heat.current { stroke: var(--text); stroke-width: 3; }
.pf.dim { opacity: .3; }
.rg-label {
  font: 800 24px var(--mincho); fill: var(--text); opacity: .3; letter-spacing: .3em;
  text-anchor: middle; pointer-events: none;
}
.ok-frame { fill: none; stroke: var(--muted); stroke-width: 1.5; stroke-dasharray: 6 5; opacity: .5; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; justify-content: center; margin-top: 14px; font-size: 12px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 5px; }
.legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.legend i.rg-0 { background: var(--rg-0); } .legend i.rg-1 { background: var(--rg-1); } .legend i.rg-2 { background: var(--rg-2); } .legend i.rg-3 { background: var(--rg-3); }
.legend i.rg-4 { background: var(--rg-4); } .legend i.rg-5 { background: var(--rg-5); } .legend i.rg-6 { background: var(--rg-6); } .legend i.rg-7 { background: var(--rg-7); }
.heat-scale { display: inline-block; width: 90px; height: 10px; border-radius: 5px; background: linear-gradient(90deg, var(--land-0), var(--accent)); vertical-align: middle; }

/* prefecture page: municipality map */
.pref-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: 28px; align-items: start; margin-bottom: 8px; }
.pref-info h1 { margin: 2px 0 4px; font-size: clamp(26px, 4vw, 38px); font-weight: 900; }
.pref-info > p { margin: 0 0 18px; color: var(--muted); }
.muni-head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.muni-head small, .muni-note { color: var(--muted); font-size: 12px; }
.muni-note { margin-left: auto; }
.muni-chips { max-height: 300px; overflow: auto; padding: 2px; }
.muni-chips .chip { padding: 4px 10px; font-size: 13px; }
.muni-chips .chip.has { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); font-weight: 700; }
.back-pref { display: inline-block; margin-top: 14px; font-size: 14px; text-decoration: none; color: var(--accent); font-weight: 700; }
.pref-map { min-height: 280px; position: sticky; top: 76px; }
.pref-map svg { max-height: 72vh; }
.map-loading { color: var(--muted); text-align: center; padding: 100px 0; position: relative; }
.mu { fill: var(--land-0); stroke: var(--sea-0); stroke-width: .9; stroke-linejoin: round; cursor: pointer; transition: fill .15s, filter .15s; }
.mu.has { fill: color-mix(in srgb, var(--accent) 42%, var(--land-0)); }
a:hover > .mu, a:focus-visible > .mu { fill: var(--accent); filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .35)); }
.mu.current { fill: var(--accent); }
.pins { pointer-events: none; }
.pin circle { fill: var(--surface); stroke: var(--accent); stroke-width: 2.5; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .3)); }
.pin.current circle { fill: var(--accent); stroke: var(--surface); }
.pin text { text-anchor: middle; }
.pin-emoji { font-size: 12px; }
.pin-label { font-size: 12px; font-weight: 700; fill: var(--text); paint-order: stroke; stroke: var(--surface); stroke-width: 3.5px; stroke-linejoin: round; }
.map-tip {
  position: fixed; left: 0; top: 0; z-index: 60; pointer-events: none; max-width: 300px;
  background: var(--text); color: var(--bg); padding: 7px 11px; border-radius: 9px; font-size: 13px; box-shadow: var(--shadow);
}
.map-tip b { display: block; }
.map-tip span { display: block; opacity: .8; font-size: 12px; }
@media (max-width: 760px) {
  .pref-hero { grid-template-columns: 1fr; }
  .pref-map { order: -1; position: static; }
  .muni-chips { max-height: 160px; }
}

/* chips & cards */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); text-decoration: none; font-size: 14px; cursor: pointer; }
.chip:hover { border-color: var(--accent); }
.chip small { color: var(--muted); }
.chip[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.chip[aria-pressed="true"] small { color: inherit; opacity: .8; }

.region-group { padding: 12px 0; border-top: 1px dashed var(--line); }
.region-group:first-child { border-top: 0; }
.region-group h3 { margin: 0 0 8px; font-size: 15px; }

.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.cat-card { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 16px 8px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); text-decoration: none; font-weight: 700; }
.cat-card:hover { border-color: var(--accent); }
.cat-card .emoji { font-size: 30px; }
.cat-card small { color: var(--muted); font-weight: 500; }

.inline-search { display: flex; gap: 8px; margin-bottom: 12px; }
.inline-search input { flex: 1; min-width: 0; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--surface); outline: none; }
.inline-search input:focus { border-color: var(--accent); }
.inline-results { min-height: 8px; margin-bottom: 8px; }
.sub-h { font-size: 15px; margin: 22px 0 10px; }

/* page head */
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.page-head { display: grid; grid-template-columns: 1fr minmax(0, 300px); gap: 20px; align-items: center; margin-bottom: 18px; }
.page-head h1 { margin: 2px 0 4px; font-size: clamp(24px, 4vw, 34px); font-weight: 900; }
.page-head p { margin: 0; color: var(--muted); }
.eyebrow { font-size: 13px; color: var(--accent); font-weight: 700; }
@media (max-width: 720px) { .page-head { grid-template-columns: 1fr; } }

section.block { margin-top: 28px; }
section.block > h2 { font-size: 20px; margin: 0 0 12px; display: flex; align-items: baseline; gap: 10px; }
section.block > h2 small { font-size: 13px; color: var(--muted); font-weight: 500; font-family: inherit; }

.dish-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.dish {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; display: flex; flex-direction: column; gap: 8px; box-shadow: var(--shadow);
}
.dish-top { display: flex; gap: 12px; align-items: center; }
.dish-emoji { font-size: 26px; width: 46px; height: 46px; display: grid; place-items: center; background: var(--surface-2); border-radius: 12px; flex: none; }
.dish h3 { margin: 0; font-size: 17px; }
.dish .where { font-size: 13px; color: var(--muted); }
.dish .where a { text-decoration: none; }
.dish .where a:hover { color: var(--accent); }
.dish-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.btn { display: inline-flex; align-items: center; gap: 4px; padding: 5px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); font-size: 12.5px; text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn:hover { border-color: var(--accent); }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-weight: 700; }
.btn.aff { background: var(--accent-soft); border-color: transparent; }

/* shops */
.filters { display: flex; flex-direction: column; gap: 10px; background: var(--surface-2); border-radius: var(--radius); padding: 14px; margin-bottom: 14px; }
.f-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.f-label { font-size: 12px; font-weight: 700; color: var(--muted); width: 64px; flex: none; }
.f-row .chip { padding: 4px 11px; font-size: 13px; }
.f-row select, .result-bar select {padding: 5px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.result-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; font-size: 14px; flex-wrap: wrap; }
.result-bar strong { font-size: 18px; }
.shop-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.shop { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; display: flex; flex-direction: column; gap: 6px; }
.shop h3 { margin: 0; font-size: 16px; font-family: inherit; }
.shop .meta { font-size: 13px; color: var(--muted); }
.shop .famous { font-size: 13px; }
.shop .famous b { color: var(--accent); }
.tags { display: flex; flex-wrap: wrap; gap: 4px; }
.tag { font-size: 11.5px; padding: 1px 8px; border-radius: 6px; background: var(--surface-2); color: var(--muted); }
.pop { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.pop .bar { flex: 1; height: 6px; background: var(--surface-2); border-radius: 3px; overflow: hidden; }
.pop .bar i { display: block; height: 100%; background: var(--accent); }
.shop-actions { display: flex; gap: 6px; margin-top: 4px; }
.shop-photo { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; background: var(--surface-2); }
.tag.related { align-self: flex-start; background: var(--accent-soft); color: var(--accent); }
.source {font-size: 12px; color: var(--muted); margin-left: 6px; }
.source.live { color: #2f9e44; font-weight: 700; }
.note { color: var(--muted); margin-left: 6px; }
.loading { color: var(--muted); font-size: 14px; padding: 8px 0; }
.ad {border: 1.5px dashed var(--line); border-radius: var(--radius); padding: 14px; display: flex; flex-direction: column; justify-content: center; gap: 4px; color: var(--muted); font-size: 13px; background: var(--surface-2); }
.ad b { color: var(--text); }
.more { display: block; margin: 16px auto 0; padding: 10px 28px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); font-weight: 700; cursor: pointer; }
.more:hover { border-color: var(--accent); }
.empty { text-align: center; padding: 32px 16px; color: var(--muted); }

.search-layout { display: grid; grid-template-columns: minmax(0, 360px) 1fr; gap: 24px; align-items: start; }
.search-layout .map-box { position: sticky; top: 76px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.map-box h2 { font-size: 15px; margin: 0 0 4px; }
.map-box p { font-size: 12px; color: var(--muted); margin: 0 0 10px; }
@media (max-width: 860px) { .search-layout { grid-template-columns: 1fr; } .search-layout .map-box { position: static; } }

.site-footer { border-top: 1px solid var(--line); padding: 20px 0 32px; font-size: 12.5px; color: var(--muted); }
.site-footer p { margin: 4px 0; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--text); color: var(--bg); padding: 10px 18px; border-radius: 10px; font-size: 14px; z-index: 50; max-width: calc(100% - 32px); box-shadow: var(--shadow); }

/* map zoom */
.zoom-ui { position: absolute; top: 10px; right: 10px; z-index: 3; display: flex; flex-direction: column; gap: 4px; }
.zoom-ui button {
  min-width: 34px; height: 34px; padding: 0 6px; border-radius: 9px; border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 92%, transparent); color: var(--text); font-weight: 800; font-size: 17px;
  cursor: pointer; box-shadow: var(--shadow); line-height: 1;
}
.zoom-ui button:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.zoom-ui button:disabled { opacity: .35; cursor: default; }
.zoom-ui .z-reset { display: none; font-size: 11px; }
.moved .zoom-ui .z-reset { display: block; }
.compact .zoom-ui { top: 6px; right: 6px; }
.compact .zoom-ui button { min-width: 26px; height: 26px; font-size: 14px; border-radius: 7px; }
.zoom-hint { position: absolute; left: 14px; bottom: 8px; margin: 0; z-index: 2; font-size: 11px; color: var(--muted); pointer-events: none; }
.jmap > svg, .pref-map > svg { cursor: grab; }
.zoomed > svg { touch-action: none; }
.dragging > svg { cursor: grabbing; }
.dragging .pf, .dragging .mu { transition: none; }
.labels { pointer-events: none; }
.rg-label { transition: opacity .2s; }
.z2 .rg-label { opacity: 0; }
.plabel, .mlabel {
  text-anchor: middle; dominant-baseline: middle; font-weight: 700; fill: var(--text);
  paint-order: stroke; stroke: var(--sea-0); stroke-width: 3px; stroke-linejoin: round; opacity: 0; transition: opacity .2s;
}
.plabel { font-size: 14px; }
.mlabel { font-size: 11px; stroke: var(--land-0); }
.z2 .plabel, .z2 .mlabel { opacity: .95; }

/* 地図：リンクのドラッグ・文字選択を防ぐ／拡大しても線の太さは一定 */
.jmap svg, .pref-map svg { user-select: none; -webkit-user-select: none; -webkit-user-drag: none; }
.jmap svg a, .pref-map svg a { -webkit-user-drag: none; }
.pf, .mu, .ok-frame { vector-effect: non-scaling-stroke; }
@media (max-width: 760px) { .zoom-hint { display: none; } }

/* 名物のあるまち（まち名＋名物） */
.famous-towns { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; margin-bottom: 18px; }
.town {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 12px; text-decoration: none;
  background: var(--surface); border: 1.5px solid color-mix(in srgb, var(--accent) 45%, var(--line));
}
.town:hover { border-color: var(--accent); }
.town.current { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.town-emoji { font-size: 22px; flex: none; }
.town-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.town-text b { font-size: 14px; }
.town-text small { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.town.current .town-text small { color: inherit; opacity: .85; }

/* ---------- 料理の解説文 ---------- */
.dish-desc { margin: 10px 0 0; font-size: 13.5px; line-height: 1.7; color: var(--muted); }

/* ---------- サーバーが書き込んだ本文（JSが動くまでの表示・検索エンジン向け） ---------- */
.ssr { padding: 8px 0 40px; }
.ssr h1 { font-size: 26px; margin: 12px 0 8px; }
.ssr ul { padding: 0; list-style: none; }
.ssr-links { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.ssr-dishes { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.ssr-dishes li { padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.ssr-dishes h3 { margin: 0 0 4px; font-size: 17px; }
.ssr-dishes p { margin: 8px 0 0; font-size: 13.5px; line-height: 1.7; }

/* ---------- フッターのリンク・運営者情報などのページ ---------- */
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 10px; }
.footer-links a { color: inherit; font-weight: 700; }
.info-page { max-width: 760px; }
.info-page p, .info-page li { line-height: 1.85; }
.info-page ul { list-style: disc; padding-left: 1.4em; }
.info-table { border-collapse: collapse; width: 100%; }
.info-table th, .info-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.info-table th { width: 8em; color: var(--muted); font-weight: 700; }
.btn.aff small { margin-left: 4px; font-size: 10px; padding: 0 4px; border: 1px solid currentColor; border-radius: 4px; opacity: .7; }

/* ---------- 料理ページの詳しい解説 ---------- */
.dish-detail h2 small { font-weight: 400; color: var(--muted); font-size: 13px; margin-left: 6px; }
.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.detail-item { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.detail-item h3 { margin: 0 0 6px; font-size: 15px; }
.detail-item p { margin: 0; line-height: 1.8; font-size: 14.5px; }
.detail-season, .detail-tips { background: var(--accent-soft); border-color: transparent; }
@media (max-width: 640px) { .detail-grid { grid-template-columns: 1fr; } }
.ssr .dish-detail h3 { font-size: 15px; margin: 12px 0 4px; }

/* ---------- 特集 ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.feature-card { display: flex; flex-direction: column; gap: 4px; padding: 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); color: inherit; text-decoration: none; position: relative; transition: transform .15s, box-shadow .15s; }
.feature-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.feature-card b { font-size: 16px; line-height: 1.4; }
.feature-card small { color: var(--muted); line-height: 1.6; }
.feature-emoji { font-size: 28px; }
.feature-count { position: absolute; top: 14px; right: 14px; font-size: 12px; color: var(--accent); font-weight: 700; }
.feature-intro { max-width: 760px; line-height: 1.9; }
.block h2 small a { color: var(--accent); }

/* ---------- 現在地から探す ---------- */
.near-link { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0 0 14px; padding: 12px 16px; border-radius: 14px; background: var(--accent-soft); color: inherit; text-decoration: none; }
.near-link b { color: var(--accent); }
.near-link small { color: var(--muted); }
.near-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 8px 0 12px; }
.near-actions .chip[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.near-msg { color: var(--muted); margin: 8px 0; }
.near-actions button.chip { color: inherit; font: inherit; font-size: 14px; }

/* =========================================================
   和モダン：見た目の仕上げ（上の基本スタイルを上書き）
   ========================================================= */
body { background: var(--bg); overflow-x: clip; }
::selection { background: color-mix(in srgb, var(--accent) 25%, transparent); }

/* ヘッダー：ロゴは朱の落款（はんこ）＋明朝 */
.site-header { background: color-mix(in srgb, var(--bg) 90%, transparent); border-bottom: 1px solid var(--line); }
.site-header::after { content: ""; display: block; height: 3px; background: linear-gradient(90deg, var(--accent) 0 64px, transparent 64px); }
.logo { gap: 10px; font-weight: 800; font-size: 20px; letter-spacing: .08em; }
.logo-mark {
  display: grid; place-items: center; width: 34px; height: 34px; flex: none;
  background: var(--accent); color: var(--accent-ink); border-radius: 4px;
  font: 800 19px/1 var(--mincho); letter-spacing: 0; transform: rotate(-3deg);
  box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--accent-ink) 35%, transparent);
}
.logo-sub { display: block; font: 500 10px/1 "Zen Kaku Gothic New", sans-serif; letter-spacing: .25em; color: var(--muted); margin-top: 3px; }
.search input { border-radius: 4px 0 0 4px; border-width: 1px; background: var(--surface); }
.search button { border-radius: 0 4px 4px 0; letter-spacing: .1em; }
.suggest { border-radius: 6px; }

/* トップ：青海波の帯に、明朝の大見出し */
.hero {
  position: relative; text-align: center; padding: 48px 16px 38px; margin: -24px calc(50% - 50vw) 0;
  background: linear-gradient(180deg, transparent, var(--bg) 92%), var(--seigaiha); background-size: auto, 40px 20px;
  border-bottom: 1px solid var(--line);
}
.hero-kicker { display: inline-flex; align-items: center; gap: 12px; font-size: 13px; letter-spacing: .3em; color: var(--accent); font-weight: 700; margin-bottom: 10px; }
.hero-kicker::before, .hero-kicker::after { content: ""; width: 28px; height: 1px; background: currentColor; }
.hero h1 { font-size: clamp(32px, 6vw, 56px); font-weight: 800; letter-spacing: .12em; margin: 0 0 12px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p { font-size: 15px; letter-spacing: .06em; }
.hero-stats { display: flex; justify-content: center; gap: clamp(18px, 5vw, 48px); margin-top: 22px; }
.hero-stats div { display: flex; flex-direction: column; align-items: center; }
.hero-stats b { font: 800 clamp(24px, 4vw, 32px)/1.1 var(--mincho); color: var(--text); }
.hero-stats small { font-size: 12px; color: var(--muted); letter-spacing: .15em; }

/* 探し方の切り替え：下線のタブ */
.modes { gap: 0; margin: 26px auto 18px; border-bottom: 1px solid var(--line); max-width: 560px; flex-wrap: nowrap; }
.mode { flex: 1; justify-content: center; border: 0; border-radius: 0; background: none; padding: 12px 8px; font-weight: 700; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.mode:hover { color: var(--text); }
.mode[aria-current="page"] { background: none; color: var(--accent); border-bottom-color: var(--accent); }
.panel { border-radius: var(--radius); box-shadow: none; border-color: var(--line); }

/* 見出し：朱の角印＋細い罫線 */
section.block { margin-top: 40px; }
section.block > h2 { font-size: 22px; font-weight: 800; gap: 12px; align-items: center; }
section.block > h2::before { content: ""; width: 10px; height: 10px; background: var(--accent); transform: rotate(45deg); flex: none; }
section.block > h2::after { content: ""; flex: 1; height: 1px; background: var(--line); min-width: 24px; }
.sub-h { font-family: var(--mincho); font-size: 17px; }
.eyebrow { letter-spacing: .2em; font-size: 12px; }
.page-head h1, .pref-info h1 { font-weight: 800; letter-spacing: .08em; }
.crumbs { letter-spacing: .04em; }

/* 料理カード：紙のカード＋落款風のアイコン */
.dish-grid { gap: 16px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.dish { border-radius: var(--radius); box-shadow: none; padding: 18px; gap: 10px; position: relative; transition: border-color .2s, box-shadow .2s, transform .2s; }
.dish::before { content: ""; position: absolute; left: 0; top: 18px; bottom: 18px; width: 3px; background: var(--accent); opacity: 0; transition: opacity .2s; }
.dish:hover { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); box-shadow: var(--shadow); transform: translateY(-2px); }
.dish:hover::before { opacity: 1; }
.dish-emoji { width: 50px; height: 50px; border-radius: 50%; background: var(--surface); border: 1.5px solid color-mix(in srgb, var(--accent) 55%, transparent); font-size: 24px; }
.dish h3 { font-size: 19px; font-weight: 800; }
.dish-desc { color: var(--text); opacity: .85; font-size: 14px; line-height: 1.85; margin-top: 4px; }
.dish-actions { padding-top: 12px; border-top: 1px dashed var(--line); }
.btn { border-radius: 4px; padding: 6px 11px; font-size: 13px; background: transparent; }
.btn.primary { letter-spacing: .05em; }
.btn.aff { background: var(--accent-soft); }

/* チップ・タグ：角を少しだけ丸く */
.chip { border-radius: 4px; background: var(--surface); }
.chip[aria-pressed="true"] { background: var(--text); border-color: var(--text); color: var(--bg); }
.near-actions .chip[aria-pressed="true"] { background: var(--text); border-color: var(--text); color: var(--bg); }
.tag { border-radius: 3px; }
.cat-card { border-radius: var(--radius); background: var(--surface); transition: border-color .2s, transform .2s; }
.cat-card:hover { transform: translateY(-2px); }
.cat-card { font-family: var(--mincho); font-size: 15px; }
.cat-card small { font-family: "Zen Kaku Gothic New", sans-serif; }
.region-group h3 { font-size: 16px; }

/* 地図の箱 */
.jmap, .pref-map { border-radius: var(--radius); border: 1px solid var(--line); }
.jmap.compact { border-radius: var(--radius); }
.zoom-ui button { border-radius: 4px; }
.legend i { border-radius: 2px; }
.pf { stroke: var(--surface); }
.mu { stroke: var(--surface); }

/* 県ページ */
.town { border-radius: var(--radius); border-width: 1px; border-color: var(--line); }
.town:hover { border-color: var(--accent); }
.town.current { background: var(--text); border-color: var(--text); color: var(--bg); }

/* お店 */
.filters { border-radius: var(--radius); background: var(--surface-2); }
.shop { border-radius: var(--radius); transition: box-shadow .2s, transform .2s; }
.shop:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.shop h3 { font-family: var(--mincho); font-size: 17px; font-weight: 700; }
.shop-photo { border-radius: 4px; }
.more { border-radius: 4px; letter-spacing: .1em; }
.search-layout .map-box { border-radius: var(--radius); }

/* 料理ページの詳しい解説：縦の朱線と明朝の小見出し */
.detail-grid { gap: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.detail-item { background: none; border: 0; border-radius: 0; padding: 20px 22px; }
.detail-item:nth-child(odd) { border-right: 1px solid var(--line); }
.detail-item:nth-child(n+3) { border-top: 1px solid var(--line); }
.detail-season, .detail-tips { background: color-mix(in srgb, var(--accent-soft) 45%, transparent); }
.detail-item h3 { font-size: 16px; font-weight: 800; color: var(--accent); margin-bottom: 8px; }
.detail-item p { line-height: 1.95; }
@media (max-width: 640px) {
  .detail-item:nth-child(odd) { border-right: 0; }
  .detail-item:nth-child(n+2) { border-top: 1px solid var(--line); }
}

/* 特集カード：大きな番号と明朝 */
.feature-grid { gap: 16px; counter-reset: feat; }
.feature-card { border-radius: var(--radius); padding: 22px 20px 20px; gap: 8px; overflow: hidden; counter-increment: feat; }
.feature-card::after {
  content: counter(feat, decimal-leading-zero); position: absolute; right: 14px; bottom: -14px;
  font: 800 64px/1 var(--mincho); color: var(--accent); opacity: .08; pointer-events: none;
}
.feature-card b { font-family: var(--mincho); font-size: 18px; font-weight: 800; }
.feature-card:hover { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.feature-emoji { font-size: 30px; }
.feature-count { top: 18px; right: 18px; font-size: 12px; padding: 1px 8px; border: 1px solid currentColor; border-radius: 3px; }
.feature-head { padding: 28px 0 8px; border-bottom: 1px solid var(--line); }
.feature-intro { font-size: 15.5px; }

/* 現在地から探す */
.near-link { border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent); max-width: 560px; margin: 0 auto 16px; justify-content: center; transition: box-shadow .2s; }
.near-link:hover { box-shadow: var(--shadow); }

/* フッター：墨色の帯 */
.site-footer { background: #24201c; color: #b9ab98; border-top: 0; padding: 36px 0 40px; margin-top: 24px; }
.site-footer .footer-links a { color: #f1e8da; }
.footer-brand { font: 800 18px var(--mincho); color: #f1e8da; letter-spacing: .1em; margin-bottom: 14px !important; display: flex; align-items: center; gap: 10px; }
.footer-brand .logo-mark { width: 28px; height: 28px; font-size: 16px; }
.site-footer a { color: #e7c9a6; }

/* 情報ページ */
.info-page h1 { font-weight: 800; }

/* JSが動く環境では、地図などの画面ができるまでサーバーの文字だけの本文を見せない（3秒たっても動かなければ表示） */
.js:not(.ssr-ok) .ssr { animation: ssr-reveal 0s 3s both; }
@keyframes ssr-reveal { from { visibility: hidden; } to { visibility: visible; } }

@media (max-width: 640px) {
  .hero { padding: 32px 16px 26px; }
  .hero h1 { letter-spacing: .06em; }
  .logo-sub { display: none; }
  .mode { font-size: 14px; padding: 10px 4px; }
  section.block > h2 { font-size: 19px; }
}
.nw { display: inline-block; white-space: nowrap; }
.updated { margin: 10px 0 0; font-size: 12px; color: var(--muted); text-align: right; letter-spacing: .05em; }
