/* トップの6段（public/js/top-steps.js）。左に細い柱（番号・名前・意味・参考）、右に見本。色は帯の紺（--band）と印の色（--gold）だけ。
   狭い画面（760px 以下）は段を畳み、柱を押すと開く。 */
.tf-kicker { margin: 0 0 8px; font-weight: 800; font-size: 1rem; color: var(--text); }

/* 見出し（句が長くなったので、広い画面は右の顔を5人×2段にして、見出しを1行に収める。狭い画面は句の切れ目で2行） */
.tm-big { font-size: clamp(1.5rem, calc(3.65vw - 11.6px), 2.375rem); }
@media (min-width: 1100px) { .tm-head .tm-faces { grid-template-columns: repeat(5, 46px); } .tm-head .tm-faces img:nth-child(n + 11) { display: none; } }
@media (max-width: 1099px) { .tm-big { font-size: clamp(1.25rem, 3.3vw, 2.375rem); } }
@media (max-width: 700px) { .tm-big { font-size: min(1.3125rem, 5.3vw); } }

/* 送るボタン：字が短くなっても、押したあとの「探しています…」が1行に収まる幅を保つ（狭い画面は2行で出す、いままでどおり） */
@media (min-width: 701px) { .tm-ask .pch-go { min-width: 156px; } }

/* 最初の画面の6つの手順（絵・番号・名前・一行）。地は絵の白のまま（新しい色は作らない）。広い画面は横一列、
   6つが並ぶと名前と一行が収まらない幅では、2列×3段（絵は顔が分かる大きさのまま。ページは横にはみ出さない） */
.tf-art { margin: 24px 0 0; }
.tf-art > h2 { margin: 0 0 12px; font-weight: 800; font-size: min(1.375rem, 2.4vw); line-height: 1.4; color: var(--text); }
.tf-art > h2 > span { display: inline-block; }
.tf-art-list { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.tf-art-go { display: flex; flex-direction: column; gap: 6px; width: 100%; height: 100%; padding: 0 0 4px; border: 0; background: none; font: inherit; color: var(--text); text-align: left; cursor: pointer; }
.tf-art-go img { display: block; width: 100%; height: auto; aspect-ratio: 340 / 410; }
.tf-art-go:hover .tf-art-n b, .tf-art-go:focus-visible .tf-art-n b { text-decoration: underline; text-underline-offset: 3px; }
.tf-art-go:hover img, .tf-art-go:focus-visible img { outline: 2px solid var(--text); outline-offset: -2px; }
.tf-art-n { display: flex; align-items: baseline; gap: 6px; margin-top: 4px; font-weight: 800; font-size: 1rem; line-height: 1.4; white-space: nowrap; }
.tf-art-n > * { flex: none; }
.tf-art-n i { font-style: normal; font-size: 1.375rem; line-height: 1; color: var(--text-mark); }
.tf-art-n em { font-style: normal; font-weight: 800; color: var(--text); }
.tf-art-line { font-size: var(--fs-control); line-height: 1.6; color: var(--text-muted); }
/* 名前が1行に収まらない幅：2列×3段の格子（fitArt が測って .is-grid を付ける）。名前は1行、一行の説明は3行までに収まる字の大きさ */
.tf-art-list.is-tight .tf-art-n { font-size: var(--fs-note); }
.tf-art-list.is-tight .tf-art-n i { font-size: 1.125rem; }
.tf-art-list.is-tight .tf-art-line { font-size: var(--fs-note); }
.tf-art-list.is-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; }
.tf-art-list.is-grid .tf-art-n { font-size: var(--fs-note); }
.tf-art-list.is-grid .tf-art-n em { display: none; }
.tf-art-list.is-grid .tf-art-n i { font-size: 1.125rem; }
.tf-art-list.is-grid .tf-art-line { font-size: var(--fs-note); line-height: 1.5; }
/* 狭い1列では、語ごとに折らない決め（.tf w-d）が行の余りを増やして4行になる。文節（auto-phrase）で折る */
.tf-art-list.is-grid .tf-art-line { word-break: auto-phrase; }
.tf .tf-art-list.is-grid w-d { white-space: normal; }
.tf-art-list.is-grid .tf-art-line.is-char { word-break: normal; overflow-wrap: anywhere; }
/* 320px：1列が約138pxで、13px だと「増やす案をつくります。」が入らず説明が4行になる。12px（字の下限）にして3行以内 */
@media (max-width: 339px) { .tf-art-list.is-grid .tf-art-line { font-size: var(--fs-tag); } .tf-art-list.is-grid .tf-art-n { gap: 4px; font-size: var(--fs-tag); } }

.tf { margin: 40px 0 0; }
.tf > h2 { margin: 0 0 6px; font-weight: 800; font-size: 1.5rem; line-height: 1.4; color: var(--text); }
/* 帯の下の「詳しく知りたい方へ」：線と間で、ここから下が詳しい説明だと分かるように（色は足さない） */
.tf > h2.tf-detail { padding-top: 32px; border-top: 1px solid var(--ink-4); font-size: min(1.375rem, 2.4vw); }
@media (max-width: 760px) { .tf-art > h2, .tf > h2.tf-detail { font-size: 4.2vw; } }
.tf-sample { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 0 0 14px; font-size: var(--fs-body); color: var(--text); }
.tf-sample b { padding: 0 8px; background: var(--text); color: var(--paper-1); font-size: var(--fs-note); line-height: 1.5rem; }
.tf-sample span { font-weight: 800; }
.tf-sample small { font-size: var(--fs-note); color: var(--text-muted); }

