/* Motion「AIと、届ける。」— 動く講演資料
 * 外枠は作品集の tokens.css、資料の中は --d-* の色で組む。
 * 動きは .slide.is-current のときだけ再生し、通常のスタイルを「組み上がった後」にする。
 */

:root { color-scheme: light; }

.deck {
  --d-paper: #F4F1EA;   /* 資料の紙 */
  --d-card: #FBFAF6;    /* カード */
  --d-ink: #1D1C17;     /* 墨  paper 15.3:1 */
  --d-muted: #57534A;   /* 補助文 paper 6.9:1 */
  --d-faint: #8F897D;   /* 選ばれなかった候補（大きめの文字のみ） */
  --d-rule: #D6D0C3;
  --d-blush: #F58989;   /* 紅の面。上の文字は墨 7.17:1 */
  --d-blush-soft: #FBD9D3;
  --d-red: #D9483F;     /* 点と線（図形のみ。文字に使わない） */
  --d-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --d-ease-io: cubic-bezier(0.65, 0, 0.35, 1);
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-body); font-size: var(--fs-body); line-height: var(--lh-body); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-underline-offset: .25em; }
button { font: inherit; color: inherit; cursor: pointer; }
button:disabled { cursor: default; opacity: .45; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; top: -5rem; left: 1rem; padding: .75rem 1rem; background: var(--card); z-index: 20; }
.skip:focus { top: 1rem; }

/* ---------- 外枠 ---------- */
.masthead { max-width: 1320px; margin: auto; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.5rem; padding: 20px var(--gutter); border-bottom: 1px solid var(--rule); font-size: var(--fs-meta); }
.back { min-height: 24px; display: inline-flex; align-items: center; }
.masthead__name { margin-left: auto; letter-spacing: .14em; font-weight: 700; }
.fiction { color: var(--ink-muted); }
main { max-width: 1320px; margin: auto; padding: 0 var(--gutter); }
.intro { padding: clamp(28px, 5vw, 56px) 0 clamp(20px, 3vw, 32px); display: grid; gap: var(--s-3); max-width: 46rem; }
.intro__kind { margin: 0; display: inline-flex; align-items: center; gap: .6em; font-size: var(--fs-small); font-weight: 700; }
.intro__kind::before { content: ''; width: .9em; height: .9em; border-radius: 50%; background: var(--crimson); }
.intro__title { margin: 0; font-size: var(--fs-h2); line-height: var(--lh-heading); letter-spacing: -.02em; font-feature-settings: "palt"; }
.intro__lead { margin: 0; color: var(--ink-muted); }
.no-js { margin: 0 0 var(--s-4); padding: var(--s-4); background: var(--card); border-radius: var(--r-thumb); }

/* ---------- 資料の枠 ---------- */
.player { display: grid; gap: var(--s-4); }
.frame {
  container: frame / inline-size;
  /* 横長 16:9 の値（単位はフレームの幅） */
  --pad-x: 6cqw; --pad-top: 5.4cqw; --pad-bottom: 6.6cqw;
  --fs-k: 1.2cqw; --fs-h: 3.9cqw; --fs-l: 1.45cqw;
  --fs-a: 1.32cqw; --fs-a-lg: 1.9cqw; --fs-foot: .95cqw;
  --node: 7.6cqw;
  display: grid; gap: var(--s-5);
}
.slide {
  position: relative; overflow: hidden; aspect-ratio: 16 / 9;
  padding: var(--pad-top) var(--pad-x) var(--pad-bottom);
  display: grid; grid-template-columns: minmax(0, 38fr) minmax(0, 62fr); column-gap: 4.5cqw; align-items: center;
  background: var(--d-paper); color: var(--d-ink); border-radius: var(--r-sheet);
  font-size: var(--fs-a); line-height: 1.7;
  word-break: auto-phrase; line-break: strict;
}
.slide p, .slide ul, .slide ol, .slide h2 { margin: 0; }
.slide ul, .slide ol { padding: 0; list-style: none; }

.js .frame { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--r-sheet); background: var(--d-paper); touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.js .slide { position: absolute; inset: 0; aspect-ratio: auto; border-radius: 0; opacity: 0; visibility: hidden; transition: opacity .32s var(--ease-ui), visibility 0s linear .32s; }
.js .slide.is-current { opacity: 1; visibility: visible; transition: opacity .32s var(--ease-ui); }

