/* =====================================================================
   SUNMOVE Design System — "SUN LEDGER"
   骨格: ライト×金融知性 / アンバーは「お金の数字」専用 / 濃紺はヒーロー帯限定
   ===================================================================== */
:root {
  /* Surface */
  --bg-page: #F6F8FB;
  --bg-surface: #FFFFFF;
  --bg-sunken: #EDF1F6;
  --bg-inverse: #0F1F3D;
  --bg-inverse-2: #16294F;
  /* Border */
  --border-subtle: #E4E9F0;
  --border-strong: #C9D2DE;
  --border-gold: #D9B36A;
  /* Ink */
  --ink-900: #0F1F3D;
  --ink-700: #33415C;
  --ink-500: #5C6B84;
  --ink-300: #94A3B8;
  --ink-inverse: #F6F8FB;
  --ink-inverse-mid: #9FB0C9;
  /* Brand */
  --blue-600: #0B5FFF;
  --blue-700: #0047D6;
  --blue-100: #E8F0FE;
  --blue-050: #F3F7FF;
  --sun-500: #F59E0B;
  --sun-600: #D97706;
  --sun-100: #FEF3DD;
  /* Semantic */
  --gain-600: #0E9F6E; --gain-100: #E3F5EE;
  --loss-600: #E02D3C; --loss-100: #FCE9EB;
  /* Grade */
  --grade-s: #7C3AED; --grade-a: #0B5FFF; --grade-b: #0E9F6E;
  --grade-c: #5C6B84; --grade-d: #94A3B8;
  /* FIT bar */
  --fit-long: #0E9F6E; --fit-mid: #D97706; --fit-short: #E02D3C; --fit-spent: #CBD5E1;
  /* Typography */
  --font-sans: "Inter", "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", sans-serif;
  --font-display: "Manrope", "Noto Sans JP", sans-serif;
  --font-code: "JetBrains Mono", Consolas, monospace;
  /* Elevation */
  --shadow-card: 0 1px 2px rgba(15,31,61,.05), 0 1px 3px rgba(15,31,61,.08);
  --shadow-hover: 0 4px 12px rgba(15,31,61,.10), 0 2px 4px rgba(15,31,61,.06);
  --shadow-modal: 0 24px 48px -12px rgba(15,31,61,.22);
  --shadow-sticky: 0 -4px 16px rgba(15,31,61,.08);
  /* Radius */
  --r-sm: 6px; --r-md: 10px; --r-lg: 14px; --r-xl: 20px; --r-pill: 999px;
  /* Layout */
  --container: 1280px;
  --ease-pop: cubic-bezier(.2,.8,.3,1.1);

  /* 旧トークン名の互換エイリアス（コンポーネント参照用） */
  --c-sun-500: var(--sun-500);
  --c-sky-500: var(--blue-600);
  --c-yield: var(--gain-600);
  --c-bg: var(--bg-page);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg-page); color: var(--ink-700);
  font-family: var(--font-sans); font-size: 15px; line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blue-600); text-decoration: none; }
a:hover { text-decoration: underline; }
h1,h2,h3,h4,h5 { color: var(--ink-900); line-height: 1.3; margin: 0; }
button { font-family: inherit; cursor: pointer; }
input, select { font-family: inherit; font-size: 14px; }
::selection { background: var(--blue-100); }

.num { font-feature-settings: "tnum" 1; letter-spacing: -0.01em; }
.money { color: var(--sun-600); }      /* 排他ルール: お金の数字専用 */
.asset-id {
  font-family: var(--font-code); font-size: 11.5px; color: var(--ink-500);
  letter-spacing: .02em; cursor: copy;
}

/* ===================== ヘッダー ===================== */
.site-header {
  position: sticky; top: 0; z-index: 1500; height: 64px;
  display: flex; align-items: center; gap: 28px; padding: 0 28px;
  background: var(--bg-surface); border-bottom: 1px solid var(--border-subtle);
}
.logo { display: flex; align-items: center; gap: 9px; flex: none; }
.logo-text { white-space: nowrap; }
.logo:hover { text-decoration: none; }
.logo-text {
  font-family: var(--font-display); font-weight: 800; font-size: 21px;
  color: var(--ink-900); display: flex; flex-direction: column; line-height: 1;
}
.logo-text small {
  font-size: 8.5px; font-weight: 700; letter-spacing: .34em; color: var(--ink-300); margin-top: 3px;
}
.global-nav { display: flex; gap: 4px; flex: 1; }
.global-nav a {
  position: relative; padding: 9px 14px; border-radius: var(--r-md);
  color: var(--ink-700); font-weight: 600; font-size: 14px; white-space: nowrap;
}
.global-nav a:hover { background: var(--blue-050); text-decoration: none; }
.global-nav a.active { color: var(--blue-600); background: var(--blue-100); }
.nav-note {
  font-size: 9.5px; color: var(--gain-600); background: var(--gain-100);
  border-radius: var(--r-pill); padding: 1px 6px; margin-left: 5px; vertical-align: 2px;
}
.nav-badge {
  font-size: 10px; font-weight: 700; color: #fff; background: var(--loss-600);
  border-radius: var(--r-pill); padding: 1px 6px; margin-left: 5px; vertical-align: 2px;
}
.header-actions { display: flex; gap: 10px; align-items: center; }

/* トラストバー */
.trust-bar {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--bg-sunken); color: var(--ink-500);
  font-size: 11.5px; padding: 5px 16px; border-bottom: 1px solid var(--border-subtle);
}
.trust-bar svg { color: var(--gain-600); flex: none; }
.trust-bar strong { color: var(--ink-700); font-feature-settings: "tnum" 1; }
.trust-sep { color: var(--border-strong); margin: 0 4px; }
.trust-item { white-space: nowrap; }
@media (max-width: 980px) { .trust-opt { display: none; } }
@media (max-width: 640px) { .trust-bar .trust-item:first-of-type { display: none; } .trust-bar .trust-sep { display: none; } }

/* ===================== ボタン・タグ・チップ ===================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  border-radius: var(--r-pill); border: 0; font-weight: 700; font-size: 14px;
  padding: 11px 24px; transition: all .15s ease; white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--blue-600); color: #fff; }
.btn-primary:hover { background: var(--blue-700); }
.btn-ghost { background: transparent; color: var(--blue-600); border: 1px solid var(--border-strong); }
.btn-ghost:hover { background: var(--blue-050); }
.btn-sub { background: var(--bg-sunken); color: var(--ink-500); }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-lg { padding: 14px 34px; font-size: 15px; }
.btn-block { width: 100%; margin-top: 10px; }

.tag {
  display: inline-flex; align-items: center; font-size: 11px; font-weight: 600;
  color: var(--ink-500); background: var(--bg-sunken);
  border-radius: var(--r-sm); padding: 2px 8px; white-space: nowrap;
}
.tag-on { color: var(--gain-600); background: var(--gain-100); }
.tag-off { color: var(--ink-500); background: var(--bg-sunken); }
.tag-listed { color: var(--blue-600); background: var(--blue-100); }
.tag-offer { color: var(--ink-500); border: 1px dashed var(--border-strong); background: transparent; }
.tag-type { color: var(--blue-600); background: var(--blue-100); }
.tag-demo { color: var(--sun-600); background: var(--sun-100); }
.type-tag { gap: 4px; }
.type-tag .dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }

.chip {
  display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px;
  background: var(--bg-sunken); border-radius: var(--r-pill); padding: 4px 12px;
  color: var(--ink-700);
}
.chip-sm { font-size: 11px; padding: 2px 9px; }
.chip strong { color: var(--ink-900); }
.chip-btn {
  font-size: 12.5px; background: var(--bg-surface); border: 1px solid var(--border-strong);
  border-radius: var(--r-pill); padding: 5px 13px; color: var(--blue-600); font-weight: 600;
}
.chip-btn:hover { background: var(--blue-050); }
.quick-chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0; }
.pill {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600;
  color: var(--blue-600); background: var(--blue-100); border: 0;
  border-radius: var(--r-pill); padding: 5px 12px;
}
.pill:hover { background: #DBE7FD; }

.source-chip {
  display: inline-flex; align-items: center; gap: 6px; font-size: 11px;
  color: var(--ink-500); background: var(--bg-sunken);
  border-radius: var(--r-pill); padding: 3px 10px; vertical-align: 2px;
}
.source-chip::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--gain-600); animation: pulse 2.4s infinite;
}
@keyframes pulse { 50% { opacity: .35; } }

.seg { display: inline-flex; background: var(--bg-sunken); border-radius: var(--r-pill); padding: 3px; gap: 2px; }
.seg button {
  border: 0; background: transparent; border-radius: var(--r-pill);
  padding: 7px 16px; font-size: 13px; font-weight: 600; color: var(--ink-500);
}
.seg button.active { background: var(--bg-surface); color: var(--ink-900); box-shadow: var(--shadow-card); }
.seg-lg { margin-bottom: 20px; }
.seg-lg button { padding: 9px 22px; font-size: 14px; }

/* ===================== レイアウト共通 ===================== */
.page { min-height: 70vh; }
.section, .page-head, .listings-layout, .broker-tabs, .broker-desc, .broker-tools,
.podium, #b-table, .sell-steps, .inbox, .seg-lg, .about-grid, .scout-head, .scout-grid {
  max-width: var(--container); margin-left: auto; margin-right: auto;
  padding-left: 28px; padding-right: 28px;
}
.section { margin-top: 28px; }
.page-head { padding-top: 34px; margin-bottom: 18px; }
.page-head h2 { font-size: 30px; font-family: var(--font-display); font-weight: 800; }
.page-head p { margin: 8px 0 0; color: var(--ink-500); display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.page-head-note {
  font-size: 12px; font-weight: 700; color: var(--grade-s); background: #F1EAFE;
  border-radius: var(--r-pill); padding: 4px 12px; margin-left: 12px; vertical-align: 6px;
}

.card-box {
  background: var(--bg-surface); border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg); box-shadow: var(--shadow-card); padding: 20px 22px;
}
.card-box > h4 {
  font-size: 15.5px; margin-bottom: 14px; display: flex; align-items: baseline; gap: 10px;
}
.card-box > h4 small { font-size: 11.5px; font-weight: 500; color: var(--ink-300); }
.chart { width: 100%; }
.empty { color: var(--ink-300); text-align: center; padding: 24px; }
.empty-state { text-align: center; padding: 60px 20px; color: var(--ink-500); }
.empty-state .quick-chips { justify-content: center; margin-top: 16px; }

