/* GoGo Asia 顧客専用画面。色・書体は公開ページ(web/index.html)と同じ ACS のブランドに合わせる */
:root {
  --ink: #111A24; --ink-2: #3E4A57; --muted: #646F7C;
  --ground: #FFFFFF; --band: #F4F6F8; --band-2: #EDF1F4;
  --line: #E2E7EC; --line-2: #EFF2F5;
  --brand: #022553; --brand-ink: #FFFFFF; --brand-soft: #EEF3FB; --brand-line: #C9D7EA;
  --blue: #0047C4; --teal: #02AAB9; --green: #037352; --green-soft: #E7F2EE;
  --amber: #FAB438; --amber-ink: #8A5A00; --amber-soft: #FDF3E0; --coral: #F56558; --coral-ink: #B8392D; --coral-soft: #FDECEA; --violet: #6442E5;
  --shadow: 0 1px 2px rgba(2, 37, 83, .06), 0 6px 20px rgba(2, 37, 83, .07);
  --r: 14px; --r-sm: 9px;
  --f: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #EDF1F5; --ink-2: #BCC6D1; --muted: #8B97A4;
    --ground: #0E1419; --band: #161D24; --band-2: #1D252D; --line: #2A333C; --line-2: #222A32;
    --brand: #6FA0F0; --brand-ink: #061325; --brand-soft: #15243A; --brand-line: #2B4468;
    --blue: #6FA0F0; --teal: #3FC9D6; --green: #5FB39A; --green-soft: #13302A;
    --amber: #FAC25E; --amber-ink: #FAC25E; --amber-soft: #2F2611; --coral: #FA8277; --coral-ink: #FA8277; --coral-soft: #3A1E1C; --violet: #9A83F2;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 6px 20px rgba(0,0,0,.35);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ink: #EDF1F5; --ink-2: #BCC6D1; --muted: #8B97A4;
  --ground: #0E1419; --band: #161D24; --band-2: #1D252D; --line: #2A333C; --line-2: #222A32;
  --brand: #6FA0F0; --brand-ink: #061325; --brand-soft: #15243A; --brand-line: #2B4468;
  --blue: #6FA0F0; --teal: #3FC9D6; --green: #5FB39A; --green-soft: #13302A;
  --amber: #FAC25E; --amber-ink: #FAC25E; --amber-soft: #2F2611; --coral: #FA8277; --coral-ink: #FA8277; --coral-soft: #3A1E1C; --violet: #9A83F2;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 6px 20px rgba(0,0,0,.35);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--ground); color: var(--ink); font-family: var(--f); font-size: 15px; line-height: 1.7; -webkit-font-smoothing: antialiased; }
a { color: var(--blue); }
h1, h2 { font-weight: 800; letter-spacing: -.022em; line-height: 1.25; text-wrap: balance; }
h1 { font-size: clamp(1.45rem, 3vw, 1.9rem); margin: 0; }
h2 { font-size: 1.15rem; margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
[hidden] { display: none !important; }
.num { font-variant-numeric: tabular-nums; }
.boot { padding: 40px 16px; color: var(--muted); text-align: center; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ボタン・入力 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 1px solid var(--line); background: var(--ground); color: var(--ink); border-radius: 999px; padding: 10px 20px; font-weight: 700; font-size: .92rem; cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn:hover { border-color: var(--ink-2); }
.btn-p { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.btn-p:hover { filter: brightness(1.12); border-color: var(--brand); }
.btn-sm { padding: 6px 14px; font-size: .84rem; }
.btn[disabled] { opacity: .55; cursor: progress; }
.arrow::after { content: "→"; font-weight: 400; }
.link { background: none; border: 0; padding: 0; color: var(--blue); cursor: pointer; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.fld { display: grid; gap: 6px; font-size: .85rem; color: var(--ink-2); font-weight: 600; min-width: 0; }
.fld input, .fld textarea, .fld select, select.inp, textarea.inp { font-weight: 400; font-size: 1rem; background: var(--ground); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 11px 13px; width: 100%; color: var(--ink); }
.fld input:focus, .fld textarea:focus, select.inp:focus, textarea.inp:focus { outline: 2px solid var(--blue); outline-offset: 0; border-color: transparent; }
.pw { position: relative; }
.pw input { padding-right: 76px; }
.pw button { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: var(--band); border-radius: 7px; padding: 5px 10px; font-size: .78rem; cursor: pointer; color: var(--ink-2); }
.msg { font-size: .88rem; min-height: 1.5em; margin: 0; }
.msg.err { color: var(--coral-ink); font-weight: 600; }
.msg.ok { color: var(--green); font-weight: 600; }
.hint { font-size: .8rem; color: var(--muted); margin: 0; }
.rules { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: .82rem; color: var(--muted); }
.rules li::before { content: "・"; }
.rules li.ok { color: var(--green); }
.rules li.ok::before { content: "✓ "; }

/* ログイン画面 */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 32px 16px; background: var(--band); }
.auth-card { width: min(440px, 100%); background: var(--ground); border-radius: 18px; padding: 30px 26px; box-shadow: var(--shadow); display: grid; gap: 18px; }
.auth-card form { display: grid; gap: 14px; }
.auth-card h1 { font-size: 1.4rem; }
.brandline { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -.02em; color: var(--ink); text-decoration: none; }
.brandline img { width: 30px; height: 30px; }
.tag { display: inline-flex; align-items: center; font-size: .68rem; font-weight: 700; letter-spacing: .12em; padding: 2px 9px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); }
.sep { border: 0; border-top: 1px solid var(--line-2); margin: 2px 0; }

/* ヘッダー */
.hdr { position: sticky; top: 0; z-index: 20; background: var(--ground); border-bottom: 1px solid var(--line-2); }
.hdr-in { max-width: 1180px; margin: 0 auto; padding: 12px 24px; display: flex; align-items: center; gap: 16px; }
.hdr-sp { flex: 1; }
.hdr nav { display: flex; gap: 4px; }
.hdr nav a { padding: 7px 13px; border-radius: 999px; font-size: .88rem; font-weight: 600; color: var(--ink-2); text-decoration: none; }
.hdr nav a:hover, .hdr nav a[aria-current="page"] { background: var(--band); color: var(--ink); }
.who { position: relative; }
.who > button { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--ground); border-radius: 999px; padding: 5px 12px 5px 5px; cursor: pointer; font-size: .86rem; font-weight: 600; max-width: 240px; }
.who > button span.t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.av { width: 28px; height: 28px; border-radius: 50%; background: var(--brand); color: var(--brand-ink); display: grid; place-items: center; font-size: .8rem; font-weight: 800; flex: none; }
.menu { position: absolute; right: 0; top: calc(100% + 6px); background: var(--ground); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 6px; min-width: 220px; display: grid; }
.menu a, .menu button { text-align: left; background: none; border: 0; padding: 9px 12px; border-radius: 8px; font-size: .9rem; color: var(--ink); text-decoration: none; cursor: pointer; }
.menu a:hover, .menu button:hover { background: var(--band); }
.menu .meta { padding: 8px 12px 10px; font-size: .78rem; color: var(--muted); border-bottom: 1px solid var(--line-2); margin-bottom: 4px; }
@media (max-width: 720px) {
  .hdr-in { padding: 10px 16px; gap: 10px; }
  .hdr nav { display: none; }
  .who > button span.t { display: none; }
  .who > button { padding: 4px; }
}

/* 本体 */
.wrap { max-width: 1180px; margin: 0 auto; padding: 28px 24px 64px; display: grid; gap: 34px; }
@media (max-width: 720px) { .wrap { padding: 20px 16px 48px; gap: 28px; } }
.flash { background: var(--green-soft); color: var(--green); border-radius: 12px; padding: 12px 16px; font-weight: 600; font-size: .92rem; }
.flash.warn { background: var(--amber-soft); color: var(--amber-ink); }
.hello { display: grid; gap: 6px; }
.eyebrow { font-size: .7rem; letter-spacing: .18em; color: var(--muted); font-weight: 700; text-transform: uppercase; }
.hello p { margin: 0; color: var(--ink-2); }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 860px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.kpi { background: var(--band); border-radius: var(--r); padding: 16px 18px; display: grid; gap: 2px; text-decoration: none; color: inherit; border: 1px solid transparent; }
a.kpi:hover { border-color: var(--brand-line); }
.kpi small { font-size: .78rem; color: var(--muted); font-weight: 600; }
.kpi b { font-size: 2rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.15; }
.kpi b em { font-style: normal; font-size: .85rem; font-weight: 600; color: var(--muted); margin-left: 4px; }
.kpi.alert b { color: var(--coral-ink); }
.sec { display: grid; gap: 14px; }
.sec-hd { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.sec-hd p { margin: 2px 0 0; font-size: .86rem; color: var(--muted); }

/* 提案のカード */
.props { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: 16px; }
.pcard { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: grid; grid-template-rows: auto 1fr; background: var(--ground); text-decoration: none; color: inherit; transition: box-shadow .15s, border-color .15s; }
.pcard:hover { box-shadow: var(--shadow); border-color: var(--brand-line); }
.pcard .cv { aspect-ratio: 16 / 8; background: var(--band-2); position: relative; }
.pcard .cv img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pcard .cv .badge { position: absolute; top: 10px; left: 10px; }
.badge { display: inline-flex; font-size: .72rem; font-weight: 800; padding: 3px 10px; border-radius: 999px; background: var(--coral); color: #fff; }
.badge.soft { background: var(--ground); color: var(--ink-2); border: 1px solid var(--line); }
.pcard .bd { padding: 16px 18px 18px; display: grid; gap: 10px; align-content: start; }
.pcard h3 { margin: 0; font-size: 1.05rem; line-height: 1.4; }
.pcard p { margin: 0; font-size: .86rem; color: var(--ink-2); }
.bar { height: 8px; border-radius: 4px; background: var(--band-2); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--green); border-radius: 4px; }
.prog { display: flex; justify-content: space-between; gap: 10px; font-size: .8rem; color: var(--muted); }
.prog b { color: var(--ink); }
.pcard .foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.pcard .foot small { color: var(--muted); font-size: .78rem; }
.empty { border: 1px dashed var(--line); border-radius: var(--r); padding: 26px 20px; text-align: center; color: var(--muted); font-size: .92rem; display: grid; gap: 10px; justify-items: center; }

/* 保存した物件 */
.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; background: var(--band); padding: 4px; border-radius: 999px; }
.seg button { border: 0; background: none; padding: 6px 13px; border-radius: 999px; font-size: .84rem; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--ground); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.seg button .n { color: var(--muted); font-weight: 500; margin-left: 4px; }
.rows { display: grid; gap: 10px; }
.row { display: grid; grid-template-columns: 112px minmax(0, 1fr) 200px; gap: 16px; align-items: start; border: 1px solid var(--line); border-radius: var(--r); padding: 12px; background: var(--ground); }
.row .th { aspect-ratio: 4 / 3; border-radius: 9px; overflow: hidden; background: var(--band-2); display: grid; place-items: center; color: var(--muted); font-size: .72rem; text-align: center; }
.row .th img { width: 100%; height: 100%; object-fit: cover; display: block; }
.row .info { display: grid; gap: 4px; min-width: 0; }
.row .info a.t { font-weight: 700; color: var(--ink); text-decoration: none; line-height: 1.45; }
.row .info a.t:hover { text-decoration: underline; }
.row .info .sub { font-size: .82rem; color: var(--muted); }
.row .info .facts { display: flex; gap: 6px 14px; flex-wrap: wrap; font-size: .82rem; color: var(--ink-2); }
.row .info textarea { min-height: 44px; resize: vertical; font-size: .88rem; padding: 8px 10px; }
.row .side { display: grid; gap: 8px; }
.row .side .rm { justify-self: end; }
.st { font-size: .74rem; font-weight: 700; padding: 2px 9px; border-radius: 999px; justify-self: start; }
.st-candidate { background: var(--brand-soft); color: var(--brand); }
.st-viewing { background: var(--green-soft); color: var(--green); }
.st-negotiating { background: var(--amber-soft); color: var(--amber-ink); }
.st-passed { background: var(--band-2); color: var(--muted); }
@media (max-width: 720px) {
  .row { grid-template-columns: 84px minmax(0, 1fr); }
  .row .side { grid-column: 1 / -1; grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
}

/* 連絡 */
.contact { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 18px; align-items: start; }
@media (max-width: 860px) { .contact { grid-template-columns: minmax(0, 1fr); } }
.panel { background: var(--band); border-radius: var(--r); padding: 18px; display: grid; gap: 12px;  align-content: start; }
.log { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.log li { background: var(--ground); border-radius: 10px; padding: 10px 12px; display: grid; gap: 2px; font-size: .86rem; }
.log li small { color: var(--muted); font-size: .76rem; }

.ftr { border-top: 1px solid var(--line-2); padding: 22px 24px 40px; text-align: center; font-size: .8rem; color: var(--muted); }
.ftr a { color: var(--muted); }

/* ご提案の物件(ダッシュボード) */
.pblock { border: 1px solid var(--line); border-radius: var(--r); padding: 18px; display: grid; gap: 14px; background: var(--ground); }
.pb-hd { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 300px); gap: 16px; align-items: start; }
.pb-t h3 { margin: 0; font-size: 1.1rem; line-height: 1.4; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.pb-t p { margin: 4px 0 0; font-size: .86rem; color: var(--ink-2); }
.pb-side { display: grid; gap: 8px; }
.pb-side .btn { justify-self: start; }
.items { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(230px, 100%), 1fr)); gap: 12px; }
.it { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; display: grid; grid-template-rows: auto 1fr; background: var(--ground); }
.it-ph { position: relative; aspect-ratio: 16 / 10; background: var(--band-2); display: block; }
.it-ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.it-ph .noimg { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: .76rem; }
.it-tag { position: absolute; top: 8px; left: 8px; font-size: .7rem; font-weight: 800; padding: 2px 8px; border-radius: 999px; background: var(--ground); color: var(--brand); }
.it-tag.new { color: var(--violet); }
.it-dec { position: absolute; bottom: 8px; left: 8px; font-size: .72rem; font-weight: 800; padding: 3px 9px; border-radius: 999px; color: #fff; }
.d-interested.it-dec { background: var(--green); } .d-viewing.it-dec { background: var(--blue); } .d-hold.it-dec { background: var(--amber); color: #3a2a00; } .d-pass.it-dec { background: var(--muted); }
.it-bd { padding: 10px 12px 12px; display: grid; gap: 4px; align-content: start; }
.it-nm { font-weight: 700; font-size: .9rem; line-height: 1.4; color: var(--ink); text-decoration: none; }
.it-nm:hover { text-decoration: underline; }
.it-ar { font-size: .76rem; color: var(--muted); }
.it-facts { font-size: .78rem; color: var(--ink-2); }
.it-btns { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; margin-top: 6px; }
.it-btns button { border: 1px solid var(--line); background: var(--ground); border-radius: 8px; padding: 6px 0; font-size: .74rem; font-weight: 700; color: var(--ink-2); cursor: pointer; }
.it-btns button:hover { border-color: var(--ink-2); }
.it-btns button[aria-pressed="true"].d-interested { background: var(--green); border-color: var(--green); color: #fff; }
.it-btns button[aria-pressed="true"].d-viewing { background: var(--blue); border-color: var(--blue); color: #fff; }
.it-btns button[aria-pressed="true"].d-hold { background: var(--amber); border-color: var(--amber); color: #3a2a00; }
.it-btns button[aria-pressed="true"].d-pass { background: var(--muted); border-color: var(--muted); color: #fff; }
@media (max-width: 720px) {
  .pblock { padding: 14px 12px; }
  .pb-hd { grid-template-columns: minmax(0, 1fr); }
  .items { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .it-bd { padding: 8px 9px 10px; }
  .it-nm { font-size: .82rem; }
  .it-btns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .it-btns button { padding: 7px 0; }
}

/* 提案のページ・物件の詳細ページ */
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: .84rem; color: var(--muted); }
.crumbs a { color: var(--blue); text-decoration: none; font-weight: 600; }
.crumbs a:hover { text-decoration: underline; }
.crumbs [aria-current] { color: var(--ink); font-weight: 600; }
.pipe { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 6px; }
.pipe li { background: var(--band); border-radius: 10px; padding: 10px 12px; display: grid; gap: 0; }
.pipe li b { font-size: 1.4rem; font-weight: 800; line-height: 1.2; color: var(--ink-2); }
.pipe li span { font-size: .76rem; color: var(--muted); }
.pipe li.done b { color: var(--blue); }
.pipe li.now { background: var(--brand); }
.pipe li.now b, .pipe li.now span { color: var(--brand-ink); }
.qs { display: grid; gap: 10px; }
.q { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; align-items: start; background: var(--band); border-radius: 12px; padding: 14px; }
.qn { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: .8rem; font-weight: 800; background: var(--brand-soft); color: var(--brand); }
.qn.done { background: var(--green); color: #fff; }
.q b { display: block; font-size: .92rem; margin-bottom: 8px; }
.opts { display: flex; gap: 6px; flex-wrap: wrap; }
.opts button { border: 1px solid var(--line); background: var(--ground); border-radius: 999px; padding: 7px 14px; font-size: .84rem; cursor: pointer; }
.opts button[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.steps li { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 12px; align-items: center; background: var(--band); border-radius: 12px; padding: 10px 14px; }
.steps li .w { font-weight: 800; color: var(--muted); }
.steps li.now { box-shadow: inset 4px 0 0 var(--blue); }
.steps li.now .w { color: var(--blue); }
.steps li b { display: block; font-size: .92rem; }
.steps li small { color: var(--muted); font-size: .8rem; }
.mk { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 860px) { .mk { grid-template-columns: minmax(0, 1fr); } }
.mk-t { font-size: .92rem; }
.mk-row { display: grid; grid-template-columns: 7.5em minmax(0, 1fr) auto; gap: 10px; align-items: center; font-size: .82rem; }
.mk-track { position: relative; height: 12px; background: var(--ground); border-radius: 6px; }
.mk-track i { position: absolute; top: 0; bottom: 0; border-radius: 6px; background: var(--blue); }
.mk-track i.muted { background: var(--muted); opacity: .5; }
.mk-v { font-weight: 700; white-space: nowrap; }
.mk-delta { display: flex; align-items: baseline; gap: 10px; }
.mk-delta b { font-size: 2rem; font-weight: 800; color: var(--coral-ink); }
.mk-delta span { font-size: .8rem; color: var(--muted); }
.mk-sig { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.mk-sig li { display: grid; gap: 0; background: var(--ground); border-radius: 10px; padding: 10px 12px; font-size: .86rem; }
.mk-sig li span { color: var(--muted); font-size: .8rem; }
.notes summary { cursor: pointer; font-weight: 700; font-size: .86rem; color: var(--ink-2); }
.notes ul { margin: 8px 0 0; padding-left: 1.2em; font-size: .8rem; color: var(--muted); display: grid; gap: 4px; }
.ipage { gap: 20px; }
.ip-top { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.ip-media { position: relative; aspect-ratio: 4 / 3; border-radius: var(--r); overflow: hidden; background: var(--band-2); }
.ip-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ip-media .noimg { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: .86rem; padding: 16px; text-align: center; }
.ip-media .it-tag { top: 12px; left: 12px; font-size: .78rem; padding: 3px 10px; }
.ip-media .credit { position: absolute; right: 10px; bottom: 10px; font-size: .7rem; color: #fff; background: rgba(0,0,0,.55); padding: 2px 8px; border-radius: 6px; }
.ip-main { display: grid; gap: 12px; align-content: start; }
.ip-main h1 { font-size: clamp(1.3rem, 2.6vw, 1.7rem); }
.ip-sub { margin: -6px 0 0; color: var(--muted); font-size: .9rem; }
.ip-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { font-size: .74rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--band); color: var(--ink-2); }
.mtiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.mtiles > div { background: var(--band); border-radius: 10px; padding: 9px 12px; display: grid; gap: 0; min-width: 0; }
.mtiles small { font-size: .72rem; color: var(--muted); font-weight: 600; }
.mtiles b { font-size: 1.35rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.3; overflow-wrap: anywhere; }
.mtiles b.txt { font-size: .9rem; line-height: 1.5; }
.mtiles b em { font-style: normal; font-size: .75rem; font-weight: 600; color: var(--muted); margin-left: 3px; }
.decbox { gap: 6px; }
.decbox .hint { margin-top: -4px; }
.it-btns.big button { padding: 10px 0; font-size: .86rem; }
.ip-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 14px; }
.fit { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.fit li { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: .88rem; }
.fchip { font-size: .76rem; font-weight: 800; padding: 3px 12px; border-radius: 999px; color: #fff; min-width: 64px; text-align: center; }
.fchip.f2 { background: var(--green); } .fchip.f1 { background: var(--amber); color: #3a2a00; } .fchip.f0 { background: var(--coral); } .fchip.fn { background: var(--band-2); color: var(--muted); }
.pm { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: .88rem; }
.pm li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 8px; }
.pm li::before { content: ""; width: 12px; height: 12px; border-radius: 50%; margin-top: 6px; }
.pm.plus li::before { background: var(--green); }
.pm.minus li::before { border: 2px solid var(--amber); }
.pm + .pm { margin-top: 10px; }
.ip-nav { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 10px; align-items: center; }
.ip-nav a { overflow: hidden; text-overflow: ellipsis; }
.ip-nav a:first-child { justify-self: start; max-width: 100%; }
.ip-nav a:last-child { justify-self: end; max-width: 100%; }
@media (max-width: 860px) {
  .ip-top, .ip-2 { grid-template-columns: minmax(0, 1fr); }
  .mtiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ip-nav { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .ip-nav a:nth-child(2) { display: none; }
}
.ip-nav .btn { min-width: 0; }
.ip-nav .btn .lg { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.ip-nav .btn .sm { display: none; }
@media (max-width: 860px) {
  .ip-nav .btn .lg { display: none; }
  .ip-nav .btn .sm { display: inline; }
}

/* ═══ 顧客画面の拡充(探す・検討リスト・比較・分析・メッセージ) ═══ */
/* ヘッダーのメニューと、スマホの下部タブ */
.mainnav { display: flex; gap: 2px; margin-left: auto; }
.mainnav a { position: relative; padding: 7px 12px; border-radius: 999px; font-size: .86rem; font-weight: 600; color: var(--ink-2); text-decoration: none; white-space: nowrap; }
.mainnav a:hover, .mainnav a[aria-current="page"] { background: var(--band); color: var(--ink); }
.nb { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; margin-left: 4px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); font-size: .7rem; font-weight: 800; vertical-align: 1px; }
.mainnav a[href="/app/messages"] .nb { background: var(--coral); color: #fff; }
.hdr-in .who { margin-left: 8px; }
.tabbar { display: none; }
@media (max-width: 1080px) { .mainnav a { padding: 7px 9px; font-size: .82rem; } }
@media (max-width: 900px) {
  .mainnav { display: none; }
  .hdr-in .who { margin-left: auto; }
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }
  .tabbar { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--ground); border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px)); }
  .tabbar a { position: relative; display: grid; justify-items: center; gap: 2px; padding: 6px 0; border-radius: 10px; font-size: .68rem; font-weight: 600; color: var(--muted); text-decoration: none; }
  .tabbar a svg { width: 22px; height: 22px; }
  .tabbar a[aria-current="page"] { color: var(--brand); background: var(--brand-soft); }
  .tabbar a i { position: absolute; top: 2px; right: calc(50% - 22px); min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px; background: var(--coral); color: #fff; font-style: normal; font-size: .62rem; font-weight: 800; display: grid; place-items: center; }
}
@media (max-width: 420px) { .bl-t { display: none; } }

/* 段階の色(チップ・棒・図) */
.st-candidate { background: var(--brand-soft); color: var(--brand); }
.st-comparing { background: #EEE9FD; color: var(--violet); }
.st-viewing { background: var(--green-soft); color: var(--green); }
.st-negotiating { background: var(--amber-soft); color: var(--amber-ink); }
.st-decided { background: var(--green); color: #fff; }
.st-passed { background: var(--band-2); color: var(--muted); }

/* ホーム */
.home-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 22px; align-items: start; }
@media (max-width: 860px) { .home-grid { grid-template-columns: minmax(0, 1fr); } }
.todo { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.todo a { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 12px 14px; border-radius: 12px; background: var(--band); color: var(--ink); text-decoration: none; font-size: .9rem; font-weight: 600; }
.todo a:hover { background: var(--band-2); }
.todo a svg { width: 20px; height: 20px; color: var(--blue); }
.todo li.alert a { background: var(--coral-soft); }
.todo li.alert a svg { color: var(--coral-ink); }
.todo a b { color: var(--muted); font-weight: 400; }
.funnel { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.funnel a { display: grid; grid-template-columns: 6.5em minmax(0, 1fr) 2.5em; gap: 10px; align-items: center; text-decoration: none; color: var(--ink); font-size: .86rem; padding: 4px 0; }
.fl-bar { height: 14px; background: var(--band); border-radius: 7px; overflow: hidden; }
.fl-bar i { display: block; height: 100%; border-radius: 7px; min-width: 2px; }
.fl-bar i.st-candidate { background: var(--brand); } .fl-bar i.st-comparing { background: var(--violet); } .fl-bar i.st-viewing { background: var(--green); }
.fl-bar i.st-negotiating { background: var(--amber); } .fl-bar i.st-decided { background: var(--green); } .fl-bar i.st-passed { background: var(--muted); opacity: .5; }
.funnel b { text-align: right; }
.feed { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: .86rem; }
.feed li { display: grid; grid-template-columns: 6.5em minmax(0, 1fr); gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line-2); }
.feed small { color: var(--muted); }
.link { font-size: .86rem; text-decoration: none; }

/* 公開物件のカード */
.lgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); gap: 14px; }
.lc { position: relative; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--ground); display: grid; grid-template-rows: auto 1fr; }
.lc-ph { position: relative; aspect-ratio: 16 / 10; background: var(--band-2); display: block; }
.lc-ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lc-ph .noimg { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: .76rem; }
.lc-st { position: absolute; left: 8px; bottom: 8px; font-size: .72rem; font-weight: 800; padding: 3px 9px; border-radius: 999px; background: var(--brand); color: #fff; }
.heart { position: absolute; top: 8px; right: 8px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); display: grid; place-items: center; cursor: pointer; color: var(--ink-2); box-shadow: 0 1px 4px rgba(0,0,0,.15); }
.heart svg { width: 20px; height: 20px; }
.heart.on { color: var(--coral); }
.heart.on svg { fill: var(--coral); }
.lc-bd { padding: 10px 12px 12px; display: grid; gap: 3px; align-content: start; }
.lc-num b { font-size: 1.15rem; font-weight: 800; }
.lc-num small { color: var(--muted); font-size: .74rem; margin-left: 3px; }
@media (max-width: 720px) { .lgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } .lc-bd { padding: 8px 9px 10px; } .lc-num b { font-size: 1rem; } }

/* 探す */
.filters { gap: 14px; }
.fgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 14px; }
fieldset.fld { border: 0; padding: 0; margin: 0; min-width: 0; }
fieldset.fld legend { padding: 0; margin-bottom: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chk { display: inline-flex; }
.chk input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chk span { border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; font-size: .82rem; font-weight: 600; cursor: pointer; background: var(--ground); color: var(--ink-2); }
.chk input:checked + span { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.chk input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }
.range { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 6px; align-items: center; }
.filters input[type=number], .filters input:not([type]) , #fkw { font-size: 1rem; background: var(--ground); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 9px 12px; width: 100%; color: var(--ink); font-weight: 400; }
.factions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.rbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.sortsel { display: inline-flex; gap: 8px; align-items: center; font-size: .84rem; color: var(--ink-2); font-weight: 600; }
.sortsel select { width: auto; padding: 7px 10px; font-size: .86rem; }
.more { display: flex; justify-content: center; }

/* 物件の詳細(写真の切り替え・設備) */
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 6px; margin-top: 8px; }
.thumbs button { border: 2px solid transparent; padding: 0; border-radius: 8px; overflow: hidden; cursor: pointer; aspect-ratio: 4 / 3; background: var(--band-2); }
.thumbs button[aria-current="true"] { border-color: var(--blue); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.story { margin: 0; font-size: .9rem; line-height: 1.8; white-space: pre-wrap; }
.util { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; align-items: flex-start; }
.util li { font-size: .8rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.util li.y { background: var(--green-soft); color: var(--green); } .util li.n { background: var(--coral-soft); color: var(--coral-ink); } .util li.u { background: var(--band-2); color: var(--muted); }
.mtiles .hint { font-size: .7rem; }

/* 検討リストの操作(詳細ページ) */
.wb-hd { display: flex; gap: 8px; align-items: center; justify-content: space-between; }
.scores { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(130px, 100%), 1fr)); gap: 6px; }
.sc { display: grid; grid-template-columns: minmax(0, 1fr) 64px; gap: 6px; align-items: center; font-size: .82rem; font-weight: 600; color: var(--ink-2); }
.sc select { padding: 6px 8px; font-size: .9rem; }
.wb-act { display: flex; flex-wrap: wrap; gap: 6px; }
.stsel { padding: 8px 10px; font-size: .9rem; }

/* 検討リスト */
.row { grid-template-columns: 26px 112px minmax(0, 1fr) 190px; }
.rsel { display: grid; place-items: center; padding-top: 6px; }
.rsel input { width: 18px; height: 18px; accent-color: var(--brand); }
.row .info .t { font-weight: 700; color: var(--ink); text-decoration: none; line-height: 1.45; }
.row .info .t:hover { text-decoration: underline; }
.chips2 { display: flex; gap: 6px; flex-wrap: wrap; }
.st { justify-self: start; }
.scorechip { font-weight: 800; color: var(--blue); }
.cmpbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
@media (max-width: 720px) {
  .row { grid-template-columns: 22px 76px minmax(0, 1fr); }
  .row .side { grid-column: 1 / -1; grid-template-columns: minmax(0, 1fr) auto; }
  .row .side .msg { grid-column: 1 / -1; }
}

/* 比較・意思決定マトリクス・収支の表 */
.ctable-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); }
.ctable { width: 100%; border-collapse: collapse; font-size: .86rem; min-width: 560px; }
.ctable th, .ctable td { padding: 10px 12px; border-bottom: 1px solid var(--line-2); text-align: left; vertical-align: top; }
.ctable thead th { background: var(--band); font-size: .8rem; color: var(--ink-2); position: sticky; top: 0; }
.ctable tbody th { width: 9em; color: var(--ink-2); font-weight: 700; background: var(--band); }
.ctable th small, .ctable td small { display: block; font-weight: 400; color: var(--muted); font-size: .72rem; }
.ctable td.best { color: var(--green); font-weight: 800; background: var(--green-soft); }
.ctable .cph { display: block; aspect-ratio: 16 / 10; border-radius: 8px; overflow: hidden; background: var(--band-2); margin-bottom: 6px; position: relative; }
.ctable .cph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ctable .cph .noimg { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: .72rem; }
.ctable thead th .it-nm { display: block; color: var(--ink); font-size: .86rem; }
.ctable .link { font-size: .76rem; margin-top: 4px; }
.ctable .fchip { display: inline-block; margin: 0 2px 4px 0; font-size: .7rem; min-width: 0; padding: 2px 8px; }
.matrix select { padding: 5px 6px; font-size: .86rem; width: 64px; }
.mxn a { font-weight: 700; color: var(--ink); text-decoration: none; }
.mxn a:hover { text-decoration: underline; }
.mbar { display: block; height: 6px; background: var(--band-2); border-radius: 3px; margin-top: 5px; min-width: 60px; }
.mbar i { display: block; height: 100%; background: var(--blue); border-radius: 3px; }
.warnv { color: var(--coral-ink); font-weight: 800; }
.pick { display: flex; flex-wrap: wrap; gap: 6px; }
.pick small { color: inherit; opacity: .7; font-size: .72rem; }
.crit { display: grid; gap: 8px; }
.crow { display: grid; grid-template-columns: minmax(0, 1fr) 220px auto; gap: 10px; align-items: center; }
.crow .w { display: grid; grid-template-columns: auto minmax(0, 1fr) 1.5em; gap: 8px; align-items: center; font-size: .82rem; color: var(--ink-2); font-weight: 600; }
.crow input[type=range] { accent-color: var(--brand); }
@media (max-width: 640px) { .crow { grid-template-columns: minmax(0, 1fr) auto; } .crow .w { grid-column: 1 / -1; grid-row: 2; } }
.simin { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 12px; align-items: end; }

/* 散布図 */
.scat-wrap { overflow-x: auto; }
.scat-wrap svg { width: 100%; min-width: 520px; height: auto; display: block; }
.scat-wrap .gl { stroke: var(--line); }
.scat-wrap .tx { fill: var(--muted); font-size: 11px; font-family: var(--f); }
.scat-wrap .pt { fill: var(--blue); fill-opacity: .85; stroke: var(--ground); stroke-width: 2; }
.scat-wrap .pt.st-comparing { fill: var(--violet); } .scat-wrap .pt.st-viewing { fill: var(--green); } .scat-wrap .pt.st-negotiating { fill: var(--amber); } .scat-wrap .pt.st-decided { fill: var(--green); }
.scat-wrap .pn { fill: #fff; font-size: 10px; font-weight: 800; font-family: var(--f); pointer-events: none; }
.key { margin: 10px 0 0; padding-left: 1.4em; display: grid; gap: 4px; font-size: .84rem; }
.key a { color: var(--ink); font-weight: 600; text-decoration: none; }
.key small { color: var(--muted); }

/* メッセージ */
.chat { display: grid; gap: 10px; max-height: 60vh; overflow-y: auto; padding: 4px; }
.bub { max-width: min(560px, 88%); padding: 10px 14px; border-radius: 14px; background: var(--band); }
.bub small { display: block; color: var(--muted); font-size: .74rem; margin-bottom: 2px; }
.bub p { margin: 0; white-space: pre-wrap; font-size: .9rem; }
.bub.me { justify-self: end; background: var(--brand-soft); }
.bub.acs { justify-self: start; border: 1px solid var(--line); background: var(--ground); }
.bub.new { box-shadow: 0 0 0 2px var(--coral); }
.chip.tpl { border: 1px solid var(--line); cursor: pointer; background: var(--ground); }
.chip.tpl:hover { border-color: var(--ink-2); }

.feed .cnt { color: var(--muted); font-size: .76rem; margin-left: 4px; }
.pmore { justify-self: center; }
