/* mametto 公式サイト ビジュアル試作｜第10版（docs/23・docs/24 §5）で足した部品だけ。styles.css・fv6.css・v8.css は第9版のまま。
   ・マメの監修：FV の直後の低い帯（.sv）と、相談の手前の詳しい紹介（.mame）
   ・玄関：写真の番号の点（.num-mark）、3つの役割のカード（.roles）、出かける時の連携の例（.leave）
   ・外出先：2つの場面（.checks）、段の下のまとめ（.room-foot）と「機器と条件」（.room-more）
   色は白・ライトグレーと mametto の黄色（主な導線・番号・選択の印だけ）。Apple の画面の見た目（タイルの並び・端末の枠・書体）は使わない */

/* ---------- マメの監修：FV の直後の低い帯 ---------- */
.sv { background: var(--paper); box-shadow: 0 1px 0 var(--line); }
.sv-inner { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 10px 18px; padding-top: 16px; padding-bottom: 16px; }
.sv-avatar { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--yellow); }
.sv-avatar img { width: 64%; height: auto; }
.sv-body { min-width: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 18px; }
.sv-title { font-size: 17px; font-weight: 700; line-height: 1.55; letter-spacing: .02em; }
.sv-text { font-size: 13.5px; line-height: 1.75; color: var(--ink-2); }
.sv-title, .sv-text { word-break: keep-all; overflow-wrap: anywhere; line-break: strict; }
/* 「マメのこと」は文の末尾に続けて（スマホで1行分詰める）。押せる高さは 32px */
.sv-more { display: inline-flex; align-items: center; gap: 5px; min-height: 32px; margin-left: 10px; padding: 0 2px; vertical-align: middle; font-size: 13.5px; font-weight: 700; color: var(--ink); white-space: nowrap;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.sv-more svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sv-more:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
/* スマホ：1行目にアバターと見出し、説明の文は下に全幅で（360px で見出しが1行に、文が3行に収まる） */
@media (max-width: 599px) {
  .sv-inner { grid-template-columns: auto minmax(0, 1fr); gap: 6px 12px; padding-top: 14px; padding-bottom: 10px; }
  .sv-avatar { align-self: center; width: 44px; height: 44px; }
  .sv-body { display: contents; }
  .sv-title { grid-column: 2; font-size: 15.5px; letter-spacing: .01em; }
  .sv-text { grid-column: 1 / -1; font-size: 13px; line-height: 1.7; }
  .sv-more { margin-left: 4px; font-size: 13px; }
}

/* ---------- 玄関：写真の番号の点（言葉は下のカードに。点は番号だけ） ---------- */
.num-mark { position: absolute; left: var(--x); top: var(--y); width: 0; height: 0; z-index: 2; pointer-events: none; }
.num-badge { position: absolute; left: 16px; top: -11px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
  background: var(--yellow); color: var(--ink); font: 700 12.5px/1 Arial, var(--font); box-shadow: 0 0 0 2px #fff, 0 1px 6px rgba(27, 27, 26, .3); }
.num-mark--left .num-badge { left: auto; right: 16px; }
.num-mark--below .num-badge { left: -11px; top: 16px; }
@media (max-width: 599px) {
  .num-badge { left: 14px; top: -10px; width: 20px; height: 20px; font-size: 11.5px; }
  .num-mark--left .num-badge { left: auto; right: 14px; }
  .num-mark--below .num-badge { left: -10px; top: 14px; }
}

/* ---------- 玄関：3つの役割（疑問 → 確かめられること → 支える機器） ---------- */
.roles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: clamp(32px, 4vw, 52px); }
.role { display: flex; flex-direction: column; min-width: 0; border-radius: 18px; overflow: hidden; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); }
.role-media { position: relative; margin: 0; aspect-ratio: 16 / 10; background: var(--linen); }
.role-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.role-num { position: absolute; left: 12px; top: 12px; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  background: var(--yellow); color: var(--ink); font: 700 14px/1 Arial, var(--font); box-shadow: 0 0 0 2px #fff; }
/* 「詳細」の札：全景の機器を拡大した写真であることを、虫めがねの印と短い言葉で */
.role-zoom { position: absolute; right: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 5px; padding: 1px 9px 1px 8px; border-radius: 999px;
  background: rgba(255, 255, 255, .92); font-size: 11.5px; font-weight: 700; line-height: 1.75; color: var(--ink-2); box-shadow: 0 1px 4px rgba(27, 27, 26, .16); }
.role-zoom::before { content: ""; width: 7px; height: 7px; border: 1.5px solid currentColor; border-radius: 50%; box-shadow: 3px 3px 0 -2px currentColor; margin-right: 2px; }
.role-body { display: flex; flex-direction: column; flex: 1; padding: 16px 18px 16px; }
.role-q { font-size: 18px; font-weight: 700; line-height: 1.5; color: var(--ink); }
.role-what { margin: 6px 0 14px; font-size: 14px; line-height: 1.85; color: var(--ink-2); }
.role-dev { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 10px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); }
.role-dev-k { font-size: 11.5px; font-weight: 700; letter-spacing: .08em; color: var(--muted); }
.role-dev b { font-size: 15.5px; line-height: 1.6; }
.role-dev small { flex-basis: 100%; font-size: 12.5px; line-height: 1.6; color: var(--muted); }
.roles-note { margin-top: 12px; text-align: center; font-size: 13px; line-height: 1.8; color: var(--muted); }
.role-q, .role-what, .role-dev small, .roles-note { word-break: keep-all; overflow-wrap: anywhere; line-break: strict; }
.role-what, .roles-note { text-wrap: balance; }
/* スマホ：横に並べた小さな正方形の詳細と、言葉（縦に3つ） */
@media (max-width: 599px) {
  .roles { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .role { display: grid; grid-template-columns: 116px minmax(0, 1fr); }
  .role-media { aspect-ratio: auto; min-height: 116px; }
  .role-num { left: 8px; top: 8px; width: 24px; height: 24px; font-size: 12.5px; }
  .role-zoom { right: 6px; bottom: 6px; padding: 0 7px 0 6px; font-size: 10.5px; }
  .role-body { padding: 12px 14px 12px; }
  .role-q { font-size: 16px; }
  .role-what { margin: 4px 0 10px; font-size: 13.5px; line-height: 1.75; }
  .role-dev { padding-top: 8px; }
  .role-dev b { font-size: 14.5px; }
  .roles-note { text-align: left; }
}
@media (min-width: 600px) and (max-width: 899px) {
  .roles { gap: 10px; }
  .role-body { padding: 14px 14px 14px; }
  .role-q { font-size: 16px; }
  .role-what { font-size: 13.5px; line-height: 1.8; }
}

/* ---------- 玄関：出かける時の連携の例（静止の3コマ＋矢印。2コマ目だけ任意で見比べ） ---------- */
.leave { margin-top: clamp(36px, 4.4vw, 60px); padding: clamp(20px, 2.6vw, 32px); border-radius: 20px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); }
.leave-title { font-size: clamp(18px, 1.7vw, 21px); font-weight: 700; line-height: 1.5; }
.leave-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 48px; margin-top: 18px; }
.leave-step { position: relative; min-width: 0; }
.leave-media { position: relative; aspect-ratio: 3 / 2; }
.leave-media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 14px; background: var(--linen); }
/* コマの間の矢印（絵の縦の中ほど） */
.leave-step + .leave-step .leave-media::before { content: ""; position: absolute; left: -33px; top: 50%; width: 18px; height: 18px; margin-top: -9px; border-radius: 50%; background: var(--ink); }
.leave-step + .leave-step .leave-media::after { content: ""; position: absolute; left: -28.5px; top: 50%; width: 5px; height: 5px; margin-top: -3.5px; border-right: 2px solid #fff; border-top: 2px solid #fff; transform: rotate(45deg); }
.leave-k { margin-top: 12px; font-size: 12px; font-weight: 700; letter-spacing: .1em; color: var(--muted); }
.leave-t { margin-top: 2px; font-size: 16px; font-weight: 700; line-height: 1.55; }
.leave-t small { display: block; font-size: 12.5px; font-weight: 400; color: var(--ink-2); }
.leave-note { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13.5px; line-height: 1.85; color: var(--ink-2); }
.leave-t, .leave-note { word-break: keep-all; overflow-wrap: anywhere; line-break: strict; }
/* 2コマ目：消えたあと（ふだん）／つけたまま（押した時）。押すと 0.4 秒で重ねて替える */
.leave-hall .hall-on { opacity: 0; transition: opacity .4s ease; }
.leave-hall[data-state="on"] .hall-on { opacity: 1; }
.hall-chip { position: absolute; left: 8px; top: 8px; padding: 1px 9px; border-radius: 999px; background: rgba(20, 19, 17, .66); color: #fff; font-size: 11.5px; font-weight: 700; line-height: 1.75; }
.hall-chip .c-on, .leave-hall[data-state="on"] .hall-chip .c-off { display: none; }
.leave-hall[data-state="on"] .hall-chip .c-on { display: inline; }
.hall-toggle { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; margin-top: 8px; padding: 0 14px; border: 0; border-radius: 999px; background: var(--off);
  box-shadow: inset 0 0 0 1px var(--line-strong); font: inherit; font-size: 13px; font-weight: 700; color: var(--ink); cursor: pointer; }
.hall-toggle[hidden] { display: none; }
.hall-toggle:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.hall-toggle:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.hall-toggle .t-on, .hall-toggle[aria-pressed="true"] .t-off { display: none; }
.hall-toggle[aria-pressed="true"] .t-on { display: inline; }
/* 3コマ目：mametto 独自の「操作イメージ」（実際の画面ではない） */
.op { display: grid; place-items: center; border-radius: 14px; background: linear-gradient(160deg, #f3f0eb, #e6e1d9); }
.op-tag { position: absolute; left: 8px; top: 8px; padding: 0 9px; border-radius: 999px; border: 1px solid rgba(27, 27, 26, .38); background: rgba(255, 255, 255, .6);
  font-size: 11.5px; font-weight: 700; line-height: 1.75; color: var(--ink-2); }
.op-card { display: flex; align-items: center; gap: 12px; padding: 14px 18px 14px 14px; border-radius: 16px; background: #fff; box-shadow: 0 8px 22px rgba(27, 27, 26, .12), inset 0 0 0 1px var(--line); }
.op-icon { flex: none; width: 34px; height: 34px; padding: 7px; border-radius: 50%; background: var(--yellow); fill: none; stroke: var(--ink); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.op-text { display: flex; flex-direction: column; line-height: 1.45; white-space: nowrap; }
.op-text b { font-size: 14.5px; }
.op-text span { font-size: 13px; color: var(--ink-2); }
@media (max-width: 899px) { .leave-steps { gap: 0 36px; } .leave-step + .leave-step .leave-media::before { left: -27px; } .leave-step + .leave-step .leave-media::after { left: -22.5px; } }
/* スマホ：3コマを縦に。絵は左に小さく、言葉は右。矢印は下向き */
@media (max-width: 599px) {
  .leave { padding: 16px 14px 18px; }
  .leave-steps { grid-template-columns: minmax(0, 1fr); gap: 26px; margin-top: 14px; }
  .leave-step { display: grid; grid-template-columns: 148px minmax(0, 1fr); grid-template-rows: auto auto 1fr; column-gap: 14px; align-items: start; }
  .leave-media { grid-row: 1 / span 3; }
  .leave-k { margin-top: 2px; }
  .leave-t { font-size: 15px; }
  .leave-step + .leave-step .leave-media::before { left: 50%; top: -22px; margin: 0 0 0 -9px; }
  .leave-step + .leave-step .leave-media::after { left: 50%; top: -18px; margin: 0 0 0 -3px; transform: rotate(135deg); }
  .hall-toggle { min-height: 40px; padding: 0 12px; font-size: 12.5px; }
  .op-card { gap: 7px; padding: 8px 10px 8px 8px; border-radius: 12px; }
  .op-icon { width: 24px; height: 24px; padding: 4px; }
  .op-text b { font-size: 12.5px; }
  .op-text span { font-size: 11.5px; }
  .op-tag, .hall-chip { left: 6px; top: 6px; padding: 0 7px; font-size: 10.5px; }
  .leave-note { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) { .leave-hall .hall-on { transition: none; } }

.entr-foot { max-width: 880px; margin-top: clamp(22px, 2.6vw, 32px); }
.entr-foot .room-ask { margin-top: 0; }

/* ---------- 外出先：2つの場面（映像の例＋疑問 → 確かめられること） ---------- */
.checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: clamp(32px, 4vw, 52px); }
.check { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: center; min-width: 0; border-radius: 18px; overflow: hidden;
  background: var(--off); box-shadow: inset 0 0 0 1px var(--line); }
.check-media { position: relative; align-self: stretch; margin: 0; min-height: 100%; background: #2a2825; }
.check-media img { display: block; width: 100%; height: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.check-tag { position: absolute; left: 8px; top: 8px; display: inline-flex; align-items: center; gap: 6px; padding: 0 9px 0 8px; border-radius: 999px;
  background: rgba(20, 19, 17, .66); color: #fff; font-size: 11.5px; font-weight: 700; line-height: 1.8; }
.check-tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--yellow); }
.check-body { padding: 16px 20px 18px; }
.check-q { font-size: 14.5px; font-weight: 700; line-height: 1.6; color: var(--ink-2); }
.check-title { margin-top: 2px; font-size: 19px; font-weight: 700; line-height: 1.5; }
.check-text { margin-top: 6px; font-size: 14px; line-height: 1.85; color: var(--ink-2); }
.check-q, .check-title, .check-text { word-break: keep-all; overflow-wrap: anywhere; line-break: strict; }
.check-text { text-wrap: balance; }
@media (max-width: 1099px) { .checks { grid-template-columns: minmax(0, 1fr); gap: 12px; } .check { grid-template-columns: minmax(0, 45fr) minmax(0, 55fr); } }
@media (max-width: 599px) {
  .check { grid-template-columns: minmax(0, 1fr); }
  .check-media { min-height: 0; }
  .check-body { padding: 12px 16px 16px; }
  .check-title { font-size: 17px; }
  .check-text { font-size: 13.5px; }
}

/* 外出先の段の下：設計の補足（左）と、問いかけ・注・「機器と条件」（右） */
.room-foot { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px clamp(24px, 4vw, 56px); align-items: start; margin-top: clamp(24px, 3vw, 36px); }
.room-foot .room-design { margin-top: 0; }
.room-foot-end .room-ask { margin-top: 2px; }
.room-more { margin-top: 12px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.room-more summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; cursor: pointer; list-style: none; font-size: 14px; font-weight: 700; }
.room-more summary::-webkit-details-marker { display: none; }
.room-more summary svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.room-more[open] summary svg { transform: rotate(180deg); }
.room-more summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.more-list { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 14px; font-size: 13px; line-height: 1.75; }
.more-list dt { font-weight: 700; color: var(--ink); white-space: nowrap; }
.more-list dd { margin: 0; color: var(--ink-2); word-break: keep-all; overflow-wrap: anywhere; line-break: strict; }
.more-note { margin-top: 10px; padding-bottom: 14px; font-size: 12.5px; line-height: 1.75; color: var(--muted); line-break: strict; }
@media (max-width: 899px) { .room-foot { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 479px) { .more-list { grid-template-columns: minmax(0, 1fr); gap: 0; } .more-list dd { margin-bottom: 8px; } }

/* ---------- マメが監修していること（相談の手前） ---------- */
.mame { padding: calc(var(--sec) * .72) 0; background: var(--paper); }
.mame-inner { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: clamp(24px, 4vw, 64px); align-items: start; max-width: calc(1040px + var(--gutter) * 2); }
.mame-profile { display: flex; flex-direction: column; align-items: center; text-align: center; padding-top: 6px; }
.mame-avatar { display: grid; place-items: center; width: clamp(104px, 10vw, 132px); aspect-ratio: 1; border-radius: 50%; background: var(--yellow); }
.mame-avatar img { width: 64%; height: auto; }
.mame-avatar--photo { width: clamp(132px, 13vw, 176px); aspect-ratio: auto; border-radius: 0; background: none; }
.mame-avatar--photo img { width: 100%; }
.mame-name { margin-top: 12px; font-size: 20px; font-weight: 700; line-height: 1.4; }
.mame-role { margin-top: 2px; font-size: 13px; color: var(--muted); }
.mame .section-title { margin-top: 0; font-size: clamp(24px, 2.6vw, 34px); }
.mame-bio { margin-top: 14px; font-size: 15px; line-height: 1.95; color: var(--ink-2); }
.mame-does { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; margin-top: 22px; counter-reset: md; }
.mame-does li { display: grid; grid-template-columns: 10em minmax(0, 1fr); gap: 4px 16px; align-items: baseline; padding: 14px 18px; border-radius: 14px; background: var(--off); box-shadow: inset 0 0 0 1px var(--line); }
.mame-does b { display: flex; align-items: center; gap: 9px; font-size: 15.5px; line-height: 1.5; }
.mame-does b::before { counter-increment: md; content: counter(md); flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
  background: var(--ink); color: #fff; font: 700 12.5px/1 Arial, var(--font); }
.mame-does p { font-size: 14px; line-height: 1.8; color: var(--ink-2); }
.mame-bridge { margin-top: 20px; font-size: 16.5px; font-weight: 700; line-height: 1.6; }
.mame-does p, .mame-bridge { word-break: keep-all; overflow-wrap: anywhere; line-break: strict; }
.mame-bio { line-break: strict; word-break: auto-phrase; }
.mame-does p { text-wrap: balance; }
.mame-yt { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin-top: 6px; font-size: 14px; font-weight: 700; color: var(--ink);
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.mame-yt svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mame-yt:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
@media (max-width: 899px) {
  .mame-inner { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .mame-profile { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 16px; align-items: center; justify-items: start; text-align: left; padding-top: 0; }
  .mame-avatar { grid-row: 1 / span 2; width: 76px; }
  .mame-avatar--photo { width: 96px; }
  .mame-name { margin-top: 0; align-self: end; }
  .mame-role { align-self: start; }
}
@media (max-width: 599px) {
  .mame-bio { font-size: 14.5px; line-height: 1.9; }
  .mame-does li { grid-template-columns: minmax(0, 1fr); gap: 2px; padding: 14px 14px 16px; }
  .mame-does p { margin-top: 2px; }
  .mame-bridge { font-size: 15.5px; }
}

/* 折れ方（tools/qa/v10-lines.mjs で幅を振って数えた結果）：説明の文は文節で折る（keep-all だと、狭い幅で「、」だけの行や語の途中の折れが出た）。
   word-break: auto-phrase は Chrome の機能。ほかのブラウザでは通常の折り方（行頭禁則は line-break: strict） */
.role-what, .check-text, .mame-does p, .leave-note, .roles-note, .more-note, .more-list dd, #entrance .room-note, #outing .room-note { word-break: auto-phrase; overflow-wrap: anywhere; line-break: strict; }
.more-note, #entrance .room-note, #outing .room-note, .leave-note { text-wrap: balance; }
.mame-does li { grid-template-columns: 11em minmax(0, 1fr); }
.mame-does b { white-space: nowrap; }
@media (max-width: 599px) { .mame-does li { grid-template-columns: minmax(0, 1fr); } .mame-does b { white-space: normal; } }
@media (max-width: 359px) {
  .role { grid-template-columns: 100px minmax(0, 1fr); }
  .role-media { min-height: 100px; }
  .leave-step { grid-template-columns: 120px minmax(0, 1fr); column-gap: 12px; }
  .op-card { padding: 6px 8px 6px 6px; } .op-icon { width: 20px; height: 20px; padding: 3px; } .op-text b { font-size: 11.5px; } .op-text span { font-size: 10.5px; }
}
/* よくある質問の答え（言葉は第9版のまま）：最後の行が「す。」「さい。」だけにならないように、行の長さをそろえる */
.faq-item p { text-wrap: balance; word-break: auto-phrase; }
