/* ひがよど地図 ── Instagram @higayodo_amb の雰囲気に合わせた見た目（2026-10-13）
   大理石の白い地・クリーム・温かい濃いグレーの文字・モカの差し色。見出しは明朝、本文は丸ゴシック、ロゴは筆記体。
   読み取りの記録＝案件フォルダの _検証/デザインの読み取り_20261013.txt
   色のコントラストはすべて WCAG AA（文字 4.5:1 以上）で選んでいる。 */
:root {
  color-scheme: light;
  --bg: #f6f6f8;            /* 大理石の地（冷たい白） */
  --card: #ffffff;
  --veil: rgba(255, 255, 255, .78);  /* 大理石の上に置く白い板 */
  --ink: #3d3936;           /* 文字（白地 11.4:1） */
  --sub: #6b645e;           /* 補助の文字（白地 5.8:1・クリーム地 5.5:1） */
  --line: #e4dfd9;
  --line-soft: #ece8e3;
  --cream: #fcf7f1;         /* ハイライトの丸の中 */
  --beige: #efe6dc;         /* 写真に乗る札 */
  --pill-gray: #ebebeb;     /* 「＊2025 掲載一覧＊」の札 */
  --accent: #7f6252;        /* 差し色＝モカ（白地 5.6:1・白文字も 5.6:1） */
  --accent-soft: #c9b5a5;
  --arc: #625e5a;           /* ハイライトの円弧 */
  --gold: #b8913a;
  --gold-light: #ecd58f;
  --gold-ink: #7a5c12;
  --gold-pale: #f7efd9;
  --rose: #c48b98;          /* 応援サポーター（くすんだ薔薇色） */
  --rose-ink: #8a4c5c;
  --rose-pale: #f6e9eb;
  --normal: #b8a596;        /* 紹介店（淡い灰茶） */
  --venue: #4f6a78;         /* 会場＝銭湯（落ち着いた青灰・白文字 5.7:1） */
  --venue-pale: #e8eef1;
  --venue-ink: #3f5866;
  --closed: #a9a7a6;
  --radius: 12px;
  --f-body: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Hiragino Sans", "Noto Sans JP", system-ui, sans-serif;
  --f-mincho: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", serif;
  --f-script: "Ms Madi", "Snell Roundhand", cursive;
  --flower: url("../img/flower.svg");
  --dots: radial-gradient(circle, #b9b2ab 1px, transparent 1.4px) 0 50% / 6px 3px repeat-x;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--ink); line-height: 1.75; font-size: 16px; font-weight: 500;
  font-family: var(--f-body);
  background: var(--bg);
}
/* 大理石は固定の板にして、スクロールしても筋が流れないようにする（iOS でも動く書き方） */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: url("../img/marble.svg") center / cover no-repeat, var(--bg);
}
a { color: var(--accent); text-underline-offset: 3px; }
.wrap { max-width: 960px; margin: 0 auto; padding: 0 16px; overflow-wrap: anywhere; }
/* 横のはみ出し止め（2026-10-13 実データ 235 件で確認）：長い英字の店名・住所でも折り返す。
   flex の子は min-width:0 で縮められるようにし、横スクロールは地域の丸の列の中だけに閉じる。 */
.tabs button, .filter-row, .legend > span, .next-venue > div { min-width: 0; }
.filters, .map, .list-section, .legend { max-width: 100%; }
.leaflet-popup-content { overflow-wrap: anywhere; }
h1, h2, h3 { font-family: var(--f-mincho); font-weight: 600; }

