/* ============================================================
   どこ住もうか.com  スタイル
   デザインコンセプト:「駅の案内サイン」
   - 駅名標(白いプレート+ラインカラー)をキービジュアルに
   - 検索結果は路線図のように縦のラインで駅をつなぐ
   - 数字は発車標風のコンデンス書体
   ============================================================ */

:root {
  --ink: #1c2b3a;          /* 濃紺(サインの文字色) */
  --ink-soft: #51606f;
  --paper: #eef1f2;        /* 背景:駅構内の白壁 */
  --plate: #ffffff;        /* 駅名標プレート */
  --line-green: #00a26a;   /* 案内サイングリーン(メインライン) */
  --line-green-dark: #007a50;
  --cta-orange: #f07800;   /* 中央線オレンジ(行動ボタン) */
  --cta-orange-dark: #c96400;
  --rail-gray: #c7ced3;
  --gold: #d9a406; --silver: #8d99a5; --bronze: #b3712e;
  --radius: 14px;
  --shadow: 0 2px 10px rgba(28, 43, 58, .08);
  --shadow-lg: 0 10px 32px rgba(28, 43, 58, .14);
  --font-display: "Zen Kaku Gothic New", "Hiragino Sans", "Noto Sans JP", sans-serif;
  --font-body: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  --font-num: "Barlow Condensed", "Arial Narrow", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.75;
  font-feature-settings: "palt";
}

a { color: var(--line-green-dark); }
button { font-family: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--cta-orange); outline-offset: 2px; border-radius: 4px; }

/* ---------- ヘッダー ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--ink);
  color: #fff;
  border-bottom: 4px solid var(--line-green);
}
.site-header .inner {
  max-width: 1040px; margin: 0 auto; padding: 10px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  color: #fff; text-decoration: none;
}
.brand-mark {
  width: 34px; height: 34px; border-radius: 50%;
  background: #fff; border: 5px solid var(--line-green);
  display: inline-block; flex-shrink: 0;
}
.brand-name { font-family: var(--font-display); font-weight: 900; font-size: 20px; letter-spacing: .04em; }
.brand-name small { font-weight: 500; font-size: 11px; opacity: .75; margin-left: 6px; letter-spacing: .12em; }
.header-note { font-size: 11px; opacity: .7; letter-spacing: .08em; }
@media (max-width: 560px) { .header-note { display: none; } }

/* ---------- パンくず(階層) ---------- */
.breadcrumb {
  max-width: 1040px; margin: 0 auto; padding: 14px 20px 0;
  font-size: 12.5px; color: var(--ink-soft);
}
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; }
.breadcrumb li + li::before { content: "›"; margin: 0 6px; color: var(--rail-gray); }
.breadcrumb a { color: var(--ink-soft); text-decoration: none; }
.breadcrumb a:hover { color: var(--line-green-dark); text-decoration: underline; }
.breadcrumb [aria-current="page"] { color: var(--ink); font-weight: 700; }

/* ---------- 共通レイアウト ---------- */
main { max-width: 1040px; margin: 0 auto; padding: 20px; }
.section { margin: 44px 0; }
.section > h2 {
  font-family: var(--font-display); font-size: 22px; font-weight: 900;
  display: flex; align-items: center; gap: 10px; margin-bottom: 6px;
}
.section > h2::before {
  content: ""; width: 8px; height: 26px; border-radius: 4px;
  background: var(--line-green); flex-shrink: 0;
}
.section > .section-lead { color: var(--ink-soft); font-size: 14px; margin-bottom: 18px; }

