/* ビリヤードマップ 共通スタイル */
:root {
  --felt: #0d5c3f;
  --felt-dk: #073d2a;
  --felt-lt: #e7f2ec;
  --gold: #c99a2e;
  --gold-lt: #fbf3df;
  --ink: #1d2521;
  --sub: #5d6a63;
  --line: #dfe5e1;
  --bg: #f5f7f5;
  --card: #fff;
  --red: #c2413a;
  --blue: #2f5fb3;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(0,0,0,.05), 0 4px 14px rgba(13,40,28,.06);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.7 "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", Meiryo, sans-serif; }
a { color: var(--felt); }
img { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--sub); }
.small { font-size: 13px; }
.hidden { display: none !important; }

/* ---------- header ---------- */
#site-header { background: var(--felt-dk); color: #fff; position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.hd { display: flex; align-items: center; gap: 16px; height: 60px; }
.logo { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; line-height: 1.2; flex-shrink: 0; }
.logo b { font-size: 18px; letter-spacing: .04em; }
.logo small { display: block; font-size: 11px; opacity: .75; }
.logo-ball { width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0; position: relative; font-size: 0; background: linear-gradient(#fff 0 22%, #e8b93c 22% 78%, #fff 78%); box-shadow: inset -3px -4px 7px rgba(0,0,0,.28); }
.logo-ball::after { content: "9"; position: absolute; left: 50%; top: 50%; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: #fff; color: #1d2521; font-size: 10.5px; font-weight: 800; line-height: 16px; text-align: center; }
.gnav { margin-left: auto; display: flex; gap: 2px; }
.gnav a { color: #e6f0ea; text-decoration: none; padding: 8px 12px; border-radius: 8px; font-size: 14px; white-space: nowrap; }
.gnav a:hover { background: rgba(255,255,255,.08); }
.gnav a.on { background: rgba(255,255,255,.14); color: #fff; font-weight: 700; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid rgba(255,255,255,.4); border-radius: 8px; color: #fff; font-size: 13px; padding: 6px 12px; cursor: pointer; }
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .gnav { display: none; position: absolute; left: 0; right: 0; top: 60px; background: var(--felt-dk); flex-direction: column; padding: 8px 16px 14px; }
  .nav-open .gnav { display: flex; }
  .gnav a { padding: 12px; }
}

/* ---------- footer ---------- */
#site-footer { background: #17201c; color: #b8c4bd; margin-top: 48px; font-size: 13px; }
.ft { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 24px; padding: 32px 16px 20px; }
.ft b { color: #fff; display: block; margin-bottom: 6px; }
.ft a { display: block; color: #b8c4bd; text-decoration: none; padding: 2px 0; }
.ft a:hover { color: #fff; }
.ft p { margin: 0; }
.copy { border-top: 1px solid #2a352f; padding: 14px 16px 24px; font-size: 12px; color: #8a978f; }
.copy a { color: #b8c4bd; }
@media (max-width: 700px) { .ft { grid-template-columns: 1fr 1fr; } .ft > div:first-child { grid-column: 1 / -1; } }

/* ---------- parts ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 18px; border-radius: 10px; border: 1px solid var(--line); background: #fff; cursor: pointer; text-decoration: none; color: var(--ink); font-weight: 600; font-size: 14px; line-height: 1.3; }
.btn:hover { border-color: #b9c6be; }
.btn-primary { background: var(--felt); border-color: var(--felt); color: #fff; }
.btn-primary:hover { background: var(--felt-dk); }
.btn-gold { background: var(--gold); border-color: var(--gold); color: #1d2521; }
.btn-sm { padding: 6px 12px; font-size: 13px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.sec { margin-top: 36px; }
.sec-h { display: flex; align-items: baseline; gap: 12px; margin: 0 0 14px; }
.sec-h h2 { font-size: 21px; margin: 0; }
.sec-h a { margin-left: auto; font-size: 14px; white-space: nowrap; }
.badge { display: inline-block; font-size: 11.5px; line-height: 1.5; padding: 1px 8px; border-radius: 99px; background: var(--felt-lt); color: var(--felt-dk); margin: 0 4px 4px 0; white-space: nowrap; font-weight: 600; }
.b-pro { background: #fde8e6; color: #9b2c25; }
.b-open { background: #e5edfb; color: #244a8f; }
.b-league { background: #efe7fb; color: #5a3591; }
.b-lesson { background: #fff1d6; color: #7a5410; }
.b-game { background: #eef1ef; color: #36443c; }
.b-class { background: var(--gold-lt); color: #6b5010; }
.b-unv { background: #f1f1f1; color: #6d6d6d; font-weight: 500; }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 6px 12px; border-radius: 99px; border: 1px solid var(--line); background: #fff; font-size: 13px; cursor: pointer; user-select: none; white-space: nowrap; }
.chip input { display: none; }
.chip.on, .chip:has(input:checked) { background: var(--felt); border-color: var(--felt); color: #fff; }
.field { display: flex; flex-direction: column; gap: 4px; }
.field label { font-size: 13px; font-weight: 700; }
.input, select.input, textarea.input { width: 100%; padding: 10px 12px; border: 1px solid #cfd8d2; border-radius: 10px; background: #fff; min-height: 42px; }
.input:focus { outline: 2px solid rgba(13,92,63,.25); border-color: var(--felt); }
.notice { padding: 12px 14px; border-radius: 10px; background: var(--gold-lt); border: 1px solid #efdcaa; font-size: 14px; }
.err { background: #fdecea; border-color: #f3c3be; }
.empty { padding: 28px; text-align: center; color: var(--sub); }
.crumbs { font-size: 13px; color: var(--sub); margin: 16px 0 8px; }
.crumbs a { color: var(--sub); }

/* ---------- shop card ---------- */
.shop-card { display: block; padding: 14px 16px; text-decoration: none; color: inherit; border-bottom: 1px solid var(--line); background: #fff; cursor: pointer; }
.shop-card:hover, .shop-card.hl { background: #f3f8f5; }
.shop-card h3 { margin: 0 0 2px; font-size: 16px; line-height: 1.45; color: var(--felt-dk); }
.shop-card .meta { font-size: 13px; color: var(--sub); }
.shop-card .dist { float: right; font-weight: 700; color: var(--felt); font-size: 14px; margin-left: 8px; }
.shop-card .tags { margin-top: 6px; }
.shop-card .next { font-size: 12.5px; margin-top: 4px; color: #6b5010; }

/* ---------- tournament row ---------- */
.tour { display: grid; grid-template-columns: 64px 1fr; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); cursor: pointer; background: #fff; }
.tour:hover { background: #f8faf8; }
.tour:last-child { border-bottom: 0; }
.tour .d { text-align: center; line-height: 1.2; border-radius: 10px; background: var(--felt-lt); padding: 7px 0; color: var(--felt-dk); align-self: start; }
.tour .d b { display: block; font-size: 20px; }
.tour .d small { font-size: 11.5px; }
.tour .d.sat { background: #e8effb; color: #244a8f; }
.tour .d.sun { background: #fde8e6; color: #9b2c25; }
.tour h4 { margin: 0; font-size: 15px; line-height: 1.45; }
.tour .v { font-size: 13px; color: var(--sub); }

/* ---------- modal ---------- */
.modal-bg { position: fixed; inset: 0; background: rgba(10,20,15,.5); z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal { background: #fff; border-radius: 16px; max-width: 560px; width: 100%; max-height: calc(100vh - 32px); overflow: auto; padding: 22px 22px 18px; position: relative; }
.modal h3 { margin: 0 0 8px; font-size: 19px; padding-right: 30px; }
.modal .x { position: absolute; top: 10px; right: 10px; border: 0; background: #f1f3f2; width: 34px; height: 34px; border-radius: 50%; font-size: 18px; cursor: pointer; }
.dl { display: grid; grid-template-columns: 90px 1fr; gap: 6px 12px; font-size: 14px; margin: 12px 0; }
.dl dt { color: var(--sub); font-weight: 700; font-size: 13px; }
.dl dd { margin: 0; word-break: break-word; }

/* leaflet */
.leaflet-popup-content { font-size: 13px; line-height: 1.5; }
.leaflet-popup-content b { font-size: 14px; }
.pin { width: 26px; height: 26px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--felt); border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.35); }
.pin.t { background: var(--gold); }
.pin.u { background: #7f8d85; }
.here-dot { width: 18px; height: 18px; border-radius: 50%; background: #2f7cf6; border: 3px solid #fff; box-shadow: 0 0 0 6px rgba(47,124,246,.25); }

/* ---------- 広告 ---------- */
.ad-slot { position: relative; }
.ad { display: block; position: relative; text-decoration: none; color: inherit; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; }
.ad-label { position: absolute; top: 6px; right: 8px; font-size: 10.5px; color: #8a978f; background: rgba(255,255,255,.9); padding: 0 6px; border-radius: 4px; z-index: 1; }
.ad-img img { display: block; width: 100%; height: auto; }
.ad-text, .ad-house { padding: 14px 16px; display: flex; flex-direction: column; gap: 3px; }
.ad-text b, .ad-house b { color: var(--felt-dk); font-size: 15px; padding-right: 70px; }
.ad-text span, .ad-house span { font-size: 13px; color: var(--sub); }
.ad-text small { font-size: 11.5px; color: #8a978f; }
.ad-house { background: var(--gold-lt); border-color: #efdcaa; }
#list .ad-slot { padding: 10px 12px; border-bottom: 1px solid var(--line); background: #fafbfa; }
.b-pr { background: var(--gold); color: #1d2521; }

/* 言語選択 */
.langsel { margin-left: 8px; background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.35); border-radius: 8px; padding: 6px 8px; font-size: 13px; cursor: pointer; }
.langsel option { color: #1d2521; background: #fff; }
@media (max-width: 860px) { .langsel { margin: 8px 12px 0; } }

/* 公式サイト・SNS のボタン（文字だけ・種類ごとに色分け） */
.lk { font-weight: 700; }
.lk-hp { border-color: var(--felt); color: var(--felt-dk); }
.lk-youtube { border-color: #e2b1ae; color: #b3261e; }
.lk-facebook { border-color: #b7c7ea; color: #2753a8; }
.lk-instagram { border-color: #e7b6d3; color: #a1336e; }
.lk-x { border-color: #c4c4c4; color: #111; }
.lk-other { color: var(--sub); }

/* Google マップのまとめ表示（件数の丸） */
.gcl { border-radius: 50%; background: rgba(13,92,63,.88); color: #fff; font-weight: 700; font-size: 13px; text-align: center; box-shadow: 0 0 0 5px rgba(13,92,63,.25); }
