/* ドッグランマップ 共通スタイル（芝の緑 × オレンジ。料金の区分＝無料:緑／条件つき無料:黄／有料:青） */

:root {
  --brand: #1f4d33;
  --brand-dk: #143523;
  --brand-lt: #edf3ee;
  --accent: #e8731a;
  --accent-dk: #b9540c;
  --accent-lt: #fdf0e3;
  /* 料金の区分 */
  --free: #1c8a43;
  --cond: #f2b619;
  --paid: #3558b8;
  --unk: #8b9097;
  --er: #d02b2b;
  --food: #d6457a;
  /* 種類 */
  --park: #2f8f4e;
  --facility: #b9540c;
  --sapa: #2b6cb0;
  --cafe: #9a4b86;
  --stay: #0f8a8a;
  --ev: #e0a800;
  --ink: #1d2a22;
  --sub: #5d6860;
  --line: #e1e4dc;
  --bg: #f5f6f1;
  --card: #fff;
  --red: #c7362b;
  --blue: #2557c6;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(0,0,0,.05), 0 4px 14px rgba(30,50,35,.06);
  --display: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "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: 900; font-size: 18px; letter-spacing: .03em; }
.logo small { display: block; font-size: 10.5px; opacity: .7; margin-top: 2px; }
/* ロゴ：肉球（SVG） */
.logo-mark { width: 36px; height: 36px; flex-shrink: 0; border-radius: 10px; box-shadow: 0 0 0 2px rgba(255,255,255,.25); }
.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; }
.gnav a[data-er] { color: #ffb4b0; font-weight: 700; }
.gnav a[data-er].on { background: var(--er); color: #fff; }
.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: 1160px) {
  .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-size: 10.5px; font-weight: 700; letter-spacing: .04em; padding: 1px 7px; border-radius: 4px; color: #fff; vertical-align: 2px; margin-right: 6px; white-space: nowrap; }
.tb-park { background: var(--park); }
.tb-facility { background: var(--facility); }
.tb-sapa { background: var(--sapa); }
.tb-cafe { background: var(--cafe); }
.tb-stay { background: var(--stay); }
.tb-er { background: var(--er); }
.tb-food { background: var(--food); }
.tb-pr { background: #b8860b; }
.ad-slot { margin: 16px 0; }
.ad-slot:empty { margin: 0; }
.pr-box { margin: 14px 0 0; }
.pr-box h2 { font-size: 15px; margin: 0 0 6px; color: #8a6508; }
.b-breed { background: #fff0d9; color: #8a4a12; }
.b-fes { background: #eaf6e4; color: #2f6b1c; }
.b-class { background: #e6edfc; color: #22469a; }
.b-adopt { background: #fde5e2; color: #9d2a1f; }
.b-sports { background: #f0e8fb; color: #5a3591; }
.b-limited { background: #fff6cc; color: #6d5600; }
.badge.b-breed:first-child, .badge.b-fes:first-child { font-weight: 700; }
.b-other { background: #eeeeeb; color: #3b3e43; }
.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(232,115,26,.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.facility { border-left-color: var(--facility); }
.spot-card.sapa { border-left-color: var(--sapa); }
.spot-card.cafe { border-left-color: var(--cafe); }
.spot-card.stay { border-left-color: var(--stay); }
.spot-card.er { border-left-color: var(--er); }
.spot-card.food { border-left-color: var(--food); }
.spot-card .price { font-size: 13.5px; font-weight: 700; color: #2c3a30; margin-top: 2px; }
.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; }
/* 印の色＝料金の区分。中の文字（無・条・有・?・＋）は data-l */
.pin { width: 26px; height: 26px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--unk); border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.35); position: relative; }
.pin::before { content: attr(data-l); position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; transform: rotate(45deg); color: #fff; font-size: 11.5px; font-weight: 800; line-height: 1; }
.pin.free { background: var(--free); }
.pin.cond { background: var(--cond); }
.pin.cond::before { color: #3d2c00; }
.pin.paid { background: var(--paid); }
.pin.unk { background: var(--unk); }
.pin.er { background: var(--er); border-radius: 50%; }
.pin.er::before { font-size: 15px; }
.pin.food { background: var(--food); border-radius: 50%; }
/* 未確認の料金情報（「無料？」）：斜めのしま模様 */
.pin.hint { background-image: repeating-linear-gradient(90deg, rgba(255,255,255,.45) 0 3px, transparent 3px 7px); }
.pin.u { opacity: .7; }
.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(31,77,51,.92); color: #fff; font-weight: 700; font-size: 13px; text-align: center; box-shadow: 0 0 0 5px rgba(232,115,26,.35); }
.marker-cluster-small, .marker-cluster-medium, .marker-cluster-large { background-color: rgba(232,115,26,.3) !important; }
.marker-cluster-small div, .marker-cluster-medium div, .marker-cluster-large div { background-color: rgba(31,77,51,.92) !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); }

/* ---------- 横はみ出し防止（ビリヤードマップと同じ対策・2026-10-06） ----------
   長いバッジ(white-space:nowrap)が大会行(.tour)やトップの2段組(.cols)を画面より広げ、
   ページ全体が横にスクロールしていたのを防ぐ */
.badge { max-width: 100%; white-space: normal !important; overflow-wrap: anywhere; }
.tour { grid-template-columns: 64px minmax(0, 1fr); }
.tour > div { min-width: 0; overflow-wrap: anywhere; }
.cols > * { min-width: 0; }
.card .pro { grid-template-columns: minmax(0, 1fr) auto; }
.pro > div { min-width: 0; overflow-wrap: anywhere; }
a.small { overflow-wrap: anywhere; }

/* ---------- 料金の区分（無料／条件つき無料／有料）の印 ---------- */
.fee { display: inline-block; font-size: 11.5px; font-weight: 800; line-height: 1.5; padding: 1px 9px; border-radius: 99px; color: #fff; margin-right: 6px; vertical-align: 2px; white-space: nowrap; letter-spacing: .02em; }
.fee-free { background: var(--free); }
.fee-cond { background: var(--cond); color: #3d2c00; }
.fee-paid { background: var(--paid); }
.fee-unk { background: #fff; color: #6b7178; box-shadow: inset 0 0 0 1px #c4c8cc; font-weight: 600; }
.fee-h24 { background: var(--er); }
.fee-yakan { background: #5b3a8c; }
.fee-food { background: var(--food); }
/* 未確認の料金情報（「無料？」）：白地に色の枠 */
.fee.hint { background: #fff; box-shadow: inset 0 0 0 1.5px currentColor; }
.fee-free.hint { color: var(--free); }
.fee-cond.hint { color: #8a6500; }
.fee-paid.hint { color: var(--paid); }
/* 施設ページの大きな料金の枠 */
.feebox { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-radius: var(--radius); margin: 0 0 16px; border: 2px solid var(--unk); background: #fff; }
.feebox b { flex-shrink: 0; font-family: var(--display); font-weight: 900; font-size: 20px; padding: 6px 16px; border-radius: 10px; color: #fff; background: var(--unk); white-space: nowrap; }
.feebox span { font-size: 14.5px; font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.feebox.fee-free { border-color: var(--free); background: #f0faf3; box-shadow: none; color: inherit; }
.feebox.fee-free b { background: var(--free); }
.feebox.fee-cond { border-color: var(--cond); background: #fffaea; color: inherit; }
.feebox.fee-cond b { background: var(--cond); color: #3d2c00; }
.feebox.fee-paid { border-color: var(--paid); background: #f1f4fc; color: inherit; }
.feebox.fee-paid b { background: var(--paid); }
.feebox.fee-unk { background: #fafafa; color: inherit; box-shadow: none; }
.feebox.fee-unk span { font-weight: 400; color: var(--sub); }
.feebox.fee-er { border-color: var(--er); background: #fff3f2; }
.feebox.fee-er b { background: var(--er); }
.feebox.hint { border-style: dashed; background: #fff; }
.feebox.hint b { background: #fff; box-shadow: inset 0 0 0 2px currentColor; }
.feebox.fee-free.hint b { color: var(--free); }
.feebox.fee-cond.hint b { color: #8a6500; }
.feebox.fee-paid.hint b { color: var(--paid); }
.feebox small { font-weight: 400; color: var(--sub); }
@media (max-width: 560px) { .feebox { flex-direction: column; align-items: flex-start; gap: 8px; } }
/* 料金の切り替えタブ（一覧ページ） */
.feetabs a.ft-free { border-color: var(--free); color: var(--free); }
.feetabs a.ft-free.on { background: var(--free); border-color: var(--free); color: #fff; }
.feetabs a.ft-cond { border-color: #d9a20f; color: #7a5a00; }
.feetabs a.ft-cond.on { background: var(--cond); border-color: var(--cond); color: #3d2c00; }
.feetabs a.ft-paid { border-color: var(--paid); color: var(--paid); }
.feetabs a.ft-paid.on { background: var(--paid); border-color: var(--paid); color: #fff; }
.btn-er { border-color: var(--er); color: var(--er); font-weight: 700; }
.btn-er:hover { background: #fff3f2; border-color: var(--er); }
.btn-food { border-color: var(--food); color: var(--food); font-weight: 700; }
.gnav a.on[href*="type=food"] { background: var(--food); }
/* SNS で探す */
.sns-search { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin: 0 0 16px; }
.sns-search .small { margin-right: 4px; }
/* イベントの検索フォーム */
.evsearch { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr auto; gap: 8px; padding: 12px; }
.evsearch input, .evsearch select { width: 100%; min-width: 0; min-height: 42px; padding: 8px 10px; border: 1px solid #d3d6cf; border-radius: 10px; background: #fff; }
@media (max-width: 860px) { .evsearch { grid-template-columns: 1fr 1fr; } .evsearch input { grid-column: 1 / -1; } .evsearch button { grid-column: 1 / -1; } }
.breedchips .chip small { opacity: .7; }
.tour .tags { margin-top: 4px; }
.tour .tags .fee { vertical-align: 0; }