/* ── 見出し（大理石の上の白い板＋筆記体のロゴ） */
.site-head {
  position: relative; margin: 12px 0 12px; padding: 14px 14px 14px; text-align: center;
  background: var(--veil); border-radius: 4px;
  -webkit-backdrop-filter: blur(1px); backdrop-filter: blur(1px);
}
.brand { display: inline-block; position: relative; line-height: 1; padding: 6px 4px 0 30px; color: #4a4643; text-decoration: none; }
.brand::before {
  content: ""; position: absolute; left: 4px; top: -4px; width: 42px; height: 42px;
  background: var(--flower) no-repeat center / contain;
}
.brand .s1 { display: block; font-family: var(--f-script); font-size: 2.6rem; line-height: .95; letter-spacing: .01em; }
.brand .s2 { display: block; font-family: var(--f-script); font-size: 1.55rem; line-height: 1; margin: -4px 0 0 2.6em; }
.brand-tag { display: block; margin: 6px 0 0; font-size: .8rem; color: var(--sub); letter-spacing: .14em; }
.site-head .kicker {
  display: inline-block; margin: 8px 0 0; padding: 1px 14px; border-radius: 6px; background: var(--pill-gray);
  font-family: var(--f-mincho); font-size: .9rem; color: #4f4b48; letter-spacing: .08em;
}
.site-head h1 { margin: 4px 0 0; font-size: 1.55rem; letter-spacing: .14em; line-height: 1.45; }
.site-head h1 small {
  display: block; margin-top: 4px; font-family: var(--f-body); font-size: .9rem; font-weight: 500; color: var(--sub); letter-spacing: .04em;
}
.site-head h1 small .nw { display: inline-block; }
.site-head.compact { padding-top: 12px; }
.site-head.compact .brand .s1 { font-size: 2.2rem; }
.site-head.compact .brand .s2 { font-size: 1.3rem; }
.site-head.compact .brand::before { width: 32px; height: 32px; top: -2px; }
.site-head.compact h1 { font-size: 1.45rem; letter-spacing: .1em; }

/* ── 切り替え（イベント｜アーカイブ） */
.tabs { display: flex; gap: 4px; margin: 0 0 14px; background: var(--veil); border: 1px solid var(--line); border-radius: 999px; padding: 4px; }
.tabs button {
  flex: 1; border: 0; background: transparent; padding: 9px 8px; border-radius: 999px; font: inherit;
  font-family: var(--f-mincho); font-size: 1.05rem; font-weight: 600; color: var(--sub); cursor: pointer; line-height: 1.3; letter-spacing: .08em;
}
.tabs button small { font-family: var(--f-body); font-size: .8rem; font-weight: 500; letter-spacing: .04em; }
.tabs button[aria-selected="true"] { background: var(--ink); color: #fff; }
.tabs button:focus-visible, .chip:focus-visible, .hl:focus-visible, .switch button:focus-visible, .visit:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ── 見本の帯（「＊2025 掲載一覧＊」の札の型） */
.sample-banner {
  position: sticky; top: 0; z-index: 1200; background: #f3ebe1; color: #5a4a3c; border-bottom: 1px solid #ddcfbf;
  padding: 6px 12px; font-size: .88rem; line-height: 1.5; text-align: center; font-family: var(--f-mincho); font-weight: 600; letter-spacing: .02em;
}
.sample-banner::before { content: "＊ "; }
.sample-banner[hidden] { display: none; }

/* ── カード（白い紙に細い線） */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; margin: 0 0 14px; }
.card h2 { margin: 0 0 6px; font-size: 1.2rem; letter-spacing: .08em; }
.card p { margin: 6px 0; }
.muted { color: var(--sub); font-size: .9rem; }
/* イベントの説明＝白い細枠（投稿の表紙の内側の 1 本線） */
.event-card { position: relative; padding: 22px 22px 18px; }
.event-card::before { content: ""; position: absolute; inset: 6px; border: 1px solid var(--line); border-radius: 8px; pointer-events: none; }
.event-card h2 { text-align: center; font-size: 1.3rem; padding-bottom: 8px; margin-bottom: 8px; background: var(--dots); background-position: 50% 100%; }
.event-card .dates .nw { display: inline-block; }
.event-card .dates { font-family: var(--f-mincho); font-weight: 600; text-align: center; font-size: 1.05rem; }

/* ── 絞り込み */
.filters { margin: 0 0 12px; }
.filter-title { margin: 0 2px 4px; font-family: var(--f-mincho); font-weight: 600; font-size: 1rem; letter-spacing: .1em; color: var(--ink); }
.filter-row { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 8px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.filter-row::-webkit-scrollbar { display: none; }
.filter-row .label { flex: none; font-family: var(--f-mincho); font-weight: 600; font-size: .9rem; color: var(--ink); align-self: center; width: 5em; letter-spacing: .06em; }
/* ジャンル・イベント＝写真に乗る札の型（ベージュの角丸） */
.chip {
  flex: none; border: 1px solid #e2d6c9; background: var(--beige); color: var(--ink); border-radius: 999px;
  padding: 7px 16px; font: inherit; font-size: .92rem; cursor: pointer; white-space: nowrap; letter-spacing: .06em;
}
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 700; }

/* 地域＝Instagram のハイライトの型（.chip の札の見た目は消す） */
.chip.hl, .chip.hl[aria-pressed="true"] { background: none; border: 0; border-radius: 0; color: var(--ink); font-weight: 500; }
/* 地域＝Instagram のハイライトの型（丸いアイコン＋下に地域名・横スクロール） */
.hl-row { gap: 12px; padding: 6px 2px 10px; }
.hl {
  flex: none; min-width: 76px; padding: 0 2px; border: 0; background: none; font: inherit; color: var(--ink); cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.hl .disc {
  display: block; width: 70px; height: 70px; border-radius: 50%; padding: 3px; background: #fff;
  box-shadow: 0 0 0 1px #d9d6d2;  /* 未選択＝細いグレーの輪（Instagram と同じ） */
  transition: box-shadow .15s;
}
.hl .disc svg, .hl .disc img { display: block; width: 100%; height: 100%; border-radius: 50%; }
.hl .disc img { background: #fff; padding: 12px; }
.hl .nm { font-size: .88rem; line-height: 1.3; letter-spacing: .02em; white-space: nowrap; }
.hl[aria-pressed="true"] .disc { box-shadow: 0 0 0 2.5px var(--accent); }  /* 選ぶとストーリーの輪のようにモカの細い輪 */
.hl[aria-pressed="true"] .nm { font-weight: 700; color: var(--accent); }
.hl:hover .disc { box-shadow: 0 0 0 1.5px var(--accent-soft); }
.hl[aria-pressed="true"]:hover .disc { box-shadow: 0 0 0 2.5px var(--accent); }

/* ── 地図 */
.map { height: min(58vh, 520px); min-height: 320px; border-radius: var(--radius); border: 6px solid #fff; box-shadow: 0 0 0 1px var(--line); overflow: hidden; background: #f1efed; }
.map.small { height: 300px; min-height: 0; margin: 0 0 14px; }
.count { font-size: .92rem; color: var(--sub); margin: 8px 2px; text-align: center; letter-spacing: .04em; }

/* ── 凡例と見本スイッチ */
.legend {
  display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; justify-content: center; font-size: .86rem; color: var(--ink);
  margin: 6px 0 6px; padding: 8px 12px; background: var(--veil); border-radius: 8px;
}
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend .sw { display: inline-flex; }
.switch { display: flex; justify-content: center; align-items: center; gap: 8px; margin: 8px 2px 14px; }
.switch button {
  border: 1px dashed var(--accent-soft); background: var(--cream); color: #5a4a3c; border-radius: 999px; padding: 8px 18px;
  font: inherit; font-size: .9rem; cursor: pointer; letter-spacing: .04em;
}
.switch button[aria-pressed="true"] { background: #f3ebe1; border-style: solid; border-color: #ddcfbf; font-weight: 700; }

/* 地図の色を少し落として、ピンを目立たせる（大理石の地となじむよう少し冷たく） */
.leaflet-tile-pane { filter: grayscale(.7) sepia(.06) brightness(1.03) contrast(.95); }
.leaflet-container { font-family: var(--f-body); }
.leaflet-control-zoom a { color: var(--ink) !important; font-family: var(--f-body); }
.leaflet-bar { border: 1px solid var(--line) !important; box-shadow: none !important; border-radius: 8px !important; overflow: hidden; }
.leaflet-control-attribution { font-size: 11px; background: rgba(255,255,255,.8) !important; }

/* ── ピン（Leaflet の divIcon） */
.pin-wrap { background: none; border: 0; }
.pin {
  --c: var(--normal); width: 22px; height: 22px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg);
  background: var(--c); border: 2px solid #fff; box-shadow: 0 1px 3px rgba(61,57,54,.35);
  display: flex; align-items: center; justify-content: center;
}
.pin i { transform: rotate(45deg); font-style: normal; color: #fff; font-size: 10px; line-height: 1; font-weight: 700; }
.pin.normal { --c: var(--normal); }
.pin.supporter { --c: var(--rose); }
.pin.sponsor { --c: var(--accent); }
.pin.gold {
  --c: linear-gradient(135deg, #f6e6b0 0%, var(--gold-light) 30%, var(--gold) 75%, #9a7426 100%);
  width: 34px; height: 34px; border-width: 3px;
  box-shadow: 0 0 0 3px rgba(184,145,58,.32), 0 2px 5px rgba(61,57,54,.35);
}
.pin.gold i { font-size: 15px; text-shadow: 0 1px 1px rgba(122,92,18,.6); }
.pin.closed { --c: var(--closed); }
.pin.low { opacity: .45; }
.venue-pin {
  width: 30px; height: 30px; border-radius: 50%; background: var(--venue); border: 2px solid #fff; color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 16px; box-shadow: 0 1px 3px rgba(61,57,54,.35);
}
.venue-pin.here { width: 38px; height: 38px; font-size: 20px; box-shadow: 0 0 0 4px rgba(79,106,120,.3), 0 1px 4px rgba(61,57,54,.35); }

/* ── ピンのまとまり（モカの丸＋クリームの縁。Leaflet.markercluster の丸をこの見た目にする） */
.cl-wrap { background: none; border: 0; }
.cl {
  width: 100%; height: 100%; border-radius: 50%; background: var(--accent); color: #fff;
  border: 2px solid #fff; box-shadow: 0 0 0 4px rgba(252, 247, 241, .9), 0 0 0 5px var(--accent-soft), 0 1px 4px rgba(61,57,54,.3);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--f-body); font-weight: 700; font-size: 13px; line-height: 1; letter-spacing: .02em;
}
.cl.md { font-size: 14px; }
.cl.lg { font-size: 15px; background: #6e5445; }

/* ── バッジ（札の型） */
.badge { display: inline-block; font-size: .78rem; line-height: 1.55; padding: 1px 9px; border-radius: 999px; margin: 0 4px 3px 0; font-weight: 700; white-space: nowrap; letter-spacing: .04em; vertical-align: 1px; }
.badge.gold { background: var(--gold-pale); color: var(--gold-ink); border: 1px solid #e2cc8f; }
.badge.gold::before { content: "★ "; color: var(--gold); }
.badge.sponsor { background: var(--beige); color: #6b4f3f; border: 1px solid #d9c8b8; }
.badge.supporter { background: var(--rose-pale); color: var(--rose-ink); border: 1px solid #e6cbd1; }
.badge.closed { background: #eeeeee; color: #5f5f5f; border: 1px solid #dddddd; }
.badge.low { background: #f4f3f2; color: var(--sub); border: 1px dashed #cfc9c4; font-weight: 500; }
.badge.venue { background: var(--venue-pale); color: var(--venue-ink); border: 1px solid #cbd9e0; }
.badge.sample { background: #fbf3e4; color: #6b5a3a; border: 1px dashed #d7c39a; }

/* ── ポップアップ */
.leaflet-popup-content-wrapper { border-radius: var(--radius); box-shadow: 0 2px 10px rgba(61,57,54,.18); }
.leaflet-popup-content { margin: 14px 16px; font-size: 1rem; line-height: 1.65; font-family: var(--f-body); color: var(--ink); }
.pop h3 { margin: 2px 0 2px; font-size: 1.12rem; letter-spacing: .04em; }
.pop .meta { color: var(--sub); font-size: .86rem; }
.pop p { margin: 6px 0; }
.pop .posts { list-style: none; padding: 0; margin: 6px 0; }
.pop .posts li { margin: 2px 0; }
.pop .foot { color: var(--sub); font-size: .8rem; margin-top: 6px; }
.pop .note { color: #5a534e; font-size: .88rem; background: var(--cream); border-radius: 8px; padding: 4px 8px; }

/* ── 一覧（明朝の見出し＋点線の区切り・花の線画） */
.list-section h3 {
  font-size: 1.08rem; letter-spacing: .08em; margin: 24px 0 8px; padding: 0 0 6px 30px; position: relative;
  background: var(--dots); background-position: 0 100%;
}
.list-section h3::before { content: ""; position: absolute; left: 0; top: 0; width: 24px; height: 24px; background: var(--flower) no-repeat center / contain; }
.list { list-style: none; padding: 0; margin: 0; }
.list li { margin: 0 0 8px; }
.list button, .list a.item {
  width: 100%; text-align: left; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px;
  font: inherit; color: var(--ink); cursor: pointer; display: block; text-decoration: none;
}
.list button:hover, .list a.item:hover { border-color: var(--accent-soft); box-shadow: 0 1px 6px rgba(127,98,82,.12); }
.list .name { font-family: var(--f-mincho); font-weight: 600; font-size: 1.06rem; letter-spacing: .04em; }
.list .desc { display: block; color: var(--sub); font-size: .9rem; margin-top: 2px; }
.list .closed .name { color: #807b78; text-decoration: line-through; }
.empty { color: var(--sub); font-size: .95rem; padding: 10px 2px; }

/* ── 会場ページ */
.back { display: inline-block; margin: 14px 0 0; font-size: .95rem; text-decoration: none; padding: 4px 12px; border-radius: 999px; background: var(--veil); border: 1px solid var(--line); color: var(--ink); }
.info { width: 100%; border-collapse: collapse; font-size: .98rem; }
.info th { text-align: left; color: var(--sub); font-weight: 500; width: 6.2em; vertical-align: top; padding: 8px 0; font-size: .9rem; }
.info td { padding: 8px 0; border-bottom: 1px solid var(--line-soft); }
.visit {
  width: 100%; border: 0; border-radius: 999px; padding: 15px; font: inherit; font-family: var(--f-mincho); font-size: 1.15rem; font-weight: 600;
  letter-spacing: .12em; color: #fff; background: var(--accent); cursor: pointer;
}
.visit[disabled] { background: #e7e3df; color: #6b645e; cursor: not-allowed; }
.visit-msg { text-align: center; font-size: .9rem; color: var(--sub); margin: 8px 0 0; }
.next-venue { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.next-venue .name { font-family: var(--f-mincho); font-size: 1.08rem; }
.btn { display: inline-block; border-radius: 999px; padding: 9px 18px; background: var(--venue); color: #fff; text-decoration: none; font-weight: 700; font-size: .95rem; letter-spacing: .04em; }
.btn.sub { background: var(--card); color: var(--ink); border: 1px solid var(--line); font-weight: 500; }
.venue-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.venue-chips a { font-size: .9rem; padding: 5px 14px; border-radius: 999px; border: 1px solid #cbd9e0; background: var(--venue-pale); color: var(--venue-ink); text-decoration: none; }
.venue-chips a[aria-current="page"] { background: var(--venue); border-color: var(--venue); color: #fff; font-weight: 700; }

/* ── フッター */
.site-foot { margin: 32px 0 0; padding: 18px 0 30px; text-align: center; color: var(--sub); font-size: .86rem; background: var(--dots); background-position: 50% 0; }
.site-foot p { margin: 3px 0; }
.site-foot .foot-script { font-family: var(--f-script); font-size: 1.7rem; color: #4a4643; line-height: 1.2; margin-bottom: 6px; }

@media (min-width: 720px) {
  .site-head { padding: 22px 24px 20px; }
  .brand .s1 { font-size: 3.6rem; }
  .brand .s2 { font-size: 2rem; }
  .site-head h1 { font-size: 1.8rem; }
  .hl { min-width: 84px; }
  .hl .disc { width: 78px; height: 78px; }
  .hl .nm { font-size: .92rem; }
}

/* ── 人気の数字と一覧の並べ替え（2026-10-13）。札は .chip と同じ見た目・数字は補助の文字色で小さく */
.score { display: inline-block; margin-left: 6px; color: var(--sub); font-size: .8rem; font-weight: 500; letter-spacing: .02em; white-space: nowrap; }
.list .name + .score { vertical-align: 1px; }
.sort-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 18px 2px 0; }
.sort-row .sort-note { color: var(--sub); font-size: .8rem; letter-spacing: .02em; }
.sort-row .chip:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
