/* 甘味日和 — イエロー × レッドのポップな配色。外部フォント/画像/CDNは使いません。 */
:root {
  --bg: #fff1a8;          /* うすい黄（ページ地） */
  --paper: #fffbea;       /* 生成り（カード地） */
  --ink: #2b1812;         /* 濃いこげ茶（文字） */
  --sub: #5a4036;         /* サブ文字 */
  --yellow: #ffd60a;      /* 主役の黄 */
  --red: #d71e1e;         /* 主役の赤（塗り・ピン・星） */
  --red-text: #b3121a;    /* 赤い文字・リンク */
  --red-deep: #8e0e14;    /* ホバー・濃い赤 */
  --line: #2b1812;        /* 太い縁取り */
  --soft: #e6d58a;        /* 薄い区切り・星のオフ */
  --header-bg: #ffd60a;
  --header-ink: #2b1812;
  --pop-shadow: 4px 4px 0 var(--ink);
  --serif: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", "Noto Serif JP", "BIZ UDPMincho", "MS PMincho", serif;
  --sans: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "YuGothic", "Noto Sans JP", Meiryo, sans-serif;
  --round: "Hiragino Maru Gothic ProN", "Hiragino Maru Gothic Pro", "Arial Rounded MT Bold", "M PLUS Rounded 1c", "Yu Gothic", "YuGothic", Meiryo, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #2a1713;
    --paper: #3a211b;
    --ink: #fff3d6;
    --sub: #e8cfb0;
    --red: #e83a30;
    --red-text: #ff9a8f;
    --red-deep: #ffc2ba;
    --line: #ffd60a;
    --soft: #6b4a3d;
    --header-bg: #ffd60a;
    --header-ink: #2b1812;
    --pop-shadow: 4px 4px 0 #000;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  overflow-wrap: anywhere;
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--sans); line-height: 1.85; font-size: 16px;
}
a { color: var(--red-text); text-underline-offset: .2em; }
a:hover { color: var(--red-deep); }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, .site-name { font-family: var(--round); font-weight: 800; line-height: 1.45; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 8px; top: 8px; background: var(--paper); padding: 8px 12px; z-index: 10; border: 3px solid var(--ink); border-radius: 10px; }
:focus-visible { outline: 4px solid var(--ink); outline-offset: 2px; box-shadow: 0 0 0 7px var(--yellow); }
@media (prefers-color-scheme: dark) { :focus-visible { outline-color: #fff; box-shadow: 0 0 0 7px var(--red); } }

/* ヘッダー */
.site-header { background: var(--header-bg); color: var(--header-ink); border-bottom: 4px solid #2b1812; position: relative; }
.wave {
  height: 14px; opacity: .45;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='14' viewBox='0 0 28 14'%3E%3Cg fill='none' stroke='%23d71e1e' stroke-width='1.2'%3E%3Ccircle cx='14' cy='14' r='13'/%3E%3Ccircle cx='14' cy='14' r='9'/%3E%3Ccircle cx='14' cy='14' r='5'/%3E%3Ccircle cx='0' cy='14' r='13'/%3E%3Ccircle cx='0' cy='14' r='9'/%3E%3Ccircle cx='0' cy='14' r='5'/%3E%3Ccircle cx='28' cy='14' r='13'/%3E%3Ccircle cx='28' cy='14' r='9'/%3E%3Ccircle cx='28' cy='14' r='5'/%3E%3C/g%3E%3C/svg%3E");
}
.header-inner { max-width: 960px; margin: 0 auto; padding: 6px 16px 12px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 20px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--header-ink); text-decoration: none; }
.brand:hover { color: var(--header-ink); }
.logo { width: 56px; height: 56px; background: #fffbea; border: 3px solid #2b1812; border-radius: 18px; padding: 3px; flex: none; transform: rotate(-4deg); box-shadow: 3px 3px 0 #2b1812; }
.brand-text { display: flex; flex-direction: column; line-height: 1.35; }
.site-name { font-size: 1.7rem; letter-spacing: .1em; }
/* 「甘味日和」の上に添える名前（文字は .site-name の半分）。ロゴ画像と同じ生成り地＋こげ茶の縁取りの小さな札 */
.brand-kicker { align-self: flex-start; margin: 0 0 4px 2px; padding: 0 .55em 0 .75em; font-family: var(--round); font-size: .85rem; font-weight: 800; line-height: 1.45; letter-spacing: .2em; color: #2b1812; background: #fffbea; border: 2px solid #2b1812; border-radius: 999px; box-shadow: 2px 2px 0 #2b1812; transform: rotate(-2deg); }
.tagline { font-size: .78rem; font-weight: 600; }
.nav { display: flex; flex-wrap: wrap; gap: 2px 6px; font-size: .9rem; font-family: var(--round); font-weight: 700; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 4px 12px; color: var(--header-ink); text-decoration: none; border-radius: 999px; border: 2.5px solid transparent; }
.nav a:hover { background: #fffbea; border-color: #2b1812; color: #2b1812; }

main { max-width: 960px; margin: 0 auto; padding: 24px 16px 56px; }
.intro h1, .empty h1 { font-size: 1.5rem; margin: .2em 0 .6em; letter-spacing: .06em; }
.intro h1::after { content: ""; display: block; width: 3.5em; height: 6px; background: var(--red); margin-top: .35em; border-radius: 3px; }
.lead { color: var(--sub); margin: 0 0 1em; }
.crumb { margin: 0; font-size: .85rem; color: var(--sub); }
.small { font-size: .8rem; color: var(--sub); }
.note { font-size: .84rem; color: var(--sub); line-height: 1.7; margin: .6em 0; }
.ext { margin-left: .25em; font-size: .9em; }
[hidden] { display: none !important; }
.js-only { display: none; }
.js .js-only { display: block; }
.js .chk.js-only { display: inline-flex; }

/* 共通パーツ：太い縁取り＋ハードな影 */
.post, .hero, .next-card, .spot, .card a, .filters, .leaflet-box, .gmap-wrap, .chips a {
  border: 3px solid var(--line);
  box-shadow: var(--pop-shadow);
}

/* 記事カード */
.cards { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 22px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 860px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card a { display: block; background: var(--paper); border-radius: 22px; overflow: hidden; text-decoration: none; color: inherit; height: 100%; transition: transform .15s; }
.card a:hover { transform: translate(-2px, -2px); }
.thumb { aspect-ratio: 4 / 3; background: var(--yellow); border-bottom: 3px solid var(--line); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.noimg { width: 45%; }
.card-body { padding: 12px 16px 16px; }
.card h3 { margin: 0; font-size: 1.15rem; }
.card .meta, .card .sub { margin: 0; font-size: .8rem; color: var(--sub); line-height: 1.6; }
.card-title { margin: .2em 0 .3em; font-size: .9rem; color: var(--sub); }

/* 星（赤・大きめ） */
.stars { color: var(--red); letter-spacing: .06em; white-space: nowrap; font-size: 1.15rem; }
.stars { --star-on: var(--red); }
.stars .off { color: var(--soft); }
/* 半分の星：左半分だけ塗る（外部画像なし） */
.stars .half { color: transparent; background: linear-gradient(90deg, var(--star-on) 50%, var(--soft) 50%); -webkit-background-clip: text; background-clip: text; }
.stars.big { font-size: 1.6rem; }
@media (prefers-color-scheme: dark) { .stars { color: #ffd60a; --star-on: #ffd60a; } }

/* 記事 */
.post { background: var(--paper); border-radius: 26px; padding: 20px 18px 28px; }
@media (min-width: 700px) { .post { padding: 32px 44px 44px; } }
.post h1 { font-size: 1.6rem; margin: .3em 0 .7em; }
.facts { display: grid; gap: 4px 0; margin: 0 0 22px; padding: 14px 16px; background: var(--bg); border: 2.5px dashed var(--line); border-radius: 16px; font-size: .94rem; }
.facts div { display: flex; gap: 12px; }
.facts dt { flex: 0 0 7em; color: var(--sub); font-weight: 600; }
.facts dd { margin: 0; }
.gallery { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 700px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; border: 3px solid var(--line); }
.prose { font-family: var(--serif); font-size: 1.05rem; line-height: 2.05; }
.prose h2 { font-size: 1.2rem; margin: 2em 0 .6em; color: var(--red-text); border-left: 8px solid var(--red); padding-left: .6em; }
.prose p { margin: 0 0 1.3em; }
.prose ul { padding-left: 1.4em; }
.pager { display: flex; justify-content: space-between; gap: 12px; margin-top: 24px; font-size: .92rem; font-weight: 600; }
.pager a { display: inline-flex; align-items: center; min-height: 44px; }

/* 記録の絞り込み */
.browse h2 { font-size: 1.1rem; margin: 1.6em 0 .6em; }
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.chips a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 6px 18px; background: var(--paper); border-width: 2.5px; border-radius: 999px; text-decoration: none; box-shadow: 3px 3px 0 var(--ink); }
.chips a:hover { background: var(--yellow); color: #2b1812; }
.count { font-size: .78rem; color: var(--sub); }

/* 記事が無いとき */
.empty { text-align: center; padding: 56px 0; color: var(--sub); }
.empty-bowl { width: 96px; margin: 0 auto 8px; background: var(--yellow); border: 3px solid var(--line); border-radius: 28px; padding: 8px; }
.empty h1 { color: var(--ink); }

.site-footer { text-align: center; padding: 24px 16px 40px; color: var(--sub); font-size: .82rem; border-top: 4px solid var(--line); background: var(--yellow); color: #2b1812; }
.site-footer p { margin: 0; font-weight: 700; }
.sample-banner { background: var(--red-deep); color: #fff; text-align: center; padding: 8px 12px; font-size: .85rem; position: sticky; top: 0; z-index: 5; }
@media (prefers-reduced-motion: reduce) { .card a { transition: none; } }

/* ================= 巡る甘味処（トップ・詳細） ================= */
.sec-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; margin: 0 0 8px; }
.sec-head h2 { font-size: 1.35rem; margin: 0; letter-spacing: .05em; }
.sec-head h2::before { content: ""; display: inline-block; width: .6em; height: .6em; margin-right: .45em; border-radius: 50%; background: var(--red); border: 2.5px solid var(--ink); vertical-align: .05em; }
.more { font-size: .9rem; font-weight: 700; }
main > section { margin-top: 36px; }

/* ヒーロー */
.hero { position: relative; margin-top: 0 !important; background: var(--paper); border-radius: 32px; padding: 26px 20px 24px; overflow: hidden; }
.hero-art { position: absolute; right: -8px; top: 8px; width: 112px; height: 112px; transform: rotate(10deg); }
@media (min-width: 640px) { .hero-art { width: 160px; height: 160px; right: 24px; top: 18px; } .hero { padding: 32px 32px 28px; } }
.hero-kicker { display: inline-block; margin: 0; font-size: .82rem; letter-spacing: .12em; color: #fff; background: var(--red); border: 2.5px solid var(--ink); border-radius: 999px; padding: 0 14px; font-weight: 800; font-family: var(--round); transform: rotate(-2deg); }
.hero h1 { font-size: clamp(1.9rem, 7.5vw, 2.8rem); margin: .3em 0 .3em; letter-spacing: .05em; max-width: 10em; }
.nb { white-space: nowrap; }
.hero-lead { margin: 0 0 16px; color: var(--sub); max-width: 34em; }
.progress-box { max-width: 480px; }
.progress-line { margin: 0 0 6px; display: flex; flex-wrap: wrap; align-items: center; gap: 0 4px; }
.progress-line strong { font-family: var(--round); font-size: 2.8rem; line-height: 1.1; color: var(--red-text); }
.progress-line .of { color: var(--ink); font-weight: 700; }
.week-note { margin-left: auto; font-size: .82rem; font-weight: 700; padding: 3px 14px; border-radius: 999px; border: 2.5px solid var(--ink); }
.week-note.done { background: var(--red); color: #fff; }
.week-note.todo { background: var(--yellow); color: #2b1812; }
progress { width: 100%; height: 20px; border: 3px solid var(--ink); border-radius: 999px; overflow: hidden; background: var(--paper); appearance: none; -webkit-appearance: none; display: block; }
progress::-webkit-progress-bar { background: var(--paper); }
progress::-webkit-progress-value { background: var(--red); }
progress::-moz-progress-bar { background: var(--red); }

/* 次の一軒 */
.next-card { background: var(--yellow); color: #2b1812; border-color: #2b1812; box-shadow: 6px 6px 0 #2b1812; border-radius: 28px; padding: 22px 20px 20px; position: relative; }
.next-card a { color: #2b1812; }
.next-card a:hover { color: var(--red-deep); }
.next-card h2 { font-size: 1.8rem; margin: .25em 0 .2em; }
.next-card h2 a { text-decoration-thickness: 3px; text-decoration-color: var(--red); }
.kicker { display: inline-block; margin: 0; font-size: .92rem; font-weight: 800; font-family: var(--round); letter-spacing: .08em; color: #fff; background: var(--red); border: 2.5px solid #2b1812; border-radius: 999px; padding: 1px 14px; transform: rotate(-2deg); }
.nth { display: inline-block; margin-left: .4em; padding: 0 .7em; background: #fffbea; color: #2b1812; border-radius: 999px; font-weight: 800; letter-spacing: 0; }
.next-card .lead { color: #2b1812; }
.spot-sub { margin: 0; font-size: .92rem; }
.spot-pick { margin: .15em 0 0; font-size: .92rem; font-weight: 600; }
.next-choose { margin-top: 16px; padding-top: 12px; border-top: 3px dotted #2b1812; }
.next-choose label { display: block; font-size: .82rem; font-weight: 700; margin-bottom: 2px; }
.next-choose select { max-width: 100%; }

/* ボタン */
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 18px; border-radius: 999px; border: 3px solid #2b1812; background: #fffbea; color: #2b1812; font-family: var(--round); font-weight: 800; font-size: .9rem; text-decoration: none; line-height: 1.3; text-align: center; box-shadow: 3px 3px 0 #2b1812; transition: transform .1s, box-shadow .1s; }
.btn:hover { background: #fff; color: var(--red-deep); transform: translate(1px, 1px); box-shadow: 2px 2px 0 #2b1812; }
.btn:active { transform: translate(3px, 3px); box-shadow: 0 0 0 #2b1812; }
.btn.primary { background: var(--red); color: #fff; }
.btn.primary:hover { background: var(--red-deep); color: #fff; }
.btn.big { min-height: 50px; padding: 10px 22px; font-size: 1rem; }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } }

select { min-height: 44px; font: inherit; font-size: 1rem; font-weight: 600; padding: 6px 30px 6px 14px; border-radius: 14px; border: 3px solid #2b1812; background: #fffbea; color: #2b1812; max-width: 100%; }
.chk { align-items: center; gap: 8px; min-height: 44px; font-size: .9rem; font-weight: 600; }
.chk input { width: 24px; height: 24px; accent-color: var(--red); }

/* 地図 */
.leaflet-box { height: min(62vh, 420px); min-height: 300px; border-radius: 24px; overflow: hidden; background: var(--paper); z-index: 0; color: #222; }
.leaflet-container { font-family: var(--sans); }
.pin span { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; border-radius: 50%; font-weight: 800; font-size: .88rem; font-family: var(--round); border: 3px solid #2b1812; box-shadow: 2px 2px 0 rgba(43, 24, 18, .7); }
.pin-todo span { background: #d71e1e; color: #fff; }
.pin-done span { background: #8e0e14; color: #ffd60a; font-size: 1.1rem; }
.pin-home span { background: #ffd60a; color: #2b1812; font-size: 1rem; }
.leaflet-marker-icon:focus-visible { outline: none; box-shadow: none; }
.leaflet-marker-icon:focus-visible span { outline: 4px solid #2b1812; outline-offset: 2px; }
.pop strong { font-size: 1rem; }
.pop-sub { font-size: .8rem; color: #4a3328; margin: 2px 0 8px; }
.pop-links { display: flex; flex-direction: column; gap: 6px; }
.pop-btn { display: block; text-align: center; padding: 10px 12px; min-height: 44px; border-radius: 999px; border: 3px solid #2b1812; color: #2b1812 !important; text-decoration: none; font-weight: 800; font-size: .85rem; background: #fff; }
.pop-btn.primary { background: #d71e1e; color: #fff !important; }
.leaflet-popup-content { margin: 12px 14px; }
.leaflet-container a.leaflet-popup-close-button { width: 44px; height: 44px; font-size: 24px; line-height: 44px; color: #2b1812; }
.leaflet-container .leaflet-control-attribution a { color: #8e0e14; }

/* 絞り込み */
.filters { display: none; gap: 10px 14px; flex-wrap: wrap; margin: 10px 0 20px; padding: 14px; background: var(--paper); border-radius: 22px; }
.js .filters { display: flex; }
.filters .f { display: flex; flex-direction: column; flex: 1 1 140px; min-width: 130px; }
.filters label { font-size: .8rem; color: var(--ink); font-weight: 700; }
.count-now { margin: 0; font-size: .88rem; color: var(--sub); font-weight: 600; }

/* スポットカード */
.spots { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .spots { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .spots { grid-template-columns: repeat(3, 1fr); } }
.spot { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 10px; background: var(--paper); border-radius: 24px; padding: 16px 16px 16px; transition: transform .15s; }
.spot[data-visited="1"] { background: #fff0ea; }
@media (prefers-color-scheme: dark) { .spot[data-visited="1"] { background: #4a2620; } }
.spot:hover { transform: translate(-2px, -2px); }
.spot h3 { margin: .2em 0 0; font-size: 1.15rem; }
.spot h3 a { color: var(--ink); text-decoration: none; }
.spot h3 a.stretch::after { content: ""; position: absolute; inset: 0; border-radius: 22px; }
.spot:focus-within { outline: 4px solid var(--ink); outline-offset: 3px; }
@media (prefers-color-scheme: dark) { .spot:focus-within { outline-color: #fff; } }
.spot h3 a:focus-visible { outline: none; box-shadow: none; }
.spot .spot-sub { color: var(--sub); }
.spot .spot-pick { color: var(--ink); }
.spot-actions { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 8px; }
.spot-actions .btn { flex: 1 1 auto; font-size: .82rem; padding: 6px 12px; }
@media (prefers-reduced-motion: reduce) { .spot { transition: none; } }
.badges { margin: 0; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.grp, .state { display: inline-block; font-size: .76rem; font-weight: 800; font-family: var(--round); padding: 1px 12px; border-radius: 999px; line-height: 1.7; border: 2px solid #2b1812; }
.grp { background: #ffe97a; color: #2b1812; }
.grp.g-we { background: #ffd0c8; }
.grp.g-tr { background: #fffbea; border-style: dashed; }
.state.todo { background: #fffbea; color: #2b1812; border-style: dashed; }
.state.visited { background: var(--red); color: #fff; transform: rotate(-3deg); }

/* 詳細ページ */
.yomi { margin: -.4em 0 .8em; font-size: .85rem; color: var(--sub); }
.gmap-wrap { margin: 20px 0 4px; border-radius: 22px; overflow: hidden; background: var(--yellow); }
.gmap { display: block; width: 100%; height: min(60vh, 420px); min-height: 280px; border: 0; }
.spot-facts dd { margin: 0; }
.spot-visits h2 { font-size: 1.2rem; margin-top: 1.6em; }
.recent .cards { margin-top: 12px; }

@media (max-width: 480px) {
  .btn-row .btn { flex: 1 1 100%; }
  .site-name { font-size: 1.4rem; }
  .brand-kicker { font-size: .72rem; }
  .hero h1 { max-width: 7em; }
}

/* 練馬駅からの行き方（Googleマップ埋め込み）・複数店ルート */
.route-sec { background: var(--paper); border: 3px solid var(--line); border-radius: 28px; box-shadow: var(--pop-shadow); padding: 18px 16px 18px; }
.route-pick { display: flex; flex-direction: column; gap: 6px; }
.route-pick > label { font-size: .85rem; font-weight: 800; }
.route-ctl { display: flex; flex-wrap: wrap; gap: 8px; align-items: stretch; }
.route-ctl select { flex: 1 1 100%; min-width: 0; order: -1; }
@media (min-width: 640px) { .route-ctl select { flex: 1 1 auto; order: 0; } }
.route-ctl .btn { flex: 1 1 0; padding: 6px 14px; }
@media (min-width: 640px) { .route-ctl .btn { flex: none; } }
#route-reset { align-self: flex-start; font-size: .85rem; }
.route-sec .gmap-wrap { margin-top: 14px; }
.route-sec .gmap { height: min(68vh, 460px); }
.multi { margin-top: 18px; border: 3px dashed var(--line); border-radius: 18px; padding: 4px 14px 14px; background: var(--bg); }
.js .multi.js-only { display: block; }
.multi summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-family: var(--round); font-weight: 800; }
.multi-list { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 0 14px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .multi-list { grid-template-columns: repeat(2, 1fr); } }
.multi-list .chk { display: flex; align-items: flex-start; padding: 6px 0; line-height: 1.5; }
.multi-state { font-weight: 700; margin: 8px 0 12px; font-size: .9rem; }
.btn[aria-disabled="true"] { opacity: .55; pointer-events: none; box-shadow: none; }

/* フッターのフォームボタン（目立ちすぎない小さめ。タップ領域44px以上） */
.site-footer .footer-forms { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 12px; margin: 0 0 14px; font-weight: 400; }
.fbtn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; padding: 6px 18px; font-size: .85rem; font-weight: 700; text-decoration: none; color: #2b1812; background: #fffbea; border: 2.5px solid #2b1812; border-radius: 999px; box-shadow: 2px 2px 0 #2b1812; }
.fbtn:hover { background: #fff; color: #2b1812; }
.fbtn-quiet { background: transparent; border-style: dashed; box-shadow: none; font-weight: 600; }
.fbtn-quiet:hover { background: #fffbea; }
.fbtn:focus-visible { outline: 4px solid #2b1812; outline-offset: 2px; box-shadow: 0 0 0 7px #fffbea; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* 現在地から近い順 */
.near-sec { background: var(--paper); border: 3px solid var(--line); border-radius: 28px; box-shadow: var(--pop-shadow); padding: 18px 16px; }
.near-sec h2 { font-size: 1.2rem; margin: 0 0 12px; }
.near-btn { display: flex; width: 100%; min-height: 64px; gap: 10px; font-size: 1.15rem; padding: 12px 22px; border-radius: 999px; }
.near-btn[disabled] { opacity: .7; cursor: progress; }
.pin-ico { width: 26px; height: 26px; fill: currentColor; flex: none; }
.near-privacy { margin: 10px 0 0; font-size: .86rem; color: var(--sub); line-height: 1.6; }
.near-privacy strong { color: var(--ink); }
.near-opts { display: flex; flex-wrap: wrap; gap: 4px 18px; align-items: center; margin-top: 8px; }
.near-mode { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 14px; align-items: center; }
.near-mode legend { float: left; font-size: .86rem; font-weight: 700; margin-right: 10px; padding: 0; line-height: 44px; }
.near-mode label { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-size: .9rem; font-weight: 600; }
.near-mode input { width: 22px; height: 22px; accent-color: var(--red); }
.near-manual { margin-top: 8px; display: flex; flex-direction: column; gap: 4px; }
.near-manual label { font-size: .85rem; font-weight: 700; }
.near-status { margin: 12px 0 0; font-weight: 700; font-size: .92rem; line-height: 1.6; min-height: 1.6em; }
.near-top { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .near-top { grid-template-columns: repeat(3, 1fr); } }
.near-card { background: var(--bg); border: 3px solid var(--line); border-radius: 22px; padding: 14px; }
.near-card.first { background: var(--yellow); color: #2b1812; border-color: #2b1812; box-shadow: 4px 4px 0 #2b1812; }
.near-card.first a:not(.btn), .near-card.first .spot-sub, .near-card.first .spot-pick { color: #2b1812; }
.near-card h3 { margin: .3em 0 .1em; font-size: 1.25rem; }
.near-card h3 a { color: inherit; text-decoration-thickness: 2px; text-decoration-color: var(--red); }
.near-rank { margin: 0; font-size: .8rem; font-weight: 800; font-family: var(--round); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.near-dist { margin: 0; font-size: 1.1rem; font-weight: 800; color: var(--red-text); }
.near-card.first .near-dist { color: #8e0e14; }
.near-card .btn-row .btn { flex: 1 1 100%; }
.here-dist { margin: 0; font-size: .92rem; font-weight: 800; color: var(--red-text); }
.here-dist[hidden] { display: none; }
.js .near-sec.js-only { display: block; }

/* 事前確認（営業・経路）・プレビュー */
.trip-note { margin: 4px 0 0; font-size: .8rem; color: var(--sub); font-weight: 600; }
.next-card .trip-note { color: #2b1812; }
.near-card.first .trip-note { color: #2b1812; }
.state.closed-today { background: #ffe14d; color: #2b1812; border-style: solid; }
.state.closed-today[hidden] { display: none; }
.hours-box { margin-top: 1.6em; padding: 14px 16px; background: var(--paper); border: 3px solid var(--line); border-radius: 22px; }
.hours-box h2 { margin-top: 0; font-size: 1.2rem; }
.precheck { background: var(--paper); border: 3px dashed var(--line); border-radius: 22px; padding: 14px 18px; }
.precheck h2 { font-size: 1.05rem; margin: 0 0 6px; }
.precheck ol { margin: 0; padding-left: 1.4em; font-size: .9rem; line-height: 1.7; }
.preview-banner { background: #b3121a; color: #fff; text-align: center; padding: 10px 12px; font-size: .95rem; position: sticky; top: 0; z-index: 1000; border-bottom: 4px solid #ffd60a; }
.draft-badge { margin-right: .4em; }

/* ---- フォーム（修正リクエスト・管理画面）。外部リソースなし ---- */
.formpage { background: var(--paper); border-radius: 26px; padding: 20px 18px 28px; max-width: 680px; margin: 0 auto; border: 3px solid var(--line); box-shadow: var(--pop-shadow); }
.formpage.wide { max-width: 760px; }
@media (min-width: 700px) { .formpage { padding: 32px 40px 40px; } }
.formpage h1 { font-size: 1.6rem; margin: .2em 0 .6em; }
.formpage h2 { font-size: 1.05rem; margin: 0 0 .4em; }
.formpage .field { margin: 0 0 20px; padding: 0; border: 0; min-width: 0; }
.formpage .field > label, .formpage legend { display: block; font-weight: 800; margin: 0 0 6px; padding: 0; }
.formpage input[type="text"], .formpage input[type="password"], .formpage input[type="date"], .formpage input[type="file"], .formpage select, .formpage textarea {
  display: block; width: 100%; box-sizing: border-box; min-height: 48px; padding: 10px 12px; font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--bg); border: 3px solid var(--line); border-radius: 14px; }
.formpage textarea { line-height: 1.7; resize: vertical; }
.formpage input:focus-visible, .formpage select:focus-visible, .formpage textarea:focus-visible { outline: 4px solid var(--red); outline-offset: 2px; }
.formpage .hint { margin: 6px 0 0; font-size: .82rem; color: var(--sub); line-height: 1.7; }
.formpage .req { display: inline-block; margin-left: .3em; padding: 0 .5em; font-size: .72rem; font-weight: 800; color: #fff; background: var(--red-text); border-radius: 999px; vertical-align: middle; }
.formpage .actions { margin: 26px 0 0; }
.formpage .errors { margin: 0 0 20px; padding: 12px 16px; background: #ffe3de; color: #5a0a0a; border: 3px solid var(--red-text); border-radius: 14px; font-weight: 600; }
.formpage .errors p { margin: 0 0 .3em; font-weight: 800; }
.formpage .errors ul { margin: 0; padding-left: 1.3em; }
.formpage .notice { margin: 0 0 20px; padding: 12px 16px; background: #e6f6d8; color: #1c3b0a; border: 3px solid #3d7a1c; border-radius: 14px; font-weight: 700; }
.formpage .privacy { margin: 6px 0 0; padding: 14px 16px; background: var(--bg); border: 2.5px dashed var(--line); border-radius: 16px; font-size: .9rem; line-height: 1.8; }
.formpage .privacy p { margin: 0; }
.formpage .check label { display: flex; gap: 12px; align-items: flex-start; font-weight: 600; cursor: pointer; }
.formpage .check input[type="checkbox"] { flex: 0 0 auto; width: 26px; height: 26px; margin: 2px 0 0; accent-color: var(--red); }
.formpage .rates { display: flex; flex-wrap: wrap; gap: 8px 10px; }
.formpage .rate { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 4px 14px; background: var(--bg); border: 3px solid var(--line); border-radius: 999px; cursor: pointer; font-weight: 700; }
.formpage .rate input { width: 22px; height: 22px; accent-color: var(--red); margin: 0; }
.formpage .rate .stars { font-size: 1rem; }
.formpage .rate-n { font-size: .85rem; color: var(--sub); }
/* ハニーポット：画面外へ（display:none だと一部のボットが無視する） */
.hp-wrap { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
/* 管理メニュー */
.admin-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; max-width: 760px; margin: 0 auto 18px; padding: 8px 14px; background: var(--paper); border: 3px solid var(--line); border-radius: 999px; font-weight: 700; font-size: .92rem; }
.admin-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 6px; }
.admin-nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 6px; }
.admin-nav .inline-form { margin: 0 0 0 auto; }
.btn-link { min-height: 44px; padding: 0 12px; font: inherit; font-weight: 700; color: var(--red-text); background: none; border: 2.5px solid var(--line); border-radius: 999px; cursor: pointer; }
.btn-link:hover { background: var(--yellow); color: #2b1812; }
.req-list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 14px; }
.req-item { padding: 14px 16px; background: var(--bg); border: 2.5px solid var(--line); border-radius: 16px; overflow-wrap: anywhere; }
.req-item p { margin: 0 0 .5em; }
.req-item .req-msg { white-space: normal; line-height: 1.8; }
.req-meta { font-size: .85rem; color: var(--sub); }
.req-id { font-family: ui-monospace, monospace; font-size: .75rem; }
.req-old { border-style: dashed; }
.badge { display: inline-block; padding: 0 .6em; font-size: .75rem; font-weight: 800; color: #fff; background: var(--red-deep); border-radius: 999px; }
.empty-note { padding: 28px 0; text-align: center; color: var(--sub); }
.formpage .verified { margin: 0; padding: 10px 14px; background: var(--bg); border: 3px solid var(--line); border-radius: 14px; font-weight: 700; overflow-wrap: anywhere; }
.formpage .label { display: block; font-weight: 800; margin: 0 0 6px; }
hr.sep { border: 0; border-top: 3px dashed var(--line); margin: 24px 0; }
.formpage .pow-status { margin: 0 0 14px; padding: 8px 12px; font-size: .88rem; background: var(--bg); border: 2px dashed var(--line); border-radius: 12px; }
.formpage .pow-ok { border-style: solid; font-weight: 700; }
.formpage .btn[disabled] { opacity: .55; cursor: not-allowed; box-shadow: none; }
/* 管理：記事一覧・編集 */
.formpage .panel { margin: 0 0 22px; padding: 14px 16px; background: var(--bg); border: 2.5px solid var(--line); border-radius: 16px; }
.formpage .panel h2 { margin-top: 0; }
.formpage .filters { line-height: 2.2; font-size: .92rem; }
.formpage .facts-line { margin: 0 0 12px; font-size: .92rem; color: var(--sub); }
.formpage .btn-row form, .formpage form.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }
.ph-list { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.ph-item { padding: 8px; background: var(--paper); border: 2.5px solid var(--line); border-radius: 14px; }
.ph-item img { width: 100%; height: auto; aspect-ratio: 4/3; object-fit: cover; border-radius: 10px; }
.ph-btns { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 6px; font-size: .85rem; }
.table-wrap { overflow-x: auto; }
table.hist { width: 100%; border-collapse: collapse; font-size: .85rem; }
table.hist th, table.hist td { padding: 6px 8px; border-bottom: 2px solid var(--soft); text-align: left; vertical-align: top; overflow-wrap: anywhere; }
.hist-list { margin: 0; padding-left: 1.2em; line-height: 2; }

/* 写真の切り抜き中心（インラインstyleが使えないのでクラスで指定。fp-<x>-<y>、0〜100の10刻み） */
.fp-0-0{object-position:0% 0%} .fp-0-10{object-position:0% 10%} .fp-0-20{object-position:0% 20%} .fp-0-30{object-position:0% 30%} .fp-0-40{object-position:0% 40%} .fp-0-50{object-position:0% 50%} .fp-0-60{object-position:0% 60%} .fp-0-70{object-position:0% 70%} .fp-0-80{object-position:0% 80%} .fp-0-90{object-position:0% 90%} .fp-0-100{object-position:0% 100%}
.fp-10-0{object-position:10% 0%} .fp-10-10{object-position:10% 10%} .fp-10-20{object-position:10% 20%} .fp-10-30{object-position:10% 30%} .fp-10-40{object-position:10% 40%} .fp-10-50{object-position:10% 50%} .fp-10-60{object-position:10% 60%} .fp-10-70{object-position:10% 70%} .fp-10-80{object-position:10% 80%} .fp-10-90{object-position:10% 90%} .fp-10-100{object-position:10% 100%}
.fp-20-0{object-position:20% 0%} .fp-20-10{object-position:20% 10%} .fp-20-20{object-position:20% 20%} .fp-20-30{object-position:20% 30%} .fp-20-40{object-position:20% 40%} .fp-20-50{object-position:20% 50%} .fp-20-60{object-position:20% 60%} .fp-20-70{object-position:20% 70%} .fp-20-80{object-position:20% 80%} .fp-20-90{object-position:20% 90%} .fp-20-100{object-position:20% 100%}
.fp-30-0{object-position:30% 0%} .fp-30-10{object-position:30% 10%} .fp-30-20{object-position:30% 20%} .fp-30-30{object-position:30% 30%} .fp-30-40{object-position:30% 40%} .fp-30-50{object-position:30% 50%} .fp-30-60{object-position:30% 60%} .fp-30-70{object-position:30% 70%} .fp-30-80{object-position:30% 80%} .fp-30-90{object-position:30% 90%} .fp-30-100{object-position:30% 100%}
.fp-40-0{object-position:40% 0%} .fp-40-10{object-position:40% 10%} .fp-40-20{object-position:40% 20%} .fp-40-30{object-position:40% 30%} .fp-40-40{object-position:40% 40%} .fp-40-50{object-position:40% 50%} .fp-40-60{object-position:40% 60%} .fp-40-70{object-position:40% 70%} .fp-40-80{object-position:40% 80%} .fp-40-90{object-position:40% 90%} .fp-40-100{object-position:40% 100%}
.fp-50-0{object-position:50% 0%} .fp-50-10{object-position:50% 10%} .fp-50-20{object-position:50% 20%} .fp-50-30{object-position:50% 30%} .fp-50-40{object-position:50% 40%} .fp-50-50{object-position:50% 50%} .fp-50-60{object-position:50% 60%} .fp-50-70{object-position:50% 70%} .fp-50-80{object-position:50% 80%} .fp-50-90{object-position:50% 90%} .fp-50-100{object-position:50% 100%}
.fp-60-0{object-position:60% 0%} .fp-60-10{object-position:60% 10%} .fp-60-20{object-position:60% 20%} .fp-60-30{object-position:60% 30%} .fp-60-40{object-position:60% 40%} .fp-60-50{object-position:60% 50%} .fp-60-60{object-position:60% 60%} .fp-60-70{object-position:60% 70%} .fp-60-80{object-position:60% 80%} .fp-60-90{object-position:60% 90%} .fp-60-100{object-position:60% 100%}
.fp-70-0{object-position:70% 0%} .fp-70-10{object-position:70% 10%} .fp-70-20{object-position:70% 20%} .fp-70-30{object-position:70% 30%} .fp-70-40{object-position:70% 40%} .fp-70-50{object-position:70% 50%} .fp-70-60{object-position:70% 60%} .fp-70-70{object-position:70% 70%} .fp-70-80{object-position:70% 80%} .fp-70-90{object-position:70% 90%} .fp-70-100{object-position:70% 100%}
.fp-80-0{object-position:80% 0%} .fp-80-10{object-position:80% 10%} .fp-80-20{object-position:80% 20%} .fp-80-30{object-position:80% 30%} .fp-80-40{object-position:80% 40%} .fp-80-50{object-position:80% 50%} .fp-80-60{object-position:80% 60%} .fp-80-70{object-position:80% 70%} .fp-80-80{object-position:80% 80%} .fp-80-90{object-position:80% 90%} .fp-80-100{object-position:80% 100%}
.fp-90-0{object-position:90% 0%} .fp-90-10{object-position:90% 10%} .fp-90-20{object-position:90% 20%} .fp-90-30{object-position:90% 30%} .fp-90-40{object-position:90% 40%} .fp-90-50{object-position:90% 50%} .fp-90-60{object-position:90% 60%} .fp-90-70{object-position:90% 70%} .fp-90-80{object-position:90% 80%} .fp-90-90{object-position:90% 90%} .fp-90-100{object-position:90% 100%}
.fp-100-0{object-position:100% 0%} .fp-100-10{object-position:100% 10%} .fp-100-20{object-position:100% 20%} .fp-100-30{object-position:100% 30%} .fp-100-40{object-position:100% 40%} .fp-100-50{object-position:100% 50%} .fp-100-60{object-position:100% 60%} .fp-100-70{object-position:100% 70%} .fp-100-80{object-position:100% 80%} .fp-100-90{object-position:100% 90%} .fp-100-100{object-position:100% 100%}
/* 管理：切り抜き中心の指定 */
.fp-edit { margin: 0 0 10px; padding: 6px; border: 2.5px dashed var(--line); border-radius: 12px; }
.fp-edit:focus-visible { outline: 4px solid var(--red); outline-offset: 2px; }
.fp-orig { position: relative; }
.fp-orig img { width: 100%; height: auto; aspect-ratio: auto; object-fit: fill; display: block; border-radius: 8px; border: 0; }
.fp-edit.fp-js .fp-orig img { cursor: crosshair; }
.fp-mark { display: none; position: absolute; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; border: 3px solid #fff; background: var(--red); box-shadow: 0 0 0 2px #2b1812; pointer-events: none; left: 50%; top: 50%; }
.fp-edit.fp-js .fp-mark { display: block; }
.fp-cap { margin: 8px 0 4px; font-size: .78rem; color: var(--sub); }
.fp-crop { width: 100%; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 8px; border: 2px solid var(--line); }
.fp-crop img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fp-sel { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin: 4px 0 8px; font-size: .85rem; }
.fp-sel select { width: auto; min-width: 5.5em; }
