:root {
  --g: #1fa34a;
  --g-d: #14883a;
  --g-dd: #0f6b2d;
  --g-l: #e8f6ec;
  --g-ll: #f3faf5;
  --ink: #1b2a3d;
  --ink-2: #3a4656;
  --mut: #6b7684;
  --line: #e4e8ec;
  --chip: #eef1f3;
  --bg: #f4f6f5;
  --card: #fff;
  --warn: #9a6a00;
  --warn-bg: #fff7e0;
  --pr: #1fa34a;
  --shadow: 0 2px 10px rgba(20, 40, 30, .07);
  --r: 14px;
  --app-w: 600px;
  --tab-h: 64px;
  font-size: 16px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Noto Sans JP", "Hiragino Sans", "Yu Gothic UI", "Meiryo", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
img { display: block; max-width: 100%; }
svg { width: 1em; height: 1em; flex: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid rgba(31, 163, 74, .45); outline-offset: 2px; border-radius: 8px; }

.app {
  max-width: var(--app-w);
  margin: 0 auto;
  min-height: 100vh;
  background: #fff;
  position: relative;
  box-shadow: 0 0 40px rgba(0, 0, 0, .06);
}
.view { padding-bottom: calc(var(--tab-h) + 24px + env(safe-area-inset-bottom)); outline: none; }
.view.has-cta { padding-bottom: calc(var(--tab-h) + 110px + env(safe-area-inset-bottom)); }
.wrap { padding: 0 16px; }

/* ---------- header (home) ---------- */
.hd {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px 6px;
  position: relative; z-index: 2;
}
.logo {
  font-weight: 900; font-size: clamp(26px, 7.4vw, 38px); letter-spacing: .01em; line-height: 1.1;
  white-space: nowrap;
}
.logo .a { background: linear-gradient(180deg, #45c26a, #17913f); -webkit-background-clip: text; background-clip: text; color: transparent; }
.logo .b { color: var(--g-dd); font-size: .82em; }
.tagline { border-left: 1.5px solid #c9d3cc; padding-left: 10px; font-size: 11.5px; color: var(--ink-2); line-height: 1.5; }
.hd-icons { margin-left: auto; display: flex; gap: 14px; }
.hd-icons a, .hd-icons button { display: grid; justify-items: center; font-size: 11px; color: var(--ink-2); gap: 2px; text-shadow: 0 0 4px #fff, 0 0 2px #fff; }
.hd-icons svg { width: 28px; height: 28px; color: var(--ink); }
@media (max-width: 560px) { .tagline { display: none; } }

/* ---------- hero ---------- */
.hero {
  position: relative; margin-top: -64px; padding: 86px 16px 18px;
  background: linear-gradient(180deg, #eef8f0 0%, #fff 100%);
  overflow: hidden; min-height: 300px;
}
.hero-img {
  position: absolute; inset: 0 0 auto auto; width: 72%; height: 100%;
  object-fit: cover; object-position: 75% 20%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 38%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 38%);
}
.hero-body { position: relative; z-index: 1; max-width: 80%; }
.hero h1 { margin: 0; font-size: clamp(21px, 5.5vw, 34px); font-weight: 900; line-height: 1.35; color: var(--ink); }
.hero h1 em { font-style: normal; color: var(--g); }
.hero p { margin: 8px 0 0; color: var(--ink-2); font-size: clamp(13.5px, 3.6vw, 16px); }
.hero-hand {
  position: absolute; right: 18px; top: 168px; z-index: 1;
  font-family: "Klee One", cursive; color: var(--ink-2); font-size: clamp(15px, 4vw, 19px);
  transform: rotate(-9deg); line-height: 1.5; text-shadow: 0 0 8px #fff, 0 0 2px #fff;
}
.hero-hand::after { content: ""; display: block; height: 2px; margin-top: 2px; background: var(--g); border-radius: 2px; transform: rotate(2deg); opacity: .8; }

/* ---------- category tiles ---------- */
.cats { display: grid; gap: 10px; padding: 0 16px; position: relative; z-index: 2; margin-top: -4px; }
.cats-row { display: grid; gap: 10px; }
.cats-row.r3 { grid-template-columns: repeat(3, 1fr); }
.cats-row.r4 { grid-template-columns: repeat(4, 1fr); }
.cat {
  display: flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, .96);
  border-radius: 12px; box-shadow: var(--shadow); padding: 6px; min-height: 64px;
  font-weight: 700; font-size: 15px; transition: transform .15s;
}
.cat:hover { transform: translateY(-1px); }
.cat img { width: 44%; aspect-ratio: 1.25; object-fit: cover; border-radius: 8px; }
.cat span { flex: 1; min-width: 0; }
.cat svg { color: var(--ink-2); width: 14px; height: 14px; }
.r4 .cat { font-size: 13.5px; gap: 4px; }
.r4 .cat img { width: 48%; }
@media (max-width: 540px) { .cats-row.r4 { grid-template-columns: repeat(2, 1fr); } .r4 .cat { font-size: 14.5px; } }
@media (max-width: 430px) {
  .cat { font-size: 13.5px; }
  .r3 .cat { flex-direction: column; align-items: stretch; text-align: left; gap: 4px; }
  .r3 .cat img { width: 100%; aspect-ratio: 1.7; }
  .r3 .cat > svg { display: none; }
  .r3 .cat span { padding: 0 4px 2px; }
}
.cats-more { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 16px 0; }
.cats-more a { font-size: 13px; color: var(--g-d); background: var(--g-ll); border: 1px solid #cfe9d7; border-radius: 99px; padding: 5px 12px; font-weight: 500; }

/* ---------- section ---------- */
.sec { padding: 22px 16px 0; }
.sec-hd { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.sec-hd h2 { margin: 0; font-size: 20px; font-weight: 900; }
.sec-hd h2 b { font-weight: 900; }
.sec-hd h2 small { font-size: .85em; font-weight: 700; }
.sec-hd > svg { width: 26px; height: 26px; color: var(--g); }
.sec-hd .more { margin-left: auto; font-size: 13px; color: var(--ink-2); display: flex; align-items: center; gap: 2px; white-space: nowrap; }
.sec-hd .more svg { width: 14px; height: 14px; }
.sec-note { margin: -6px 0 12px; font-size: 12px; color: var(--mut); }

.area {
  margin: 20px 16px 0; background: var(--g-l); border-radius: 18px; padding: 14px;
}
.area .sec-hd { margin-bottom: 10px; }
.area .sec-hd h2 { font-size: 19px; }
.area-grid { display: grid; grid-template-columns: repeat(4, 1fr) 1.35fr; gap: 8px; }
.area-btn {
  background: #fff; border-radius: 10px; box-shadow: 0 1px 4px rgba(0,0,0,.06);
  min-height: 54px; display: grid; place-items: center; font-weight: 700; font-size: 17px;
}
.area-btn.other { display: flex; align-items: center; gap: 6px; font-size: 12.5px; line-height: 1.35; padding: 6px 8px; font-weight: 500; text-align: left; }
.area-btn.other svg:first-child { color: var(--g); width: 24px; height: 24px; }
.area-btn.other svg:last-child { width: 12px; height: 12px; margin-left: auto; }
@media (max-width: 540px) {
  .area-grid { grid-template-columns: repeat(4, 1fr); }
  .area-btn { font-size: 15px; min-height: 48px; }
  .area-btn.other { grid-column: 1 / -1; justify-content: center; }
  .area-btn.other svg:last-child { margin-left: 4px; }
}

.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chips.scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px 2px; }
.chips.scroll::-webkit-scrollbar { display: none; }
.chip {
  border: 1.5px solid var(--line); border-radius: 99px; padding: 7px 15px; font-size: 14px;
  background: #fff; white-space: nowrap; display: inline-flex; align-items: center; gap: 4px;
  transition: background .15s, border-color .15s, color .15s;
}
.chip[aria-pressed="true"] { background: var(--g); border-color: var(--g); color: #fff; font-weight: 700; }
.chip svg { width: 14px; height: 14px; }
.home-chips { display: grid; grid-template-columns: repeat(4, auto); gap: 8px; }
.home-chips .chip { justify-content: center; }
@media (max-width: 540px) { .home-chips { grid-template-columns: repeat(2, 1fr); } }

.mapcard {
  display: grid; grid-template-columns: 42% 1fr auto; gap: 14px; align-items: center;
  border: 1.5px solid var(--line); border-radius: var(--r); padding: 8px; background: #fff;
}
.mapcard img { width: 100%; aspect-ratio: 1.9; object-fit: cover; border-radius: 10px; }
.mapcard .badge { display: inline-block; background: var(--g-l); color: var(--g-d); font-size: 12px; font-weight: 700; border-radius: 99px; padding: 2px 10px; }
.mapcard h3 { margin: 6px 0 4px; font-size: 18px; line-height: 1.4; font-weight: 900; }
.mapcard p { margin: 0; font-size: 12.5px; color: var(--mut); }
.mapcard > svg { color: var(--ink-2); width: 20px; height: 20px; margin-right: 6px; }
@media (max-width: 430px) { .mapcard { grid-template-columns: 38% 1fr; } .mapcard > svg { display: none; } .mapcard h3 { font-size: 15.5px; } }

/* ---------- clinic card ---------- */
.cards { display: grid; gap: 12px; }
.card {
  position: relative; border: 1.5px solid var(--line); border-radius: var(--r); background: var(--card);
  padding: 10px; display: grid; grid-template-columns: 37% 1fr; gap: 12px;
}
.card.pr { background: var(--g-ll); border-color: #cfe9d7; box-shadow: 0 2px 10px rgba(31,163,74,.12); }
.card-img { position: relative; }
.card-img img { width: 100%; height: 100%; min-height: 128px; max-height: 210px; object-fit: cover; border-radius: 10px; }
.card-img .pr-badge { position: absolute; top: 0; left: 0; background: var(--pr); color: #fff; font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 10px 0 10px 0; }
.card-body { min-width: 0; display: grid; grid-template-columns: 1fr auto; gap: 0 10px; align-content: start; }
.card-main { min-width: 0; padding-right: 30px; }
.tags { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 4px; }
.tag { font-size: 11.5px; background: var(--chip); color: var(--ink-2); border-radius: 6px; padding: 1px 8px; white-space: nowrap; }
.tag.g { background: var(--g); color: #fff; font-weight: 700; }
.tag.warn { background: var(--warn-bg); color: var(--warn); }
.card h3 { margin: 2px 0 2px; font-size: 18.5px; font-weight: 900; line-height: 1.35; }
.loc { display: flex; align-items: flex-start; gap: 4px; font-size: 13px; color: var(--ink-2); }
.loc svg { width: 14px; height: 14px; color: var(--ink-2); margin-top: 3px; }
.desc { margin: 4px 0 0; font-size: 12.5px; color: var(--mut); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pricebox { margin-top: 8px; background: rgba(240, 243, 241, .8); border-radius: 8px; padding: 5px 12px 4px; display: inline-block; }
.card.pr .pricebox { background: #fff; }
.pricebox small { display: block; font-size: 12px; color: var(--ink-2); }
.price { color: var(--g); font-weight: 900; font-size: 24px; line-height: 1.25; }
.price i { font-style: normal; font-size: .62em; }
.price .tax { color: var(--mut); font-size: 11px; font-weight: 500; margin-left: 4px; }
.price-none { font-size: 12.5px; color: var(--mut); }
.heart { position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; display: grid; place-items: center; color: #8a949e; border-radius: 50%; }
.heart svg { width: 26px; height: 26px; }
.heart[aria-pressed="true"] { color: #e6567a; }
.actions { display: grid; gap: 8px; align-content: center; grid-row: 1; grid-column: 2; padding-top: 40px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border-radius: 99px; font-weight: 700; padding: 10px 18px; font-size: 15px; white-space: nowrap;
  transition: filter .15s, background .15s;
}
.btn svg { width: 14px; height: 14px; }
.btn-g { background: var(--g); color: #fff; box-shadow: 0 2px 6px rgba(31,163,74,.3); }
.btn-g:hover { filter: brightness(1.05); }
.btn-o { background: #fff; border: 1.5px solid var(--line); color: var(--ink); border-radius: 12px; }
.btn-o svg { width: 20px; height: 20px; }
.btn-o[aria-pressed="true"] { border-color: var(--g); color: var(--g-d); background: var(--g-ll); }
.card.compact .actions { padding-top: 0; align-content: end; }
@media (max-width: 520px) {
  .card { grid-template-columns: 34% 1fr; }
  .card-body { grid-template-columns: 1fr; }
  .card-main { padding-right: 28px; }
  .actions { grid-row: auto; grid-column: 1; padding-top: 10px; grid-template-columns: 1fr 1fr; }
  .card.compact .actions { grid-template-columns: 1fr; }
  .btn { padding: 9px 10px; font-size: 14px; }
  .card h3 { font-size: 16.5px; }
  .price { font-size: 21px; }
}

/* ---------- search header ---------- */
.shd { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: rgba(255,255,255,.97); z-index: 20; backdrop-filter: blur(6px); }
.iconbtn { width: 40px; height: 40px; display: grid; place-items: center; color: var(--ink); flex: none; border-radius: 50%; }
.iconbtn svg { width: 26px; height: 26px; }
.sbox { flex: 1; display: flex; align-items: center; gap: 8px; background: var(--chip); border-radius: 12px; padding: 0 12px; height: 46px; min-width: 0; }
.sbox > svg { width: 24px; height: 24px; color: var(--g); }
.sbox input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-size: 16px; color: var(--ink); outline: none; }
.sbox .clear { color: #8e979f; width: 22px; height: 22px; display: grid; place-items: center; }
.sbox .clear svg { width: 20px; height: 20px; }
.fbtn { display: grid; justify-items: center; font-size: 11px; color: var(--ink-2); flex: none; }
.fbtn svg { width: 30px; height: 30px; color: var(--g); }
.fbtn .dot { position: absolute; }

.rhd { display: flex; align-items: flex-start; gap: 10px; padding: 16px 16px 4px; }
.rhd h1 { margin: 0; font-size: clamp(21px, 5.4vw, 30px); font-weight: 900; line-height: 1.3; }
.rhd h1 em { font-style: normal; color: var(--g); }
.rhd p { margin: 4px 0 0; font-size: 17px; color: var(--ink-2); }
.rhd p b { color: var(--g); font-size: 1.5em; font-weight: 900; margin: 0 2px; }
.rhd .change { margin-left: auto; display: flex; align-items: center; gap: 4px; font-size: 13.5px; color: var(--ink-2); white-space: nowrap; padding-top: 8px; }
.rhd .change svg:first-child { color: var(--g); width: 20px; height: 20px; }
.rhd .change svg:last-child { width: 13px; height: 13px; }
@media (max-width: 540px) { .rhd { flex-direction: column; gap: 2px; } .rhd .change { margin-left: 0; padding-top: 4px; } }

.toolbar { padding: 10px 16px 0; display: grid; gap: 12px; }
.sortsel { position: relative; flex: none; }
.sortsel select { appearance: none; -webkit-appearance: none; border: 1.5px solid var(--line); border-radius: 99px; padding: 7px 34px 7px 15px; font: inherit; font-size: 14px; background: #fff; color: var(--ink); }
.sortsel svg { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; pointer-events: none; }
.seg { display: grid; grid-template-columns: 1fr 1fr; background: var(--chip); border-radius: 12px; padding: 4px; border: 1px solid var(--line); }
.seg button { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 9px; border-radius: 9px; font-size: 17px; font-weight: 700; color: var(--ink-2); }
.seg button svg { width: 26px; height: 26px; }
.seg button[aria-pressed="true"] { background: var(--g); color: #fff; }
.results { padding: 16px 12px 0; }
.empty { text-align: center; padding: 40px 16px; color: var(--mut); }
.empty b { display: block; color: var(--ink); font-size: 17px; margin-bottom: 6px; }

/* ---------- filter sheet ---------- */
.sheet-bg { position: fixed; inset: 0; background: rgba(15, 25, 20, .45); z-index: 60; display: flex; align-items: flex-end; justify-content: center; }
.sheet { background: #fff; width: 100%; max-width: var(--app-w); max-height: 88vh; overflow: auto; border-radius: 20px 20px 0 0; padding: 18px 16px calc(20px + env(safe-area-inset-bottom)); }
.sheet h2 { margin: 0 0 12px; font-size: 19px; display: flex; align-items: center; }
.sheet h2 button { margin-left: auto; font-size: 14px; color: var(--mut); font-weight: 500; }
.sheet h3 { font-size: 14.5px; margin: 18px 0 8px; color: var(--ink-2); }
.sheet .chips .chip { font-size: 13.5px; padding: 6px 12px; }
.sheet-foot { position: sticky; bottom: calc(-20px - env(safe-area-inset-bottom)); background: #fff; padding: 14px 0 0; margin-top: 18px; display: grid; grid-template-columns: 1fr 2fr; gap: 10px; }
.sheet-foot .btn { border-radius: 12px; padding: 13px; }

/* ---------- compare bar ---------- */
.compare-bar {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--tab-h) + 10px + env(safe-area-inset-bottom));
  width: min(calc(100% - 24px), calc(var(--app-w) - 24px)); z-index: 30;
  background: #fff; border-radius: 16px; box-shadow: 0 6px 24px rgba(0,0,0,.14);
  display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 12px;
}
.compare-bar .up { width: 30px; color: var(--ink-2); border-right: 1px solid var(--line); padding-right: 6px; display: grid; place-items: center; }
.compare-bar .up svg { width: 22px; height: 22px; }
.compare-bar .thumbs { display: flex; gap: 6px; }
.compare-bar .thumbs img { width: 46px; height: 46px; border-radius: 6px; object-fit: cover; }
.compare-bar .cnt { font-weight: 700; font-size: 15px; white-space: nowrap; }
.compare-bar .cnt b { color: var(--g); font-size: 28px; margin: 0 2px 0 6px; font-weight: 900; }
.compare-bar .btn { margin-left: auto; padding: 12px 22px; font-size: 17px; border-radius: 14px; }
@media (max-width: 430px) { .compare-bar .thumbs { display: none; } .compare-bar .btn { padding: 11px 16px; font-size: 15px; } }

/* ---------- tab bar ---------- */
.tabbar {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: var(--app-w);
  height: calc(var(--tab-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
  background: #fff; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(4, 1fr); z-index: 40;
}
.tabbar a { display: grid; justify-items: center; align-content: center; gap: 1px; color: var(--ink-2); font-size: 12px; position: relative; }
.tabbar svg { width: 28px; height: 28px; }
.tabbar a[aria-current="page"] { color: var(--g); font-weight: 700; }
.tabbar a[aria-current="page"]::after { content: ""; position: absolute; bottom: 4px; width: 56%; height: 4px; border-radius: 4px; background: var(--g); }
.tabbar .badge { position: absolute; top: 6px; left: calc(50% + 6px); background: #e6567a; color: #fff; font-size: 10px; min-width: 17px; height: 17px; border-radius: 9px; display: grid; place-items: center; padding: 0 4px; font-weight: 700; }

/* ---------- detail ---------- */
.dhd { display: flex; align-items: center; gap: 6px; padding: 8px 10px; position: sticky; top: 0; background: rgba(255,255,255,.97); z-index: 20; backdrop-filter: blur(6px); }
.dhd h1 { margin: 0 0 0 4px; font-size: 18px; font-weight: 700; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dhd .act { display: grid; justify-items: center; font-size: 11px; color: var(--ink-2); padding: 2px 8px; }
.dhd .act svg { width: 26px; height: 26px; color: var(--ink); }
.dhd .act[aria-pressed="true"] svg { color: #e6567a; }
.gallery { padding: 4px 12px 0; }
.gallery-main { position: relative; border-radius: 14px; overflow: hidden; }
.gallery-main img { width: 100%; aspect-ratio: 1.75; object-fit: cover; }
.gallery-main .count { position: absolute; right: 12px; bottom: 12px; background: rgba(30,30,30,.65); color: #fff; font-size: 14px; border-radius: 99px; padding: 2px 14px; }
.gallery-main .img-note { position: absolute; left: 10px; bottom: 12px; background: rgba(255,255,255,.88); color: var(--ink-2); font-size: 11px; border-radius: 6px; padding: 2px 8px; }
.thumbs-row { display: grid; grid-template-columns: repeat(3, 1fr) .9fr; gap: 8px; margin-top: 8px; }
.thumbs-row button { border-radius: 8px; overflow: hidden; border: 2.5px solid transparent; }
.thumbs-row button[aria-current="true"] { border-color: var(--g); }
.thumbs-row img { width: 100%; aspect-ratio: 1.5; object-fit: cover; }
.thumbs-row .all { background: var(--chip); font-size: 12.5px; color: var(--ink-2); display: grid; place-items: center; line-height: 1.4; text-align: center; }
.dtitle { padding: 16px 16px 0; }
.dtitle h2 { margin: 0 0 6px; font-size: clamp(25px, 7vw, 34px); font-weight: 900; line-height: 1.3; }
.dtitle .pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pill { background: var(--g); color: #fff; font-weight: 700; border-radius: 99px; padding: 3px 16px; font-size: 14.5px; }
.pill.sub { background: var(--g-l); color: var(--g-d); }
.keybox { margin: 14px 12px 0; background: var(--g-l); border-radius: 18px; padding: 16px; }
.keyrow { display: grid; grid-template-columns: 1fr 1.6fr 1fr; align-items: center; }
.keyrow > div { display: flex; align-items: center; gap: 8px; padding: 0 10px; min-width: 0; }
.keyrow > div + div { border-left: 1px solid #c9e2d1; }
.keyrow .k1 svg { color: var(--g); width: 34px; height: 34px; }
.keyrow .k1 b { font-size: 17px; line-height: 1.35; display: block; }
.keyrow .k1 span { color: var(--g); font-weight: 700; font-size: 14px; }
.keyrow .k2 > svg { color: var(--g); width: 34px; height: 34px; }
.keyrow .k2 .price { font-size: clamp(22px, 6.4vw, 34px); }
.keyrow .k2 small { display: block; font-size: 12.5px; color: var(--ink-2); line-height: 1.4; }
.keyrow .k3 svg { width: 30px; height: 30px; color: var(--ink); }
.keyrow .k3 small { font-size: 13px; line-height: 1.4; display: block; }
.keyrow .k3 span { color: var(--ink-2); font-size: 14px; }
@media (max-width: 560px) {
  .keyrow { grid-template-columns: 1fr 1fr; row-gap: 12px; }
  .keyrow .k2 { grid-column: 1 / -1; grid-row: 1; border-left: 0 !important; justify-content: center; }
  .keyrow .k1 { border-left: 0 !important; }
}
.keybox .btn { width: 100%; margin-top: 14px; border-radius: 14px; padding: 15px; font-size: 18px; }
.keybox .btn svg { width: 22px; height: 22px; }
.keybox .btn .chev { margin-left: auto; }
.keybox .btn .ext { margin-left: auto; }
.keybox .fine { font-size: 11.5px; color: var(--mut); margin: 8px 2px 0; }

.panel { margin: 14px 12px 0; border: 1.5px solid #edf0f2; border-radius: 16px; padding: 16px 12px; background: #fff; }
.panel-hd { display: flex; align-items: center; gap: 10px; margin: 0 4px 12px; }
.panel-hd svg { width: 26px; height: 26px; color: var(--g); }
.panel-hd h3 { margin: 0; font-size: 18px; font-weight: 900; }
.panel-hd .more { margin-left: auto; border: 1.5px solid var(--line); border-radius: 99px; padding: 4px 12px; font-size: 13.5px; display: flex; align-items: center; gap: 4px; }
.panel-hd .more svg { width: 14px; height: 14px; color: var(--ink); }
.feat { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.feat > div { background: var(--g-ll); border-radius: 10px; padding: 12px 4px; display: grid; justify-items: center; gap: 2px; text-align: center; }
.feat svg { width: 30px; height: 30px; color: var(--g); margin-bottom: 2px; }
.feat span { font-size: 13px; color: var(--ink); line-height: 1.35; }
.feat b { font-size: 14px; color: var(--g); line-height: 1.35; }
.feat .off svg, .feat .off b { color: #9aa4ad; }
@media (max-width: 430px) { .feat span { font-size: 11.5px; } .feat b { font-size: 12.5px; } .feat svg { width: 26px; height: 26px; } }
.tlist { display: grid; gap: 8px; }
.trow { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; background: var(--chip); border-radius: 12px; padding: 9px 12px; }
.trow b { font-size: 14.5px; font-weight: 500; }
.trow .tag { margin-left: auto; }
.trow .tag.ok { background: var(--g-l); color: var(--g-d); font-weight: 700; }
.trow .note { flex-basis: 100%; font-size: 12px; color: var(--mut); }
.ptable { width: 100%; border-collapse: collapse; font-size: 14px; }
.ptable th, .ptable td { text-align: left; padding: 10px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
.ptable th { font-weight: 500; }
.ptable td { text-align: right; white-space: nowrap; }
.ptable td b { color: var(--g); font-size: 17px; font-weight: 900; }
.ptable .pnote { display: block; font-size: 12px; color: var(--mut); font-weight: 400; margin-top: 2px; }
.ptable .src { font-size: 12px; color: var(--g-d); text-decoration: underline; }
.access { display: grid; grid-template-columns: 1.1fr 1fr; gap: 14px; align-items: start; }
.access iframe, .access .mapimg { width: 100%; aspect-ratio: 1.6; border: 0; border-radius: 12px; background: var(--chip); }
.access p { margin: 0; font-size: 14.5px; line-height: 1.7; }
.access p small { color: var(--mut); display: block; margin-top: 4px; font-size: 13px; }
@media (max-width: 470px) { .access { grid-template-columns: 1fr; } }
.srcs { display: grid; gap: 6px; font-size: 13px; }
.srcs a { color: var(--g-d); text-decoration: underline; word-break: break-all; }
.notice { margin: 14px 12px 0; background: #f7f8f9; border-radius: 12px; padding: 12px 14px; font-size: 12px; color: var(--mut); line-height: 1.7; }
.notice b { color: var(--ink-2); }
.notice ul { margin: 4px 0 0; padding-left: 1.2em; }
.cta {
  position: fixed; left: 50%; transform: translateX(-50%); width: 100%; max-width: var(--app-w);
  bottom: calc(var(--tab-h) + env(safe-area-inset-bottom)); z-index: 35; background: rgba(255,255,255,.97);
  border-top: 1px solid var(--line); padding: 10px 12px; display: grid; grid-template-columns: 1.45fr 1fr; gap: 10px;
}
.cta .btn { border-radius: 14px; padding: 15px 10px; font-size: 16px; }
.cta .btn svg { width: 22px; height: 22px; }
.cta .btn-o { border: 1.5px solid var(--ink); border-color: #b7c0c8; }
.cta .btn .chev { width: 16px; height: 16px; }
@media (max-width: 430px) { .cta .btn { font-size: 14px; gap: 4px; } }

/* ---------- compare / map / saved ---------- */
.phd { padding: 16px 16px 4px; }
.phd h1 { margin: 0; font-size: 26px; font-weight: 900; }
.phd p { margin: 4px 0 0; color: var(--mut); font-size: 13.5px; }
.ctable-wrap { overflow-x: auto; margin: 12px 0 0; padding: 0 12px 4px; }
.ctable { border-collapse: separate; border-spacing: 0; font-size: 13.5px; min-width: 100%; }
.ctable th, .ctable td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; text-align: left; }
.ctable thead th { position: sticky; top: 0; background: #fff; min-width: 150px; }
.ctable thead th img { width: 100%; aspect-ratio: 1.5; object-fit: cover; border-radius: 8px; margin-bottom: 6px; }
.ctable thead th a { font-weight: 900; font-size: 15px; line-height: 1.35; display: block; }
.ctable thead th .rm { font-size: 12px; color: var(--mut); text-decoration: underline; margin-top: 4px; }
.ctable tbody th { font-weight: 700; color: var(--ink-2); background: var(--g-ll); white-space: nowrap; position: sticky; left: 0; }
.ctable td ul { margin: 0; padding-left: 1.1em; }
.ctable td .price { font-size: 17px; }
.yes { color: var(--g-d); font-weight: 700; }
.no { color: #9aa4ad; }
.prefgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.prefbtn { border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 12px; text-align: left; background: #fff; }
.prefbtn b { display: block; font-size: 15.5px; }
.prefbtn span { color: var(--mut); font-size: 12.5px; }
.prefbtn[aria-pressed="true"] { border-color: var(--g); background: var(--g-ll); }
.prefbtn[aria-pressed="true"] span { color: var(--g-d); }
.bigmap { width: 100%; aspect-ratio: 1.25; border: 0; border-radius: 14px; background: var(--chip); }
.maplist { display: grid; gap: 8px; margin-top: 12px; }
.maplist a { display: flex; align-items: center; gap: 10px; border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.maplist a > svg:first-child { color: var(--g); width: 22px; height: 22px; }
.maplist a div { flex: 1; min-width: 0; }
.maplist b { display: block; font-size: 15px; }
.maplist small { color: var(--mut); font-size: 12.5px; display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.maplist a > svg:last-child { width: 14px; height: 14px; color: var(--mut); }

/* ---------- menu / footer ---------- */
.foot { margin: 28px 0 0; padding: 20px 16px 8px; background: #f7f8f9; font-size: 12px; color: var(--mut); line-height: 1.8; }
.foot h4 { margin: 0 0 4px; font-size: 13px; color: var(--ink-2); }
.foot p { margin: 0 0 12px; }
.foot .flogo { font-weight: 900; font-size: 18px; color: var(--g-d); margin-bottom: 8px; }
.menu-list { display: grid; gap: 2px; }
.menu-list a, .menu-list button { display: flex; align-items: center; padding: 13px 4px; border-bottom: 1px solid var(--line); font-size: 15.5px; text-align: left; width: 100%; }
.menu-list svg { margin-left: auto; width: 14px; height: 14px; color: var(--mut); }
.prose { padding: 4px 16px; font-size: 14.5px; line-height: 1.9; }
.prose h2 { font-size: 17px; margin: 22px 0 6px; }
.prose ul { padding-left: 1.2em; }

.toast { position: fixed; left: 50%; bottom: calc(var(--tab-h) + 90px); transform: translateX(-50%) translateY(10px); background: rgba(27, 42, 61, .92); color: #fff; padding: 9px 18px; border-radius: 99px; font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 80; white-space: nowrap; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

@media (min-width: 640px) {
  body { background: linear-gradient(180deg, #eaf5ed, #f4f6f5 420px); }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* ---------- added pages ---------- */
.todo { background: #fff3cd; color: #8a5a00; border-radius: 4px; padding: 0 6px; font-size: .9em; font-weight: 700; }
.ul { text-decoration: underline; color: var(--g-d); }
.flinks { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 4px 0 10px; }
.flinks a { text-decoration: underline; color: var(--ink-2); }
.copy { margin: 0; font-size: 11px; }

.finder-card {
  margin: 16px 16px 0; display: flex; align-items: center; gap: 12px;
  background: linear-gradient(120deg, #17913f, #3fbd66); color: #fff; border-radius: 18px; padding: 16px 16px 16px 18px;
  box-shadow: 0 4px 14px rgba(31, 163, 74, .25);
}
.finder-card div { flex: 1; min-width: 0; display: grid; }
.finder-card small { font-size: 12px; opacity: .9; }
.finder-card b { font-size: 21px; font-weight: 900; line-height: 1.35; }
.finder-card div span { font-size: 13px; opacity: .92; }
.finder-card .go { background: #fff; color: var(--g-d); font-weight: 700; border-radius: 99px; padding: 9px 14px 9px 18px; display: flex; align-items: center; gap: 4px; white-space: nowrap; font-size: 15px; }
.finder-card .go svg { width: 14px; height: 14px; }

.wz-prog { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 12px 16px 0; }
.wz-prog span { height: 6px; border-radius: 3px; background: var(--line); }
.wz-prog span.on { background: var(--g); }
.wz-step { margin: 6px 16px 0; font-size: 12px; font-weight: 700; color: var(--g-d); letter-spacing: .06em; }
.wz-sum { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 8px 16px 0; }
.wz-sum .tag { background: var(--g-l); color: var(--g-d); font-weight: 700; font-size: 12.5px; }
.wz-sum a { margin-left: auto; font-size: 12.5px; color: var(--mut); text-decoration: underline; }
.wz-q { padding: 14px 0 16px; }
.wz-q h2 { margin: 0; font-size: clamp(23px, 6vw, 30px); font-weight: 900; line-height: 1.35; }
.wz-q h2 em { font-style: normal; color: var(--g); }
.wz-q p { margin: 4px 0 0; color: var(--ink-2); font-size: 14.5px; }
.opt-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (max-width: 480px) { .opt-grid { grid-template-columns: repeat(2, 1fr); } }
.opt { background: #fff; border-radius: 14px; box-shadow: var(--shadow); border: 1.5px solid #edf0f2; padding: 6px 6px 10px; display: grid; gap: 2px; transition: transform .15s, border-color .15s; }
.opt:hover { transform: translateY(-1px); border-color: var(--g); }
.opt img { width: 100%; aspect-ratio: 1.6; object-fit: cover; border-radius: 10px; margin-bottom: 6px; }
.opt b { font-size: 15.5px; padding: 0 4px; line-height: 1.35; }
.opt small { font-size: 12px; color: var(--g-d); padding: 0 4px; }
.opt-list { display: grid; gap: 10px; }
.opt-list a { display: flex; align-items: center; gap: 12px; border: 1.5px solid var(--line); border-radius: 14px; padding: 14px; background: #fff; transition: border-color .15s, background .15s; }
.opt-list a:hover { border-color: var(--g); }
.opt-list a img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; flex: none; margin: -4px 0; }
.opt-list a div { flex: 1; min-width: 0; }
.opt-list b { display: block; font-size: 16px; line-height: 1.4; }
.opt-list small { display: block; color: var(--mut); font-size: 12.5px; margin-top: 2px; }
.opt-list a > svg { width: 16px; height: 16px; color: var(--mut); }
.opt-list a.soft { background: var(--g-ll); border-style: dashed; }
.opt-list .toggle .box { width: 26px; height: 26px; border-radius: 8px; border: 2px solid #c3ccd3; display: grid; place-items: center; color: #fff; font-weight: 900; flex: none; }
.opt-list .toggle[aria-pressed="true"] { border-color: var(--g); background: var(--g-ll); }
.opt-list .toggle[aria-pressed="true"] .box { background: var(--g); border-color: var(--g); }
.wz-foot { position: sticky; bottom: calc(var(--tab-h) + 10px + env(safe-area-inset-bottom)); margin-top: 18px; }
.btn.wide { width: 100%; border-radius: 14px; padding: 15px; font-size: 17px; margin-top: 14px; }
.btn.wide .chev { margin-left: auto; }
.btn.wide svg:first-child:not(.chev) { width: 20px; height: 20px; }

.guide-hero { display: flex; align-items: center; gap: 14px; padding: 16px; background: linear-gradient(180deg, #eef8f0, #fff); }
.guide-hero img { width: 104px; height: 104px; border-radius: 16px; object-fit: cover; box-shadow: var(--shadow); }
.guide-hero h1 { margin: 6px 0 0; font-size: clamp(22px, 6vw, 30px); font-weight: 900; line-height: 1.3; }
.guide-hero p { margin: 0; color: var(--ink-2); font-size: 14px; }
.guide-hero .pill { font-size: 12.5px; padding: 2px 12px; }
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.stat { background: var(--g-ll); border-radius: 14px; padding: 12px 6px; text-align: center; display: grid; }
.stat b { font-size: 28px; font-weight: 900; color: var(--g); line-height: 1.2; }
.stat span { font-size: 12px; color: var(--ink-2); }
.lead-price { margin: 0 4px 6px; color: var(--g); font-weight: 900; font-size: 26px; }
.lead-price small { color: var(--mut); font-size: 12.5px; font-weight: 500; margin-left: 6px; }
.checklist { list-style: none; margin: 0; padding: 0 4px; display: grid; gap: 10px; }
.checklist li { position: relative; padding-left: 30px; font-size: 14.5px; line-height: 1.65; }
.checklist li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 21px; height: 21px; border-radius: 50%; background: var(--g); color: #fff; font-size: 12px; font-weight: 900; display: grid; place-items: center; }
.guide-link { display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; font-size: 13.5px; color: var(--g-d); text-decoration: underline; }
.guide-link svg { width: 16px; height: 16px; }
.trow b a { text-decoration: underline; text-decoration-color: #b9c3cb; text-underline-offset: 3px; }
.report { display: inline-flex; align-items: center; gap: 4px; margin-top: 10px; color: var(--ink-2); text-decoration: underline; font-size: 12.5px; }
.report svg { width: 14px; height: 14px; }

.kv { width: 100%; border-collapse: collapse; font-size: 14.5px; margin-top: 8px; }
.kv th, .kv td { text-align: left; padding: 12px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.kv th { width: 34%; background: var(--g-ll); font-weight: 700; color: var(--ink-2); }
.stamp { margin-top: 28px; text-align: right; color: var(--mut); font-size: 13px; }

.form { display: grid; gap: 14px; margin-top: 16px; }
.field { display: grid; gap: 6px; }
.field > span { font-size: 14px; font-weight: 700; color: var(--ink-2); }
.field em { font-style: normal; background: #e6567a; color: #fff; font-size: 11px; border-radius: 4px; padding: 1px 6px; margin-left: 4px; font-weight: 700; }
.field input, .field select, .field textarea { font: inherit; font-size: 16px; border: 1.5px solid var(--line); border-radius: 12px; padding: 12px; background: #fff; color: var(--ink); width: 100%; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--g); outline: none; box-shadow: 0 0 0 3px rgba(31,163,74,.15); }
.agree { display: flex; align-items: center; gap: 8px; font-size: 14.5px; }
.agree input { width: 20px; height: 20px; accent-color: var(--g); }
.form-err { margin: 0; background: #fdecef; color: #b4234a; border-radius: 10px; padding: 10px 12px; font-size: 13.5px; }

.b2b-hero { padding: 26px 16px 10px; background: linear-gradient(180deg, #eef8f0, #fff); }
.b2b-hero h1 { margin: 0; font-size: clamp(22px, 5.8vw, 30px); font-weight: 900; line-height: 1.45; }
.b2b-hero h1 em { font-style: normal; color: var(--g); }
.b2b-hero p { margin: 10px 0 0; color: var(--ink-2); font-size: 14.5px; }
.ptext { margin: 0 4px; font-size: 14.5px; line-height: 1.8; }
.flow { list-style: none; counter-reset: s; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; }
.flow li { counter-increment: s; position: relative; padding: 10px 12px 10px 52px; background: var(--g-ll); border-radius: 12px; display: grid; }
.flow li::before { content: counter(s); position: absolute; left: 12px; top: 12px; width: 28px; height: 28px; border-radius: 50%; background: var(--g); color: #fff; font-weight: 900; display: grid; place-items: center; }
.flow b { font-size: 15px; }
.flow span { font-size: 13px; color: var(--ink-2); }
.empty.nf img { width: 220px; border-radius: 16px; margin: 0 auto 18px; opacity: .85; }
