/* mametto 公式サイト ビジュアル試作｜第6版案の試作（proto/v6）。第5版（site/styles.css）から FV の部分を外して写したもの。新しい FV と④の段は fv6.css
   もとの見出し：デザイン調整版（第3版）
   大きな写真・読みやすい見出し・十分な余白・整理された操作。色はオフホワイト・チャコール・mamettoの黄色。
   黄色は主な導線・選択状態・画像の中の印だけに使う（黄色の上の文字は濃い色）。影・枠・飾りは控えめに。 */

/* Windows の Yu Gothic は標準の太さが細く見えるので、Medium と Bold を名前を付け直して使う */
@font-face { font-family: "Mametto Gothic"; src: local("Yu Gothic Medium"), local("YuGothic-Medium"); font-weight: 400; }
@font-face { font-family: "Mametto Gothic"; src: local("Yu Gothic Bold"), local("YuGothic-Bold"); font-weight: 700; }

:root {
  --ink: #1b1b1a;            /* チャコール（新ロゴの濃い色 #191919 に合わせた文字の色） */
  --ink-2: #46453f;
  --muted: #66645d;
  --line: #e3ded5;
  --line-strong: #cdc6b9;
  --paper: #ffffff;
  --off: #f8f6f2;            /* オフホワイト（ページの地） */
  --linen: #efe9df;          /* 木や布に寄せた淡い面 */
  --stone: #f2efeb;          /* 断面図の画像の地と同じ色（四辺を測った値。画像の縁もこの色へなじませてある。tools/build_images.py） */
  --night: #1d1b18;          /* 映画の場面の暗い面 */
  --night-text: #f4f1ec;
  --night-muted: #b9b3a8;
  --yellow: #fdca5b;         /* mametto の黄色（新ロゴの丸の色） */
  --yellow-hover: #f8bf42;
  --focus: #1b1b1a;
  --wrap: 1200px;
  --gutter: 24px;
  --radius-media: 24px;
  --sec: clamp(88px, 10vw, 144px);   /* セクションの上下の余白 */
  --font: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Mametto Gothic", "Noto Sans JP", "Yu Gothic", YuGothic, Meiryo, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--off);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: .02em;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; letter-spacing: inherit; }
svg { flex: none; }
.sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.nw { white-space: nowrap; }
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }

