/* 色・余白の決まり（2026-11-12 改：背景は白、カードで囲まず余白と細い線 #E2E6E9 で区切る（Airbnb の検索画面のように）。
   ごく薄いグレー #F7F8FA は要点の面・なぞったとき・補助の部分だけ／メイン：コーラル #C64C55 はロゴ・選んだ条件・主要ボタンに絞る（2026-11-12 に深緑から変更）／
   深緑 #216B58 は「営業中」など意味のある緑（--ok）と、動物病院の色（--vet）にだけ残す／
   トリミング #B5694E・ホテル #4D6690（深緑と同じくらい落ち着いた色調）／文字 #222C2B／
   角丸 12px（カード）・999px（チップ）／余白 8・12・16・24／サイドバー 380px） */
:root {
  --paper: #ffffff;   /* 左のパネルの背景（白） */
  --soft: #f7f8fa;    /* ごく薄いグレーの面（詳細の要点・一覧でなぞったとき） */
  --paper-2: #eef1f4; /* 少し濃い面（種類の切り替えの溝・今日の列・引用の地） */
  --card: #ffffff;
  --ink: #222c2b;
  --muted: #5f6a70; /* 補足の文字（町名・注記）。背景が寒色になったので少し青みに（背景との比 5.23）。薄い色（--line-2）は線や背景だけに使う */
  --sel: #fbe9ea;   /* 選んでいるタブの背景（淡いコーラル） */
  --line: #e2e6e9;
  --line-2: #cdd4d9;
  --vet: #216b58;
  --vet-soft: #e5f0eb; /* やさしいミント（病院のタグ） */
  --salon: #b5694e; /* トリミング（落ち着いたテラコッタ。白い記号との比 4.12） */
  --salon-ink: #94513a; /* 小さいオレンジの文字（α版・日曜の見出し。ピーチ地で 4.8） */
  --salon-soft: #f6e2d8; /* 淡いピーチ（トリミングのタグ・α版の印） */
  --hotel: #4d6690; /* ホテル（落ち着いた藍） */
  --hotel-soft: #e6ebf2;
  --brand: #c64c55;      /* コーラル：ロゴ・主要ボタン・選んでいる状態（白い文字との比 4.6） */
  --brand-ink: #a83a43;  /* コーラルの文字（文字だけのリンク・淡いコーラルの地の上。白地で 6.4、淡い地で 5.4） */
  --brand-soft: #fbe9ea; /* 淡いコーラル（選んだ条件のチップ） */
  --on-brand: #ffffff;   /* コーラルの地の上の文字 */
  --ok: #216b58;         /* 「営業中」・送れた などの意味のある緑（ブランドの色と分ける） */
  --accent: #c64c55;
  --warn: #9e6812;
  --r-card: 16px; /* カード・枠の角丸（2026-11-12 に12→16で柔らかく） */
  --font-round: "Zen Maru Gothic", "Noto Sans JP", system-ui, sans-serif; /* サイト名・見出しだけの丸い書体。施設名・時間・本文は Noto Sans JP のまま */
  --r-chip: 999px;
  --lift: 0 1px 2px rgba(31, 42, 48, .05); /* 触れるもの（検索欄・ボタン）のごく弱い浮き（2026-11-12 に弱めた。一覧がフラットなので） */
  --search-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='%235f6a70' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='m15.5 15.5 5 5'/%3E%3C/g%3E%3C/svg%3E");
  --shadow: 0 1px 2px rgba(34, 44, 43, .06), 0 2px 8px rgba(34, 44, 43, .05);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #161a19; --soft: #1c2120; --paper-2: #1e2322; --card: #222927; --ink: #e8ece9; --muted: #a6aeaa; --sel: #3b2427; --line: #313936; --line-2: #3f4844;
    --vet: #5fb39d; --vet-soft: #1f3a32; --salon: #dc9274; --salon-ink: #e8a487; --salon-soft: #45291f; --hotel: #93a6cc; --hotel-soft: #262e45;
    --brand: #e8848b; --brand-ink: #f0a3a9; --brand-soft: #3b2427; --on-brand: #2a1214; --ok: #5fb39d;
    --accent: #e8848b; --warn: #d9a956; --shadow: none; --search-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='%23a6aeaa' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='m15.5 15.5 5 5'/%3E%3C/g%3E%3C/svg%3E"); --lift: none;
  }
}
:root[data-theme="dark"] {
  --paper: #161a19; --soft: #1c2120; --paper-2: #1e2322; --card: #222927; --ink: #e8ece9; --muted: #a6aeaa; --sel: #3b2427; --line: #313936; --line-2: #3f4844;
  --vet: #5fb39d; --vet-soft: #1f3a32; --salon: #dc9274; --salon-ink: #e8a487; --salon-soft: #45291f; --hotel: #93a6cc; --hotel-soft: #262e45;
    --brand: #e8848b; --brand-ink: #f0a3a9; --brand-soft: #3b2427; --on-brand: #2a1214; --ok: #5fb39d;
  --accent: #e8848b; --warn: #d9a956; --shadow: none; --search-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='%23a6aeaa' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='m15.5 15.5 5 5'/%3E%3C/g%3E%3C/svg%3E"); --lift: none;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: "Inter", "Noto Sans JP", system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  display: grid;
  grid-template-columns: 380px 1fr;
  height: 100vh;
}
button, select, input, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---- サイドバー ---- */
aside { display: flex; flex-direction: column; min-height: 0; border-right: 1px solid var(--line); position: relative; background: var(--paper); }
header { padding: 20px 20px 12px; display: grid; gap: 12px; }
h1 { font-family: var(--font-round); font-size: 21px; font-weight: 700; margin: 0; letter-spacing: .04em; display: flex; align-items: center; gap: 8px; }
/* サービス名（しっぽマップ）とエリア版の名前。エリア版は名前の文字の頭にそろえる（ロゴの幅＋すき間ぶん下げる） */
.brand { display: grid; gap: 2px; }
.edition { margin: 0 0 0 56px; font-size: 12px; color: var(--muted); letter-spacing: .04em; }
/* 犬猫のロゴ・絵（もらった6案から切り出した PNG を mask にして、色はコーラルの変数で塗る＝ダークモードでも同じ考え方で色が変わる） */
.logo, .emptyArt {
  display: inline-block; flex: none; background: var(--brand);
  -webkit-mask: var(--art) center / contain no-repeat; mask: var(--art) center / contain no-repeat;
}
.logo { --art: url("img/logo.png"); width: 50px; height: 26px; margin-right: -2px; }
.emptyArt { --art: url("img/walk.png"); display: block; width: 150px; height: 78px; margin: 4px auto 10px; opacity: .9; }
.emptyLead { margin: 0 0 8px; text-align: center; font-family: var(--font-round); font-weight: 700; color: var(--ink); font-size: 15px; }
/* ロゴの文字：「しっぽ」はコーラル、「マップ」は墨。最後にしっぽのはねを小さく（「しっぽ」と同じコーラル） */
.wm { display: inline-flex; align-items: baseline; letter-spacing: .01em; }
.wm1 { color: var(--brand); }
.wm2 { color: var(--ink); }
.wm .tail { width: 13px; height: 13px; color: var(--brand); margin-left: 1px; align-self: flex-start; transform: translateY(-1px); }
/* α版の印（試験公開中）。押すと「このサイトについて」の説明へ */
.beta {
  font-size: 11px; font-weight: 700; letter-spacing: .04em; line-height: 1; padding: 4px 8px; border-radius: var(--r-chip);
  color: var(--salon-ink); background: var(--salon-soft); text-decoration: none; flex: none;
}
.beta:hover { filter: brightness(.97); }
/* 検索欄：丸い長方形に虫めがねを入れ、少し浮かせる。選ぶとコーラルの淡い輪 */
input[type="search"] {
  width: 100%; height: 44px; padding: 0 16px 0 42px; border: 1px solid var(--line); border-radius: var(--r-chip);
  background: var(--card) var(--search-ico) no-repeat 15px 50% / 17px 17px; box-shadow: var(--lift); transition: border-color .15s, box-shadow .15s;
}
input[type="search"]:hover { border-color: var(--line-2); }
input[type="search"]:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 16%, transparent); }
input[type="search"]::placeholder { color: var(--muted); }

