*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --accent: #1a56db; --accent-light: #e8f0fe; --accent-dark: #0f3a8e;
  --bg: #fafbfc; --card: #fff; --text: #1a1a2e; --sub: #6b7280; --border: #e5e7eb;
  --radius: 12px;
  --green: #059669; --green-light: #ecfdf5;
  --orange: #d97706; --orange-light: #fffbeb;
  --red: #dc2626; --red-light: #fef2f2;
  --purple: #7c3aed;
  --font: "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Meiryo", -apple-system, sans-serif;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.04);
  --shadow: 0 2px 8px rgba(0,0,0,.06);
  --shadow-lg: 0 8px 24px rgba(0,0,0,.08);
}
html { scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.75; -webkit-text-size-adjust: 100%; font-feature-settings: "palt"; }
a { color: var(--accent); text-decoration: none; transition: color .15s; }
a:hover { color: var(--accent-dark); }
img { max-width: 100%; }

/* ── Global Header ── */
.g-header {
  background: #fff; border-bottom: 1px solid var(--border);
  padding: 0 16px; position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(8px); background: rgba(255,255,255,.95);
}
.g-header-inner { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; height: 56px; gap: 12px; }
.g-logo {
  font-size: 15px; font-weight: 800; color: var(--accent-dark); white-space: nowrap;
  letter-spacing: -.02em; text-decoration: none;
}
.g-logo small { font-size: 10px; color: var(--sub); font-weight: 400; display: block; line-height: 1; margin-top: -1px; letter-spacing: 0; }

/* 種別切替ボタン（常時表示） */
.g-type-nav { display: flex; gap: 4px; margin-left: auto; }
.g-type-btn {
  font-size: 12px; padding: 5px 12px; border-radius: 6px; white-space: nowrap;
  color: var(--sub); font-weight: 600; border: 1px solid var(--border);
  background: #fff; text-decoration: none; transition: all .15s; line-height: 1.2;
}
.g-type-btn:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.g-type-btn.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.g-type-btn.t-mansion { }
.g-type-btn.t-tochi.active { background: var(--green); border-color: var(--green); }
.g-type-btn.t-tochi:hover { border-color: var(--green); color: var(--green); }
.g-type-btn.t-kodate.active { background: var(--orange); border-color: var(--orange); }
.g-type-btn.t-kodate:hover { border-color: var(--orange); color: var(--orange); }

/* 種別選択不可（TOP・都道府県） */
.g-type-nav.disabled .g-type-btn {
  opacity: .45; cursor: default; pointer-events: none;
}
.g-type-nav.disabled { position: relative; pointer-events: auto; cursor: pointer; }
.g-type-nav.disabled .g-type-nav-hint {
  display: none; position: absolute; top: 36px; right: 0;
  background: var(--text); color: #fff; font-size: 11px; font-weight: 500;
  padding: 8px 14px; border-radius: 8px; white-space: nowrap; z-index: 101;
  box-shadow: 0 4px 12px rgba(0,0,0,.15); line-height: 1.5;
}
.g-type-nav.disabled .g-type-nav-hint::before {
  content: ""; position: absolute; top: -5px; right: 24px;
  border-left: 5px solid transparent; border-right: 5px solid transparent;
  border-bottom: 5px solid var(--text);
}
.g-type-nav.disabled:hover .g-type-nav-hint { display: block; }

/* SP種別バー（ヘッダー直下に固定） */
.g-type-bar {
  display: none; /* PCでは非表示、SPで表示 */
  position: sticky; top: 52px; z-index: 99;
  justify-content: center; gap: 6px;
  padding: 8px 16px; background: rgba(255,255,255,.97);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
}
.g-type-bar .g-type-btn { font-size: 12px; padding: 6px 16px; flex: 1; text-align: center; max-width: 120px; }
.g-type-bar.disabled .g-type-btn { opacity: .45; pointer-events: none; }
.g-type-bar.disabled { position: relative; }
.g-type-bar-hint {
  display: none; position: absolute; top: 42px; left: 50%; transform: translateX(-50%);
  background: var(--text); color: #fff; font-size: 11px; font-weight: 500;
  padding: 8px 14px; border-radius: 8px; white-space: nowrap; z-index: 101;
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
}
.g-type-bar-hint::before {
  content: ""; position: absolute; top: -5px; left: 50%; transform: translateX(-50%);
  border-left: 5px solid transparent; border-right: 5px solid transparent;
  border-bottom: 5px solid var(--text);
}