/* スケルトン */
.skeleton-block, .skeleton-inline, .skeleton-card {
  background: linear-gradient(90deg, var(--bg-sunken) 25%, #F4F7FA 50%, var(--bg-sunken) 75%);
  background-size: 200% 100%; animation: sk 1.4s infinite; border-radius: var(--r-sm);
}
.skeleton-block { height: 110px; margin-bottom: 12px; }
.skeleton-block.short { height: 56px; width: 65%; }
.skeleton-inline { display: inline-block; height: 20px; width: 130px; }
.skeleton-card { min-height: 300px; border: 0 !important; }
@keyframes sk { to { background-position: -200% 0; } }

/* トースト */
#toast-root { position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 4000; display: flex; flex-direction: column; gap: 8px; }
.toast {
  background: var(--ink-900); color: #fff; font-size: 13.5px; font-weight: 600;
  border-radius: var(--r-pill); padding: 11px 22px; opacity: 0;
  transform: translateY(8px); transition: all .25s var(--ease-pop); box-shadow: var(--shadow-modal);
}
.toast.show { opacity: 1; transform: none; }

/* ===================== ヒーロー（濃紺帯＝サイト唯一のダーク領域） ===================== */
.hero {
  position: relative; background: linear-gradient(135deg, var(--bg-inverse) 0%, #122A55 70%, #16335F 100%);
  color: var(--ink-inverse); overflow: hidden;
}
.hero-inner {
  max-width: var(--container); margin: 0 auto; padding: 64px 28px 56px;
  position: relative; z-index: 2;
}
.hero-eyebrow {
  font-size: 12.5px; font-weight: 700; letter-spacing: .14em; color: var(--ink-inverse-mid);
  text-transform: uppercase; margin: 0 0 14px;
}
.hero-title, .sell-hero h1 {
  font-family: var(--font-display); font-size: 46px; font-weight: 800;
  color: #fff; letter-spacing: .01em; margin: 0 0 26px;
}
.hero-title em, .sell-hero em {
  font-style: normal; color: var(--sun-500);
  text-decoration: underline; text-decoration-color: rgba(245,158,11,.45);
  text-underline-offset: 8px; text-decoration-thickness: 3px;
}
.hero-stats { display: flex; gap: 44px; margin-bottom: 30px; }
.hero-stat strong {
  display: block; font-family: var(--font-display); font-size: 42px; font-weight: 800;
  color: #fff; font-feature-settings: "tnum" 1; line-height: 1.1;
}
.hero-stat span { font-size: 12.5px; color: var(--ink-inverse-mid); }
.hero-search {
  display: flex; align-items: center; gap: 10px; max-width: 660px;
  background: #fff; border-radius: var(--r-pill); padding: 7px 8px 7px 20px;
  box-shadow: 0 10px 36px rgba(0,0,0,.30);
}
.hero-search svg { color: var(--ink-300); flex: none; }
.hero-search input {
  flex: 1; border: 0; outline: 0; font-size: 15px; color: var(--ink-900); background: transparent; min-width: 0;
}
.hero-search-xl { max-width: 720px; padding: 10px 10px 10px 24px; }
.hero-search-xl input { font-size: 16.5px; }
.hero-hint { font-size: 12px; color: var(--ink-inverse-mid); margin: 12px 2px 0; }
.hero-sun {
  position: absolute; right: -120px; top: -190px; width: 560px; height: 560px; border-radius: 50%;
  background: radial-gradient(circle, rgba(245,158,11,.32) 0%, rgba(245,158,11,.07) 48%, transparent 70%);
  z-index: 1;
}

/* ティッカー（濃紺帯直下限定） */
.ticker-wrap {
  background: var(--bg-inverse-2); border-bottom: 1px solid #20355E;
  overflow: hidden; height: 38px; display: flex; align-items: center;
}
.ticker {
  display: inline-flex; align-items: center; gap: 26px; white-space: nowrap;
  animation: tick 90s linear infinite; font-size: 12.5px; color: var(--ink-inverse-mid);
  padding-left: 100%;
}
.ticker-wrap:hover .ticker { animation-play-state: paused; }
.tick strong { color: var(--sun-500); font-feature-settings: "tnum" 1; font-weight: 700; }
.tick-dot { font-size: 5px; color: #2C4A7E; }
@keyframes tick { to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) {
  .ticker { animation: none; padding-left: 0; }
  .card-spark, .toast { transition: none; }
}

/* ===================== KPI ===================== */
.kpi-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.kpi-card {
  background: var(--bg-surface); border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg); box-shadow: var(--shadow-card); padding: 16px 18px;
  display: flex; flex-direction: column; gap: 2px;
  transition: all .15s var(--ease-pop); color: inherit;
}
.kpi-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); text-decoration: none; }
.kpi-card strong {
  font-family: var(--font-display); font-size: 26px; font-weight: 800;
  color: var(--ink-900); font-feature-settings: "tnum" 1; line-height: 1.2;
}
.kpi-card span { font-size: 12.5px; font-weight: 600; color: var(--ink-700); }
.kpi-card small { font-size: 11px; color: var(--blue-600); margin-top: 4px; }

/* ===================== ダッシュボード ===================== */
.sec-2col { display: grid; grid-template-columns: 1.9fr 1fr; gap: 20px; }
.side-col { display: flex; flex-direction: column; gap: 20px; }
.sec-charts { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.map-box { position: relative; }
.map-toggle { position: absolute; top: 18px; right: 18px; z-index: 5; display: flex; gap: 4px; background: var(--bg-sunken); border-radius: var(--r-pill); padding: 3px; }
.map-toggle button { border: 0; background: transparent; font-size: 12px; font-weight: 600; color: var(--ink-500); border-radius: var(--r-pill); padding: 5px 12px; }
.map-toggle button.active { background: var(--bg-surface); color: var(--ink-900); box-shadow: var(--shadow-card); }

.hot-list, .big-list { display: flex; flex-direction: column; }
.hot-row {
  display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 11px 4px;
  border-bottom: 1px solid var(--border-subtle); color: inherit; border-radius: var(--r-sm);
}
.hot-row:hover { background: var(--blue-050); text-decoration: none; }
.hot-row:last-child { border-bottom: 0; }
.hot-area { font-weight: 700; color: var(--ink-900); font-size: 13.5px; }
.hot-spec { font-size: 11.5px; color: var(--ink-500); grid-row: 2; }
.hot-price { grid-row: 1 / span 2; align-self: center; font-weight: 700; color: var(--sun-600); font-feature-settings: "tnum" 1; font-size: 15px; text-align: right; }
.hot-price small { display: block; color: var(--gain-600); font-size: 11px; font-weight: 600; }

.big-row {
  display: flex; align-items: center; gap: 12px; padding: 10px 4px;
  border-bottom: 1px solid var(--border-subtle); color: inherit; border-radius: var(--r-sm);
}
.big-row:hover { background: var(--blue-050); text-decoration: none; }
.big-row:last-child { border-bottom: 0; }
.big-rank {
  width: 24px; height: 24px; border-radius: 50%; background: var(--bg-sunken);
  display: grid; place-items: center; font-size: 12px; font-weight: 800;
  color: var(--ink-500); font-family: var(--font-display); flex: none;
}
.big-row:nth-child(1) .big-rank { background: var(--sun-100); color: var(--sun-600); }
.big-name { flex: 1; font-weight: 600; font-size: 13px; color: var(--ink-900); display: flex; flex-direction: column; line-height: 1.35; min-width: 0; }
.big-name small { font-weight: 500; color: var(--ink-300); font-size: 10.5px; }
.big-n { font-size: 12px; color: var(--ink-500); white-space: nowrap; }
.big-n strong { font-family: var(--font-display); font-size: 17px; color: var(--ink-900); font-feature-settings: "tnum" 1; }

.persona-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 52px; }
.persona {
  display: flex; flex-direction: column; gap: 6px; padding: 22px;
  background: var(--bg-surface); border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg); box-shadow: var(--shadow-card); color: inherit;
  transition: all .15s var(--ease-pop);
}
.persona:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); text-decoration: none; }
.persona-icon {
  width: 46px; height: 46px; border-radius: var(--r-md); background: var(--blue-100);
  color: var(--blue-600); display: grid; place-items: center; margin-bottom: 4px;
}
.persona strong { color: var(--ink-900); font-size: 15.5px; }
.persona span:last-child { font-size: 12.5px; color: var(--ink-500); }