.seg { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--paper-2); border-radius: var(--r-chip); padding: 3px; }
.seg button {
  border: 0; background: none; border-radius: var(--r-chip); padding: 7px 2px; cursor: pointer; color: var(--muted); font-size: 13px; white-space: nowrap;
  display: inline-flex; align-items: center; justify-content: center; gap: 3px; min-width: 0;
}
/* 種類の記号。選んでいるときは文字と同じ深緑になる */
.seg .ico { width: 15px; height: 15px; flex: none; }
/* 選んでいる種類は薄緑の背景に深緑の太字（白＋影だと選んでいるのが分かりにくかった） */
.seg button[aria-pressed="true"] { background: var(--sel); color: var(--brand-ink); font-weight: 700; }

.tools { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--card);
  border-radius: var(--r-chip); padding: 7px 14px; cursor: pointer; font-size: 13px; box-shadow: var(--lift); transition: transform .08s, border-color .15s;
}
.pill:hover { border-color: var(--line-2); }
.pill[aria-expanded="true"] { border-color: var(--ink); }
.pill[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: var(--on-brand); font-weight: 600; }
/* エリア・絞り込みで何か選んでいるときは、ボタンの線と文字をメインの色にする */
.pill.has { border-color: var(--brand); color: var(--brand-ink); font-weight: 600; }
.pill .caret { width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); opacity: .6; }
.pill[aria-expanded="true"] .caret { transform: rotate(225deg) translate(-1px, -1px); }
.badge { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--brand); color: var(--on-brand); font-size: 11px; font-weight: 600; display: inline-grid; place-items: center; }