/* ハンバーガーメニュー */
.g-hamburger {
  display: flex; flex-direction: column; align-items: center; gap: 1px;
  cursor: pointer; padding: 4px 8px; margin-left: 8px; text-decoration: none; color: var(--sub);
}
.g-hamburger-icon { display: flex; flex-direction: column; gap: 4px; }
.g-hamburger-icon span { display: block; width: 20px; height: 2px; background: var(--text); border-radius: 1px; }
.g-hamburger-label { font-size: 9px; font-weight: 600; letter-spacing: .02em; margin-top: 1px; }

/* メニューパネル（右からスライド） */
.g-menu-panel {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(320px, 80vw);
  background: #fff; box-shadow: -4px 0 24px rgba(0,0,0,.12); z-index: 999;
  transform: translateX(100%); transition: transform .25s ease;
  overflow-y: auto; -webkit-overflow-scrolling: touch;
}
.g-menu-panel.open { transform: translateX(0); }
.g-menu-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 998;
  opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility .25s ease;
}
.g-menu-overlay.open { opacity: 1; visibility: visible; }
.g-menu-panel-inner { padding: 16px 20px; }
.g-menu-panel-close {
  display: flex; align-items: center; justify-content: flex-end; padding: 12px 16px 4px;
  font-size: 14px; font-weight: 600; color: var(--sub); cursor: pointer;
}
.g-menu-panel-close::after { content: '✕'; margin-left: 6px; font-size: 18px; }
.g-menu-panel a {
  display: block; padding: 12px 16px; font-size: 15px; font-weight: 500;
  color: var(--text); border-radius: 8px; text-decoration: none;
}
.g-menu-panel a:hover { background: var(--bg); }
.g-menu-panel .divider { height: 1px; background: var(--border); margin: 8px 0; }

/* 種別切替ツールチップ（初回案内） */
.g-type-tip {
  position: absolute; top: 52px; right: 50px;
  background: var(--accent-dark); color: #fff; font-size: 12px; font-weight: 500;
  padding: 8px 14px; border-radius: 8px; white-space: nowrap;
  box-shadow: 0 4px 16px rgba(0,0,0,.15);
  animation: tipFadeIn .4s ease-out;
  cursor: pointer; z-index: 101;
  line-height: 1.4;
}
.g-type-tip::before {
  content: ""; position: absolute; top: -6px; right: 32px;
  border-left: 6px solid transparent; border-right: 6px solid transparent;
  border-bottom: 6px solid var(--accent-dark);
}
.g-type-tip span { font-size: 10px; color: rgba(255,255,255,.6); margin-left: 8px; }
@keyframes tipFadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 768px) {
  .g-type-tip { right: 40px; top: 48px; }
}

/* 旧ナビは非表示 */
.g-nav { display: none; }

/* ── Breadcrumb ── */
.breadcrumb {
  padding: 10px 24px; font-size: 12px; color: var(--sub);
  background: #fff; border-bottom: 1px solid var(--border);
}
.breadcrumb a { color: var(--sub); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { margin: 0 5px; }

/* ── Page Container ── */
.page { max-width: 1100px; margin: 0 auto; padding: 32px 24px 60px; }
.page-title { font-size: 24px; font-weight: 800; letter-spacing: -.02em; margin-bottom: 6px; }
.page-sub { font-size: 14px; color: var(--sub); margin-bottom: 28px; }

/* ── Cards ── */
.cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px; margin-bottom: 28px;
}
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px; transition: all .2s; box-shadow: var(--shadow-sm);
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-1px); border-color: #d1d5db; }
.card-accent { border-color: var(--accent); border-width: 2px; box-shadow: 0 2px 12px rgba(26,86,219,.1); }
.card-label { font-size: 12px; color: var(--sub); margin-bottom: 4px; font-weight: 500; text-transform: uppercase; letter-spacing: .03em; }
.card-value { font-size: 30px; font-weight: 800; letter-spacing: -.03em; line-height: 1.2; }
.card-value small { font-size: 14px; font-weight: 400; letter-spacing: 0; }
.card-sub { font-size: 12px; color: var(--sub); margin-top: 4px; }
.card-accent .card-value { color: var(--accent); }

/* ── Section ── */
.section { margin-bottom: 36px; }
.section-title {
  font-size: 18px; font-weight: 700; margin-bottom: 16px;
  padding-bottom: 10px; border-bottom: 3px solid var(--accent);
  letter-spacing: -.01em;
}

/* ── Insight Box ── */
.insight {
  background: var(--orange-light); border-left: 4px solid var(--orange);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 18px 20px; margin-bottom: 28px; font-size: 14px; line-height: 1.9;
}
.insight p { margin-bottom: 6px; }
.insight p:last-child { margin-bottom: 0; }