.tf-rows { border-top: 3px solid var(--text); }
.tf-row { display: grid; grid-template-columns: 14rem minmax(0, 1fr); border-bottom: 1px solid var(--ink-4); scroll-margin-top: 12px; }
.tf-row:last-child { border-bottom: 3px solid var(--text); }

/* 柱 */
.tf-rail { position: relative; padding: 28px 16px 28px 20px; background: var(--band); color: var(--paper-1); }
.tf-row + .tf-row .tf-rail { border-top: 1px solid rgba(255, 255, 255, 0.28); }
.tf-rail::after { content: ''; position: absolute; left: 20px; bottom: -10px; z-index: 1; border: 10px solid transparent; border-bottom: 0; border-top-color: var(--gold); }
.tf-row:has(+ .is-out) .tf-rail::after { border-top-color: var(--band); }
.tf-row:last-child .tf-rail::after { display: none; }
.tf-rail i { display: block; font-style: normal; font-weight: 800; font-size: 2.75rem; line-height: 1; color: var(--gold); }
.tf-rail b { display: block; margin-top: 10px; font-weight: 800; font-size: var(--fs-lead); line-height: 1.4; white-space: nowrap; }
.tf-rail small { display: block; margin-top: 4px; font-size: var(--fs-tag); color: #c9cde6; white-space: nowrap; }
.tf-mean { display: block; margin-top: 14px; font-size: var(--fs-note); line-height: 1.6; word-break: auto-phrase; }
.tf-ref { display: block; margin-top: 10px; padding-top: 8px; border-top: 1px solid rgba(255, 255, 255, 0.28); font-size: var(--fs-tag); line-height: 1.6; color: #c9cde6; word-break: auto-phrase; }
.tf-ref em { display: block; font-style: normal; font-weight: 800; color: var(--paper-1); }
.tf-fold { display: none; padding: 0; border: 0; background: none; color: inherit; cursor: pointer; }
.tf-row.is-out .tf-rail { background: var(--gold); color: var(--text); }
.tf-row.is-out .tf-rail i, .tf-row.is-out .tf-rail small, .tf-row.is-out .tf-ref, .tf-row.is-out .tf-ref em { color: var(--text); }
.tf-row.is-out .tf-ref { border-top-color: rgba(12, 16, 48, 0.35); }

/* 右の見本 */
.tf-body { min-width: 0; padding: 28px 0 32px 32px; color: var(--text); }
.tf-body img { display: block; }
.tf-h { margin: 0 0 8px; font-size: var(--fs-note); font-weight: 800; color: var(--text); }
.tf-h small { margin-left: 8px; font-weight: 400; font-size: var(--fs-tag); color: var(--text-muted); }
.tf-note { margin: 0 0 16px; font-size: 1rem; color: var(--text-muted); }

/* 1 AIペルソナを選ぶ */
.tf-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 24px; border-top: 3px solid var(--text); border-bottom: 1px solid var(--ink-4); }
.tf-stats div { padding: 14px 0 12px 14px; border-left: 1px solid var(--ink-4); }
.tf-stats div:first-child { padding-left: 0; border-left: 0; }
.tf-stats b { display: block; font-weight: 800; font-size: 2.25rem; line-height: 1.1; }
.tf-stats b small { margin-left: 2px; font-size: var(--fs-control); white-space: nowrap; }
.tf-stats span { display: block; margin-top: 4px; font-size: var(--fs-note); color: var(--text-muted); }
/* 900 以下：数を大きいままで4つ並べると「3,000／人」と単位が次の行に落ちた（768。stepsWrap）。数の字を小さくして、4つ並べたままにする */
@media (max-width: 900px) {
  .tf-stats b { font-size: 1.75rem; }
}
.tf-x { display: grid; grid-template-columns: minmax(0, 1fr) 2.5rem 24rem; gap: 0 16px; align-items: center; margin-bottom: 24px; }
.tf-x > i { font-style: normal; font-weight: 800; font-size: 2.5rem; color: var(--text-mark); text-align: center; }
.tf-wall { display: flex; flex-wrap: wrap; gap: 2px 4px; height: 9.625rem; overflow: hidden; }
.tf-wall img { flex: none; width: 3.125rem; height: 3.125rem; object-fit: cover; object-position: top; }
.tf-map .tf-h small { display: block; margin: 2px 0 0; }
.tf-map img { width: 100%; height: auto; border: 1px solid var(--ink-4); }
.tf-map p { margin: 8px 0 0; font-size: var(--fs-note); line-height: 1.6; }
.tf-map p b { display: block; font-weight: 800; }
.tf-map .tf-credit { margin-top: 4px; font-size: var(--fs-tag); color: var(--text-muted); }
.tf-bb { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 28px; }
.tf-bb div { display: flex; align-items: center; gap: 16px; padding: 12px 16px; border: 2px solid var(--text); }
.tf-bb b { flex: none; font-weight: 800; font-size: 1.125rem; }
.tf-bb b small { display: block; font-weight: 400; font-size: var(--fs-tag); color: var(--text-muted); }
.tf-bb span { font-size: var(--fs-control); line-height: 1.55; word-break: auto-phrase; }
.tf-one > summary { margin: 0 0 12px; font-weight: 800; font-size: 1.125rem; list-style: none; cursor: default; pointer-events: none; }
.tf-one > summary::-webkit-details-marker { display: none; }
.tf-items { display: grid; grid-template-columns: 10.5rem repeat(5, minmax(0, 1fr)); gap: 0 20px; padding: 16px; background: var(--surface-quiet); }
.tf-items ul { margin: 0; padding: 0; list-style: none; }
.tf-items li { padding: 3px 0; border-bottom: 1px solid #d9dce6; font-size: var(--fs-note); line-height: 1.5; }
.tf-items .tf-h { margin-bottom: 4px; padding-bottom: 4px; border-bottom: 2px solid var(--text); }
.tf-pcard img { width: 6rem; height: 6rem; margin-bottom: 8px; object-fit: cover; object-position: top; }
.tf-pcard b { display: block; font-weight: 800; font-size: var(--fs-lead); }
.tf-pcard b small { font-weight: 400; font-size: var(--fs-note); }
.tf-pcard span { display: block; margin-top: 4px; font-size: var(--fs-note); line-height: 1.55; word-break: auto-phrase; }
.tf-src { margin: 16px 0 0; font-size: var(--fs-tag); line-height: 1.8; color: var(--text-muted); }
.tf-src b { display: block; font-size: var(--fs-note); color: var(--text); }

/* 2 モーメントを見る */
.tf-now { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; margin: 0 0 16px; padding-bottom: 12px; border-bottom: 3px solid var(--text); font-weight: 800; font-size: 1.375rem; line-height: 1.3; }
.tf-now b { font-size: 2.5rem; line-height: 1; }
.tf-now em { font-style: normal; color: var(--text-mark); }
.tf-week { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; margin: 0; padding: 0; list-style: none; }
.tf-week li { display: grid; grid-template-columns: 3rem minmax(0, 1fr); gap: 0 12px; padding: 12px 0; border-bottom: 1px solid var(--ink-4); }
.tf-week img { grid-row: 1 / 4; width: 3rem; height: 3rem; object-fit: cover; object-position: top; }
.tf-week b { font-weight: 800; font-size: 1rem; color: var(--text-mark); }
.tf-week span { font-size: var(--fs-body); line-height: 1.55; word-break: auto-phrase; }
.tf-week small { font-size: var(--fs-note); color: var(--text-muted); }

/* 3 インタビューする */
.tf-talk { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: 0 32px; }
.tf-six ul { margin: 0; padding: 0; list-style: none; }
.tf-six li { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--ink-4); font-size: var(--fs-control); font-weight: 800; }
.tf-six li small { display: block; font-weight: 400; font-size: var(--fs-tag); color: var(--text-muted); }
.tf-six img { width: 2.5rem; height: 2.5rem; object-fit: cover; object-position: top; }
.tf-chat { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 28px; margin: 0; padding: 0; list-style: none; }
.tf-chat li { padding-top: 10px; border-top: 3px solid var(--gold); }
.tf-got { margin: 0 0 8px; font-weight: 800; font-size: var(--fs-control); color: var(--text-mark); }
.tf-q { margin: 0 0 12px auto; width: fit-content; max-width: 92%; padding: 8px 12px; background: var(--surface-quiet); font-size: var(--fs-note); line-height: 1.6; word-break: auto-phrase; }
.tf-a { display: flex; align-items: flex-start; gap: 10px; }
.tf-a img { flex: none; width: 2.5rem; height: 2.5rem; object-fit: cover; object-position: top; }
.tf-a p { margin: 0; font-weight: 800; font-size: 1rem; line-height: 1.65; word-break: auto-phrase; }
.tf-a small { display: block; font-weight: 400; font-size: var(--fs-note); color: var(--text-muted); }

/* 4 ジョブをまとめる */
.tf-scene { margin: 0 0 20px; padding: 14px 16px; border-left: 3px solid var(--gold); font-weight: 800; font-size: var(--fs-lead); line-height: 1.6; word-break: auto-phrase; }
.tf-scene small { display: block; font-weight: 400; font-size: var(--fs-tag); color: var(--text-muted); }
.tf-func { margin-bottom: 24px; }
.tf-box { width: fit-content; max-width: 100%; padding: 10px 16px; border: 2px solid var(--text); font-weight: 800; font-size: 1.25rem; line-height: 1.5; }
.tf-pg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; }
.tf-pg ul, .tf-fix ul { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--ink-4); }
.tf-pg li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--ink-4); font-size: var(--fs-body); line-height: 1.5; }
.tf-pg li small { flex: none; font-size: var(--fs-note); color: var(--text-muted); }

