/* mametto 公式サイト ビジュアル試作｜第11版（docs/25・docs/26）で足した部品。styles.css・fv6.css・v8.css・v10.css は第10版のまま
   1 体験（.exp）：きっかけ → つながり → 結果 を一段ずつ（全部屋で同じ形。動きは v11.js）
   2 スマホの画面（.iphone）：Apple ホームアプリの再現。中の大きさは画面の幅に比例（container の単位）。アイコンは一般的な線の絵
   3 玄関の3つの機器：番号のボタン（.num-btn）→ カード（.role）、詳細（dialog.dlg）
   4 未来に更新しやすい家（.prep）、外出先のスマホの切り替え（.phone-tabs）、ホームアプリの段
   黄色は「いま見てほしい場所」（輪・いまの段の番号）と主な導線だけ */

/* ====================================================================================================
   1 体験
   ==================================================================================================== */
.exp { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: clamp(28px, 3.4vw, 52px);
  grid-template-areas: "head head" "stage path" "stage panel" "steps steps"; grid-template-rows: auto auto 1fr auto; align-items: start; }
.exp--flip { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-areas: "head head" "path stage" "panel stage" "steps steps"; }
.exp-head { grid-area: head; max-width: 820px; margin-bottom: clamp(20px, 2.4vw, 32px); }
.exp-head .section-lead { margin-top: 12px; }
.exp-path { grid-area: path; }
.exp-stage { grid-area: stage; }
.exp-panel { grid-area: panel; }
.exp-steps { grid-area: steps; }

/* 流れ（常に見える道筋）。PC は縦の一覧、スマホは横に並べる */
.exp-path { display: grid; gap: 0; counter-reset: none; }
.exp-path li { position: relative; display: grid; grid-template-columns: 34px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 14px; align-items: center; padding: 10px 0; }
.exp-path li + li::before { content: ""; position: absolute; left: 16px; top: -9px; width: 2px; height: 18px; border-radius: 1px; background: var(--line-strong); }
.exp-n { grid-row: 1 / span 2; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--paper);
  box-shadow: inset 0 0 0 1.5px var(--line-strong); color: var(--muted); font: 700 15px/1 Arial, var(--font); transition: background-color .3s, color .3s, box-shadow .3s; }
.exp-pk { font-size: 12px; font-weight: 700; letter-spacing: .1em; line-height: 1.4; color: var(--muted); }
.exp-pt { font-size: 16px; font-weight: 700; line-height: 1.5; color: var(--muted); transition: color .3s; word-break: auto-phrase; overflow-wrap: anywhere; line-break: strict; }
.exp-path li.is-done .exp-n { background: var(--ink); color: #fff; box-shadow: none; }
.exp-path li.is-done .exp-pt { color: var(--ink-2); }
.exp-path li.is-now .exp-n { background: var(--yellow); color: var(--ink); box-shadow: 0 0 0 5px rgba(253, 202, 91, .32); }
.exp-path li.is-now .exp-pt { color: var(--ink); }
.exp-path li.is-now .exp-pk { color: var(--ink); }
/* 「あとで確かめる」：自動の動きとは別の、自分でする操作（点線で区切り、番号の代わりにスマホの形） */
.exp-path li.exp-path-check { margin-top: 10px; padding-top: 18px; border-top: 1.5px dashed var(--line-strong); }
.exp-path li.exp-path-check::before { display: none; }
.exp-path-check .exp-n { box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.exp-path-check .exp-n::before { content: ""; width: 10px; height: 16px; border: 1.8px solid currentColor; border-radius: 3px; }
.no-js .exp-path li, .exp:not(.is-ready) .exp-path li { color: inherit; }

/* 画面（いつも 3:2。絵は重ねて、段ごとに見せる物を替える） */
.exp-stage { position: relative; aspect-ratio: 3 / 2; overflow: hidden; border-radius: var(--radius-media); background: #e6e1d8; container-type: inline-size; isolation: isolate; }
.exp-layer { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.exp-layer--43 { object-position: 50% 50%; }
[data-vis] { opacity: 0; visibility: hidden; transition: opacity .5s ease, visibility 0s linear .5s; }
[data-vis].is-on { opacity: 1; visibility: visible; transition: opacity .5s ease, visibility 0s; }
.exp-layer[data-vis] { transition-duration: .7s, 0s; transition-delay: 0s, .7s; }
.exp-layer[data-vis].is-on { transition-delay: 0s, 0s; }

/* 黄色の輪（いま見てほしい所） */
.exp-ring { position: absolute; z-index: 3; left: var(--x); top: var(--y); width: var(--w); height: var(--h); border-radius: 14px; pointer-events: none;
  box-shadow: 0 0 0 3px var(--yellow), 0 0 0 5px rgba(27, 27, 26, .28), 0 0 18px 4px rgba(253, 202, 91, .55); }
.exp-ring--round { border-radius: 50%; }
.exp-ring.is-on { animation: exp-ping 1.3s ease-out 1; }
@keyframes exp-ping { 0% { box-shadow: 0 0 0 3px var(--yellow), 0 0 0 5px rgba(27, 27, 26, .28), 0 0 0 0 rgba(253, 202, 91, .9); }
  100% { box-shadow: 0 0 0 3px var(--yellow), 0 0 0 5px rgba(27, 27, 26, .28), 0 0 18px 4px rgba(253, 202, 91, .55), 0 0 0 26px rgba(253, 202, 91, 0); } }
.exp-dot { position: absolute; z-index: 3; left: var(--x); top: var(--y); width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%;
  box-shadow: 0 0 0 2.5px var(--yellow), 0 0 0 4.5px rgba(27, 27, 26, .25); pointer-events: none; }

/* 細い経路（つながり）。黄色の線を、元の絵の画素の座標で */
.exp-wire { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; overflow: visible; pointer-events: none; filter: drop-shadow(0 1px 1.2px rgba(27, 27, 26, .55)); }
.exp-wire path { fill: none; stroke: var(--yellow); stroke-width: 7; stroke-linecap: round; stroke-dasharray: 1 1; stroke-dashoffset: 1; }
.exp-wire path.is-on { stroke-dashoffset: 0; transition: opacity .3s ease, visibility 0s, stroke-dashoffset 1s ease .1s; }
.exp-wire path:not(.is-on) { transition: opacity .3s ease, visibility 0s linear .3s, stroke-dashoffset 0s linear .3s; }

/* 機器の拡大の小窓 */
.exp-zoom { position: absolute; z-index: 4; left: var(--x); top: var(--y); width: var(--w); margin: 0; pointer-events: none; }
.exp-zoom-img { position: relative; display: block; aspect-ratio: var(--r, 4 / 3); overflow: hidden; border-radius: 14px; background: #ddd;
  box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--yellow), 0 10px 26px rgba(27, 27, 26, .3); }
.exp-zoom-img img { width: 100%; height: 100%; object-fit: cover; }
.exp-zoom figcaption { display: inline-flex; flex-direction: column; margin-top: 12px; padding: 5px 12px 6px; border-radius: 10px; background: rgba(255, 255, 255, .95); box-shadow: 0 2px 10px rgba(27, 27, 26, .2); line-height: 1.35; }
.exp-zoom figcaption b { font-size: 14px; }
/* 札の幅は文字に合わせる（拡大の枠の幅で「スピ／ーカー」と折れないように。折る時は「の」の後の <wbr> だけ） */
.exp-zoom figcaption { width: max-content; max-width: 220px; }
.exp-zoom figcaption b, .exp-zoom figcaption small { word-break: keep-all; overflow-wrap: anywhere; }
.exp-zoom figcaption small { font-size: 11.5px; color: var(--muted); }
.exp-zoom-flag { position: absolute; right: -8px; top: -12px; padding: 3px 11px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 12.5px; font-weight: 700; line-height: 1.6; white-space: nowrap; }
.exp-glow { position: absolute; left: 50%; top: 42%; width: 60%; aspect-ratio: 1; margin: -30% 0 0 -30%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 244, 214, .85), rgba(253, 202, 91, .38) 55%, rgba(253, 202, 91, 0)); mix-blend-mode: screen; }
.exp-zoom.is-on .exp-glow { animation: exp-glow 1.6s ease-in-out 1; }
@keyframes exp-glow { 0% { opacity: 0; } 35% { opacity: 1; } 100% { opacity: .75; } }

/* 声の吹き出し・決めておいた動きのカード・短い札 */
.exp-bubble { position: absolute; z-index: 5; left: var(--x); top: var(--y); max-width: 46%; padding: 8px 14px 9px; border-radius: 16px 16px 16px 4px; background: #fff; color: var(--ink);
  box-shadow: 0 6px 18px rgba(27, 27, 26, .24); font-size: 15px; font-weight: 700; line-height: 1.5; word-break: keep-all; overflow-wrap: anywhere; pointer-events: none; }
.exp-bubble--r { border-radius: 16px 16px 4px 16px; }
.exp-card { position: absolute; z-index: 5; left: var(--x); top: var(--y); max-width: 52%; padding: 10px 16px 12px; border-radius: 14px; background: rgba(255, 255, 255, .96);
  box-shadow: 0 0 0 2px var(--yellow), 0 8px 22px rgba(27, 27, 26, .22); pointer-events: none; }
.exp-card b { display: flex; align-items: center; gap: 7px; font-size: 12px; letter-spacing: .06em; color: var(--muted); line-height: 1.5; }
.exp-card b::before { content: ""; width: 14px; height: 14px; border-radius: 4px; background: var(--yellow); box-shadow: inset 0 0 0 3px #fff, 0 0 0 1px var(--yellow); }
.exp-card span { display: block; margin-top: 2px; font-size: 15.5px; font-weight: 700; line-height: 1.5; color: var(--ink); word-break: keep-all; overflow-wrap: anywhere; }
.exp-tag { position: absolute; z-index: 5; left: var(--x); top: var(--y); transform: translate(-50%, calc(-100% - 12px)); padding: 3px 11px; border-radius: 999px;
  background: rgba(20, 19, 17, .82); color: #fff; font-size: 13px; font-weight: 700; line-height: 1.6; white-space: nowrap; pointer-events: none; }
.exp-tag::after { content: ""; position: absolute; left: 50%; bottom: -5px; width: 8px; height: 8px; margin-left: -4px; transform: rotate(45deg); background: rgba(20, 19, 17, .82); }
.exp-tag--below { transform: translate(-50%, 12px); }
.exp-tag--below::after { bottom: auto; top: -4px; }
.exp-tag--below.exp-tag--start { transform: translate(-14px, 12px); }   /* 画面の左の縁に近い物：札を右へ伸ばし、矢印は札の左に */
.exp-tag--start::after { left: 14px; }
.exp-tag--y { background: var(--yellow); color: var(--ink); }
.exp-tag--y::after { background: var(--yellow); }

/* 画面の上のスマホ（再現） */
.exp-phone { position: absolute; inset: 0; z-index: 6; pointer-events: none; }
.exp-phone::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20, 19, 17, .28), rgba(20, 19, 17, 0) 62%); }
.exp-phone .iphone { position: absolute; left: 6%; top: 5%; width: 44%; }
.exp-phone-k { position: absolute; right: 3%; top: 4%; padding: 3px 12px; border-radius: 999px; background: rgba(255, 255, 255, .92); color: var(--ink-2);
  font-size: 12px; font-weight: 700; line-height: 1.7; box-shadow: 0 1px 6px rgba(27, 27, 26, .18); }