/* 全画面：資料の比率を保って中央に置く */
.deck:fullscreen { display: grid; place-items: center; background: #11110E; }
.deck:fullscreen .frame { width: min(100vw, calc(100vh * 16 / 9)); border-radius: 0; }

/* 縦長の画面では 5:8 の縦型に組み替える */
@media (max-width: 40rem) {
  .frame {
    --pad-x: 7cqw; --pad-top: 8cqw; --pad-bottom: 12cqw;
    --fs-k: 3.2cqw; --fs-h: 7.2cqw; --fs-l: 3.55cqw;
    --fs-a: 3.3cqw; --fs-a-lg: 4.4cqw; --fs-foot: 2.6cqw;
    --node: 14cqw;
  }
  .slide, .js .frame { aspect-ratio: 5 / 8; }
  .js .slide { aspect-ratio: auto; }
  .slide { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; row-gap: 6cqw; align-content: start; }
  .deck:fullscreen .frame { width: min(100vw, calc(100vh * 5 / 8)); }
}

/* ---------- スライド共通 ---------- */
.slide__text { display: grid; gap: 1.4em; align-self: center; font-size: var(--fs-l); }
.kicker { display: inline-flex; align-items: center; gap: .6em; font-size: var(--fs-k); font-weight: 700; letter-spacing: .06em; }
.kicker::before { content: ''; width: .7em; height: .7em; border-radius: 50%; background: var(--d-red); }
.title { font-size: var(--fs-h); font-weight: 900; line-height: 1.28; letter-spacing: -.02em; font-feature-settings: "palt"; }
.lead { font-size: var(--fs-l); line-height: 1.85; color: var(--d-muted); }
.slide__text .kicker { margin-bottom: -.4em; }
.slide__foot { position: absolute; left: var(--pad-x); right: var(--pad-x); bottom: calc(var(--pad-bottom) * .38); display: flex; justify-content: space-between; font-size: var(--fs-foot); color: var(--d-muted); letter-spacing: .06em; }
.art { position: relative; min-width: 0; }
.dot { display: inline-block; width: 1.5cqw; height: 1.5cqw; border-radius: 50%; background: var(--d-red); }
.slide--wide { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; row-gap: 3.2cqw; align-content: center; }
.slide--wide .slide__text { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 40rem) {
  .dot { width: 3.2cqw; height: 3.2cqw; }
  .slide--wide { row-gap: 6cqw; align-content: start; }
}

/* ---------- 01 表紙 ---------- */
.slide--cover { display: block; }
.cover { position: relative; z-index: 1; display: grid; gap: 2.4cqw; padding-top: 3cqw; }
.cover__label { font-size: var(--fs-k); font-weight: 700; letter-spacing: .06em; color: var(--d-muted); }
.cover__title { font-size: 10cqw; font-weight: 900; line-height: 1.12; letter-spacing: -.03em; font-feature-settings: "palt"; }
.cover__row { display: block; white-space: nowrap; }
.mask { display: inline-block; overflow: hidden; vertical-align: bottom; padding: .04em 0 .06em; margin: -.04em 0 -.06em; }
.mask > span { display: inline-block; }
.cover__dot { position: relative; width: .2em; height: .2em; margin-left: .04em; vertical-align: baseline; }
.cover__line { position: absolute; left: 100%; top: calc(50% - .15cqw); width: 100cqw; height: .3cqw; background: var(--d-red); transform-origin: left center; }
.cover__sub { font-size: 1.9cqw; font-weight: 700; line-height: 1.6; }
.cover__sun { position: absolute; right: -8cqw; bottom: -15cqw; width: 44cqw; aspect-ratio: 1; border-radius: 50%; background: var(--d-blush); }
@media (max-width: 40rem) {
  .cover { gap: 5cqw; padding-top: 10cqw; }
  .cover__title { font-size: 17cqw; }
  .cover__sub { font-size: 4.6cqw; }
  .cover__line { height: .6cqw; top: calc(50% - .3cqw); }
  .cover__sun { width: 86cqw; right: -24cqw; bottom: -22cqw; }
}

/* ---------- 02 悩みの山 ---------- */
.pile { display: grid; padding: 0 5% 0 8%; }
.pile__card { display: flex; align-items: center; gap: .8em; padding: 1.15em 1.4em; background: var(--d-card); border: .14cqw solid var(--d-ink); border-radius: 1.1cqw; font-size: var(--fs-a-lg); font-weight: 700; line-height: 1.45; rotate: var(--r, 0deg); }
.pile__card + .pile__card { margin-top: -.5em; }
.pile__card:nth-child(2) { margin-left: 7%; margin-right: -4%; }
.pile__card:nth-child(3) { margin-left: 2%; }
/* 「あてはまる」のチェック。枠は墨、印は紅（図形のみ） */
.pile__box { flex: none; width: 1.5em; height: 1.5em; }
.pile__box rect { fill: var(--d-paper); stroke: var(--d-ink); stroke-width: 1.6; }
.pile__box path { fill: none; stroke: var(--d-red); stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; }
@media (max-width: 40rem) { .pile { padding: 0 4%; } .pile__card { border-width: .3cqw; border-radius: 2.4cqw; } }

/* ---------- 03 人とAIの流れ ---------- */
.flow { padding-bottom: 2cqw; }
.flow__nodes { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.flow__node { display: grid; justify-items: center; gap: .7em; text-align: center; font-size: var(--fs-a); color: var(--d-muted); }
.flow__node b { display: grid; place-items: center; width: var(--node); height: var(--node); border-radius: 50%; background: var(--d-card); border: .14cqw solid var(--d-ink); color: var(--d-ink); font-size: calc(var(--node) * .34); font-weight: 900; }
.flow__node--ai b { background: var(--d-ink); color: var(--d-paper); }
.flow__node--goal b { background: transparent; border: .14cqw dashed var(--d-red); }
.flow__node span { font-weight: 700; color: var(--d-ink); }
.flow__link { position: absolute; z-index: 0; top: calc(var(--node) / 2 - .1cqw); left: calc(12.5% + 25% * var(--n) + var(--node) / 2); width: calc(25% - var(--node)); height: .2cqw; background: var(--d-ink); transform-origin: left center; }
.flow__dot { position: absolute; z-index: 1; left: 87.5%; top: calc(var(--node) / 2); translate: -50% -50%; width: 2cqw; height: 2cqw; }
.flow__back { display: block; width: 100%; height: 7cqw; margin-top: .8em; overflow: visible; }
.flow__back path { fill: none; stroke: var(--d-red); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; }
.flow__back-label { margin-top: .4em; text-align: center; font-size: var(--fs-a); font-weight: 700; }
@media (max-width: 40rem) {
  .flow__node b, .flow__node--goal b { border-width: .3cqw; }
  .flow__link { height: .4cqw; top: calc(var(--node) / 2 - .2cqw); }
  .flow__dot { width: 4cqw; height: 4cqw; }
  .flow__back { height: 12cqw; }
}

/* ---------- 04 道のり ---------- */
.journey { --station: 2.2cqw; padding-top: 0; }
.journey__list { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.journey__list li { display: grid; justify-items: center; align-content: start; gap: 1em; text-align: center; padding: calc(var(--station) + 1.6cqw) .8cqw 0; position: relative; }
.journey__list li::before { content: ''; position: absolute; top: 0; left: 50%; translate: -50% 0; width: var(--station); height: var(--station); border-radius: 50%; background: var(--d-paper); border: .2cqw solid var(--d-ink); }
.journey__list b { font-size: var(--fs-a-lg); font-weight: 900; }
.journey__list span { width: 100%; padding: 1em .9em; background: var(--d-card); border: 1px solid var(--d-rule); border-radius: 1cqw; font-weight: 700; line-height: 1.55; }
.journey__list span::before { content: 'AI'; display: block; width: max-content; margin: 0 auto .5em; padding: .05em .7em; border-radius: 999px; background: var(--d-ink); color: var(--d-paper); font-size: .8em; letter-spacing: .06em; }
.journey__road { position: absolute; z-index: 0; top: calc(var(--station) / 2 - .1cqw); left: 10%; width: 80%; height: .2cqw; background: var(--d-ink); transform-origin: left center; }
.journey__dot { position: absolute; z-index: 2; top: calc(var(--station) / 2); left: 90%; translate: -50% -50%; width: 1.6cqw; height: 1.6cqw; }
@media (max-width: 40rem) {
  .journey { --station: 5cqw; }
  .journey__list { grid-template-columns: minmax(0, 1fr); row-gap: 3cqw; }
  .journey__list li { grid-template-columns: 22cqw minmax(0, 1fr); justify-items: start; align-items: center; gap: 0 3cqw; text-align: left; padding: 0 0 0 calc(var(--station) + 4cqw); }
  .journey__list li::before { top: 50%; left: 0; translate: 0 -50%; border-width: .45cqw; }
  .journey__list b { font-size: var(--fs-a-lg); }
  .journey__list span { padding: .7em .9em; border-radius: 2cqw; display: flex; align-items: center; gap: .6em; }
  .journey__list span::before { margin: 0; flex: none; }
  .journey__road { top: 6%; left: calc(var(--station) / 2 - .2cqw); width: .4cqw; height: 88%; transform-origin: center top; }
  .journey__dot { left: calc(var(--station) / 2); top: 94%; width: 3.4cqw; height: 3.4cqw; }
}

/* ---------- 05 声を分ける ---------- */
.prompt { display: grid; gap: .5em; justify-self: start; padding: 1em 1.3em; background: var(--d-ink); color: var(--d-paper); border-radius: 1cqw; }
.prompt__label { font-size: .78em; font-weight: 700; color: var(--d-blush); letter-spacing: .06em; }
.prompt__text { font-weight: 700; white-space: nowrap; }
.prompt__text > span { display: inline-block; }
.lead--note { display: flex; gap: .6em; font-size: var(--fs-a); }
.lead--note::before { content: ''; flex: none; width: .6em; height: .6em; margin-top: .65em; border-radius: 50%; background: var(--d-red); }
.sort { display: grid; gap: 1.6cqw; }
.sort__source { font-size: var(--fs-a); color: var(--d-muted); }
.sort__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4cqw; align-items: start; }
.sort__col { display: grid; gap: .9cqw; }
.sort__col ul { display: grid; gap: .9cqw; }
.sort__head { display: flex; justify-content: space-between; align-items: baseline; padding: .55em .9em; border-radius: 999px; background: var(--d-ink); color: var(--d-paper); font-weight: 700; }
.sort__col:first-child .sort__head { background: var(--d-blush); color: var(--d-ink); }
.sort__head small { font-size: .85em; }
.note { position: relative; padding: .9em 1em; background: var(--d-card); border: 1px solid var(--d-rule); border-left: .4cqw solid var(--d-blush); border-radius: .6cqw; font-weight: 700; line-height: 1.5; }
@media (max-width: 40rem) {
  .prompt { border-radius: 2cqw; }
  .sort { gap: 3cqw; }
  .sort__cols, .sort__col, .sort__col ul { gap: 2cqw; }
  .sort__head { flex-direction: column; align-items: flex-start; border-radius: 2cqw; padding: .5em .7em; }
  .note { padding: .5em .6em; border-left-width: 1cqw; border-radius: 1.4cqw; line-height: 1.4; }
  .slide:has(.sort) { row-gap: 4cqw; }
  .slide:has(.sort) .slide__text { gap: 1em; }
}

/* ---------- 06 芯を選ぶ ---------- */
.pick { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 3cqw; align-items: center; }
.pick__list-wrap { display: grid; gap: 1.2cqw; }
.pick__label { font-size: var(--fs-a); color: var(--d-muted); }
.pick__list { display: grid; gap: .3cqw; }
.pick__list li { position: relative; padding: .55em .8em; font-size: 1.65cqw; font-weight: 700; line-height: 1.4; color: var(--d-faint); border-bottom: 1px solid var(--d-rule); }
.pick__list .pick__chosen { color: var(--d-ink); }
.pick__mark { position: absolute; inset: 0; background: var(--d-blush-soft); border-left: .4cqw solid var(--d-red); transform-origin: left center; }
.pick__text { position: relative; }
.pick__core { position: relative; padding: 2.4cqw 2.4cqw 2.8cqw; background: var(--d-ink); color: var(--d-paper); border-radius: 1.4cqw; font-size: 2.9cqw; font-weight: 900; line-height: 1.3; letter-spacing: -.02em; font-feature-settings: "palt"; transform-origin: left center; }
.pick__core-label { display: block; width: max-content; margin-bottom: .9em; padding: .1em .8em; border-radius: 999px; background: var(--d-blush); color: var(--d-ink); font-size: .38em; letter-spacing: .1em; }
.pick__dot { width: .24em; height: .24em; margin-left: .06em; vertical-align: baseline; }
@media (max-width: 40rem) {
  .pick { grid-template-columns: minmax(0, 1fr); gap: 4cqw; }
  .pick__list li { font-size: var(--fs-a); padding: .45em .7em; }
  .pick__mark { border-left-width: 1cqw; }
  .pick__core { padding: 4.5cqw 5cqw 5cqw; font-size: 6.4cqw; border-radius: 3cqw; }
  .pick__core br { display: none; }
}

/* ---------- 07 書き分け ---------- */
.fan { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .8fr) minmax(0, 1fr); grid-template-rows: auto auto; grid-template-areas: "a core b" "c core d"; gap: 2.2cqw 1.6cqw; }
.fan__cards { display: contents; }
.fan__lines { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.fan__lines path { fill: none; stroke: var(--d-red); stroke-width: 2; stroke-dasharray: 1; vector-effect: non-scaling-stroke; }
.fan__core { grid-area: core; align-self: center; position: relative; z-index: 1; padding: 1.4cqw 1.3cqw; background: var(--d-ink); color: var(--d-paper); border-radius: 1.2cqw; font-size: var(--fs-a-lg); font-weight: 900; line-height: 1.4; text-align: center; }
.fan__core .dot { width: .3em; height: .3em; margin-left: .05em; vertical-align: baseline; }
.fan__card { position: relative; z-index: 1; display: grid; align-content: start; gap: .7em; min-height: 11cqw; padding: 1.1em 1.1em 1.2em; background: var(--d-card); border: .14cqw solid var(--d-ink); border-radius: 1.1cqw; font-weight: 700; line-height: 1.55; }
.fan__card b { width: max-content; max-width: 100%; padding: .1em .8em; border-radius: 999px; background: var(--d-ink); color: var(--d-paper); font-size: .82em; }
.fan__card--a { grid-area: a; --ux: 30%; --uy: 30%; }
.fan__card--b { grid-area: b; --ux: -30%; --uy: 30%; }
.fan__card--c { grid-area: c; --ux: 30%; --uy: -30%; }
.fan__card--d { grid-area: d; --ux: -30%; --uy: -30%; }
@media (max-width: 40rem) {
  .fan { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "a b" "core core" "c d"; grid-template-rows: auto auto auto; gap: 3cqw; }
  .fan__core { padding: 3cqw; border-radius: 2.4cqw; }
  .fan__core br { display: none; }
  .fan__card { min-height: 0; border-width: .3cqw; border-radius: 2.4cqw; padding: .8em .8em 1em; }
}

/* ---------- 08 比べる ---------- */
.ab { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4cqw 3cqw; }
.ab__col { display: grid; grid-template-rows: auto auto 1fr; gap: 1.2cqw; justify-items: start; }
.ab__tag { display: grid; place-items: center; width: 2.4em; height: 2.4em; border-radius: 50%; background: var(--d-ink); color: var(--d-paper); font-size: var(--fs-a-lg); font-weight: 900; line-height: 1; }
.ab__copy { font-size: var(--fs-a-lg); font-weight: 900; line-height: 1.45; min-height: 2.9em; }
.ab__diff { position: relative; display: inline-block; }
.ab__under { position: absolute; left: 0; right: .9em; bottom: -.05em; height: .14em; background: var(--d-red); transform-origin: left center; }
.ab__bar-box { position: relative; width: 100%; height: 14cqw; border-bottom: .14cqw solid var(--d-ink); }
.ab__bar { position: absolute; left: 18%; bottom: 0; width: 46%; height: var(--h); background: #C9C2B4; border-radius: .6cqw .6cqw 0 0; }
.ab__col--win .ab__bar { background: var(--d-blush); }
.ab__dot { position: absolute; left: 50%; top: -2.6cqw; translate: -50% 0; width: 1.8cqw; height: 1.8cqw; }
.ab__note { grid-column: 1 / -1; font-size: var(--fs-a); color: var(--d-muted); }
@media (max-width: 40rem) {
  .ab { gap: 3cqw 5cqw; }
  .ab__col { gap: 2.4cqw; }
  .ab__bar-box { height: 34cqw; border-bottom-width: .3cqw; }
  .ab__bar { border-radius: 1.4cqw 1.4cqw 0 0; }
  .ab__dot { top: -5cqw; width: 3.8cqw; height: 3.8cqw; }
}

/* ---------- 09 週の輪 ---------- */
.loop__box { position: relative; width: min(100%, 37cqw); aspect-ratio: 1; margin: 0 auto; }
.loop__ring { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.loop__ring circle { fill: none; stroke: var(--d-ink); stroke-width: .7; stroke-dasharray: 1; }
.loop__center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; font-size: 3.6cqw; font-weight: 900; line-height: 1.1; letter-spacing: -.02em; }
.loop__center small { font-size: .4em; font-weight: 700; letter-spacing: .1em; margin-bottom: .5em; }
.loop__step { position: absolute; translate: -50% -50%; padding: .45em 1.1em; border-radius: 999px; background: var(--d-blush); border: .14cqw solid var(--d-ink); font-size: var(--fs-a-lg); font-weight: 700; white-space: nowrap; line-height: 1.4; }
.loop__step--n { left: 50%; top: 5%; }
.loop__step--e { left: 95%; top: 50%; }
.loop__step--s { left: 50%; top: 95%; }
.loop__step--w { left: 5%; top: 50%; }
.loop__orbit { position: absolute; inset: 14%; border-radius: 50%; z-index: 1; }
.loop__dot { position: absolute; left: 50%; top: 0; translate: -50% -50%; width: 2cqw; height: 2cqw; }
@media (max-width: 40rem) {
  .loop__box { width: 70cqw; margin-top: 3cqw; }
  .loop__center { font-size: 8cqw; }
  .loop__step { border-width: .3cqw; font-size: var(--fs-a); }
  .loop__dot { width: 4cqw; height: 4cqw; }
}

/* ---------- 10 約束 ---------- */
.rules { display: grid; }
.rules li { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 1.3cqw; align-items: center; padding: 1cqw 0; border-bottom: 1px solid var(--d-rule); }
.rules li:first-child { border-top: 1px solid var(--d-rule); }
.check { grid-row: 1 / 3; width: 3cqw; height: 3cqw; border-radius: 50%; background: var(--d-blush-soft); }
.check path { fill: none; stroke: var(--d-red); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; }
.rules b { font-size: var(--fs-a-lg); font-weight: 900; line-height: 1.4; }
.rules span { color: var(--d-muted); line-height: 1.6; }
@media (max-width: 40rem) {
  .rules li { column-gap: 3cqw; padding: 2.2cqw 0; }
  .check { width: 7cqw; height: 7cqw; }
  .rules b { font-size: var(--fs-a-lg); }
}

/* ---------- 11 今週 ---------- */
.week { padding-top: 4.2cqw; }
.week__days { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2cqw; }
.week__day { display: grid; gap: .9em; align-content: start; padding: 1.6cqw 1.8cqw 2cqw; background: var(--d-blush-soft); border: .14cqw solid var(--d-ink); border-radius: 1.2cqw; font-size: 1.7cqw; font-weight: 700; line-height: 1.5; }
.week__day b { display: grid; place-items: center; width: 2em; height: 2em; border-radius: 50%; background: var(--d-ink); color: var(--d-paper); font-size: 1.1em; }
.week__hop { position: absolute; top: 1.6cqw; left: 83.33%; translate: -50% -50%; }
.week__hop .dot { display: block; width: 2cqw; height: 2cqw; }
@media (max-width: 40rem) {
  .week { padding-top: 9cqw; }
  .week__days { gap: 2.4cqw; }
  .week__day { padding: 3cqw 2.6cqw 3.6cqw; border-width: .3cqw; border-radius: 2.4cqw; font-size: var(--fs-a); }
  .week__hop { top: 3.6cqw; }
  .week__hop .dot { width: 4.2cqw; height: 4.2cqw; }
}

/* ---------- 12 結び ---------- */
.slide--end { display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; background: var(--d-ink); color: var(--d-paper); text-align: center; }
.slide--end .slide__foot { color: #BDB9AE; }
.end { position: relative; display: grid; justify-items: center; gap: 1.6cqw; }
.end__ring { width: 9cqw; height: 9cqw; overflow: visible; }
.end__ring circle { fill: none; stroke: var(--d-blush); stroke-width: 2.4; stroke-dasharray: 1; }
.end__dot { position: absolute; top: 3.35cqw; left: calc(50% - 1.15cqw); width: 2.3cqw; height: 2.3cqw; background: var(--d-blush); }
.end__title { margin-top: 1.4cqw !important; font-family: var(--font-statement); font-weight: 500; font-size: 5.4cqw; line-height: 1.3; letter-spacing: .04em; }
.end__sub { font-size: 2.2cqw; font-weight: 700; letter-spacing: .08em; }
.end__thanks { margin-top: 2cqw !important; font-size: var(--fs-a); color: #BDB9AE; }
@media (max-width: 40rem) {
  .slide--end { align-content: center; }
  .end { gap: 4cqw; }
  .end__ring { width: 22cqw; height: 22cqw; }
  .end__dot { top: 8.2cqw; left: calc(50% - 2.8cqw); width: 5.6cqw; height: 5.6cqw; }
  .end__title { font-size: 8.6cqw; }
  .end__sub { font-size: 4.6cqw; }
}

/* ---------- 動き（組み上がり） ---------- */
.js .slide.is-current .mo {
  animation-duration: var(--t, .8s);
  animation-delay: var(--d, 0s);
  animation-timing-function: var(--d-ease);
  animation-fill-mode: both;
}
.js .slide.is-current .mo-fade { animation-name: mo-fade; }
.js .slide.is-current .mo-fade-up { animation-name: mo-fade-up; }
.js .slide.is-current .mo-rise { animation-name: mo-rise; }
.js .slide.is-current .mo-pop { animation-name: mo-pop; }
.js .slide.is-current .mo-drop { animation-name: mo-drop; }
.js .slide.is-current .mo-draw-x { animation-name: mo-draw-x; }
.js .slide.is-current .mo-draw-path { animation-name: mo-draw-path; animation-timing-function: var(--d-ease-io); }
.js .slide.is-current .mo-type { animation-name: mo-type; animation-timing-function: steps(16, end); }
.js .slide.is-current .mo-fall { animation-name: mo-fall; --t: .9s; }
.js .slide.is-current .mo-sort { animation-name: mo-sort; --t: 2.5s; }
.js .slide.is-current .mo-grow { animation-name: mo-grow; }
.js .slide.is-current .mo-unfold { animation-name: mo-unfold; }
.js .slide.is-current .mo-grow-y { animation-name: mo-grow-y; animation-timing-function: var(--d-ease-io); }
.js .slide.is-current .mo-lit { animation-name: mo-lit; --t: .35s; animation-timing-function: linear; }
/* 二つの動きを重ねるもの（性質を分けて、互いに上書きしない） */
.js .slide.is-current .mo-fade-up.mo-dim { animation-name: mo-fade-up, mo-dim; animation-duration: .8s, .6s; animation-delay: var(--d), 1.7s; }
.js .slide.is-current .mo-fade-up.mo-land { animation-name: mo-fade-up, mo-land; animation-duration: .8s, .3s; animation-delay: var(--d), var(--land); }

/* 点の移動 */
.js .slide.is-current .flow__dot { animation: flow-dot 2.4s var(--d-ease-io) 1.5s both; }
.js .slide.is-current .journey__dot { animation: journey-dot 2.2s var(--d-ease-io) 1.5s both; }
.js .slide.is-current .loop__orbit { animation: loop-orbit 2.4s linear .95s both; }
.js .slide.is-current .week__hop { animation: week-x 3.2s linear .3s both; }
.js .slide.is-current .week__hop .dot { animation: week-y 3.2s linear .3s both; }

@keyframes mo-fade { from { opacity: 0; } }
@keyframes mo-fade-up { from { opacity: 0; translate: 0 1.6cqw; } }
@keyframes mo-rise { from { translate: 0 108%; } }
@keyframes mo-pop { from { opacity: 0; scale: .4; } }
@keyframes mo-drop { from { opacity: 0; translate: 0 -2.4em; } 40% { opacity: 1; } }
@keyframes mo-draw-x { from { scale: 0 1; } }
@keyframes mo-draw-y { from { scale: 1 0; } }
@keyframes mo-draw-path { from { stroke-dashoffset: 1; } }
@keyframes mo-type { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes mo-fall { from { opacity: 0; translate: 0 -24cqw; rotate: 0deg; } 50% { opacity: 1; } }
@keyframes mo-sort {
  0% { opacity: 0; scale: .7; translate: var(--dx) var(--dy); rotate: var(--r); }
  18% { opacity: 1; scale: 1; translate: var(--dx) var(--dy); rotate: var(--r); }
  48% { translate: var(--dx) var(--dy); rotate: var(--r); animation-timing-function: cubic-bezier(0.65, 0, 0.35, 1); }
  100% { translate: 0 0; rotate: 0deg; }
}
@keyframes mo-grow { from { opacity: 0; scale: .72; } }
@keyframes mo-unfold { from { opacity: 0; scale: .8; translate: var(--ux) var(--uy); } }
@keyframes mo-grow-y { from { height: 0; } }
@keyframes mo-lit { from { background-color: var(--d-paper); } }
@keyframes mo-dim { from { color: var(--d-ink); } }
@keyframes mo-land { from { background-color: var(--d-card); } }

@keyframes flow-dot {
  0% { left: 12.5%; opacity: 0; }
  8% { left: 12.5%; opacity: 1; }
  30%, 40% { left: 37.5%; }
  64%, 74% { left: 62.5%; }
  100% { left: 87.5%; opacity: 1; }
}
@keyframes journey-dot { 0% { left: 10%; opacity: 0; } 10% { left: 10%; opacity: 1; } 100% { left: 90%; opacity: 1; } }
@keyframes journey-dot-v { 0% { top: 6%; opacity: 0; } 10% { top: 6%; opacity: 1; } 100% { top: 94%; opacity: 1; } }
@keyframes loop-orbit { from { opacity: 0; rotate: 0deg; } 4% { opacity: 1; } to { rotate: 360deg; } }
@keyframes week-x {
  0%, 29.7% { left: 16.67%; }
  0% { opacity: 0; }
  12% { opacity: 1; }
  29.7% { animation-timing-function: cubic-bezier(0.45, 0, 0.55, 1); }
  51.6%, 60.9% { left: 50%; }
  60.9% { animation-timing-function: cubic-bezier(0.45, 0, 0.55, 1); }
  82.8%, 100% { left: 83.33%; opacity: 1; }
}
@keyframes week-y {
  0% { translate: 0 -5cqw; animation-timing-function: cubic-bezier(0.55, 0, 1, 0.45); }
  20%, 29.7% { translate: 0 0; animation-timing-function: cubic-bezier(0, 0.55, 0.45, 1); }
  40.6% { translate: 0 -4cqw; animation-timing-function: cubic-bezier(0.55, 0, 1, 0.45); }
  51.6%, 60.9% { translate: 0 0; animation-timing-function: cubic-bezier(0, 0.55, 0.45, 1); }
  71.8% { translate: 0 -4cqw; animation-timing-function: cubic-bezier(0.55, 0, 1, 0.45); }
  82.8%, 100% { translate: 0 0; }
}

@media (max-width: 40rem) {
  .js .slide.is-current .journey__road { animation-name: mo-draw-y; }
  .js .slide.is-current .journey__dot { animation-name: journey-dot-v; }
}

/* 動きを止める（ボタン・OSの設定）：組み上がった後の状態をそのまま見せる */
.is-still .slide, .is-still .slide * { animation: none !important; transition: none !important; }

/* ---------- 操作 ---------- */
.controls { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: var(--s-3) var(--s-4); }
.controls__sub { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); justify-content: center; }
.btn-nav { min-height: 44px; padding: 0 1.4em; border-radius: var(--r-pill); border: 1px solid var(--ink); background: transparent; font-weight: 700; transition: background-color var(--dur-ui) var(--ease-ui), scale var(--dur-press) var(--ease-ui); }
.btn-nav--next { background: var(--ink); color: var(--card); }
.btn-nav:not(:disabled):active, .btn-text:not(:disabled):active { scale: var(--press-scale); }
.btn-text { min-height: 44px; padding: 0 .4em; border: 0; background: none; font-weight: 700; font-size: var(--fs-small); text-decoration: underline; text-underline-offset: .3em; display: inline-grid; align-content: center; gap: 4px; }
.btn-text[aria-pressed="true"] { text-decoration-color: var(--crimson); text-decoration-thickness: 3px; }
.auto__time { display: block; height: 2px; background: var(--rule); }
.auto__time i { display: block; height: 100%; width: calc(var(--p, 0) * 100%); background: var(--ink); }
.counter { display: grid; justify-items: center; gap: 6px; font-weight: 700; font-variant-numeric: tabular-nums; }
.counter p { margin: 0; font-size: var(--fs-small); }
.counter__track { display: block; width: min(100%, 320px); height: 4px; border-radius: 2px; background: var(--rule); overflow: hidden; }
.counter__track i { display: block; height: 100%; width: calc(var(--p, 0) * 100%); background: var(--crimson); transition: width var(--dur-ui) var(--ease-ui); }
.help { justify-self: center; text-align: center; font-size: var(--fs-small); }
.help summary { cursor: pointer; min-height: 44px; display: inline-flex; align-items: center; font-weight: 700; }
.help__body { display: grid; justify-items: center; gap: var(--s-2); max-width: 40rem; padding-bottom: var(--s-3); color: var(--ink-muted); }
.help__body p { margin: 0; }
.help__note { font-size: var(--fs-meta); }
html:not(.js) .controls, html:not(.js) .help { display: none; }

/* ---------- 台本 ---------- */
.script { margin: clamp(32px, 6vw, 64px) 0 0; padding: clamp(20px, 3vw, 40px); background: var(--card); border-radius: var(--r-sheet); }
.script__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s-2) var(--s-5); margin-bottom: var(--s-5); }
.script__head h2 { margin: 0; font-size: var(--fs-h3); }
.script__head p { margin: 0; color: var(--ink-muted); font-size: var(--fs-small); }
.script__head .btn-text { margin-left: auto; }
.script__list { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--s-5); }
.js .script:not(.script--all) .script__item:not(.is-current) { display: none; }
.script__item { display: grid; gap: var(--s-2); }
.script--all .script__item.is-current .script__meta span:first-child { background: var(--crimson); }
.script__meta { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3); font-weight: 700; font-size: var(--fs-small); }
.script__meta span:first-child { display: grid; place-items: center; width: 2.2em; height: 2.2em; border-radius: 50%; background: var(--paper); font-variant-numeric: tabular-nums; }
.script__time { color: var(--ink-muted); font-weight: 400; }
.script__body { margin: 0; max-width: 46em; font-size: 1.0625rem; line-height: 2; }

.credits { max-width: 1320px; margin: clamp(32px, 6vw, 64px) auto 0; padding: var(--s-6) var(--gutter) var(--s-7); border-top: 1px solid var(--rule); font-size: var(--fs-meta); color: var(--ink-muted); }
.credits p { margin: 0 0 var(--s-2); }

@media (prefers-reduced-motion: reduce) {
  .btn-nav, .counter__track i { transition: none; }
}
