/* 大阪タワーマンション価格データサイト */
:root {
  --ink: #23303e;
  --muted: #6b7280;
  --line: #eaecef;
  --bg: #f6f7f3;              /* ほんのり暖色のオフホワイト */
  --accent: #2563eb;
  --accent-dark: #1e40af;
  --sun: #f5b301;            /* アヒルの黄色(サブアクセント) */
  --sun-soft: #fff6da;
  --down: #dc2626;
  --up: #059669;
  --shadow: 0 1px 3px rgba(20, 30, 45, .05);
  --shadow-lift: 0 8px 22px rgba(20, 30, 45, .10);
}

* { box-sizing: border-box; }
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo,
               system-ui, -apple-system, sans-serif;
  line-height: 1.7;
  font-size: 15px;
}
/* 見出し・ブランドはやわらかい丸ゴシックを優先(なければ通常ゴシック) */
h1, h2, h3, .brand {
  font-family: "Hiragino Maru Gothic ProN", "Hiragino Maru Gothic Pro",
               "Hiragino Kaku Gothic ProN", Meiryo, system-ui, sans-serif;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { max-width: 960px; margin: 0 auto; padding: 0 16px; }

/* ヘッダー */
.site-header {
  background: #172433;
  padding: 12px 0;
  position: relative;
}
.site-header::after {   /* 遊びのアクセントライン(青→アヒル黄) */
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--sun));
}
.site-header .container { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; }
.brand { display: flex; align-items: center; gap: 9px; color: #fff; font-weight: 700; font-size: 17px; }
.brand:hover { text-decoration: none; }
.brand-icon { width: 30px; height: 30px; border-radius: 50%; box-shadow: 0 0 0 2px rgba(245,179,1,.6); }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin-left: auto; }
.nav a { color: #cdd6e0; font-size: 13px; transition: color .12s; }
.nav a:hover { color: #fff; text-decoration: none; }
.nav-cta {
  background: var(--accent);
  color: #fff !important;
  padding: 3px 12px;
  border-radius: 999px;
  transition: background .12s, transform .1s;
}
.nav-cta:hover { background: var(--accent-dark); transform: translateY(-1px); }

/* 「記事」ホバードロップダウン(シリーズ) */
.nav-item { position: relative; display: inline-flex; align-items: center; }
.nav-parent { color: #cdd6e0; font-size: 13px; }
.nav-caret { font-size: 9px; margin-left: 3px; opacity: .75; }
.nav-dropdown {
  position: absolute;
  top: 100%; left: 0;
  min-width: 210px;
  margin-top: 8px;
  padding: 6px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .2);
  display: none;
  z-index: 60;
}
.nav-dropdown::before {   /* ホバーが途切れないよう、隙間に透明の橋を掛ける */
  content: ""; position: absolute; left: 0; right: 0; top: -8px; height: 8px;
}
.nav-item:hover .nav-dropdown,
.nav-item:focus-within .nav-dropdown { display: block; }
.nav-dropdown a {
  display: block;
  color: var(--ink);
  font-size: 13px;
  padding: 8px 12px;
  border-radius: 7px;
  white-space: nowrap;
}
.nav-dropdown a:hover { background: var(--sun-soft); color: var(--ink); text-decoration: none; }

/* ハンバーガー(スマホのみ表示) */
.nav-toggle {
  display: none;
  margin-left: auto;
  width: 40px; height: 34px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 8px;
  cursor: pointer;
  padding: 0 8px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform .2s, opacity .2s;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* コンテンツ */
/* main は <main class="container"> なので、.container の padding より
   詳細度を上げないと上下の余白が効かない(ヘッダー/フッターの
   グラデーション線にコンテンツが密着してしまう)。 */
main.container { padding: 14px 16px 26px; }
h1 { font-size: 25px; line-height: 1.4; margin: 8px 0 16px; letter-spacing: .01em; }
h2 {
  font-size: 18px;
  margin: 38px 0 14px;
  padding-left: 14px;
  position: relative;
}
h2::before {   /* 角丸のグラデーションバー */
  content: "";
  position: absolute;
  left: 0; top: .18em; bottom: .18em;
  width: 5px;
  border-radius: 3px;
  background: linear-gradient(var(--accent), var(--sun));
}
section:first-child h2 { margin-top: 12px; }
.breadcrumb { font-size: 12px; color: var(--muted); }
.note { font-size: 12px; color: var(--muted); }
.more { text-align: right; font-size: 13px; }

/* ヒーロー(やわらかいグラデ帯)・カード */
.hero {
  background: linear-gradient(135deg, #eaf2ff 0%, var(--sun-soft) 100%);
  border: 1px solid #eef1ea;
  border-radius: 18px;
  padding: 22px 26px;
  margin-bottom: 6px;
}
.hero p { color: #46545f; margin: 0; }
.stat-cards { display: flex; flex-wrap: wrap; gap: 12px; margin: 20px 0; }
.card {
  flex: 1 1 140px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 15px 16px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.card a { color: inherit; text-decoration: none; }
.card .num { font-size: 23px; font-weight: 700; color: var(--accent-dark); }
.card .cap { font-size: 12px; color: var(--muted); }

/* 運営者バッジ(トップ) */
.operator-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  padding: 12px 16px;
  margin: 16px 0 4px;
  color: var(--ink);
}
.operator-badge:hover { background: #f8fafc; text-decoration: none; }
.ob-icon { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.ob-text { font-size: 13px; line-height: 1.55; }
.ob-link { color: var(--accent); font-weight: 700; margin-left: 4px; white-space: nowrap; }

/* 運営者プロフィール(aboutページ) */
.operator-intro {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 4px 0 8px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 16px;
}
.operator-avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
}
.operator-name { font-size: 20px; font-weight: 700; margin: 0; }
.operator-yomi { font-size: 13px; font-weight: 400; color: var(--muted); margin-left: 6px; }
.operator-tags { margin: 6px 0 0; }
.operator-tags span {
  display: inline-block;
  font-size: 12px;
  background: #eef2ff;
  color: var(--accent-dark);
  border-radius: 10px;
  padding: 2px 10px;
  margin: 2px 4px 2px 0;
}

/* ダッシュボードKPI */
.dash-kpis { display: flex; flex-wrap: wrap; gap: 12px; margin: 20px 0 8px; }
.dash-kpis .card { flex: 1 1 130px; }
.dash-kpis .num .unit { font-size: 13px; font-weight: 400; margin-left: 2px; }
.dash-kpis .down-num { color: var(--down); }

/* ページャー */
.pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 12px 0 4px;
}
.pg-btn {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  padding: 5px 11px;
  border-radius: 5px;
  font-size: 13px;
  cursor: pointer;
}
.pg-btn:hover:not(:disabled) { background: #f3f4f6; }
.pg-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 700; }
.pg-btn:disabled { opacity: .4; cursor: default; }
.pg-info { font-size: 12px; color: var(--muted); margin: 0 6px; }

/* テーブル */
.data-table, .info-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  font-size: 13.5px;
}
.data-table th, .data-table td, .info-table th, .info-table td {
  padding: 9px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table thead th {
  background: #eef3fb;
  color: #3a4a5c;
  font-size: 12.5px;
  white-space: nowrap;
}
.data-table tbody tr { transition: background .1s; }
.data-table tbody tr:hover { background: var(--sun-soft); }
.num-cell { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.total-row { font-weight: 700; background: #f9fafb; }
.info-table th { width: 90px; background: #eef3fb; font-weight: 600; font-size: 12.5px; }
.table-scroll { overflow-x: auto; }
.down { color: var(--down); font-weight: 700; }
.up { color: var(--up); }

/* タグ */
.tag {
  display: inline-block;
  font-size: 11px;
  padding: 1px 8px;
  border-radius: 10px;
  background: #eef2ff;
  color: var(--accent-dark);
  margin-right: 4px;
}
.tag-new { background: #ecfdf5; color: var(--up); }
.tag-change { background: #fef2f2; color: var(--down); }
.tag-relist { background: #fffbeb; color: #b45309; }

/* チャート(maintainAspectRatio:false のため高さはコンテナで制御) */
.chart-wrap {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  height: 440px;
  box-shadow: var(--shadow);
}
.chart-wrap.chart-sm { height: 300px; }
.chart-wrap canvas { width: 100% !important; height: 100% !important; }

/* タブ */
.tabs { display: flex; gap: 6px; margin-bottom: 10px; }
.tabs .tab {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  padding: 6px 16px;
  border-radius: 6px 6px 0 0;
  font-size: 13px;
  cursor: pointer;
}
.tabs .tab.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  font-weight: 600;
}

/* ソート可能テーブル */
.sortable thead th[data-type] { cursor: pointer; user-select: none; white-space: nowrap; }
.sortable thead th[data-type]:hover { background: #e5e7eb; }
.sortable thead th[data-type]::after { content: " ↕"; color: #9ca3af; font-size: 10px; }
.sortable thead th.sort-asc::after { content: " ▲"; color: var(--accent); }
.sortable thead th.sort-desc::after { content: " ▼"; color: var(--accent); }
.suumo-link { font-size: 12px; white-space: nowrap; }
.card .unit { font-size: 13px; font-weight: 400; margin-left: 2px; }

/* 棟内坪単価最安のハイライト(色で視覚化) */
.data-table tbody tr.row-min { background: #fff1f2; }
.data-table tbody tr.row-min:hover { background: #ffe4e6; }
.data-table td.cell-min { color: var(--down); font-weight: 700; }
.data-table tbody tr.row-value { background: #ecfdf5; }
.data-table tbody tr.row-value:hover { background: #d1fae5; }
.data-table td.cell-value { color: var(--up); font-weight: 700; }
.data-table .over { color: var(--muted); }
.min-legend { color: var(--down); font-weight: 700; }
.line-legend { color: #6b7280; font-weight: 700; }
.value-legend { color: var(--up); font-weight: 700; }

/* 割安ピック(棟別ページ) */
.value-pick {
  display: flex;
  align-items: baseline;
  gap: 10px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 8px;
  padding: 10px 14px;
  margin: 12px 0 0;
  font-size: 13.5px;
}
.vp-badge {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: var(--up);
  border-radius: 4px;
  padding: 2px 8px;
}
.vp-dev { color: var(--up); font-weight: 700; margin: 0 4px; white-space: nowrap; }

/* 記事 */
.article-list { list-style: none; padding: 0; }
.article-list li { padding: 7px 0; border-bottom: 1px dashed var(--line); }
.article-list .date { color: var(--muted); font-size: 12.5px; margin-right: 10px; }
.article-list-lg .excerpt { margin: 4px 0 0; font-size: 12.5px; color: var(--muted); }
.article-series { margin: 0 0 2px; }
.article-series a {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-dark);
  background: var(--sun-soft);
  border: 1px solid #f3e4b3;
  border-radius: 999px;
  padding: 2px 12px;
}
.article-meta { color: var(--muted); font-size: 13px; }
.series-lead { font-size: 13.5px; margin-bottom: 18px; }

/* 記事トップ: シリーズ一覧カード */
.series-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
  margin-top: 14px;
}
.series-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  transition: box-shadow .12s, transform .12s, border-color .12s;
}
.series-card:hover {
  border-color: var(--accent);
  box-shadow: 0 6px 18px rgba(37, 99, 235, .12);
  transform: translateY(-2px);
}
.series-card-title { font-size: 16px; font-weight: 700; color: var(--ink); }
.series-card-desc { font-size: 13px; color: #4a5763; line-height: 1.6; }
.series-card-meta { font-size: 12px; color: var(--muted); margin-top: 2px; }

/* シリーズページ: 各記事をパネル(カード)表示 */
.article-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
  margin-top: 16px;
}
.article-card {
  display: flex; flex-direction: column; gap: 6px;
  padding: 16px 18px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow);
  transition: box-shadow .12s, transform .12s, border-color .12s;
}
.article-card:hover {
  border-color: var(--accent);
  box-shadow: 0 6px 18px rgba(37, 99, 235, .12);
  transform: translateY(-2px);
  text-decoration: none;
}
.ac-date { font-size: 12px; color: var(--muted); }
.ac-title { font-size: 15px; font-weight: 700; color: var(--ink); line-height: 1.45; }
.ac-excerpt {
  font-size: 12.5px; color: #4a5763; line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

.stars { margin-left: 8px; letter-spacing: 1px; font-size: .92em; vertical-align: 1px; }
.stars .star-on { color: #f5b301; }
.stars .star-off { color: #d6dae0; }

/* マンションマップ: エリア複数選択フィルタ */
.map-filter { margin: 0 0 12px; }
.mf-head { font-size: 13px; color: var(--muted); margin: 0 0 6px; }
.mf-clear {
  margin-left: 10px; font-size: 12px; color: var(--accent-dark);
  background: none; border: none; cursor: pointer; text-decoration: underline; padding: 0;
}
.area-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.area-chip {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; line-height: 1.6;
  padding: 2px 10px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  cursor: pointer; user-select: none;
}
.area-chip::before {
  content: ''; width: 9px; height: 9px; border-radius: 50%;
  background: var(--acc, #94a3b8); flex: none;
}
.area-chip:hover { border-color: var(--accent); }
.area-chip.selected {
  background: var(--sun-soft); border-color: var(--sun); font-weight: 700;
}

/* マンションマップ: フリーワード絞り込み */
.map-search { display: flex; align-items: center; gap: 12px; margin: 4px 0 10px; }
.map-search input {
  flex: 0 1 420px;
  font-size: 14px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  outline: none;
}
.map-search input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px #dbeafe; }
.map-search .note { margin: 0; }

/* マンションマップ(Leaflet + 地理院タイル) */
.tower-map {
  height: 460px;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  overflow: hidden;
  margin: 8px 0 10px;
}
.map-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0 0 20px; }
.map-legend .lg { font-size: 12.5px; color: var(--muted); display: inline-flex; align-items: center; }
.map-legend .lg::before {
  content: ''; width: 11px; height: 11px; border-radius: 50%;
  background: var(--lgc, #94a3b8); border: 1.5px solid #fff;
  box-shadow: 0 0 0 1px var(--line); margin-right: 5px;
}
.map-pop { font-size: 13px; line-height: 1.5; }
.map-pop strong { font-size: 13.5px; }
.map-pop .mp-stat { color: var(--muted); font-size: 12px; margin: 3px 0 6px; }
.map-pop .mp-link, .map-pop .mp-review { display: block; font-weight: 700; text-decoration: none; }
.map-pop .mp-link { color: var(--accent-dark); }
.map-pop .mp-review { color: var(--accent-dark); margin-top: 4px; }
@media (max-width: 640px) { .tower-map { height: 360px; } }

/* レビュー連携: 一覧・ランキング・検索の「★レビュー」バッジ */
.review-badge {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--accent-dark);
  background: var(--sun-soft);
  border: 1px solid #f3e4b3;
  border-radius: 999px;
  padding: 1px 8px;
  margin-left: 6px;
  white-space: nowrap;
  text-decoration: none;
  line-height: 1.7;
}
.review-badge:hover { background: #ffeaa8; }

/* マンション別ページ: レビュー・記事カード(上部に昇格) */
.related-reviews {
  background: linear-gradient(135deg, #eef4ff 0%, var(--sun-soft) 100%);
  border: 1px solid #eaeef0;
  border-radius: 14px;
  padding: 14px 18px;
  box-shadow: var(--shadow);
}
.related-reviews h2 { border: none; padding: 0; margin: 0 0 10px; font-size: 16px; }
.review-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.review-card a {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 14px;
  text-decoration: none;
  color: var(--ink);
  transition: box-shadow .15s ease, transform .15s ease;
}
.review-card a:hover { box-shadow: var(--shadow); transform: translateY(-1px); }
.review-card .rc-stars { margin-left: 0; flex: none; }
.review-card .rc-title { font-weight: 700; flex: 1 1 auto; }
.review-card .rc-go { color: var(--accent-dark); font-size: 13px; font-weight: 700; flex: none; }
/* X(旧Twitter)リンク */
.operator-sns { margin: 6px 0 0; }
.x-link {
  display: inline-flex; align-items: center; gap: 4px;
  font-weight: 700; font-size: 13px; color: var(--accent-dark);
  text-decoration: none;
}
.x-link:hover { text-decoration: underline; }
.footer-links { margin: 10px 0 4px; font-size: 12.5px; }
.footer-links a { color: #cdd6e0; }
.footer-links .x-link { color: #cdd6e0; }

/* レビュー記事の評価レーダーチャート */
.review-radar-wrap {
  background: #fff; border: 1px solid var(--line); border-radius: 8px;
  padding: 14px 16px; margin-bottom: 16px;
}
.review-radar-wrap .rr-title { margin: 0 0 6px; font-weight: 700; font-size: 14px; }
.review-radar { height: 300px; max-width: 420px; margin: 0 auto; position: relative; }

.article-body { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 20px 24px; }
.article-body h2 { margin-top: 28px; }
.article-body table { width: 100%; border-collapse: collapse; margin: 12px 0; }
.article-body th, .article-body td { border: 1px solid var(--line); padding: 6px 10px; font-size: 13.5px; }
.article-body pre { background: #f3f4f6; padding: 12px; border-radius: 6px; overflow-x: auto; font-size: 13px; }
.article-body code { background: #f3f4f6; padding: 1px 5px; border-radius: 4px; font-size: 13px; }
.article-body blockquote { margin: 12px 0; padding: 4px 16px; border-left: 4px solid var(--line); color: var(--muted); }
.article-body img { max-width: 100%; }
.related { margin-top: 24px; padding: 14px 18px; background: #eef2ff; border-radius: 8px; }
.related h2 { border: none; padding: 0; font-size: 15px; margin: 0 0 8px; }
.related ul { margin: 0; padding-left: 18px; }

/* 免責ボックス(内覧同行の「診断ではない」明記など) */
.disclaimer {
  margin: 16px 0;
  padding: 14px 18px;
  background: #fff8e1;
  border: 1px solid #f0d98a;
  border-left: 4px solid var(--sun);
  border-radius: 10px;
}
.disclaimer p { margin: 4px 0; font-size: 13.5px; }
.disclaimer p:first-child { color: var(--accent-dark); }

/* CTA */
.cta-box {
  margin-top: 40px;
  background: linear-gradient(135deg, #eef4ff 0%, var(--sun-soft) 100%);
  border: 1px solid #eaeef0;
  border-radius: 16px;
  padding: 18px 22px;
  box-shadow: var(--shadow);
}
.cta-box h2 { margin: 0 0 8px; padding: 0; }
.cta-box h2::before { display: none; }
/* ボタンを横並び/折り返しで間隔を確保(スマホでの重なり防止) */
.button-row { display: flex; flex-wrap: wrap; gap: 10px; }

.button {
  display: inline-block;
  background: var(--accent);
  color: #fff !important;
  padding: 9px 24px;
  border-radius: 999px;
  border: none;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(37, 99, 235, .25);
  transition: background .12s, transform .1s, box-shadow .12s;
}
.button:hover {
  background: var(--accent-dark);
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 5px 14px rgba(37, 99, 235, .32);
}

/* 検索フォーム */
.search-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 18px;
  margin-bottom: 16px;
}
.search-form .field { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.search-form label { color: var(--muted); white-space: nowrap; }
.search-form input, .search-form select {
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 5px;
  font-size: 13px;
}
.search-form input[type="number"] { width: 84px; }

/* Xポスト下書き(運営者用) */
.draft-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 14px;
}
.draft-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.draft-kind { font-weight: 700; font-size: 14px; }
.draft-chars { font-size: 12px; color: var(--muted); }
.copy-btn {
  margin-left: auto;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  padding: 4px 14px;
  border-radius: 5px;
  cursor: pointer;
}
.copy-btn:hover { background: var(--accent-dark); }
.draft-text {
  white-space: pre-wrap;
  word-break: break-word;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 12px;
  margin: 0;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.6;
}

/* 相談料金 */
.fee { font-size: 22px; margin: 6px 0; }
.fee strong { color: var(--accent-dark); }

/* LINE相談 */
.line-consult {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px 24px;
  max-width: 640px;
}
.line-steps { padding-left: 20px; }
.line-steps li { margin-bottom: 6px; }
.line-button {
  background: #06c755;
  font-size: 16px;
  padding: 12px 28px;
}
.line-button:hover { background: #05a648; }

/* 相談ページ: アイコン/カードで軽快に */
.icon-cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px; margin-top: 14px;
}
.icon-card {
  display: flex; gap: 13px; align-items: flex-start;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 16px; box-shadow: var(--shadow);
}
.icon-card .ic {
  flex: 0 0 auto; width: 40px; height: 40px; border-radius: 10px;
  background: var(--sun-soft); display: flex; align-items: center; justify-content: center;
}
.icon-card .ic svg { width: 22px; height: 22px; color: var(--accent-dark); }
.icon-card b { font-size: 14.5px; color: var(--ink); }
.icon-card p { margin: 4px 0 0; font-size: 13px; color: #4a5763; line-height: 1.65; }

.buy-sell { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 10px; }
.bs-card {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 18px 20px; box-shadow: var(--shadow);
}
.bs-card h2 {
  margin: 0 0 10px; padding: 0; font-size: 16px;
  display: flex; align-items: center; gap: 10px;
}
.bs-card h2::before { display: none; }
.bs-card h2 svg { width: 22px; height: 22px; color: var(--accent); flex: 0 0 auto; }
.bs-card ul { margin: 0; padding-left: 18px; }
.bs-card li { font-size: 13.5px; line-height: 1.7; margin-bottom: 5px; }
.bs-card > p { font-size: 14px; line-height: 1.7; margin: 0 0 10px; color: #33414d; }
.bs-card .disclaimer, .bs-card .fee-badge { margin-top: 12px; }
@media (max-width: 640px) { .buy-sell { grid-template-columns: 1fr; } }

/* 内覧同行: サービスカード(新築/中古)を縦積みで見やすく */
.service-cards { display: grid; gap: 16px; margin-top: 10px; }

/* 内覧同行: 報告書サンプル画像 */
.report-sample { margin: 14px 0 0; }
.report-sample img {
  display: block; width: 100%; max-width: 680px;
  border: 1px solid var(--line); border-radius: 10px; background: #fff;
}
.report-sample figcaption { margin-top: 8px; font-size: 12px; color: var(--muted); }

.fee-badge {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--sun-soft); border: 1px solid #f3e4b3; border-radius: 14px;
  padding: 12px 22px; margin: 6px 0;
}
.fee-badge svg { width: 30px; height: 30px; color: var(--accent-dark); flex: 0 0 auto; }
.fee-amount { font-size: 24px; font-weight: 700; color: var(--accent-dark); }
.fee-tax { font-size: 14px; color: var(--muted); }

.inspection-crosslink { margin-top: 22px; }
.crosslink-ic { width: 20px; height: 20px; color: var(--accent); vertical-align: -4px; margin-right: 6px; }

/* フッター */
.site-footer {
  border-top: 3px solid transparent;
  border-image: linear-gradient(90deg, var(--accent), var(--sun)) 1;
  background: #fff;
  padding: 20px 0 28px;
  font-size: 11.5px;
  color: var(--muted);
}
.footer-brand { display: flex; align-items: center; gap: 8px; }
.footer-duck { width: 22px; height: 22px; border-radius: 50%; }

@media (max-width: 640px) {
  h1 { font-size: 20px; }
  .search-form .field { width: 100%; }
  /* スマホでは散布図を縦に大きく取り、点の重なりを見やすくする */
  .chart-wrap { height: 74vh; min-height: 420px; padding: 8px; }
  .chart-wrap.chart-sm { height: 300px; min-height: 0; }
  .dash-kpis .card { flex: 1 1 44%; }

  /* ハンバーガーメニュー */
  .nav-toggle { display: flex; }
  .nav {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 8px 0 2px;
  }
  .nav.open { display: flex; }
  .nav a {
    font-size: 15px;
    padding: 11px 6px;
    border-top: 1px solid rgba(255, 255, 255, .12);
  }
  .nav-cta {
    margin: 8px 0 2px;
    text-align: center;
    border-top: none;
    padding: 11px 6px;
  }
  /* スマホではホバーが無いので、シリーズは「記事」の下に常時インデント表示 */
  .nav-item { display: block; width: 100%; }
  .nav-parent {
    display: block; font-size: 15px; padding: 11px 6px;
    border-top: 1px solid rgba(255, 255, 255, .12);
  }
  .nav-caret { display: none; }
  .nav-dropdown {
    position: static; display: block; min-width: 0;
    margin: 0; padding: 0; background: transparent; border: none; box-shadow: none;
  }
  .nav-dropdown::before { display: none; }
  .nav-dropdown a {
    color: #aeb9c6; font-size: 13.5px; border-radius: 0;
    padding: 9px 6px 9px 22px;
    border-top: 1px solid rgba(255, 255, 255, .08);
  }
  .nav-dropdown a:hover { background: transparent; color: #fff; }

  /* 物件概要(info-table)を縦積みにして改行の暴れを防ぐ */
  .info-table, .info-table tbody, .info-table tr, .info-table th, .info-table td {
    display: block;
    width: auto;
  }
  .info-table tr { border-bottom: 1px solid var(--line); padding: 4px 0; }
  .info-table tr:last-child { border-bottom: none; }
  .info-table th {
    background: transparent;
    color: var(--muted);
    font-size: 11.5px;
    padding: 6px 12px 0;
    border: none;
  }
  .info-table td { padding: 0 12px 6px; border: none; }

  /* 一覧の棟名は途中改行させず、必要なら横スクロール */
  .data-table td a[href^="/b/"] { white-space: nowrap; }
  /* 各セルを1行に固定し、所在(区)などの折り返しで行が無駄に高くなるのを防ぐ。
     はみ出す分は .table-scroll の横スクロールで見せる */
  .data-table th, .data-table td { white-space: nowrap; }

  /* ランキングはスマホで文字・余白を小さめにして一覧性を上げる */
  .rank-panel .data-table { font-size: 12px; }
  .rank-panel .data-table th, .rank-panel .data-table td { padding: 6px 8px; }
  .rank-panel .data-table thead th { font-size: 11px; }
  .rank-panel .review-badge { font-size: 10px; padding: 1px 5px; }
  /* タブが折り返して大きく見えるのを抑える */
  .tabs { gap: 4px; }
  .tabs .tab { padding: 6px 10px; font-size: 12.5px; white-space: nowrap; }
}
