/* ================================================================
   Houses — Design System v3.0「Estate」
   フォレストグリーン × ゴールドアクセント / Noto Sans JP ゴシック統一
   v3.0: 新デザイン規格に適合 (画像カンプ 2026-10-04 準拠)
   ================================================================ */
:root {
  --paper: #F8F9F8;
  --paper-2: #EFF1F0;
  --card: #FFFFFF;
  --ink: #0F0F0F;
  --muted: #5F636B;
  --faint: #5F6B64;
  --line: #E4E7E5;
  --line-strong: #D3D8D5;
  --secondary: #8E9E9F;   /* セカンダリ (グレーグリーン) */

  --brand: #245744;
  --brand-deep: #14532D;
  --brand-tint: #E8F3EC;
  --brass: #94733B;
  --brass-deep: #85742F;
  --brass-soft: #F4EFDD;

  --ok: #3F9142;  --ok-soft: #E6F3E7;
  --warn: #C4901D; --warn-soft: #F9F0DC;
  --bad: #C0392B;  --bad-soft: #FAE8E6;
  --info: #4C6FA5; --info-soft: #E9EEF6;

  /* v3.0: ゴシック統一 (Noto Sans JP)。--serif は既存コンポーネント互換のためゴシックを指す */
  --serif: "Noto Sans JP", "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, "Yu Gothic", sans-serif;
  --sans: "Noto Sans JP", "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, "Yu Gothic", sans-serif;
  --mono: "SF Mono", "Cascadia Code", Consolas, Menlo, monospace;

  --r-s: 8px; --r-m: 12px; --r-l: 18px; --r-xl: 26px;
  --sh-1: 0 1px 2px rgba(28,31,35,.05), 0 1px 8px rgba(28,31,35,.035);
  --sh-2: 0 12px 40px -16px rgba(28,31,35,.24);
  --rail: 220px;   /* ワイドサイドバー (960px 以下は 72px に折りたたみ) */
  --top: 72px;

  /* 8pt リズム */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 20px;
  --s6: 24px; --s8: 32px; --s10: 40px; --s12: 48px; --s16: 64px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; font-size: 16px; }
body {
  background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: 15.5px; line-height: 1.7;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  font-feature-settings: "palt" 1; letter-spacing: .01em;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3 {
  font-family: var(--sans); font-weight: 700;
  letter-spacing: .02em; line-height: 1.4;
  font-feature-settings: "palt" 1;
}
h1 { line-height: 1.35; }
code { font-family: var(--mono); font-size: 88%; background: var(--paper-2); border-radius: 5px; padding: 1px 7px; }
::selection { background: rgba(176,138,60,.25); }

/* ---------- リンク / ラベル ---------- */
.up { font-size: 11.5px; color: var(--muted); letter-spacing: .12em; text-transform: uppercase; }
.up:hover { color: var(--brand); }
p a, .help a, .sub a, .set-row a, .news-row .t, main a[style*="color:var(--brand)"] {
  text-decoration: underline; text-underline-offset: 2px;
}
.sub { color: #55625B; font-size: 12.5px; letter-spacing: .02em; }
.num { font-variant-numeric: tabular-nums; letter-spacing: 0; font-feature-settings: "tnum" 1; }

/* テーブル内リンクは行間ギャップでクリックが素通りしないよう solid なターゲットに */
.tbl td a.num, td a.btn { display: inline-block; line-height: 1.4; }

/* ---------- カード ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-l); box-shadow: var(--sh-1); }
.card.pad { padding: var(--s8); }
.card-h { padding: var(--s5) var(--s8); border-bottom: 1px solid var(--line);
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.card-h h2, .card-h h3 { font-size: 17px; letter-spacing: .05em; }

/* ---------- セクション見出し ---------- */
.eyebrow { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: #6F5520; font-weight: 700; }
.divider { border: none; border-top: 1px solid var(--line); margin: var(--s6) 0; }

/* ---------- ボタン ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  padding: 12px 22px; border-radius: var(--r-m); border: 1px solid var(--line-strong);
  background: var(--card); color: var(--ink); font-size: 13.5px; font-weight: 600;
  letter-spacing: .03em; transition: all .18s ease; }
.btn:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-1px); box-shadow: var(--sh-1); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; letter-spacing: .06em; }
.btn.primary:hover { background: var(--brand-deep); color: #fff; }
.btn.brass { background: #6F5520; border-color: #6F5520; color: #fff; }
.btn.brass:hover { background: #5A4419; border-color: #5A4419; color: #fff; }
.btn.soft { background: var(--brand-tint); border-color: transparent; color: var(--brand); }
.btn.danger { color: var(--bad); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn.sm { padding: 7px 14px; font-size: 12.5px; border-radius: 10px; }
.btn.lg { padding: 15px 26px; font-size: 14.5px; border-radius: 14px; }
.btn.wide { width: 100%; }

/* ---------- バッジ ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px;
  border-radius: 100px; font-size: 11.5px; font-weight: 600; letter-spacing: .05em; }
.badge::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: .9; }
.badge.ok   { background: var(--ok-soft);  color: #1F6B4A; }
.badge.info { background: var(--info-soft); color: #2F4A70; }
.badge.warn { background: var(--warn-soft); color: #8A5A12; }
.badge.bad  { background: var(--bad-soft);  color: #8F322B; }
.badge.mut  { background: var(--paper-2);   color: #4F5C55; }
.badge.brass { background: var(--brass-soft); color: #6F5520; }
.badge.big { font-size: 13px; padding: 7px 16px; }

/* ---------- フォーム ---------- */
.f-label { display: block; font-size: 11.5px; font-weight: 600;
  letter-spacing: .1em; color: var(--muted); margin: var(--s5) 0 8px;
  text-transform: uppercase; }
.f-label:first-child { margin-top: 0; }
.f-label em { color: var(--brass); font-style: normal; }
.input, .select { width: 100%; padding: 13px 16px; border: 1px solid var(--line-strong);
  border-radius: var(--r-m); background: #fff; font-size: 14px; color: var(--ink);
  font-family: inherit; letter-spacing: .02em; transition: border .15s, box-shadow .15s; }
.input:focus, .select:focus { outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(20,82,74,.08); }
.input::placeholder { color: var(--faint); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
textarea.input { min-height: 80px; }
.help { font-size: 12px; color: var(--faint); margin-top: 7px; line-height: 1.7; }

/* ---------- テーブル ---------- */
.tbl { width: 100%; border-collapse: collapse; font-size: 13.8px; }
.tbl th { text-align: left; font-size: 10.5px; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: var(--faint);
  padding: 14px 20px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 16px 20px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: none; }
.tbl tbody tr { transition: background .12s; }
.tbl tbody tr:hover { background: var(--paper); }

/* ---------- グリッド ---------- */
.g2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s6); }
.g3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s6); }
.g4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s5); }
.stack { display: flex; flex-direction: column; gap: var(--s5); }
@media (max-width: 1100px){ .g4 { grid-template-columns: 1fr 1fr; } .g3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 720px){ .g4, .g3, .g2 { grid-template-columns: 1fr; } }