.exp-phone-callout { position: absolute; padding: 4px 12px; border-radius: 10px; background: var(--yellow); color: var(--ink); font-size: 13px; font-weight: 700; line-height: 1.5; white-space: nowrap; box-shadow: 0 2px 8px rgba(27, 27, 26, .2); }
.exp-phone--cam .iphone { left: 6%; top: -19cqw; width: 50%; }
.exp-phone--cam .exp-phone-callout { left: 59%; top: 44%; }
.exp-phone--cam .exp-phone-callout::before { content: ""; position: absolute; right: 100%; top: 50%; width: 9.5cqw; height: 2px; margin-top: -1px; background: var(--yellow); }

/* 知らせ（線の絵。通知の画面は描かない＝根拠となる画面写真がないため） */
.exp-notice { position: absolute; inset: 0; z-index: 6; display: grid; place-content: center; justify-items: center; gap: 12px; background: rgba(20, 19, 17, .5); pointer-events: none; }
/* ドアベルの写真の上では、知らせの絵を左の壁の余白へ（ドアベル本体に重ねると、ドアベルに画面があるように見えるため） */
.exp--dlg .exp-notice { place-content: center start; padding-left: 9%; }
.exp-notice-ph { position: relative; width: 74px; }
.exp-notice-ph > svg:first-child { width: 74px; height: auto; fill: rgba(255, 255, 255, .1); stroke: #fff; stroke-width: 2.4; stroke-linecap: round; }
.exp-notice-bell { position: absolute; left: 50%; top: 46%; width: 34px; height: 34px; margin: -17px 0 0 -17px; fill: var(--yellow); stroke: var(--ink); stroke-width: 1.2; stroke-linejoin: round; }
.exp-notice.is-on .exp-notice-bell { animation: exp-ring-bell .9s ease-in-out 1; transform-origin: 50% 10%; }
@keyframes exp-ring-bell { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(14deg); } 45% { transform: rotate(-12deg); } 70% { transform: rotate(6deg); } }
.exp-notice b { padding: 5px 14px; border-radius: 999px; background: #fff; color: var(--ink); font-size: 15px; line-height: 1.5; }

/* 操作の欄（いまの段の文は高さを取っておき、動いても位置と高さを変えない） */
.exp-panel { display: none; }
.js .exp-panel { display: block; }
.exp-now { display: flex; flex-direction: column; gap: 4px; min-height: calc(1.7em * 3 + 40px); padding: 14px 18px; border-radius: 16px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); }
.exp-now-k { align-self: start; display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 700; letter-spacing: .06em; line-height: 1.6; color: var(--ink); }
.exp-now-k::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 3px rgba(253, 202, 91, .3); }
.exp-now-t { font-size: 16px; font-weight: 700; line-height: 1.7; color: var(--ink); word-break: auto-phrase; overflow-wrap: anywhere; line-break: strict; }
.exp-now-t small { display: block; margin-top: 4px; font-size: 13px; font-weight: 400; line-height: 1.65; color: var(--ink-2); }
.exp-ctrl { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 12px; }
.exp-next { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 20px 0 24px; border: 0; border-radius: 999px; background: var(--ink); color: #fff;
  font-size: 15.5px; font-weight: 700; letter-spacing: .04em; cursor: pointer; transition: background-color .2s, opacity .2s; }