/* 5 価値を分析する */
.tf-value { display: grid; grid-template-columns: minmax(0, 1fr) 22rem; gap: 0 32px; }
.tf-fix .tf-h { margin-top: 18px; }
.tf-fix .tf-h:first-child { margin-top: 0; }
.tf-fix li { display: grid; grid-template-columns: minmax(0, 1fr) 1.75rem minmax(0, 1fr); align-items: center; padding: 8px 0; border-bottom: 1px solid var(--ink-4); font-size: var(--fs-control); line-height: 1.5; word-break: auto-phrase; }
.tf-fix li i { font-style: normal; font-weight: 800; font-size: 1.125rem; color: var(--text-mark); text-align: center; }
.tf-fix li b { font-weight: 800; }
.tf-plan { margin-top: 20px; padding: 14px 16px; border: 2px solid var(--text); }
.tf-plan b { display: block; font-weight: 800; font-size: 1.25rem; }
.tf-plan p { margin: 6px 0 0; font-size: var(--fs-control); line-height: 1.6; word-break: auto-phrase; }
.tf-sheets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.tf-sheets figure { margin: 0; }
.tf-sheets img { width: 100%; height: auto; border: 1px solid var(--ink-4); box-shadow: 0 2px 8px rgba(12, 16, 48, 0.12); }
.tf-sheets figcaption { margin-top: 6px; font-size: var(--fs-tag); line-height: 1.5; color: var(--text-muted); text-align: center; word-break: auto-phrase; }

