:root {
  color-scheme: light;
  --ink:#19362e; --muted:#4a6158; --green:#174e3b; --dark:#103a2c;
  --paper:#f6f7f1; --white:#fff; --mint:#e8f0e8; --line:#c5d2c7; --edge:#738a7e;
  --warm:#f6efdc; --focus:#784018;
  font-family:-apple-system,BlinkMacSystemFont,"Hiragino Kaku Gothic ProN","Yu Gothic",Meiryo,sans-serif;
  font-size:100%;
}
* {box-sizing:border-box}
[hidden] {display:none !important}
body {margin:0;background:var(--paper);color:var(--ink);font-size:1.0625rem;line-height:1.65;overflow-wrap:anywhere}
button,textarea,select {font:inherit;color:inherit}
button,summary {cursor:pointer}
button,summary,select,textarea {min-height:44px}
button {border:1px solid var(--edge);border-radius:10px;background:var(--white);padding:.48rem .85rem;font-weight:700;text-align:start}
button:enabled:hover,summary:hover {background:var(--mint)}
button:disabled {opacity:.65;cursor:default}
button[aria-pressed="true"] {background:var(--mint);box-shadow:inset 0 0 0 1px var(--green);border-color:var(--green)}
button.primary {color:#fff;background:var(--green);border-color:var(--green)}
button.primary:hover {background:var(--dark)}
:focus-visible,.scene h2:focus,#finished:focus {outline:3px solid var(--focus);outline-offset:4px}
h1,h2,h3,h4,p,figure,blockquote,dl {margin:0}
h2 {font-size:clamp(1.5rem,4vw,1.75rem);line-height:1.38;letter-spacing:.015em}
h3 {font-size:1.2rem;line-height:1.4}
h4 {font-size:1.06rem}
small,.quiet {color:var(--muted);font-size:.875rem}
.mast {border-bottom:1px solid var(--line);background:var(--white)}
.mast-inner,main,.foot {max-width:62rem;margin:auto;padding-inline:clamp(.875rem,3vw,2rem)}
.mast-inner {display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:.35rem .9rem;padding-block:.68rem}
.mast h1 {font-size:.94rem;letter-spacing:.035em}
.brand,.eyebrow,.meta {display:flex;align-items:center;gap:.55rem;flex-wrap:wrap}
.brand-mark {width:1.6rem;height:1.6rem;background:var(--green);border-radius:6px;color:white;display:grid;place-items:center;font-size:.7rem;letter-spacing:.04em;font-weight:800}
.version,.label,.count,.kicker {font-size:.8rem;letter-spacing:.04em;font-weight:750}
.version,.kicker {color:var(--muted)}
.scene {padding-block:clamp(1.05rem,4vw,2.6rem) 1rem}
.scene > header {display:grid;gap:.35rem;margin-bottom:.95rem}
.eyebrow {gap:.65rem}
.count,.label {border-radius:30px;padding:.15rem .58rem;color:var(--green);background:var(--mint)}
.count {font-variant-numeric:tabular-nums;border:1px solid #b8cbbd}
.label {background:var(--warm);color:#57492c}
.progress {display:flex;gap:4px;margin-left:auto}
.progress i {width:14px;height:4px;border-radius:4px;background:#ccd8ce}
.progress i.done {background:var(--green)}
.prompt {font-size:1.17rem;font-weight:750;margin-block:.78rem .45rem}
.player {max-width:46rem}
.film {display:grid;position:relative}
.film > .frame {grid-area:1/1;opacity:0;visibility:hidden;transition:opacity .7s ease,visibility 0s linear .7s}
.film > .frame.current {opacity:1;visibility:visible;transition:opacity .7s ease}
.frame .bg {transform-box:view-box;transform-origin:50% 60%}
.film.playing .frame.current .bg {animation:drift var(--dur,4s) linear forwards}
@keyframes drift {from {transform:scale(1)} to {transform:scale(1.06)}}
@keyframes walk {from {transform:scale(1.02) translateX(4px)} to {transform:scale(1.08) translateX(-10px)}}
.bubble {transform-box:fill-box;transform-origin:50% 100%;transition:opacity .35s ease,transform .35s cubic-bezier(.3,1.5,.6,1)}
.frame.pre .bubble {opacity:0;transform:scale(.8)}
.stage-play {position:absolute;inset:0 0 auto 0;aspect-ratio:400/225;display:grid;place-items:center;background:rgba(16,58,44,.12);border-radius:13px 13px 0 0;cursor:pointer;z-index:2}
.stage-play span {width:4.4rem;height:4.4rem;border-radius:50%;background:rgba(23,78,59,.92);color:#fff;display:grid;place-items:center;font-size:1.7rem;padding-left:.3rem;box-shadow:0 6px 18px rgba(0,0,0,.18)}
.stage-play:hover span {background:var(--dark)}
.film.started .stage-play {display:none}
.reel {display:grid;grid-auto-flow:column;grid-auto-columns:1fr;gap:4px;margin-top:.5rem}
.reel i {height:4px;border-radius:4px;background:#ccd8ce;overflow:hidden;position:relative}
.reel i.done {background:var(--green)}
.reel i.now::after {content:"";position:absolute;inset:0;background:var(--green);transform-origin:left;transform:scaleX(0)}
.film.playing ~ .reel i.now::after {animation:fill var(--dur,4s) linear forwards}
.reel i.now.full::after {transform:scaleX(1)}
@keyframes fill {to {transform:scaleX(1)}}
.film-controls .play {min-width:9.5rem;max-width:100%;text-align:center}
.film-controls .sep {flex:1}
.film.manual > .frame,.film.manual > .frame.current,.film.manual .bubble {transition:none}
@media (prefers-reduced-motion:reduce) {
  .film > .frame,.film > .frame.current,.bubble {transition:none}
  .film.playing .frame.current .bg {animation:none}
}
.frame {min-width:0;overflow:hidden;border-radius:13px;border:1px solid var(--line);background:var(--white)}
.frame svg {display:block;width:100%;height:auto;background:#e9ede4}
.frame figcaption {padding:.55rem .7rem;font-size:.94rem;line-height:1.55}
.frame figcaption b {display:block;color:var(--green);font-size:.76rem;letter-spacing:.05em}
.film-controls {display:flex;gap:.5rem;margin-top:.6rem;align-items:center;flex-wrap:wrap}
.film-controls button {min-width:44px;text-align:center}
.film-controls .kicker {margin-right:.25rem}
.svg-library {position:absolute;width:0;height:0;overflow:hidden}
.scene-nav {display:flex;justify-content:space-between;align-items:stretch;gap:.6rem;flex-wrap:wrap;margin-top:1rem}
.scene-nav button {text-align:center}
.scene-nav .primary {margin-left:auto}
.scene-nav.opening {margin-top:.55rem}
.disclosure {margin-top:.75rem}
.back-link {display:inline-flex;justify-self:start;width:fit-content;align-items:center;gap:.25em;border:0;background:none;padding:0 .2rem;margin:-.5rem 0 0;color:var(--muted);font-size:.9rem;font-weight:650;text-decoration:underline;text-underline-offset:.22em}
.back-link:enabled:hover {background:none;color:var(--ink)}
.recall {margin:.4rem 0 .9rem}
.recall-slot .player {margin-top:.6rem}
details {border-top:1px solid var(--line)}
summary {padding:.52rem .1rem;font-weight:700;color:var(--green)}
details > :not(summary) {margin-bottom:.75rem}
.record,.card,.feedback,.evidence,.review,.done-box {border:1px solid var(--line);border-radius:12px;padding:.85rem 1rem;background:var(--white)}
.record {border-inline-start:4px solid var(--green)}
.hook {margin-top:.15rem;color:var(--muted)}
.mini-record {position:relative;max-width:46rem;margin-top:1.5rem;background:#fffdf7 repeating-linear-gradient(transparent 0 1.95rem,#efe7d4 1.95rem calc(1.95rem + 1px));background-position:0 2.55rem;border:1px solid #d9cfb8;border-radius:10px;padding:1.15rem 1rem .7rem;box-shadow:0 3px 0 #e9e0cc}
.mini-record::before {content:"";position:absolute;top:-.65rem;left:50%;width:5rem;height:1.15rem;margin-left:-2.5rem;background:#6f8a7e;border-radius:6px;box-shadow:inset 0 -3px 0 rgba(0,0,0,.15)}
.rec-head {display:flex;justify-content:space-between;gap:.5rem;font-size:.8rem;font-weight:750;color:var(--muted);letter-spacing:.04em;border-bottom:2px solid #d9cfb8;padding-bottom:.3rem;margin-bottom:.15rem}
.rec-row {display:grid;grid-template-columns:auto 1fr;gap:.4rem;line-height:1.95rem}
.rec-time {white-space:nowrap;font-weight:750;color:var(--green);font-variant-numeric:tabular-nums}
.mini-record mark,table.data mark {color:inherit;background:linear-gradient(transparent 58%,#ffe28a 58%) no-repeat;background-size:0 100%;transition:background-size .9s ease}
.mini-record mark.on,table.data mark.on {background-size:100% 100%}
.not-in {display:inline-block;margin-top:.35rem;font-size:.82rem;font-weight:750;color:#6b4f1d;border:1.5px solid #c99a4a;border-radius:6px;padding:.05rem .45rem;transform:rotate(-2deg)}
.pick button {display:grid;gap:.05rem;justify-items:center;padding:.5rem .4rem}
.pick button strong {font-size:1.05rem}
.pick button small {font-size:.78rem;font-weight:600;color:var(--muted)}
.score {display:flex;align-items:center;gap:.6rem;margin-top:1rem;font-weight:750}
.score .dots {display:flex;gap:5px}
.score .dots i {width:12px;height:12px;border-radius:50%;background:#d6e0d8}
.score .dots i.ok {background:var(--green)}
.score .dots i.ng {background:#c99a4a}
.sort {display:grid;gap:.7rem;margin-top:.6rem}
.sort-card {border:1px solid var(--line);border-radius:14px;background:#fff;padding:.8rem .9rem}
.sort-card.ok {border-color:var(--green);box-shadow:inset 0 0 0 1px var(--green)}
.sort-card.ng {border-color:#c99a4a;box-shadow:inset 0 0 0 1px #c99a4a}
.sort-card .no {font-size:.78rem;font-weight:750;color:var(--muted);letter-spacing:.04em}
.sort-card h3 {font-size:1.15rem;margin:.1rem 0 .55rem}
.sort-card h3::before {content:"「"} .sort-card h3::after {content:"」"}
.pick {display:grid;grid-template-columns:1fr 1fr;gap:.5rem}
.pick button {text-align:center;font-size:.98rem}
.pick button:disabled {opacity:1}
.pick button[aria-pressed="true"] {background:var(--mint)}
.verdict {margin-top:.6rem;border-radius:10px;padding:.6rem .75rem;background:var(--mint)}
.sort-card.ng .verdict {background:var(--warm)}
.verdict strong {display:block}
.sort-card.ok .verdict strong {color:var(--green)}
.sort-card.ng .verdict strong {color:#6b4f1d}
.sort-done {margin-top:.9rem;border-radius:14px;padding:.9rem 1rem;background:var(--green);color:#fff}
.sort-done strong {display:block;font-size:1.1rem}
.sort-done p + p {margin-top:.35rem}
.lens-stage {margin-top:.4rem;max-width:46rem}
.lens-stage svg {display:block;width:100%;height:auto;border-radius:13px 13px 0 0;background:#e9ede4}
.lens-stage figcaption {padding:.55rem .75rem;font-size:.95rem;background:#fff;border:1px solid var(--line);border-top:0;border-radius:0 0 13px 13px;min-height:2.9rem}
.lens-stage figcaption b {color:var(--green)}
.cam {transform-box:view-box;transform-origin:0 0;transition:transform 1.3s cubic-bezier(.45,0,.2,1)}
.lens-ov {opacity:0;transition:opacity .8s ease}
.lens-ov {pointer-events:none}
.lens-hint {transition:opacity .4s ease}
.lens-hint path:first-child,.lens-hint text {animation:fadeUp .6s ease .8s both}
@keyframes fadeUp {from {opacity:0;transform:translateY(4px)} to {opacity:1;transform:none}}
.lens-stage[data-lens] .lens-hint {opacity:0}
.lensimg {opacity:0;transform-box:view-box;transform-origin:50% 50%;transform:scale(1.06);transition:opacity .9s ease,transform 1.6s cubic-bezier(.2,.7,.2,1)}
.lens-stage[data-lens="0"] .li-0,.lens-stage[data-lens="1"] .li-1,.lens-stage[data-lens="2"] .li-2 {opacity:1;transform:scale(1)}
.lens-stage[data-lens="0"] .ov-0,.lens-stage[data-lens="1"] .ov-1,.lens-stage[data-lens="2"] .ov-2 {opacity:1;transition-delay:.9s}
.lens-ov .tag {opacity:0;transition:opacity .5s ease}
:is(.lens-stage[data-lens="0"] .ov-0,.lens-stage[data-lens="1"] .ov-1,.lens-stage[data-lens="2"] .ov-2) .tag {opacity:1}
:is(.lens-stage[data-lens="0"] .ov-0,.lens-stage[data-lens="1"] .ov-1,.lens-stage[data-lens="2"] .ov-2) .tag:nth-child(1) {transition-delay:1s}
:is(.lens-stage[data-lens="0"] .ov-0,.lens-stage[data-lens="1"] .ov-1,.lens-stage[data-lens="2"] .ov-2) .tag:nth-child(2) {transition-delay:1.5s}
:is(.lens-stage[data-lens="0"] .ov-0,.lens-stage[data-lens="1"] .ov-1,.lens-stage[data-lens="2"] .ov-2) .tag:nth-child(3) {transition-delay:2s}
:is(.lens-stage[data-lens="0"] .ov-0,.lens-stage[data-lens="1"] .ov-1,.lens-stage[data-lens="2"] .ov-2) .tag:nth-child(4) {transition-delay:2.5s}
:is(.lens-stage[data-lens="0"] .ov-0,.lens-stage[data-lens="1"] .ov-1,.lens-stage[data-lens="2"] .ov-2) .tag:nth-child(5) {transition-delay:3s}
:is(.lens-stage[data-lens="0"] .ov-0,.lens-stage[data-lens="1"] .ov-1,.lens-stage[data-lens="2"] .ov-2) .tag:nth-child(6) {transition-delay:3.5s}
@media (prefers-reduced-motion:reduce) {.cam,.lensimg,.lens-ov,.lens-ov .tag {transition:none !important}}
.fam-fig {margin:.2rem 0 .7rem;border-radius:12px;overflow:hidden;border:1px solid var(--line)}
.fam-fig svg {display:block;width:100%;height:auto;background:#efe9df}
.fam-img {transform-box:view-box;transform-origin:0 0;transition:transform 1.3s cubic-bezier(.45,0,.2,1)}
.fam-bubble {transform-box:fill-box;transform-origin:10% 100%;opacity:0;transform:scale(.8);transition:opacity .2s ease,transform .2s ease}
.fam-fig.zoomed .fam-bubble {opacity:1;transform:scale(1);transition:opacity .4s ease 1.1s,transform .45s cubic-bezier(.3,1.5,.6,1) 1.1s}
@keyframes famIn {from {opacity:0;transform:scale(1.06)} to {opacity:1;transform:scale(1)}}
@keyframes bubbleIn {from {opacity:0;transform:scale(.8)} to {opacity:1;transform:scale(1)}}
@media (prefers-reduced-motion:reduce) {.fam-img,.fam-bubble,.fam-fig.zoomed .fam-bubble {transition:none}}
#scene-4 .evidence {max-width:46rem}
.ask-fig {position:relative;container-type:inline-size;max-width:46rem;margin:.4rem 0 .2rem;border-radius:13px;overflow:hidden;border:1px solid var(--line)}
.ask-fig svg {display:block;width:100%;height:auto;background:#efe9df}
.ask-img {transform-box:view-box;transform-origin:60% 50%;animation:famIn 1.4s cubic-bezier(.2,.7,.2,1) both}
.say {position:absolute;background:#fff;border:1.5px solid #8a9d90;border-radius:12px;color:var(--ink);font-weight:750;line-height:1.4;box-shadow:0 2px 6px rgba(0,0,0,.06)}
.say::after {content:"";position:absolute;bottom:-9px;width:14px;height:14px;background:#fff;border-right:1.5px solid #8a9d90;border-bottom:1.5px solid #8a9d90;transform:rotate(45deg)}
.say-staff {padding:.45em .75em;font-size:clamp(.82rem,3.4cqw,1.15rem);display:block;text-align:center;text-wrap:balance;word-break:auto-phrase;animation:bubbleIn .45s cubic-bezier(.3,1.5,.6,1) .9s both}
.say-staff.empty {color:#5b7068;font-weight:600;word-break:keep-all;overflow-wrap:anywhere}
.say-staff .nb {white-space:nowrap}
.say-staff.long {font-size:clamp(.75rem,2.9cqw,1rem);line-height:1.35;padding:.4em .65em}
/* 狭い画面で21字以上の問いは、話し手の顔を隠さないよう絵の下に出す（しっぽは上向き） */
@container (max-width:480px) {.ask-fig .say-staff.mid {position:relative;left:auto;right:auto;top:auto;margin:.6rem .6rem .6rem;font-size:.9rem;line-height:1.45;padding:.5em .75em} .ask-fig .say-staff.mid::after {top:-8.5px;bottom:auto;transform:rotate(225deg)}}
/* 既定の問いは build が文節の切れ目（BudouX）に <wbr> を入れる。.empty（既定の問いを出しているとき）は keep-all で <wbr> と句読点でだけ折り、
   word-break:auto-phrase の効かないブラウザ（Safari など）でも語の途中で折れない。1行に入らない文節だけは overflow-wrap:anywhere で折る（v1.7）。
   そのとき句読点などが行の頭に来ないよう、build が前の1字と .nb（折らない）でまとめている。
   絵の幅が文字16.8字分以下（文字を大きくしたとき・ページ倍率200%）は、既定の問いも絵の下に出し、顔を隠さず全部読めるようにする（しっぽの横位置は case.css）。
   しきい値：文字125%の 390px は絵の幅が16.6字分で、絵の中のままだと5事例で職員の顔にかかった（計測）。通常の文字の大きさの 320px は17.1字分で、この規則は働かない */
@container (max-width:16.8em) {.ask-fig .say-staff {position:relative;left:auto;right:auto;top:auto;margin:.6rem;font-size:.9rem;line-height:1.45;padding:.5em .75em} .ask-fig .say-staff::after {top:-8.5px;bottom:auto;transform:rotate(225deg)}}
.say-a {padding:.6em .85em;display:flex;align-items:center;gap:.3em;font-size:clamp(.8rem,3cqw,1rem);animation:bubbleIn .45s cubic-bezier(.3,1.5,.6,1) 1.5s both}
.say-a::after {left:calc(50% - 5px);width:10px;height:10px;bottom:-6.5px}
.say-a span {width:.45em;height:.45em;border-radius:50%;background:#5c796e;animation:dot 1.2s ease-in-out infinite}
.say-a span:nth-child(2) {animation-delay:.2s} .say-a span:nth-child(3) {animation-delay:.4s}
@keyframes dot {0%,60%,100% {opacity:.25} 30% {opacity:1}}
/* 文字を大きくしたとき、「…」の吹き出しが本人の顔にかからないよう絵の幅に合わせる */
@container (max-width:15rem) {.say-a {font-size:max(3.6cqw,.5rem);padding:.45em .6em}}
@media (prefers-reduced-motion:reduce) {.ask-img,.say-staff,.say-a,.say-a span {animation:none}}
.review-fold {margin-top:1rem}
.review-fold .review {margin-top:.2rem}
.write-fig {max-width:46rem;margin:.5rem 0 0;border-radius:13px;overflow:hidden;border:1px solid var(--line)}
.write-fig svg {display:block;width:100%;height:auto;background:#efe9df}
.write-img {transform-box:view-box;transform-origin:50% 50%;animation:famIn 1.4s cubic-bezier(.2,.7,.2,1) both}
.write-think {transform-box:fill-box;transform-origin:0 100%;animation:bubbleIn .45s cubic-bezier(.3,1.5,.6,1) 1s both}
@media (prefers-reduced-motion:reduce) {.write-img,.write-think {animation:none}}
.clue-head {display:flex;align-items:baseline;justify-content:space-between;gap:.4rem .8rem;flex-wrap:wrap;margin-top:1.2rem}
.clue-head .prompt {margin:0}
.clue-progress {display:flex;align-items:center;gap:.5rem;font-size:.88rem;font-weight:750;color:var(--green)}
.clue-progress .dots {display:flex;gap:4px}
.clue-progress .dots i {width:10px;height:10px;border-radius:50%;background:#d6e0d8}
.clue-progress .dots i.on {background:var(--green)}
.clue-note {margin-top:.15rem}
.clues {display:grid;gap:.65rem;margin-top:.7rem;max-width:46rem;container-type:inline-size}
.clue {position:relative;display:grid;grid-template-columns:7.2rem 1fr auto;align-items:center;gap:.75rem;padding:.5rem;border:1.5px solid var(--line);border-radius:14px;background:#fff;text-align:start;transition:transform .15s ease,box-shadow .15s ease,border-color .15s ease}
.clue:enabled:hover {background:#fff;border-color:var(--green);transform:translateY(-2px);box-shadow:0 6px 14px rgba(23,78,59,.12)}
.clue svg {display:block;width:100%;aspect-ratio:16/9;height:auto;border-radius:9px;background:#efe9df}
.clue-body {display:grid;gap:.05rem}
.clue-no {font-size:.74rem;font-weight:750;letter-spacing:.05em;color:var(--muted)}
.clue-body strong {font-size:1.06rem;line-height:1.35}
.clue-teaser {font-size:.84rem;font-weight:600;color:var(--muted);line-height:1.45}
.clue-go {font-size:.82rem;font-weight:750;color:#fff;background:var(--green);border-radius:20px;padding:.25rem .65rem;white-space:nowrap}
.clue[aria-pressed="true"] {border-color:var(--green);background:var(--mint);box-shadow:inset 0 0 0 1.5px var(--green)}
.clue[aria-pressed="true"] .clue-go {background:#fff;color:var(--green);box-shadow:inset 0 0 0 1.5px var(--green)}
.clue .seen {position:absolute;top:.35rem;left:.35rem;font-size:.72rem;font-weight:800;color:#fff;background:rgba(23,78,59,.9);border-radius:10px;padding:.05rem .45rem}
.clues:not(.touched) .clue-go {animation:nudge 1.6s ease-in-out infinite}
.clues:not(.touched) .clue:nth-child(2) .clue-go {animation-delay:.2s}
.clues:not(.touched) .clue:nth-child(3) .clue-go {animation-delay:.4s}
@keyframes nudge {0%,70%,100% {transform:translateX(0)} 35% {transform:translateX(4px)}}
.clue-detail {max-width:46rem;display:grid;gap:.6rem;margin-top:.7rem}
.clue-detail .box {border-radius:12px;padding:.65rem .85rem;background:#fff;border:1px solid var(--line)}
.clue-detail .box b {display:flex;align-items:center;gap:.4rem;font-size:.86rem;letter-spacing:.03em}
.clue-detail .box.check {border-inline-start:4px solid var(--green)} .clue-detail .box.check b {color:var(--green)}
.clue-detail .box.wait {border-inline-start:4px solid #c99a4a;background:#fffaf0} .clue-detail .box.wait b {color:#6b4f1d}
.clue-done {max-width:46rem;margin-top:.8rem;border-radius:12px;padding:.7rem .9rem;background:var(--green);color:#fff;font-weight:700}
@media (min-width:45rem) {.clue-detail {grid-template-columns:1fr 1fr}}
/* 幅が足りないときは、見出しが約6字幅を保てるよう、まず絵を小さくし、それでも足りなければ縦積みにする */
@container (max-width:20rem) {.clue {grid-template-columns:5rem 1fr auto;gap:.5rem}}
@container (max-width:17rem) {.clue {grid-template-columns:1fr} .clue-go {justify-self:start}}
@media (prefers-reduced-motion:reduce) {.clues .clue-go {animation:none !important} .clue {transition:none}}
.why {margin-top:.9rem}
.why p + p {margin-top:.45rem}

.card h3,.evidence h3,.review h3 {margin-bottom:.45rem}
.options {display:grid;gap:.52rem;margin-top:.65rem}
.option {display:block;width:100%}
.feedback {background:var(--mint);margin-top:.5rem}
.feedback strong,.rubric strong {display:block;color:var(--green)}
.feedback p + p,.review p + p,.card p + p {margin-top:.4rem}
.twocol {display:grid;gap:.75rem}
.evidence {background:#f0f5ee}
.evidence details,.evidence button:first-of-type {margin-top:.25rem}
.evidence blockquote {font-weight:720;margin-block:.45rem}
#family-info {margin-top:.8rem}
.revisions {display:flex;flex-wrap:wrap;gap:.5rem;margin-top:.6rem}
.revisions button {flex:1 1 auto;text-align:center;background:var(--white)}
.revisions button[aria-pressed="true"] {background:var(--mint)}
.note-field {display:grid;gap:.25rem;margin-top:1rem}
.note-field label {font-weight:700}
textarea,select {width:100%;border:1px solid var(--edge);border-radius:9px;padding:.52rem .65rem;background:#fff}
textarea {resize:vertical;min-height:5rem}
textarea::placeholder {color:#5f7268;opacity:1}
.memo {white-space:pre-wrap}
.review {margin-top:1rem}
.review dl {display:grid;gap:.5rem}
dt {font-weight:700;color:var(--green)}
dd {margin:0}
.done-box {margin-top:.7rem;background:var(--mint)}
/* 現場へ戻る問い（v1.6、第2期）：5/5 の振り返りの後に、折りたたまずに出す */
.return-field {margin-top:1rem;border:1px solid var(--line);border-left:4px solid var(--green);border-radius:12px;padding:.85rem 1rem;background:var(--white)}
.return-field h3 {margin:0 0 .45rem;color:var(--green)}
.return-field ul {margin:0;padding-left:1.2rem;display:grid;gap:.35rem}
.return-next-label {margin:.75rem 0 .3rem;font-weight:700}
.return-next {color:var(--muted)}
.development {margin-top:1.2rem}
.development > summary {font-size:1.1rem}
.development details {margin-inline:.25rem}
.rubric,.lens-list,.sources {display:grid;gap:.65rem}
.rubric label {display:block;font-weight:700;margin-bottom:.45rem}
.rubric .feedback {padding:.55rem .7rem}
.lens-list dl {display:grid;gap:.45rem;margin-top:.55rem}
.graph {display:grid;gap:.65rem;text-align:center}
.hub {background:var(--green);color:#fff;border-radius:10px;padding:.6rem;font-weight:750}
.axis {position:relative;border:1px solid var(--line);border-top:3px solid var(--green);border-radius:10px;padding:.55rem;background:white}
.bridge {background:var(--warm);color:#57492c;border-radius:10px;padding:.6rem}
.axis-data {padding-inline-start:1.25rem}
.axis-data li + li {margin-top:.55rem}
code {font-size:.83em}
.foot {border-top:1px solid var(--line);padding-block:.65rem 1.5rem;display:flex;justify-content:space-between;align-items:center;gap:.5rem;flex-wrap:wrap}
.reset {background:transparent;font-size:.875rem}
.sr-only {position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
@media (min-width:45rem) {
  .graph {grid-template-columns:repeat(3,minmax(0,1fr))}
  .twocol {grid-template-columns:repeat(2,minmax(0,1fr))}
  .graph .hub,.graph .bridge {grid-column:1/-1}
  .axis::before,.axis::after {content:"";position:absolute;left:50%;height:.65rem;border-left:1px solid var(--edge)}
  .axis::before {bottom:calc(100% + 3px)}
  .axis::after {top:100%}
}
.review-note {margin-top:.55rem}
@media (prefers-reduced-motion:reduce) {.lens-hint path:first-child,.lens-hint text {animation:none}}
.notice {max-width:46rem;margin:.2rem 0 .8rem;padding:.7rem .9rem;border:1px solid #c99a4a;border-inline-start:5px solid #b4761f;border-radius:12px;background:#fffaf0;color:#4a3410;display:grid;gap:.2rem}
.notice strong {color:#7a4a0c;letter-spacing:.03em}
.limit-note {margin-top:.6rem;padding:.65rem .85rem;border:1px solid #c99a4a;border-inline-start:4px solid #b4761f;border-radius:12px;background:#fffaf0}
.limit-note strong {display:block;color:#7a4a0c;font-size:.9rem}
.limit-note p {margin:.25rem 0 0}

/* 公開・回遊（v1.3） */
.subtitle {margin:-.35rem 0 .9rem;color:var(--muted);font-weight:700;font-size:1.02rem}
.next-learning {margin:1.4rem 0 1rem;padding:1rem 1.1rem;border:1px solid var(--line);border-radius:14px;background:#fff}
.next-learning h3 {margin:0 0 .4rem;font-size:1.05rem}
.next-learning h4 {margin:.9rem 0 .3rem;font-size:.9rem;color:var(--muted)}
.next-learning ul {margin:0;padding-left:1.1rem}
.next-learning li {margin:.35rem 0;line-height:1.55}
.next-learning li a {font-weight:700;color:var(--green)}
.next-learning li span {display:block;color:var(--muted);font-size:.88rem}
.foot small a {color:inherit}

/* この先の学び：最初の3〜4件のあとを「もっと学ぶ」にたたむ／戻り先3つは「もっと考える」の後ろ（v1.5） */
.more-learning {margin-top:.8rem}
.more-learning > summary {padding-inline:.1rem}
.return-links ul {list-style:none;margin:1rem 0;padding:0;display:flex;flex-wrap:wrap;gap:.25rem 1.25rem}
.return-links a {display:inline-flex;align-items:center;min-height:44px;font-weight:700;color:var(--green)}

/* 事例ページから一覧へ戻る導線（2026-11-11 taku 指摘） */
.series-link {color:inherit;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:.2em}
.series-link:hover {text-decoration-thickness:2px}
.to-list {font-size:.85rem;font-weight:750;color:var(--green);text-decoration:none;padding:.35rem .7rem;border:1px solid var(--line);border-radius:999px;background:var(--white)}
.to-list:hover {text-decoration:underline}
.mast .crumbs {max-width:62rem;margin:auto;padding:0 clamp(.875rem,3vw,2rem) .5rem;font-size:.8rem;color:var(--muted)}
.mast .crumbs ol {list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:.1rem .3rem}
.mast .crumbs li + li::before {content:"›";margin-right:.3rem}
.mast .crumbs a {color:var(--muted)}
/* データ表と模式図（v1.6、第2期 E028 など）：2/5 の記録の下。書かない事例には出ない */
.chart {margin:.8rem 0 0;background:var(--white);border:1px solid var(--line);border-radius:12px;padding:.5rem}
.chart > svg {display:block;width:100%;height:auto}
.chart figcaption {font-size:.875rem;padding:.4rem .25rem 0}
.legend {display:flex;flex-wrap:wrap;gap:.35rem 1rem;margin:.25rem 0 0;padding:0;list-style:none}
.legend li {display:flex;align-items:center;gap:.4rem}
.legend svg {width:28px;height:18px;flex:none}
.table-wrap {margin-top:.8rem;overflow-x:auto;border:1px solid var(--line);border-radius:12px;background:var(--white)}
/* 表が枠より広いとき（狭い画面・文字200%）だけ、続きのある側の端に影を出す（v1.7、JS なし）。
   影（scroll）は枠の端に固定し、白い覆い（local）は表の端と一緒に動く。はみ出さない表では覆いが影に重なって何も見えない */
.table-wrap {background:linear-gradient(to right,var(--white) 1.5rem,rgba(255,255,255,0)) left center/2.5rem 100% no-repeat local,
  linear-gradient(to left,var(--white) 1.5rem,rgba(255,255,255,0)) right center/2.5rem 100% no-repeat local,
  radial-gradient(farthest-side at 0 50%,rgba(25,54,46,.28),rgba(25,54,46,0)) left center/14px 100% no-repeat scroll,
  radial-gradient(farthest-side at 100% 50%,rgba(25,54,46,.28),rgba(25,54,46,0)) right center/14px 100% no-repeat scroll,var(--white)}
/* 「表は横に動かせます」：枠を横に動かせるときだけ出す。scroll() のタイムラインは動かせない枠では働かないので、高さ0・非表示のまま。
   scroll-driven animations に対応しないブラウザでは出ない（影だけ）。右端まで動かすと消える。読み上げでは読まない（表はそのまま読める） */
.table-wrap .scroll-hint {position:sticky;left:0;margin:0;height:0;overflow:hidden;visibility:hidden;font-size:.8125rem;color:var(--muted);padding:0 .75rem}
@supports (animation-timeline:scroll()) {.table-wrap .scroll-hint {animation:tableHint linear both;animation-timeline:scroll(nearest inline)}}
@keyframes tableHint {0%,94% {visibility:visible;height:auto;padding:.2rem .75rem .45rem} 95%,100% {visibility:hidden;height:auto;padding:.2rem .75rem .45rem}}
.table-wrap:focus-visible {outline:3px solid var(--green);outline-offset:2px}
table.data {border-collapse:collapse;width:100%;font-size:.9375rem}
/* 表の題は <caption> にしない：caption は表の幅に広がり、狭い画面・文字200%で枠の中を横に動かすと右が切れる（sticky も効かない）。
   枠の中の段落にして position:sticky で左に留め、幅は枠の見える幅で折り返す。表との関連は table の aria-labelledby で残す */
.table-wrap .table-cap {position:sticky;left:0;margin:0;text-align:left;font-weight:700;font-size:.9375rem;padding:.6rem .75rem .25rem}
table.data th,table.data td {padding:.5rem .4rem;border-top:1px solid #e1e7e3;text-align:right}
table.data td {overflow-wrap:normal;white-space:nowrap}
table.data th[scope="col"] {font-size:.8125rem;background:var(--mint);vertical-align:bottom}
table.data th[scope="row"] {text-align:left}
table.data tr.focus th,table.data tr.focus td {font-weight:700;background:#fff8e6}
table.data tr.total th,table.data tr.total td {border-top:2px solid var(--edge)}
table.data .flag {display:block;width:max-content;font-size:.6875rem;font-weight:700;border:1px solid #8a6a3a;color:#6b4e22;border-radius:4px;padding:0 4px}
.table-note {margin-top:.35rem}
@media (max-width:359px) {table.data,.table-wrap .table-cap {font-size:.8125rem}}
#family-text.lines {white-space:pre-line}
