/* スケートボードマップ 共通スタイル（アスファルトの黒 × オレンジ） */
:root {
  --brand: #17191d;
  --brand-dk: #0d0e11;
  --brand-lt: #efefec;
  --accent: #ff5a1f;
  --accent-dk: #d9420c;
  --accent-lt: #fff0e8;
  --park: #ff5a1f;
  --shop: #2563eb;
  --shop-lt: #e8efff;
  --ev: #f2c200;
  --ink: #17191d;
  --sub: #62666d;
  --line: #e2e2de;
  --bg: #f4f4f1;
  --card: #fff;
  --red: #d23b2c;
  --blue: #2557c6;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(0,0,0,.05), 0 4px 14px rgba(20,20,20,.06);
  --display: "Dela Gothic One", "Noto Sans JP", sans-serif;
}
* { 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(--accent-dk); }
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(--brand); color: #fff; position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 8px rgba(0,0,0,.2); border-bottom: 3px solid var(--accent); }
.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-family: var(--display); font-weight: 400; font-size: 18px; letter-spacing: .03em; }
.logo small { display: block; font-size: 10.5px; opacity: .7; margin-top: 2px; }
/* ロゴ：デッキを上から見た形 */
.logo-mark { width: 16px; height: 36px; border-radius: 8px; background: var(--accent); position: relative; flex-shrink: 0; transform: rotate(-28deg); box-shadow: inset 0 0 0 2px rgba(0,0,0,.18); }
.logo-mark::before, .logo-mark::after { content: ""; position: absolute; left: -4px; right: -4px; height: 3px; border-radius: 2px; background: #fff; }
.logo-mark::before { top: 8px; } .logo-mark::after { bottom: 8px; }
.gnav { margin-left: auto; display: flex; gap: 2px; }
.gnav a { color: #e9e9e6; text-decoration: none; padding: 8px 11px; border-radius: 8px; font-size: 14px; white-space: nowrap; }
.gnav a:hover { background: rgba(255,255,255,.08); }
.gnav a.on { background: var(--accent); 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: 960px) {
  .nav-toggle { display: block; }
  .gnav { display: none; position: absolute; left: 0; right: 0; top: 63px; background: var(--brand); flex-direction: column; padding: 8px 16px 14px; }
  .nav-open .gnav { display: flex; }
  .gnav a { padding: 12px; }
  .logo small { display: none; }
}

/* ---------- footer ---------- */
#site-footer { background: var(--brand-dk); color: #b9bbbf; 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: #b9bbbf; text-decoration: none; padding: 2px 0; }
.ft a:hover { color: #fff; }
.ft p { margin: 0; }
.copy { border-top: 1px solid #25272c; padding: 14px 16px 24px; font-size: 12px; color: #8b8e94; }
.copy a { color: #b9bbbf; }
@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: #bdbdb7; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dk); border-color: var(--accent-dk); }
.btn-dark { background: var(--brand); border-color: var(--brand); color: #fff; }
.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(--brand-lt); color: #33363b; margin: 0 4px 4px 0; white-space: nowrap; font-weight: 600; }
.b-free { background: #e3f6e8; color: #1c6b35; }
.b-ev { background: #fff6cc; color: #6d5600; }
.b-pro { background: #fde5e2; color: #9d2a1f; }
.b-am { background: #e6edfc; color: #22469a; }
.b-local { background: var(--accent-lt); color: #9a360c; }
.b-school { background: #e3f6e8; color: #1c6b35; }
.b-jam { background: #f0e8fb; color: #5a3591; }
.b-game { background: #eeeeeb; color: #3b3e43; }
.b-class { background: #fff6cc; color: #6d5600; }
.b-unv { background: #f1f1f1; color: #6d6d6d; font-weight: 500; }
.tb { display: inline-block; font-family: var(--display); font-size: 10.5px; letter-spacing: .06em; padding: 1px 7px; border-radius: 4px; color: #fff; vertical-align: 2px; margin-right: 6px; }
.tb-park { background: var(--park); }
.tb-shop { background: var(--shop); }
.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; text-decoration: none; color: var(--ink); }
.chip input { display: none; }
.chip.on, .chip:has(input:checked) { background: var(--brand); border-color: var(--brand); 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 #d3d3ce; border-radius: 10px; background: #fff; min-height: 42px; }
.input:focus { outline: 2px solid rgba(255,90,31,.25); border-color: var(--accent); }
.notice { padding: 12px 14px; border-radius: 10px; background: #fff8e6; border: 1px solid #f1dfa6; 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); }

/* ---------- spot card ---------- */
.spot-card { display: block; padding: 14px 16px; text-decoration: none; color: inherit; border-bottom: 1px solid var(--line); background: #fff; cursor: pointer; border-left: 4px solid transparent; }
.spot-card.park { border-left-color: var(--park); }
.spot-card.shop { border-left-color: var(--shop); }
.spot-card:hover, .spot-card.hl { background: #fafaf7; }
.spot-card h3 { margin: 0 0 2px; font-size: 16px; line-height: 1.45; color: var(--ink); }
.spot-card .meta { font-size: 13px; color: var(--sub); }
.spot-card .dist { float: right; font-weight: 700; color: var(--accent-dk); font-size: 14px; margin-left: 8px; }
.spot-card .tags { margin-top: 6px; }
.spot-card .next { font-size: 12.5px; margin-top: 4px; color: #6d5600; }

/* ---------- 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: #fafaf7; }
.tour:last-child { border-bottom: 0; }
.tour .d { text-align: center; line-height: 1.2; border-radius: 10px; background: var(--brand-lt); padding: 7px 0; color: var(--ink); 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,10,12,.55); 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: #f1f1ef; 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-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(--park); border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.35); position: relative; }
.pin.shop { background: var(--shop); border-radius: 50% 50% 50% 0; }
.pin.u { opacity: .55; }
.pin.e::after { content: ""; position: absolute; right: -4px; top: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--ev); border: 2px solid #fff; }
.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); }
.gcl { border-radius: 50%; background: rgba(23,25,29,.88); color: #fff; font-weight: 700; font-size: 13px; text-align: center; box-shadow: 0 0 0 5px rgba(255,90,31,.35); }
.marker-cluster-small, .marker-cluster-medium, .marker-cluster-large { background-color: rgba(255,90,31,.3) !important; }
.marker-cluster-small div, .marker-cluster-medium div, .marker-cluster-large div { background-color: rgba(23,25,29,.88) !important; color: #fff !important; font-weight: 700; }

/* 公式サイト・SNS のボタン */
.lk { font-weight: 700; }
.lk-hp { border-color: var(--brand); color: var(--brand); }
.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-tiktok { border-color: #bfe3e4; color: #0f6b6e; }
.lk-other { color: var(--sub); }