/* 語のまとまり（top-steps.js words の w-d）：語の途中では折らない。行は語と語のあいだで替わる。auto-phrase だけでは「選んでもら／う」
   「スティールマン論／法」「47都道府／県」と語の途中で折れた（2026-11-21 saito-review。768・1440） */
.tf w-d { white-space: nowrap; }
/* 畳んだ6段（斉藤さん 2026-11-21）：段ごとに要の一つだけを見せ、「詳しく見る」で残り（.m）を開く。.s は畳んだときだけの部品。
   畳んだ段は、どの段も同じ高さ（top-steps.js evenRows が、いちばん高い段に合わせて --tf-fold-h を決める）。柱は右の高さに合わせて伸びる。
   参考の理論は、広げたときだけ */
.tf-body { display: flex; flex-direction: column; }
.tf-more-go { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; min-height: var(--tap, 44px); margin-top: auto; padding: 12px 0 0; border: 0; background: none; font: inherit; font-weight: 800; font-size: var(--fs-body); color: var(--text); cursor: pointer; text-decoration: underline; text-underline-offset: .2em; }
.tf-more-go::after { content: ''; width: 8px; height: 8px; margin: -4px 0 0 4px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); }
.tf-row.is-more .tf-more-go::after { margin-top: 4px; transform: rotate(-135deg); }
.tf-more-go:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
/* 畳んだ1段目：地図は高さを抑える（出典の一行は地図と一緒にいつも出す） */
/* 畳んだ3段目：答え一つを幅いっぱいに（聴いた6人の列は、広げたときだけ） */
/* 畳んだ6段目：ラボごとに絵を一枚、高さを抑えて */
/* 畳んだ3段目：聴いた6人は、顔だけを一列に */
.tf-six-row p { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 18px; }
.tf-six-row img { width: 2.75rem; height: 2.75rem; object-fit: cover; object-position: top; border-radius: 2px; }
/* 畳んだ段の下に空きを残さない（進行役 2026-11-21）：中身は足さず、その段の見本の絵を大きくして埋める（広い画面） */
@media (min-width: 761px) {
  /* 2段目：その時刻の3人を、大きな顔で横に並べる */
  /* 3段目：聴いた6人の顔と、答えた人の顔を大きく */
  /* 5段目：レポートの1枚を大きく。1100 以下は、案の横に並べたまま（下に積むと段が高くなりすぎた） */
}
/* 2段目：その回の一週間の山の写し（見出しの時刻と人数は、すぐ上の字） */
.tf-band { margin: 4px 0 0; }
.tf-band img { width: 100%; height: auto; border: 1px solid var(--ink-4); }
.tf-others { margin: 8px 0 0; font-size: var(--fs-control); color: var(--text-muted); }
.tf-now-faces { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 0; }
.tf-now-faces img { width: 3.5rem; height: 3.5rem; object-fit: cover; object-position: top; border-radius: 2px; }
/* 畳んだ5段目：縦に長いレポートの1枚目は、上の部分だけ（広げると全体） */
/* 畳んだ4段目：絵が無いので、その段の言葉（こんなとき・三つの面）を大きくし、余白を整えて、ほかの段と同じ高さを埋める（進行役 2026-11-21） */
/* 開くものが無い段には「詳しく見る」を出さない */
.tf-row:not(:has(.m)) .tf-more-go { display: none; }

/* 6 サービスを届ける */
.tf-out { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; }
.tf-lab h3 { margin: 0 0 4px; font-weight: 800; font-size: 1.375rem; }
/* ラボの見出しが、そのラボの入口（トップの下に別の入口の帯は置かない：2026-11-21） */
.tf-lab-go { display: inline-flex; align-items: center; gap: 8px; min-height: var(--tap, 44px); padding: 0; border: 0; background: none; font: inherit; color: var(--text-head); cursor: pointer; text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 1px; }
.tf-lab-go i { font-style: normal; text-decoration: none; }
.tf-lab-go:hover { text-decoration-thickness: 2px; }
.tf-lab-go:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.tf-lab > p { margin: 0 0 14px; font-size: var(--fs-body); }
.tf-shots img { width: 100%; height: auto; border: 1px solid var(--ink-4); }
.tf-shots.is-two { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 12px; align-items: start; }
.tf-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 0; padding: 0; list-style: none; }
.tf-tags li { padding: 2px 10px; border: 1px solid var(--text); font-size: var(--fs-note); font-weight: 800; }
.tf-masters { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--ink-4); }
.tf-masters > div { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tf-masters > div > div { padding: 14px 16px; border: 2px solid var(--text); }
.tf-masters b { display: block; font-weight: 800; font-size: 1.125rem; }
.tf-masters em { display: block; margin: 6px 0; font-style: normal; font-weight: 800; font-size: var(--fs-body); line-height: 1.5; color: var(--text-mark); word-break: auto-phrase; }
.tf-masters span { display: block; font-size: var(--fs-note); }
.tf-masters small { display: block; margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--ink-4); font-size: var(--fs-tag); color: var(--text-muted); }

@media (max-width: 1100px) {
  .tf-row { grid-template-columns: 12.5rem minmax(0, 1fr); }
  .tf-body { padding-left: 24px; }
  .tf-x { grid-template-columns: minmax(0, 1fr) 2rem 15rem; }
  .tf-items { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 20px; }
  .tf-pcard { display: grid; grid-template-columns: 6rem minmax(0, 1fr); gap: 0 12px; grid-column: 1 / -1; }
  .tf-pcard img { grid-row: 1 / 3; margin: 0; }
  .tf-value { grid-template-columns: minmax(0, 1fr); gap: 24px 0; }
  .tf-sheets { max-width: 28rem; }
  .tf-talk { grid-template-columns: minmax(0, 1fr); gap: 20px 0; }
  .tf-six ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 16px; }
}

