/* BUILD SET（収益不動産）2026-10-27：ネイビー主・深いグリーン副・白とライトグレー・控えめなゴールド。投資判断のしやすさ（数字は等幅・揃える）を優先 */
:root {
  /* 2026-10-30 HAKKENKAN INVEST リニューアル（社長承認）：ネイビー #142C43・深いグリーン #1E6A52・明るいグリーン #8FBF91・本文 #333B42・背景 #F4F6F7。
     変数名 --gold は「主ボタンの色」として残し、値を深いグリーンに変えた（BUILD SET の各ページも同じ色になる） */
  --navy: #142c43; --navy-2: #1f4263; --navy-ink: #e8eef4; --green: #1e6a52; --green-soft: #e4f0ea; --accent: #8fbf91;
  --gold: #1e6a52; --gold-soft: #e9f3ec; --bg: #f4f6f7; --surface: #ffffff; --ink: #333b42; --sub: #5d6872; --line: #dde3e7;
  --red: #b8322a; --orange: #b45309; --orange-soft: #fff3e0;
  --font: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', Meiryo, sans-serif; --serif: 'Cormorant Garamond', 'Shippori Mincho', 'Hiragino Mincho ProN', serif;
  --r: 10px; --shadow: 0 2px 10px rgba(20, 44, 67, .08); --head: 72px;
}
* { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--head) + 10px); }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 15px; line-height: 1.75; -webkit-text-size-adjust: 100%; }
a { color: var(--navy-2); }
img { max-width: 100%; }
.num { font-variant-numeric: tabular-nums; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 20px; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ヘッダー */
.bs-h { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); height: var(--head); }
.bs-h .wrap { display: flex; align-items: center; gap: 18px; height: 100%; max-width: 1320px; }
.bs-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex: none; }
.bs-logo img { height: 38px; width: auto; }
.bs-logo span { display: grid; line-height: 1.25; } .bs-logo b { font-family: var(--serif); font-size: 21px; letter-spacing: .12em; color: var(--navy); } .bs-logo small { font-size: 10.5px; color: var(--sub); }
.bs-nav { display: flex; gap: 2px; margin-left: auto; }
.bs-nav a { padding: 8px 10px; font-size: 13.5px; font-weight: 600; color: var(--ink); text-decoration: none; border-radius: 6px; white-space: nowrap; }
.bs-nav a:hover, .bs-nav a[aria-current] { color: var(--navy-2); background: var(--bg); }
.bs-acts { display: flex; gap: 8px; align-items: center; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 18px; border-radius: 6px; border: 1px solid transparent; font: inherit; font-weight: 700; font-size: 14px; text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn-navy { background: var(--navy); color: #fff; } .btn-navy:hover { background: var(--navy-2); }
.btn-gold { background: var(--gold); color: #fff; } .btn-gold:hover { background: #17553f; }
.btn-line { background: #fff; color: var(--navy); border-color: var(--navy); } .btn-line:hover { background: var(--bg); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.bs-login { font-size: 13px; font-weight: 600; color: var(--ink); text-decoration: none; padding: 8px 6px; white-space: nowrap; } .bs-login:hover { color: var(--green); }
.sp-only { display: none !important; }
.btn[disabled] { opacity: .5; cursor: wait; }
.bs-burger { display: none; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.bs-burger span { display: block; width: 18px; height: 2px; background: var(--ink); margin: 4px auto; }
.bs-staffbar { background: var(--gold-soft); color: #17553f; font-size: 13px; text-align: center; padding: 6px 12px; }

/* ファーストビュー */
.bs-hero { position: relative; overflow: hidden; background: var(--navy); color: #fff; }
.bs-hero > img { position: absolute; inset: 0 0 0 30%; width: 70%; height: 100%; object-fit: cover; }
.bs-hero::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, var(--navy) 0%, rgba(20, 44, 67, .96) 30%, rgba(20, 44, 67, .55) 55%, rgba(20, 44, 67, .05) 80%); }
.bs-hero .wrap { position: relative; z-index: 2; padding-top: 52px; padding-bottom: 36px; }
.bs-hero .lead-s { margin: 0 0 6px; font-size: 15px; letter-spacing: .2em; color: var(--navy-ink); }
.bs-hero h1 { margin: 0; font-family: var(--serif); font-size: clamp(52px, 7.6vw, 104px); font-weight: 600; letter-spacing: .06em; line-height: 1; }
.bs-hero .kana { margin: 8px 0 18px; font-size: 18px; letter-spacing: .5em; }
.bs-hero h2 { margin: 0 0 14px; font-size: clamp(20px, 2.6vw, 30px); font-weight: 700; letter-spacing: .08em; line-height: 1.6; }
.bs-hero h2 em { font-style: normal; color: var(--accent); }
.bs-hero p { max-width: 560px; margin: 0; color: var(--navy-ink); font-size: 14.5px; line-height: 2; }
.bs-hero .tag { position: absolute; right: 3%; top: 26px; z-index: 2; margin: 0; font-family: 'Shippori Mincho', var(--serif); font-size: clamp(16px, 1.9vw, 24px); line-height: 1.8; letter-spacing: .14em; text-align: right; transform: rotate(-8deg); text-shadow: 0 1px 6px rgba(0, 0, 0, .55); }
.bs-hero .cap { position: absolute; right: 12px; bottom: 8px; z-index: 2; font-size: 11px; color: rgba(255, 255, 255, .8); text-shadow: 0 1px 3px rgba(0, 0, 0, .6); }
.bs-feats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 26px; max-width: 1000px; }
.bs-feats div { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: rgba(13, 28, 54, .78); border: 1px solid rgba(255, 255, 255, .14); border-radius: 6px; font-size: 13.5px; font-weight: 700; line-height: 1.5; }
.bs-feats svg { width: 28px; height: 28px; flex: none; color: var(--accent); }

/* 検索 */
.bs-search { position: relative; z-index: 5; margin-top: -8px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 14px; }
.bs-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
.bs-tabs button, .bs-tabs a { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font: inherit; text-align: left; cursor: pointer; color: var(--ink); text-decoration: none; }
.bs-tabs b { display: block; font-size: 14px; } .bs-tabs small { display: block; font-size: 11.5px; color: var(--sub); }
.bs-tabs svg { width: 28px; height: 28px; flex: none; color: var(--navy); }
.bs-tabs .on { background: var(--navy); border-color: var(--navy); color: #fff; } .bs-tabs .on small, .bs-tabs .on svg { color: var(--navy-ink); }
.bs-fields { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)) 200px; gap: 8px; }
.bs-field { display: grid; gap: 2px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.bs-field span { font-size: 12px; font-weight: 700; } .bs-field select { border: 0; padding: 2px 0; font: inherit; font-size: 14px; background: transparent; color: var(--ink); min-width: 0; }
.bs-search .note { margin: 8px 0 0; font-size: 12px; color: var(--sub); }

/* 見出し・セクション */
.sec { padding: 56px 0; } .sec.white { background: #fff; } .sec.navy { background: var(--navy); color: #fff; }
.eyebrow { margin: 0 0 4px; font-size: 12px; font-weight: 700; letter-spacing: .2em; color: var(--gold); }
.h2 { margin: 0 0 10px; font-size: clamp(22px, 2.8vw, 30px); letter-spacing: .06em; line-height: 1.5; text-wrap: balance; }
.lead { margin: 0; color: var(--sub); max-width: 46em; }
.sec.navy .lead { color: var(--navy-ink); }
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 30px; align-items: start; }
.steps3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.steps3 figure { margin: 0; } .steps3 h3 { display: flex; align-items: baseline; gap: 10px; margin: 0 0 8px; font-size: 15.5px; }
.steps3 h3 span { font-family: var(--serif); font-size: 36px; color: var(--gold); line-height: 1; font-variant-numeric: lining-nums; }
.steps3 .ph { aspect-ratio: 16 / 10; border-radius: 6px; overflow: hidden; background: var(--bg); display: grid; place-items: center; color: var(--navy); }
.steps3 .ph img { width: 100%; height: 100%; object-fit: cover; } .steps3 .ph svg { width: 54px; height: 54px; opacity: .7; }
.steps3 p { margin: 8px 0 0; font-size: 13.5px; color: var(--sub); }

/* 物件カード */
.grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.card { background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.card .ph { position: relative; aspect-ratio: 16 / 10; background: linear-gradient(160deg, #e5eaf1, #d3dbe6); display: grid; place-items: center; color: var(--navy-2); }
.card .ph img { width: 100%; height: 100%; object-fit: cover; } .card .ph .none { display: grid; justify-items: center; gap: 4px; font-size: 12.5px; font-weight: 700; } .card .ph svg { width: 34px; height: 34px; opacity: .6; }
.badges { position: absolute; left: 8px; top: 8px; display: flex; gap: 4px; flex-wrap: wrap; }
.badge { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 3px; background: var(--green); color: #fff; }
.badge.mem { background: #5b3f8c; } .badge.staff { background: var(--gold); } .badge.st { background: var(--orange); } .badge.kind { background: rgba(20, 44, 67, .85); }
.card .body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card h3 { margin: 0; font-size: 15px; line-height: 1.5; }
.price { margin: 0; color: var(--red); font-weight: 700; font-size: 13px; } .price b { font-size: 24px; letter-spacing: .01em; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 1px 12px; margin: 0; font-size: 12.5px; } .kv dt { color: var(--sub); } .kv dd { margin: 0; }
.unk { color: var(--orange); font-weight: 700; }
.card .acts { margin-top: auto; padding-top: 6px; display: grid; gap: 6px; }
.card .acts .btn { min-height: 38px; font-size: 13px; }
.empty { padding: 34px 12px; text-align: center; color: var(--sub); background: #fff; border: 1px dashed var(--line); border-radius: 8px; line-height: 2; }
.sec.navy .card .price b { color: var(--red); }

/* シミュレーションの帯・入口・流れ */
.simband { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 0; background: #fff; border-radius: 10px; overflow: hidden; box-shadow: var(--shadow); }
.simband > img { width: 100%; height: 100%; object-fit: cover; min-height: 260px; }
.simband .in { padding: 28px; display: grid; gap: 12px; align-content: center; }
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 18px; margin: 0; padding: 0; list-style: none; font-size: 13.5px; }
.checks li::before { content: '✓'; color: var(--green); font-weight: 700; margin-right: 6px; }
.doors { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; background: #fff; border-radius: 10px; box-shadow: var(--shadow); }
.doors a { display: grid; justify-items: center; gap: 6px; padding: 22px 14px; text-align: center; text-decoration: none; color: var(--ink); border-right: 1px solid var(--line); }
.doors a:last-child { border-right: 0; } .doors svg { width: 34px; height: 34px; color: var(--navy); } .doors b { font-size: 15px; } .doors small { font-size: 12.5px; color: var(--sub); } .doors em { font-style: normal; font-size: 12.5px; color: var(--navy-2); font-weight: 700; }
.flow { list-style: none; counter-reset: f; padding: 0; margin: 20px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.flow li { counter-increment: f; background: #fff; border-radius: 8px; padding: 16px; border-top: 3px solid var(--navy); }
.flow li::before { content: 'STEP ' counter(f); display: block; font-size: 12px; font-weight: 700; color: var(--gold); letter-spacing: .14em; }
.flow b { display: block; margin: 4px 0; } .flow p { margin: 0; font-size: 13.5px; color: var(--sub); }
.faq dt { font-weight: 700; margin-top: 14px; } .faq dd { margin: 4px 0 0; color: var(--sub); font-size: 14px; }
.note-box { background: var(--gold-soft); border-radius: 8px; padding: 12px 14px; font-size: 13px; color: #5d4818; line-height: 1.8; }

/* フッター */
.bs-f { background: #0d1c36; color: #c9d3e3; font-size: 13px; padding: 34px 0 24px; }
.bs-f .wrap { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 2fr); gap: 24px; }
.bs-f a { color: #fff; text-decoration: none; } .bs-f ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px 18px; }
.bs-f .copy { grid-column: 1 / -1; border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 14px; font-size: 12px; }

/* 一覧・詳細・シミュレーション・登録の共通 */
.page-h { padding: 26px 0 8px; } .crumb { font-size: 12px; color: var(--sub); margin: 0 0 6px; } .crumb a { color: var(--sub); }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 18px; box-shadow: var(--shadow); }
.layout2 { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 18px; align-items: start; }
.filters { display: grid; gap: 10px; position: sticky; top: calc(var(--head) + 12px); }
.filters label { display: grid; gap: 4px; font-size: 13px; font-weight: 700; }
.filters select, .form input, .form select, .form textarea { width: 100%; min-height: 42px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; font: inherit; font-size: 15px; background: #fff; color: var(--ink); }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tbl-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 14px; } .tbl th, .tbl td { padding: 9px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.tbl th { color: var(--sub); font-weight: 600; width: 34%; } .tbl td.r { text-align: right; } .tbl tr.sum td, .tbl tr.sum th { font-weight: 800; color: var(--ink); border-top: 2px solid var(--navy); }
.st { display: inline-block; font-size: 11.5px; font-weight: 700; padding: 1px 8px; border-radius: 99px; }
.st.ok { background: var(--green-soft); color: var(--green); } .st.needs_check { background: var(--orange-soft); color: var(--orange); } .st.ng { background: #fde8e6; color: var(--red); }
.form { display: grid; gap: 12px; } .form label { display: grid; gap: 4px; font-size: 13.5px; font-weight: 700; }
.form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form .three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; } .chip { position: relative; } .chip input { position: absolute; opacity: 0; inset: 0; margin: 0; }
.chip span { display: inline-flex; align-items: center; min-height: 42px; padding: 0 14px; border: 1px solid var(--line); border-radius: 99px; background: #fff; font-size: 14px; cursor: pointer; }
.chip input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; } .chip input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.err { color: var(--red); font-weight: 700; min-height: 1.2em; margin: 0; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.kpi { background: var(--bg); border-radius: 8px; padding: 12px 14px; display: grid; } .kpi small { font-size: 12px; color: var(--sub); } .kpi b { font-size: 22px; color: var(--navy); font-variant-numeric: tabular-nums; }
.kpi.cf b.neg { color: var(--red); } .kpi.cf b.pos { color: var(--green); }
.sens td, .sens th { text-align: right; font-variant-numeric: tabular-nums; } .sens td.neg { color: var(--red); } .sens td.base { background: var(--gold-soft); font-weight: 700; }

/* ヘッダー：メニュー6項目＋ログイン・会員登録・お問い合わせが1行に入らない幅では、副題と「（無料）」を省き、さらに狭ければハンバーガーにする（2026-10-30） */
@media (max-width: 1360px) { .bs-logo small, .pc-only { display: none; } .bs-nav a { padding: 8px 7px; } }
@media (max-width: 1180px) {
  .bs-nav { display: none; } .bs-burger { display: block; } .bs-nav.open .sp-only { display: block !important; }
  .bs-nav.open { display: grid; position: absolute; left: 0; right: 0; top: var(--head); background: #fff; border-bottom: 1px solid var(--line); padding: 8px 16px 14px; box-shadow: var(--shadow); }
}
@media (max-width: 1100px) {
  .bs-fields { grid-template-columns: repeat(3, minmax(0, 1fr)); } .bs-fields .btn { grid-column: 1 / -1; }
  .grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .about { grid-template-columns: 1fr; }
  .layout2 { grid-template-columns: 1fr; } .filters { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  :root { --head: 60px; }
  .wrap { padding: 0 16px; } .bs-logo img { height: 28px; } .bs-logo small { display: none; } .bs-logo b { font-size: 14.5px; letter-spacing: .04em; white-space: nowrap; } .pc-only { display: none; } .bs-logo { gap: 6px; min-width: 0; } .bs-acts .btn-gold { padding: 0 10px; font-size: 12.5px; }
  .bs-h .wrap { gap: 10px; } .bs-acts { gap: 6px; } .bs-acts .btn-line, .bs-acts .bs-login { display: none; } .bs-acts .btn { padding: 0 12px; min-height: 38px; }
  .bs-hero > img { position: relative; inset: auto; width: 100%; height: 210px; display: block; } .bs-hero::before { display: none; } .bs-hero .wrap { padding-top: 22px; }
  .bs-hero .tag { top: 14px; font-size: 15px; } .bs-hero .cap { top: 190px; bottom: auto; }
  .bs-feats { grid-template-columns: 1fr 1fr; } .bs-tabs { grid-template-columns: 1fr 1fr; } .bs-fields { grid-template-columns: 1fr 1fr; }
  .steps3, .grid4, .grid3, .doors, .flow, .simband, .checks, .filters, .form .two, .form .three { grid-template-columns: 1fr; }
  .doors a { border-right: 0; border-bottom: 1px solid var(--line); } .bs-f .wrap, .bs-f ul { grid-template-columns: 1fr; }
  .sec { padding: 40px 0; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