/* 見出しは語の途中で折らない（<wbr> の位置か、収まらない時だけ折る） */
.hero-title, .section-title, .scene-title, .design-title, .point-title, .bridge-title, .hero-lead, .section-lead, .design-lead, .bridge-lead, .how-title, .scene-copy > p:last-child, .point-text {
  word-break: keep-all;
  overflow-wrap: anywhere;
  font-feature-settings: "palt";
}

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: 12px; top: -80px; z-index: 50; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; text-decoration: none; }
.skip:focus { top: 12px; }

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 56px; padding: 0 28px; border-radius: 999px;
  font-size: 16px; font-weight: 700; letter-spacing: .04em; text-decoration: none;
  transition: background-color .2s, color .2s, box-shadow .2s;
}
.btn-icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
/* 主な導線：mametto の黄色に濃い文字 */
.btn-primary { background: var(--yellow); color: var(--ink); box-shadow: inset 0 0 0 1px rgba(27, 27, 26, .08); }
.btn-primary:hover { background: var(--yellow-hover); }
.btn-primary:hover .btn-icon { transform: translateY(2px); }
.btn-secondary { background: rgba(255, 255, 255, .9); color: var(--ink); box-shadow: inset 0 0 0 1px rgba(27, 27, 26, .26); }
.btn-secondary:hover { background: #fff; box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-secondary:hover .btn-icon, .bridge .btn-primary:hover .btn-icon { transform: translateX(3px); }
.btn-large { min-height: 64px; padding: 0 36px; font-size: 18px; }

/* ---------- ヘッダー ---------- */
.site-header { position: absolute; inset: 0 0 auto 0; z-index: 10; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 80px; }
.brand { display: inline-flex; align-items: center; min-height: 44px; }
.brand img { width: auto; height: 28px; }
.header-cta {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border-radius: 999px;
  background: rgba(255, 255, 255, .84); color: var(--ink); font-size: 14px; font-weight: 700; text-decoration: none;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.header-cta:hover { background: #fff; box-shadow: inset 0 0 0 1.5px var(--ink); }


/* ---------- 見出しまわり ---------- */
section { scroll-margin-top: 16px; }
.section-head { text-align: center; max-width: 920px; margin: 0 auto; }
.section-head--left { text-align: left; max-width: 900px; margin: 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; letter-spacing: .14em; color: var(--muted); }
.section-title { margin-top: 14px; font-size: clamp(28px, 3.6vw, 52px); line-height: 1.4; font-weight: 600; letter-spacing: 0; }
.section-head--left .section-title { margin-top: 0; }
.section-title:focus { outline: none; }
.section-title:focus-visible { outline: 3px solid var(--focus); }
.section-lead { margin-top: 22px; font-size: clamp(16px, 1.32vw, 19px); color: var(--ink-2); line-height: 1.95; }

/* ---------- B. 家全体の断面 ---------- */
.house { background: var(--stone); padding: var(--sec) 0 calc(var(--sec) * .78); }
.house-figure { margin: clamp(40px, 5vw, 64px) auto 0; max-width: 1200px; }
.house-stage { position: relative; aspect-ratio: 3 / 2; container-type: inline-size; }
.house-picture, .house-picture img { position: absolute; inset: 0; width: 100%; height: 100%; }
.house-picture img { object-fit: contain; }
/* 他室の札：押せる見た目にしない（丸いボタン形・影・矢印を付けない） */
.room-label {
  position: absolute; left: var(--x); top: var(--y); z-index: 1; pointer-events: none;
  display: flex; flex-direction: column; gap: 1px; padding: 7px 11px 8px; border-radius: 6px;
  background: rgba(255, 255, 255, .9); font-size: 12px; line-height: 1.45; color: var(--ink-2); letter-spacing: .03em;
}
.room-label b { font-size: 13px; color: var(--ink); }
.room-label > span { word-break: keep-all; overflow-wrap: anywhere; }
/* 書斎は部屋の幅が狭いので、例の文を読点の位置で2行にする */
.room-label--narrow > span { max-width: 8.6em; }
/* 断面図の幅 1200px 未満では書斎の札（3行）が寝室の札にかかるので、寝室の札（--y:23.6%、2行 約52px）の下より上には上げない */
@media (min-width: 900px) { .room-label--narrow { top: max(var(--y), calc(23.6% + 60px)); } }
.room-label .l-short { display: none; }
.room-label { transition: background-color .25s, color .25s, box-shadow .25s; }
/* スマホの選択肢で選んだ部屋：場所を枠で示し、ほかを少し暗くする。札は濃い色に */
.room-areas { position: absolute; inset: 0; z-index: 1; overflow: hidden; pointer-events: none; }
.room-area { position: absolute; left: var(--x); top: var(--y); width: var(--w); height: var(--h); border-radius: 6px; opacity: 0;
  box-shadow: 0 0 0 2px var(--ink), 0 0 0 2000px rgba(27, 27, 26, .28); transition: opacity .25s; }
.house-stage[data-pick="bedroom"] .room-area[data-area="bedroom"], .house-stage[data-pick="study"] .room-area[data-area="study"],
.house-stage[data-pick="dining"] .room-area[data-area="dining"], .house-stage[data-pick="entrance"] .room-area[data-area="entrance"] { opacity: 1; }
.house-stage[data-pick="bedroom"] .room-label[data-room="bedroom"], .house-stage[data-pick="study"] .room-label[data-room="study"],
.house-stage[data-pick="dining"] .room-label[data-room="dining"], .house-stage[data-pick="entrance"] .room-label[data-room="entrance"] { z-index: 3; background: var(--ink); color: #fff; }
.house-stage[data-pick="bedroom"] .room-label[data-room="bedroom"] b, .house-stage[data-pick="study"] .room-label[data-room="study"] b,
.house-stage[data-pick="dining"] .room-label[data-room="dining"] b, .house-stage[data-pick="entrance"] .room-label[data-room="entrance"] b { color: #fff; }
.house-stage[data-pick="outing"] .room-label--outing { background: #fff; border: 1.5px solid var(--ink); }
.house-stage[data-pick="outing"] .outing-path path { opacity: .9; stroke-width: 2; }
/* 「外出先から」（配置案1の仮置き）：家の外の空に、玄関へ続く点線と一緒に */
/* 仮置きの札：点線の枠と淡い面にして、ほかの札よりさらに「注釈」に寄せる（押せる部品に見せない） */
.room-label--outing { background: rgba(248, 246, 242, .62); border: 1px dashed rgba(27, 27, 26, .34); }
.room-label--outing b { display: inline-flex; align-items: center; gap: 5px; }
.outing-icon { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.outing-path { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.outing-path path { fill: none; stroke: var(--ink); stroke-width: 1.3; stroke-dasharray: 3 4; stroke-linecap: round; opacity: .5; vector-effect: non-scaling-stroke; }
.outing-path circle { fill: var(--ink); opacity: .55; }

/* リビング：選べる部屋。黄色の枠と札（画像の中の印） */
.room-hotspot {
  position: absolute; left: var(--x); top: var(--y); width: var(--w); height: var(--h); z-index: 2;
  display: block; border-radius: 10px; text-decoration: none; color: var(--ink);
}
.room-outline { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.room-outline path { fill: none; vector-effect: non-scaling-stroke; stroke-linejoin: round; transition: stroke-width .25s; }
.room-outline-glow { stroke: rgba(253, 202, 91, .34); stroke-width: 11; }
.room-outline-line { stroke: var(--yellow); stroke-width: 3; }
.room-hotspot:hover .room-outline-line { stroke-width: 4; }
.room-hotspot:hover .room-outline-glow { stroke-width: 16; }
.room-hotspot:focus-visible { outline: 3px solid var(--ink); outline-offset: 8px; }
/* 第4版：リビングは吹き抜けの高い部屋なので、枠を縦に長くし、札は吹き抜けの壁（家具の上の何もない面）に置く。
   札は枠の細い部分（左の線〜書斎の手すり壁の線 85.5%）の真ん中に置き、線にかからない幅で組む */
.room-chip {
  position: absolute; left: 42.75%; top: 42%; transform: translate(-50%, -50%); display: grid; grid-template-columns: auto auto; align-items: center; column-gap: 12px;
  width: max-content; padding: 10px 14px 10px 18px; border-radius: 14px; background: var(--yellow); color: var(--ink); white-space: nowrap;
}
.room-chip-name { font-size: 16px; font-weight: 700; line-height: 1.4; letter-spacing: .05em; }
.room-chip-sub { grid-column: 1; font-size: 12px; line-height: 1.4; color: rgba(27, 27, 26, .78); white-space: normal; max-width: 8.6em; word-break: keep-all; }   /* 「灯りでくつろぐ・／映画の時間に」の2行 */
/* 断面図の幅 1100px 未満：名前だけを「リビングを／体験」の2行に */
@container (max-width: 1099px) {
  .room-chip { display: flex; padding: 8px 10px 8px 14px; column-gap: 6px; border-radius: 12px; }
  .room-chip-sub { display: none; }
  .room-chip-name { font-size: 15px; white-space: normal; max-width: 5.4em; word-break: keep-all; }
}
/* 800px 未満：矢印を外して、文字を小さく */
@container (max-width: 799px) {
  .room-chip { display: block; padding: 6px 9px; border-radius: 10px; text-align: center; white-space: normal; }
  .room-chip-icon { display: none; }
  .room-chip-name { display: block; font-size: 14px; line-height: 1.35; letter-spacing: .02em; }
}
@container (max-width: 599px) {
  .room-chip { padding: 5px 8px; }
  .room-chip-name { font-size: 12px; }
}
/* スマホ（断面図の幅 486px 未満）：枠の細い部分より札が広くなるので、細い部分の幅いっぱいの名札にして枠の線とつなげる */
@container (max-width: 485px) {
  .room-chip { left: 0; width: 85.5%; transform: translateY(-50%); padding: 5px 0; border-radius: 3px; }
  .room-chip-name { font-size: 11.5px; max-width: none; letter-spacing: 0; }
}
.room-chip-icon { grid-column: 2; grid-row: 1 / span 2; width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.room-hotspot:hover .room-chip-icon { transform: translateX(3px); }
.house-caption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; margin-top: 20px; font-size: 13px; line-height: 1.7; color: var(--muted); }
.legend { display: inline-flex; align-items: flex-start; gap: 10px; }
.legend-mark { flex: none; width: 18px; height: 12px; margin-top: 5px; border-radius: 3px; box-shadow: 0 0 0 2.5px var(--yellow); }
.ai-note { font-size: 12px; }
.room-picker { display: none; }
.house-action { display: none; }

/* ---------- C. リビング ---------- */
.living { padding: calc(var(--sec) * .72) 0 var(--sec); background: var(--off); }
.room-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: clamp(36px, 4.4vw, 56px); }
.back-link {
  display: inline-flex; align-items: center; gap: 14px; min-height: 56px; padding: 6px 20px 6px 6px; border-radius: 999px;
  background: var(--paper); text-decoration: none; font-weight: 700; font-size: 15px; box-shadow: inset 0 0 0 1px var(--line);
}
.back-link:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.back-thumb { position: relative; width: 66px; height: 44px; border-radius: 999px; overflow: hidden; background: var(--stone); }
.back-thumb img { width: 100%; height: 100%; object-fit: cover; }
.back-thumb i { position: absolute; left: 8.2%; top: 12%; width: 22.4%; height: 69.8%; border-radius: 2px; box-shadow: 0 0 0 1.5px var(--yellow); }
.back-text { display: inline-flex; align-items: center; gap: 8px; }
.back-icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.room-current { display: inline-flex; align-items: center; gap: 12px; font-size: 14px; color: var(--muted); }
.room-current b { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); font-size: 16px; }
.room-current b::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 3px rgba(253, 202, 91, .32); }
.living.is-arrived .room-current b::before { animation: arrived 1.4s ease-out 1; }
@keyframes arrived { 0% { box-shadow: 0 0 0 0 rgba(253, 202, 91, .9); } 100% { box-shadow: 0 0 0 14px rgba(253, 202, 91, 0); } }

.living-grid {
  display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); column-gap: clamp(32px, 4vw, 56px); margin-top: clamp(32px, 4vw, 48px); align-items: start;
  grid-template-areas: "switch ." "stage scene" "stage how" "design design";
}
.ls-switch { grid-area: switch; }
.ls-stage { grid-area: stage; }
.ls-scene { grid-area: scene; padding-top: 8px; }
.ls-how { grid-area: how; margin-top: 36px; }
.ls-design { grid-area: design; }

/* 過ごし方の切り替え：選んだ方を黄色に */
.scene-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; max-width: 540px; margin: 0 0 16px; padding: 4px; border: 0; border-radius: 999px; background: #ebe6dd; }
.scene-option { position: relative; display: block; cursor: pointer; }
.scene-option input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.scene-option-body {
  display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 0 18px; border-radius: 999px;
  font-size: 17px; font-weight: 700; letter-spacing: .06em; color: var(--ink-2); transition: background-color .25s, color .25s;
}
.scene-icon { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.scene-name, .scene-check { white-space: nowrap; }
.scene-check { display: none; font-size: 12px; font-weight: 700; letter-spacing: .04em; padding: 1px 8px; border-radius: 999px; background: rgba(255, 255, 255, .72); color: var(--ink); }
.scene-option:hover .scene-option-body { background: rgba(255, 255, 255, .62); color: var(--ink); }
.scene-option input:checked + .scene-option-body { background: var(--yellow); color: var(--ink); }
.scene-option input:checked + .scene-option-body .scene-check { display: inline-block; }
.scene-option input:focus-visible + .scene-option-body { outline: 3px solid var(--focus); outline-offset: 3px; }

/* 部屋の画像（2つの状態を重ねる）と、その下の帯。映画の場面では帯ごと暗くなる */
.stage-card { border-radius: var(--radius-media); overflow: hidden; background: var(--paper); transition: background-color .6s ease; }
.living[data-scene="movie"] .stage-card, .living:has(#scene-movie:checked) .stage-card { background: var(--night); }
.stage { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: #2a2119; }
.layer, .layer img { position: absolute; inset: 0; width: 100%; height: 100%; }
.layer img { object-fit: cover; }
.layer-movie { opacity: 0; transition: opacity .6s ease; }
.living[data-scene="movie"] .layer-movie,
.living:has(#scene-movie:checked) .layer-movie { opacity: 1; }
.stage-loading { position: absolute; right: 12px; top: 12px; z-index: 5; padding: 6px 12px; border-radius: 999px; background: rgba(20, 14, 8, .72); color: #fff; font-size: 12px; line-height: 1.5; opacity: 0; transition: opacity .2s; pointer-events: none; }
.living[data-loading] .stage-loading { opacity: 1; }

/* 設計の工夫の印（画像の中の番号）。押した印は黄色 */
.pin {
  position: absolute; left: var(--x); top: var(--y); z-index: 3; width: 44px; height: 44px; margin: -22px 0 0 -22px; padding: 0;
  border: 0; border-radius: 50%; background: transparent; cursor: pointer; display: grid; place-items: center;
}
.pin-num {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255, 255, 255, .96); color: var(--ink); font: 700 15px/1 Arial, var(--font);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .34), 0 2px 8px rgba(0, 0, 0, .22); transition: background-color .2s, transform .2s, box-shadow .2s;
}
.pin:hover .pin-num { transform: scale(1.08); }
.pin[aria-pressed="true"] .pin-num { background: var(--yellow); box-shadow: 0 0 0 4px rgba(253, 202, 91, .45), 0 2px 8px rgba(0, 0, 0, .22); }
.pin:focus-visible { outline: none; }
.pin:focus-visible .pin-num { outline: 3px solid #fff; outline-offset: 3px; box-shadow: 0 0 0 7px var(--focus); }
.spot { position: absolute; left: var(--x); top: var(--y); width: var(--w); height: var(--h); z-index: 2; border-radius: 8px; opacity: 0; pointer-events: none;
  box-shadow: 0 0 0 2.5px var(--yellow), 0 0 0 2000px rgba(20, 14, 8, .4); transition: opacity .3s; }
.living[data-point="1"] .spot[data-spot="1"], .living[data-point="2"] .spot[data-spot="2"], .living[data-point="3"] .spot[data-spot="3"] { opacity: 1; }

/* 画像の下の帯：「変わること」と、番号の説明を同じ場所に重ね、高さは大きい方に合わせる（押しても下が動かない） */
.stage-foot { display: grid; }
.stage-foot > * { grid-area: 1 / 1; }
.changes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); transition: opacity .25s, visibility 0s; }
.changes li { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto; align-content: center; column-gap: 12px; padding: 18px 22px 20px; }
.changes li + li { box-shadow: inset 1px 0 0 var(--line); }
.changes-icon { grid-row: 1 / span 2; width: 24px; height: 24px; margin-top: 3px; fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: stroke .6s; }
.changes-label { font-size: 12px; line-height: 1.5; color: var(--muted); letter-spacing: .08em; transition: color .6s; }
/* 2つの場面の値を同じ場所に重ね、高さは長い方に合わせる（切り替えで帯の高さが変わり、下が動かないように） */
.changes-value { position: relative; display: grid; font-size: 16px; line-height: 1.5; font-weight: 700; word-break: keep-all; overflow-wrap: anywhere; transition: color .6s; }
.changes-value > span { grid-area: 1 / 1; }
.v-relax { animation: value-in .45s ease both; }
.v-movie { visibility: hidden; animation: none; }
.living[data-scene="movie"] .v-relax, .living:has(#scene-movie:checked) .v-relax { visibility: hidden; animation: none; }
.living[data-scene="movie"] .v-movie, .living:has(#scene-movie:checked) .v-movie { visibility: visible; animation: value-in .45s ease both; }
@keyframes value-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.living[data-scene="movie"] .changes li + li, .living:has(#scene-movie:checked) .changes li + li { box-shadow: inset 1px 0 0 rgba(255, 255, 255, .12); }
.living[data-scene="movie"] .changes-icon, .living:has(#scene-movie:checked) .changes-icon { stroke: var(--night-text); }
.living[data-scene="movie"] .changes-label, .living:has(#scene-movie:checked) .changes-label { color: var(--night-muted); }
.living[data-scene="movie"] .changes-value, .living:has(#scene-movie:checked) .changes-value { color: var(--night-text); }

.callouts { display: grid; }
.callout {
  grid-area: 1 / 1; display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 14px; align-content: center; align-items: center;
  padding: 14px 128px 14px 22px; opacity: 0; visibility: hidden; transition: opacity .25s, visibility 0s linear .25s;
}
.callout-num { grid-row: 1 / span 2; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--yellow); color: var(--ink); font: 700 15px/1 Arial, var(--font); }
.callout b { display: block; font-size: 15px; line-height: 1.5; font-weight: 700; }
.callout > span { display: block; font-size: 13px; line-height: 1.6; color: var(--ink-2); }
/* 語の途中や1文字だけで折れないよう、<wbr> と読点の位置でだけ折る */
.callout > b, .callout > span { word-break: keep-all; overflow-wrap: anywhere; }
.living[data-scene="movie"] .callout b, .living:has(#scene-movie:checked) .callout b { color: var(--night-text); }
.living[data-scene="movie"] .callout > span, .living:has(#scene-movie:checked) .callout > span { color: var(--night-muted); }
.living[data-point="1"] .callout[data-callout="1"], .living[data-point="2"] .callout[data-callout="2"], .living[data-point="3"] .callout[data-callout="3"] { opacity: 1; visibility: visible; transition: opacity .25s, visibility 0s; }
.living[data-point] .changes { opacity: 0; visibility: hidden; transition: opacity .2s, visibility 0s linear .2s; }
/* 説明の「閉じる」（番号を押している間だけ見える） */
.callout-close {
  grid-area: 1 / 1; justify-self: end; align-self: center; z-index: 1; display: inline-flex; align-items: center; gap: 4px;
  min-height: 44px; margin-right: 16px; padding: 0 16px 0 12px; border: 0; border-radius: 999px; background: transparent;
  box-shadow: inset 0 0 0 1px var(--line-strong); font-size: 13px; font-weight: 700; color: var(--ink-2); white-space: nowrap; cursor: pointer;
  opacity: 0; visibility: hidden; transition: opacity .25s, visibility 0s linear .25s, color .6s, box-shadow .2s;
}
.callout-close svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.living[data-point] .callout-close { opacity: 1; visibility: visible; transition: opacity .25s, visibility 0s, color .6s, box-shadow .2s; }
@media (hover: hover) { .callout-close:hover { color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); } }
.living[data-scene="movie"] .callout-close, .living:has(#scene-movie:checked) .callout-close { color: var(--night-text); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .34); }

/* 説明 */
/* 2つの説明を同じ場所に重ね、高さは長い方に合わせる（スマホで切り替えた時に、下の画像が上下に動かないように） */
.scene-text { display: grid; }
.scene-text > .scene-copy { grid-area: 1 / 1; }
.scene-copy--relax { animation: value-in .45s ease both; }
.scene-copy--movie { visibility: hidden; animation: none; }
.living[data-scene="movie"] .scene-copy--relax, .living:has(#scene-movie:checked) .scene-copy--relax { visibility: hidden; animation: none; }
.living[data-scene="movie"] .scene-copy--movie, .living:has(#scene-movie:checked) .scene-copy--movie { visibility: visible; animation: value-in .45s ease both; }
.scene-kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; letter-spacing: .12em; color: var(--ink-2); }
.scene-kicker::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); }
.scene-title { margin-top: 14px; font-size: clamp(22px, 2.15vw, 30px); line-height: 1.5; font-weight: 600; }
/* 画像のすぐ下に来る短い説明は、読点・句点と <wbr> の位置で折る（「す。」だけの行が出ないように） */
.scene-copy > p:last-child { margin-top: 14px; color: var(--ink-2); line-height: 1.95; }
.how { padding-top: 24px; border-top: 1px solid var(--line); }
.how-title { font-size: 15px; font-weight: 700; line-height: 1.6; }
.how-list { margin-top: 12px; display: grid; gap: 8px; }
.how-list li { position: relative; padding-left: 18px; font-size: 15px; line-height: 1.6; }
.how-list li::before { content: ""; position: absolute; left: 3px; top: .66em; width: 6px; height: 6px; border-radius: 50%; background: var(--ink); }
.how-list small { display: block; font-size: 12px; color: var(--muted); }
.note { margin-top: 16px; font-size: 12px; line-height: 1.8; color: var(--muted); }
.note + .note { margin-top: 4px; }

/* ---------- D. 設計の工夫 ---------- */
.design { margin-top: clamp(48px, 4.6vw, 64px); }
.design-head { max-width: 780px; }
.design-title { font-size: clamp(26px, 2.9vw, 42px); line-height: 1.42; font-weight: 600; }
.design-lead { margin-top: 16px; font-size: clamp(16px, 1.32vw, 19px); line-height: 1.95; color: var(--ink-2); }
.design-hint { margin-top: 10px; font-size: 14px; color: var(--muted); }
.points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(24px, 3vw, 44px); margin-top: 36px; align-items: start; }
.point { border-top: 1px solid var(--line-strong); transition: border-color .25s; }
.point.is-active { border-top-color: var(--ink); }
.point-heading { margin: 0; font-size: inherit; font-weight: inherit; }
.point-toggle {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; column-gap: 14px;
  width: 100%; min-height: 76px; padding: 18px 0 8px; border: 0; background: none; text-align: left; cursor: pointer; border-radius: 0;
}
/* 見出しの下の短い説明（いつも見える）。「詳しく」で開くのは、その下の詳しい説明 */
.point-summary { padding: 0 0 20px 48px; font-size: 15px; line-height: 1.8; color: var(--ink-2); word-break: keep-all; overflow-wrap: anywhere; font-feature-settings: "palt"; }
/* 番号と「詳しく」は、見出しの1行目にそろえる（見出しが2行になっても上でそろう） */
.point-num { display: grid; place-items: center; width: 34px; height: 34px; margin-top: 20px; border-radius: 50%; background: var(--ink); color: #fff; font: 700 15px/1 Arial, var(--font); transition: background-color .2s, color .2s; }
.point.is-active .point-num { background: var(--yellow); color: var(--ink); }
.point-head { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.point-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; font-size: 12px; line-height: 1.6; color: var(--muted); letter-spacing: .06em; }
.point-tag { font-weight: 700; color: var(--ink-2); }
.point-where { padding-left: 10px; box-shadow: inset 1px 0 0 var(--line-strong); }
.point-title { display: block; font-size: clamp(17px, 1.45vw, 20px); line-height: 1.5; font-weight: 700; color: var(--ink); }
.point-more { display: inline-flex; align-items: center; gap: 4px; margin-top: 27px; font-size: 13px; line-height: 1.5; font-weight: 700; color: var(--ink-2); white-space: nowrap; }
.point-more .m-close { display: none; }
.point-chevron { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s; }
@media (hover: hover) { .point-toggle:hover .point-title { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; } }
.point-toggle:focus-visible { outline-offset: 4px; }
.point.is-open .point-more .m-open { display: none; }
.point.is-open .point-more .m-close { display: inline; }
.point.is-open .point-chevron { transform: rotate(180deg); }
/* 開閉：スクリプトが動く時だけ閉じた状態から始める */
.point-body { display: grid; grid-template-rows: 1fr; }
.js .point-body { grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows .3s ease, visibility 0s linear .3s; }
.js .point.is-open .point-body { grid-template-rows: 1fr; visibility: visible; transition: grid-template-rows .3s ease, visibility 0s; }
.point-body-inner { min-height: 0; overflow: hidden; }
.point-text { padding-left: 48px; font-size: 15px; line-height: 1.9; color: var(--ink-2); }
.point-show {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin: 12px 0 24px 48px; padding: 0 18px 0 14px;
  border: 0; border-radius: 999px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line-strong); font-size: 14px; font-weight: 700; cursor: pointer;
}
.point-show::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 3px rgba(253, 202, 91, .35); }
.point-show:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.design-note { margin-top: 20px; }

/* ---------- 橋渡し ---------- */
.bridge { padding: var(--sec) 0; background: var(--linen); text-align: center; }
.bridge-inner { display: flex; flex-direction: column; align-items: center; }
.bridge-title { font-size: clamp(28px, 3.7vw, 54px); line-height: 1.42; font-weight: 600; }
.bridge-lead { margin-top: 18px; font-size: clamp(16px, 1.4vw, 20px); color: var(--ink-2); }
.bridge .btn { margin-top: 44px; }
.bridge-dest { margin-top: 14px; font-size: 13px; color: var(--muted); }

/* ---------- フッター ---------- */
.site-footer { padding: 48px 0 44px; background: var(--off); border-top: 1px solid var(--line); }
.footer-inner { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px 40px; }
.footer-logo { width: auto; height: 24px; }
.footer-note { font-size: 12px; line-height: 1.8; color: var(--muted); }
.footer-copy { font-size: 12px; color: var(--muted); }

/* ================= 画面幅ごと ================= */

/* タブレット・小さめのPC */
@media (max-width: 1100px) {
  /* 1列の時は「切り替え → 画像 → 短い説明」の順（押した結果がすぐ下の画像で見えるように） */
  .living-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "switch" "stage" "scene" "design" "how"; }
  .scene-switch { max-width: none; }
  .ls-scene { margin: 20px 0 0; padding-top: 0; }
  .ls-scene .scene-kicker { display: none; }   /* 選んだ名前は、すぐ上の切り替えに出ている */
  .ls-scene .scene-title { margin-top: 0; }
  .design { margin-top: 56px; }
  .ls-how { max-width: 640px; margin-top: 40px; }
}

@media (max-width: 900px) {
  .points { grid-template-columns: minmax(0, 1fr); margin-top: 28px; }
  .point:last-child { border-bottom: 1px solid var(--line-strong); }
}

/* スマホ・縦長のタブレット：メインビジュアルは縦長の写真に、文字は下へ */
@media (max-width: 899px) {
  :root { --gutter: 20px; }
  .header-inner { height: 66px; }
  .brand img { height: 26px; }
  .header-cta { display: none; }
  /* 画像が小さいと番号の丸が強調枠にかかるので、スマホ用の位置（--x-sp・--y-sp）へ離す */
  .pin { left: var(--x-sp, var(--x)); top: var(--y-sp, var(--y)); }
  /* 断面図の札は部屋名だけにして、暮らしの例は図の下の一覧へ */
  .room-label { padding: 4px 9px; }
  .room-label > span { display: none; }
  .room-label .l-long { display: none; }
  .room-label .l-short { display: inline; }
  /* 部屋の例を、図の中の場所を示す選択肢に（選ぶと図の中に枠。もう一度押すと消える） */
  .room-picker { display: block; max-width: 560px; margin: 28px auto 0; }
  .room-pick-hint { margin-bottom: 8px; font-size: 13px; line-height: 1.7; color: var(--muted); }
  .room-list { display: grid; font-size: 14px; line-height: 1.6; color: var(--ink-2); }
  .room-list li { border-top: 1px solid rgba(27, 27, 26, .12); }
  .room-list li:last-child { border-bottom: 1px solid rgba(27, 27, 26, .12); }
  .room-pick {
    display: grid; grid-template-columns: 7.2em minmax(0, 1fr) 18px; align-items: center; gap: 10px; width: 100%; min-height: 48px; padding: 10px 6px 10px 2px;
    border: 0; border-radius: 0; background: none; text-align: left; cursor: pointer; font-size: 14px; line-height: 1.6; color: var(--ink-2); word-break: keep-all; overflow-wrap: anywhere;
  }
  .room-pick b { font-size: 12px; line-height: 1.6; color: var(--muted); }
  .room-pick::after { content: ""; width: 16px; height: 16px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--line-strong); }
  .room-pick[aria-pressed="true"] { background: rgba(255, 255, 255, .7); color: var(--ink); }
  .room-pick[aria-pressed="true"] b { color: var(--ink); }
  .room-pick[aria-pressed="true"]::after { background: var(--yellow); box-shadow: inset 0 0 0 1.5px var(--ink); }
  .room-pick:focus-visible { outline-offset: -3px; }
  /* 断面図の下に、大きな「リビングを体験」ボタン（主な導線なので黄色） */
  .house-action { display: block; max-width: 560px; margin: 22px auto 0; }
  .btn-room { width: 100%; min-height: 68px; justify-content: space-between; padding: 0 22px 0 24px; border-radius: 18px; background: var(--yellow); color: var(--ink); text-align: left; }
  .btn-room:hover { background: var(--yellow-hover); }
  .btn-room-text { display: flex; flex-direction: column; line-height: 1.4; }
  .btn-room-text b { font-size: 17px; }
  .btn-room-text small { font-size: 12px; font-weight: 400; color: rgba(27, 27, 26, .78); }
}

@media (max-width: 760px) {
  :root { --gutter: 16px; --radius-media: 18px; --sec: 72px; }
  body { font-size: 15px; }
  .house { padding-bottom: 64px; }
  .living { padding-top: 52px; }
  .section-title { margin-top: 10px; font-size: clamp(25px, 7vw, 32px); }
  .section-lead { margin-top: 16px; font-size: 15px; }
  .house-figure { margin-top: 28px; }
  .room-label { padding: 2px 6px; font-size: 11px; border-radius: 4px; }
  .room-label b { font-size: 11px; }
  .room-label--outing b { gap: 3px; }
  .outing-icon { width: 11px; height: 11px; }
  .room-hotspot { border-radius: 6px; }
  .room-outline-glow { stroke-width: 8; }
  .room-outline-line { stroke-width: 2.5; }
  .house-caption { flex-direction: column; font-size: 12px; margin-top: 14px; }

  .room-bar { margin-bottom: 28px; }
  .back-link { font-size: 14px; min-height: 52px; }
  .back-thumb { width: 60px; height: 40px; }
  .room-current-label { display: none; }
  .living-grid { margin-top: 28px; }
  .scene-switch { gap: 3px; padding: 4px; }
  .scene-option-body { min-height: 54px; padding: 0 10px; font-size: 15px; gap: 6px; }
  .scene-icon { width: 20px; height: 20px; }
  .scene-check { font-size: 10px; padding: 1px 6px; }
  .changes li { grid-template-columns: minmax(0, 1fr); padding: 12px 12px 14px; }
  .changes-icon { grid-row: auto; width: 20px; height: 20px; margin: 0 0 4px; }
  .changes-value { font-size: 13px; }
  .callout { column-gap: 12px; padding: 12px 100px 12px 14px; }
  .callout-close { margin-right: 10px; padding: 0 12px 0 9px; font-size: 12px; }
  .callout-num { width: 30px; height: 30px; font-size: 14px; }
  .callout b { font-size: 14px; }
  .callout > span { font-size: 12px; }
  .pin-num { width: 30px; height: 30px; font-size: 14px; }
  .ls-scene { margin: 18px 0 0; }
  .ls-how { margin-top: 36px; }
  .scene-title { font-size: 21px; }
  .design { margin-top: 48px; }
  .design-title { font-size: clamp(23px, 6.2vw, 28px); }
  .design-lead { font-size: 15px; }
  .point-toggle { min-height: 68px; padding: 14px 0; column-gap: 12px; }
  .point-num { width: 30px; height: 30px; font-size: 14px; }
  .point-more { margin-top: 25px; }
  .point-title { font-size: 17px; }
  .point-text, .point-show { margin-left: 0; }
  .point-text { padding-left: 42px; font-size: 15px; }
  .point-summary { padding: 0 0 16px 42px; font-size: 14px; }
  .point-show { margin: 10px 0 20px 42px; }
  .bridge-dest { font-size: 12px; }
  .btn-large { width: 100%; padding: 0 22px; font-size: 17px; }
  .footer-inner { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 420px) {
  .scene-icon { display: none; }
  .scene-option-body { padding: 0 8px; gap: 6px; }
  .point-more .m-open, .point.is-open .point-more .m-close { font-size: 12px; }
  /* 説明の見出しが1行に収まるよう、「閉じる」は × だけの丸いボタンに（読み上げの名前は「場所の説明を閉じる」のまま） */
  .callout { padding-right: 62px; }
  .callout-close { width: 44px; padding: 0; justify-content: center; }
  .callout-close span { display: none; }
}

@media (max-width: 380px) {
  .room-bar { gap: 8px; }
  .back-link { gap: 10px; padding-right: 14px; }
  .back-thumb { width: 52px; height: 36px; }
  .room-current b { font-size: 15px; }
  .scene-option-body { font-size: 14px; }
  .point-text { padding-left: 0; }
  .point-summary { padding-left: 0; }
  .point-show { margin-left: 0; }
}

/* 動きを減らす設定 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
}