/* ---------- ヒーロー:駅名標 ---------- */
.hero { padding: 40px 0 8px; text-align: center; }
.hero-catch {
  font-size: 14px; letter-spacing: .22em; color: var(--ink-soft);
  margin-bottom: 18px; font-weight: 700;
}
.ekimeihyo {
  display: inline-block; background: var(--plate);
  border: 3px solid var(--ink); border-radius: 16px;
  box-shadow: var(--shadow-lg);
  padding: 22px 34px 16px; min-width: min(560px, 92vw);
  animation: plate-in .5s ease both;
}
@keyframes plate-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.ekimeihyo .kana { font-size: 13px; letter-spacing: .5em; color: var(--ink-soft); }
.ekimeihyo .title {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(34px, 7vw, 54px); letter-spacing: .06em; line-height: 1.2;
}
.ekimeihyo .title .com { font-size: .45em; color: var(--line-green-dark); margin-left: 4px; }
.ekimeihyo .romaji { font-family: var(--font-num); font-size: 15px; letter-spacing: .3em; color: var(--ink-soft); text-transform: uppercase; }
.ekimeihyo .line-bar {
  margin-top: 12px; height: 14px; border-radius: 7px; background: var(--line-green);
  position: relative;
}
.ekimeihyo .line-bar::before, .ekimeihyo .line-bar::after {
  position: absolute; top: -22px; font-size: 12px; color: var(--ink-soft); letter-spacing: .1em;
}
.ekimeihyo .neighbors {
  display: flex; justify-content: space-between; margin-top: 8px;
  font-size: 12.5px; color: var(--ink-soft); font-weight: 700;
}
.hero-sub { margin: 22px auto 0; max-width: 620px; color: var(--ink-soft); font-size: 15px; }

/* ---------- 検索パネル ---------- */
.search-panel {
  background: var(--plate); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 26px 26px 30px; margin-top: 26px;
  border-top: 6px solid var(--line-green);
}
.search-step { margin-bottom: 26px; }
.step-label {
  display: flex; align-items: center; gap: 10px; margin-bottom: 12px;
  font-family: var(--font-display); font-weight: 900; font-size: 16.5px;
}
.step-num {
  font-family: var(--font-num); font-size: 15px; font-weight: 700;
  background: var(--ink); color: #fff; border-radius: 8px;
  width: 40px; height: 26px; display: inline-flex; align-items: center; justify-content: center;
  letter-spacing: .05em; flex-shrink: 0;
}
.step-hint { font-size: 12.5px; color: var(--ink-soft); font-weight: 400; margin-left: auto; }

.hub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 10px; }
.hub-btn {
  border: 2px solid var(--rail-gray); background: #fff; border-radius: 10px;
  padding: 10px 6px; text-align: center; transition: border-color .15s, background .15s;
}
.hub-btn .h-name { font-family: var(--font-display); font-weight: 900; font-size: 17px; display: block; }
.hub-btn .h-note { font-size: 10px; color: var(--ink-soft); display: block; line-height: 1.4; margin-top: 2px; }
.hub-btn:hover { border-color: var(--line-green); }
.hub-btn.selected {
  border-color: var(--line-green); background: #e6f6ef;
  box-shadow: inset 0 0 0 1px var(--line-green);
}
.hub-btn.selected .h-name { color: var(--line-green-dark); }

.time-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.time-display {
  font-family: var(--font-num); font-size: 44px; font-weight: 700; color: var(--ink);
  min-width: 128px; text-align: center; background: #10202e; color: #ffd76a;
  border-radius: 10px; padding: 2px 10px; letter-spacing: .04em;
  box-shadow: inset 0 0 0 2px #000, inset 0 0 18px rgba(0,0,0,.6);
}
.time-display small { font-size: 18px; margin-left: 4px; }
input[type="range"] {
  flex: 1; min-width: 200px; accent-color: var(--line-green); height: 32px;
}
.time-ticks { display: flex; justify-content: space-between; font-size: 11px; color: var(--ink-soft); font-family: var(--font-num); letter-spacing: .05em; }