/* 狭い画面：段を畳む。柱が見出しになり、押すと開く */
@media (max-width: 760px) {
  /* 狭い画面では目次を出さない：すぐ下の6段の柱が、同じ一覧になる（2026-11-21） */
  .tf { margin-top: 28px; }
  .tf > h2 { font-size: min(1.25rem, 5.4vw); }
  .tf-row { grid-template-columns: minmax(0, 1fr); border-bottom: 0; }
  .tf-rail { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 0 12px; align-items: center; width: 100%; min-height: var(--tf-rail-h, auto); padding: 12px 16px; cursor: pointer; }
  /* 段の頭の帯：番号・名前・一文と、小さな絵一つ。どの帯も同じ高さ（--tf-rail-h） */
  .tf-rail::after { display: none; }
  .tf-rail i { grid-row: 1 / 3; font-size: 2.25rem; }
  .tf-rail b { margin: 0; }
  .tf-rail small { margin: 0; }
  .tf-mean { grid-column: 1 / -1; margin-top: 8px; }
  .tf-ref { display: none; grid-column: 1 / -1; }
  .tf-fold { display: grid; place-items: center; grid-column: 4; grid-row: 1 / 3; width: var(--tap); height: var(--tap); margin-right: -12px; }
  .tf-fold::before { content: ''; width: 12px; height: 12px; margin-top: -6px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); }
  .tf-row.is-open .tf-fold::before { margin-top: 6px; transform: rotate(-135deg); }
  .tf-row.is-more .tf-ref { display: block; }
  .tf-body { display: none; padding: 20px 0 28px; }
  .tf-row.is-open .tf-body { display: flex; }
  .tf-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tf-stats div { padding-left: 0; border-left: 0; }
  .tf-stats div:nth-child(n + 3) { border-top: 1px solid var(--ink-4); }
  .tf-x, .tf-bb, .tf-week, .tf-chat, .tf-pg, .tf-out, .tf-masters > div { grid-template-columns: minmax(0, 1fr); }
  .tf-x > i { padding: 4px 0; }
  .tf-wall { height: 5.5rem; }
  .tf-wall img { width: 2.625rem; height: 2.625rem; }
  .tf-one > summary { display: flex; justify-content: space-between; align-items: center; min-height: var(--tap); margin: 0; padding: 0 12px; border: 2px solid var(--text); cursor: pointer; pointer-events: auto; }
  .tf-one > summary::after { content: ''; width: 10px; height: 10px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); }
  .tf-one[open] > summary::after { transform: rotate(-135deg); }
  .tf-items { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 12px; }
  .tf-pg div + div, .tf-out .tf-lab + .tf-lab { margin-top: 20px; }
  .tf-six ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tf-fix li { grid-template-columns: minmax(0, 1fr); }
  .tf-fix li i { text-align: left; }
  .tf-shots.is-two { grid-template-columns: minmax(0, 1fr); }
  .tf-now { font-size: 1.125rem; }
  .tf-now b { font-size: 2rem; }
}

/* ---- 畳んだ6段（斉藤さん 2026-11-21「元のトップがよかった。その良さをいかせ」「必ずしも長さをぴったり合わせなくてもいい。最高のデザインに」）----
   畳んでも、部品は元のまま。縦に積むかわりに、右の幅を使って組む（空きを作らない。段の高さは中身のまま）。
   残り（.m）は「詳しく見る」で開く。途中で切らない。参考の理論は、柱にいつも出す。 */
.tf-row:not(.is-more) .m, .tf-body .s { display: none; }
.tf-more-go { margin-top: 16px; }
.tf-row:not(:has(.m)) .tf-more-go { display: none; }

/* 一人が持っている情報：畳まずに出す。字を小さく、行を詰めて一枚に（斉藤さん「大切なので、コンパクトにして折りたたまない」） */
.tf-one { margin-top: 22px; }
.tf-one > summary { margin-bottom: 8px; font-size: 1rem; }
.tf-items { grid-template-columns: 9.5rem repeat(5, minmax(0, 1fr)); gap: 0 16px; padding: 14px 16px; }
.tf-items li { padding: 1px 0; border-bottom: 0; font-size: var(--fs-tag); line-height: 1.55; }
.tf-items .tf-h { margin-bottom: 4px; padding-bottom: 3px; font-size: var(--fs-note); }
.tf-pcard img { width: 4.5rem; height: 4.5rem; margin-bottom: 6px; }
.tf-pcard b { font-size: var(--fs-body); }
.tf-pcard span { font-size: var(--fs-tag); }

/* 3 聴く：その人の場面 → 問い → 答え */
.tf-got b { margin-right: 10px; font-weight: 800; }
.tf-got span { font-weight: 400; font-size: var(--fs-note); color: var(--text); }
.tf-chatwrap { min-width: 0; }
.tf-asked { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; margin: 0 0 16px; font-size: var(--fs-note); }
.tf-asked b { font-weight: 800; }
.tf-asked span { padding: 5px 10px; background: var(--surface-quiet); line-height: 1.5; }
.tf-a p { font-size: var(--fs-body); }