.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); padding: 12px; display: grid; gap: 10px; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.lab { font-size: 12px; color: var(--muted); flex: none; }
.chip { border: 1px solid var(--line); background: var(--card); border-radius: var(--r-chip); padding: 5px 12px; cursor: pointer; font-size: 13px; }
.chip:hover { border-color: var(--line-2); }
.chip[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.row.breed select { border: 1px solid var(--line); background: var(--card); border-radius: 8px; padding: 6px 8px; min-width: 0; flex: 1; max-width: 260px; }
.hint { margin: 0; font-size: 12px; color: var(--muted); }

/* 選んでいる条件（「武蔵境 ×」。押すとその条件だけはずれる） */
.active { display: flex; flex-wrap: wrap; gap: 6px; }
.achip {
  display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--brand); background: var(--brand-soft); color: var(--ink);
  border-radius: var(--r-chip); padding: 3px 8px 3px 12px; font-size: 12.5px; cursor: pointer;
}
.achip .x { font-size: 15px; line-height: 1; color: var(--muted); }
.achip:hover .x { color: var(--ink); }

/* スマホの「リスト」「地図」の切り替え（パソコンでは使わない） */
.viewtoggle { display: none; }
.mobonly { display: none; }

.count { display: flex; align-items: center; justify-content: space-between; padding: 8px 20px; font-size: 12.5px; color: var(--muted); border-top: 1px solid var(--line); }
.count .clear { border: 0; background: none; color: var(--brand-ink); cursor: pointer; font-size: 12.5px; padding: 2px 0; }