.cond-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.cond-btn {
  display: flex; gap: 10px; align-items: flex-start; text-align: left;
  border: 2px solid var(--rail-gray); background: #fff; border-radius: 10px; padding: 12px;
  transition: border-color .15s, background .15s;
}
.cond-btn .c-icon { font-size: 22px; line-height: 1; }
.cond-btn .c-label { font-weight: 700; font-size: 14px; display: block; }
.cond-btn .c-desc { font-size: 11.5px; color: var(--ink-soft); line-height: 1.55; display: block; margin-top: 2px; }
.cond-btn:hover { border-color: var(--line-green); }
.cond-btn.selected { border-color: var(--line-green); background: #e6f6ef; box-shadow: inset 0 0 0 1px var(--line-green); }

.search-submit {
  display: block; width: 100%; margin-top: 8px;
  background: var(--cta-orange); color: #fff; border: none; border-radius: 12px;
  font-family: var(--font-display); font-weight: 900; font-size: 19px; letter-spacing: .1em;
  padding: 16px; box-shadow: 0 4px 0 #b85c00; transition: transform .08s, box-shadow .08s;
}
.search-submit:hover { filter: brightness(1.05); }
.search-submit:active { transform: translateY(3px); box-shadow: 0 1px 0 #b85c00; }
.search-submit:disabled { background: var(--rail-gray); box-shadow: none; cursor: not-allowed; }
.search-note { text-align: center; font-size: 12px; color: var(--ink-soft); margin-top: 10px; }

/* ---------- 使い方 ---------- */
.howto-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.howto-card { background: var(--plate); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; }
.howto-card .num { font-family: var(--font-num); font-size: 30px; font-weight: 700; color: var(--line-green); }
.howto-card h3 { font-family: var(--font-display); font-size: 16px; margin: 4px 0 6px; }
.howto-card p { font-size: 13px; color: var(--ink-soft); }

/* ---------- 検索結果:路線図リスト ---------- */
.results-header {
  background: var(--ink); color: #fff; border-radius: var(--radius);
  padding: 18px 22px; display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: baseline;
  border-left: 10px solid var(--line-green);
}
.results-header .rh-main { font-family: var(--font-display); font-weight: 900; font-size: 19px; }
.results-header .rh-sub { font-size: 12.5px; opacity: .8; }
.results-header .rh-count { margin-left: auto; font-family: var(--font-num); font-size: 15px; letter-spacing: .05em; }
.results-header .rh-count b { font-size: 24px; color: #7de3b6; }

.route-list { list-style: none; margin-top: 8px; position: relative; padding-left: 34px; }
.route-list::before {
  content: ""; position: absolute; left: 12px; top: 28px; bottom: 28px; width: 8px;
  background: var(--line-green); border-radius: 4px;
}
.route-item { position: relative; margin: 16px 0; }
.route-item::before {
  content: ""; position: absolute; left: -30px; top: 30px;
  width: 18px; height: 18px; border-radius: 50%;
  background: #fff; border: 5px solid var(--line-green);
  box-shadow: 0 0 0 3px #fff;
}
.result-card {
  display: block; width: 100%; text-align: left; text-decoration: none; color: inherit;
  background: var(--plate); border: none; border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 18px 20px;
  transition: transform .12s, box-shadow .12s;
}
.result-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.rc-top { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.rank-badge {
  font-family: var(--font-num); font-weight: 700; font-size: 20px; letter-spacing: .02em;
  color: #fff; background: var(--ink); border-radius: 10px;
  min-width: 52px; height: 40px; display: inline-flex; flex-direction: column;
  align-items: center; justify-content: center; line-height: 1; flex-shrink: 0;
}
.rank-badge small { font-size: 8.5px; letter-spacing: .2em; font-weight: 400; }
.rank-1 .rank-badge { background: var(--gold); }
.rank-2 .rank-badge { background: var(--silver); }
.rank-3 .rank-badge { background: var(--bronze); }
.rc-name { font-family: var(--font-display); font-weight: 900; font-size: 22px; }
.rc-name small { font-size: 12px; color: var(--ink-soft); font-weight: 500; margin-left: 8px; }
.rc-time {
  margin-left: auto; font-family: var(--font-num); font-size: 15px; color: var(--ink-soft);
  text-align: right; line-height: 1.3;
}
.rc-time b { font-size: 26px; color: var(--ink); }
.rc-copy { margin-top: 8px; font-size: 14.5px; font-weight: 700; color: var(--line-green-dark); }
.rc-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 8px; font-size: 12.5px; color: var(--ink-soft); align-items: center; }
.line-tag {
  background: #eef1f2; border-radius: 6px; padding: 1px 8px; font-size: 11px; color: var(--ink);
}
.rc-rent { font-family: var(--font-num); font-size: 14px; }
.rc-rent b { font-size: 18px; color: var(--cta-orange); }
.rc-score { display: flex; align-items: center; gap: 6px; }
.score-dots { display: inline-flex; gap: 3px; }
.score-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--rail-gray); }
.score-dots i.on { background: var(--line-green); }
.no-results {
  background: var(--plate); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 34px; text-align: center; color: var(--ink-soft); margin-top: 16px;
}
.no-results b { color: var(--ink); }

/* ---------- 駅詳細 ---------- */
.station-plate {
  background: var(--plate); border: 3px solid var(--ink); border-radius: 16px;
  box-shadow: var(--shadow-lg); padding: 22px 28px 14px; margin-bottom: 22px;
}
.station-plate .kana { font-size: 12px; letter-spacing: .4em; color: var(--ink-soft); }
.station-plate h1 { font-family: var(--font-display); font-weight: 900; font-size: clamp(30px, 6vw, 44px); letter-spacing: .08em; line-height: 1.25; }
.station-plate .romaji { font-family: var(--font-num); letter-spacing: .25em; color: var(--ink-soft); font-size: 14px; text-transform: uppercase; }
.station-plate .line-bar { height: 12px; border-radius: 6px; background: var(--line-green); margin-top: 10px; }
.station-plate .plate-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }

