/* 2026-10-25 版（トップだけ）：冒頭の説明・マメの監修の帯・実現するまでの流れ（#how-it-works）。部屋の体験は変えない。
   読み込みは site12.css の後（tools/build_v12.py）。住宅会社を探すボタン（builder-*）は全ページ共通なので site12.css の末尾 */
.hero-eyebrow { letter-spacing: .06em; }
.hero-lead { max-width: 34em; font-size: clamp(14px, 1.1vw, 16px); line-height: 1.9; }
.hero-actions { gap: 10px; margin-top: 25px; }
.hero-actions .btn { font-size: 13.5px; padding-left: 20px; padding-right: 20px; }
.hero-route { margin-top: 13px; }
.hero-route a { display: inline-flex; align-items: center; gap: 10px; min-height: 36px; color: #fff; font-size: 13px; text-decoration: underline; text-underline-offset: 5px; }
.hero-route a::after { content: '↓'; text-decoration: none; }
.site-header .header-cta { font-size: 12px; }
.sv-inner { grid-template-columns: 72px minmax(0, 1fr) auto; gap: 24px; padding-top: 26px; padding-bottom: 26px; }
.sv-avatar { width: 72px; height: 72px; }
.sv-body { display: block; }
.sv-kicker { color: var(--ink-2); font-size: 12px; letter-spacing: .05em; margin-bottom: 6px; }
.sv-title { font-size: clamp(17px, 1.5vw, 22px); line-height: 1.6; }
.sv-text { margin-top: 4px; font-size: 13px; }
.sv-proof { border-left: 1px solid var(--line); padding-left: 32px; text-align: left; }
.sv-proof-label { display: block; font-size: 11px; letter-spacing: .04em; }
.sv-proof strong { display: inline-block; font: 700 36px/1.25 Arial, sans-serif; letter-spacing: -.03em; }
.sv-proof strong span { font: 700 16px/1.4 var(--font); margin-left: 4px; letter-spacing: .02em; }
.sv-proof small { display: block; font-size: 10px; color: var(--muted); }
.sv-proof .sv-more { margin: 5px 0 0; font-size: 12px; }
.grow-head .section-lead { max-width: 780px; margin-left: auto; margin-right: auto; }
.grow-original { margin: 55px 0 0; text-align: center; }
.grow-original h3 { font-size: clamp(20px, 2vw, 27px); line-height: 1.6; }
.grow-original p { margin-top: 10px; font-size: 14px; line-height: 1.9; color: var(--ink-2); }
.grow-steps { margin-top: 30px; }
.onb-flow { padding: var(--sec) 0; background: #fff9e9; scroll-margin-top: 80px; }
.onb-flow .section-head { max-width: 850px; }
.onb-eyebrow { color: #65522c; font-size: 12px; font-weight: 700; letter-spacing: .14em; margin-bottom: 14px; }
.onb-flow .section-title { font-size: clamp(28px, 3vw, 42px); }
.onb-flow .section-lead { font-size: 15px; }
.onb-roles { display: grid; grid-template-columns: 1fr 48px 1fr; gap: 22px; max-width: 960px; margin: 40px auto 0; padding: 30px 36px; background: rgba(255,255,255,.76); border: 1px solid #e8dfcb; border-radius: 20px; }
.onb-role-label { display: block; font-size: 12px; color: #65522c; font-weight: 700; }
.onb-roles h3 { margin-top: 7px; font-size: 19px; line-height: 1.6; }
.onb-roles p { margin-top: 9px; font-size: 14px; line-height: 1.9; color: var(--ink-2); }
.onb-role-plus { align-self: center; justify-self: center; font-size: 24px; color: #8d794c; }
.onb-steps { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 34px; margin-top: 56px; }
.onb-steps li { display: flex; flex-direction: column; align-items: flex-start; position: relative; padding-top: 22px; border-top: 2px solid #d4bd85; }
.onb-steps li + li::before { content: '→'; position: absolute; left: -28px; top: -17px; background: #fff9e9; padding: 0 2px; font-size: 20px; color: #8d794c; }
.onb-number { font: 400 38px/1.2 Arial,sans-serif; letter-spacing: -.04em; color: #806b3b; }
.onb-steps h3 { margin-top: 17px; font-size: clamp(19px, 1.8vw, 23px); line-height: 1.55; }
.onb-steps p { margin: 12px 0 20px; color: var(--ink-2); font-size: 14px; line-height: 1.95; }
.onb-step-note { margin-top: auto; font-size: 11px; font-weight: 700; letter-spacing: .08em; color: #65522c; padding: 5px 11px; border-radius: 5px; background: #f4e9cc; }
.onb-consult { display: grid; justify-items: center; text-align: center; gap: 24px; margin-top: 48px; padding-top: 36px; border-top: 1px solid #e5d9bd; }
.onb-consult strong { display: block; font-size: 18px; line-height: 1.7; }
.onb-consult p > span { display: block; margin-top: 8px; font-size: 13px; line-height: 1.8; color: var(--ink-2); }
.onb-consult .btn { font-size: 15px; }
.onb-flow p, .onb-flow h3 { word-break: normal; overflow-wrap: anywhere; }
/* 短い文は <wbr> の所で折り返す（「mametto Official / Builder」「みませ / んか」のような割れを防ぐ） */
.onb-flow .section-lead, .onb-consult strong, .onb-consult p > span { word-break: keep-all; overflow-wrap: anywhere; text-wrap: balance; }
.hero-route a:focus-visible { outline: 3px solid var(--yellow); outline-offset: 4px; }
.onb-mame-channel { margin-top: 12px; font-size: 12px; line-height: 1.7; text-align: center; }
.onb-mame-channel small { font-size: 10px; color: var(--muted); }
@media (min-width: 1100px) and (max-width: 1340px) {
  .fv6-copy { padding-bottom: 190px; }
  .fv6-dock { bottom: 46px; }
  .hero-lead { max-width: 38em; }
}
@media (max-width: 899px) {
  .fv6-copy { padding-bottom: 15px; }
  .hero-eyebrow { display: inline-flex; font-size: 10px; padding: 5px 9px; margin: 3px 0 11px; letter-spacing: .03em; }
  .hero-eyebrow::before { width: 5px; height: 5px; }
  .hero-lead { margin-top: 12px; font-size: 13px; line-height: 1.9; max-width: 42em; }
  .hero-actions { margin-top: 17px; }
  .hero-actions .btn { font-size: 13px; padding: 12px 16px; min-height: 48px; }
  .hero-route { margin-top: 7px; text-align: center; }
  .hero-route a { font-size: 12px; }
  .sv-inner { grid-template-columns: 56px minmax(0,1fr); gap: 12px 16px; padding-top: 24px; padding-bottom: 24px; }
  .sv-avatar { width: 56px; height: 56px; grid-column: 1; grid-row: 1; }
  .sv-body { display: block; grid-column: 2; }
  .sv-kicker { font-size: 10px; line-height: 1.65; margin-bottom: 4px; }
  .sv-title { font-size: 16px; grid-column: auto; }
  .sv-text { font-size: 12px; line-height: 1.75; }
  .sv-proof { grid-column: 1 / -1; padding: 14px 0 0; border-left: 0; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 10px; }
  .sv-proof p { display: flex; flex-wrap: wrap; align-items: baseline; gap: 3px 8px; }
  .sv-proof-label { font-size: 10px; }
  .sv-proof strong { font-size: 27px; }
  .sv-proof strong span { font-size: 12px; }
  .sv-proof small { font-size: 9px; }
  .sv-proof .sv-more { flex-shrink: 0; font-size: 11px; }
  .onb-roles { grid-template-columns: 1fr 28px 1fr; gap: 12px; padding: 24px; }
  .onb-steps { gap: 24px; }
  .onb-steps li + li::before { left: -23px; }
}
@media (max-width: 599px) {
  .grow-original { margin-top: 38px; }
  .grow-original p { font-size: 13px; }
  .onb-flow { padding: 64px 0; }
  .onb-flow .section-lead { font-size: 13.5px; }
  .onb-roles { grid-template-columns: 1fr; padding: 22px; gap: 15px; margin-top: 28px; }
  .onb-role-plus { font-size: 18px; line-height: 1; }
  .onb-roles h3 { font-size: 18px; }
  .onb-roles p { font-size: 13px; }
  .onb-steps { grid-template-columns: 1fr; gap: 26px; margin-top: 34px; }
  .onb-steps li { display: grid; grid-template-columns: 42px minmax(0,1fr); column-gap: 16px; padding-top: 20px; }
  .onb-number { grid-column: 1; grid-row: 1 / span 3; font-size: 30px; }
  .onb-steps h3 { grid-column: 2; font-size: 19px; margin-top: 0; }
  .onb-steps p { grid-column: 2; font-size: 13.5px; margin: 9px 0 13px; }
  .onb-step-note { grid-column: 2; justify-self: start; }
  .onb-steps li + li::before { display: none; }
  .onb-consult { margin-top: 30px; padding-top: 27px; gap: 20px; }
  .onb-consult strong { font-size: 16px; }
  .onb-consult .btn { width: 100%; padding: 14px 12px; font-size: 12px; }
}
/* The live mobile version hides supporting copy. Show the new identity copy. */
@media (max-width: 700px) {
  .fv6 .hero-eyebrow { display: inline-flex !important; }
  .fv6 .hero-lead { display: block !important; }
  .fv6 .hero-actions .btn-secondary { display: inline-flex !important; }
  .sv .sv-text { display: block; }
  .grow .grow-head .section-lead { display: block; }
  .bridge .btn-large { white-space: normal; text-align: center; font-size: 13px; padding: 14px 16px; }
  .onb-mame-channel { grid-column: 2; text-align: left; margin-top: 4px; }
}
.fv6 .hero-actions .btn > span,
.sv-kicker,
.onb-steps h3 { text-wrap: balance; }
@media (max-width: 359px) {
  .onb-flow .section-title { font-size: 24px; }
}
/* マメの監修の帯（PC）：広い画面で登録者数が右端に離れないよう、中身を中央の幅にまとめる（2026-10-28 オーナー指摘） */
@media (min-width: 900px) {
  .sv-inner { grid-template-columns: 88px auto auto; justify-content: center; column-gap: 32px; padding-top: 32px; padding-bottom: 32px; }
  .sv-avatar { width: 88px; height: 88px; }
  .sv-proof { margin-left: 24px; padding-left: 48px; }
  .sv-proof .sv-more { margin-top: 8px; }
}
/* 最初の画面の「場面」の操作（PC）：文字を減らす（2026-10-28 オーナー指摘）。ボタンは名前だけ、「場面を選ぶ」の札は画面に出さない
   （札は読み上げ用に残す。各ボタンの補足の文は、上の一行の説明と重なるので出さない） */
.fv6-dock .dock-btn small { display: none; }
.fv6-dock .dock-btn { min-height: 52px; }
.fv6-dock .dock-label { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* 部屋の「1つずつ見る」体験（PC・タブレット）：分かりやすく（2026-10-28 オーナー指摘）。全部屋共通
   ・流れの上に「ボタンを押すと、順番に動きます」。きっかけ／つながり／結果 の小見出しは画面に出さない（読み上げには残す）
   ・ボタンを流れのすぐ下へ。いまの説明は枠をやめ、ボタンの下の文に。「はじめ」「2 つながり」の札は出さない（流れの色で分かる） */
@media (min-width: 701px) {
  .exp-path::before { content: "ボタンを押すと、順番に動きます"; margin-bottom: 6px; font-size: 13px; font-weight: 700; letter-spacing: .04em; color: var(--ink-2); }
  .exp-pk, .exp-now-k { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
  .exp-path li { padding: 8px 0; }
  .js .exp-panel { display: flex; flex-direction: column; }
  .exp-ctrl { order: -1; margin-top: 8px; }
  .exp-now { min-height: calc(1.7em * 3); margin-top: 16px; padding: 0; border-radius: 0; background: none; box-shadow: none; }
  .exp-now-t { font-size: 15px; font-weight: 500; color: var(--ink-2); }
}
/* 締め（#partner）：見出し1つになったので、大きさと間を整える（2026-10-28） */
.bridge-title { font-size: clamp(24px, 3vw, 42px); line-height: 1.55; letter-spacing: .02em; text-wrap: balance; }
.bridge-topics { margin-top: 32px; max-width: 880px; }   /* 3つの問いを PC では1行に */
@media (max-width: 700px) {
  .bridge-title { font-size: 22px; }
}
/* スマホ：最初の画面の2つのボタンを左右に並べる（2026-10-28 オーナー指示）。左は「暮らしを体験する」に短く */
@media (max-width: 700px) {
  .fv6 .hero-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .fv6 .hero-actions .btn { width: auto; min-width: 0; min-height: 58px; padding: 8px 12px; gap: 6px; justify-content: center; font-size: 13.5px; }
  .fv6 .hero-actions .builder-link { padding: 8px 12px; gap: 6px; }
  .fv6 .hero-actions .btn .btn-icon { width: 16px; height: 16px; flex: none; }
  .fv6 .hero-actions .lbl-full { display: none; }
  .fv6 .hero-actions .builder-brand { font-size: 9.5px; }
  .fv6 .hero-actions .builder-action { font-size: 13.5px; }
}
@media (max-width: 359px) {
  .fv6 .hero-actions .btn { padding: 8px 10px; font-size: 12.5px; line-height: 1.35; }
  .fv6 .hero-actions .btn-primary > span { white-space: nowrap; }
  .fv6 .hero-actions .builder-brand { font-size: 8.5px; }
  .fv6 .hero-actions .builder-action { font-size: 12.5px; }
}
/* 住宅会社を探すボタン：上下の余白をそろえる（2026-10-28 オーナー指摘）。
   2行の文字の箱を行の高さ（strut）に乗せず、ボタンの中央に置く。行の高さも文字の大きさに合わせて詰める */
.builder-link span:has(> .builder-copy) { display: flex; }
.builder-copy { display: flex; line-height: 1; gap: 4px; }
.builder-brand { line-height: 1.2; }
.builder-action { line-height: 1.3; }
/* スマホ：文字を減らす（2026-10-28 オーナー指摘）。見出し・ボタンを残し、補足の文は画面に出さない（PC はそのまま） */
@media (max-width: 700px) {
  .ready-cta { justify-content: center; gap: 10px; padding-left: 16px; padding-right: 16px; }
  .ready-cta > span { white-space: nowrap; font-size: 15px; }                   /* 「mamettoの家を、のぞいてみる」を1行に */
  .sv .sv-kicker, .sv .sv-text { display: none; }                              /* 監修の帯：見出しと登録者数だけ */
  .sv-body { align-self: center; }
  .grow .grow-head .section-lead { display: none; }                            /* こんな暮らしを、わが家でも。：見出しだけ */
  .grow-original p { display: none; }
  .onb-flow .section-lead .sp-more { display: none; }                          /* 相談先は、地域の住宅会社です。だけ */
  .onb-roles p, .onb-steps p, .onb-step-note, .onb-consult p > span { display: none; }   /* 役割と 01〜03 は見出しだけ */
  .onb-roles { gap: 10px; }
  .onb-steps { gap: 0; }
  .onb-steps li { align-items: center; padding: 16px 0; }
  .onb-number { grid-row: auto; }
}
@media (max-width: 359px) {
  .ready-cta > span { font-size: 13.5px; }
}
/* スマホ：01〜03 は見出しを押すと説明が開く（site12.js が見出しをボタンにする） */
@media (max-width: 700px) {
  .onb-step-btn { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 44px; padding: 0; border: 0; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; }
  .onb-step-btn::after { content: ""; flex: none; width: 9px; height: 9px; margin-right: 4px; border-right: 2px solid #8d794c; border-bottom: 2px solid #8d794c; transform: rotate(45deg) translateY(-3px); transition: transform .2s; }
  .onb-steps li.is-open .onb-step-btn::after { transform: rotate(-135deg) translateY(-3px); }
  .onb-step-btn:focus-visible { outline: 3px solid var(--yellow); outline-offset: 4px; border-radius: 4px; }
  .onb-steps li.is-open p { display: block; margin: 4px 0 4px; }
}