/* 4 ジョブ：場面 → 困りごと｜本当にしたいこと｜うれしいこと */
.tf-jobmap { display: grid; grid-template-columns: minmax(0, 1fr) 17rem minmax(0, 1fr); gap: 0 28px; align-items: stretch; }
.tf-jobmap ul { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--ink-4); }
.tf-jobmap li { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px 0; padding: 9px 0; border-bottom: 1px solid var(--ink-4); font-size: var(--fs-body); line-height: 1.5; word-break: auto-phrase; }
.tf-jobmap li small { display: flex; align-items: center; gap: 8px; font-size: var(--fs-tag); color: var(--text-muted); }
.tf-dots { display: inline-flex; gap: 2px; }
.tf-dots i { width: 10px; height: 10px; border: 1px solid var(--text); }
.tf-dots i.on { background: var(--text); }
.tf-gains .tf-dots i { border-color: var(--text-mark); }
.tf-gains .tf-dots i.on { background: var(--text-mark); }
.tf-core { position: relative; display: flex; flex-direction: column; justify-content: center; padding: 22px 20px; background: var(--band); color: var(--paper-1); text-align: center; }
.tf-core::before, .tf-core::after { content: ''; position: absolute; top: 50%; margin-top: -10px; border: 10px solid transparent; }
.tf-core::before { left: -20px; border-right-color: var(--band); }
.tf-core::after { right: -20px; border-left-color: var(--band); }
.tf-core-l { margin: 0 0 10px; font-weight: 800; font-size: var(--fs-note); color: var(--gold); }
.tf-core-l small, .tf-core-k small { margin-left: 6px; font-weight: 400; font-size: var(--fs-tag); color: #c9cde6; }
.tf-core-w { margin: 0; font-weight: 800; font-size: 1.5rem; line-height: 1.45; word-break: auto-phrase; }
.tf-core-k { margin: 12px 0 0; font-size: var(--fs-tag); color: #c9cde6; }
.tf-row[data-step='job'] .tf-scene { margin-bottom: 18px; }
/* 三つの面がそろった回：紺の帯に三つ並べ、その下に困りごと・うれしいこと */
.tf-core.is-three { margin-bottom: 20px; padding: 18px 0 20px; text-align: left; }
.tf-core.is-three::before, .tf-core.is-three::after { display: none; }
.tf-core.is-three .tf-core-l { margin: 0 22px 12px; }
.tf-core3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tf-core3 > div { padding: 0 22px; border-left: 1px solid rgba(255, 255, 255, 0.28); }
.tf-core3 > div:first-child { border-left: 0; }
.tf-core3 .tf-core-k { margin: 0 0 8px; font-weight: 800; font-size: var(--fs-note); color: var(--paper-1); }
.tf-core3 .tf-core-w { font-size: var(--fs-title); line-height: 1.55; }
.tf-core-who { display: block; margin-top: 8px; font-size: var(--fs-tag); color: #c9cde6; }
.tf-jobmap.is-two { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; }
.tf-jobmap.is-two li { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 0 12px; }
@media (max-width: 760px) { .tf-core3, .tf-jobmap.is-two { grid-template-columns: minmax(0, 1fr); } .tf-core3 > div { padding: 12px 18px 0; border-left: 0; } }

@media (min-width: 1101px) {
  .tf-row:not(.is-more) .tf-body { padding-block: 26px 22px; }
  /* 1 数（2×2）｜顔の壁 × 地図。その下に、一人が持っている情報 */
  .tf-row[data-step='persona']:not(.is-more) .tf-body { display: grid; grid-template-columns: 17.5rem minmax(0, 1fr); gap: 0 36px; align-items: center; }
  .tf-row[data-step='persona']:not(.is-more) .tf-one, .tf-row[data-step='persona']:not(.is-more) .tf-more-go { grid-column: 1 / -1; }
  .tf-row[data-step='persona']:not(.is-more) .tf-more-go { justify-self: start; }
  .tf-row[data-step='persona']:not(.is-more) .tf-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; border-bottom: 0; }
  .tf-row[data-step='persona']:not(.is-more) .tf-stats div { padding: 14px 0 12px 14px; border-bottom: 1px solid var(--ink-4); }
  .tf-row[data-step='persona']:not(.is-more) .tf-stats div:nth-child(odd) { padding-left: 0; border-left: 0; }
  .tf-row[data-step='persona']:not(.is-more) .tf-stats b { font-size: 2rem; }
  .tf-row[data-step='persona']:not(.is-more) .tf-x { grid-template-columns: minmax(0, 1fr) 2.5rem 18rem; margin: 0; }
  .tf-row[data-step='persona']:not(.is-more) .tf-wall { height: 13.25rem; }
  /* 2 時刻と人数｜一週間の山（曜日・山・時刻の目盛りまで）｜その時刻の3人 */
  .tf-row[data-step='moment']:not(.is-more) .tf-now { margin-bottom: 14px; }
  .tf-row[data-step='moment']:not(.is-more) .tf-band { margin: 0 0 18px; aspect-ratio: 1248 / 122; overflow: hidden; }
  .tf-row[data-step='moment']:not(.is-more) .tf-week { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 24px; }
  .tf-row[data-step='moment']:not(.is-more) .tf-week li { border-bottom: 0; padding-bottom: 0; }
  /* 3 聴いた6人を一行に｜4人の答え */
  .tf-row[data-step='interview'] .tf-talk { grid-template-columns: minmax(0, 1fr); gap: 18px 0; }
  .tf-row[data-step='interview'] .tf-six ul { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0 12px; }
  .tf-row[data-step='interview'] .tf-six li { padding: 0; border-bottom: 0; }
  /* 5 進める案と、困りごとを減らす打ち手｜レポート3枚 */
  .tf-row[data-step='value']:not(.is-more) .tf-fix { display: flex; flex-direction: column; }
  .tf-row[data-step='value']:not(.is-more) .tf-plan { order: -1; margin: 0 0 18px; }
  /* 6 二つのラボ：名前と一行を横に並べて、絵を大きいまま */
  .tf-row[data-step='deliver']:not(.is-more) .tf-lab { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0 16px; align-items: baseline; }
  .tf-row[data-step='deliver']:not(.is-more) .tf-lab h3 { margin: 0 0 12px; }
  .tf-row[data-step='deliver']:not(.is-more) .tf-lab > p { margin: 0 0 12px; font-size: var(--fs-control); white-space: nowrap; }
  .tf-row[data-step='deliver']:not(.is-more) .tf-shots, .tf-row[data-step='deliver']:not(.is-more) .tf-tags { grid-column: 1 / -1; }
}
@media (min-width: 761px) and (max-width: 1100px) {
  .tf-row:not(.is-more) .tf-week { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 16px; }
  .tf-row[data-step='moment']:not(.is-more) .tf-band { aspect-ratio: 1248 / 122; overflow: hidden; }
  .tf-row:not(.is-more) .tf-value { grid-template-columns: minmax(0, 1fr) 10rem; gap: 0 20px; }
  .tf-row:not(.is-more) .tf-sheets { grid-template-columns: minmax(0, 1fr); max-width: none; }
  .tf-row:not(.is-more) .tf-sheets figure + figure { display: none; }
  .tf-items { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 16px; }
  .tf-pcard { grid-template-columns: 4.5rem minmax(0, 1fr); grid-column: 1 / -1; margin-bottom: 0; }
  .tf-jobmap { grid-template-columns: minmax(0, 1fr) 13rem minmax(0, 1fr); gap: 0 22px; }
  .tf-core-w { font-size: 1.25rem; }
}
@media (max-width: 760px) {
  .tf-rail b { grid-column: 2; grid-row: 1; }
  .tf-rail small { grid-column: 2; grid-row: 2; }
  .tf-fold { grid-column: 3; }
  .tf-row:not(.is-more) .tf-more-go { display: none; }
  .tf-items { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; }
  .tf-pcard { grid-column: 1 / -1; }
  .tf-jobmap { grid-template-columns: minmax(0, 1fr); gap: 16px 0; }
  .tf-core { order: -1; }
  .tf-core::before, .tf-core::after { display: none; }
}
/* トークラボの下：三つの達人は、隣のラボの札（.tf-tags）と同じ形で一行に。開くと、問い・使う場面・手法 */
.tf-masters-more { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 14px; margin: 14px 0 0; font-size: var(--fs-note); line-height: 1.6; }
.tf-masters-more dt { font-weight: 800; white-space: nowrap; }
.tf-masters-more dd { margin: 0; }
.tf-masters-more dd b { display: block; font-weight: 800; color: var(--text-mark); }
.tf-masters-more dd small { margin-left: 10px; font-size: var(--fs-tag); color: var(--text-muted); }
.tf-tags { margin-top: 14px; }
/* 一行にそろえた文：折らない */
.tf-jobmap li span:first-child, .tf-fix li span, .tf-fix li b { white-space: nowrap; }
.tf-core3 .tf-core-w { font-size: 1.125rem; white-space: nowrap; }
.tf-core3 > div { padding: 0 20px; }
/* みんなのペルソナとは：文の途中で変に折らない（幅いっぱいに流す） */
.tm-about { max-width: none; }
.tm-about p { text-wrap: wrap; word-break: normal; line-break: strict; }
@media (max-width: 1100px) { .tf-jobmap li span:first-child, .tf-fix li span, .tf-fix li b, .tf-core3 .tf-core-w { white-space: normal; } }
@media (min-width: 1101px) {
  .tf-row[data-step='deliver']:not(.is-more) .tf-lab { grid-template-rows: auto 1fr auto; }
  .tf-row[data-step='deliver']:not(.is-more) .tf-shots { align-self: start; }
  .tf-row[data-step='deliver']:not(.is-more) .tf-tags { align-self: end; }
}
/* 5 はじめの企画 → これからの企画（紺の板は4段目の「本当にしたいこと」と同じ形） */
.tf-plan { margin-top: 0; padding: 0; border: 0; }
.tf-plan p { margin: 0; }
.tf-plan small { display: block; margin-bottom: 4px; font-weight: 800; font-size: var(--fs-note); }
.tf-plan small span { margin-left: 8px; font-weight: 400; font-size: var(--fs-tag); }
.tf-plan-b { padding: 10px 16px; border: 1px solid var(--line); font-size: var(--fs-body); line-height: 1.6; color: var(--text); }
.tf-plan-b small { color: var(--text-muted); }
.tf-plan > i { display: block; padding: 2px 0 2px 16px; font-style: normal; font-weight: 800; font-size: 1.125rem; line-height: 1.2; color: var(--text-mark); }
.tf-plan-a { padding: 14px 16px 16px; background: var(--band); color: var(--paper-1); }
.tf-plan-a small { color: var(--gold); }
.tf-plan-a small span { color: #c9cde6; }
.tf-plan-a b { display: block; font-weight: 800; font-size: 1.25rem; line-height: 1.55; word-break: auto-phrase; }
/* これからの企画：どの言葉が、本当にしたいことのどの面（機能・感情・社会）に応えているか */
.tf-parts { display: flex; flex-wrap: wrap; gap: 10px 6px; }
.tf-parts span { display: inline-block; max-width: 100%; white-space: normal; word-break: auto-phrase; }
.tf-parts i { display: block; font-style: normal; }
.tf-parts em { display: block; }
.tf-parts em { margin-top: 4px; padding-top: 3px; border-top: 2px solid var(--gold); font-style: normal; font-weight: 800; font-size: var(--fs-tag); line-height: 1.4; color: var(--gold); }
.tf-plan-a b { font-size: 1.1875rem; }
.tf-parts em small { display: inline; margin: 0 0 0 8px; font-weight: 400; font-size: inherit; color: #c9cde6; }
/* 見出し（斉藤さん 2026-11-22「あなたの『未来のお客さま』は、どんな暮らしをしているんだろう。」）：31字。
   字の大きさは、置き場（.tm-head-text）の幅から決める（画面の幅からは決めない：顔の並び・スクロールバー・書体の字幅で置き場が変わっても、
   いつも置き場の 9 割ほどに収まる）。広い画面は1行、狭い画面は句の切れ目で2行（1行めの句が置き場の 9 割ほど） */
.tm-head .tm-head-text { flex: 1 1 0; min-width: 0; container-type: inline-size; }
.tm-big { font-size: clamp(1.125rem, calc(100cqw / 35), 2.125rem); }
@media (max-width: 767px) { .tm-big { font-size: min(1.375rem, calc(100cqw / 17.5)); } .tm-big span { display: block; } }
/* 6段の見出しと、見本：大きく一行で */
.tf > h2 { margin-bottom: 14px; font-size: 1.75rem; }
.tf-sample { align-items: center; gap: 6px 14px; margin-bottom: 18px; }
.tf-sample b { padding: 2px 12px; font-size: 1rem; line-height: 1.75rem; }
.tf-sample-say { font-weight: 800; font-size: 1.125rem; line-height: 1.5; }
.tf-sample small { flex-basis: 100%; }
@media (max-width: 760px) { .tf > h2 { font-size: min(1.375rem, 5.6vw); } .tf-sample { gap: 6px 10px; } .tf-sample b { font-size: var(--fs-note); line-height: 1.5rem; padding: 0 8px; } .tf-sample-say { flex-basis: 100%; font-size: min(1.125rem, calc((100vw - 68px) / 20.5)); white-space: nowrap; } }
/* 説明（斉藤さん 2026-11-22）：狭い画面でも2文とも出す。2文のあいだで改行せず、一つの段落として続けて流す。広い画面は文ごとに1行（2行） */
@media (max-width: 767px) { .tm-lead span, .tm-lead span + span { display: inline; } .tm-lead { word-break: auto-phrase; } }
/* 一人が持っている情報：とても狭い画面（359px 以下）は1列に（2列だと「性格特性（ビッグ5）」が「5）」だけ次の行に残る） */
@media (max-width: 359px) { .tf-items { grid-template-columns: minmax(0, 1fr); } }

/* 送るボタンの吹き出し（「相手を探す」の下に、ボタンを指して置く。対話する相手の行の右）。入らない幅では次の行へ */
.tm-under { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 0 16px; }
.tm-under .tm-aite { flex: 0 1 auto; min-width: 0; }
.tm-under .tm-seg { flex: none; }
.tm-under .tm-seg button { white-space: nowrap; }
.tm-tip { position: relative; flex: none; margin: 12px 0 0 auto; padding: 7px 14px; border-radius: 4px; background: var(--paper-1); color: var(--band); font-weight: 800; font-size: var(--fs-control); line-height: 1.5; }
.tm-tip::before { content: ''; position: absolute; right: 68px; bottom: 100%; border: 7px solid transparent; border-top-width: 0; border-bottom-color: var(--paper-1); }
.tm-tip span { display: inline-block; }
@media (max-width: 700px) { .tm-under { flex-wrap: nowrap; gap: 0 8px; } .tm-under .tm-aite { flex: 1 1 0; } .tm-tip { padding: 6px 10px; font-size: var(--fs-note); } .tm-tip span { display: block; } .tm-tip::before { right: 34px; } }

/* 汎用の説明（数・見出し・項目の名前）は帯の紺、見本の回の中身（相手・場面・答え・ジョブ・打ち手）は黒で大きく
   （斉藤さん 2026-11-22「見本のところ、文字を大きくして、色を黒に」「汎用的な情報と見本情報を感じられるようにしたい」） */
.tf-h, .tf-stats b, .tf-items li, .tf-asked, .tf-bb, .tf-one > summary, .tf-lab-go, .tf-lab p, .tf-tags li, .tf-masters-more { color: var(--band); }
.tf-tags li { border-color: var(--band); }
.tf-sample small { font-size: 1rem; font-weight: 700; color: var(--text); }
.tf-map p b { font-size: 1rem; line-height: 1.5; color: var(--text); }
.tf-pcard b, .tf-pcard span { color: var(--text); }
.tf-pcard span { font-size: var(--fs-note); }
.tf-week span, .tf-a p, .tf-jobmap li { font-size: 1rem; color: var(--text); }
.tf-got span { font-size: var(--fs-control); }
.tf-plan-b { font-size: 1rem; }
.tf-sample small em { display: inline-block; font-style: normal; }
@media (max-width: 760px) { .tf-sample small { font-size: min(0.875rem, calc((100vw - 68px) / 20.5)); } }
/* 360 より狭い：送るボタンが欄の下の段いっぱいになるので、吹き出しはそのすぐ下の段に、対話する相手はその次の段に */
@media (max-width: 359px) { .tm-under { flex-wrap: wrap; } .tm-under .tm-aite { flex: 1 1 100%; order: 1; } .tm-tip span { display: inline-block; } }