.exp-next svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
@media (hover: hover) { .exp-next:hover { background: #33322f; } .exp-next:hover svg { transform: translateX(3px); } }
.exp-next:disabled { opacity: .62; cursor: progress; }
.exp-next[aria-busy="true"] svg { display: none; }
.exp-next:focus-visible, .exp-sub:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.exp-sub { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px; border: 0; border-radius: 999px; background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--line-strong); color: var(--ink); font-size: 14px; font-weight: 700; cursor: pointer; }
.exp-sub svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (hover: hover) { .exp-sub:hover { box-shadow: inset 0 0 0 1.5px var(--ink); } }
.exp-replay { background: var(--ink); color: #fff; box-shadow: none; }
@media (hover: hover) { .exp-replay:hover { background: #33322f; box-shadow: none; } }
.exp-pause[aria-pressed="true"] { background: var(--yellow); box-shadow: none; }
.exp-ctrl [data-vis] { transition: none; }
.exp-ctrl [data-vis]:not(.is-on) { display: none; }

/* スクリプトが無い時：全段の文を一覧で */
.exp-steps { margin-top: 14px; counter-reset: es; }
.exp-steps li { position: relative; padding: 6px 0 6px 34px; font-size: 14.5px; line-height: 1.8; color: var(--ink-2); }
.exp-steps li::before { counter-increment: es; content: counter(es, decimal); position: absolute; left: 0; top: 8px; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
  background: var(--linen); font: 700 12px/1 Arial, var(--font); }
.exp-steps li:first-child::before { content: "・"; }
.exp-steps small { display: block; font-size: 13px; color: var(--muted); }
.js .exp-steps { display: none; }

/* 体験の下：注と「機器と条件」 */
.exp-after { max-width: 880px; margin-top: clamp(18px, 2vw, 26px); }
.exp-after-note { font-size: 14px; line-height: 1.85; color: var(--ink-2); word-break: auto-phrase; overflow-wrap: anywhere; line-break: strict; text-wrap: balance; }
.exp-after .room-more { margin-top: 10px; }

/* 狭い幅：見出し → 流れ → 画面 → 操作 の順に縦に */
@media (max-width: 899px) {
  .exp, .exp--flip { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "path" "stage" "panel" "steps"; grid-template-rows: none; }
  .exp-head { margin-bottom: 16px; }
  .exp-path { grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: 0 18px; margin-bottom: 12px; }
  .exp-path li { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto auto; justify-items: start; align-content: start; row-gap: 3px; padding: 0; align-items: start; }
  .exp-path li + li::before { left: -14px; top: 9px; width: 10px; height: 10px; border-radius: 0; background: none; border-right: 2px solid var(--line-strong); border-top: 2px solid var(--line-strong); transform: rotate(45deg); }
  .exp-n { grid-row: auto; width: 26px; height: 26px; font-size: 13px; }
  .exp-path li.is-now .exp-n { box-shadow: 0 0 0 4px rgba(253, 202, 91, .32); }
  .exp-pk { font-size: 11px; letter-spacing: .04em; }
  .exp-pt { font-size: 13px; line-height: 1.45; }
  .exp-path li.exp-path-check { grid-column: 1 / -1; grid-template-columns: auto auto minmax(0, 1fr); grid-template-rows: auto; align-items: center; column-gap: 8px; margin-top: 10px; padding-top: 8px; }
  .exp-path-check .exp-pk { white-space: nowrap; }
  .exp-path-check .exp-n::before { width: 8px; height: 13px; }
  .exp-stage { border-radius: 16px; }
  .exp-panel { margin-top: 12px; }
  .exp-now { padding: 12px 14px; min-height: calc(1.65em * 3 + 22px); }
  .exp-now-t { font-size: 15px; line-height: 1.65; }
  .exp-now-t small { font-size: 12.5px; }
  .exp-ctrl { margin-top: 10px; }
  .exp-next { min-height: 50px; padding: 0 18px 0 20px; font-size: 15px; }
  .exp-wire path { stroke-width: 12; }
  .exp-ring { border-radius: 8px; box-shadow: 0 0 0 2.5px var(--yellow), 0 0 0 4px rgba(27, 27, 26, .28), 0 0 12px 3px rgba(253, 202, 91, .55); }
  .exp-dot { width: 14px; height: 14px; margin: -7px 0 0 -7px; box-shadow: 0 0 0 2px var(--yellow), 0 0 0 3.5px rgba(27, 27, 26, .25); }
  .exp-zoom-img { border-radius: 8px; box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--yellow), 0 6px 14px rgba(27, 27, 26, .3); }
  .exp-zoom figcaption { margin-top: 7px; padding: 2px 8px 3px; border-radius: 7px; }
  .exp-zoom figcaption b { font-size: 11.5px; }
  .exp-zoom figcaption small { display: none; }
  .exp-zoom-flag { right: -6px; top: -10px; padding: 1px 8px; font-size: 10.5px; }
  .exp-bubble { padding: 4px 9px 5px; border-radius: 11px 11px 11px 3px; font-size: 12px; }
  .exp-card { max-width: 64%; padding: 5px 9px 6px; border-radius: 9px; box-shadow: 0 0 0 1.5px var(--yellow), 0 4px 12px rgba(27, 27, 26, .22); }
  .exp-card b { font-size: 10px; gap: 5px; }
  .exp-card b::before { width: 10px; height: 10px; border-radius: 3px; box-shadow: inset 0 0 0 2px #fff, 0 0 0 1px var(--yellow); }
  .exp-card span { font-size: 12px; line-height: 1.4; }
  .exp-tag { transform: translate(-50%, calc(-100% - 8px)); padding: 1px 7px; font-size: 11px; }
  .exp-tag::after { bottom: -4px; width: 6px; height: 6px; margin-left: -3px; }
  .exp-tag--below { transform: translate(-50%, 8px); }
  .exp-tag--below.exp-tag--start { transform: translate(-10px, 8px); }
  .exp-tag--start::after { left: 10px; }
  .exp-phone::before { background: rgba(20, 19, 17, .2); }
  .exp-phone .iphone { left: 9%; top: -33cqw; width: 82%; }
  .exp-phone-k { display: none; }
  .exp-phone--cam .iphone { left: 4%; top: -33cqw; width: 66%; }
  .exp-phone--cam .exp-phone-callout { left: 72%; top: 34%; padding: 2px 8px; font-size: 11px; white-space: normal; word-break: keep-all; width: 24%; }
  .exp-phone--cam .exp-phone-callout::before { width: 4cqw; }
  .exp-notice-ph, .exp-notice-ph > svg:first-child { width: 50px; }
  .exp-notice-bell { width: 24px; height: 24px; margin: -12px 0 0 -12px; }
  .exp-notice b { font-size: 12.5px; padding: 3px 10px; }
}
@media (max-width: 389px) {
  /* 狭い画面：下寄りのカードは画像の下端にそろえ（文が3行になっても切れない）、上の縁に近い札は物の下に */
  .exp-card--b { top: auto; bottom: 3%; }
  .exp-tag--sp-below { transform: translate(-50%, 8px); }
  .exp-tag--sp-below::after { bottom: auto; top: -3px; }
  .exp-zoom--wrap figcaption { max-width: 100px; }   /* キッチン：「キッチンの／スピーカー」と <wbr> の所で2行に（枠の外へ出さない・吹き出しに重ねない） */
}
@media (max-width: 379px) {
  .exp-path { gap: 0 14px; }
  .exp-path li + li::before { left: -11px; width: 8px; height: 8px; }
  .exp-pt { font-size: 12.5px; }
}
@media (prefers-reduced-motion: reduce) {
  [data-vis], [data-vis].is-on, .exp-wire path, .exp-wire path.is-on { transition: none !important; }
  .exp-ring.is-on, .exp-zoom.is-on .exp-glow, .exp-notice.is-on .exp-notice-bell { animation: none; }
  .exp-wire path { stroke-dashoffset: 0; }
}

/* ====================================================================================================
   2 スマホの画面（Apple ホームアプリの再現。docs/26 §4）
   大きさの単位 --u は画面の幅の 1/390（iPhone の画面の 1pt 相当）。外の枠の幅に比例して縮む
   ==================================================================================================== */
.iphone { position: relative; container-type: inline-size; aspect-ratio: 410 / 864; border-radius: 15.2% / 7.2%; background: #0b0b0c;
  box-shadow: inset 0 0 0 1.5px #b9b9be, inset 0 0 0 3px #4a4a4d, 0 22px 46px rgba(14, 14, 13, .3), 0 4px 10px rgba(14, 14, 13, .16); }
.iph-scr { --u: .2441cqw; position: absolute; inset: 1.18% 2.44%; overflow: hidden; border-radius: 12.8% / 6.1%;
  padding-top: calc(108 * var(--u));
  background: linear-gradient(180deg, #5f7fa6 0%, #7d93ad 26%, #a7a7a6 55%, #c3a07a 82%, #c8956a 100%);
  color: #fff; font-family: -apple-system, "SF Pro Text", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", sans-serif;
  font-size: calc(15 * var(--u)); line-height: 1.25; letter-spacing: 0; text-align: left; -webkit-font-smoothing: antialiased; }
.iph-scr svg { display: block; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.iph-status { position: absolute; left: 0; right: 0; top: 0; height: calc(54 * var(--u)); display: flex; align-items: center; justify-content: space-between; padding: calc(6 * var(--u)) calc(30 * var(--u)) 0 calc(46 * var(--u)); }
.iph-time { font-size: calc(17 * var(--u)); font-weight: 600; letter-spacing: .01em; }
.iph-island { position: absolute; left: 50%; top: calc(11 * var(--u)); width: calc(124 * var(--u)); height: calc(36 * var(--u)); margin-left: calc(-62 * var(--u)); border-radius: 999px; background: #000; }
.iph-scr .iph-sys { width: calc(70 * var(--u)); height: auto; fill: #fff; stroke: none; }
.iph-sys .s { fill: none; stroke: #fff; stroke-width: 1.7; }
.iph-tools { position: absolute; right: calc(16 * var(--u)); top: calc(58 * var(--u)); display: flex; align-items: center; gap: calc(14 * var(--u)); height: calc(44 * var(--u)); padding: 0 calc(16 * var(--u));
  border-radius: 999px; background: rgba(255, 255, 255, .2); box-shadow: inset 0 0 0 calc(.8 * var(--u)) rgba(255, 255, 255, .34); }
.iph-tools i { display: block; }
.iph-tools svg { width: calc(22 * var(--u)); height: calc(22 * var(--u)); stroke-width: 2; }
.iph-title { display: block; margin: 0 calc(20 * var(--u)); font-size: calc(34 * var(--u)); font-weight: 700; line-height: 1.2; }
.iph-chips { display: flex; gap: calc(8 * var(--u)); margin-top: calc(12 * var(--u)); padding-left: calc(16 * var(--u)); white-space: nowrap; overflow: hidden; }
.iph-chip { flex: none; display: inline-grid; grid-template-columns: auto auto; grid-template-rows: auto auto; column-gap: calc(8 * var(--u)); align-content: center; align-items: center;
  height: calc(52 * var(--u)); padding: 0 calc(18 * var(--u)) 0 calc(12 * var(--u)); border-radius: 999px; background: rgba(28, 28, 40, .36); box-shadow: inset 0 0 0 calc(.7 * var(--u)) rgba(255, 255, 255, .16); }
.iph-chip .ic { grid-row: 1 / span 2; }
.iph-chip .ic svg { width: calc(24 * var(--u)); height: calc(24 * var(--u)); stroke-width: 2.2; }
.iph-chip b { font-size: calc(14 * var(--u)); font-weight: 700; line-height: 1.2; }
.iph-chip small { font-size: calc(13 * var(--u)); line-height: 1.25; color: rgba(255, 255, 255, .78); }
.iph-chip.is-sel { background: rgba(255, 255, 255, .93); color: #1c1c1e; box-shadow: none; }
.iph-chip.is-sel small { color: #66666b; }
.iph-h { display: flex; align-items: center; gap: calc(4 * var(--u)); margin: calc(22 * var(--u)) calc(20 * var(--u)) calc(10 * var(--u)); font-size: calc(21 * var(--u)); font-weight: 700; line-height: 1.2; }
.iph-h svg { width: calc(17 * var(--u)); height: calc(17 * var(--u)); stroke: rgba(255, 255, 255, .72); stroke-width: 2.8; }
.iph-tiles { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: calc(10 * var(--u)); padding: 0 calc(16 * var(--u)); }
.iph-tile { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto; column-gap: calc(10 * var(--u)); align-content: center; align-items: center;
  height: calc(70 * var(--u)); padding: 0 calc(10 * var(--u)) 0 calc(12 * var(--u)); border-radius: calc(22 * var(--u)); background: rgba(30, 30, 44, .4); box-shadow: inset 0 0 0 calc(.7 * var(--u)) rgba(255, 255, 255, .14); }
.iph-tile .ic { grid-row: 1 / span 2; display: grid; place-items: center; width: calc(42 * var(--u)); height: calc(42 * var(--u)); border-radius: 50%; background: rgba(0, 0, 0, .3); }
.iph-tile .ic svg { width: calc(23 * var(--u)); height: calc(23 * var(--u)); stroke-width: 2.1; }
.iph-tile b { overflow: hidden; font-size: calc(15 * var(--u)); font-weight: 700; line-height: 1.25; white-space: nowrap; text-overflow: ellipsis; }
.iph-tile small { overflow: hidden; font-size: calc(14 * var(--u)); line-height: 1.3; color: rgba(255, 255, 255, .66); white-space: nowrap; text-overflow: ellipsis; }
.iph-tile--lg { grid-row: span 2; height: auto; grid-template-columns: minmax(0, 1fr); align-content: end; padding: calc(14 * var(--u)); }
.iph-tile--lg .ic { position: absolute; grid-area: auto; left: calc(14 * var(--u)); top: calc(14 * var(--u)); }   /* grid-row を外す（付けたままだと、行の範囲が位置の基準になり下に寄る） */
.iph-tile.is-on { background: rgba(250, 247, 242, .95); color: #1c1c1e; box-shadow: none; }
.iph-tile.is-on small { color: #6e6e73; }
.iph-tile.is-on .ic-bulb { background: #fcc800; }
.iph-tile.is-on .ic-bulb svg { stroke: #fff; }
.iph-tile.is-on .ic-tv, .iph-tile.is-on .ic-speaker { background: #8e8e93; }
.iph-tile.is-on .ic-tv svg { stroke: #fff; }
.ic-fan svg { stroke: #64d2ff; }
.ic-bulb svg { stroke: #fcc800; }
.ic-lock svg { stroke: #40dccf; }
.ic-tv svg, .ic-speaker svg { stroke: #e5e5ea; }
.iph-thermo { background: rgba(255, 255, 255, .95); color: #1c1c1e; box-shadow: none; align-content: stretch; grid-template-rows: 1fr auto auto; }
.iph-thermo em { align-self: start; font-style: normal; font-size: calc(40 * var(--u)); font-weight: 600; line-height: 1.1; letter-spacing: -.01em; color: #00b6e3; }
.iph-thermo small { color: #6e6e73; white-space: normal; }
.iph-cams { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: calc(2 * var(--u)); margin: 0 calc(16 * var(--u)); }
.iph-cam { position: relative; aspect-ratio: 4 / 3; overflow: visible; }
.iph-cam img { width: 100%; height: 100%; object-fit: cover; }
.iph-cam:first-child img { border-radius: calc(20 * var(--u)) 0 0 calc(20 * var(--u)); }
.iph-cam:last-child img { border-radius: 0 calc(20 * var(--u)) calc(20 * var(--u)) 0; }
.iph-cam small { position: absolute; left: calc(10 * var(--u)); bottom: calc(8 * var(--u)); font-size: calc(12 * var(--u)); font-weight: 600; text-shadow: 0 0 calc(4 * var(--u)) rgba(0, 0, 0, .6); }
.iph-scenes { display: flex; gap: calc(8 * var(--u)); padding: 0 calc(16 * var(--u)); overflow: hidden; }
.iph-scene { flex: none; display: flex; align-items: center; gap: calc(10 * var(--u)); height: calc(56 * var(--u)); padding: 0 calc(22 * var(--u)) 0 calc(16 * var(--u)); border-radius: calc(20 * var(--u));
  background: rgba(30, 30, 44, .4); box-shadow: inset 0 0 0 calc(.7 * var(--u)) rgba(255, 255, 255, .14); }
.iph-scene svg { width: calc(24 * var(--u)); height: calc(24 * var(--u)); }
.iph-scene b { font-size: calc(15 * var(--u)); font-weight: 700; }
.iph-scene.is-on { background: rgba(250, 247, 242, .95); color: #1c1c1e; box-shadow: none; }
.iph-scene.is-on svg { stroke: #ff9f0a; }
.iph-gauges { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: calc(10 * var(--u)); padding: calc(20 * var(--u)) calc(20 * var(--u)) 0; }
.iph-gauge { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto; column-gap: calc(12 * var(--u)); align-items: center; }
.iph-gauge .g { grid-row: 1 / span 2; display: grid; place-items: center; width: calc(50 * var(--u)); height: calc(50 * var(--u)); border-radius: 50%;
  border: calc(4.5 * var(--u)) solid #fff; border-bottom-color: transparent; }
.iph-gauge .g svg { width: calc(22 * var(--u)); height: calc(22 * var(--u)); stroke-width: 2; }
.iph-gauge b { font-size: calc(17 * var(--u)); font-weight: 700; }
.iph-gauge small { font-size: calc(19 * var(--u)); line-height: 1.2; }
.iph-tabbar { position: absolute; left: calc(18 * var(--u)); right: calc(18 * var(--u)); bottom: calc(22 * var(--u)); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: center;
  height: calc(62 * var(--u)); padding: calc(4 * var(--u)); border-radius: 999px; background: rgba(255, 255, 255, .3); box-shadow: inset 0 0 0 calc(.8 * var(--u)) rgba(255, 255, 255, .36); }
.iph-tabbar > span { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: calc(2 * var(--u)); height: 100%; border-radius: 999px; color: rgba(28, 28, 30, .78); }
.iph-tabbar svg { width: calc(24 * var(--u)); height: calc(24 * var(--u)); stroke-width: 2; }
.iph-tabbar b { font-size: calc(10.5 * var(--u)); font-weight: 600; white-space: nowrap; }
.iph-tabbar .is-sel { color: #ff8a00; background: rgba(28, 28, 30, .12); }
/* mametto の注釈：画面の上の黄色の輪（画面の一部ではない） */
.iph-scr .is-mark { outline: calc(3.5 * var(--u)) solid var(--yellow); outline-offset: calc(4 * var(--u)); box-shadow: 0 0 0 calc(9 * var(--u)) rgba(253, 202, 91, .3); }
.iph-cam.is-mark { z-index: 1; }
/* 黄色の枠に付ける mametto の札（画面の一部ではない） */
.iph-cam-flag { position: absolute; right: calc(-8 * var(--u)); top: calc(-16 * var(--u)); z-index: 2; padding: .1em .65em; border-radius: 999px; background: var(--yellow); color: var(--ink);
  font-size: max(11px, calc(15 * var(--u))); font-style: normal; font-weight: 700; line-height: 1.6; white-space: nowrap; box-shadow: 0 2px 6px rgba(27, 27, 26, .25); }

/* ====================================================================================================
   3 玄関の3つの機器：番号 → カード → 詳細
   ==================================================================================================== */
.devs { margin-top: clamp(48px, 6vw, 84px); padding-top: clamp(36px, 4.4vw, 56px); border-top: 1px solid var(--line); }
.devs-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 3.6vw, 56px); align-items: center; }
.devs-title { font-size: clamp(22px, 2.3vw, 30px); font-weight: 700; line-height: 1.45; word-break: keep-all; overflow-wrap: anywhere; font-feature-settings: "palt"; }
.devs-lead { margin-top: 8px; font-size: 15px; line-height: 1.8; color: var(--ink-2); word-break: keep-all; overflow-wrap: anywhere; }
.devs-text .room-design { margin-top: 22px; }
.num-btn { position: absolute; z-index: 3; left: var(--x); top: var(--y); width: 48px; height: 48px; margin: -24px 0 0 -24px; padding: 0; border: 0; border-radius: 50%; background: transparent; cursor: pointer; }
.num-btn .dev-ring { left: 50%; top: 50%; margin: -13px 0 0 -13px; transition: box-shadow .2s, transform .2s; }
.num-btn .num-badge { left: 36px; top: 4px; transition: transform .2s; }
.num-btn--left .num-badge { left: -10px; }
.num-btn--below .num-badge { left: 13px; top: 40px; }
@media (hover: hover) { .num-btn:hover .num-badge { transform: scale(1.12); } .num-btn:hover .dev-ring { box-shadow: 0 0 0 2px var(--yellow), 0 1px 6px rgba(27, 27, 26, .3); } }
.num-btn:focus-visible { outline: none; }
.num-btn:focus-visible .dev-ring { box-shadow: 0 0 0 3px var(--ink), 0 0 0 6px #fff; }
.num-btn:focus-visible .num-badge { box-shadow: 0 0 0 2px #fff, 0 0 0 5px var(--ink); }
.role { scroll-margin-top: 90px; transition: box-shadow .3s; }
.role-name { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 700; line-height: 1.45; outline: none; }
.role-name-n { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--yellow); font: 700 13px/1 Arial, var(--font); }
.role-body .role-q { margin-top: 6px; font-size: 15px; color: var(--ink-2); }
.role-body .role-what { margin: 4px 0 0; }
.role-rel { margin-top: 8px; padding: 8px 12px; border-radius: 10px; background: var(--off); font-size: 13px; line-height: 1.7; color: var(--ink-2); word-break: auto-phrase; overflow-wrap: anywhere; line-break: strict; }
.role-more { align-self: start; display: inline-flex; align-items: center; gap: 7px; min-height: 44px; margin-top: auto; padding: 0 18px 0 14px; border: 0; border-radius: 999px; background: var(--paper);
  box-shadow: inset 0 0 0 1.5px var(--ink); color: var(--ink); font-size: 14px; font-weight: 700; cursor: pointer; }
.role-body > .role-more { margin-top: 14px; }
.role-more svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
@media (hover: hover) { .role-more:hover { background: var(--ink); color: #fff; } }
.role-more:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.role.is-target { box-shadow: inset 0 0 0 1px var(--line), 0 0 0 3px var(--yellow); animation: role-flash 1.6s ease-out 1; }
.role.is-target .role-name { color: var(--ink); }
@keyframes role-flash { 0% { background: #fff6dd; } 100% { background: var(--paper); } }
.devs .roles { margin-top: clamp(24px, 3vw, 36px); }
@media (max-width: 899px) {
  .devs-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .devs-text { order: -1; }
}
@media (max-width: 599px) {
  .num-btn .num-badge { left: 33px; top: 6px; }
  .num-btn--left .num-badge { left: -6px; }
  .num-btn--below .num-badge { left: 14px; top: 38px; }
  .role-name { font-size: 16px; gap: 8px; }
  .role-name-n { width: 22px; height: 22px; font-size: 12px; }
  .role-body .role-q { font-size: 14px; margin-top: 2px; }
  .role-body > .role-more { margin-top: 10px; min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) { .role.is-target { animation: none; } }

/* ---------- 詳細（dialog） ---------- */
html.dlg-open { overflow: hidden; }
.dlg { width: min(700px, calc(100vw - 24px)); max-width: none; max-height: calc(100dvh - 24px); margin: auto; padding: 0; border: 0; border-radius: 22px; background: var(--paper); color: var(--ink);
  box-shadow: 0 30px 80px rgba(14, 14, 13, .35); overflow: auto; overscroll-behavior: contain; }
.dlg::backdrop { background: rgba(20, 19, 17, .58); }
.dlg-box { padding: 0 24px 26px; }
.dlg-bar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 -24px; padding: 12px 14px 10px 24px; background: rgba(255, 255, 255, .96); box-shadow: 0 1px 0 var(--line); }
.dlg-k { display: inline-flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 700; letter-spacing: .06em; color: var(--muted); }
.dlg-num { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--yellow); color: var(--ink); font: 700 13px/1 Arial, var(--font); }
.dlg-close { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px 0 12px; border: 0; border-radius: 999px; background: var(--off); box-shadow: inset 0 0 0 1px var(--line-strong);
  color: var(--ink); font-size: 14px; font-weight: 700; cursor: pointer; }
.dlg-close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.dlg-close:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
@media (hover: hover) { .dlg-close:hover { box-shadow: inset 0 0 0 1.5px var(--ink); } }
.dlg-title { margin-top: 18px; font-size: clamp(22px, 2.4vw, 28px); font-weight: 700; line-height: 1.4; }
.dlg-title--sm { font-size: 18px; }
.dlg-media { margin-top: 14px; }
.dlg-media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 16px; background: var(--linen); }
.dlg-lead { margin-top: 14px; font-size: 16px; font-weight: 700; line-height: 1.75; word-break: keep-all; overflow-wrap: anywhere; }
.dlg-rel { display: grid; gap: 2px; margin-top: 14px; padding: 12px 16px; border-radius: 14px; background: var(--off); box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; line-height: 1.8; color: var(--ink-2);
  word-break: auto-phrase; overflow-wrap: anywhere; line-break: strict; }
.dlg-rel b { font-size: 12.5px; letter-spacing: .06em; color: var(--ink); }
.dlg-list { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.dlg-note { margin-top: 12px; font-size: 12.5px; line-height: 1.75; color: var(--muted); line-break: strict; }
.dlg .exp { margin-top: 16px; }
.exp--dlg, .exp--dlg.exp--flip { grid-template-columns: minmax(0, 1fr); grid-template-areas: "path" "stage" "panel" "steps"; grid-template-rows: none; }
.exp--dlg .exp-path { grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: 0 18px; margin-bottom: 12px; }
.exp--dlg .exp-path li { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto auto; justify-items: start; align-content: start; row-gap: 3px; padding: 0; align-items: start; }
.exp--dlg .exp-path li + li::before { left: -14px; top: 9px; width: 10px; height: 10px; border-radius: 0; background: none; border-right: 2px solid var(--line-strong); border-top: 2px solid var(--line-strong); transform: rotate(45deg); }
.exp--dlg .exp-n { grid-row: auto; width: 28px; height: 28px; font-size: 13.5px; }
.exp--dlg .exp-pt { font-size: 14.5px; }
.exp--dlg .exp-stage { border-radius: 16px; }
.exp--dlg .exp-panel { margin-top: 12px; }
.exp--dlg .exp-now { min-height: calc(1.7em * 2 + 26px); }
.dlg-phone-body { display: grid; place-items: center; margin-top: 16px; padding: 18px 0 6px; border-radius: 18px; background: linear-gradient(180deg, #efebe5, #e3ddd3); }
.dlg-phone-body .iphone { width: min(360px, 78vw); }
@media (max-width: 599px) {
  .dlg { width: calc(100vw - 16px); max-height: calc(100dvh - 16px); border-radius: 18px; }
  .dlg-box { padding: 0 16px 20px; }
  .dlg-bar { margin: 0 -16px; padding: 8px 10px 8px 16px; }
  .dlg-lead { font-size: 15px; }
  .dlg-rel { padding: 10px 12px; font-size: 13.5px; }
  .exp--dlg .exp-pt { font-size: 12.5px; }
  .exp--dlg .exp-n { width: 24px; height: 24px; font-size: 12px; }
  .exp--dlg .exp-notice { padding-left: 5%; }   /* 知らせの札をドアベル本体にかけない（2行にして左の壁の余白へ） */
  .exp--dlg .exp-notice b { max-width: calc(6em + 22px); border-radius: 10px; text-align: center; word-break: keep-all; }
  .dlg-phone-body .iphone { width: min(330px, 80vw); }
}

/* ====================================================================================================
   5 リビング：設計の番号（1〜3）は体験のはじめと最後だけ。番号を押した時だけ、画面の下に説明
   ==================================================================================================== */
.exp { grid-template-areas: "head head" "stage path" "stage panel" "foot foot" "steps steps"; grid-template-rows: auto auto 1fr auto auto; }
.exp--flip { grid-template-areas: "head head" "path stage" "panel stage" "foot foot" "steps steps"; }
.exp .stage-foot { grid-area: foot; display: none; margin-top: 10px; border-radius: 16px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); }
.living[data-point] .exp .stage-foot { display: grid; }
.living[data-scene] .exp .callout b { color: var(--ink); }
.living[data-scene] .exp .callout > span { color: var(--ink-2); }
.living[data-scene] .exp .callout-close { color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line-strong); }
.exp-stage .pin { transition: opacity .3s, visibility 0s; }
/* 設計の番号の札は、体験を見終えた最後の段と、下の［画像で場所を見る］を押した時（.living[data-point]）だけ。
   はじめの段に出すと、右の流れの番号（1〜4）と取り違えやすいため（第31世代） */
.exp[data-step="1"] .pin, .exp[data-step="2"] .pin, .exp[data-step="3"] .pin,
.living:not([data-point]) .exp[data-step="0"] .pin { opacity: 0; visibility: hidden; transition: opacity .2s, visibility 0s linear .2s; }
.exp-design { margin-top: clamp(40px, 5vw, 64px); }
.exp-ai { margin-top: 10px; font-size: 12px; }
.exp--dlg, .exp--dlg.exp--flip { grid-template-areas: "path" "stage" "foot" "panel" "steps"; grid-template-rows: none; }
@media (max-width: 899px) {
  .exp, .exp--flip { grid-template-areas: "head" "path" "stage" "foot" "panel" "steps"; }
  .exp--dlg, .exp--dlg.exp--flip { grid-template-areas: "path" "stage" "foot" "panel" "steps"; }
}

/* 入口のカードの札（どの部屋も動かして見られる） */
.door .door-badge { position: absolute; left: 8px; top: 8px; padding: 2px 9px; border-radius: 999px; background: rgba(255, 255, 255, .94); color: var(--ink);
  font-size: 11px; font-weight: 700; line-height: 1.6; box-shadow: 0 1px 4px rgba(27, 27, 26, .18); }
.door--live .door-badge { background: var(--yellow); box-shadow: none; }

/* ====================================================================================================
   6 外出先：スマホの画面の切り替え（玄関前・部屋の様子・室温）
   ==================================================================================================== */
.self-check { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 20px; font-size: 14px; line-height: 1.7; color: var(--ink-2); word-break: keep-all; overflow-wrap: anywhere; }
.self-check-k { display: inline-flex; align-items: center; gap: 7px; padding: 2px 12px 2px 10px; border-radius: 999px; background: var(--linen); font-size: 13px; font-weight: 700; color: var(--ink); white-space: nowrap; }
.self-check-k::before { content: ""; width: 9px; height: 14px; border: 1.8px solid currentColor; border-radius: 3px; }
.phone-demo { margin-top: clamp(32px, 4vw, 52px); }
.phone-tabs { display: none; flex-wrap: wrap; gap: 8px; }
.js .phone-tabs { display: flex; }
.phone-tab { display: inline-flex; align-items: center; gap: 9px; min-height: 48px; padding: 0 20px 0 10px; border: 0; border-radius: 999px; background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--line-strong); color: var(--ink-2); font-size: 15px; font-weight: 700; cursor: pointer; }
.phone-tab-n { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--off); box-shadow: inset 0 0 0 1px var(--line-strong); font: 700 13px/1 Arial, var(--font); }
.phone-tab[aria-selected="true"] { background: var(--ink); color: #fff; box-shadow: none; }
.phone-tab[aria-selected="true"] .phone-tab-n { background: var(--yellow); color: var(--ink); box-shadow: none; }
@media (hover: hover) { .phone-tab[aria-selected="false"]:hover { box-shadow: inset 0 0 0 1.5px var(--ink); color: var(--ink); } }
.phone-tab:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.phone-panel { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: center; margin-top: 18px; padding: clamp(20px, 3vw, 36px);
  border-radius: 24px; background: linear-gradient(180deg, #efebe5, #e6e0d6); }
.phone-panel + .phone-panel { margin-top: 12px; }
.phone-fig { min-width: 0; }
/* 画面の上から、確かめる所まで（下は薄く消す）。全体は［画面を大きく見る］で */
.phone-crop { position: relative; aspect-ratio: 410 / 520; overflow: hidden; -webkit-mask-image: linear-gradient(180deg, #000 82%, transparent); mask-image: linear-gradient(180deg, #000 82%, transparent); }
.phone-crop .iphone { width: 100%; }
.phone-crop .iphone { box-shadow: inset 0 0 0 1.5px #b9b9be, inset 0 0 0 3px #4a4a4d; }   /* 外の影は切り取りの四角で切れるので付けない */
.phone-side-k { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 700; letter-spacing: .04em; color: var(--ink); }
.phone-side-k::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 3px rgba(253, 202, 91, .32); }
.phone-side-t { margin-top: 6px; font-size: clamp(22px, 2.3vw, 30px); font-weight: 700; line-height: 1.4; }
.phone-side-text { margin-top: 10px; font-size: 16px; line-height: 1.85; color: var(--ink); word-break: keep-all; overflow-wrap: anywhere; }
.phone-side-sub { margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(27, 27, 26, .12); font-size: 13.5px; line-height: 1.8; color: var(--ink-2); word-break: auto-phrase; overflow-wrap: anywhere; line-break: strict; }
.phone-zoomb { margin-top: 16px; }
.phone-note { margin-top: 10px; font-size: 12px; line-height: 1.75; color: var(--muted); line-break: strict; }
@media (max-width: 899px) {
  .js .phone-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .phone-tab { flex-direction: column; justify-content: center; gap: 3px; min-height: 64px; padding: 6px 4px; border-radius: 14px; font-size: 12.5px; line-height: 1.35; text-align: center; word-break: keep-all; overflow-wrap: anywhere; }
  .phone-tab-n { width: 22px; height: 22px; font-size: 11.5px; }
  .phone-panel { grid-template-columns: minmax(0, 1fr); gap: 12px; margin-top: 10px; padding: 16px 14px 18px; border-radius: 18px; }
  .phone-fig { width: min(100%, 320px); margin: 0 auto; }
  .phone-side-t { font-size: 20px; margin-top: 2px; }
  .phone-side-text { font-size: 15px; margin-top: 6px; }
  .phone-side-sub { font-size: 13px; }
  .phone-zoomb { margin-top: 10px; }
}

/* ====================================================================================================
   7 ホームアプリの段：ホームタブの全体（再現）と、番号の注釈
   ==================================================================================================== */
.app-grid--v11 { align-items: start; }
.app-phone { min-width: 0; }
.app-phone-fig { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 24px; align-items: center; margin: 0; }
.app-phone-ph { min-width: 0; }
.app-phone-keys { display: grid; gap: 12px; counter-reset: ak; }
.app-phone-keys li { position: relative; padding-left: 36px; }
.app-phone-keys li::before { counter-increment: ak; content: counter(ak); position: absolute; left: 0; top: 1px; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
  background: var(--yellow); color: var(--night); font: 700 12.5px/1 Arial, var(--font); }
.app-phone-keys b { display: block; font-size: 15.5px; line-height: 1.5; color: var(--night-text); }
.app-phone-keys span { display: block; font-size: 13.5px; line-height: 1.7; color: #cfc8bd; word-break: keep-all; overflow-wrap: anywhere; }
.app-phone-note { margin-top: 14px; font-size: 12px; line-height: 1.75; color: var(--night-muted); line-break: strict; }
.app .exp-sub { background: rgba(255, 255, 255, .08); color: var(--night-text); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3); }
@media (hover: hover) { .app .exp-sub:hover { box-shadow: inset 0 0 0 1.5px #fff; } }
.app .exp-sub:focus-visible { outline-color: #fff; }
.app-phone-zoom { margin-top: 12px; }
.iph-n { display: inline-grid; place-items: center; flex: none; width: calc(24 * var(--u)); height: calc(24 * var(--u)); margin-left: calc(6 * var(--u)); border-radius: 50%;
  background: var(--yellow); color: #1b1b1a; font: 700 calc(13 * var(--u)) / 1 Arial, sans-serif; font-style: normal; box-shadow: 0 0 0 calc(2 * var(--u)) rgba(27, 27, 26, .35); }
.iph-chips .iph-n { align-self: center; margin: 0 calc(-2 * var(--u)) 0 0; }
@media (max-width: 1099px) { .app-phone-fig { grid-template-columns: minmax(0, 260px) minmax(0, 1fr); } }
@media (max-width: 599px) {
  .app-phone-fig { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .app-phone-ph { width: min(100%, 300px); margin: 0 auto; }
}

/* ====================================================================================================
   8 未来に更新しやすい家：［暮らしを見る／そのための準備を見る］
   ==================================================================================================== */
.prep { margin: clamp(32px, 4vw, 52px) auto 0; max-width: 1100px; }
.prep-switch { display: inline-grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 999px; background: #ebe6dd; }
.prep-switch button { min-height: 48px; padding: 0 22px; border: 0; border-radius: 999px; background: transparent; color: var(--ink-2); font-size: 15px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.prep-switch button[aria-pressed="true"] { background: var(--ink); color: #fff; }
@media (hover: hover) { .prep-switch button[aria-pressed="false"]:hover { background: rgba(255, 255, 255, .7); color: var(--ink); } }
.prep-switch button:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.prep-stage { position: relative; margin-top: 14px; aspect-ratio: 3 / 2; overflow: hidden; border-radius: var(--radius-media); background: var(--stone); }
.prep-stage picture { display: block; height: 100%; }
.prep-stage img { width: 100%; height: 100%; object-fit: cover; transition: filter .5s; }
.prep-veil { position: absolute; inset: 0; background: rgba(250, 248, 244, .58); opacity: 0; transition: opacity .5s; }
.prep-lines { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .5s; pointer-events: none; }
.prep-lines path { fill: none; stroke-width: 8; stroke-linecap: round; stroke-linejoin: round; }
.prep-lines .pl-power { stroke: #e0a21b; }
.prep-lines .pl-lan { stroke: #2f6fb3; stroke-dasharray: 18 14; }
.prep-tag { position: absolute; left: 2%; top: 3%; padding: 3px 12px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 12.5px; font-weight: 700; line-height: 1.7; opacity: 0; transition: opacity .4s; }
.prep-legend { position: absolute; right: 2%; top: 3%; display: inline-flex; align-items: center; gap: 6px; padding: 3px 12px; border-radius: 999px; background: rgba(255, 255, 255, .94); color: var(--ink-2);
  font-size: 12px; font-weight: 700; line-height: 1.7; opacity: 0; transition: opacity .4s; box-shadow: 0 1px 4px rgba(27, 27, 26, .15); }
.prep-legend i { display: inline-block; width: 18px; height: 0; border-top: 3px solid #e0a21b; }
.prep-legend i.lg-lan { margin-left: 8px; border-top: 3px dashed #2f6fb3; }
.prep[data-view="prep"] .prep-stage img { filter: saturate(.35) contrast(.92); }
.prep[data-view="prep"] .prep-veil, .prep[data-view="prep"] .prep-lines, .prep[data-view="prep"] .prep-tag, .prep[data-view="prep"] .prep-legend { opacity: 1; }
.prep-pt { position: absolute; z-index: 2; left: var(--x); top: var(--y); display: flex; align-items: center; gap: 6px; transform: translate(-14px, -50%); pointer-events: none; }
.prep-pt b { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--yellow); color: var(--ink); font: 700 13.5px/1 Arial, var(--font);
  box-shadow: 0 0 0 2.5px #fff, 0 2px 8px rgba(27, 27, 26, .3); }
.prep-lb { display: grid; padding: 2px 10px; border-radius: 8px; background: rgba(255, 255, 255, .95); font-size: 13px; font-weight: 700; line-height: 1.6; white-space: nowrap; box-shadow: 0 1px 6px rgba(27, 27, 26, .2); }
.prep-lb > span, .prep-cap > span { grid-area: 1 / 1; }
.prep .v-prep { visibility: hidden; }
.prep[data-view="prep"] .v-prep { visibility: visible; }
.prep[data-view="prep"] .v-live { visibility: hidden; }
.prep-pt[style*="--x:90%"] { flex-direction: column; align-items: flex-end; gap: 4px; transform: translate(calc(-100% + 14px), -14px); }   /* 玄関の外の壁：札は番号の下に（③の札と横に並べない） */
.prep-cap { display: grid; margin-top: 10px; font-size: 14px; line-height: 1.75; color: var(--ink-2); text-align: center; word-break: keep-all; overflow-wrap: anywhere; }
.prep-list { display: grid; gap: 8px; max-width: 1100px; margin: clamp(20px, 2.4vw, 28px) auto 0; }
.prep-row { display: grid; grid-template-columns: 34px minmax(0, 1fr) minmax(0, 1fr); gap: 4px 18px; align-items: start; padding: 14px 18px; border-radius: 14px; background: var(--off); box-shadow: inset 0 0 0 1px var(--line); }
.prep-n { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--yellow); font: 700 14px/1 Arial, var(--font); }
.prep-k { font-size: 11.5px; font-weight: 700; letter-spacing: .08em; color: var(--muted); }
.prep-from b, .prep-to b { display: block; margin-top: 2px; font-size: 15.5px; line-height: 1.6; word-break: keep-all; overflow-wrap: anywhere; }
.prep-to { position: relative; padding-left: 26px; }
.prep-to::before { content: ""; position: absolute; left: 0; top: 26px; width: 9px; height: 9px; border-right: 2px solid var(--ink-2); border-top: 2px solid var(--ink-2); transform: rotate(45deg); }
.prep-to small { display: block; margin-top: 6px; font-size: 12.5px; line-height: 1.75; color: var(--ink-2); word-break: auto-phrase; overflow-wrap: anywhere; line-break: strict; }
.prep-two { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; max-width: 1100px; margin: clamp(28px, 3.6vw, 44px) auto 0; }
.prep-box { display: flex; flex-direction: column; border-radius: 18px; overflow: hidden; background: var(--off); box-shadow: inset 0 0 0 1px var(--line); }
.prep-box-media { position: relative; aspect-ratio: 3 / 2; background: var(--stone); }
.prep-box-media img { width: 100%; height: 100%; object-fit: cover; }
.prep-box-media picture { display: block; height: 100%; }
.prep-box-body { padding: 16px 18px 20px; }
.prep-box-tag { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; font-size: 17px; font-weight: 700; line-height: 1.5; }
.prep-box-tag small { font-size: 12.5px; font-weight: 700; color: var(--muted); }
.prep-box-tag::before { content: ""; align-self: center; width: 10px; height: 10px; border-radius: 50%; }
.prep-box--build .prep-box-tag::before { background: #e0a21b; }
.prep-box--live .prep-box-tag::before { background: var(--yellow); box-shadow: 0 0 0 3px rgba(253, 202, 91, .3); }
.prep-box--retro .prep-box-tag::before { background: var(--line-strong); }
.prep-box-body > p:last-child { margin-top: 6px; font-size: 14px; line-height: 1.85; color: var(--ink-2); word-break: auto-phrase; overflow-wrap: anywhere; line-break: strict; }
.prep-note { max-width: 860px; margin: 16px auto 0; text-align: center; font-size: 13px; text-wrap: balance; word-break: auto-phrase; }
@media (max-width: 899px) {
  .prep-two { grid-template-columns: minmax(0, 1fr); }
  .prep-box { display: grid; grid-template-columns: minmax(0, 40fr) minmax(0, 60fr); }
  .prep-box-media { aspect-ratio: auto; min-height: 100%; }
}
@media (max-width: 599px) {
  .prep-switch { display: grid; width: 100%; }
  .prep-switch button { padding: 0 8px; font-size: 13.5px; white-space: normal; line-height: 1.35; min-height: 52px; }
  .prep-stage { border-radius: 16px; }
  .prep-lb { display: none; }
  .prep-pt { transform: translate(-50%, -50%); }
  .prep-pt[style*="--x:90%"] { transform: translate(-50%, -50%); }
  .prep-pt b { width: 22px; height: 22px; font-size: 12px; box-shadow: 0 0 0 2px #fff, 0 1px 5px rgba(27, 27, 26, .3); }
  .prep-lines path { stroke-width: 12; }
  .prep-tag { left: 2%; top: auto; bottom: 3%; padding: 1px 8px; font-size: 10.5px; }
  .prep-legend { right: 2%; top: 3%; padding: 1px 8px; font-size: 10.5px; }
  .prep-legend i { width: 12px; }
  .prep-row { grid-template-columns: 28px minmax(0, 1fr); padding: 12px 14px; gap: 6px 12px; }
  .prep-n { width: 26px; height: 26px; font-size: 12.5px; }
  .prep-to { grid-column: 2; padding-left: 20px; }
  .prep-to::before { top: 24px; width: 7px; height: 7px; }
  .prep-from b, .prep-to b { font-size: 14.5px; }
  .prep-box { grid-template-columns: minmax(0, 1fr); }
  .prep-box-media { aspect-ratio: 3 / 2; }
}
@media (prefers-reduced-motion: reduce) { .prep-stage img, .prep-veil, .prep-lines, .prep-tag, .prep-legend { transition: none; } }

/* 断面の凡例：<wbr> の所だけで折る（「見／られます」と語の途中で折れないように） */
.legend { word-break: keep-all; overflow-wrap: anywhere; }
/* 資料と面談の案内：文節で折る（「お／近く」と語の途中で折れないように。文は第10版のまま） */
.plan-more p { word-break: auto-phrase; }
/* よくある質問の問い：文節で折る（「いまの家／にも」と語の途中で折れないように。文は第10版のまま） */
.faq-item summary { word-break: auto-phrase; }
/* スクリプトが無い時：働かないボタン（［詳細］・［画面を大きく見る］・未来の家の切り替え・［画像で場所を見る］）は出さない。中身はカード・表・文で読める */
html:not(.js) .role-more, html:not(.js) [data-phone-zoom], html:not(.js) .prep-switch, html:not(.js) .point-show { display: none; }
/* 文の折れ方（docs/25【11】）：<wbr> の所で折る・文節で折る */
.design-hint { word-break: keep-all; overflow-wrap: anywhere; }
.phone-note { word-break: auto-phrase; }