/* ── Interactive Panel (Estimator) ── */
.estimator {
  background: linear-gradient(135deg, #f0f5ff 0%, #e8f0fe 100%);
  border: 2px solid var(--accent); border-radius: 16px;
  padding: 28px; margin-bottom: 28px;
  box-shadow: 0 4px 16px rgba(26,86,219,.08);
}
.estimator h3 { font-size: 18px; font-weight: 700; margin-bottom: 16px; }
.est-inputs { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 20px; }
.est-inputs label { font-size: 13px; color: var(--sub); display: flex; flex-direction: column; gap: 6px; font-weight: 500; }
.est-inputs select, .est-inputs input {
  padding: 10px 14px; border: 1px solid var(--border); border-radius: 10px;
  font-size: 15px; min-width: 140px; background: #fff; transition: border-color .15s;
}
.est-inputs select:focus, .est-inputs input:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px rgba(26,86,219,.1); }
.est-result { text-align: center; padding: 20px; background: #fff; border-radius: 12px; box-shadow: var(--shadow-sm); }
.est-price { font-size: 34px; font-weight: 800; color: var(--accent); letter-spacing: -.03em; }
.est-range { font-size: 13px; color: var(--sub); margin-top: 4px; }

/* ── Chart Placeholder ── */
.chart-placeholder {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; height: 300px; display: flex; align-items: center; justify-content: center;
  color: var(--sub); font-size: 14px; box-shadow: var(--shadow-sm);
}

/* ── Table ── */
.tbl {
  width: 100%; border-collapse: separate; border-spacing: 0;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm);
}
.tbl th, .tbl td {
  padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border); font-size: 14px;
}
.tbl th {
  background: #f9fafb; font-size: 11px; font-weight: 600; color: var(--sub);
  text-transform: uppercase; letter-spacing: .04em;
}
.tbl tr:last-child td { border-bottom: none; }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; font-weight: 500; }
.tbl tr:hover td { background: #f8faff; }
.tbl a { font-weight: 600; }

/* ── Column Article ── */
.article { font-size: 15px; line-height: 2; color: var(--text); }
.article h2 {
  font-size: 20px; margin: 48px 0 18px; padding: 12px 0 10px;
  border-bottom: 2px solid var(--accent); position: relative;
}
.article h2::before {
  content: ''; position: absolute; bottom: -2px; left: 0; width: 60px; height: 2px;
  background: var(--accent-dark);
}
.article h3 {
  font-size: 17px; margin: 32px 0 12px; padding-left: 12px;
  border-left: 3px solid var(--accent); line-height: 1.5;
}
.article p { margin-bottom: 18px; }
.article ul, .article ol { padding-left: 22px; margin-bottom: 18px; line-height: 2; }
.article li { margin-bottom: 4px; }
.article strong { color: var(--accent-dark); }
.article a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.article a:hover { color: var(--accent-dark); }
.article blockquote {
  border-left: 4px solid var(--accent); padding: 16px 20px; margin: 24px 0;
  background: var(--accent-light); border-radius: 0 8px 8px 0;
  font-size: 15px; line-height: 1.9; color: #1e3a5f;
}
.article blockquote p:last-child { margin-bottom: 0; }
.article .point {
  background: #fffbeb; border: 1px solid #fde68a; border-radius: 10px;
  padding: 16px 20px; margin: 24px 0; font-size: 14px; line-height: 1.9;
}
.article .point strong { color: #92400e; }
.article .tbl { margin: 20px 0; font-size: 13px; }
.article .tbl td { line-height: 1.7; }
.author-box {
  display: flex; gap: 16px; align-items: center; padding: 20px;
  background: var(--card); border: 1px solid var(--border); border-radius: 12px; margin: 24px 0;
}
.column-summary {
  background: var(--accent-light); border: 1px solid #bfdbfe; border-radius: 12px;
  padding: 18px 22px; margin-bottom: 28px;
}
.column-summary .summary-title {
  font-size: 13px; font-weight: 700; color: var(--accent-dark); margin-bottom: 10px;
}
.column-summary ul {
  font-size: 14px; line-height: 1.9; padding-left: 20px; margin: 0; color: var(--text);
}
.column-related {
  margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--border);
}
.column-related .related-title {
  font-size: 13px; font-weight: 700; color: var(--sub); margin-bottom: 14px;
}
.column-related a {
  display: block; padding: 10px 14px; font-size: 14px; font-weight: 500;
  color: var(--accent-dark); text-decoration: none; border-radius: 8px;
  border: 1px solid var(--border); margin-bottom: 8px; transition: background .15s;
}
.column-related a:hover { background: var(--accent-light); }

/* ── Compare Bar ── */
.compare-bar {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 20px; background: #fff; border-radius: var(--radius);
  border: 1px solid var(--border); margin-bottom: 24px; font-size: 14px;
  flex-wrap: wrap; box-shadow: var(--shadow-sm);
}
.compare-bar .up { color: var(--green); font-weight: 700; }
.compare-bar .down { color: var(--red); font-weight: 700; }


/* ── Tags ── */
.tag {
  display: inline-block; padding: 3px 10px; border-radius: 6px;
  font-size: 11px; font-weight: 700; letter-spacing: .02em;
}
.tag-m { background: #dbeafe; color: #1e40af; }
.tag-t { background: #dcfce7; color: #166534; }
.tag-k { background: #fef3c7; color: #92400e; }

/* ── Per-minute badge ── */
.per-min {
  text-align: center; padding: 20px; background: #fff;
  border: 1px solid var(--border); border-radius: var(--radius);
  margin-bottom: 24px; box-shadow: var(--shadow-sm);
}
.per-min .big { font-size: 32px; font-weight: 800; color: var(--red); letter-spacing: -.02em; }

/* ── Map Link ── */
.map-link {
  display: inline-block; padding: 12px 28px; background: var(--accent); color: #fff;
  border-radius: 10px; font-weight: 700; font-size: 14px; transition: all .15s;
  box-shadow: 0 2px 8px rgba(26,86,219,.2);
}
.map-link:hover { opacity: .9; text-decoration: none; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(26,86,219,.25); }

/* ── Link Grid ── */
.link-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.link-grid a {
  display: block; padding: 12px 16px; background: var(--card); border: 1px solid var(--border);
  border-radius: 10px; font-size: 14px; font-weight: 500; transition: all .15s;
  box-shadow: var(--shadow-sm); text-decoration: none; color: var(--text);
}
.link-grid a:hover { border-color: var(--accent); box-shadow: var(--shadow); transform: translateY(-1px); }
.link-grid .cnt { font-size: 11px; color: var(--sub); font-weight: 400; }

/* ── Region Accordion ── */
.region-acc summary::-webkit-details-marker { display: none; }
.region-acc[open] summary { border-bottom: 1px solid var(--border); }

/* 都道府県リンク（種別付き） */
.pref-legend {
  display: flex; justify-content: flex-end; gap: 16px; padding: 0 16px 8px;
  font-size: 11px; color: var(--sub); font-weight: 500;
}
.pref-legend span { min-width: 52px; text-align: center; }
.pref-item {
  display: flex; align-items: center; gap: 8px; padding: 10px 14px;
  background: var(--card); border: 1px solid var(--border); border-radius: 10px;
  text-decoration: none; color: var(--text); transition: all .15s;
  box-shadow: var(--shadow-sm);
}
.pref-item:hover { border-color: var(--accent); box-shadow: var(--shadow); transform: translateY(-1px); }
.pref-name { font-size: 14px; font-weight: 600; flex: 1; }
.pref-vals { display: flex; gap: 4px; font-size: 14px; font-weight: 700; }
.pref-vals span { min-width: 56px; text-align: center; }
.pref-grid { display: flex; flex-direction: column; gap: 4px; }

/* ── Hero (TOP) ── */
.hero {
  text-align: center; padding: 64px 24px 48px;
  background: linear-gradient(160deg, #0f3a8e 0%, #1a56db 40%, #2563eb 70%, #3b82f6 100%);
  color: #fff;
}
.hero h1 { font-size: 30px; font-weight: 800; letter-spacing: -.02em; margin-bottom: 10px; text-shadow: 0 2px 4px rgba(0,0,0,.1); }
.hero p { font-size: 15px; opacity: .85; }
.search-box { max-width: 560px; margin: 0 auto; position: relative; }
.search-input {
  width: 100%; padding: 16px 20px 16px 48px; font-size: 16px;
  border: 2px solid rgba(255,255,255,.3); border-radius: 16px; outline: none;
  background: rgba(255,255,255,.95); box-shadow: 0 4px 20px rgba(0,0,0,.1);
  transition: all .2s; color: var(--text);
}
.search-input::placeholder { color: #9ca3af; }
.search-input:focus { border-color: #fff; background: #fff; box-shadow: 0 4px 24px rgba(0,0,0,.15); }
.search-icon { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); font-size: 18px; color: var(--sub); }

/* ── Footer ── */
.g-footer {
  background: #111827; color: #9ca3af; padding: 40px 24px; margin-top: 48px; font-size: 13px;
}
.g-footer-inner {
  max-width: 1100px; margin: 0 auto; display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 32px;
}
.g-footer h4 { color: #e5e7eb; font-size: 12px; margin-bottom: 10px; text-transform: uppercase; letter-spacing: .05em; }
.g-footer a { color: #9ca3af; transition: color .15s; }
.g-footer a:hover { color: #fff; }
.g-footer ul { list-style: none; line-height: 2.2; }
.g-footer-nav { max-width: 1100px; margin: 0 auto 32px; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 24px; }
.g-footer-nav-inner { display: contents; }
.g-footer-col { display: flex; flex-direction: column; gap: 6px; }
.g-footer-heading { color: #e5e7eb; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 4px; }
.g-footer-col a { color: #9ca3af; font-size: 13px; transition: color .15s; }
.g-footer-col a:hover { color: #fff; }
.g-footer-bottom {
  max-width: 1100px; margin: 24px auto 0; padding-top: 20px;
  border-top: 1px solid #1f2937; font-size: 11px;
}
.g-footer-author { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.g-footer-author img,
.g-footer-author > div:first-child { width: 44px; height: 44px; border-radius: 50%; background: #374151; flex-shrink: 0; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .g-nav { display: none; }
  .g-header-inner { height: 52px; }
  /* SP: ヘッダー内の種別ボタンを非表示、種別バーで代替 */
  .g-type-nav { display: none; }
  .g-hamburger { margin-left: auto; }
  .g-type-bar { display: flex !important; }
  .g-type-bar.disabled { display: none !important; }
  .hero { padding: 48px 16px 36px; }
  .hero h1 { font-size: 24px; }
  .cards { grid-template-columns: 1fr 1fr; }
  .card { padding: 14px; }
  .card-value { font-size: 24px; }
  .page { padding: 20px 16px 40px; }
  .page-title { font-size: 20px; }
  .est-price { font-size: 28px; }
  .link-grid { grid-template-columns: 1fr 1fr; }
  .estimator { padding: 20px; }
  .tbl th, .tbl td { padding: 10px 12px; font-size: 13px; }
  .section-title { font-size: 16px; }
}
@media (max-width: 540px) {
  .sell-rent-grid { grid-template-columns: 1fr !important; }
}
/* 全国相場サマリーカード */
.ns-card { padding: 16px 20px; }
.ns-row { display: flex; align-items: baseline; gap: 12px; }
.ns-label { font-size: 12px; font-weight: 700; min-width: 60px; }
.ns-price { font-size: 22px; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; }
.ns-price small { font-size: 13px; font-weight: 400; }
.ns-change { font-size: 13px; font-weight: 700; margin-left: auto; white-space: nowrap; }
.ns-detail { font-size: 11px; color: var(--sub); margin-top: 6px; }
@media (max-width: 640px) {
  .national-summary { grid-template-columns: 1fr !important; gap: 6px !important; }
  .ns-card { padding: 14px 16px; border-top: none !important; }
  .ns-price { font-size: 18px; }
  .ns-detail { margin-top: 4px; }
}
@media (max-width: 480px) {
  .cards { grid-template-columns: 1fr; }
  .card-value { font-size: 26px; }
  .compare-bar { font-size: 13px; }
  .est-inputs { flex-direction: column; }
  .link-grid { grid-template-columns: 1fr; }
}

/* ── Gap Badge (乖離率) ── */
.gap-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px; border-radius: 6px;
  font-size: 13px; font-weight: 700;
  background: var(--red-light); color: var(--red);
}

/* ── Sell Timing Signals ── */
.signal-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px; margin-bottom: 24px;
}
.signal-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px 18px; box-shadow: var(--shadow-sm);
}
.signal-card .signal-label { font-size: 12px; color: var(--sub); font-weight: 600; margin-bottom: 6px; }
.signal-card .signal-value { font-size: 18px; font-weight: 800; line-height: 1.2; }
.signal-card .signal-sub { font-size: 11px; color: var(--sub); margin-top: 4px; }

/* ── Power Meter (交渉力) ── */
.power-meter {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px 24px; margin-bottom: 24px; box-shadow: var(--shadow-sm);
}
.power-meter-title { font-size: 14px; font-weight: 700; margin-bottom: 12px; }
.power-meter-stars { font-size: 24px; letter-spacing: 4px; margin-bottom: 8px; }
.power-meter-label { font-size: 14px; font-weight: 700; }
.power-meter-sub { font-size: 12px; color: var(--sub); margin-top: 6px; line-height: 1.8; }
.power-meter-factors { display: flex; gap: 16px; margin-top: 12px; flex-wrap: wrap; }
.power-meter-factor { font-size: 12px; display: flex; align-items: center; gap: 4px; }

/* ── Price Breakdown (価格因数分解) ── */
.price-breakdown {
  background: var(--card); border: 1px solid var(--border); border-radius: 16px;
  padding: 24px 32px; margin-bottom: 24px; box-shadow: 0 4px 16px rgba(0,0,0,.06);
}
.price-breakdown h3 { font-size: 15px; font-weight: 600; margin-bottom: 16px; color: var(--sub); }
.pb-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 0; border-bottom: 1px solid var(--border);
}
.pb-row:last-child { border-bottom: none; }
.pb-label { font-size: 13px; width: 120px; flex-shrink: 0; }
.pb-bar { flex: 1; background: var(--bg); border-radius: 4px; height: 24px; }
.pb-bar-fill {
  height: 100%; border-radius: 4px; display: flex; align-items: center;
  justify-content: flex-end; padding-right: 8px;
  font-size: 12px; font-weight: 700; color: #fff;
}
.pb-amount { font-size: 14px; font-weight: 700; width: 100px; text-align: right; }

/* ── Gap Alert (乖離率アラート) ── */
.gap-alert {
  background: linear-gradient(135deg, #fef2f2 0%, #fff1f2 100%);
  border: 1px solid #fecaca; border-radius: var(--radius);
  padding: 18px 22px; margin-bottom: 24px;
  display: flex; align-items: start; gap: 14px;
}
.gap-alert-icon { font-size: 28px; flex-shrink: 0; }
.gap-alert-text { font-size: 14px; line-height: 1.8; }
.gap-alert-text strong { color: var(--red); }

/* ── Data Source Banner ── */
.data-source-banner {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border: 1px solid #fde68a; border-radius: var(--radius);
  padding: 20px 24px; margin-bottom: 28px;
  display: flex; align-items: start; gap: 14px;
}
.data-source-banner-icon { font-size: 32px; flex-shrink: 0; }
.data-source-banner-text { font-size: 14px; line-height: 1.8; }
.data-source-banner-text strong { color: var(--orange); }

@media (max-width: 768px) {
  .signal-grid { grid-template-columns: 1fr 1fr; }
  .pb-label { width: 80px; font-size: 12px; }
  .pb-amount { width: 72px; font-size: 12px; }
  .price-breakdown { padding: 16px; }
}
@media (max-width: 480px) {
  .signal-grid { grid-template-columns: 1fr; }
  .power-meter-factors { flex-direction: column; gap: 6px; }
}

/* ── Estimation Panel (area/mansion) ── */
.est-panel { border-radius: var(--radius); padding: 24px; margin-bottom: 28px; color: #fff; }
.est-panel-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 16px; }
.est-panel-body { margin-bottom: 16px; }
.est-panel-inputs { border-top: 1px solid rgba(255,255,255,.15); padding-top: 16px; }
.est-label { font-size: 11px; opacity: .6; text-transform: uppercase; letter-spacing: .06em; }
.est-title { font-size: 18px; font-weight: 800; margin-top: 2px; }
.est-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.est-card { background: rgba(255,255,255,.08); border-radius: 8px; padding: 12px 14px; }
.est-card-label { font-size: 11px; opacity: .6; }
.est-card-value { font-size: 22px; font-weight: 800; margin-top: 2px; }
.est-card-value.sm { font-size: 16px; }
.est-comment { font-size: 13px; opacity: .85; margin-top: 12px; line-height: 1.7; padding: 10px 14px; background: rgba(255,255,255,.06); border-radius: 8px; }
.est-select { background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.2); border-radius: 6px; padding: 6px 10px; font-size: 13px; width: 100%; }
.est-input-label { font-size: 11px; opacity: .5; display: block; margin-bottom: 4px; }
.est-input-group { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }

/* ── Rank List ── */
.rank-list { display: flex; flex-direction: column; gap: 6px; }
.rank-item { display: flex; align-items: center; gap: 10px; padding: 6px 0; }
.rank-num { font-size: 13px; font-weight: 800; color: var(--accent); min-width: 24px; text-align: center; }
.rank-name { font-size: 14px; font-weight: 600; min-width: 120px; }
.rank-bar { flex: 1; background: var(--accent-light); border-radius: 4px; height: 22px; overflow: hidden; }
.rank-bar-fill { height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--accent-light), var(--accent)); }
.rank-value { font-size: 13px; font-weight: 700; min-width: 72px; text-align: right; }
.rank-cnt { font-size: 11px; color: var(--sub); min-width: 48px; text-align: right; }

/* ── Summary Banner ── */
.summary-banner { background: var(--accent-light); border-radius: var(--radius); padding: 20px 24px; margin-bottom: 24px; }
.summary-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 16px; margin-top: 12px; }
.summary-label { font-size: 11px; color: var(--sub); }
.summary-value { font-size: 18px; font-weight: 800; color: var(--accent); }

/* ── Horizontal Navigation ── */
.hnav { margin-top: 20px; }
.hnav-title { font-size: 13px; font-weight: 700; color: var(--sub); margin-bottom: 8px; }
.hnav-list { display: flex; flex-wrap: wrap; gap: 6px; }
.hnav-chip { display: inline-block; padding: 4px 12px; background: var(--card); border: 1px solid var(--border); border-radius: 16px; font-size: 13px; color: var(--text); text-decoration: none; transition: all .15s; }
.hnav-chip:hover { background: var(--accent-light); border-color: var(--accent); color: var(--accent); }
.hnav-chip-accent { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ── Signal Cards ── */
.signal-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-bottom: 16px; }
.signal-card { background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 14px; display: flex; gap: 12px; align-items: center; }
.signal-icon { font-size: 28px; flex-shrink: 0; }
.signal-label { font-size: 11px; color: var(--sub); }
.signal-value { font-size: 15px; font-weight: 700; margin-top: 2px; }
.signal-summary { font-size: 14px; line-height: 1.8; padding: 14px 18px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); margin-top: 12px; }

/* ── Analysis Bars ── */
.analysis-bars { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.analysis-row { display: flex; align-items: center; gap: 8px; }
.analysis-label { font-size: 12px; min-width: 48px; text-align: right; color: var(--sub); }
.analysis-bar { flex: 1; background: #f1f5f9; border-radius: 4px; height: 28px; overflow: hidden; }
.analysis-bar-fill { height: 100%; border-radius: 4px; }
.analysis-value { font-size: 12px; font-weight: 700; min-width: 64px; text-align: right; }
.analysis-comment { font-size: 13px; line-height: 1.7; padding: 12px 16px; background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 8px; margin-bottom: 12px; color: #166534; }

/* ── AI Summary ── */
.ai-summary { font-size: 15px; line-height: 1.8; padding: 16px 20px; background: #f8fafc; border-left: 4px solid var(--accent); border-radius: 0 var(--radius) var(--radius) 0; margin-bottom: 16px; color: var(--text); }

/* ── Comparison Badges (A-2) ── */
.cmp-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.cmp-badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 14px; border: 1.5px solid var(--border); border-radius: 20px; font-size: 13px; background: #fff; }
.cmp-badge-label { font-weight: 500; color: var(--sub); }
.cmp-badge-value { font-weight: 800; }
.cmp-badge--accent { border-color: var(--accent); }
.cmp-badge--accent .cmp-badge-value { color: var(--accent); }
.cmp-badge--green { border-color: var(--green); }
.cmp-badge--green .cmp-badge-value { color: var(--green); }
.cmp-badge--red { border-color: var(--red); }
.cmp-badge--red .cmp-badge-value { color: var(--red); }

/* ── Related Columns (A-3) ── */
.related-cols { display: flex; flex-wrap: wrap; gap: 8px; }
.related-col-card { display: block; padding: 10px 16px; background: var(--card); border: 1px solid var(--border); border-radius: 8px; font-size: 13px; font-weight: 600; color: var(--text); transition: border-color .15s; }
.related-col-card:hover { border-color: var(--accent); color: var(--accent); }

/* ── Asking Price Comparison (B) ── */
.asking-compare { }
.asking-note { font-size: 13px; color: var(--sub); margin-bottom: 14px; line-height: 1.7; }
.asking-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; }
.asking-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; }
.asking-card--mansion { border-left: 4px solid var(--accent); }
.asking-card--tochi { border-left: 4px solid var(--green); }
.asking-card--kodate { border-left: 4px solid var(--orange); }
.asking-card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.asking-type-label { font-size: 14px; font-weight: 800; color: var(--text); }
.asking-diff { font-size: 18px; font-weight: 800; padding: 3px 12px; border-radius: 16px; }
.asking-diff.pos { color: var(--red); background: var(--red-light); }
.asking-diff.neg { color: var(--green); background: var(--green-light); }
.asking-diff.flat { color: var(--sub); background: #f3f4f6; }
.asking-row { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.asking-col { flex: 1; text-align: center; }
.asking-col-label { font-size: 11px; color: var(--sub); margin-bottom: 4px; }
.asking-col-value { font-size: 22px; font-weight: 800; color: var(--text); }
.asking-col-value small { font-size: 11px; color: var(--sub); margin-left: 2px; font-weight: 500; }
.asking-col-value--ask { color: var(--accent); }
.asking-col-sub { font-size: 11px; color: var(--sub); margin-top: 2px; }
.asking-arrow { font-size: 20px; color: var(--sub); }
.asking-interpretation { font-size: 13px; line-height: 1.6; color: var(--text); background: #f8fafc; padding: 10px 14px; border-radius: 8px; }
.asking-footnote { font-size: 11px; color: var(--sub); margin-top: 14px; line-height: 1.6; }

/* ── Surface Yield (C) ── */
.yield-section { }
.yield-note { font-size: 13px; color: var(--sub); margin-bottom: 14px; line-height: 1.7; }
.yield-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }
.yield-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; }
.yield-card--mansion { border-left: 4px solid var(--accent); }
.yield-card--kodate { border-left: 4px solid var(--orange); }
.yield-card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.yield-type-label { font-size: 14px; font-weight: 800; }
.yield-value { font-size: 26px; font-weight: 800; padding: 4px 16px; border-radius: 20px; }
.yield-value.high { color: var(--green); background: var(--green-light); }
.yield-value.mid { color: var(--accent); background: var(--accent-light); }
.yield-value.low { color: var(--sub); background: #f3f4f6; }
.yield-breakdown { background: #f8fafc; border-radius: 8px; padding: 12px 14px; margin-bottom: 12px; }
.yield-row { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; margin-bottom: 6px; }
.yield-row:last-child { margin-bottom: 0; }
.yield-row-label { color: var(--sub); }
.yield-row-value { font-weight: 700; }
.yield-row-value small { font-size: 10px; color: var(--sub); margin-left: 3px; font-weight: 500; }
.yield-row-calc { padding-top: 6px; border-top: 1px dashed var(--border); }
.yield-row-formula { font-size: 11px; color: var(--sub); font-family: monospace; }
.yield-interpretation { font-size: 13px; line-height: 1.6; color: var(--text); }
.yield-footnote { font-size: 11px; color: var(--sub); margin-top: 14px; line-height: 1.6; }

@media (max-width: 768px) {
  .est-grid { grid-template-columns: 1fr; }
  .est-input-group { grid-template-columns: 1fr 1fr; }
  .rank-name { min-width: 80px; font-size: 13px; }
  .rank-value { min-width: 56px; }
}

/* ── Asking Compare v2 (graphical) ── */
.asking-compare-v2 { }
.ac2-note { font-size: 13px; color: var(--sub); margin-bottom: 16px; line-height: 1.75; }
.ac2-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 14px; }
.ac2-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px 22px; position: relative; overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.ac2-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: var(--accent);
}
.ac2-card--mansion::before { background: var(--accent); }
.ac2-card--tochi::before   { background: var(--green); }
.ac2-card--kodate::before  { background: var(--orange); }
.ac2-head {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px;
}
.ac2-title { display: flex; align-items: center; gap: 8px; }
.ac2-icon { font-size: 22px; }
.ac2-label { font-size: 16px; font-weight: 800; color: var(--text); letter-spacing: -.01em; }
.ac2-diff {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: 999px; font-weight: 800;
}
.ac2-diff--pos  { color: var(--red);   background: var(--red-light);   }
.ac2-diff--neg  { color: var(--green); background: var(--green-light); }
.ac2-diff--flat { color: var(--sub);   background: #f3f4f6;            }
.ac2-arrow { font-size: 10px; }
.ac2-pct   { font-size: 17px; }

.ac2-bars { margin-bottom: 14px; }
.ac2-bar-row { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.ac2-bar-row:last-child { margin-bottom: 0; }
.ac2-bar-label {
  flex: 0 0 66px; text-align: right;
  display: flex; flex-direction: column; gap: 1px; line-height: 1.15;
}
.ac2-bar-kind { font-size: 11px; font-weight: 800; color: var(--text); letter-spacing: .04em; }
.ac2-bar-sub  { font-size: 10px; color: var(--sub); }
.ac2-bar-track {
  flex: 1; position: relative; height: 30px;
  background: #f3f4f6; border-radius: 6px; overflow: visible;
  display: flex; align-items: center;
}
.ac2-bar {
  height: 100%; border-radius: 6px;
  background: linear-gradient(90deg, var(--accent-light), var(--accent));
  transition: width .6s ease;
}
.ac2-bar--trx { background: linear-gradient(90deg, #cbd5e1, #64748b); }
.ac2-bar--ask { background: linear-gradient(90deg, #bfdbfe, #1a56db); }
.ac2-card--tochi  .ac2-bar--ask { background: linear-gradient(90deg, #a7f3d0, #059669); }
.ac2-card--kodate .ac2-bar--ask { background: linear-gradient(90deg, #fed7aa, #d97706); }
.ac2-bar-value {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  font-size: 13px; font-weight: 800; color: var(--text);
  text-shadow: 0 0 4px rgba(255,255,255,.9);
  white-space: nowrap;
}
.ac2-bar-value small { font-size: 10px; color: var(--sub); margin-left: 2px; font-weight: 600; }

.ac2-interp {
  font-size: 12.5px; line-height: 1.7; color: var(--text);
  background: #f8fafc; padding: 10px 14px; border-radius: 8px;
  margin: 0;
}
.ac2-footnote { font-size: 11px; color: var(--sub); margin-top: 16px; line-height: 1.7; }

@media (max-width: 520px) {
  .ac2-card { padding: 16px 18px; }
  .ac2-bar-label { flex-basis: 56px; }
  .ac2-label { font-size: 14px; }
  .ac2-pct { font-size: 15px; }
}