/* ---------- ワイドサイドバー (ラベル付きナビ) ---------- */
.rail { position: fixed; inset: 0 auto 0 0; width: var(--rail);
  background-color: #183E31;
  background-image: linear-gradient(180deg, var(--brand-deep), #0C3B20);
  display: flex; flex-direction: column;
  padding: var(--s5) var(--s3); z-index: 300; }
.rail .logo { display: flex; align-items: center; gap: 9px;
  color: #fff; font-weight: 700; font-size: 21px; letter-spacing: .04em;
  padding: 6px 10px var(--s5); }
.rail .logo::before { content: ""; width: 30px; height: 30px; border-radius: 9px;
  background: linear-gradient(150deg, var(--brass), var(--brass-deep));
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; flex-shrink: 0; }
.rail nav { flex: 1; display: flex; flex-direction: column; gap: 2px; width: 100%; }
.rail .grp { font-size: 10px; letter-spacing: .18em; color: rgba(255,255,255,.72);
  margin: var(--s4) 10px var(--s1); font-weight: 700; }
.rail a { position: relative; display: flex; flex-direction: row;
  align-items: center; gap: 11px;
  height: 42px; margin: 1px 6px; padding: 0 12px; border-radius: 10px;
  background-color: #183E31;
  color: rgba(255,255,255,.88); font-size: 13px; font-weight: 500; letter-spacing: .03em;
  transition: all .16s cubic-bezier(.3,.7,.4,1); }
.rail a span { flex: 0 1 auto; }
.rail a svg { width: 19px; height: 19px; stroke: currentColor; fill: none; stroke-width: 1.7; flex-shrink: 0; }
.rail a:hover { color: #fff; background: rgba(255,255,255,.09); }
.rail a.on { color: #fff; background: rgba(255,255,255,.13); font-weight: 700; }
.rail a.on::before { content: ""; position: absolute; left: 0; top: 9px; bottom: 9px;
  width: 3px; background: var(--brass); border-radius: 0 3px 3px 0; }
.rail .foot { font-size: 9.5px; color: rgba(255,255,255,.72); text-align: center; line-height: 1.8; }

/* 狭幅ではアイコンのみに折りたたみ */
@media (max-width: 960px) {
  :root { --rail: 72px; }
  .rail .logo { font-size: 0; gap: 0; padding-left: 4px; }
  .rail .logo::before { width: 38px; height: 38px; }
  .rail .grp { font-size: 0; margin: var(--s3) 0 2px; }
  .rail a { justify-content: center; padding: 0; margin: 1px 8px; gap: 0; }
  .rail a span { display: none; }
  .rail a.on::before { top: 12px; bottom: 12px; }
}

/* ---------- トップバー ---------- */
.top { position: sticky; top: 0; z-index: 250; height: var(--top);
  background: rgba(248,249,248,.92); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line); margin-left: var(--rail);
  display: flex; align-items: center; justify-content: space-between; padding: 0 36px; }
.top h1 { font-size: 19px; }
.top .who { display: flex; align-items: center; gap: 14px; font-size: 12.5px; color: var(--muted); }
.ava { width: 36px; height: 36px; border-radius: 50%;
  background: var(--brand); color: #fff; display: flex; align-items: center;
  justify-content: center; font-size: 13.5px; font-weight: 600; flex-shrink: 0; }
.ava.gold { background: linear-gradient(150deg,#BFA94F,var(--brass)); }

.main { margin-left: var(--rail); padding: var(--s10) var(--s10) 120px; max-width: 1360px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: var(--s8); }
.page-head h1 { font-size: 27px; }
.page-head .sub { display: block; margin-top: 6px; }

/* ---------- KPI ---------- */
.kpi { padding: var(--s6) var(--s6) var(--s5); }
.kpi .k-label { font-size: 10.5px; letter-spacing: .18em; color: var(--faint); text-transform: uppercase; font-weight: 700; }
.kpi .k-val { font-family: var(--serif); font-size: 36px; font-weight: 600;
  margin: 5px 0 3px; line-height: 1.3; }
.kpi .k-delta { font-size: 12px; letter-spacing: .03em; }
.k-delta.good { color: #1F6B4A; } .k-delta.attn { color: #8A5A12; }

/* ---------- タブ ---------- */
.tabs { display: inline-flex; background: var(--paper-2); border-radius: 100px; padding: 4px; gap: 2px; }
.tabs button { border: none; background: transparent; padding: 9px 20px;
  border-radius: 100px; font-size: 13px; font-weight: 600; color: #55595F;
  letter-spacing: .04em; transition: all .18s; white-space: nowrap; }
.tabs button.on { background: var(--brand); color: #fff; box-shadow: var(--sh-1); }

/* ---------- 物件疑似フォト ---------- */
.photo { position: relative; overflow: hidden; background: var(--paper-2); }
.photo::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(255,255,255,0) 35%, rgba(12,20,18,.22)); }
.ph-a { background: linear-gradient(125deg,#BCC8C1 0%,#7E948B 70%); }
.ph-b { background: linear-gradient(125deg,#D3C5AC 0%,#A18E6B 70%); }
.ph-c { background: linear-gradient(125deg,#B1BCC9 0%,#758490 70%); }
.ph-d { background: linear-gradient(125deg,#C9B7B2 0%,#987B7C 70%); }
.photo .tag { position: absolute; top: 12px; left: 12px; z-index: 2;
  background: rgba(13,56,51,.92); color: #fff; font-size: 10.5px;
  padding: 4px 10px; border-radius: 6px; letter-spacing: .06em; }

/* ---------- 地図プレースホルダ ---------- */
.map-ph { position: relative; border-radius: var(--r-l); overflow: hidden;
  background: #EAE7DF; }
.map-ph .grid-lines { position: absolute; inset: 0; opacity: .6;
  background-image: linear-gradient(rgba(20,82,74,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20,82,74,.08) 1px, transparent 1px);
  background-size: 48px 48px; }
.map-ph .block { position: absolute; border-radius: 8px;
  background: rgba(20,82,74,.09); border: 1px solid rgba(20,82,74,.12); }
.map-ph .road { position: absolute; background: rgba(255,255,255,.75); }
.map-ph .pin { position: absolute; transform: translate(-50%,-100%); z-index: 5;
  background: var(--brand); color: #fff; padding: 6px 12px; border-radius: 999px;
  font-size: 11px; font-weight: 600; letter-spacing: .03em;
  box-shadow: 0 5px 14px rgba(20,82,74,.38); white-space: nowrap; cursor: default; }
.map-ph .pin.st { background: var(--ink); font-size: 10px; padding: 5px 9px; }
.map-ph .school { position: absolute; z-index: 4; width: 50px; height: 50px; border-radius: 50%;
  background: var(--brass); color: #fff; font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 20px rgba(25,28,31,.3); }
.map-ph .ring { position: absolute; border-radius: 50%;
  border: 1.6px dashed rgba(176,138,60,.55); }

/* ---------- ステップ ---------- */
.steps { counter-reset: st; }
.step { display: flex; gap: 16px; position: relative; padding-bottom: var(--s6); }
.step::before { counter-increment: st; content: counter(st);
  width: 32px; height: 32px; background: var(--brand); color: #fff;
  border-radius: 50%; font-size: 13.5px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.step::after { content: ""; position: absolute; left: 15.5px; top: 36px;
  bottom: 4px; width: 1px; background: var(--line-strong); }
.step:last-child::after { display: none; }
.step h3 { font-family: var(--sans); font-size: 14.5px; font-weight: 700;
  letter-spacing: .02em; margin-top: 5px; }
.step p { font-size: 12.5px; color: var(--muted); margin-top: 5px; line-height: 1.7; }

/* ---------- アラート / フィード ---------- */
.alert { padding: 14px 18px; border-radius: var(--r-m); font-size: 13px;
  border: 1px solid transparent; line-height: 1.7; }
.alert.info { background: var(--info-soft); color: #2F4A70; }
.alert.ok { background: var(--ok-soft); color: #1F6B4A; }
.alert.warn { background: var(--warn-soft); color: var(--warn); }
.feed-item { display: flex; gap: 14px; padding: 15px 0; border-bottom: 1px solid var(--line); font-size: 13.2px; }
.feed-item:last-child { border-bottom: none; }
.feed-dot { width: 34px; height: 34px; border-radius: 50%; background: var(--paper-2);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 13px; }
.feed-item time { color: var(--faint); font-size: 11px; white-space: nowrap; padding-top: 2px; }

/* ---------- ファネル (成約率統計) ---------- */
.funnel-row { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.funnel-label { width: 128px; font-size: 12.5px; color: var(--muted); text-align: right; }
.funnel-bar { height: 34px; border-radius: 9px;
  background: linear-gradient(90deg, var(--brand), #2A6E63); color: #fff;
  display: flex; align-items: center; padding: 0 14px; font-size: 12px; font-weight: 700; }
.funnel-bar.gold { background: linear-gradient(90deg, #BFA94F, var(--brass)); }
.funnel-num { font-family: var(--serif); font-size: 17px; font-weight: 600;
  font-variant-numeric: tabular-nums; }

/* ---------- 受信箱 ---------- */
.inbox-row { display: flex; gap: 14px; padding: 16px 22px;
  border-bottom: 1px solid var(--line); font-size: 13.2px; cursor: pointer;
  transition: background .12s; align-items: flex-start; }
.inbox-row:hover { background: var(--paper); }
.inbox-row.unread { background: var(--brass-soft); }
.inbox-row.unread:hover { background: #EDDFC5; }

/* ---------- 設定リスト ---------- */
.set-row { display: flex; justify-content: space-between; align-items: center;
  gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.set-row:last-child { border-bottom: none; }
.set-row .k { color: var(--muted); width: 200px; flex-shrink: 0; }
.set-row .v { flex: 1; }

/* ---------- スキップリンク / フォーカス ---------- */
.skip-link { position: absolute; left: 50%; transform: translateX(-50%); top: -56px; z-index: 2000;
  padding: 10px 22px; border-radius: 0 0 10px 10px; background: var(--brand); color: #fff;
  font-size: 13px; font-weight: 700; text-decoration: none; transition: top .15s ease; }
.skip-link:focus { top: 0; color: #fff; }

/* ---------- ネイティブダイアログ ---------- */
dialog.dlg { border: none; background: transparent; padding: 0; max-height: calc(100vh - 40px); }
dialog#createModal { width: min(680px, calc(100vw - 40px)); }
dialog#pvModal { width: min(800px, calc(100vw - 48px)); }
dialog#saveModal { width: min(460px, calc(100vw - 40px)); }
dialog.dlg::backdrop { background: rgba(13,56,51,.4); }
dialog.dlg-dark::backdrop { background: rgba(15,15,15,.5); }
dialog.dlg .card { margin: 0; width: 100%; }

/* ---------- モーション配慮・印刷 ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media print {
  .rail, .top, .mock-float, .contact-bar, .fab2, .tabs { display: none !important; }
  body { background: #fff; }
  .main, .p-main { margin: 0; padding: 0; max-width: none; }
  .card { box-shadow: none; break-inside: avoid; }
}

/* ---------- モックフロート ---------- */
.mock-float a { background: var(--ink); color: #fff; font-size: 11px; padding: 9px 16px;
  border-radius: 100px; opacity: .85; letter-spacing: .05em; }
.mock-float a:hover { opacity: 1; }

/* ---------- 認証 ---------- */
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: minmax(0,1fr) 500px; }
@media (max-width: 880px){ .auth-wrap { grid-template-columns: 1fr; } .auth-brand { display: none; } }
.auth-brand { background: linear-gradient(170deg, var(--brand-deep) 0%, #0A2E2A 100%);
  color: #fff; padding: var(--s12) var(--s10); display: flex; flex-direction: column;
  justify-content: space-between; position: relative; overflow: hidden; }
.auth-brand::before { content: ""; position: absolute; right: -80px; top: -80px;
  width: 340px; height: 340px; border-radius: 50%;
  border: 1.5px dashed rgba(176,138,60,.35); }
.auth-brand::after { content: ""; position: absolute; left: -120px; bottom: -140px;
  width: 400px; height: 400px; border-radius: 50%;
  border: 1.5px dashed rgba(255,255,255,.1); }
.auth-brand .big { font-family: var(--serif); font-size: 44px; line-height: 1.5; font-weight: 600; }
.auth-brand .big em { color: var(--brass); font-style: normal; }
.auth-form { background: var(--card); display: flex; align-items: center; padding: var(--s10); }

/* ---------- 共有 ---------- */
.share-hero { background: linear-gradient(168deg, var(--brand-deep), var(--brand) 78%);
  color: #fff; padding: var(--s10) 24px 88px; text-align: center; position: relative; overflow: hidden; }
.share-hero::before { content: ""; position: absolute; right: -60px; top: -80px;
  width: 300px; height: 300px; border-radius: 50%;
  border: 1.5px dashed rgba(176,138,60,.3); }
.share-hero .eyebrow { color: var(--brass); }
.share-hero h1 { font-size: 36px; margin-top: 12px; }
.share-hero .agent { display: flex; gap: 10px; align-items: center;
  justify-content: center; font-size: 12px; opacity: .8;
  margin-top: 16px; letter-spacing: .05em; }
.share-line { max-width: 660px; margin: -52px auto 0; padding: 0 16px 100px; }

/* ---------- 文書 ---------- */
.paper-doc { background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-m); box-shadow: var(--sh-2);
  padding: 44px 52px; font-size: 13.2px; line-height: 2; }
.doc-table { width: 100%; border-collapse: collapse; }
.doc-table th, .doc-table td { padding: 12px 8px;
  border-bottom: 1px solid var(--line); font-size: 13px; letter-spacing: .02em; }
.doc-table th { text-align: left; color: var(--muted); font-weight: 600; width: 160px; }

/* ---------- 印刷シーン ---------- */
.seal { border: 2px solid var(--brand); color: var(--brand);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-weight: 700; opacity: .85; }

/* ================================================================
   v3 — ポータル機能 (物件検索サイト化)
   salonfudousan.net の IA を考量: 
   社会的証明ヒーロー / 種別×エリア×路線検索 / お気に入り / 
   電話・LINE・メール CTA / 深いサイトマップフッター
   ================================================================ */
:root {
  --cta: #245744;         /* 問い合わせ・内覧希望 (高コントラスト) */
  --cta-deep: #183E31;
  --cta-soft: #E7EEE6;
  --gold-soft: #F6EFDD;
}

/* ポータル ヘッダー */
.p-head { background: var(--card); border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 250; }
.p-head .inner { max-width: 1240px; margin: 0 auto; padding: 0 24px; height: 68px;
  display: flex; align-items: center; gap: 26px; }
.p-head .brand { display: flex; align-items: center; gap: 10px; font-family: var(--serif);
  font-size: 19px; font-weight: 700; letter-spacing: .06em; }
.p-head .brand .mark { width: 36px; height: 36px; border-radius: 11px;
  background: linear-gradient(150deg,#BFA94F,var(--brass)); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 18px; }
.p-head nav { display: flex; gap: 20px; font-size: 13px; color: var(--muted); }
.p-head nav a:hover { color: var(--brand); }
.p-head nav a[aria-current="page"] { color: var(--brand); font-weight: 700; border-bottom: 2px solid var(--brass); padding-bottom: 5px; }
.p-head .util a.btn[aria-current="page"] { border-color: var(--brass); color: var(--brand); font-weight: 700; }
.p-head .util { margin-left: auto; display: flex; align-items: center; gap: 14px; font-size: 12.5px; }
.p-tel { display: flex; flex-direction: column; line-height: 1.3; text-align: right; }
.p-tel b { font-family: var(--serif); font-size: 17px; color: var(--brand); letter-spacing: .03em; }
.p-tel span { font-size: 10px; color: var(--faint); }

/* レスポンシブ: 狭幅では TEL を隠し、ナビを2段目に横スクロール */
@media (max-width: 1100px) {
  .p-head .p-tel { display: none; }
}
@media (max-width: 900px) {
  .p-head .inner { height: auto; min-height: 64px; flex-wrap: wrap; row-gap: 8px;
    padding: 10px 16px; gap: 10px; }
  .p-head .brand { font-size: 16px; }
  .p-head nav { order: 3; width: 100%; overflow-x: auto; white-space: nowrap;
    gap: 14px; padding-bottom: 2px; -webkit-overflow-scrolling: touch; }
  .p-head nav a { white-space: nowrap; font-size: 12.5px; }
  .p-head .util { margin-left: auto; gap: 6px; }
  .p-head .util .btn.sm { padding: 6px 10px; font-size: 11px; }
}

/* 社会的証明ヒーロー */
.p-hero { position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(165deg, #14532D 0%, #245744 60%, #2B8A57 100%); }
.p-hero::before { content: ""; position: absolute; right: -100px; top: -120px;
  width: 420px; height: 420px; border-radius: 50%;
  border: 1.6px dashed rgba(176,138,60,.3); }
.p-hero::after { content: ""; position: absolute; left: -140px; bottom: -200px;
  width: 520px; height: 520px; border-radius: 50%;
  border: 1.6px dashed rgba(255,255,255,.08); }
.p-hero .inner { position: relative; z-index: 2; max-width: 1240px; margin: 0 auto;
  padding: 56px 24px 96px; }
.p-hero h1 { font-size: 40px; line-height: 1.5; letter-spacing: .03em; }
.p-hero p.lead { margin-top: 14px; font-size: 14px; opacity: .78; max-width: 640px; }
.p-stats { display: flex; gap: 0; margin-top: 30px; }
.p-stats .st { padding: 0 30px; border-left: 1px solid rgba(255,255,255,.16); }
.p-stats .st:first-child { padding-left: 0; border-left: none; }
.p-stats .v { font-family: var(--serif); font-size: 34px; font-weight: 600;
  line-height: 1.3; font-variant-numeric: tabular-nums; }
.p-stats .v i { font-size: 15px; font-style: normal; opacity: .7; margin-left: 2px; }
.p-stats .l { font-size: 11px; opacity: .6; letter-spacing: .12em; margin-top: 4px; }

/* 検索パネル (ヒーローに重ねる) */
.p-search { max-width: 1240px; margin: -60px auto 0; padding: 0 24px; position: relative; z-index: 5; }
.p-search .box { background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-l); box-shadow: var(--sh-2); padding: 22px 26px; }
.p-search .tabs { margin-bottom: 16px; }
.p-search .row { display: grid; grid-template-columns: 1fr 1fr 1fr 1.2fr auto; gap: 12px; align-items: end; }
@media (max-width: 900px){ .p-search .row { grid-template-columns: 1fr 1fr; } }
.p-search .q { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap;
  font-size: 12px; color: var(--muted); align-items: center; }
.p-search .q a { border: 1px solid var(--line-strong); border-radius: 100px;
  padding: 4px 12px; transition: all .15s; }
.p-search .q a:hover { border-color: var(--brand); color: var(--brand); }

/* ポータル本体 */
.p-main { max-width: 1240px; margin: 0 auto; padding: 44px 24px 100px; }
.p-sec-head { display: flex; align-items: flex-end; justify-content: space-between;
  margin: 44px 0 20px; }
.p-sec-head:first-child { margin-top: 0; }
.p-sec-head h2 { font-size: 23px; }
.p-sec-head .desc { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.p-sec-head .more { font-size: 12.5px; color: var(--cta); font-weight: 700; letter-spacing: .06em; }

/* 物件カード (ポータル) */
.p-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.p-grid.cols4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1100px){ .p-grid, .p-grid.cols4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 660px){ .p-grid, .p-grid.cols4 { grid-template-columns: 1fr; } }
.p-card { background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-l); overflow: hidden; box-shadow: var(--sh-1);
  transition: transform .2s cubic-bezier(.3,.7,.4,1), box-shadow .2s; display: block; }
.p-card:hover { transform: translateY(-4px); box-shadow: var(--sh-2); }
.p-card .ph { height: 180px; position: relative; }
.p-card .ph-tags { position: absolute; top: 12px; left: 12px; z-index: 3;
  display: flex; gap: 6px; }
.p-card .badge { backdrop-filter: blur(4px); }
.p-card .fav { position: absolute; top: 10px; right: 10px; z-index: 3;
  width: 38px; height: 38px; border-radius: 50%; border: none;
  background: rgba(255,255,255,.92); color: var(--faint); font-size: 17px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--sh-1); transition: all .15s; }
.p-card .fav:hover { color: var(--bad); transform: scale(1.08); }
.p-card .fav.on { color: #fff; background: var(--bad); }
.badge.cta { background: var(--warn-soft); color: var(--warn); }
.p-card .body { padding: 16px 18px 18px; }
.p-card .title { font-size: 14.5px; font-weight: 700; line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.p-card .addr { font-size: 12px; color: var(--muted); margin-top: 5px; }
.p-price { font-family: var(--serif); font-size: 25px; font-weight: 600;
  color: var(--brand); margin-top: 10px; line-height: 1.2; }
.p-price .tax { font-family: var(--sans); font-size: 11px; color: var(--muted);
  font-weight: 400; margin-left: 4px; }
.p-meta { display: flex; gap: 14px; margin-top: 8px; font-size: 12px;
  color: var(--muted); flex-wrap: wrap; padding-top: 10px; border-top: 1px solid var(--line); }
.p-meta b { color: var(--ink); font-weight: 600; }
.p-date { font-size: 11px; color: var(--faint); margin-top: 8px; }

/* フィルタ サイドバー */
.p-layout { display: grid; grid-template-columns: 274px 1fr; gap: 28px; align-items: start; }
@media (max-width: 980px){ .p-layout { grid-template-columns: 1fr; } }
.filter { position: sticky; top: 88px; }
.filter h3 { font-size: 13.5px; letter-spacing: .06em; }
.filter .grp { padding: 18px 0; border-bottom: 1px solid var(--line); }
.filter .grp:last-child { border-bottom: none; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.chip { font-size: 12px; padding: 5px 13px; border-radius: 100px;
  border: 1px solid var(--line-strong); color: var(--muted); transition: all .14s; cursor: pointer; }
.chip:hover { border-color: var(--brand); color: var(--brand); }
.chip.on { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; }
.chip.cta.on { background: var(--cta); border-color: var(--cta); }

/* パンくず */
.crumb { font-size: 12px; color: #55625B; padding: 16px 0; letter-spacing: .03em; }
.crumb a:hover { color: var(--brand); }
.crumb span { margin: 0 8px; opacity: .8; }

/* 並べ替え / ページャ */
.sort-bar { display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 18px; font-size: 13px; color: var(--muted); }
.pager { display: flex; justify-content: center; gap: 8px; margin-top: 34px; }
.pager a { min-width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line-strong);
  display: flex; align-items: center; justify-content: center; font-size: 13.5px;
  transition: all .15s; font-variant-numeric: tabular-nums; }
.pager a:hover { border-color: var(--brand); color: var(--brand); }
.pager a.on { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 700; }

/* 物件詳細ギャラリー */
.gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 8px; }
.gallery .g { position: relative; overflow: hidden; border-radius: 10px; }
.gallery .g:first-child { grid-row: span 2; }
.gallery .g .more { position: absolute; right: 10px; bottom: 10px; z-index: 3;
  background: rgba(28,31,35,.8); color: #fff; font-size: 11px; padding: 5px 11px; border-radius: 6px; }

/* 問い合わせ スティッキーバー */
.contact-bar { position: sticky; bottom: 0; z-index: 300; background: var(--card);
  border-top: 1px solid var(--line); box-shadow: 0 -8px 30px -12px rgba(28,31,35,.25); }
.contact-bar .inner { max-width: 1240px; margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; gap: 12px; }
.contact-bar .tel { display: flex; flex-direction: column; line-height: 1.25; margin-right: 6px; }
.contact-bar .tel b { font-family: var(--serif); font-size: 21px; color: var(--brand); }
.contact-bar .tel span { font-size: 10.5px; color: var(--faint); }
.btn.cta { background: var(--cta); border-color: var(--cta); color: #fff; letter-spacing: .06em; }
.btn.cta:hover { background: var(--cta-deep); color: #fff; }
.btn.line { background: #0A7A3F; border-color: #0A7A3F; color: #fff; }
.btn.line:hover { background: #086331; color: #fff; }

/* お知らせ / コラム */
.news-row { display: flex; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line);
  align-items: baseline; }
.news-row .d { font-variant-numeric: tabular-nums; color: var(--faint);
  font-size: 12.5px; width: 92px; flex-shrink: 0; }
.news-row .t { font-size: 14px; font-weight: 600; }
.news-row .t:hover { color: var(--brand); }
.news-row .tag { margin-left: auto; }

/* フッター (サイトマップ) */
.p-foot { background: #0D2521; color: #C9D4D1; margin-top: 0; }
.p-foot .inner { max-width: 1240px; margin: 0 auto; padding: 52px 24px 30px; }
.p-foot .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; }
@media (max-width: 820px){ .p-foot .cols { grid-template-columns: 1fr 1fr; } }
.p-foot h4 { color: #fff; font-size: 12px; letter-spacing: .16em;
  text-transform: uppercase; margin-bottom: 14px; font-family: var(--sans); }
.p-foot a { display: block; font-size: 12.5px; padding: 4px 0; opacity: .9; }
.p-foot a:hover { opacity: 1; color: #fff; }
.p-foot .bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 34px;
  padding-top: 20px; font-size: 11px; opacity: .8; display: flex;
  justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.p-foot .telbig { font-family: var(--serif); font-size: 25px; color: #fff; }


/* ================================================================
   v2.2 追加コンポーネント — マップ UX (稼働 /pick 実装との同期)
   住所検索バー · GPS · アコーディオン · 駅絞り込み · トースト
   ================================================================ */

/* ---------- 住所検索バー (ジオコーディング) ---------- */
.geo-search { position: relative; display: flex; gap: 10px; align-items: center; }
.geo-search .input { flex: 1; min-width: 0; padding-left: 42px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23B08A3C' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-4-4'/%3E%3C/svg%3E") 14px center / 17px no-repeat; }
.geo-results { position: absolute; top: calc(100% + 6px); left: 0; right: 110px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-m);
  box-shadow: var(--sh-2); z-index: 90; overflow: hidden; }
.geo-results .g-item { padding: 11px 16px; font-size: 13px; cursor: pointer;
  border-bottom: 1px solid var(--line); display: flex; gap: 8px; align-items: center; }
.geo-results .g-item:last-child { border-bottom: none; }
.geo-results .g-item:hover, .geo-results .g-item.on { background: var(--brand-tint); color: var(--brand); }
.geo-results .g-item .num { color: var(--faint); font-size: 11px; margin-left: auto; }

/* ---------- 地図ツール (GPS / 拡大縮小) ---------- */
.map-tools { position: absolute; top: 14px; left: 14px; z-index: 60;
  display: flex; flex-direction: column; gap: 6px; }
.map-tools button { width: 38px; height: 38px; border-radius: 11px;
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  font-size: 16px; box-shadow: var(--sh-1); display: flex;
  align-items: center; justify-content: center; transition: all .16s; }
.map-tools button:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-1px); }
.map-tools button.gps.on { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ---------- アコーディオン式ステップカード ---------- */
.acc { overflow: hidden; }
.acc-h { display: flex; align-items: center; gap: 10px; padding: 15px var(--s6);
  cursor: pointer; user-select: none; -webkit-user-select: none; touch-action: manipulation;
  min-height: 44px; transition: background .14s; flex-wrap: wrap; }
.acc-h:hover { background: var(--paper); }
.acc-h .acc-t { font-family: var(--serif); font-size: 15px; font-weight: 600; letter-spacing: .04em; min-width: 0; }

/* ミニフィルタ (ラベル+入力の対) */
.filter-mini { display: grid; grid-template-columns: auto 110px auto 110px; align-items: center; gap: 8px 10px; }
.filter-mini .f-label { margin: 0; white-space: nowrap; }
.filter-mini .input { padding: 9px 12px; font-size: 16px; }
.acc-h .chev { margin-left: auto; color: var(--faint); font-size: 11px;
  transition: transform .22s ease; flex-shrink: 0; }
.acc:not(.collapsed) .acc-h .chev { transform: rotate(90deg); }
.acc-b { padding: var(--s4) var(--s6) var(--s6); border-top: 1px solid var(--line); }
.acc.collapsed .acc-b { display: none; }
.acc.collapsed .acc-h { border-bottom: none; }
.acc.collapsed { opacity: .82; }

/* ---------- ステップバッジ ---------- */
.s-badge { display: inline-flex; align-items: center; padding: 3px 11px;
  border-radius: 100px; font-size: 11px; font-weight: 700; letter-spacing: .04em;
  white-space: nowrap; flex-shrink: 0; }
.s-badge.pending { background: var(--paper-2); color: #4A4E55; }
.s-badge.active  { background: var(--brass-soft); color: #6F5520; }
.s-badge.done    { background: var(--ok-soft); color: #183E31; }

/* ---------- 駅リスト絞り込み ---------- */
.stn-filter { display: flex; gap: 10px; align-items: center; margin: var(--s3) 0; }
.stn-filter input { flex: 1; min-width: 0; padding: 10px 14px; font-size: 16px;
  border: 1px solid var(--line-strong); border-radius: 10px; }
.stn-filter input:focus { outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(20,82,74,.08); }
.stn-filter .hit { font-size: 11.5px; color: var(--faint); white-space: nowrap; font-variant-numeric: tabular-nums; }
.stn-list { border: 1px solid var(--line); border-radius: var(--r-m);
  max-height: 300px; overflow-y: auto; background: #fff; }
.stn-item { display: flex; align-items: center; justify-content: space-between; gap: 10px;
  min-height: 44px; padding: 10px 16px; font-size: 13px;
  border-bottom: 1px solid var(--line); cursor: pointer; }
.stn-item:last-child { border-bottom: none; }
.stn-item:hover { background: var(--brand-tint); }
.stn-item.on { background: var(--brass-soft); color: var(--brass-deep); font-weight: 600; }
.stn-item .min { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--brass-deep); font-size: 12px; }

/* ---------- トースト ---------- */
.toast-host { position: fixed; left: 50%; transform: translateX(-50%);
  bottom: max(18px, env(safe-area-inset-bottom)); z-index: 900;
  display: flex; flex-direction: column; gap: 8px; align-items: center;
  width: min(440px, calc(100vw - 28px)); pointer-events: none; }
.toast { display: flex; align-items: center; gap: 9px; width: 100%;
  padding: 13px 18px; border-radius: var(--r-m); font-size: 13.5px; font-weight: 600;
  letter-spacing: .02em; color: #fff; background: var(--brand-deep);
  box-shadow: var(--sh-2); opacity: 0; transform: translateY(14px);
  transition: all .26s cubic-bezier(.3,.7,.4,1); }
.toast.show { opacity: 1; transform: translateY(0); }
.toast.success { background: var(--ok); }
.toast.error   { background: var(--bad); }
.toast.warn    { background: var(--warn); }

/* ---------- 地図凡例 (マーカー色同期) ---------- */
.map-legend { display: flex; gap: 8px 18px; flex-wrap: wrap; align-items: center;
  padding: 10px 18px; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-m); font-size: 12px; color: var(--muted); }
.map-legend i { display: inline-block; width: 11px; height: 11px;
  border-radius: 50%; margin-right: 5px; vertical-align: -1px; }

/* ---------- モバイル: タッチ最適化 ---------- */
@media (max-width: 720px) {
  .btn { min-height: 44px; }
  .btn.sm { min-height: 38px; }
  .input, .select { font-size: 16px; } /* iOS ズーム防止 */
  .map-tools button { width: 44px; height: 44px; }
  .geo-search { flex-wrap: wrap; }
  .geo-search .btn { flex: 1; }
  .geo-results { right: 0; }
  .stn-list { max-height: 240px; }
  .map-ph { height: 52vh !important; min-height: 280px; }
  .acc-h { padding: 14px var(--s4); }
  .acc-b { padding: var(--s4); }
  /* ヘッダー: タイトル行 + バッジ行の 2 行構成 (1文字折返し防止) */
  .acc-h .acc-t { flex: 1 1 100%; }
  .acc-h .chev { margin-left: auto; }
  .filter-mini { grid-template-columns: 1fr 96px; }
  .filter-mini .f-label { font-size: 10.5px; }
  .stn-filter .hit { flex-shrink: 0; }
}
@media (max-width: 480px) {
  .filter-mini { grid-template-columns: 1fr; }
  .filter-mini .input { width: 100%; }
}

/* ================================================================
   v2.3 — ナビゲーション IA 改善
   レール = 業務ナビ専用 / 名刺·設定 = プロフィール (アバター) メニュー
   ================================================================ */

/* ---------- レール下部: 公開ポータル導線 ---------- */
.rail nav { padding-bottom: 8px; }
.rail .rail-portal { display: flex; flex-direction: column; align-items: center; gap: 5px;
  height: 54px; margin: 10px var(--s4) 0; border-radius: 14px;
  color: rgba(255,255,255,.55); font-size: 9px; letter-spacing: .06em;
  border: 1px dashed rgba(255,255,255,.22); transition: all .16s; }
.rail .rail-portal svg { width: 19px; height: 19px; stroke: currentColor; fill: none; stroke-width: 1.5; }
.rail .rail-portal:hover { color: #fff; border-color: rgba(176,138,60,.6);
  background: rgba(176,138,60,.14); }

/* ---------- トップバー: アバター (プロフィール) メニュー ---------- */
details.who-menu { position: relative; }
details.who-menu summary { list-style: none; cursor: pointer; display: flex;
  align-items: center; gap: 11px; padding: 7px 10px; border-radius: 12px;
  transition: background .14s; user-select: none; }
details.who-menu summary::-webkit-details-marker { display: none; }
details.who-menu summary:hover { background: var(--paper-2); }
details.who-menu .who-name { font-size: 12.5px; color: var(--muted); }
details.who-menu .who-name em { font-style: normal; color: var(--faint); font-size: 11px; }
details.who-menu .caret { font-size: 9px; color: var(--faint); transition: transform .18s; }
details.who-menu[open] .caret { transform: rotate(180deg); }
details.who-menu .menu { position: absolute; top: calc(100% + 8px); right: 0;
  min-width: 250px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-m); box-shadow: var(--sh-2); padding: 7px; z-index: 400; }
details.who-menu .menu a { display: block; padding: 11px 14px; border-radius: 10px;
  font-size: 13px; line-height: 1.5; transition: background .12s; }
details.who-menu .menu a:hover { background: var(--brand-tint); color: var(--brand); }
details.who-menu .menu a b { display: block; font-size: 13px; }
details.who-menu .menu a span { display: block; font-size: 11px; color: var(--faint); margin-top: 2px; }
details.who-menu .menu hr { border: none; border-top: 1px solid var(--line); margin: 6px 4px; }
details.who-menu .menu a.out b { color: var(--bad); }

/* ---------- モバイル: ポータル導線 ---------- */
@media (max-width: 720px) {
  details.who-menu .who-name { display: none; } /* 狭幅はアバターのみ */
}

/* ================================================================
   v2.4 — 本物の地図 (Leaflet + 実 API) を Estate スタイルで
   ================================================================ */
.estate-map { border-radius: var(--r-l); border: 1px solid var(--line-strong);
  overflow: hidden; box-shadow: var(--sh-1); background: var(--paper-2); }
.estate-map .leaflet-container { background: var(--paper-2); font-family: var(--sans); }

/* ズーム/GPS は .map-tools に統一 (Leaflet 標準ズームは非表示) */
.estate-map .leaflet-control-zoom { display: none; }
.estate-map .leaflet-control-attribution {
  font-size: 9.5px; background: rgba(255,255,255,.82); color: var(--faint);
  border-radius: 8px 0 0 0; padding: 2px 8px; }

/* ポップアップ */
.estate-map .leaflet-popup-content-wrapper { border-radius: 14px;
  box-shadow: var(--sh-2); border: 1px solid var(--line); }
.estate-map .leaflet-popup-content { margin: 14px 18px; min-width: 200px; max-width: 280px; font-size: 12.5px; line-height: 1.75; }
.estate-map .ep-kicker { font-size: 9px; letter-spacing: .2em; text-transform: uppercase; color: var(--brass); font-weight: 700; }
.estate-map .ep-title { font-family: var(--serif); font-weight: 600; font-size: 14.5px; margin: 3px 0 6px; }
.estate-map .ep-row { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px dashed var(--line); padding: 3px 0; }
.estate-map .ep-row:last-of-type { border-bottom: none; }
.estate-map .ep-row b { font-variant-numeric: tabular-nums; }
.estate-map .ep-tag { display: inline-block; background: var(--brand-tint); color: var(--brand);
  font-size: 10px; font-weight: 700; border-radius: 100px; padding: 2px 9px; letter-spacing: .06em; }

/* 駅ドット (divIcon 内側) */
.stn-dot { box-sizing: border-box; border-radius: 50%; border: 2.5px solid #fff;
  box-shadow: 0 1px 4px rgba(28,31,35,.35); }


/* ================================================================
   v3.1 — ポータル比較 / マイページ / 会員 / 予約カレンダー
   ================================================================ */
.ph .fav.cmp { right: 46px; }
.ph .fav.cmp.on { background: var(--brand); color: #fff; border-color: var(--brand); }

/* ヒーロー写真 */
.p-hero.with-photo {
  background: linear-gradient(100deg, rgba(12,59,32,.88) 8%, rgba(12,59,32,.62) 46%, rgba(12,59,32,.28) 100%),
              url('/static/design/hero.jpg') center / cover no-repeat;
}

/* 比較テーブル */
.cmp-table th { background: var(--brand-deep); color: #fff; font-weight: 700; }
.cmp-table td, .cmp-table th { padding: 12px 14px; border: 1px solid var(--line); font-size: 13.5px; vertical-align: top; }
.cmp-table .rowlabel { background: var(--paper-2); font-weight: 700; white-space: nowrap; width: 130px; }

/* 予約カレンダー */
.cal { background: #fff; border: 1px solid var(--line-strong); border-radius: var(--r-m); padding: 12px; }
.cal-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; font-weight: 700; font-size: 13.5px; }
.cal-h button { border: none; background: var(--paper-2); border-radius: 8px; width: 28px; height: 28px; font-weight: 700; }
.cal-g { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; text-align: center; font-size: 12px; }
.cal-g .dow { color: var(--muted); font-size: 10.5px; padding: 4px 0; }
.cal-g button { border: 1px solid transparent; background: transparent; border-radius: 8px; height: 30px; font-size: 12.5px; }
.cal-g button:hover { background: var(--brand-tint); }
.cal-g button.sel { background: var(--brand); color: #fff; font-weight: 700; }
.cal-g button:disabled { color: var(--faint); cursor: default; }

/* マイページ サイドメニュー */
.myp-nav a { display: flex; align-items: center; gap: 9px; padding: 11px 14px;
  border-radius: 10px; font-size: 13.5px; color: var(--muted); }
.myp-nav a.on { background: var(--brand-tint); color: var(--brand); font-weight: 700; }

/* チャット */
.chat-bubble { max-width: 78%; padding: 10px 14px; border-radius: 14px; font-size: 13px;
  line-height: 1.7; margin-bottom: 8px; }
.chat-bubble.me { background: var(--brand); color: #fff; margin-left: auto; border-bottom-right-radius: 4px; }
.chat-bubble.them { background: var(--paper-2); border-bottom-left-radius: 4px; }
.chat-day { text-align: center; font-size: 10.5px; color: var(--faint); margin: 10px 0; }

/* ウィザード */
.wiz-steps { display: flex; gap: 8px; margin-bottom: 20px; }
.wiz-steps .ws { flex: 1; text-align: center; font-size: 11.5px; color: var(--faint);
  padding: 8px 0; border-bottom: 3px solid var(--line); }
.wiz-steps .ws.on { color: var(--brand); border-color: var(--brand); font-weight: 700; }
.wiz-steps .ws.done { color: var(--ok); border-color: var(--ok); }

/* スタッフ物件選択リスト (ウィザード) */
.pick-list { max-height: 260px; overflow: auto; border: 1px solid var(--line); border-radius: var(--r-m); }
.pick-list label { display: flex; gap: 10px; align-items: center; padding: 10px 14px;
  border-bottom: 1px solid var(--line); font-size: 13px; cursor: pointer; }
.pick-list label:hover { background: var(--brand-tint); }


/* ================================================================
   v3.2 — 検索付きセレクト (attachSearchSelect)
   ================================================================ */
.ss-wrap { position: relative; }
.ss-wrap .input { padding-right: 34px; }
.ss-wrap .input::placeholder { color: var(--faint); }
.ss-drop { display: none; position: absolute; z-index: 650; left: 0; right: 0; top: calc(100% + 4px);
  background: #fff; border: 1px solid var(--line-strong); border-radius: 12px;
  box-shadow: var(--sh-2); max-height: 248px; overflow: auto; }
.ss-item { padding: 10px 14px; font-size: 13.5px; cursor: pointer; border-bottom: 1px solid var(--line); }
.ss-item:last-child { border-bottom: none; }
.ss-item:hover { background: var(--brand-tint); }
.ss-item .sub { display: block; font-size: 11px; color: var(--faint); margin-top: 2px; }
.ss-none { color: var(--muted); cursor: default; }
.ss-item.ss-extra { color: var(--brand); font-weight: 700; }

/* ---------- モバイル補強 (viewport 有効化に伴う調整) ---------- */
@media (max-width: 720px){
  html, body { overflow-x: hidden; overflow-x: clip; }
  div[style*="display:flex"] { flex-wrap: wrap; }
  div[style*="grid-template-columns:1.5fr"],
  div[style*="grid-template-columns:1.6fr"],
  div[style*="grid-template-columns:1.4fr"],
  div[style*="grid-template-columns:1.05fr"] { grid-template-columns: 1fr !important; }
  .tabs { flex-wrap: wrap; border-radius: 18px; }
  .tabs button { flex: 1 1 auto; padding: 9px 14px; }
  .p-stats { flex-wrap: wrap; gap: 18px 24px; }
  .p-stats .st { padding: 0 0 0 24px; }
  .p-stats .st:nth-child(odd) { padding-left: 0; border-left: none; }
  .g2[style*="grid-template-columns"], .g3[style*="grid-template-columns"], .g4[style*="grid-template-columns"] { grid-template-columns: 1fr !important; }
  .card[style*="overflow:hidden"] { overflow-x: auto !important; }
  main, .main, .card { min-width: 0; }
  .tbl { min-width: 620px; }
  input, select, textarea { max-width: 100%; }
  .mock-float { right: 12px; bottom: 12px; }
  .mock-float a { padding: 8px 12px; font-size: 10.5px; }
  img, svg { max-width: 100%; }
}