/* ---- 一覧のカード ---- */
#list { overflow-y: auto; flex: 1; min-height: 0; padding: 0 20px 16px; display: grid; gap: 0; align-content: start; }
.card {
  display: grid; gap: 6px; width: 100%; text-align: left; cursor: pointer;
  background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 16px 2px;
  transition: background-color .12s;
}
/* 一覧は枠で囲まない：なぞると薄いグレーの地、選んだ施設は左端に深緑の線 */
.card:hover { background: var(--soft); }
.card.on { background: var(--soft); box-shadow: inset 3px 0 0 var(--brand); }
.cname { font-size: 16px; font-weight: 700; line-height: 1.4; unicode-bidi: isolate; overflow-wrap: anywhere; }
.cmeta { display: flex; flex-wrap: wrap; align-items: center; gap: 0 6px; font-size: 12.5px; color: var(--muted); margin: 0; }
.cmeta .also { color: var(--muted); }
.cmeta .sep { opacity: .6; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; flex: none; margin-right: 2px; }
.dot.vet { background: var(--vet); }
.dot.salon { background: var(--salon); }
.dot.hotel { background: var(--hotel); }
.cnow { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.ctime { font-size: 12.5px; font-variant-numeric: tabular-nums; }
.tags, .chips { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: 12px; padding: 2px 10px; border-radius: var(--r-chip); background: var(--vet-soft); color: var(--ink); white-space: nowrap; }
.tag.s { background: var(--salon-soft); }
.tag.h { background: var(--hotel-soft); }
.tag.warn { background: transparent; border: 1px solid var(--warn); color: var(--warn); }
.tag.no { background: transparent; border: 1px dashed var(--line-2); color: var(--muted); }
/* 一覧のカードのタグは囲みだけにして控えめに（施設名と時間が先に目に入るように）。詳細のタグは淡い塗りのまま */
.card .tag { background: transparent; border: 1px solid color-mix(in srgb, var(--vet) 32%, transparent); color: var(--ink); font-size: 11.5px; padding: 1px 9px; }
.card .tag.s { border-color: color-mix(in srgb, var(--salon) 38%, transparent); }
.card .tag.h { border-color: color-mix(in srgb, var(--hotel) 38%, transparent); }
.more { font-size: 12px; color: var(--muted); align-self: center; }
/* カードの料金（タグの前に1つだけ） */
.price { font-size: 12.5px; font-weight: 700; color: var(--ink); align-self: center; margin-right: 2px; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* 詳細の料金・利用するときの条件 */
.plist { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0; font-size: 13.5px; align-items: baseline; }
.plist dt { color: var(--muted); font-size: 12.5px; white-space: nowrap; }
.plist dd { margin: 0; display: grid; gap: 2px; font-variant-numeric: tabular-nums; }
.plist .basis { font-size: 12px; color: var(--muted); line-height: 1.5; overflow-wrap: anywhere; }
.warnnote { color: var(--warn); }
.cgroup + .cgroup { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.cgroup h4 { margin: 0 0 6px; font-size: 13px; font-weight: 700; }
.plabel { margin: 8px 0 4px; font-size: 12px; color: var(--muted); font-weight: 600; }
.cgroup h4 + .plabel { margin-top: 2px; }
.qlist { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 13px; line-height: 1.6; }
.qlist .what { display: inline-block; font-size: 11px; color: var(--muted); border: 1px solid var(--line-2); border-radius: 4px; padding: 0 5px; margin-right: 6px; vertical-align: 1px; }
.cfoot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 2px; }
.neg { font-size: 12px; color: var(--muted); }
.go { font-size: 12.5px; color: var(--brand-ink); font-weight: 500; white-space: nowrap; }
.empty { padding: 20px 4px; color: var(--muted); line-height: 1.8; }
.empty p { margin: 0 0 12px; }
.eacts { display: flex; flex-wrap: wrap; gap: 8px; }
.eacts .linkbtn { color: var(--ink); }
/* 時間・特徴が分からないときの行（行は残して、薄い文字で理由を書く） */
.unk { font-size: 12.5px; color: var(--muted); }
/* 公式サイトの時間の記載（原文）。長いときは1行で切る */
.card { grid-template-columns: minmax(0, 1fr); }
.cnow { min-width: 0; }
.htext { display: block; flex: 1 1 100%; min-width: 0; max-width: 100%; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hlab { font-size: 11px; color: var(--muted); border: 1px solid var(--line-2); border-radius: 4px; padding: 0 5px; margin-right: 6px; }
.hquote { margin: 0; font-size: 13.5px; line-height: 1.6; padding: 8px 12px; background: var(--paper-2); border-radius: 8px; }
.qhint { margin: 0; padding: 8px 12px; font-size: 12.5px; line-height: 1.6; color: var(--ink); background: var(--paper-2); border-radius: 8px; }

/* いま開いてる（受付中は塗り、それ以外は線だけ） */
.st { font-size: 12px; padding: 2px 10px; border-radius: var(--r-chip); white-space: nowrap; font-weight: 600; }
.st.open, .st.after { background: var(--ok); color: #fff; } /* 「営業中」は意味のある緑のまま（ブランドのコーラルにしない） */
.st.later, .st.ended, .st.closed { color: var(--muted); border: 1px solid var(--line-2); font-weight: 500; }
.nowNote { flex-basis: 100%; font-size: 11.5px; color: var(--muted); }

/* ---- 詳細 ---- */
#detail { position: absolute; inset: 0; background: var(--paper); overflow-y: auto; z-index: 5; }
#detail:focus { outline: none; }
.dhead { position: sticky; top: 0; background: var(--paper); padding: 12px 20px 4px; z-index: 2; }
.back { border: 0; background: none; padding: 4px 0; cursor: pointer; color: var(--muted); font-size: 13px; }
.back:hover { color: var(--ink); }
.fv { padding: 4px 20px 16px; display: grid; gap: 8px; border-bottom: 1px solid var(--line); }
.dname { font-size: 21px; font-weight: 700; margin: 0; line-height: 1.4; unicode-bidi: isolate; }
.dnow { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.dnow:empty { display: none; }
.acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.act { border: 1px solid var(--line); background: var(--card); border-radius: var(--r-chip); padding: 9px 18px; font-size: 13px; font-weight: 500; color: var(--ink); text-decoration: none;
  box-shadow: var(--lift); transition: transform .08s, filter .15s; }
.act:hover { border-color: var(--line-2); }
.act.primary { background: var(--brand); border-color: var(--brand); color: var(--on-brand); font-weight: 700; box-shadow: 0 1px 2px color-mix(in srgb, var(--brand) 22%, transparent); }
.act.primary:hover { filter: brightness(1.08); }
.dbody { padding: 16px 20px 24px; display: grid; gap: 12px; }
.block { background: var(--soft); border: 1px solid transparent; border-radius: var(--r-card); padding: 14px 16px; }
/* 要点（特徴・料金）は枠線なしの薄いグレーの面。Google のクチコミは「ほかの情報と枠で分ける」要件があるので白地に線の枠 */
.block.gbox { background: var(--card); border-color: var(--line); }
/* 情報の役割で見せ方を分ける：要点（特徴・料金・クチコミ）は白い枠、基本情報・時間・条件は背景に直接置いて細い線で区切る */
.block.plain { background: transparent; border: 0; border-top: 1px solid var(--line); border-radius: 0; padding: 14px 2px 2px; }
.block.plain + .block.plain { margin-top: -4px; }
.block h3 { font-family: var(--font-round); font-size: 13px; color: var(--muted); font-weight: 700; margin: 0 0 10px; letter-spacing: .06em; }
.cond { margin: 0 0 10px; padding: 8px 12px; border-left: 3px solid var(--warn); background: var(--paper-2); border-radius: 0 8px 8px 0; font-size: 13px; }
.cond b { display: block; font-size: 11.5px; color: var(--warn); }
details.evidence { margin-top: 10px; }
details summary { cursor: pointer; color: var(--brand-ink); font-size: 12.5px; }
details.evidence ul { margin: 8px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
details.evidence li { font-size: 12.5px; line-height: 1.6; }
details.evidence li b { display: block; font-size: 11.5px; color: var(--muted); font-weight: 600; }
details.fold summary { color: var(--ink); font-size: 13px; }
details.fold .breeds { margin-top: 10px; }
.info { display: grid; grid-template-columns: 56px 1fr; gap: 8px 10px; margin: 0; font-size: 13.5px; }
.info dt { color: var(--muted); font-size: 12.5px; }
.info dd { margin: 0; overflow-wrap: anywhere; unicode-bidi: isolate; }
.info a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line-2); }
.copy { margin-left: 8px; border: 1px solid var(--line); background: var(--paper); border-radius: var(--r-chip); padding: 1px 10px; font-size: 11.5px; cursor: pointer; color: var(--muted); }
.copy:hover { color: var(--ink); border-color: var(--line-2); }

table.hours { border-collapse: collapse; width: 100%; font-size: 12.5px; table-layout: fixed; font-variant-numeric: tabular-nums; }
table.hours th, table.hours td { border-bottom: 1px solid var(--line); padding: 6px 2px; text-align: center; }
table.hours th:first-child, table.hours td:first-child { text-align: left; width: 34%; padding-left: 0; }
table.hours thead th { color: var(--muted); font-weight: 500; }
table.hours thead th.sun { color: var(--salon-ink); }
table.hours td.on { color: var(--ok); font-weight: 700; }
table.hours td.off { color: var(--line-2); }
table.hours th.today, table.hours td.today { background: var(--paper-2); }
table.hours thead th.today { color: var(--ink); font-weight: 700; }
table.hours .lbl { display: block; font-size: 11px; color: var(--muted); }
.hnote { font-size: 12.5px; margin: 8px 0 0; line-height: 1.7; }
.breeds { display: flex; flex-wrap: wrap; gap: 4px; }
.breeds span { font-size: 12px; border: 1px solid var(--line); border-radius: 6px; padding: 1px 7px; background: var(--paper); }
.notice { border-left: 3px solid var(--warn); background: var(--card); padding: 10px 14px; border-radius: 0 var(--r-card) var(--r-card) 0; }
.notice p { margin: 0; font-size: 13.5px; font-weight: 700; }

/* Google マップの★・口コミ（ほかの情報と枠で分ける：Google の帰属表示の要件） */
.gbox gmp-place-details-compact, .gbox gmp-place-details { width: 100%; color-scheme: light dark; }
.gbox .linkbtn { margin-top: 8px; }
/* クチコミは最初の1〜2件が見える高さにして、続きは枠の中でスクロール（Google マップの表記は隠さない） */
.gscroll { max-height: 440px; overflow-y: auto; overscroll-behavior: contain; border-radius: 10px; margin-top: 8px; }

.block.foot { background: transparent; border: 0; padding: 4px 0 0; display: grid; gap: 8px; }
.sources, .reg { font-size: 12px; color: var(--muted); margin: 0; line-height: 1.8; }
.sources a, .reg a { color: inherit; }
.linkbtn { justify-self: start; border: 1px solid var(--line); background: var(--card); border-radius: var(--r-chip); padding: 8px 16px; cursor: pointer; font-size: 13px;
  box-shadow: var(--lift); transition: transform .08s; }
.linkbtn:hover { border-color: var(--line-2); }

/* 左下は出典を1行に短く、リンク2つを並べるだけ（詳しい説明は「このサイトについて」）。一覧の表示範囲を広くとる */
footer { padding: 8px 20px 9px; border-top: 1px solid var(--line); font-size: 11px; color: var(--muted); line-height: 1.6; }
.fsrc { margin: 0; }
.flinks { display: flex; flex-wrap: wrap; gap: 2px 14px; margin: 2px 0 0; }
.flinks a, .flinks button { border: 0; background: none; padding: 0; font: inherit; color: var(--ink); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
/* フッターの右上で眠っている犬と猫（小さな遊び。飾りなので読み上げない） */
.napArt { --art: url("img/nap.png"); float: right; width: 48px; height: 20px; margin: 1px 0 0 10px; background: var(--brand); /* ロゴと同じ色・同じ太さのシルエット */
  -webkit-mask: var(--art) center / contain no-repeat; mask: var(--art) center / contain no-repeat; }
footer a { color: inherit; }

/* ---- 地図 ---- */
#mapWrap { position: relative; display: flex; min-width: 0; min-height: 0; }
/* z-index で重なりの層を閉じる（地理院地図の部品の z-index が凡例より上に出ないように） */
#map { flex: 1; min-width: 0; min-height: 0; background: var(--paper-2); z-index: 0; }
/* 凡例は左上、「検索結果の全体を見る」は右上。下は Google のロゴと規約の表示があるので置かない。幅が足りなければボタンは次の行へ */
.mapui {
  position: absolute; top: 12px; left: 12px; right: 12px; z-index: 1; pointer-events: none;
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 8px;
}
.legend {
  display: flex; flex-wrap: wrap; gap: 4px 12px; padding: 6px 12px; border-radius: 10px; font-size: 12px;
  background: color-mix(in srgb, var(--card) 92%, transparent); box-shadow: 0 1px 4px rgba(0, 0, 0, .18);
}
.legend span { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
/* 凡例の印は地図の印と同じ形（色の丸＋白い記号）。記号は map.js の PetMapIcons を app.js が入れる */
.legend .pin {
  width: 19px; height: 19px; border-radius: 50%; box-sizing: border-box; display: inline-grid; place-items: center; flex: none;
  border: 1.5px solid #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .12);
}
.legend .pin svg { width: 11px; height: 11px; display: block; }
.legend .pin.ring { border: 3px solid var(--salon); }
.legend .pin.ring svg { width: 8px; height: 8px; }
.pin.vet { background: var(--vet); }
.pin.salon { background: var(--salon); }
.pin.hotel { background: var(--hotel); }
.fitall {
  pointer-events: auto; border: 1px solid var(--line); background: var(--card); color: var(--ink); border-radius: var(--r-chip);
  padding: 7px 14px; font-size: 12.5px; font-weight: 500; cursor: pointer; box-shadow: 0 1px 4px rgba(0, 0, 0, .18);
}
.fitall:hover { border-color: var(--line-2); }
/* 地理院地図でまとめた丸（Google マップの丸と同じ見た目） */
.lclu { border-radius: 50%; background: var(--brand); color: var(--on-brand); border: 3px solid #fff; box-sizing: border-box; box-shadow: 0 2px 6px rgba(0, 0, 0, .35);
  display: grid; place-items: center; font: 700 13px/1 Inter, "Noto Sans JP", sans-serif; transition: transform .12s; }
.lclu.hot { transform: scale(1.12); border-color: var(--ink); }
/* 凡例の「まとめた数」 */
.legend .pin.clu { background: var(--brand); color: var(--on-brand); font: 700 10px/1 Inter, sans-serif; }
.leaflet-container, .leaflet-tooltip { font-family: "Inter", "Noto Sans JP", system-ui, sans-serif; }
.leaflet-tooltip { font-size: 12.5px; unicode-bidi: isolate; }

/* ---- 修正依頼 ---- */
dialog#fix {
  border: 0; border-radius: 14px; padding: 0; width: min(520px, calc(100vw - 32px)); max-height: calc(100dvh - 32px);
  background: var(--card); color: var(--ink); box-shadow: 0 12px 40px rgba(0, 0, 0, .25);
}
dialog#fix::backdrop { background: rgba(22, 26, 25, .45); }
#fixForm { padding: 20px 22px 18px; display: grid; gap: 14px; overflow-y: auto; }
#fixForm h2 { font-family: var(--font-round); font-size: 17px; margin: 0; }
.fixFor { margin: -8px 0 0; color: var(--muted); font-size: 13px; }
fieldset { border: 0; padding: 0; margin: 0; }
legend { font-size: 13px; font-weight: 700; padding: 0; margin-bottom: 6px; }
.opts { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13.5px; }
.opts label { display: inline-flex; align-items: center; gap: 5px; cursor: pointer; }
.f { display: grid; gap: 6px; font-size: 13px; font-weight: 700; }
.f textarea, .f input { font-weight: 400; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; background: var(--paper); width: 100%; }
.req { font-size: 11px; color: var(--salon-ink); margin-left: 6px; font-weight: 500; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.fixMsg { margin: 0; font-size: 13px; min-height: 1.2em; }
.fixMsg.err { color: var(--salon-ink); }
.fixMsg.ok { color: var(--ok); }
.fixBtns { display: flex; justify-content: flex-end; gap: 10px; }
.fixBtns button { border-radius: var(--r-chip); padding: 8px 18px; cursor: pointer; border: 1px solid var(--line); background: var(--card); }
.fixBtns .primary { background: var(--brand); color: var(--on-brand); border-color: var(--brand); font-weight: 700; box-shadow: 0 1px 2px color-mix(in srgb, var(--brand) 22%, transparent); }
/* 押したときに少し沈む（触った手ごたえ） */
.pill:active, .act:active, .linkbtn:active, .fitall:active, .fixBtns button:active, .chip:active { transform: translateY(1px); }
.fixBtns .primary:disabled { opacity: .5; cursor: default; }

/* ---- スマホ ---- */
/* 検索・種類・絞り込みをいちばん上に置き、その下を「リスト」か「地図」に切り替える（下の真ん中のボタン）。詳細は全画面 */
@media (max-width: 767px) {
  body { display: flex; flex-direction: column; height: 100dvh; }
  aside { flex: 1 1 auto; min-height: 0; overflow-y: auto; border-right: 0; position: static; padding-bottom: 76px; }
  #list { overflow: visible; flex: none; padding: 0 16px 16px; }
  #mapWrap { display: none; }
  /* 地図を見ているとき：上の検索と件数だけ残し、残りの高さを地図に。絞り込みを開いて上が伸びたら上だけスクロール */
  body[data-view="map"] aside { flex: 0 1 auto; max-height: 62dvh; padding-bottom: 0; }
  body[data-view="map"] #list, body[data-view="map"] footer { display: none; }
  body[data-view="map"] #mapWrap { display: flex; flex: 1 1 0; min-height: 240px; border-top: 1px solid var(--line); }
  #detail { position: fixed; inset: 0; z-index: 1000; }
  header { padding: 12px 16px 10px; gap: 10px; }
  h1 { font-size: 17px; }
  .count, footer, .dhead, .fv, .dbody { padding-left: 16px; padding-right: 16px; }
  .mobonly { display: inline-flex; align-items: center; cursor: pointer; }
  .mapui { top: 8px; left: 8px; right: 8px; }
  .legend { font-size: 11.5px; gap: 2px 10px; padding: 5px 10px; }
  .viewtoggle {
    display: flex; position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(30px + env(safe-area-inset-bottom)); z-index: 900;
    background: var(--ink); border-radius: var(--r-chip); padding: 4px; box-shadow: 0 4px 14px rgba(0, 0, 0, .28);
  }
  .viewtoggle button {
    border: 0; background: none; color: var(--paper); border-radius: var(--r-chip); padding: 8px 20px; font-size: 13.5px; font-weight: 600; cursor: pointer; opacity: .75;
  }
  .viewtoggle button[aria-pressed="true"] { background: var(--paper); color: var(--ink); opacity: 1; }
}
