/* すまいさがし — Material 3 Expressive：白 × ブルーグリーン（トーナルな面、ピル、スプリング） */
:root {
  --pri: #0F766E;
  --on-pri: #FFFFFF;
  --pri-c: #B5EDE4;
  --on-pri-c: #00201D;
  --sec-c: #D3E7E2;
  --on-sec-c: #0E1F1C;
  --ter-c: #FFE6A6;
  --on-ter-c: #3A2A00;
  --sf: #F7FAF9;
  --sf-c: #ECF3F1;
  --sf-ch: #E2ECE9;
  --sf-l: #FFFFFF;
  --on-sf: #161D1C;
  --on-sfv: #3F4947;
  --outline: #6F7977;
  --outline-v: #BEC9C6;
  --fav: #B3264E;
  --err: #B3261E;
  --f-ja: "M PLUS 2", "Hiragino Sans", sans-serif;
  --f-num: "Lexend", "M PLUS 2", sans-serif;
  --spring: cubic-bezier(.3, 1.4, .5, 1);
  --std: cubic-bezier(.2, 0, 0, 1);
  --st: env(safe-area-inset-top, 0px);
  --sb: env(safe-area-inset-bottom, 0px);
  --navh: 80px;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
body { background: var(--sf); color: var(--on-sf); font: 400 16px/1.6 var(--f-ja); line-break: strict; overflow: hidden; -webkit-font-smoothing: antialiased; }
button, input, textarea { font: inherit; color: inherit; }
button { border: 0; background: none; padding: 0; cursor: pointer; }
button:disabled { cursor: default; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
.nw { white-space: nowrap; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.ic { width: 24px; height: 24px; flex: none; }
.ic-s { width: 20px; height: 20px; }
.ic-xs { width: 18px; height: 18px; }
:focus-visible { outline: 3px solid var(--pri); outline-offset: 2px; }
small { font-size: .7em; }

.app { position: relative; height: 100dvh; overflow: hidden; background: var(--sf); }
@media (min-width: 600px) {
  body { background: linear-gradient(160deg, #DCEFEA, #F3F8F6 60%, #E4F1EE); }
  .app { max-width: 430px; margin: 0 auto; box-shadow: 0 30px 80px rgba(15, 118, 110, .22); }
}
.stage { position: absolute; inset: 0; overflow: hidden; }
.pg { position: absolute; inset: 0; background: var(--sf); z-index: 1; }
.pg.leaving { pointer-events: none; z-index: 0; }
.sc { position: absolute; inset: 0; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; padding: calc(68px + var(--st)) 16px calc(var(--navh) + 40px + var(--sb)); outline: none; }

/* 波紋・ボタン */
.rp { position: relative; overflow: hidden; }
.ripple { position: absolute; border-radius: 50%; background: currentColor; opacity: .12; transform: scale(0); animation: rip .55s var(--std) forwards; pointer-events: none; }
@keyframes rip { to { transform: scale(1); opacity: 0; } }
.fbtn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 24px; border-radius: 26px; background: var(--pri); color: var(--on-pri); font-weight: 700; font-size: 16px; transition: border-radius .25s var(--spring), transform .2s var(--spring), opacity .2s; white-space: nowrap; }
.fbtn:active { border-radius: 14px; transform: scale(.97); }
.fbtn.dim { opacity: .6; }
.tbtn { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border-radius: 22px; color: var(--pri); font-weight: 700; font-size: 15px; white-space: nowrap; }
.tbtn-p { background: var(--pri); color: var(--on-pri); }
.ibtn { width: 48px; height: 48px; border-radius: 24px; display: grid; place-items: center; color: var(--on-sfv); flex: none; transition: border-radius .25s var(--spring), background .2s; }
.ibtn:active { border-radius: 14px; }
.ibtn:disabled { opacity: .3; }
.ibtn-f { background: rgba(255, 255, 255, .94); color: var(--on-sf); box-shadow: 0 2px 8px rgba(0, 0, 0, .12); }
.ibtn-t { background: var(--sf-l); color: var(--on-sf); box-shadow: 0 1px 4px rgba(0, 0, 0, .14); }

/* ---------- ナビゲーションバー（ピルのインジケーター）---------- */
.navbar { position: absolute; z-index: 20; left: 0; right: 0; bottom: 0; height: calc(var(--navh) + var(--sb)); padding-bottom: var(--sb); display: grid; grid-template-columns: repeat(4, 1fr); background: var(--sf-c); transition: transform .35s var(--std); }
.navbar.hide { transform: translateY(110%); }
.nv { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: var(--on-sfv); font-size: 12px; font-weight: 700; }
.nv-i { position: relative; width: 64px; height: 32px; border-radius: 16px; display: grid; place-items: center; transition: background .3s var(--spring), width .3s var(--spring); }
.nv.on .nv-i { background: var(--sec-c); color: var(--on-sec-c); }
.nv.on { color: var(--on-sf); }
.nv:active .nv-i { width: 56px; }
.nv-b { position: absolute; top: -2px; left: 38px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--fav); color: #fff; font: 600 11px/18px var(--f-num); text-align: center; }

/* ---------- さがす：上部 ---------- */
.sh-top { position: absolute; z-index: 6; top: 0; left: 0; right: 0; padding: calc(8px + var(--st)) 16px 8px; background: var(--sf); transition: background .25s, box-shadow .25s; }
.sh-top.lift { background: var(--sf-c); box-shadow: 0 1px 0 rgba(0, 0, 0, .06); }
.sbar { display: flex; align-items: center; gap: 4px; height: 56px; padding: 0 4px 0 16px; border-radius: 28px; background: var(--sf-ch); }
.sbar-i { color: var(--on-sfv); display: grid; }
.sbar input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; outline: none; font-size: 16px; padding: 0 8px; }
.sbar input::placeholder { color: var(--on-sfv); }
.sbar input::-webkit-search-cancel-button { display: none; }
.sbar-av { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--pri-c); color: var(--on-pri-c); }
.fchips { display: flex; gap: 8px; overflow-x: auto; margin: 10px -16px 0; padding: 0 16px 2px; scrollbar-width: none; }
.fchips::-webkit-scrollbar { display: none; }
.fchip { flex: none; display: inline-flex; align-items: center; gap: 4px; height: 36px; padding: 0 8px 0 12px; border-radius: 8px; border: 1px solid var(--outline); font-size: 14px; font-weight: 500; color: var(--on-sfv); background: var(--sf); transition: background .2s, border-radius .25s var(--spring); }
.fchip.on { background: var(--sec-c); border-color: var(--sec-c); color: var(--on-sec-c); font-weight: 700; padding-left: 8px; }
.fchip:active { border-radius: 18px; }
.sc-s { padding-top: calc(128px + var(--st)); }
.res { display: flex; align-items: center; justify-content: space-between; margin: 0 0 4px; }
.res-n { margin: 0; font-size: 15px; font-weight: 700; }
.res-n b { font: 700 26px var(--f-num); color: var(--pri); display: inline-block; }
.res-of { color: var(--on-sfv); font-weight: 400; font-size: 14px; margin-left: 2px; }
.foot { text-align: center; color: var(--on-sfv); font-size: 13px; margin: 24px 0 0; }

/* 物件カード */
.card { margin-top: 12px; border-radius: 24px; background: var(--sf-l); box-shadow: 0 1px 3px rgba(0, 0, 0, .08), 0 4px 14px rgba(15, 118, 110, .07); overflow: hidden; animation: cin .5s var(--std) both; animation-delay: var(--d); }
@keyframes cin { from { opacity: 0; transform: translateY(16px); } }
.ph { position: relative; aspect-ratio: 3 / 2; background: var(--sf-ch); }
.ph-track { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.ph-track::-webkit-scrollbar { display: none; }
.ph-track img { flex: none; width: 100%; height: 100%; object-fit: cover; scroll-snap-align: start; user-select: none; }
.badge-new { position: absolute; left: 12px; top: 12px; padding: 2px 10px; border-radius: 8px; background: var(--ter-c); color: var(--on-ter-c); font-size: 12px; font-weight: 800; }
.rm-area .badge-new { position: static; margin-left: 8px; }
.ph-n { position: absolute; left: 12px; bottom: 12px; padding: 2px 10px; border-radius: 12px; background: rgba(22, 29, 28, .78); color: #fff; font: 500 12px var(--f-num); }
.fav { position: absolute; right: 8px; top: 8px; width: 48px; height: 48px; border-radius: 24px; display: grid; place-items: center; background: rgba(255, 255, 255, .94); color: var(--on-sfv); box-shadow: 0 2px 6px rgba(0, 0, 0, .15); transition: border-radius .25s var(--spring); }
.fav.on { color: var(--fav); }
.fav:active { border-radius: 14px; }
.cb { display: block; padding: 12px 16px 14px; }
.cb-rent { margin: 0; display: flex; align-items: baseline; gap: 2px; flex-wrap: wrap; }
.cb-rent b { font: 700 28px/1.15 var(--f-num); color: var(--pri); letter-spacing: -.01em; }
.u { font-weight: 700; font-size: 15px; color: var(--pri); }
.cb-fee { margin-left: 8px; font-size: 13px; color: var(--on-sfv); }
.cb-spec { margin: 4px 0 0; display: flex; flex-wrap: wrap; gap: 4px 10px; font: 500 14px var(--f-num); }
.lay { font-weight: 700; color: var(--on-pri-c); background: var(--pri-c); padding: 0 8px; border-radius: 6px; }
.cb-acc { margin: 6px 0 0; display: flex; gap: 6px; align-items: flex-start; font-size: 14px; color: var(--on-sf); }
.cb-acc .ic { color: var(--pri); margin-top: 1px; }
.cb-nm { margin: 4px 0 0; font-size: 13px; color: var(--on-sfv); }

/* 拡張FAB（スクロールで縮む） */
.efab { position: absolute; z-index: 8; right: 16px; bottom: calc(var(--navh) + 16px + var(--sb)); height: 56px; padding: 0 20px 0 16px; border-radius: 18px; display: flex; align-items: center; gap: 10px; background: var(--pri-c); color: var(--on-pri-c); font-weight: 700; font-size: 15px; box-shadow: 0 4px 12px rgba(0, 0, 0, .18); transition: padding .3s var(--spring), border-radius .3s var(--spring), transform .2s; white-space: nowrap; }
.efab span { max-width: 140px; overflow: hidden; transition: max-width .3s var(--spring), opacity .2s; }
.efab.mini { padding: 0 16px; }
.efab.mini span { max-width: 0; opacity: 0; }
.efab:active { border-radius: 28px; transform: scale(.96); }

.zero { text-align: center; padding: 16px 8px; }
.zero img { width: 180px; height: 180px; border-radius: 40px; object-fit: cover; margin: 0 auto 12px; }
.zero-t { margin: 0; font-weight: 800; font-size: 18px; }
.zero-b { margin: 4px 0 14px; color: var(--on-sfv); font-size: 15px; }
.relax { display: grid; gap: 8px; margin-bottom: 16px; }
.relax-b { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 52px; padding: 0 16px; border-radius: 16px; background: var(--sec-c); color: var(--on-sec-c); font-weight: 700; font-size: 15px; text-align: left; }
.relax-b b { font: 700 16px var(--f-num); color: var(--pri); white-space: nowrap; }

/* ---------- シート ---------- */
.scrim { position: absolute; inset: 0; z-index: 30; background: rgba(0, 0, 0, .32); opacity: 0; transition: opacity .3s; }
.scrim.on { opacity: 1; }
.sheet { position: absolute; z-index: 31; left: 0; right: 0; bottom: 0; max-height: 88%; overflow-y: auto; overscroll-behavior: contain; background: var(--sf-l); border-radius: 28px 28px 0 0; padding: 0 0 calc(12px + var(--sb)); transform: translateY(105%); transition: transform .45s var(--spring); }
.sheet.on { transform: none; }
.sheet-full { height: 92%; max-height: 92%; overflow: hidden; display: flex; flex-direction: column; }
.handle { width: 32px; height: 4px; border-radius: 2px; background: var(--outline-v); margin: 14px auto 8px; flex: none; touch-action: none; cursor: grab; position: relative; }
.handle::after { content: ""; position: absolute; inset: -16px -50px; }
.sb { padding: 0 8px 8px; }
.sb-t { margin: 4px 16px 8px; font-size: 20px; font-weight: 800; }
.opt { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 56px; padding: 0 16px; border-radius: 16px; text-align: left; font-size: 16px; }
.opt.on { background: var(--sec-c); color: var(--on-sec-c); font-weight: 700; }
.fsh { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.fsh-h { display: grid; grid-template-columns: 48px 1fr auto; align-items: center; gap: 4px; padding: 0 8px 4px; }
.fsh-t { margin: 0; font-size: 20px; font-weight: 800; }
.fsh-b { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 0 16px 16px; }
.fs { padding: 14px 0 10px; border-bottom: 1px solid var(--sf-ch); }
.fs-t { margin: 0 0 10px; font-size: 16px; font-weight: 800; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.fs-s { font-size: 13px; font-weight: 400; color: var(--on-sfv); }
.fs-t2 { margin: 14px 0 8px; font-size: 15px; font-weight: 700; }
.hist { display: flex; align-items: flex-end; gap: 3px; height: 64px; padding: 0 14px; }
.hb { flex: 1; height: var(--h); border-radius: 4px 4px 0 0; background: var(--outline-v); transition: height .35s var(--spring), background .2s; }
.hb.in { background: var(--pri); }
.dual { position: relative; height: 44px; margin: 0 2px; --a: 0%; --b: 100%; }
.dual::before { content: ""; position: absolute; left: 12px; right: 12px; top: 20px; height: 4px; border-radius: 2px; background: var(--sf-ch); }
.dual-fill { position: absolute; top: 20px; height: 4px; border-radius: 2px; background: var(--pri); left: calc(12px + (100% - 24px) * var(--a) / 100%); width: calc((100% - 24px) * (var(--b) - var(--a)) / 100%); pointer-events: none; }
.dual input { position: absolute; inset: 0; width: 100%; margin: 0; background: none; pointer-events: none; -webkit-appearance: none; appearance: none; height: 44px; z-index: 2; }
.dual input::-webkit-slider-runnable-track { height: 44px; background: none; }
.dual input::-webkit-slider-thumb { -webkit-appearance: none; pointer-events: auto; width: 24px; height: 44px; border-radius: 12px; background: var(--pri); border: 8px solid transparent; background-clip: padding-box; cursor: grab; }
.dual input::-moz-range-thumb { pointer-events: auto; width: 8px; height: 28px; border-radius: 4px; background: var(--pri); border: 0; }
.dual input::-moz-range-track { background: none; }
.rentv { margin: 2px 0 0; text-align: center; font: 600 17px var(--f-num); color: var(--pri); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ch { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--outline); font-size: 14px; font-weight: 500; transition: background .2s, border-radius .25s var(--spring); }
.ch small { font: 400 12px var(--f-num); color: var(--on-sfv); }
.ch.on { background: var(--sec-c); border-color: var(--sec-c); color: var(--on-sec-c); font-weight: 700; }
.ch.on::before { content: ""; width: 12px; height: 7px; border: solid currentColor; border-width: 0 0 2px 2px; transform: rotate(-45deg) translate(1px, -2px); }
.ch:active { border-radius: 20px; }
.ch-l { font-family: var(--f-num); }
.bgroup { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; }
.bg { min-height: 44px; border-radius: 8px; background: var(--sf-ch); font-size: 14px; font-weight: 700; color: var(--on-sfv); transition: border-radius .3s var(--spring), background .2s, color .2s; white-space: nowrap; }
.bg:first-child { border-radius: 22px 8px 8px 22px; }
.bg:last-child { border-radius: 8px 22px 22px 8px; }
.bg.on { background: var(--pri); color: var(--on-pri); border-radius: 22px; }
.fsh-f { display: flex; align-items: center; gap: 12px; padding: 12px 16px 4px; border-top: 1px solid var(--sf-ch); background: var(--sf-l); }
.fsh-n { margin: 0; flex: 1; font-weight: 700; font-size: 15px; white-space: nowrap; overflow: hidden; }
.fsh-n b { display: inline-block; font: 700 30px var(--f-num); color: var(--pri); }
.fsh-n span { font-weight: 400; font-size: 13px; color: var(--on-sfv); }

/* ---------- 物件詳細 ---------- */
.sc-room { padding: 0 0 calc(110px + var(--sb)); }
.hero { position: relative; aspect-ratio: 4 / 3; background: var(--sf-ch); }
.hero .ph-track { height: 100%; }
.hero-dots { position: absolute; left: 0; right: 0; bottom: 12px; display: flex; justify-content: center; gap: 6px; }
.hero-dots span { width: 8px; height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .7); box-shadow: 0 0 0 1px rgba(0, 0, 0, .15); transition: width .3s var(--spring); }
.hero-dots span.on { width: 22px; background: #fff; }
.hero-bar { position: absolute; z-index: 5; top: 0; left: 0; right: 0; display: flex; gap: 8px; padding: calc(10px + var(--st)) 12px 10px; transition: background .25s; }
.hero-bar .sp { flex: 1; }
.scrolled .hero-bar { background: var(--sf-c); box-shadow: 0 1px 0 rgba(0, 0, 0, .06); }
.fav-d.on { color: var(--fav); }
.rm-b { padding: 16px; }
.rm-area { margin: 0; font-size: 14px; color: var(--on-sfv); font-weight: 700; display: flex; align-items: center; }
.rm-n { margin: 2px 0 6px; font-size: 24px; font-weight: 800; line-height: 1.35; font-feature-settings: "palt"; }
.rm-rent { margin: 0; display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px; }
.rm-rent b { font: 700 40px/1.1 var(--f-num); color: var(--pri); letter-spacing: -.02em; }
.rm-rent .u { font-size: 18px; }
.rm-fee { margin-left: 10px; color: var(--on-sfv); font-size: 14px; }
.kchips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.kc { padding: 4px 12px; border-radius: 8px; background: var(--sf-c); font-size: 14px; font-weight: 500; }
.cost { margin-top: 14px; border-radius: 20px; background: var(--pri-c); color: var(--on-pri-c); overflow: hidden; }
.cost-h { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 60px; padding: 0 12px 0 18px; text-align: left; }
.cost-l { flex: 1; font-weight: 700; font-size: 15px; }
.cost-v { font: 700 22px var(--f-num); }
.cost-h .ic { transition: transform .3s var(--spring); }
.cost-h.open .ic { transform: rotate(180deg); }
.cost-d { margin: 0; padding: 0 18px 14px; }
.cost-d div { display: flex; justify-content: space-between; padding: 6px 0; border-top: 1px solid rgba(0, 32, 29, .12); font-size: 15px; }
.cost-d dt { margin: 0; }
.cost-d dd { margin: 0; font-family: var(--f-num); font-weight: 600; }
.cost-n { margin: 8px 0 0; font-size: 13px; }
.planc { display: grid; grid-template-columns: 46% 1fr; gap: 14px; align-items: center; margin-top: 14px; padding: 12px; border-radius: 20px; background: var(--sf-l); box-shadow: inset 0 0 0 1px var(--outline-v); }
.planc-svg { aspect-ratio: 1; display: grid; place-items: center; }
.planc-h { margin: 0; font-weight: 800; font-size: 17px; }
.planc-s { margin: 2px 0 6px; font-size: 14px; color: var(--on-sfv); }
.planc .tbtn { padding: 0 14px; background: var(--sec-c); color: var(--on-sec-c); }
.h2 { margin: 26px 0 10px; font-size: 18px; font-weight: 800; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; font-feature-settings: "palt"; }
.h2s { font-size: 13px; font-weight: 500; color: var(--on-sfv); }
.info { margin: 0; border-radius: 20px; background: var(--sf-l); padding: 4px 16px; }
.info div { display: grid; grid-template-columns: 5.5em 1fr; gap: 10px; padding: 10px 0; }
.info div + div { border-top: 1px solid var(--sf-ch); }
.info dt { color: var(--on-sfv); font-size: 14px; }
.info dd { margin: 0; font-size: 15px; }
.feats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.feats li { display: flex; align-items: center; gap: 6px; padding: 8px 10px; border-radius: 12px; font-size: 14px; }
.feats .yes { background: var(--sec-c); color: var(--on-sec-c); font-weight: 700; }
.feats .no { color: #5C6664; background: var(--sf-c); }
.bab { position: absolute; z-index: 10; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 12px; padding: 12px 16px calc(12px + var(--sb)); background: var(--sf-c); box-shadow: 0 -1px 0 rgba(0, 0, 0, .06); }
.bab-t { flex: 1; min-width: 0; }
.bab-r { margin: 0; font: 700 17px/1.3 var(--f-num); color: var(--pri); display: flex; flex-wrap: wrap; column-gap: 4px; }
.bab-s { margin: 0; font-size: 13px; color: var(--on-sfv); }

/* ---------- 画面上部（タブ・詳細） ---------- */
.tab-top { position: absolute; z-index: 6; top: 0; left: 0; right: 0; min-height: calc(64px + var(--st)); padding: calc(8px + var(--st)) 8px 8px; display: flex; align-items: center; gap: 4px; background: var(--sf); }
.tt-w { min-width: 0; }
.tt { margin: 0; font-size: 20px; font-weight: 800; padding-left: 4px; }
.tt-l { font-size: 26px; padding-left: 10px; }
.tt-s { margin: 0; padding-left: 4px; font-size: 13px; color: var(--on-sfv); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lead { margin: 0 2px 10px; color: var(--on-sfv); font-size: 15px; }

/* ---------- 間取り図 ---------- */
.plan-wrap { position: absolute; top: calc(68px + var(--st)); left: 0; right: 0; bottom: 214px; overflow: hidden; background: var(--sf-l); background-image: radial-gradient(circle, #DCE6E3 1px, transparent 1.2px); background-size: 16px 16px; touch-action: none; }
.plan-stage { position: absolute; inset: 8px; }
.plan-stage svg { width: 100%; height: 100%; transform-origin: 50% 50%; transition: transform .25s var(--std); }
.plan { font-family: var(--f-ja); }
.rm rect { stroke: #2B3533; stroke-width: 100; fill: #fff; transition: fill .2s; }
.rm-entry rect { fill: #F2EEE6; }
.rm-bath rect, .rm-wc rect, .rm-wash rect { fill: #E3F1F4; }
.rm-closet rect { fill: #EEF0EE; }
.rm-k rect, .rm-dk rect { fill: #FBF8F1; }
.rm-ldk rect { fill: #FBF8F1; }
.rm-balcony rect { fill: url(#hatch); stroke-width: 50; }
.rm[role="button"] { cursor: pointer; }
.rm.sel rect { fill: #B5EDE4; }
.rm:focus-visible { outline: none; }
.rm:focus-visible rect { stroke: var(--pri); }
.rl { text-anchor: middle; font-weight: 700; fill: #22302D; pointer-events: none; }
.rj { text-anchor: middle; font-family: var(--f-num); font-weight: 500; fill: #3F4947; pointer-events: none; }
.win { fill: #fff; stroke: #2B3533; stroke-width: 30; }
.door { fill: none; stroke: #6F7977; stroke-width: 30; }
.door-e { stroke: #0F766E; }
.outer { fill: none; stroke: #1C2523; stroke-width: 160; pointer-events: none; }
.dim path { stroke: #0F766E; stroke-width: 26; fill: none; }
.dim .dt { text-anchor: middle; font-family: var(--f-num); font-weight: 600; fill: #0B5B55; paint-order: stroke; stroke: #fff; stroke-width: 70; }
.dim-l path { stroke-width: 18; opacity: .7; }
.dim .dt-v { text-anchor: start; }
.dim-o path { stroke: #6F7977; }
.dim-o .dt { fill: #3F4947; }
.comp circle { fill: #fff; stroke: #BEC9C6; stroke-width: 30; }
.comp path { fill: #0F766E; }
.comp text { text-anchor: middle; font-family: var(--f-num); font-weight: 700; fill: #0F766E; }
.fu rect { fill: rgba(255, 230, 166, .9); stroke: #8A6A00; stroke-width: 30; }
.fu { cursor: grab; }
.fu.drag rect { fill: rgba(255, 214, 102, .95); }
.fu-t { text-anchor: middle; font-weight: 700; fill: #3A2A00; pointer-events: none; }
.plan-mini .rm rect { stroke-width: 120; }
.zoom { position: absolute; right: 10px; top: 10px; display: flex; flex-direction: column; gap: 8px; }
.plan-ctl { position: absolute; left: 0; right: 0; bottom: 0; height: 214px; padding: 12px 16px calc(12px + var(--sb)); background: var(--sf-c); border-radius: 28px 28px 0 0; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.segb { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px; background: var(--sf-l); font-weight: 700; font-size: 14px; color: var(--on-sfv); border-radius: 24px 8px 8px 24px; transition: border-radius .3s var(--spring), background .2s; }
.segb + .segb { border-radius: 8px 24px 24px 8px; }
.segb.on { background: var(--pri); color: var(--on-pri); border-radius: 24px; }
.rinfo { margin-top: 12px; padding: 12px 16px; border-radius: 20px; background: var(--sf-l); min-height: 88px; }
.ri-n { margin: 0; font-weight: 800; font-size: 20px; color: var(--pri); }
.ri-d { margin: 2px 0 0; display: flex; flex-wrap: wrap; gap: 2px 14px; font: 500 15px var(--f-num); color: var(--on-sf); }

/* ---------- お気に入り比較 ---------- */
.fvs { display: flex; gap: 10px; overflow-x: auto; margin: 0 -16px; padding: 4px 16px 8px; scrollbar-width: none; scroll-snap-type: x proximity; }
.fvs::-webkit-scrollbar { display: none; }
.fv { flex: none; width: 168px; border-radius: 20px; background: var(--sf-l); box-shadow: 0 1px 3px rgba(0, 0, 0, .1); overflow: hidden; position: relative; scroll-snap-align: start; transition: box-shadow .2s, transform .3s var(--spring); }
.fv.on { box-shadow: 0 0 0 3px var(--pri), 0 4px 14px rgba(15, 118, 110, .25); }
.fv-pick { display: block; width: 100%; aspect-ratio: 3 / 2; position: relative; }
.fv-pick img { width: 100%; height: 100%; object-fit: cover; }
.fv-ck { position: absolute; left: 8px; top: 8px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .95); color: transparent; box-shadow: inset 0 0 0 2px var(--outline); transition: background .2s; }
.fv.on .fv-ck { background: var(--pri); color: #fff; box-shadow: none; }
.fv-b { display: flex; flex-direction: column; padding: 8px 12px 12px; line-height: 1.4; }
.fv-r { font: 700 20px var(--f-num); color: var(--pri); }
.fv-r small { font-family: var(--f-ja); font-size: 13px; margin-left: 2px; }
.fv-s { font: 500 13px var(--f-num); }
.fv-n { font-size: 13px; color: var(--on-sfv); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fv-x { position: absolute; right: 4px; top: 4px; width: 40px; height: 40px; color: var(--fav); background: rgba(255, 255, 255, .95); }
.hint { display: flex; gap: 8px; align-items: flex-start; padding: 14px 16px; border-radius: 16px; background: var(--sf-c); color: var(--on-sfv); margin: 0; }
.cmp-w { overflow-x: auto; margin: 0 -16px; padding: 0 16px; scrollbar-width: thin; }
.cmp { border-collapse: separate; border-spacing: 0; min-width: 100%; background: var(--sf-l); border-radius: 20px; overflow: hidden; font-size: 14px; }
.cmp th, .cmp td { padding: 10px 10px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--sf-ch); }
.cmp tbody th { position: sticky; left: 0; z-index: 1; background: var(--sf-c); font-weight: 700; white-space: nowrap; color: var(--on-sfv); font-size: 13px; }
.cmp thead th { background: var(--sf-l); }
.cmp thead th:first-child { background: var(--sf-c); position: sticky; left: 0; z-index: 2; }
.cmp td { min-width: 112px; font-family: var(--f-num); font-weight: 500; }
.cmp td.best { background: var(--pri-c); color: var(--on-pri-c); font-weight: 700; }
.cmp-h { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 700; line-height: 1.4; }
.cmp-h img { width: 100%; max-width: 120px; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 10px; }
.cmp-n { display: flex; align-items: center; gap: 6px; margin: 8px 2px 0; font-size: 13px; color: var(--on-sfv); }
.best-k { width: 14px; height: 14px; border-radius: 4px; background: var(--pri-c); box-shadow: inset 0 0 0 1px var(--pri); }

/* ---------- 内見予約 ---------- */
.sc-v { padding-bottom: calc(120px + var(--sb)); }
.vp { display: grid; grid-template-columns: 96px 1fr; gap: 12px; align-items: center; padding: 10px; border-radius: 20px; background: var(--sf-l); }
.vp img { width: 96px; height: 72px; object-fit: cover; border-radius: 12px; }
.vp-r { margin: 0; font: 700 17px var(--f-num); color: var(--pri); }
.vp-a { margin: 0; font-size: 13px; color: var(--on-sfv); }
.cal { border-radius: 24px; background: var(--sf-l); padding: 8px 10px 12px; }
.cal-h { display: flex; align-items: center; justify-content: space-between; }
.cal-t { margin: 0; font: 600 17px var(--f-num); }
.cal-n svg { transform: scaleX(-1); }
.cal-w, .cal-g { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; }
.cal-w span { font-size: 12px; font-weight: 700; color: var(--on-sfv); padding: 4px 0; }
.cal-w .sun { color: #B3261E; }
.cal-w .sat { color: #1F5FAF; }
.cd { height: 44px; margin: 1px auto; width: 44px; border-radius: 22px; font: 500 15px var(--f-num); transition: background .2s, border-radius .3s var(--spring); }
.cd:disabled { color: #636D6B; font-weight: 400; }
.cd:not(:disabled) { font-weight: 700; }
.cd.today { box-shadow: inset 0 0 0 1px var(--pri); }
.cd.on { background: var(--pri); color: var(--on-pri); }
.cd:not(:disabled):active { border-radius: 12px; }
.slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.slot { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 52px; border-radius: 12px; border: 1px solid var(--outline); font: 600 15px var(--f-num); transition: background .2s, border-radius .3s var(--spring); line-height: 1.2; }
.slot small { font: 500 11px var(--f-ja); }
.slot:disabled { border-style: dashed; color: #59615F; background: var(--sf-c); }
.slot.on { background: var(--pri); border-color: var(--pri); color: var(--on-pri); border-radius: 26px; }
.tf-g { display: grid; gap: 14px; }
.tf { display: block; position: relative; }
.tf-l { display: block; font-size: 13px; font-weight: 700; color: var(--on-sfv); margin: 0 4px 4px; }
.tf input, .tf textarea { width: 100%; min-height: 56px; padding: 14px 16px; border: 1px solid var(--outline); border-radius: 12px; background: var(--sf-l); font-size: 16px; outline: none; resize: none; transition: border-color .2s, box-shadow .2s; }
.tf input:focus, .tf textarea:focus { border-color: var(--pri); box-shadow: inset 0 0 0 1px var(--pri); }
.tf input::placeholder, .tf textarea::placeholder { color: #6A7472; }
.tf.bad input { border-color: var(--err); box-shadow: inset 0 0 0 1px var(--err); }
.tf-e { display: block; color: var(--err); font-size: 13px; font-weight: 700; margin: 4px 4px 0; }
.tf-row .bgroup { margin-top: 2px; }
.demo-n { display: flex; gap: 8px; align-items: flex-start; margin: 16px 2px 0; font-size: 14px; color: var(--on-sfv); }
.dlg-w { position: absolute; inset: 0; z-index: 50; display: grid; place-items: center; padding: 24px; background: rgba(0, 0, 0, .32); opacity: 0; transition: opacity .2s; }
.dlg-w.on { opacity: 1; }
.dlg { width: min(320px, 100%); border-radius: 28px; background: var(--sf-ch); padding: 24px 24px 16px; transform: scale(.9); transition: transform .3s var(--spring); }
.dlg-w.on .dlg { transform: none; }
.dlg-t { margin: 0 0 12px; font-size: 22px; font-weight: 800; line-height: 1.35; }
.dlg-b { font-size: 15px; color: var(--on-sfv); }
.dlg-b p { margin: 0; }
.dlg-dl { margin: 0; }
.dlg-dl div { display: grid; grid-template-columns: 4em 1fr; gap: 8px; padding: 4px 0; }
.dlg-dl dt { color: var(--on-sfv); }
.dlg-dl dd { margin: 0; color: var(--on-sf); font-weight: 700; }
.dlg-a { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }
.sc-done { padding-top: calc(28px + var(--st)); }
.done { text-align: center; }
.done-ph { position: relative; width: 220px; margin: 0 auto 18px; }
.done-ph img { width: 220px; height: 150px; object-fit: cover; border-radius: 28px; }
.done-ck { position: absolute; right: -12px; bottom: -12px; width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; background: var(--pri); color: #fff; box-shadow: 0 6px 16px rgba(15, 118, 110, .4); animation: pop .6s var(--spring) .15s both; }
@keyframes pop { from { transform: scale(0) rotate(-30deg); } }
.done-t { margin: 0; font-size: 22px; font-weight: 800; font-feature-settings: "palt"; word-break: keep-all; }
.done-b { margin: 6px 0 16px; color: var(--on-sfv); font-size: 15px; }
.done-s { display: block; font-size: 13px; }
.done .info { text-align: left; }
.done-a { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: 18px; }
.vl { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.vi { display: flex; align-items: center; gap: 12px; padding: 10px 6px 10px 10px; border-radius: 20px; background: var(--sf-l); }
.vi-d { flex: none; width: 60px; height: 72px; border-radius: 16px; background: var(--pri-c); color: var(--on-pri-c); display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.15; }
.vi-m { font-size: 12px; font-weight: 700; }
.vi-dd { font: 700 26px var(--f-num); }
.vi-w { font-size: 12px; font-weight: 700; }
.vi-b { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.45; border-radius: 12px; }
.vi-t { font: 600 16px var(--f-num); color: var(--pri); }
.vi-n { font-weight: 700; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vi-a { font-size: 13px; color: var(--on-sfv); }

/* ---------- その他 ---------- */
.lst { border-radius: 24px; background: var(--sf-l); overflow: hidden; }
.li { display: flex; align-items: center; gap: 16px; width: 100%; min-height: 72px; padding: 10px 16px; text-align: left; }
.li + .li { border-top: 1px solid var(--sf-ch); }
.li-i { width: 40px; height: 40px; border-radius: 20px; display: grid; place-items: center; background: var(--sec-c); color: var(--on-sec-c); flex: none; }
.li-i-e { background: #F9DEDC; color: #8C1D18; }
.li-t { display: flex; flex-direction: column; line-height: 1.45; }
.li-t span { font-size: 14px; color: var(--on-sfv); }
.ab { text-align: center; padding: 6px 0 18px; }
.ab img { width: 108px; height: 108px; border-radius: 30px; margin: 0 auto 10px; box-shadow: 0 10px 26px rgba(15, 118, 110, .3); }
.ab-n { margin: 0; font-weight: 800; font-size: 22px; }
.ab-v { margin: 0; color: var(--on-sfv); font-size: 14px; }
.card-t { border-radius: 20px; background: var(--sf-l); padding: 14px 16px; font-size: 15px; }
.card-t p { margin: 0; }
.card-t .sub { margin-top: 10px; color: var(--on-sfv); }
.tech { margin: 0; padding-left: 1.2em; }
.tech li + li { margin-top: 4px; }
.cta { display: flex; flex-direction: column; gap: 2px; margin-top: 18px; padding: 16px 20px; border-radius: 24px; background: var(--pri); color: var(--on-pri); }
.cta-t { font-weight: 800; font-size: 17px; }
.cta-s { font-size: 14px; }

/* スナックバー */
.snack { position: absolute; z-index: 40; left: 12px; right: 12px; bottom: calc(var(--navh) + 12px + var(--sb)); display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 6px 8px 6px 16px; border-radius: 4px; background: #2B3231; color: #ECF2F0; font-size: 14px; box-shadow: 0 3px 10px rgba(0, 0, 0, .25); opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .2s, transform .3s var(--spring); }
.snack.on { opacity: 1; transform: none; pointer-events: auto; }
.navbar.hide ~ .snack { bottom: calc(96px + var(--sb)); }
.snack-m { flex: 1; }
.snack-a { min-height: 40px; padding: 0 12px; border-radius: 20px; color: #84D6CB; font-weight: 700; white-space: nowrap; }

/* スプラッシュ・オンボーディング */
.splash { position: fixed; inset: 0; z-index: 100; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; background: var(--sf); transition: opacity .3s; }
.splash.out { opacity: 0; }
.splash img { width: 108px; height: 108px; border-radius: 30px; animation: pop .6s var(--spring) both; }
.splash-n { margin: 0; font-weight: 800; font-size: 21px; letter-spacing: .08em; }
.onb { position: absolute; inset: 0; z-index: 90; display: flex; flex-direction: column; background: var(--sf); transition: opacity .3s; }
.onb.out { opacity: 0; }
.onb-ph { flex: 1; min-height: 0; background-size: cover; background-position: center; border-radius: 0 0 40px 40px; }
.onb-c { padding: 22px 22px calc(20px + var(--sb)); }
.onb-t { margin: 0; font-size: 26px; font-weight: 800; line-height: 1.4; font-feature-settings: "palt"; word-break: keep-all; }
.onb-b { margin: 8px 0 0; color: var(--on-sfv); }
.onb-d { display: flex; gap: 6px; margin: 16px 0; }
.onb-d span { width: 8px; height: 8px; border-radius: 4px; background: var(--outline-v); transition: width .3s var(--spring); }
.onb-d span.on { width: 24px; background: var(--pri); }
.onb-a { display: flex; justify-content: space-between; align-items: center; }
.nojs, .fatal { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 200; padding: 16px; border-radius: 16px; background: #fff; box-shadow: 0 10px 30px rgba(0, 0, 0, .2); font-size: 15px; }
.fatal-t { font-weight: 800; margin: 0 0 4px; }
.fatal a { color: var(--pri); font-weight: 700; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; transition-duration: .001ms !important; }
}

.chk { list-style: none; margin: 0; padding: 4px; border-radius: 20px; background: var(--sf-l); }
.chk-i { position: relative; display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 12px; border-radius: 14px; cursor: pointer; font-size: 15px; }
.chk-i input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chk-b { width: 24px; height: 24px; border-radius: 6px; border: 2px solid var(--outline); display: grid; place-items: center; color: transparent; flex: none; transition: background .2s, border-radius .3s var(--spring); }
.chk-i input:checked + .chk-b { background: var(--pri); border-color: var(--pri); color: #fff; border-radius: 12px; }
.chk-i input:checked ~ span:last-child { color: var(--on-sfv); text-decoration: line-through; }
.chk-i input:focus-visible + .chk-b { outline: 3px solid var(--pri); outline-offset: 2px; }
.bab-h { font-family: var(--f-ja); font-size: 14px; font-weight: 700; color: var(--on-sfv); }
