/* mametto 公式サイト ビジュアル試作｜第8版の仮組み（proto/v8）。第7版（FV・④・断面・リビング）はそのままに、サイト全体の流れを足すための部品。
   styles.css・fv6.css は第7版と同じ。ここは足した段だけ：断面の6つの入口、部屋の目次、5つの部屋の場面、ホームアプリ、設計から考える価値、よくある質問、締め。
   仮置き（未制作の画像・仮の切り抜き・確認待ちの言葉）は、点線の枠と「仮置き」「未制作の画像」の札で、完成した部分と見分けられるようにする。 */

/* ---------- 仮置きの印（確認用。完成した部分には付けない） ---------- */
.prov { display: inline-flex; align-items: center; gap: 5px; padding: 1px 9px; border-radius: 999px; border: 1px dashed rgba(27, 27, 26, .5);
  background: rgba(255, 255, 255, .86); color: var(--ink-2); font-size: 11px; font-weight: 700; line-height: 1.7; letter-spacing: .04em; white-space: nowrap; vertical-align: middle; }
.prov::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #8a9aa6; }
.prov--todo::before { background: #c0703a; }
.prov--dark { background: rgba(29, 27, 24, .72); color: #f4f1ec; border-color: rgba(255, 255, 255, .5); }
html.no-prov .prov, html.no-prov .ph-label { display: none !important; }

/* 未制作の画像の代わりの枠：斜めの縞と点線で「写真ではない」ことが分かるように。中に予定の構図を書く */
.ph { position: relative; display: grid; place-items: center; aspect-ratio: 3 / 2; border-radius: var(--radius-media); overflow: hidden;
  background: repeating-linear-gradient(135deg, #ece6dc 0 14px, #e6dfd3 14px 28px); box-shadow: inset 0 0 0 1.5px rgba(27, 27, 26, .22); }
.ph::after { content: ""; position: absolute; inset: 10px; border-radius: calc(var(--radius-media) - 8px); border: 1.5px dashed rgba(27, 27, 26, .28); pointer-events: none; }
.ph-label { position: relative; z-index: 1; max-width: 30em; padding: 18px 22px; text-align: center; color: var(--ink-2); font-size: 14px; line-height: 1.8;
  text-wrap: balance; word-break: auto-phrase; }   /* 予定の構図の短い説明は、文節の切れ目で行の長さをそろえる（Safari は通常の折り方） */
/* 札は説明の上に1行で（部屋の写真・プランの画像の左上に置く .prov の指定が、枠の中の札にも効いて見出しに重なっていた） */
.ph .ph-label .prov { position: static; margin-bottom: 8px; }
.ph-label b { display: block; color: var(--ink); font-size: 15px; }
.ph-label small { display: block; margin-top: 4px; font-size: 12px; line-height: 1.7; color: #57554e; }   /* 縞の明るい側でも明暗差 4.5 以上（--muted だと 4.47） */
.ph-crop { width: 112px; height: 112px; margin: 14px auto 2px; border-radius: 12px; box-shadow: 0 0 0 4px rgba(255, 255, 255, .7); }
.ph--night small { color: #b9b3a8; }
@media (max-width: 599px) { .ph { aspect-ratio: auto; min-height: 260px; } .ph-label { padding: 22px 18px; font-size: 13px; } .ph-crop { width: 84px; height: 84px; margin-top: 8px; } }
.ph--night { background: repeating-linear-gradient(135deg, #2b2824 0 14px, #262320 14px 28px); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .18); }
.ph--night::after { border-color: rgba(255, 255, 255, .26); }
.ph--night .ph-label, .ph--night .ph-label b { color: #e9e4dc; }

/* ---------- 断面の6つの入口 ---------- */
/* 図の上の札は、第8版から押せる入口にする（第7版までは押せない例の文だった） */
.house .room-label.is-door { pointer-events: auto; text-decoration: none; padding-right: 30px; box-shadow: 0 1px 0 rgba(27, 27, 26, .08), inset 0 0 0 1px rgba(27, 27, 26, .12); transition: box-shadow .2s, background-color .2s; }
.house .room-label.is-door::after { content: ""; position: absolute; right: 11px; top: 50%; width: 7px; height: 7px; margin-top: -4px; border-right: 2px solid var(--ink); border-top: 2px solid var(--ink); transform: rotate(45deg); }
.house .room-label.is-door:hover { background: #fff; box-shadow: inset 0 0 0 1.5px var(--ink); }
.house .room-label.is-door:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.house .room-label--outing.is-door { background: rgba(255, 255, 255, .9); border-style: solid; border-color: rgba(27, 27, 26, .18); }
@media (max-width: 899px) { .house .room-label.is-door { pointer-events: none; padding-right: 11px; } .house .room-label.is-door::after { display: none; } }

/* 図の下の入口のカード（PC もスマホも）。リビングだけ「動かして体験」 */
.doors-title { margin: clamp(32px, 4vw, 48px) 0 14px; text-align: center; font-size: 15px; font-weight: 700; letter-spacing: .08em; color: var(--ink-2); }
.doors { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; max-width: 1200px; margin: 0 auto; }
.door { position: relative; display: flex; flex-direction: column; min-height: 100%; border-radius: 16px; overflow: hidden; background: var(--paper); color: var(--ink); text-decoration: none;
  box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .2s, transform .2s; }
.door:hover { box-shadow: inset 0 0 0 1.5px var(--ink); transform: translateY(-2px); }
.door:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.door-thumb { position: relative; aspect-ratio: 1; overflow: hidden; background: var(--stone); }
.door-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }   /* 写真の大きさで枠が伸びないように、枠の形で切り抜く */
.door-thumb .prov { position: absolute; left: 8px; bottom: 8px; }
.door-thumb--icon { display: grid; place-items: center; background: linear-gradient(160deg, #f4efe7, #e7dfd2); }
.door-thumb--icon svg { width: 34%; height: 34%; fill: none; stroke: var(--ink-2); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.door-body { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px 14px; }
.door-name { display: flex; align-items: center; justify-content: space-between; gap: 6px; font-size: 16px; font-weight: 700; line-height: 1.4; }
.door-name svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.door-line { font-size: 12.5px; line-height: 1.6; color: var(--ink-2); word-break: keep-all; overflow-wrap: anywhere; text-wrap: balance; }
.door--live { box-shadow: inset 0 0 0 2px var(--yellow); }
.door--live .door-badge { position: absolute; left: 8px; top: 8px; padding: 2px 9px; border-radius: 999px; background: var(--yellow); font-size: 11px; font-weight: 700; line-height: 1.6; }
/* 1099px 以下は3列、絵は横長にして入口の段が長くなりすぎないように（768px で正方形の2列だと画面2枚分近くあった） */
@media (max-width: 1099px) { .doors { grid-template-columns: repeat(3, minmax(0, 1fr)); } .door-thumb { aspect-ratio: 4 / 3; } }
@media (max-width: 899px) {
  .house-action, .room-picker { display: none !important; }   /* 第7版のスマホの「リビングを体験」と部屋の例は、入口のカードにまとめた */
  .doors { gap: 10px; }
  .door-body { padding: 10px 12px 12px; }
  .door-name { font-size: 15px; }
}
@media (max-width: 599px) { .doors { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- 部屋の目次（部屋の段を読んでいる間、上に付いてくる） ---------- */
.tour { position: relative; }
.tour-nav { position: sticky; top: 0; z-index: 8; background: rgba(248, 246, 242, .92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line); }
.tour-nav ul { display: flex; gap: 6px; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 8px var(--gutter); overflow-x: auto; scrollbar-width: none; }
.tour-nav ul::-webkit-scrollbar { display: none; }
.tour-nav a { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 14px; border-radius: 999px; font-size: 14px; font-weight: 700; text-decoration: none; color: var(--ink-2); white-space: nowrap; }
.tour-nav a:hover { background: rgba(255, 255, 255, .9); color: var(--ink); }
.tour-nav a[aria-current="true"] { background: var(--ink); color: #fff; }
.tour-nav .tour-home { color: var(--muted); }
.tour-nav .tour-home svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tour .living { padding-top: calc(var(--sec) * .5); }
/* 部屋へ移った時、上に付いてくる目次（高さ約56px）の下に部屋の上端が来るように */
.tour > section { scroll-margin-top: 58px; }
.next-room { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 18px; border-radius: 999px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line);
  font-size: 14px; font-weight: 700; text-decoration: none; color: var(--ink); }
.next-room small { font-size: 12px; font-weight: 700; color: var(--muted); }
.next-room svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.next-room:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.room-bar-end { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }

/* ---------- 5つの部屋の場面 ---------- */
.room { padding: calc(var(--sec) * .5) 0 calc(var(--sec) * .62); }
.room:nth-of-type(even) { background: var(--paper); }
.room .room-bar { margin-bottom: clamp(24px, 3vw, 40px); }
.room-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.room--flip .room-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.room--flip .room-media { order: 2; }
.room-media { position: relative; }
.room-media > img, .room-media > picture img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius-media); background: var(--linen); }
.room-media > picture { display: block; }
/* 部屋の写真の下の小さな注（AI 生成の画像であること） */
.room-media-note { margin-top: 8px; text-align: right; color: var(--muted); line-height: 1.6; }
.room-media .prov { position: absolute; left: 14px; top: 14px; z-index: 2; }
.room-time { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: .12em; color: var(--muted); }
.room-time::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--yellow); }
.room .section-title { margin-top: 8px; font-size: clamp(26px, 3vw, 40px); }
.room .section-lead { margin-top: 16px; }
.room-cues { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 22px; }
.room-cues dt { margin-right: 4px; font-size: 12px; font-weight: 700; letter-spacing: .08em; color: var(--muted); }
.room-cues dd { margin: 0; display: inline-flex; align-items: center; min-height: 32px; padding: 0 12px; border-radius: 999px; background: var(--linen); font-size: 13px; font-weight: 700; color: var(--ink-2); }
.room-design { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 12px; margin-top: 26px; padding: 16px 18px; border-radius: 14px; background: var(--off); box-shadow: inset 0 0 0 1px var(--line); }
.room:nth-of-type(odd) .room-design { background: var(--paper); }
.room-design-tag { grid-row: 1 / span 2; align-self: start; padding: 2px 10px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 12px; font-weight: 700; line-height: 1.7; white-space: nowrap; }
.room-design b { font-size: 15px; line-height: 1.6; }
.room-design p { font-size: 13.5px; line-height: 1.8; color: var(--ink-2); word-break: keep-all; overflow-wrap: anywhere; }
.room-ask { margin-top: 18px; font-size: 15px; font-weight: 700; color: var(--ink); }
.room-note { margin-top: 14px; font-size: 12px; line-height: 1.7; color: var(--muted); }
.room .section-title, .room .section-lead, .room-ask, .room-design b { word-break: keep-all; overflow-wrap: anywhere; font-feature-settings: "palt"; }
.room-design b, .room-design p { text-wrap: balance; }
@media (max-width: 899px) {
  .room-grid, .room--flip .room-grid { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .room--flip .room-media { order: 0; }
  .room .room-bar { gap: 10px; }
  .next-room { min-height: 44px; padding: 0 14px; }
}
/* 狭い幅（スマホと、2列で文の側が細くなる 900〜1099px）：ひと工夫の札を上に置き、言葉に横幅を全部使う
   （札の横だと「スピー／カー」のように語の途中で折れたり、「。」だけが次の行へ落ちたりした） */
@media (max-width: 1099px) {
  .room-design { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .room-design-tag { grid-row: auto; justify-self: start; }
}

/* ---------- ホームアプリ ---------- */
.app { padding: var(--sec) 0; background: var(--night); color: var(--night-text); }
.app .eyebrow { color: var(--night-muted); }
.app .section-lead { color: #ddd7cd; }
.app-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 4vw, 64px); align-items: center; margin-top: clamp(36px, 4vw, 56px); }
.app-features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.app-feature { padding: 18px 18px 20px; border-radius: 16px; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }
.app-feature svg { width: 26px; height: 26px; fill: none; stroke: var(--yellow); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.app-feature b { display: block; margin-top: 10px; font-size: 16px; line-height: 1.5; }
.app-feature p { margin-top: 4px; font-size: 13.5px; line-height: 1.8; color: #cfc8bd; word-break: keep-all; overflow-wrap: anywhere; text-wrap: balance; }
.app-note { margin-top: 22px; font-size: 12px; line-height: 1.8; color: var(--night-muted); }
#app-lead { text-wrap: balance; }   /* 中央ぞろえのリードで「エアコンなど、」だけの行ができないように */
@media (max-width: 899px) {
  .app-grid { grid-template-columns: minmax(0, 1fr); }
  .app-features { grid-template-columns: minmax(0, 1fr); }
}

/* 第8版の続き：概念図（docs/19 の B）。図を横長のカードにして上に、6つの機能はその下に3列（PC）。
   Apple の画面の見た目（角丸の四角いタイルの並び・端末の枠・Apple の書体やアイコン）は使わない。線の絵と、mametto の黄色の点だけ */
.app-grid { grid-template-columns: minmax(0, 1fr); gap: clamp(20px, 2.4vw, 32px); }
.app-features { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.app-map { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 8px clamp(24px, 4vw, 56px); align-items: center; margin: 0;
  padding: clamp(18px, 2.4vw, 32px) clamp(18px, 3vw, 40px); border-radius: 20px; background: rgba(255, 255, 255, .045); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }
.app-map-tag { grid-column: 1 / -1; justify-self: start; display: inline-flex; align-items: center; gap: 7px; padding: 2px 12px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .42); font-size: 13px; font-weight: 700; line-height: 1.8; color: var(--night-text); }
.app-map-tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--yellow); }
.app-map-svg { display: block; width: 100%; max-width: 400px; height: auto; margin: 6px auto 0; overflow: visible; }
/* 図の中の文字は図と一緒に拡大・縮小する（PC で約17px、幅 390 のスマホで約14px、360 で約13px） */
.app-map-svg text { font-family: var(--font); fill: var(--night-text); font-size: 14px; font-weight: 700; text-anchor: middle; }
.app-map-svg .am-label--start { text-anchor: start; }
.app-map-svg .am-sub { font-size: 12.5px; font-weight: 400; fill: var(--night-muted); }
.app-map-svg .am-house path { fill: none; stroke: #a59d90; stroke-width: 1.6; stroke-linecap: round; }   /* カードの地 #272522 との差 5.7（線の絵の目安 3 以上）。文字は 7.3〜13.6 */
.app-map-svg .am-house path:first-child { stroke-width: 2.6; }
.app-map-svg .am-spokes path { fill: none; stroke: var(--yellow); stroke-width: 1.6; stroke-dasharray: .5 4.5; stroke-linecap: round; }
.app-map-svg .am-links path { fill: none; stroke: var(--yellow); stroke-width: 1.5; stroke-dasharray: 5 4; opacity: .9; }
.app-map-svg .am-hub { fill: var(--yellow); }
.app-map-svg .am-icon { fill: none; stroke: var(--night-text); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.app-map-svg .am-badge circle { fill: var(--yellow); }
.app-map-svg .am-badge text { font: 700 12.5px Arial, var(--font); fill: var(--night); }
.app-map-cap { min-width: 0; }
.app-map-lead { font-size: 15px; font-weight: 700; line-height: 1.7; color: var(--night-text); word-break: keep-all; overflow-wrap: anywhere; text-wrap: balance; }
.app-map-uses { display: grid; gap: 0; margin-top: 14px; }
.app-map-uses li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 0 12px; align-items: start; padding: 12px 0; border-top: 1px solid rgba(255, 255, 255, .12); }
.app-map-uses li:last-child { padding-bottom: 0; }
.am-num { display: grid; place-items: center; width: 24px; height: 24px; margin-top: 1px; border-radius: 50%; background: var(--yellow); color: var(--night); font: 700 13px/1 Arial, var(--font); }
.app-map-uses b { display: block; font-size: 15px; line-height: 1.6; }
.app-map-uses p { margin-top: 2px; font-size: 13.5px; line-height: 1.8; color: #ddd7cd; }
.app-map-uses small { display: block; margin-top: 4px; font-size: 13px; line-height: 1.7; color: var(--night-muted); }   /* 条件の文は 13px（Codex 1回目の推奨。12px では小さい） */
.app-map-uses p, .app-map-uses small { word-break: keep-all; overflow-wrap: anywhere; text-wrap: balance; line-break: strict; }
@media (max-width: 1099px) { .app-features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 899px) {
  .app-map { grid-template-columns: minmax(0, 1fr); }
  .app-map-svg { max-width: 400px; }
  .app-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }   /* 600〜899px は2列（1列だと 768px で6枚が縦に長かった） */
}
@media (max-width: 599px) {
  .app-map { padding: 16px 14px 18px; } .app-map-svg { margin-top: 10px; } .app-features { grid-template-columns: minmax(0, 1fr); }
  /* スマホは図が縮むので、図の中の文字を少し大きく（390 で約15px・「家に置く」約14px、360 で約14px・13px、320 で約12px・11px。機器名とぶつからないことは確かめた） */
  .app-map-svg text { font-size: 15px; } .app-map-svg .am-sub { font-size: 14px; }
}
/* スマホ：6つの機能は、絵の印を見出しの左に置いて縦の長さを詰める */
@media (max-width: 599px) {
  .app-features { gap: 10px; }
  .app-feature { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 0 12px; align-items: center; padding: 16px 16px 18px; }
  .app-feature svg { width: 24px; height: 24px; }
  .app-feature b { margin-top: 0; }
  .app-feature p { grid-column: 2; }
}

/* ---------- 設計から考える価値（パートナーと考えること） ---------- */
.plan { padding: var(--sec) 0; background: var(--paper); }
.plan-values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: clamp(36px, 4vw, 56px); }
.plan-value { display: flex; flex-direction: column; border-radius: 18px; overflow: hidden; background: var(--off); box-shadow: inset 0 0 0 1px var(--line); }
.plan-value-media { position: relative; aspect-ratio: 3 / 2; background: var(--stone); }
.plan-value-media img { width: 100%; height: 100%; object-fit: cover; }
.plan-value-media picture { display: block; height: 100%; }
.plan .ai-note { margin-top: 4px; }
.plan-value-media .prov { position: absolute; left: 10px; top: 10px; }
.plan-value-body { padding: 18px 20px 22px; }
.plan-value-tag { display: inline-flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 700; }
.plan-value-tag::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 3px rgba(253, 202, 91, .3); }
.plan-value p { margin-top: 8px; font-size: 14px; line-height: 1.85; color: var(--ink-2); word-break: keep-all; overflow-wrap: anywhere; }
.plan-value small { display: block; margin-top: 10px; font-size: 12px; color: var(--muted); }
.plan-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: clamp(40px, 5vw, 64px); counter-reset: step; }
.plan-step { position: relative; padding: 18px 18px 20px; border-radius: 16px; background: var(--off); }
.plan-step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: #fff; font: 700 14px/1 Arial, var(--font); }
.plan-step b { display: block; margin-top: 10px; font-size: 15.5px; line-height: 1.5; }
.plan-step p { margin-top: 4px; font-size: 13.5px; line-height: 1.8; color: var(--ink-2); word-break: keep-all; overflow-wrap: anywhere; }
.plan-steps-title { margin-top: clamp(48px, 6vw, 80px); text-align: center; font-size: clamp(20px, 2vw, 26px); font-weight: 700; word-break: keep-all; overflow-wrap: anywhere; font-feature-settings: "palt"; }
.plan-more { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: clamp(32px, 4vw, 48px); }
.plan-more div { padding: 18px 20px; border-radius: 16px; box-shadow: inset 0 0 0 1px var(--line); }
.plan-more b { font-size: 15px; }
.plan-more p { margin-top: 4px; font-size: 13.5px; line-height: 1.8; color: var(--ink-2); }
@media (max-width: 899px) {
  .plan-values, .plan-more { grid-template-columns: minmax(0, 1fr); }
  .plan-steps { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
/* 幅 320px 前後：見出しの後ろ半分「その時の暮らしに合わせて。」が1行に収まる大きさに（収まらないと「。」だけが落ちる） */
@media (max-width: 359px) { #plan-title { font-size: 22px; } }
/* スマホ：4つの流れは、番号を左に置いた1列の流れにして縦の長さを詰める */
@media (max-width: 479px) {
  .plan-steps { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .plan-step { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 0 14px; align-items: center; padding: 14px 16px 16px; }
  .plan-step b { margin-top: 0; }
  .plan-step p { grid-column: 2; }
}

/* ---------- よくある質問 ---------- */
.faq { padding: calc(var(--sec) * .8) 0; background: var(--off); }
.faq-list { max-width: 860px; margin: clamp(28px, 3vw, 40px) auto 0; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding: 14px 4px; cursor: pointer; list-style: none; font-size: 16px; font-weight: 700; line-height: 1.6; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.faq-item[open] summary svg { transform: rotate(180deg); }
.faq-item p { padding: 0 4px 18px; font-size: 14.5px; line-height: 1.9; color: var(--ink-2); }

/* ---------- 締め ---------- */
.bridge-topics { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 24px auto 0; max-width: 760px; }
.bridge-topics li { padding: 6px 14px; border-radius: 999px; background: rgba(255, 255, 255, .7); box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; font-weight: 700; }
.bridge-more { margin-top: 18px; font-size: 13px; color: var(--muted); }

/* 第8版で足した説明・注記：行頭に「ー」「ょ」などが来ないように（strict）、短い文は「す。」「か？」だけが落ちないように行の長さをそろえる */
.ph-label, .door-line, .room .section-lead, .room-design p, .room-note, .app-feature p, .app-note, .plan-value-body p, .plan-step p, .plan-more p, .plan .note,
.faq-item summary, .faq-item p, .bridge-topics li, .bridge-more { line-break: strict; }
.room-note, .plan-more p, .plan .note, .faq-item summary, .bridge-more { text-wrap: balance; }

@media (prefers-reduced-motion: reduce) {
  .door, .door:hover { transition: none; transform: none; }
}

/* ---------- 第9版（docs/21【見せ方の改善】・docs/22） ---------- */
/* 部屋の写真の小さな機器と、工事中の写真の場所：控えめな目印（細い白い輪＋短い札）。機器は実寸のまま、絵は大きくしない */
.room-photo { position: relative; }
.room-photo > picture { display: block; }
.room-photo img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius-media); background: var(--linen); }
.dev-mark { position: absolute; left: var(--x); top: var(--y); width: 0; height: 0; z-index: 2; pointer-events: none; }
.dev-ring { position: absolute; left: -13px; top: -13px; width: 26px; height: 26px; border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, .95); box-shadow: 0 0 0 1px rgba(27, 27, 26, .22), 0 1px 6px rgba(27, 27, 26, .28); }
.dev-label { position: absolute; left: 19px; top: -12px; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  height: 24px; padding: 0 10px; border-radius: 999px; background: rgba(255, 255, 255, .92); color: var(--ink);
  font-size: 12px; font-weight: 700; line-height: 1; box-shadow: 0 1px 6px rgba(27, 27, 26, .2); }
.dev-label::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--yellow); }
.dev-mark--left .dev-label { left: auto; right: 19px; }
.dev-mark--dot .dev-ring { left: -7px; top: -7px; width: 14px; height: 14px; background: var(--yellow); border: 2px solid #fff; }
.dev-mark--dot .dev-label { left: 13px; }
.dev-mark--dot.dev-mark--left .dev-label { left: auto; right: 13px; }
@media (max-width: 599px) {
  .dev-ring { left: -11px; top: -11px; width: 22px; height: 22px; }
  .dev-label { left: 15px; top: -11px; height: 22px; padding: 0 8px; font-size: 11.5px; }
  .dev-mark--left .dev-label { right: 15px; }
}

/* ホームアプリ：3つの使い方を先に大きく（PC は左の列、スマホは上）、概念図はその横、6つの機能は下に控えめな一覧。言葉は変えていない */
.app-grid--v9 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(24px, 3.6vw, 56px) clamp(28px, 4vw, 64px); }
.app-grid--v9 .app-features { grid-column: 1 / -1; }
.app-grid--v9 .app-map { grid-template-columns: minmax(0, 1fr); }
.app-uses-main { margin-top: 0; }
.app-uses-main li { grid-template-columns: 34px minmax(0, 1fr); gap: 0 16px; padding: 18px 0; }
.app-uses-main li:first-child { border-top: 0; padding-top: 0; }
.app-uses-main .am-num { width: 34px; height: 34px; font-size: 16px; }
.app-uses-main b { font-size: clamp(20px, 1.9vw, 24px); line-height: 1.45; }
.app-uses-main p { margin-top: 6px; font-size: 15.5px; line-height: 1.85; color: var(--night-text); }
.app-grid--v9 .app-feature { padding: 14px 16px 16px; background: rgba(255, 255, 255, .035); }
.app-grid--v9 .app-feature svg { width: 22px; height: 22px; }
.app-grid--v9 .app-feature b { margin-top: 6px; font-size: 14.5px; }
.app-grid--v9 .app-feature p { font-size: 13px; }
@media (max-width: 899px) {
  .app-grid--v9 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 599px) {
  .app-uses-main li { grid-template-columns: 30px minmax(0, 1fr); gap: 0 14px; padding: 16px 0; }
  .app-uses-main .am-num { width: 30px; height: 30px; font-size: 15px; }
  .app-uses-main b { font-size: 19px; }
  .app-uses-main p { font-size: 15px; }
  .app-grid--v9 .app-feature b { margin-top: 0; }
}

/* 第9版：FV の白い文字とロゴの明暗差（写真が白い壁になったため）。文字・演出は変えず、文字の後ろだけを柔らかく落とす（PC）
   浮いた雲や楕円に見えないよう、どちらも画面の縁につながる形にする（Codex 1回目の推奨）
   ・文章（小見出し〜補足）の後ろ：画面の左の縁と下の縁から、文字の右端の少し先まで。上と右だけを柔らかく減らす（左と下は画面の外まで延ばす）
   ・ロゴの後ろ：画面の左上の隅から広がる陰
   どの場面でも同じ（場面の切り替えで濃さが変わらないように）。夜の場面では暗い写真に溶けて見えない */
@media (min-width: 900px) {
  .fv6-copy .wrap { position: relative; }
  .fv6-copy .wrap::before { content: ""; position: absolute; z-index: -1; pointer-events: none;
    font-size: clamp(34px, 3.35vw, 54px);
    left: calc((100% - 100vw) / 2 - 80px); width: calc((100vw - 100%) / 2 + 80px + var(--gutter) + 11.4em);
    top: -1.1em; bottom: -220px; background: rgba(14, 14, 13, .46); filter: blur(60px); }
  .brand-logo::before { content: ""; position: absolute; pointer-events: none;
    left: calc(-1 * max(var(--gutter), (100vw - var(--wrap)) / 2) - 40px); top: -66px; bottom: -120px;
    width: calc(max(var(--gutter), (100vw - var(--wrap)) / 2) + 40px + 100% + 340px);
    background: radial-gradient(100% 100% at 0 0, rgba(14, 14, 13, .52) 0%, rgba(14, 14, 13, .46) 40%, rgba(14, 14, 13, .26) 68%, rgba(14, 14, 13, 0) 100%); }
  /* 右下の場面の札：白い壁の近景（c1d）でも時刻と「場面を選ぶ」が読めるよう、札の地を少しだけ濃く（.5→.6、.42→.54） */
  .fv6-dock { background: rgba(20, 19, 17, .6); }
  .dock-label { background: rgba(14, 14, 13, .54); }
}
/* スマホ：ロゴの後ろに同じ広く薄い暗がり。写真の帯の下端（時刻と「場面を選ぶ」の地）の暗がりを少し上まで延ばす */
@media (max-width: 899px) {
  .brand-logo::before { content: ""; position: absolute; left: -130px; top: -64px; right: -130px; bottom: -64px; pointer-events: none;
    background: radial-gradient(closest-side, rgba(14, 14, 13, .42) 0%, rgba(14, 14, 13, .34) 34%, rgba(14, 14, 13, .14) 68%, rgba(14, 14, 13, 0) 100%); }
  .fv6-veil { background:
    linear-gradient(180deg, rgba(14, 14, 13, .4) 0, rgba(14, 14, 13, .1) 70px, rgba(14, 14, 13, 0) 100px),
    linear-gradient(0deg, #191816 0, rgba(25, 24, 22, .72) 30px, rgba(25, 24, 22, .42) 54px, rgba(25, 24, 22, 0) 112px); }
  .fv6[data-tone="light"] .fv6-veil { background: linear-gradient(0deg, #191816 0, rgba(25, 24, 22, .72) 30px, rgba(25, 24, 22, .42) 54px, rgba(25, 24, 22, 0) 112px); }
}