.detail-grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: 18px; align-items: start; }
@media (max-width: 760px) { .detail-grid { grid-template-columns: 1fr; } }
/* 駅ページ:カードを高さ自動バランスの2段組にする(左右の余白差を防ぐ) */
.detail-cols { column-count: 2; column-gap: 18px; }
.detail-cols > .detail-card { break-inside: avoid; -webkit-column-break-inside: avoid; page-break-inside: avoid; display: block; width: 100%; margin: 0 0 18px; }
@media (max-width: 760px) { .detail-cols { column-count: 1; } }
.detail-card { background: var(--plate); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; }
.detail-card h2 {
  font-family: var(--font-display); font-size: 17px; font-weight: 900; margin-bottom: 12px;
  display: flex; align-items: center; gap: 8px;
}
.detail-card h2::before { content: ""; width: 6px; height: 20px; border-radius: 3px; background: var(--line-green); }
.detail-card .lead-copy { font-weight: 700; color: var(--line-green-dark); margin-bottom: 8px; font-size: 15px; }
.detail-card p { font-size: 14px; }

.score-table { width: 100%; border-collapse: collapse; }
.score-table th { text-align: left; font-size: 13px; font-weight: 700; padding: 7px 0; width: 92px; }
.score-table td { padding: 7px 0; }
.bar-track { background: #e3e8ea; border-radius: 5px; height: 12px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 5px; background: linear-gradient(90deg, var(--line-green), #35c68f); }

.rent-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.rent-table th, .rent-table td { padding: 9px 4px; border-bottom: 1px dashed var(--rail-gray); }
.rent-table th { text-align: left; font-weight: 500; color: var(--ink-soft); }
.rent-table td { text-align: right; font-family: var(--font-num); font-size: 19px; font-weight: 700; }
.rent-table td small { font-size: 12px; font-weight: 400; color: var(--ink-soft); font-family: var(--font-body); }

.access-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.access-table td { padding: 6px 4px; border-bottom: 1px dashed var(--rail-gray); }
.access-table td:last-child { text-align: right; font-family: var(--font-num); font-size: 17px; font-weight: 700; }
.access-table td:last-child small { font-size: 11px; font-family: var(--font-body); font-weight: 400; color: var(--ink-soft); }

.pt-list { list-style: none; }
.pt-list li { padding-left: 26px; position: relative; margin: 8px 0; font-size: 14px; }
.pt-list.good li::before { content: "◎"; position: absolute; left: 0; color: var(--line-green-dark); font-weight: 900; }
.pt-list.bad li::before { content: "△"; position: absolute; left: 0; color: var(--cta-orange); font-weight: 900; }
.spot-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.spot-tags span { background: #e6f6ef; color: var(--line-green-dark); border-radius: 999px; padding: 4px 14px; font-size: 12.5px; font-weight: 700; }
.spot-notes { list-style: none; margin: 12px 0 0; padding: 0; }
.spot-notes li { font-size: 13.5px; line-height: 1.7; color: var(--text-sub, #555); padding: 5px 0; border-bottom: 1px solid #f0f0f0; }
.spot-notes li:last-child { border-bottom: none; }
.spot-notes li b { display: block; font-size: 13px; color: var(--line-green-dark); font-weight: 700; }

.cta-block {
  margin-top: 22px; background: linear-gradient(135deg, #10202e, #1c2b3a);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: 30px; text-align: center; color: #fff;
}
.cta-block h2 { font-family: var(--font-display); font-size: 21px; font-weight: 900; }
.cta-block p { font-size: 13px; opacity: .8; margin: 6px 0 16px; }
.cta-main {
  display: inline-block; background: var(--cta-orange); color: #fff; border: none;
  border-radius: 12px; font-family: var(--font-display); font-weight: 900; font-size: 19px;
  letter-spacing: .08em; padding: 16px 44px; box-shadow: 0 4px 0 #b85c00;
  transition: transform .08s, box-shadow .08s;
}
.cta-main:hover { filter: brightness(1.06); }
.cta-main:active { transform: translateY(3px); box-shadow: 0 1px 0 #b85c00; }
.back-link { display: inline-block; margin-top: 18px; font-size: 14px; }

/* ---------- 不動産サイトモーダル ---------- */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(16, 32, 46, .6);
  display: flex; align-items: center; justify-content: center; padding: 20px; z-index: 100;
}
.modal {
  background: #fff; border-radius: 16px; max-width: 460px; width: 100%;
  padding: 28px; box-shadow: var(--shadow-lg);
}
.modal h2 { font-family: var(--font-display); font-size: 19px; font-weight: 900; margin-bottom: 4px; }
.modal .modal-sub { font-size: 12.5px; color: var(--ink-soft); margin-bottom: 18px; }
.portal-btn {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  border: 2px solid var(--rail-gray); background: #fff; border-radius: 12px;
  padding: 14px 18px; margin-bottom: 10px; text-decoration: none; color: var(--ink);
  font-weight: 700; font-size: 15px; transition: border-color .15s, background .15s;
}
.portal-btn small { display: block; font-weight: 400; font-size: 11.5px; color: var(--ink-soft); }
.portal-btn .arrow { color: var(--cta-orange); font-size: 20px; }
.portal-btn:hover { border-color: var(--cta-orange); background: #fff7ef; }
.modal-close { margin-top: 8px; width: 100%; background: none; border: none; color: var(--ink-soft); font-size: 13px; padding: 8px; }
.modal-note { font-size: 10.5px; color: var(--ink-soft); margin-top: 10px; line-height: 1.6; }

/* ---------- ピックアップ ---------- */
.pickup-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.pickup-card {
  display: block; text-decoration: none; color: inherit;
  text-align: left; background: var(--plate); border: none; border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 18px; transition: transform .12s, box-shadow .12s;
}
.pickup-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.pickup-card .p-area { font-size: 11px; color: var(--ink-soft); letter-spacing: .08em; }
.pickup-card .p-name { font-family: var(--font-display); font-weight: 900; font-size: 19px; }
.pickup-card .p-copy { font-size: 12.5px; color: var(--line-green-dark); font-weight: 700; margin-top: 4px; line-height: 1.6; }

/* ---------- フッター ---------- */
.site-footer { background: var(--ink); color: #cfd8de; margin-top: 60px; border-top: 4px solid var(--line-green); }
.site-footer .inner { max-width: 1040px; margin: 0 auto; padding: 34px 20px; }
.footer-map { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px; font-size: 12.5px; }
.footer-map h3 { font-size: 13px; color: #fff; font-family: var(--font-display); margin-bottom: 8px; }
.footer-map ul { list-style: none; }
.footer-map li { margin: 4px 0; }
.footer-map a { color: #cfd8de; text-decoration: none; }
.footer-map a:hover { color: #7de3b6; }
.footer-legal { margin-top: 26px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.15); font-size: 11px; opacity: .7; }

/* ---------- v2: 家族メンバーカード ---------- */
.member-card {
  background: #f7fbf9; border: 2px solid var(--rail-gray); border-radius: 12px;
  padding: 16px; margin-bottom: 12px;
}
.member-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.member-badge {
  font-family: var(--font-num); font-weight: 700; font-size: 13px; letter-spacing: .05em;
  background: var(--ink); color: #fff; border-radius: 8px; padding: 3px 10px; flex-shrink: 0;
}
.member-name {
  font-family: var(--font-display); font-weight: 900; font-size: 16px;
  border: none; border-bottom: 2px dashed var(--rail-gray); background: transparent;
  padding: 2px 4px; width: 120px; color: var(--ink);
}
.member-name:focus { border-bottom-color: var(--line-green); outline: none; }
.member-remove {
  margin-left: auto; background: none; border: 1px solid var(--rail-gray); border-radius: 8px;
  color: var(--ink-soft); font-size: 12px; padding: 4px 10px;
}
.member-remove:hover { border-color: var(--cta-orange); color: var(--cta-orange); }
.member-remove-space { margin-left: auto; }

.cascade { display: grid; grid-template-columns: auto 1fr; gap: 10px 12px; align-items: center; }
.cascade-step { display: contents; }
.cascade-label {
  font-size: 12px; font-weight: 700; color: #fff; background: var(--line-green);
  border-radius: 6px; padding: 3px 10px; text-align: center; min-width: 48px;
}
.pref-seg { display: flex; flex-wrap: wrap; gap: 8px; }
.pref-btn {
  border: 2px solid var(--rail-gray); background: #fff; border-radius: 999px;
  padding: 6px 16px; font-weight: 700; font-size: 13.5px; transition: border-color .15s, background .15s;
}
.pref-btn:hover { border-color: var(--line-green); }
.pref-btn.selected { border-color: var(--line-green); background: #e6f6ef; color: var(--line-green-dark); }
.line-select, .station-select {
  width: 100%; max-width: 420px; font-family: var(--font-body); font-size: 14.5px; font-weight: 500;
  padding: 9px 12px; border: 2px solid var(--rail-gray); border-radius: 10px; background: #fff; color: var(--ink);
}
.line-select:focus, .station-select:focus { border-color: var(--line-green); outline: none; }
.line-select:disabled, .station-select:disabled { background: #eef1f2; color: var(--ink-soft); }

.chip-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 12px; }
.chip-label { font-size: 12px; color: var(--ink-soft); font-weight: 700; }
.chip {
  border: 1.5px solid var(--rail-gray); background: #fff; border-radius: 999px;
  padding: 3px 12px; font-size: 12.5px; font-weight: 700; color: var(--ink);
  transition: border-color .15s, background .15s;
}
.chip small { font-weight: 400; font-size: 10px; color: var(--ink-soft); margin-left: 4px; }
.chip:hover { border-color: var(--line-green); }
.chip.selected { border-color: var(--line-green); background: #e6f6ef; color: var(--line-green-dark); }

.member-selected {
  margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--rail-gray);
  font-size: 13.5px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
}
.member-selected small { color: var(--ink-soft); }
.limit-wrap { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 220px; }
.limit-range { flex: 1; min-width: 120px; accent-color: var(--line-green); }
.limit-display {
  font-family: var(--font-num); background: #10202e; color: #ffd76a; border-radius: 8px;
  padding: 2px 10px; font-size: 14px; white-space: nowrap;
  box-shadow: inset 0 0 0 1px #000;
}
.limit-display b { font-size: 20px; font-weight: 700; }

.add-member {
  display: block; width: 100%; border: 2px dashed var(--line-green); background: #f2faf6;
  color: var(--line-green-dark); border-radius: 12px; padding: 12px; font-weight: 700; font-size: 14px;
  transition: background .15s;
}
.add-member:hover { background: #e6f6ef; }

/* 結果カード:メンバー別時間 */
.rc-times { margin-left: auto; display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.member-time { text-align: center; line-height: 1.2; }
.member-time small { display: block; font-size: 10px; color: var(--ink-soft); }
.member-time b { font-family: var(--font-num); font-size: 20px; color: var(--ink); }

/* 駅詳細:家族アクセス */
.family-access { margin-bottom: 18px; border-left: 6px solid var(--line-green); }

/* ---------- v3(SEO構成): 静的ページ用 ---------- */
.portal-inline { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; margin-top: 16px; text-align: left; }
.portal-inline .portal-btn { margin-bottom: 0; background: #fff; }
.cta-block .modal-note-inline { font-size: 10.5px; opacity: .65; margin-top: 12px; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.related-card { display: block; text-decoration: none; color: inherit; background: var(--plate); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 16px; transition: transform .12s, box-shadow .12s; }
.related-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.related-card .r-area { font-size: 10.5px; color: var(--ink-soft); letter-spacing: .06em; }
.related-card .r-name { font-family: var(--font-display); font-weight: 900; font-size: 17px; display: block; }
.related-card .r-copy { font-size: 12px; color: var(--line-green-dark); font-weight: 700; line-height: 1.55; display: block; margin-top: 2px; }
.tag-nav { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-nav a { display: inline-block; border: 1.5px solid var(--rail-gray); background: #fff; border-radius: 999px; padding: 5px 14px; font-size: 12.5px; font-weight: 700; color: var(--ink); text-decoration: none; }
.tag-nav a:hover { border-color: var(--line-green); color: var(--line-green-dark); }
.station-index h3 { font-family: var(--font-display); font-size: 16px; margin: 22px 0 10px; display: flex; align-items: center; gap: 8px; }
.station-index h3::before { content: ""; width: 6px; height: 18px; border-radius: 3px; background: var(--line-green); }
.intro-lead { background: var(--plate); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 22px; font-size: 14px; margin-bottom: 18px; border-left: 6px solid var(--line-green); }


/* ---------- スマホ:ファーストビュー圧縮(検索パネルを早く見せる) ---------- */
@media (max-width: 640px) {
  .hero { padding: 20px 0 4px; }
  .hero-catch { font-size: 12px; margin-bottom: 10px; letter-spacing: .08em; }
  .ekimeihyo { padding: 14px 18px 10px; }
  .ekimeihyo .kana { font-size: 11px; }
  .ekimeihyo .line-bar { margin-top: 8px; height: 10px; }
  .ekimeihyo .neighbors { margin-top: 6px; font-size: 11px; }
  .hero-sub { margin: 12px auto 0; font-size: 13.5px; line-height: 1.65; }
  .hero-sub .hero-sub-detail { display: none; }
  .search-panel { padding: 18px 16px 22px; margin-top: 14px; }
  .search-panel > h2:first-child { font-size: 17px; }
}

/* Yahoo!不動産 駅別リンク(PR) */
.yahoo-re-links { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--rail-gray); }
.yre-pr { font-size: 10.5px; color: var(--ink-soft); margin-bottom: 8px; letter-spacing: .05em; }
.yre-btn {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  border: 2px solid #ff0033; background: #fff5f6; border-radius: 12px;
  padding: 12px 16px; margin-bottom: 8px; text-decoration: none; color: var(--ink);
  font-weight: 700; font-size: 13.5px; transition: background .15s;
}
.yre-btn:hover { background: #ffe3e6; }
.yre-btn .arrow { color: #ff0033; font-size: 18px; }