/* ===================== 物件カード ===================== */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.card-grid-compact { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.p-card {
  background: var(--bg-surface); border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg); box-shadow: var(--shadow-card); overflow: hidden;
  transition: all .15s var(--ease-pop); cursor: pointer;
}
.p-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.p-card-visual {
  position: relative; height: 92px; padding: 12px 14px;
  display: flex; align-items: flex-end; justify-content: space-between;
}
.pref-grad-0 { background: linear-gradient(120deg, #16335F, #2A5298); }
.pref-grad-1 { background: linear-gradient(120deg, #0F3D34, #19705F); }
.pref-grad-2 { background: linear-gradient(120deg, #443063, #6D4DA8); }
.pref-grad-3 { background: linear-gradient(120deg, #173F5F, #1D6A96); }
.pref-grad-4 { background: linear-gradient(120deg, #5C3A14, #9A6420); }
.pref-grad-5 { background: linear-gradient(120deg, #3D1F33, #7A3D62); }
.p-card-pref { color: #fff; font-weight: 800; font-family: var(--font-display); font-size: 17px; letter-spacing: .04em; text-shadow: 0 1px 6px rgba(0,0,0,.3); }
.card-spark { opacity: .9; }
.ribbon {
  position: absolute; top: 10px; left: 10px; font-size: 10px; font-weight: 800;
  letter-spacing: .08em; border-radius: var(--r-sm); padding: 2px 8px;
}
.ribbon-new { background: var(--sun-500); color: #fff; }
.ribbon-pre { background: rgba(255,255,255,.92); color: var(--ink-700); left: auto; right: 10px; top: 10px; }
.p-card-body { padding: 13px 15px 12px; }
.p-card-area {
  font-size: 12.5px; font-weight: 700; color: var(--ink-900);
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 6px;
}
.p-card-price-row { display: flex; align-items: baseline; gap: 10px; margin-bottom: 7px; }
.p-card-price { font-family: var(--font-display); font-weight: 800; font-size: 24px; line-height: 1.1; }
.yield-pill {
  font-size: 12px; font-weight: 700; color: var(--gain-600); background: var(--gain-100);
  border-radius: var(--r-pill); padding: 2px 10px; font-feature-settings: "tnum" 1;
}
.p-card-specs { display: flex; gap: 12px; font-size: 11.5px; color: var(--ink-500); margin-bottom: 9px; flex-wrap: wrap; }
.p-card-specs svg { vertical-align: -1px; margin-right: 2px; color: var(--ink-300); }

.remain-meter { margin-bottom: 9px; }
.remain-label { display: flex; justify-content: space-between; font-size: 11px; color: var(--ink-500); margin-bottom: 3px; }
.remain-label strong { color: var(--ink-900); font-feature-settings: "tnum" 1; }
.remain-bar { height: 7px; border-radius: var(--r-pill); background: var(--fit-spent); overflow: hidden; }
.remain-fill { height: 100%; border-radius: var(--r-pill); background: var(--fit-long); }
.meter-mid .remain-fill { background: var(--fit-mid); }
.meter-low .remain-fill { background: var(--fit-short); }
.meter-low .remain-label strong { color: var(--fit-short); }

.p-card-foot {
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid var(--border-subtle); padding-top: 9px; font-size: 12px; color: var(--ink-500);
}
.p-card-rev strong { font-size: 13px; }
.p-card-meta-r { display: flex; align-items: center; gap: 10px; }
.p-card-watch { display: inline-flex; align-items: center; gap: 3px; color: var(--ink-300); font-feature-settings: "tnum" 1; }

/* ===================== グレードリング ===================== */
.grade-ring {
  display: inline-grid; place-items: center; border-radius: 50%;
  font-family: var(--font-display); font-weight: 800; border: 3px solid currentColor;
  flex: none; background: var(--bg-surface);
}
.grade-ring[data-grade="S"] { color: var(--grade-s); }
.grade-ring[data-grade="A"] { color: var(--grade-a); }
.grade-ring[data-grade="B"] { color: var(--grade-b); }
.grade-ring[data-grade="C"] { color: var(--grade-c); }
.grade-ring[data-grade="D"] { color: var(--grade-d); }
.grade-sm { width: 30px; height: 30px; font-size: 13px; border-width: 2.5px; }
.grade-md { width: 40px; height: 40px; font-size: 17px; }
.grade-lg { width: 52px; height: 52px; font-size: 22px; }
.grade-xl { width: 68px; height: 68px; font-size: 30px; border-width: 4px; }

/* ===================== 業者カード/名鑑 ===================== */
.broker-tabs { display: flex; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.broker-tabs button {
  border: 1px solid var(--border-strong); background: var(--bg-surface);
  border-radius: var(--r-pill); padding: 8px 18px; font-size: 13.5px; font-weight: 600; color: var(--ink-700);
}
.broker-tabs button.active { background: var(--ink-900); border-color: var(--ink-900); color: #fff; }
.broker-desc { color: var(--ink-500); font-size: 13px; margin: 0 0 16px; }
.broker-tools { display: flex; gap: 14px; align-items: center; margin-bottom: 20px; flex-wrap: wrap; }
.broker-tools input[type="search"] {
  border: 1px solid var(--border-strong); border-radius: var(--r-pill);
  padding: 9px 18px; width: 240px; outline-color: var(--blue-600);
}
.grade-help { font-size: 12.5px; color: var(--ink-500); max-width: 520px; }
.grade-help summary { cursor: pointer; color: var(--blue-600); font-weight: 600; }
.grade-help p { margin: 8px 0 0; }

.podium { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 20px; }
.podium-card {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px;
  background: var(--bg-surface); border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg); box-shadow: var(--shadow-card); padding: 24px 18px 20px;
  transition: all .15s var(--ease-pop); text-align: center;
}
.podium-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.podium-rank {
  position: absolute; top: 14px; left: 18px; font-family: var(--font-display);
  font-size: 30px; font-weight: 800; line-height: 1;
}
.rank-1 .podium-rank { color: #C9A227; }
.rank-2 .podium-rank { color: #8C9BAB; }
.rank-3 .podium-rank { color: #A66A3A; }
.podium-name { font-size: 15px; color: var(--ink-900); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.podium-n strong { font-family: var(--font-display); font-size: 30px; font-weight: 800; color: var(--ink-900); }
.podium-n { font-size: 13px; color: var(--ink-500); }
.podium-sub { font-size: 11.5px; color: var(--ink-300); }

.table-scroll { overflow-x: auto; }
.table-dense { width: 100%; border-collapse: collapse; font-size: 13px; }
.table-dense th {
  background: var(--bg-sunken); font-size: 11px; letter-spacing: .06em; color: var(--ink-500);
  text-align: left; padding: 8px 10px; position: sticky; top: 0; white-space: nowrap;
}
.table-dense td { padding: 0 10px; height: 38px; border-bottom: 1px solid var(--border-subtle); white-space: nowrap; }
.table-dense tbody tr { cursor: pointer; }
.table-dense tbody tr:hover td { background: var(--blue-050); }
.table-dense td.num, .table-dense th.num { text-align: right; font-feature-settings: "tnum" 1; }
.fit-cell { position: relative; width: 110px; height: 8px; background: var(--fit-spent); border-radius: var(--r-pill); }
.fit-cell i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: var(--r-pill); background: var(--fit-long); }
.fit-cell.meter-mid i { background: var(--fit-mid); }
.fit-cell.meter-low i { background: var(--fit-short); }
.fit-cell span { position: absolute; left: 0; top: 10px; font-size: 10px; color: var(--ink-500); }
.table-dense .fit-cell { margin: 6px 0 12px; }

.table-brokers .rank-cell { color: var(--ink-300); font-family: var(--font-display); font-weight: 700; }
.table-brokers .b-name strong { font-size: 13.5px; }
.col-count { min-width: 150px; }
.count-hero { font-family: var(--font-display); font-size: 19px; font-weight: 800; color: var(--ink-900); display: block; line-height: 1.4; }
.count-bar { display: block; height: 4px; background: var(--blue-600); border-radius: var(--r-pill); opacity: .55; margin-bottom: 4px; }
.kw-sub { color: var(--ink-300) !important; font-size: 12px; }
.pref-cell { color: var(--ink-500); font-size: 12px; }

.b-stat { display: flex; flex-direction: column; align-items: center; }
.b-stat strong { font-family: var(--font-display); font-size: 19px; font-weight: 800; color: var(--ink-900); font-feature-settings: "tnum" 1; }
.b-stat span { font-size: 11px; color: var(--ink-500); }
.b-stat small { font-size: 10px; }
.b-stat-hero strong { font-size: 27px; color: var(--blue-600); }

/* ===================== スコアバー ===================== */
.score-bar { display: flex; align-items: center; gap: 8px; min-width: 150px; }
.score-track { flex: 1; display: flex; height: 9px; border-radius: var(--r-pill); background: var(--bg-sunken); overflow: hidden; }
.score-track i { height: 100%; }
.score-num { font-family: var(--font-display); font-size: 15px; color: var(--ink-900); font-feature-settings: "tnum" 1; }

/* ===================== モーダル ===================== */
.modal-wrap { position: fixed; inset: 0; z-index: 3000; display: grid; place-items: center; padding: 22px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(15,31,61,.45); backdrop-filter: blur(2px); opacity: 0; transition: opacity .18s; }
.modal {
  position: relative; width: min(980px, 94vw); max-height: 90vh; display: flex; flex-direction: column;
  background: var(--bg-page); border-radius: var(--r-xl); box-shadow: var(--shadow-modal);
  opacity: 0; transform: translateY(14px) scale(.985); transition: all .18s var(--ease-pop);
  overflow: hidden;
}
.modal-wrap.open .modal-backdrop { opacity: 1; }
.modal-wrap.open .modal { opacity: 1; transform: none; }
.modal-head {
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
  padding: 16px 22px; background: var(--bg-surface); border-bottom: 1px solid var(--border-subtle); flex: none;
}
.modal-head h3 { font-size: 16px; }
.modal-sub { margin: 2px 0 0; font-size: 11.5px; color: var(--ink-300); font-family: var(--font-code); }
.modal-close { border: 0; background: var(--bg-sunken); border-radius: 50%; width: 34px; height: 34px; display: grid; place-items: center; color: var(--ink-500); }
.modal-close:hover { background: var(--border-subtle); }
.modal-body { overflow-y: auto; padding: 20px 22px 26px; display: flex; flex-direction: column; gap: 16px; }
.modal-cta { display: flex; gap: 12px; align-items: center; justify-content: center; flex-wrap: wrap; padding-top: 4px; }
.modal-note { font-size: 11px; color: var(--ink-300); text-align: center; margin: 0; }

.eq-head { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.eq-title { font-size: 19px; font-weight: 800; color: var(--ink-900); font-family: var(--font-display); }
.eq-tags { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.transfer-badge {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 8px;
  font-size: 12px; font-weight: 700; color: var(--blue-700);
  background: var(--blue-100); border-radius: var(--r-pill); padding: 4px 12px;
}
.addr-note { display: block; font-size: 10.5px; color: var(--ink-300); font-weight: 400; }
.addr-row dd { max-width: 230px; }
.geo-src-note { font-size: 10.5px; color: var(--ink-300); text-align: center; margin: 6px 0 0; min-height: 14px; }
.eq-social { font-size: 11.5px; color: var(--ink-500); margin-top: 8px; }
.eq-social small { color: var(--ink-300); margin-left: 4px; }
.eq-price-box {
  background: var(--sun-100); border-radius: var(--r-lg); padding: 14px 20px;
  display: flex; flex-direction: column; min-width: 280px;
}
.eq-price-label { font-size: 11px; font-weight: 700; color: var(--sun-600); }
.eq-price-label small { font-weight: 500; color: var(--ink-500); margin-left: 4px; }
.eq-price { font-family: var(--font-display); font-size: 25px; font-weight: 800; color: var(--sun-600); font-feature-settings: "tnum" 1; margin: 3px 0 7px; }
.assess-range { position: relative; height: 9px; background: rgba(217,119,6,.18); border-radius: var(--r-pill); }
.assess-mid { position: absolute; top: -3px; width: 4px; height: 15px; background: var(--sun-500); border-radius: 2px; transform: translateX(-50%); }
.eq-price-foot { font-size: 11.5px; color: var(--ink-500); margin-top: 7px; font-feature-settings: "tnum" 1; }

.eq-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 16px; }
.eq-side { display: flex; flex-direction: column; gap: 16px; }
.eq-sim-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 12px; }
.eq-sim-kpis > div { display: flex; flex-direction: column; gap: 1px; }
.eq-sim-kpis span { font-size: 11px; color: var(--ink-500); }
.eq-sim-kpis strong { font-size: 14.5px; color: var(--ink-900); font-feature-settings: "tnum" 1; }
.eq-sim-kpis strong small { font-size: 10px; color: var(--ink-300); margin-left: 3px; }

.spec-list { margin: 0; display: flex; flex-direction: column; }
.spec-list > div { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px dashed var(--border-subtle); font-size: 13px; }
.spec-list > div:last-child { border-bottom: 0; }
.spec-list dt { color: var(--ink-500); }
.spec-list dd { margin: 0; color: var(--ink-900); font-weight: 600; text-align: right; font-feature-settings: "tnum" 1; }

.buyer-list { display: flex; flex-direction: column; }
.buyer-row {
  display: flex; align-items: center; gap: 14px; padding: 11px 6px;
  border-bottom: 1px solid var(--border-subtle); cursor: pointer; border-radius: var(--r-sm);
}
.buyer-row:hover { background: var(--blue-050); }
.buyer-row:last-child { border-bottom: 0; }
.buyer-info { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.buyer-info strong { font-size: 13.5px; color: var(--ink-900); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.buyer-info span { font-size: 11.5px; color: var(--ink-500); }

.ts-head { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.ts-title { flex: 1; min-width: 240px; }
.ts-title h3 { font-size: 21px; font-family: var(--font-display); }
.ts-kpis { display: flex; gap: 26px; }
.report-rows { display: flex; flex-direction: column; gap: 9px; }
.report-row { display: grid; grid-template-columns: 84px 1fr 36px; align-items: center; gap: 12px; font-size: 12.5px; }
.report-label { color: var(--ink-500); }
.report-track { height: 9px; background: var(--bg-sunken); border-radius: var(--r-pill); overflow: hidden; }
.report-fill { height: 100%; background: linear-gradient(90deg, var(--blue-600), #5B8DEF); border-radius: var(--r-pill); }
.report-val { font-family: var(--font-display); font-weight: 800; color: var(--ink-900); text-align: right; font-feature-settings: "tnum" 1; }
.pref-chips { display: flex; gap: 7px; flex-wrap: wrap; }

.mini-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.mini-table th { text-align: left; font-size: 10.5px; color: var(--ink-500); letter-spacing: .05em; padding: 6px 8px; background: var(--bg-sunken); }
.mini-table td { padding: 7px 8px; border-bottom: 1px solid var(--border-subtle); }
.mini-table td.num, .mini-table th.num { text-align: right; font-feature-settings: "tnum" 1; }

/* ===================== 物件検索ページ ===================== */
.listings-layout { display: grid; grid-template-columns: 280px 1fr; gap: 22px; align-items: start; padding-bottom: 56px; }
.filter-rail { position: sticky; top: 78px; }
.f-label { display: block; font-size: 11.5px; font-weight: 700; color: var(--ink-500); margin-bottom: 12px; }
.f-label input, .f-label select {
  display: block; width: 100%; margin-top: 4px; border: 1px solid var(--border-strong);
  border-radius: var(--r-md); padding: 8px 11px; font-size: 13.5px; color: var(--ink-900);
  background: var(--bg-surface); outline-color: var(--blue-600);
}
.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.results-head { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 10px; }
.results-count { font-size: 14px; color: var(--ink-500); }
.results-count strong { font-family: var(--font-display); font-size: 24px; font-weight: 800; color: var(--ink-900); margin-right: 2px; }
.results-count small { margin-left: 8px; font-size: 12px; }
.results-tools { display: flex; gap: 10px; align-items: center; }
.results-tools select {
  border: 1px solid var(--border-strong); border-radius: var(--r-pill);
  padding: 8px 14px; font-size: 13px; font-weight: 600; color: var(--ink-700); background: var(--bg-surface);
}
.view-toggle { display: flex; background: var(--bg-sunken); border-radius: var(--r-md); padding: 3px; gap: 2px; }
.view-toggle button { border: 0; background: transparent; border-radius: 7px; width: 34px; height: 30px; display: grid; place-items: center; color: var(--ink-300); }
.view-toggle button.active { background: var(--bg-surface); color: var(--blue-600); box-shadow: var(--shadow-card); }
.active-pills { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.results .table-scroll { background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: var(--r-lg); box-shadow: var(--shadow-card); }
.pager { display: flex; gap: 6px; justify-content: center; margin-top: 26px; align-items: center; }
.pg {
  min-width: 36px; height: 36px; border: 1px solid var(--border-strong); background: var(--bg-surface);
  border-radius: var(--r-md); font-weight: 700; font-size: 13px; color: var(--ink-700); font-feature-settings: "tnum" 1;
}
.pg:hover { background: var(--blue-050); }
.pg.active { background: var(--blue-600); border-color: var(--blue-600); color: #fff; }
.pg-dots { color: var(--ink-300); }

/* ===================== 売りたい ===================== */
.mode-seller { font-size: 16px; }
.sell-hero {
  background: linear-gradient(135deg, var(--bg-inverse) 0%, #122A55 75%, #16335F 100%);
  color: var(--ink-inverse); padding: 40px 0 46px;
}
.sell-hero .hero-inner { padding-top: 14px; padding-bottom: 0; }
.sell-hero h1 { font-size: 38px; margin-bottom: 24px; }
.sell-trust { font-size: 12.5px; color: var(--ink-inverse-mid); margin: 14px 2px 0; max-width: 720px; }
.sell-trust a { color: #BFD3F5; text-decoration: underline; }
.sell-steps { padding-top: 26px; padding-bottom: 64px; }
.step-dots { display: flex; gap: 26px; margin-bottom: 26px; }
.step-dots .dot {
  display: flex; align-items: center; gap: 8px; font-family: var(--font-display);
  font-weight: 800; font-size: 15px; color: var(--ink-300);
}
.step-dots .dot small { font-size: 12px; font-weight: 600; color: var(--ink-300); }
.step-dots .dot.active { color: var(--blue-600); }
.step-dots .dot.active small { color: var(--ink-700); }
.sell-placeholder h3 { font-size: 21px; margin-bottom: 18px; }
.sell-how { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; padding: 0; margin: 0; list-style: none; counter-reset: step; }
.sell-how li {
  background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: var(--r-lg);
  box-shadow: var(--shadow-card); padding: 20px; counter-increment: step;
  display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; color: var(--ink-500);
}
.sell-how li::before {
  content: counter(step); font-family: var(--font-display); font-weight: 800; font-size: 24px;
  color: var(--blue-600); line-height: 1;
}
.sell-how strong { color: var(--ink-900); font-size: 15.5px; }

.sell-step-title { font-size: 21px; display: flex; align-items: baseline; gap: 12px; }
.sell-step-title small { font-size: 13px; color: var(--ink-300); font-weight: 500; }
.owner-list { display: flex; flex-direction: column; gap: 12px; margin-top: 18px; }
.card--asset {
  background: var(--bg-surface); border: 1.5px solid var(--border-gold);
  box-shadow: 0 0 0 4px rgba(217,179,106,.12), var(--shadow-card); border-radius: var(--r-lg);
}
.owner-row {
  display: flex; align-items: center; gap: 16px; padding: 16px 20px; text-align: left;
  cursor: pointer; transition: all .15s var(--ease-pop); font-size: 14px;
}
.owner-row:hover { box-shadow: 0 0 0 4px rgba(217,179,106,.22), var(--shadow-hover); transform: translateY(-2px); }
.owner-badge {
  display: inline-flex; align-items: center; gap: 5px; font-size: 10.5px; font-weight: 700;
  color: #8A6A2C; background: #FAF3E3; border-radius: var(--r-pill); padding: 4px 10px; flex: none;
}
.owner-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.owner-main strong { font-size: 16px; color: var(--ink-900); }
.owner-main small { color: var(--ink-500); font-size: 12.5px; }
.owner-stats { color: var(--ink-500); font-size: 13px; white-space: nowrap; }
.owner-stats strong { font-family: var(--font-display); font-size: 19px; color: var(--ink-900); }
.owner-go { color: var(--blue-600); font-weight: 700; font-size: 13.5px; white-space: nowrap; }

.assess-head { margin-bottom: 16px; }
.assess-sub { color: var(--ink-500); font-size: 13.5px; margin: 6px 0 0; }
.assess-result { padding: 26px 30px; text-align: center; margin-bottom: 26px; }
.assess-label { font-size: 13px; font-weight: 700; color: #8A6A2C; margin: 0 0 6px; }
.assess-amount { font-family: var(--font-display); font-size: 40px; font-weight: 800; line-height: 1.2; }
.range-gauge-lg { display: flex; align-items: center; gap: 14px; max-width: 620px; margin: 16px auto 0; }
.rg-min, .rg-max { font-size: 12px; color: var(--ink-500); font-feature-settings: "tnum" 1; white-space: nowrap; }
.rg-track { position: relative; flex: 1; height: 14px; background: var(--sun-100); border-radius: var(--r-pill); }
.rg-median { position: absolute; top: -4px; width: 5px; height: 22px; background: var(--sun-500); border-radius: 3px; transform: translateX(-50%); }
.rg-bid {
  position: absolute; top: -11px; transform: translateX(-50%);
  border-left: 7px solid transparent; border-right: 7px solid transparent; border-top: 9px solid var(--ink-900);
}
.assess-prob { font-size: 14px; color: var(--ink-700); margin: 16px 0 0; }
.assess-prob strong { font-family: var(--font-display); font-size: 19px; color: var(--gain-600); }
.assess-prob small { color: var(--ink-300); margin-left: 6px; }
.assess-kpis { display: flex; justify-content: center; gap: 48px; margin-top: 20px; flex-wrap: wrap; }
.assess-kpis > div { display: flex; flex-direction: column; }
.assess-kpis span { font-size: 12px; color: var(--ink-500); }
.assess-kpis strong { font-family: var(--font-display); font-size: 23px; font-weight: 800; color: var(--ink-900); }

.assess-h { font-size: 16.5px; margin: 26px 0 12px; display: flex; align-items: baseline; gap: 10px; }
.assess-h small { font-size: 12px; color: var(--ink-300); font-weight: 500; }
.asset-rows { display: flex; flex-direction: column; gap: 8px; }
.asset-row {
  display: grid; grid-template-columns: 130px 1fr 90px 220px 130px; align-items: center; gap: 16px;
  background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: var(--r-md);
  padding: 12px 18px; cursor: pointer; text-align: left; font-size: 13.5px; box-shadow: var(--shadow-card);
}
.asset-row:hover { box-shadow: var(--shadow-hover); }
.asset-area { font-weight: 700; color: var(--ink-900); }
.asset-kw { color: var(--ink-500); }
.asset-meter .remain-meter { margin: 0; }
.asset-price { font-family: var(--font-display); font-size: 19px; font-weight: 800; text-align: right; }
.more-note { color: var(--ink-300); font-size: 12.5px; text-align: center; }
.assess-basis { margin-top: 22px; font-size: 14px; }
.assess-basis summary { cursor: pointer; font-weight: 700; color: var(--blue-600); }
.basis-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 16px; }
.basis-grid h5 { font-size: 14px; margin-bottom: 4px; }
.basis-grid p { margin: 0; font-size: 13px; color: var(--ink-500); }

.bidbook { padding: 10px 22px 16px; }
.bid-row {
  display: grid; grid-template-columns: 30px 1fr 170px 130px; align-items: center; gap: 14px;
  padding: 12px 0; border-bottom: 1px solid var(--border-subtle); font-size: 13.5px;
}
.bid-rank { font-family: var(--font-display); font-weight: 800; color: var(--ink-300); font-size: 16px; }
.bid-buyer { color: var(--ink-700); }
.bid-amount { font-family: var(--font-display); font-size: 19px; font-weight: 800; text-align: right; }
.bid-depth { height: 9px; background: var(--bg-sunken); border-radius: var(--r-pill); overflow: hidden; }
.bid-depth i { display: block; height: 100%; background: var(--sun-500); opacity: .65; border-radius: var(--r-pill); }
.bid-locked {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  color: var(--ink-500); font-size: 12.5px; padding: 14px 0 4px;
}
.sell-cta-bar {
  display: flex; gap: 14px; justify-content: center; margin-top: 26px;
  position: sticky; bottom: 0; background: linear-gradient(transparent, var(--bg-page) 38%);
  padding: 18px 0 14px;
}

/* ===================== 入札・スカウト ===================== */
.inbox { padding-bottom: 64px; }
.inbox-grid { display: grid; grid-template-columns: 360px 1fr; gap: 18px; align-items: start; }
.thread-list { display: flex; flex-direction: column; gap: 8px; }
.thread {
  display: flex; flex-direction: column; gap: 4px; text-align: left;
  background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: var(--r-md);
  padding: 13px 16px; cursor: pointer; box-shadow: var(--shadow-card); font-size: 13px;
}
.thread:hover { box-shadow: var(--shadow-hover); }
.thread.active { border-color: var(--blue-600); box-shadow: 0 0 0 3px rgba(11,95,255,.14); }
.thread.unread { border-left: 4px solid var(--blue-600); }
.thread.unread .thread-top strong { font-weight: 800; }
.thread-top { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.thread-top strong { color: var(--ink-900); font-size: 13.5px; }
.thread-mid { font-family: var(--font-display); font-size: 21px; font-weight: 800; }
.thread-sub { font-size: 11.5px; color: var(--ink-500); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.st-chip { font-size: 10.5px; font-weight: 700; border-radius: var(--r-pill); padding: 2px 9px; white-space: nowrap; }
.st-new { color: var(--blue-600); background: var(--blue-100); }
.st-nego { color: var(--gain-600); background: var(--gain-100); }
.st-limit { color: var(--loss-600); background: var(--loss-100); }
.premium-chip { font-size: 10px; font-weight: 700; color: var(--grade-s); background: #F1EAFE; border-radius: var(--r-pill); padding: 2px 8px; }
.premium-band {
  display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700;
  color: var(--grade-s); background: #F1EAFE; border-radius: var(--r-md); padding: 9px 14px; margin-bottom: 16px;
}
.thread-detail { min-height: 480px; }
.t-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; margin-bottom: 14px; }
.t-head h4 { font-size: 17px; }
.t-amount { text-align: center; padding: 12px 0 4px; }
.t-amount-label { display: block; font-size: 12px; font-weight: 700; color: var(--ink-500); }
.t-amount > strong { font-family: var(--font-display); font-size: 42px; font-weight: 800; line-height: 1.2; }
.t-amount .range-gauge-lg { margin-top: 22px; }
.t-context { font-size: 13.5px; color: var(--ink-700); font-weight: 600; margin: 14px 0 0; }
.t-buyer, .t-ladder { margin-top: 22px; }
.t-buyer h5, .t-ladder h5 { font-size: 13px; color: var(--ink-500); letter-spacing: .04em; margin-bottom: 8px; }
.buyer-trust { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 13.5px; font-weight: 600; color: var(--ink-900); }
.t-conditions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 10px; }
.t-deadline { font-size: 12.5px; color: var(--loss-600); font-weight: 700; margin-left: auto; }
.ladder { display: flex; flex-direction: column; }
.ladder-row {
  display: grid; grid-template-columns: 90px 1fr 150px; gap: 12px; padding: 9px 4px;
  border-bottom: 1px dashed var(--border-subtle); font-size: 13px; color: var(--ink-500);
}
.ladder-row strong { text-align: right; font-family: var(--font-display); font-weight: 800; }
.ladder-row.now { color: var(--ink-900); font-weight: 600; }
.t-rail { display: flex; align-items: center; gap: 8px; margin: 24px 0 6px; }
.rail-step {
  font-size: 12px; font-weight: 700; color: var(--ink-300);
  border: 1.5px solid var(--border-strong); border-radius: var(--r-pill); padding: 5px 14px; white-space: nowrap;
}
.rail-step.done { color: #fff; background: var(--blue-600); border-color: var(--blue-600); }
.rail-line { flex: 1; height: 2px; background: var(--border-subtle); }

.scout-head { margin-bottom: 16px; }
.scout-grid { display: flex; flex-direction: column; gap: 12px; }
.scout-card {
  display: flex; align-items: center; gap: 20px; background: var(--bg-surface);
  border: 1px solid var(--border-subtle); border-radius: var(--r-lg); box-shadow: var(--shadow-card);
  padding: 16px 22px; cursor: pointer; transition: all .15s var(--ease-pop);
}
.scout-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.match-ring {
  width: 62px; height: 62px; border-radius: 50%; flex: none;
  background: conic-gradient(var(--gain-600) calc(var(--p) * 1%), var(--bg-sunken) 0);
  display: grid; place-items: center; position: relative;
}
.match-ring::before { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: var(--bg-surface); }
.match-ring strong { position: relative; font-family: var(--font-display); font-size: 19px; font-weight: 800; color: var(--ink-900); }
.match-ring small { position: relative; font-size: 9px; color: var(--ink-500); margin-top: 16px; margin-left: 1px; }
.scout-main { flex: 1; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.scout-main > strong { font-size: 15px; color: var(--ink-900); }
.scout-sub { font-family: var(--font-display); font-weight: 800; font-size: 18px; }
.scout-sub small { font-family: var(--font-sans); font-weight: 600; font-size: 12px; color: var(--ink-500); margin-left: 8px; }
.scout-go { color: var(--blue-600); font-weight: 700; font-size: 13.5px; white-space: nowrap; }

/* ===================== 地図から探す ===================== */
.map-page { position: relative; height: calc(100vh - 95px); min-height: 480px; }
#fit-map { position: absolute; inset: 0; background: #C8D7E4; }
.map-page .leaflet-container { font-family: var(--font-sans); }

.map-filters {
  position: absolute; top: 14px; left: 14px; z-index: 1000;
  display: flex; flex-direction: column; gap: 8px; max-width: calc(100% - 28px);
}
.map-type-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.map-type-chips button {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.95); border: 1px solid var(--border-strong);
  border-radius: var(--r-pill); padding: 7px 14px; font-size: 13px; font-weight: 700;
  color: var(--ink-700); box-shadow: var(--shadow-card); white-space: nowrap;
}
.map-type-chips button.active { background: var(--ink-900); border-color: var(--ink-900); color: #fff; }
.map-type-chips .dot, .map-legend .dot {
  width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex: none;
}
.map-sub-filters { display: flex; gap: 6px; flex-wrap: wrap; }
.map-sub-filters select {
  background: rgba(255,255,255,.95); border: 1px solid var(--border-strong);
  border-radius: var(--r-pill); padding: 6px 12px; font-size: 12.5px; font-weight: 600;
  color: var(--ink-700); box-shadow: var(--shadow-card);
}
.map-sub-filters .chip-btn { background: rgba(255,255,255,.95); box-shadow: var(--shadow-card); }
.map-sub-filters .chip-btn.on { background: var(--blue-600); border-color: var(--blue-600); color: #fff; }

.map-panel {
  position: absolute; top: 14px; right: 14px; z-index: 1000; width: 270px;
  background: rgba(255,255,255,.96); backdrop-filter: blur(4px);
}
.mp-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; margin-bottom: 10px; }
.mp-kpis > div { display: flex; flex-direction: column; }
.mp-kpis strong { font-family: var(--font-display); font-size: 20px; font-weight: 800; color: var(--ink-900); line-height: 1.25; }
.mp-kpis span { font-size: 11px; color: var(--ink-500); }
.mp-note { font-size: 11.5px; color: var(--ink-500); line-height: 1.6; margin: 0 0 8px; }

.map-legend {
  position: absolute; bottom: 14px; left: 14px; z-index: 1000;
  display: flex; gap: 12px; align-items: center; flex-wrap: wrap;
  background: rgba(255,255,255,.94); border-radius: var(--r-pill);
  padding: 7px 16px; font-size: 11.5px; font-weight: 600; color: var(--ink-700);
  box-shadow: var(--shadow-card); max-width: calc(100% - 28px);
}
.map-legend span { display: inline-flex; align-items: center; gap: 5px; }
.map-prec { color: var(--ink-300); font-weight: 500; }

.map-base-toggle {
  position: absolute; bottom: 14px; right: 14px; z-index: 1000;
  display: flex; background: rgba(255,255,255,.95); border-radius: var(--r-pill);
  padding: 3px; gap: 2px; box-shadow: var(--shadow-card);
}
.map-base-toggle button {
  border: 0; background: transparent; border-radius: var(--r-pill);
  padding: 6px 14px; font-size: 12px; font-weight: 700; color: var(--ink-500);
}
.map-base-toggle button.active { background: var(--ink-900); color: #fff; }

.geo-bubble {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  border-radius: 50%; color: #fff; border: 2px solid rgba(255,255,255,.85);
  box-shadow: 0 2px 10px rgba(15,31,61,.35); cursor: pointer; line-height: 1;
  transition: transform .12s var(--ease-pop);
}
.geo-bubble:hover { transform: scale(1.08); }
.geo-bubble strong { font-family: var(--font-display); font-weight: 800; font-size: 13px; }
.geo-bubble small { font-size: 8.5px; opacity: .85; margin-top: 1px; }
.gc-1 { background: rgba(11,95,255,.78); }
.gc-2 { background: rgba(0,71,214,.82); }
.gc-3 { background: rgba(15,31,61,.85); }
.gc-4 { background: rgba(15,31,61,.94); }
.gc-3 strong, .gc-4 strong { font-size: 14.5px; }

.geo-popup .leaflet-popup-content { margin: 12px 14px; }
.gp { display: flex; flex-direction: column; gap: 6px; min-width: 170px; font-family: var(--font-sans); }
.gp-head { display: flex; align-items: center; gap: 7px; font-size: 14px; color: var(--ink-900); }
.gp-flag { width: 11px; height: 11px; border-radius: 2px; flex: none; box-shadow: 0 0 0 2px #fff, 0 1px 3px rgba(0,0,0,.3); }
.gp-meta { font-size: 12px; color: var(--ink-500); font-feature-settings: "tnum" 1; }
.gp-sat { font-size: 12px; font-weight: 700; color: var(--blue-600); }
.gp-detail { margin-top: 2px; background: var(--blue-600); color: #fff; border: 0; border-radius: var(--r-pill); padding: 7px 0; font-weight: 700; font-size: 12.5px; }
.gp-detail:hover { background: var(--blue-700); }

@media (max-width: 700px) {
  .map-panel { top: auto; bottom: 64px; right: 10px; width: 220px; padding: 12px 14px; }
  .map-page { height: calc(100vh - 130px); }
}

/* ===================== 市況（取引動向） ===================== */
.mv-hero { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.mv-hero-eyebrow { font-size: 12px; font-weight: 700; color: var(--ink-500); letter-spacing: .08em; margin: 0 0 6px; }
.mv-hero-big { font-size: 24px; font-family: var(--font-display); font-weight: 800; line-height: 1.3; }
.mv-hero-big strong { font-size: 38px; color: var(--blue-600); margin-right: 4px; }
.mv-hero-big em { font-style: normal; color: var(--blue-600); }
.mv-hero-sub { font-size: 13px; color: var(--ink-500); margin: 8px 0 0; }
.mv-kpis { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-top: 18px; }
@media (max-width: 1080px) { .mv-kpis { grid-template-columns: repeat(3, 1fr); } }
.mv-kpi strong { color: var(--ink-900); }
.mv-kpi small { color: var(--ink-300); }
.mv-kpi-hero { background: linear-gradient(135deg, #fff, var(--blue-050)); border-color: var(--blue-100); }
.mv-kpi-hero strong { color: var(--blue-600); }

.mv-feed { display: flex; flex-direction: column; }
.mv-row {
  display: grid; grid-template-columns: 64px 1fr auto; align-items: center; gap: 12px;
  padding: 10px 4px; border-bottom: 1px solid var(--border-subtle); cursor: pointer;
  text-align: left; background: none; border-left: 0; border-right: 0; border-top: 0; border-radius: var(--r-sm);
}
.mv-row:hover { background: var(--blue-050); }
.mv-row:last-child { border-bottom: 0; }
.mv-tag { font-size: 10.5px; font-weight: 700; border-radius: var(--r-sm); padding: 2px 8px; text-align: center; }
.mv-where { font-size: 12.5px; color: var(--ink-700); font-weight: 600; }
.mv-flow { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--ink-500); }
.mv-flow svg { color: var(--blue-600); flex: none; }
.mv-from { color: var(--ink-400, #94A3B8); max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mv-to { color: var(--ink-900); font-weight: 700; max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.mv-buyers { display: flex; flex-direction: column; }
.mv-buyer {
  display: grid; grid-template-columns: 22px 1fr 70px auto; align-items: center; gap: 10px;
  padding: 8px 4px; border-bottom: 1px solid var(--border-subtle); color: inherit; border-radius: var(--r-sm);
}
.mv-buyer:hover { background: var(--blue-050); text-decoration: none; }
.mv-buyer:last-child { border-bottom: 0; }
.mv-buyer-rank { font-family: var(--font-display); font-weight: 800; color: var(--ink-300); font-size: 13px; text-align: center; }
.mv-buyer-name { font-size: 12.5px; font-weight: 600; color: var(--ink-900); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mv-buyer-bar { height: 7px; background: var(--bg-sunken); border-radius: var(--r-pill); overflow: hidden; }
.mv-buyer-bar i { display: block; height: 100%; background: var(--blue-600); opacity: .6; border-radius: var(--r-pill); }
.mv-buyer-n { font-size: 11.5px; color: var(--ink-500); white-space: nowrap; }
.mv-buyer-n strong { font-family: var(--font-display); color: var(--ink-900); }

/* 市況: 事業者の動き検索 */
.mv-search-box { margin-top: 20px; }
.mv-search-bar { display: flex; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.mv-search-bar input[type="search"] {
  flex: 1; min-width: 220px; border: 1px solid var(--border-strong);
  border-radius: var(--r-pill); padding: 10px 18px; font-size: 14px; outline-color: var(--blue-600);
}
.mv-search-bar select {
  border: 1px solid var(--border-strong); border-radius: var(--r-pill);
  padding: 8px 14px; font-size: 13px; font-weight: 600; color: var(--ink-700); background: var(--bg-surface);
}
.ev-count { font-size: 13px; color: var(--ink-500); margin: 0 0 8px; }
.ev-count strong { font-family: var(--font-display); font-size: 18px; color: var(--ink-900); }
.ev-kind { font-size: 10.5px; font-weight: 700; border-radius: var(--r-pill); padding: 2px 9px; white-space: nowrap; }
.ev-所有者移転 { color: var(--blue-600); background: var(--blue-100); }
.ev-代表者交代 { color: var(--grade-s); background: #F1EAFE; }
.ev-新規認定 { color: var(--gain-600); background: var(--gain-100); }
.ev-運転開始 { color: var(--sun-600); background: var(--sun-100); }
.ev-抹消・失効 { color: var(--ink-500); background: var(--bg-sunken); }
.ev-name { max-width: 200px; overflow: hidden; text-overflow: ellipsis; }
.ev-to { font-weight: 700; color: var(--ink-900); }
.mv-buyer { background: none; border: 0; border-bottom: 1px solid var(--border-subtle); text-align: left; cursor: pointer; width: 100%; }

/* ダッシュボードの市況ティーザー */
.mv-teaser { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; justify-content: space-between; }
.mv-teaser-stat { display: flex; align-items: baseline; gap: 8px; }
.mv-teaser-stat strong { font-family: var(--font-display); font-size: 30px; font-weight: 800; color: var(--blue-600); }
.mv-teaser-stat span { font-size: 13px; color: var(--ink-700); }
.mv-teaser-chips { display: flex; gap: 8px; flex-wrap: wrap; }

@media (max-width: 700px) {
  .mv-kpis { grid-template-columns: repeat(2, 1fr); }
  .mv-row { grid-template-columns: 56px 1fr; }
  .mv-flow { grid-column: 1 / -1; padding-left: 68px; }
}

/* ===================== about / フッター ===================== */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; padding-bottom: 64px; }
.about-grid p { font-size: 13.5px; color: var(--ink-700); }
.suppress-form { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.suppress-form input {
  border: 1px solid var(--border-strong); border-radius: var(--r-md);
  padding: 9px 13px; font-size: 13.5px; outline-color: var(--blue-600);
}
.suppress-form button { align-self: flex-start; }
.legal-body { max-width: 860px; font-size: 14px; }
.legal-body h4 { margin: 18px 0 6px; font-size: 15px; }
.legal-body p { margin: 0 0 10px; color: var(--ink-700); }
.legal-draft { color: var(--sun-600); font-size: 12.5px; font-weight: 600; margin-top: 16px; }
.legal-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.legal-table th { text-align: left; width: 140px; padding: 9px 10px; background: var(--bg-sunken); color: var(--ink-500); font-size: 12px; }
.legal-table td { padding: 9px 12px; border-bottom: 1px solid var(--border-subtle); }

.site-footer { background: var(--bg-inverse); color: var(--ink-inverse-mid); margin-top: 64px; }
.footer-inner {
  max-width: var(--container); margin: 0 auto; padding: 44px 28px 26px;
  display: grid; grid-template-columns: 1.3fr 2fr; gap: 40px;
}
.footer-brand .logo-text { color: #fff; }
.footer-brand .logo-text small { color: var(--ink-inverse-mid); }
.footer-brand p { font-size: 12.5px; margin-top: 14px; line-height: 1.8; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.footer-cols h5 { color: #fff; font-size: 13px; margin-bottom: 12px; }
.footer-cols a { display: block; color: var(--ink-inverse-mid); font-size: 12.5px; padding: 4px 0; }
.footer-cols a:hover { color: #fff; }
.footer-note {
  text-align: center; font-size: 11px; padding: 16px 28px 22px;
  border-top: 1px solid #20355E; color: #5C7299;
}

/* ===================== レスポンシブ ===================== */
.sp-only { display: none; }
@media (max-width: 1080px) {
  .kpi-grid { grid-template-columns: repeat(3, 1fr); }
  .sec-2col { grid-template-columns: 1fr; }
  .listings-layout { grid-template-columns: 1fr; }
  .filter-rail { position: static; }
  .persona-tiles { grid-template-columns: repeat(2, 1fr); }
  .eq-grid { grid-template-columns: 1fr; }
  .inbox-grid { grid-template-columns: 1fr; }
  .sell-how { grid-template-columns: repeat(2, 1fr); }
  .podium { grid-template-columns: 1fr; }
  .asset-row { grid-template-columns: 1fr 90px 130px; }
  .asset-row .asset-id, .asset-row .asset-meter { display: none; }
}
@media (max-width: 700px) {
  .sp-only { display: inline; }
  .site-header { padding: 0 14px; }
  .hero-title, .sell-hero h1 { font-size: 30px; }
  .hero-stats { gap: 22px; flex-wrap: wrap; }
  .hero-stat strong { font-size: 30px; }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .sec-charts { grid-template-columns: 1fr; }
  .about-grid, .basis-grid, .sell-how { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .section, .page-head, .listings-layout, .broker-tabs, .broker-desc, .broker-tools,
  .podium, #b-table, .sell-steps, .inbox, .seg-lg, .about-grid, .scout-head, .scout-grid { padding-left: 14px; padding-right: 14px; }
  .hero-inner { padding: 40px 16px 38px; }
  .modal { width: 100vw; max-height: 96vh; border-radius: var(--r-lg) var(--r-lg) 0 0; align-self: end; }
  .eq-sim-kpis { grid-template-columns: repeat(2, 1fr); }
  .bid-row { grid-template-columns: 24px 1fr 120px; }
  .bid-depth { display: none; }
}

/* ===================== モバイル最適化 v2 ===================== */
/* 基底（PCでは非表示） */
.nav-toggle { display: none; }
.mp-collapse { display: none; }
.mp-collapse::before { content: "−"; }
.map-panel.mp-collapsed .mp-collapse::before { content: "＋"; }

/* === ヘッダー: ハンバーガー & ドロワー（タブレット以下） === */
@media (max-width: 1024px) {
  .nav-toggle {
    display: grid; place-items: center; flex: none; margin-left: auto;
    width: 42px; height: 42px; border: 0; background: transparent;
    color: var(--ink-700); border-radius: var(--r-md);
  }
  .nav-toggle:hover { background: var(--bg-sunken); }
  .site-header { gap: 10px; overflow: visible; }
  .header-actions { display: none; }
  .global-nav {
    position: absolute; top: 64px; left: 0; right: 0; z-index: 1400;
    flex: none; flex-direction: column; gap: 2px;
    background: var(--bg-surface); border-bottom: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-modal); padding: 8px 12px 14px;
    max-height: calc(100vh - 64px); overflow-y: auto; display: none;
  }
  .site-header.nav-open .global-nav { display: flex; }
  .global-nav a { padding: 13px 14px; font-size: 15.5px; border-radius: var(--r-md); white-space: nowrap; }
  .nav-note { display: inline-block; margin-left: 8px; }
}

/* === モーダル: モバイルで閉じやすく === */
@media (max-width: 700px) {
  .modal-wrap { padding: 0; }
  .modal { width: 100vw; max-height: 90vh; border-radius: var(--r-xl) var(--r-xl) 0 0; align-self: end; }
  .modal::before {
    content: ""; position: absolute; top: 7px; left: 50%; transform: translateX(-50%);
    width: 44px; height: 5px; border-radius: 999px; background: var(--border-strong); z-index: 3;
  }
  .modal-head { padding: 18px 14px 12px; }
  .modal-close { width: 44px; height: 44px; }
  .modal-close svg { width: 22px; height: 22px; }
  .modal-body { padding: 16px 14px 28px; gap: 14px; }
  .eq-head, .ts-head { flex-direction: column; }
  .eq-price-box, .eq-sim-kpis, .ts-title { min-width: 0; }
  .eq-sim-kpis { grid-template-columns: repeat(2, 1fr); }
  .ts-kpis { gap: 14px 24px; flex-wrap: wrap; }
  .mini-table { font-size: 11.5px; }
  .mini-table th, .mini-table td { padding: 6px 6px; }
}

/* === 地図: コントロールをコンパクトに、地図を見やすく === */
@media (max-width: 700px) {
  .map-page { height: calc(100vh - 108px); min-height: 420px; }
  .map-filters { top: 10px; left: 10px; right: 10px; max-width: none; gap: 6px; }
  .map-type-chips {
    flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch;
    padding-bottom: 2px; scrollbar-width: none;
  }
  .map-type-chips::-webkit-scrollbar { display: none; }
  .map-type-chips button { flex: none; padding: 6px 11px; font-size: 12px; }
  .map-sub-filters { gap: 6px; }
  .map-sub-filters select, .map-sub-filters .chip-btn { padding: 6px 10px; font-size: 12px; }
  .map-panel { top: auto; bottom: 12px; left: 10px; right: 10px; width: auto; padding: 12px 14px 14px; }
  .map-panel .mp-kpis { grid-template-columns: 1fr 1fr; gap: 8px 12px; margin-bottom: 8px; }
  .mp-note { display: none; }
  .mp-collapse {
    display: grid; place-items: center; position: absolute; top: 8px; right: 10px;
    width: 32px; height: 32px; border: 0; background: var(--bg-sunken);
    border-radius: 50%; color: var(--ink-500); font-size: 18px; font-weight: 700; line-height: 1;
  }
  .map-panel.mp-collapsed { width: auto; right: auto; max-width: calc(100% - 20px); padding: 9px 48px 9px 16px; }
  .map-panel.mp-collapsed .mp-kpis,
  .map-panel.mp-collapsed #mp-list { display: none; }
  .map-panel.mp-collapsed h4 { margin-bottom: 0; }
  .map-legend { display: none; }
}

/* === 全体の細かな調整 === */
@media (max-width: 700px) {
  body { font-size: 14.5px; }
  .page-head { padding-top: 24px; }
  .page-head h2 { font-size: 23px; }
  .results-count strong { font-size: 20px; }
  .hero-search, .hero-search-xl { max-width: none; }
  .table-dense { font-size: 12px; }
  .sell-cta-bar, .modal-cta { flex-direction: column; }
  .sell-cta-bar .btn, .modal-cta .btn { width: 100%; }
}

/* ===================== お気に入り / リード / 名義変更 ===================== */
.fav-btn {
  position: absolute; top: 8px; right: 8px; z-index: 3; padding: 0;
  width: 30px; height: 30px; border: 0; border-radius: 50%;
  background: rgba(255,255,255,.88); color: var(--ink-300);
  display: grid; place-items: center; box-shadow: var(--shadow-card);
  transition: transform .14s var(--ease-pop), color .14s;
}
.fav-btn svg { fill: none; stroke: currentColor; stroke-width: 1.7; }
.fav-btn:hover { color: var(--loss-600); transform: scale(1.12); }
.fav-btn.on { color: var(--loss-600); }
.fav-btn.on svg { fill: currentColor; stroke: currentColor; }
.p-card-visual .ribbon-pre { right: 44px; }   /* お気に入りボタンと重ねない */
.fav-card { position: relative; }
.fav-card .p-card-body { padding-top: 18px; }

#eq-fav svg { fill: none; stroke: currentColor; stroke-width: 1.5; }
#eq-fav.on { color: var(--loss-600); border-color: var(--loss-600); }
#eq-fav.on svg { fill: currentColor; }

/* リード（連絡希望）フォーム */
.lead-form {
  display: flex; flex-direction: column; gap: 10px;
  background: var(--blue-050); border: 1px solid var(--blue-100);
  border-radius: var(--r-lg); padding: 16px 18px; margin-top: 2px;
}
.lead-form[hidden] { display: none; }
.lead-note { font-size: 12px; color: var(--ink-500); margin: 0; }
.lead-field { font-size: 12px; font-weight: 700; color: var(--ink-500); display: flex; flex-direction: column; gap: 4px; }
.lead-form select, .lead-form input, .lead-form textarea {
  width: 100%; border: 1px solid var(--border-strong); border-radius: var(--r-md);
  padding: 10px 12px; font-size: 14px; color: var(--ink-900);
  background: var(--bg-surface); outline-color: var(--blue-600); font-family: inherit;
}
.lead-form textarea { resize: vertical; min-height: 44px; }

/* 市況: 名義変更チップ */
.ev-名義変更 { color: var(--ink-500); background: var(--bg-sunken); }

