/* 南信AI相談所 — 導入事例のページ用（style.css の色・角丸・影・動きに合わせる）
   場面の中の寸法は em。.scene の文字サイズを cqw で決めているので、窓の幅に合わせて全体が伸び縮みする */
:root {
  --c-auto: #8fc4e6; /* 機械 */
  --c-ai: #f0a868;   /* AI */
  --c-man: #a8d0a4;  /* 人 */
  --ok: #1d6b46;
  --ok-soft: #dff3e6;
  --zebra: rgba(37, 99, 235, .10);        /* 明るい面のしま模様 */
  --zebra-dark: rgba(120, 170, 255, .09); /* 暗い面のしま模様 */
}

/* ---------- ヘッダー（メニューが1つ増えた分の調整） ---------- */
.nav a { white-space: nowrap; }
.nav a[aria-current] { opacity: 1; }
.nav a[aria-current]::after { transform: scaleX(1); }
@media (min-width: 900px) and (max-width: 1099px) {
  .brand small { display: none; }
  .nav { gap: 18px; }
}

/* ---------- 事例カード（一覧ページとトップページで共通） ---------- */
.cards.case-cards { grid-template-columns: 1fr; }
.case-card { display: grid; padding: 0; color: inherit; text-decoration: none; }
.case-card:hover { transform: translateY(-4px); }
.cc-visual {
  display: grid; place-items: center; align-content: center; gap: 14px; min-height: 170px; padding: 26px 18px;
  color: #e6edf2; background: radial-gradient(70% 90% at 90% 0%, rgba(36, 95, 134, .6), transparent 70%), radial-gradient(50% 60% at 0% 100%, rgba(240, 168, 104, .2), transparent 70%), var(--night);
}
.cc-flow { display: flex; align-items: center; gap: 8px; }
.cc-flow span { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--c, var(--c-auto)); background: rgba(255, 255, 255, .06); }
.cc-flow span.ai { --c: var(--c-ai); }
.cc-flow span.man { --c: var(--c-man); }
.cc-flow svg { width: 23px; height: 23px; fill: none; stroke: var(--c, var(--c-auto)); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.cc-flow i { width: 7px; height: 7px; border-top: 1.5px solid rgba(255, 255, 255, .5); border-right: 1.5px solid rgba(255, 255, 255, .5); transform: rotate(45deg); }
.cc-visual small { font-size: 12.5px; font-weight: 700; letter-spacing: .04em; color: #b5c4ce; }
.cc-body { padding: 26px 24px 28px; }
.cc-tag { display: inline-block; padding: 2px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .04em; color: var(--primary); background: rgba(36, 95, 134, .1); }
.case-card h3 { margin: 10px 0 6px; font-size: clamp(19px, 2.4vw, 23px); line-height: 1.5; }
.cc-stats { display: grid; margin: 18px 0 0; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }
.cc-stats div { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0 12px; padding: 9px 14px; }
.cc-stats div:nth-child(even) { background: var(--zebra); }
.cc-stats dt { font-size: 12.5px; font-weight: 700; color: var(--muted); }
.cc-stats dd { margin: 0 0 0 auto; font-size: 13px; font-weight: 700; color: var(--navy); white-space: nowrap; }
.cc-stats b { font-family: var(--font-en); font-size: 20px; font-weight: 700; }
.cc-stats s { color: var(--muted); font-weight: 500; }
.cc-more { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; font-size: 15px; font-weight: 900; color: var(--primary); }
.cc-more svg, .more-link svg, .back-link svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .4s var(--ease); }
.case-card:hover .cc-more svg, .more-link a:hover svg { transform: translateX(4px); }
.more-link, .back-link { margin-top: 26px; }
.back-link { text-align: center; }
.more-link a, .back-link a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 900; color: var(--primary); text-decoration: underline; text-decoration-thickness: 1px; text-decoration-color: rgba(36, 95, 134, .45); text-underline-offset: 6px; }
.back-link a:hover svg { transform: translateX(-4px); }
@media (min-width: 800px) {
  .case-card { grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); }
  .cc-body { padding: 32px 34px 34px; }
  .cc-stats { grid-template-columns: repeat(3, 1fr); }
  .cc-stats div { display: block; padding: 11px 16px; }
  .cc-stats div:nth-child(even) { background: none; }
  .cc-stats div + div { border-left: 1px solid var(--line); }
  .cc-stats dt { margin-bottom: 2px; }
}

/* ---------- 一覧の棚（導入事例・制作見本） ---------- */
.case-shelf + .case-shelf { margin-top: 64px; }
.shelf-head { margin-bottom: 20px; }
.shelf-title { margin: 0 0 4px; font-size: clamp(21px, 2.6vw, 26px); line-height: 1.4; color: var(--navy); }
.shelf-head p { margin: 0; color: var(--muted); }
.home-sample { margin-top: 18px; }

/* ---------- 制作見本のカード（写真・「見本」の札・できることの小札） ---------- */
.cc-photo { position: relative; overflow: hidden; min-height: 210px; padding: 0; background: #f7e6df; }
.cc-photo img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; transition: transform .8s var(--ease); }
.sample-card:hover .cc-photo img { transform: scale(1.04); }
.cc-ribbon { position: absolute; top: 14px; left: 14px; padding: 3px 14px; border-radius: 999px; font-size: 12px; font-weight: 900; letter-spacing: .12em; color: #fff; background: rgba(11, 27, 41, .86); }
.cc-tag.sample { color: #a3462c; background: rgba(240, 168, 104, .2); }
.cc-feats { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; }
.cc-feats li { padding: 4px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 700; color: var(--navy); border: 1px solid var(--line); background: rgba(255, 255, 255, .7); }

/* ---------- 事例の頭 ---------- */
.case-hero {
  position: relative; isolation: isolate; overflow: hidden;
  padding: 108px 0 clamp(100px, 12vw, 160px);
  color: #fff; background: linear-gradient(180deg, #0b1b29 0%, #122b3b 52%, #1f3f54 100%);
}
.case-hero-glow {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(52% 46% at 92% 4%, rgba(36, 95, 134, .62), transparent 70%),
    radial-gradient(40% 36% at 78% 100%, rgba(240, 168, 104, .3), transparent 72%),
    radial-gradient(44% 40% at 0% 88%, rgba(138, 167, 140, .22), transparent 70%);
}
.case-hero [data-in] { animation: fadeUp .95s var(--ease) backwards; animation-delay: var(--d, 0s); }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-bottom: 18px; font-size: 12.5px; color: rgba(255, 255, 255, .7); }
.crumbs a { text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .3); }
.crumbs a:hover { color: #fff; }
.crumbs i { font-style: normal; opacity: .6; }
.crumbs b { font-weight: 700; color: #fff; }
.case-hero h1 { margin: 18px 0 14px; font-weight: 900; letter-spacing: .02em; line-height: 1.3; font-size: clamp(22px, 6.1vw, 56px); text-shadow: 0 2px 30px rgba(5, 14, 22, .45); }
.case-hero h1 em { font-style: normal; color: #ffd2a6; }
.case-hero.list { padding-bottom: clamp(96px, 12vw, 150px); }
.case-hero.list h1 { font-size: clamp(30px, 6vw, 54px); }

.case-stats { display: grid; gap: 12px; margin: 30px 0 0; }
.case-stats > div { padding: 16px 20px 18px; border-radius: 20px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .17); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1); }
.case-stats dt { font-size: 13px; font-weight: 700; color: #b9cad5; }
.case-stats dd { margin: 2px 0 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; font-size: 16px; font-weight: 900; }
.case-stats dd b { font-family: var(--font-en); font-size: clamp(32px, 4.2vw, 46px); font-weight: 700; line-height: 1.2; letter-spacing: .01em; color: #ffd2a6; }
.case-stats dd s { font-size: 17px; font-weight: 700; color: #9fb2be; }
.case-stats dd i { font-style: normal; color: var(--dawn); }
.case-stats small { display: block; margin-top: 2px; font-size: 12px; color: #9fb2be; }
.case-stats .est { border-style: dashed; background: rgba(255, 255, 255, .035); }
.case-stats .est dd b { color: #cfe3ee; }

/* 流れの全体図 */
.route-wrap { margin-top: 14px; padding: 14px 12px 14px; border-radius: var(--radius); background: rgba(7, 18, 28, .46); border: 1px solid rgba(255, 255, 255, .12); }
.route-cap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 16px; padding-inline: 6px; font-size: 13px; font-weight: 700; color: #cfe0ea; }
.legend { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: #a9bbc7; }
.lg { width: 10px; height: 10px; border-radius: 50%; }
.lg.auto { background: linear-gradient(90deg, var(--c-auto) 50%, var(--c-ai) 50%); }
.lg.man { margin-left: 10px; background: var(--c-man); }
.route { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.route li { position: relative; --c: var(--c-auto); }
.route li:nth-child(3), .route li:nth-child(4), .route li:nth-child(5), .route li:nth-child(7) { --c: var(--c-ai); }
.route li.man { --c: var(--c-man); }
.route button {
  display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: 8px; width: 100%; min-height: 54px; padding: 7px 4px 7px 6px;
  font: inherit; color: inherit; text-align: left; cursor: pointer; border-radius: 14px; background: none; border: 1px solid transparent;
  transition: background .3s, border-color .3s;
}
.route button:hover { background: rgba(255, 255, 255, .08); }
.route button.is-now { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .2); }
.route .ic { grid-row: span 2; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--c); background: rgba(255, 255, 255, .05); transition: background .3s; }
.route .ic svg { width: 19px; height: 19px; fill: none; stroke: var(--c); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: stroke .3s; }
.route button.is-now .ic { background: var(--c); }
.route button.is-now .ic svg { stroke: #0b1b29; }
.route b { align-self: end; font-size: 13px; font-weight: 900; line-height: 1.35; white-space: nowrap; }
.route small { align-self: start; font-size: 11px; line-height: 1.35; color: #9fb2be; white-space: nowrap; }

/* ---------- これまで（FAXの束） ---------- */
.before-list { margin-top: 20px; }
.fine { margin-top: 14px; font-size: 12.5px; line-height: 1.7; color: var(--muted); }
.stack-fig { position: relative; display: grid; place-items: center; min-height: 360px; }
.stack { position: relative; width: min(240px, 62%); aspect-ratio: 5 / 6.4; }
.stack .sheet { position: absolute; inset: 0; border-radius: 6px; background: #fffdf9; border: 1px solid var(--line); box-shadow: 0 10px 24px rgba(22, 48, 63, .12); }
.stack .sh5 { rotate: -9deg; translate: -16px 10px; }
.stack .sh4 { rotate: 7deg; translate: 14px 6px; }
.stack .sh3 { rotate: -4deg; translate: -6px 2px; }
.stack .sh2 { rotate: 3deg; translate: 6px -2px; }
.stack .sh1 { rotate: -1.5deg; display: grid; align-content: start; gap: 13px; padding: 22px 20px; }
.stack .sh1 em { justify-self: start; padding: 0 4px 2px; font-family: "Zen Kurenaido", var(--font-jp); font-style: normal; font-size: 22px; line-height: 1.4; letter-spacing: .2em; color: var(--navy); border-bottom: 2px solid var(--navy); }
.stack .sh1 i { display: block; height: 8px; border-radius: 4px; background: rgba(22, 48, 63, .14); }
.stack .sh1 i.short { width: 62%; }
.stack-note { position: absolute; padding: 10px 16px 11px; border-radius: 16px; font-size: 12.5px; font-weight: 700; line-height: 1.5; color: var(--muted); background: rgba(255, 253, 249, .96); border: 1px solid var(--line); box-shadow: 0 16px 36px rgba(22, 48, 63, .16); }
.stack-note b { display: block; font-size: 22px; font-weight: 900; line-height: 1.3; color: var(--navy); }
.stack-note.n1 { left: 2%; top: 8%; }
.stack-note.n2 { right: 2%; bottom: 9%; }
.stack-fig.is-in .stack-note { animation: floaty 7s ease-in-out 1.4s infinite; }
.stack-fig.is-in .stack-note.n2 { animation-delay: 3.2s; }

/* ---------- 流れを1歩ずつ（窓と8つの段階） ---------- */
.fx { display: grid; gap: 16px; margin-top: clamp(30px, 5vw, 48px); align-items: start; scroll-margin-top: 80px; }
.fx > * { min-width: 0; }
.fx-window { border-radius: 22px; overflow: hidden; background: linear-gradient(180deg, #15303f, #0f2532); border: 1px solid rgba(255, 255, 255, .11); box-shadow: 0 40px 90px rgba(0, 0, 0, .42), inset 0 1px 0 rgba(255, 255, 255, .08); }
.fx-window .win-bar { padding: 9px 12px 9px 16px; min-height: 50px; }
.fx-window .win-bar span { margin-left: 0; font: inherit; letter-spacing: inherit; color: inherit; }
.fx-now { display: inline-flex; align-items: center; gap: 7px; margin-left: 8px; font-family: var(--font-en); font-size: 16px; font-weight: 700; letter-spacing: .06em; color: #fff; }
.fx-now small { font-size: 11px; font-weight: 600; letter-spacing: .14em; color: #7f95a3; }
.fx-now .who { margin-left: 4px; }
.fx-play { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 4px 13px; border-radius: 999px; font: inherit; font-size: 12px; font-weight: 700; color: #d5e0e7; cursor: pointer; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .2); transition: background .3s; }
.fx-play[hidden] { display: none; }
.fx-play:hover { background: rgba(255, 255, 255, .14); }
.fx-play svg { width: 12px; height: 12px; flex: none; }
.fx-play .pa { fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; }
.fx-play .pl { fill: currentColor; display: none; }
.fx-play[aria-pressed="true"] .pa { display: none; }
.fx-play[aria-pressed="true"] .pl { display: block; }

/* だれがやるかの印（機械・AI・人） */
.who { --c: var(--c-auto); display: inline-flex; align-items: center; gap: 6px; padding: 1px 10px; border-radius: 999px; font-family: var(--font-jp); font-style: normal; font-size: 12px; font-weight: 700; letter-spacing: .02em; line-height: 1.7; white-space: nowrap; color: var(--c); background: rgba(255, 255, 255, .07); background: color-mix(in srgb, var(--c) 15%, transparent); border: 1px solid rgba(255, 255, 255, .2); border-color: color-mix(in srgb, var(--c) 46%, transparent); }
.who::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.who.ai { --c: var(--c-ai); }
.who.man { --c: var(--c-man); }

.fx-steps { position: relative; display: flex; gap: 10px; overflow-x: auto; padding: 2px 2px 10px; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .28) transparent; }
.fx-step {
  position: relative; overflow: hidden; flex: 0 0 min(80%, 320px); scroll-snap-align: center;
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; align-content: start; column-gap: 11px;
  text-align: left; cursor: pointer; font: inherit; color: inherit; padding: 12px 15px 14px; border-radius: 16px;
  background: rgba(255, 255, 255, .035); border: 1px solid rgba(255, 255, 255, .09);
  transition: background .4s, border-color .4s;
}
.fx-step:hover { background: rgba(255, 255, 255, .07); }
.fx-step[aria-selected="true"] { background: rgba(255, 255, 255, .09); border-color: rgba(240, 168, 104, .6); }
.fx-step .n { font-family: var(--font-en); font-size: 13px; font-weight: 600; letter-spacing: .12em; color: #7f95a3; transition: color .4s; }
.fx-step[aria-selected="true"] .n { color: var(--dawn); }
.fx-step .who { grid-column: 3; grid-row: 1; font-size: 11px; }
.fx-step .ttl { grid-column: 2; grid-row: 1; font-size: 15.5px; font-weight: 900; line-height: 1.5; color: #fff; }
.fx-step .desc { grid-column: 1 / -1; display: grid; grid-template-rows: 1fr; }
.fx-step .desc > span { overflow: hidden; padding-top: 6px; font-size: 13.5px; font-weight: 500; line-height: 1.75; color: #b5c4ce; }
.fx-step.is-waiting .tbar { opacity: 1; }
.fx-step.is-waiting .tbar i { animation: fill var(--wait, 7s) linear forwards; }

/* 場面の入れ物 */
.fx-scenes { position: relative; container-type: inline-size; aspect-ratio: 4 / 3; overflow: hidden; background: radial-gradient(70% 60% at 82% 0%, rgba(36, 95, 134, .34), transparent 70%), radial-gradient(50% 50% at 0% 100%, rgba(138, 167, 140, .12), transparent 70%), #0d2230; }
.fx-window .demo-note { padding: 11px 18px 14px; border-top: 1px solid rgba(255, 255, 255, .08); line-height: 1.7; }
.scene { position: absolute; inset: 0; font-size: 13px; font-size: clamp(8px, 2.2cqw, 20px); line-height: 1.5; color: #e6edf2; opacity: 0; visibility: hidden; transition: opacity .6s var(--ease), visibility 0s .6s; }
.scene.is-on, html:not(.anim) .scene.s1 { opacity: 1; visibility: visible; transition: opacity .6s var(--ease), visibility 0s; }
.scene svg { display: block; }

/* 場面で共通の部品 */
.scene .note-chip { position: absolute; left: 50%; bottom: 3.2%; translate: -50% 0; padding: .4em 1.2em; border-radius: 999px; font-size: .92em; font-weight: 700; white-space: nowrap; color: #d5e0e7; background: rgba(7, 18, 28, .6); border: 1px solid rgba(255, 255, 255, .16); }
.scene .tag-chip { position: absolute; left: 5%; top: 5%; display: inline-flex; align-items: center; gap: .55em; padding: .32em 1.1em .32em .9em; border-radius: 999px; font-size: .95em; font-weight: 900; color: #10222e; background: var(--dawn); }
.scene .tag-chip.ring::before { content: ""; width: .55em; height: .55em; border-radius: 50%; background: #10222e; }
.scene .paper { position: absolute; width: 16em; padding: 1em 1.2em 1.2em; border-radius: .3em; font-family: "Zen Kurenaido", var(--font-jp); font-weight: 400; color: #22313b; background: #fffdf7; box-shadow: 0 1.2em 2.6em rgba(0, 0, 0, .42); }
.scene .p-head { display: flex; align-items: center; justify-content: space-between; }
.scene .p-head b { font-size: 1.35em; font-weight: 400; letter-spacing: .3em; }
.scene .p-head span { padding: 0 .5em; border-radius: .3em; font-family: var(--font-en); font-size: .7em; font-weight: 700; letter-spacing: .14em; border: 1px solid currentColor; opacity: .6; }
.scene .p-to { margin-top: .3em; padding-bottom: .15em; font-size: 1.05em; border-bottom: .12em solid #22313b; }
.scene .paper ul { list-style: none; margin: .5em 0 0; padding: 0; }
.scene .paper li { padding: .2em .2em; font-size: 1.12em; white-space: nowrap; border-bottom: 1px dashed rgba(34, 49, 59, .3); }
/* かすれて「3」にも見える「8」 */
.scene .g8 { position: relative; display: inline-block; }
.scene .g8 b { font-weight: 400; }
.scene .g8 b:first-child { opacity: .34; }
.scene .g8 b:last-child { position: absolute; left: 0; top: 0; clip-path: inset(0 0 0 44%); }
.scene .conf { display: inline-flex; align-items: center; gap: .35em; padding: 0 .7em; border-radius: 999px; font-size: .86em; font-weight: 700; white-space: nowrap; }
.scene .conf i { width: .5em; height: .5em; border-radius: 50%; background: currentColor; }
.scene .conf.hi { color: var(--ok); background: var(--ok-soft); }
.scene .conf.mid { color: #7a5a12; background: #f7ecc6; }
.scene .conf.lo { color: #a3401c; background: #ffdcc9; }
.scene .bcard { overflow: hidden; border-radius: .9em; color: var(--ink); background: var(--card); border-top: .35em solid var(--k, var(--primary)); box-shadow: 0 .8em 1.8em rgba(0, 0, 0, .35); }
.scene .bcard header { display: flex; align-items: baseline; justify-content: space-between; gap: .5em; padding: .5em .9em .3em; }
.scene .bcard header b { font-size: 1.12em; font-weight: 900; color: var(--navy); }
.scene .bcard header small { font-family: var(--font-en); font-size: .76em; font-weight: 600; color: var(--muted); white-space: nowrap; }
.scene .bcard ul { list-style: none; margin: 0; padding: 0 .4em; }
.scene .bcard li { padding: .28em .5em; border-radius: .35em; font-size: .95em; font-weight: 700; white-space: nowrap; }
.scene .bcard li:nth-child(even) { background: var(--zebra); }
.scene .bcard footer { margin: .35em .9em .6em; font-size: .78em; font-weight: 700; text-align: right; text-decoration: underline; text-underline-offset: .2em; color: var(--primary); }

/* --- 1 複合機がFAXを受け取る --- */
.s1 .wave { position: absolute; right: 0; top: 6%; width: 60%; height: auto; overflow: visible; }
.s1 .wave path { fill: none; stroke: rgba(240, 168, 104, .7); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 6 8; }
.s1 .mfp { position: absolute; left: 6%; top: 27%; width: 17em; }
.s1 .mfp svg { width: 100%; height: auto; overflow: visible; }
.scene .cap { display: block; margin-top: .3em; font-size: .9em; font-weight: 700; text-align: center; color: #b5c4ce; white-space: nowrap; }
.s1 .p-main { left: 52%; top: 17%; rotate: 1.5deg; }
.s1.is-on .wave path { animation: waveFlow 3.6s linear infinite; }
.s1.is-on .tag-chip { animation: fxFrom .7s var(--ease) .2s both; }
.s1.is-on .tag-chip.ring::before { animation: bellPulse 1.6s ease-out infinite; }
.s1.is-on .lcd { animation: softBlink 1.3s ease-in-out infinite; }
.s1.is-on .lamp { animation: softBlink .9s ease-in-out infinite; }
.s1.is-on .outsheet { animation: sheetOut 1.2s var(--ease) .8s both; }
.s1.is-on .p-main { animation: paperOut 1.5s var(--ease) 1.7s both; }
.s1.is-on .note-chip { animation: fxFade .8s ease 3.4s both; }

/* --- 2 メールの添付ファイルで転送 --- */
.s2 { --fly-x: 22.9em; --fly-y: -5.8em; --fly-mx: 11em; --fly-my: -9.5em; }
.s2 .node-tile { position: absolute; left: 6%; top: 38%; width: 8.5em; padding: 1em .6em .8em; border-radius: 1.2em; font-size: .95em; font-weight: 700; text-align: center; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .16); }
.s2 .node-tile svg { width: 3.4em; height: 3.4em; margin: 0 auto .3em; fill: none; stroke: var(--c-auto); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.s2 .rail { position: absolute; left: 25%; top: 33%; width: 21%; height: 17%; overflow: visible; }
.s2 .rail path { fill: none; stroke: rgba(255, 255, 255, .3); stroke-width: 1.5; stroke-dasharray: 3 5; vector-effect: non-scaling-stroke; }
.scene .pdf-chip { display: inline-flex; align-items: center; gap: .35em; padding: .15em .7em .15em .5em; border-radius: .5em; font-family: var(--font-en); font-size: .86em; font-weight: 700; white-space: nowrap; color: #7a3d12; background: var(--dawn-soft); }
.scene .pdf-chip svg { width: 1.2em; height: 1.2em; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linejoin: round; }
.s2 .fly { position: absolute; left: 7.5%; top: 66%; z-index: 3; opacity: 0; box-shadow: 0 .5em 1.2em rgba(0, 0, 0, .4); }
.s2 .mail { position: absolute; right: 5%; top: 19%; width: 22em; overflow: hidden; border-radius: 1em; color: var(--ink); background: var(--card); box-shadow: 0 1.2em 2.6em rgba(0, 0, 0, .42); }
.s2 .mail-bar { display: flex; align-items: center; gap: .5em; padding: .55em 1em; font-size: .95em; font-weight: 700; color: #fff; background: var(--navy); }
.s2 .mail-bar svg { width: 1.35em; height: 1.35em; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
.s2 .mail dl { margin: 0; padding: .5em .5em .6em; }
.s2 .mail dl > div { display: grid; grid-template-columns: 4em minmax(0, 1fr); align-items: center; padding: .4em .6em; border-radius: .4em; }
.s2 .mail dl > div:nth-child(even) { background: var(--zebra); }
.s2 .mail dt { font-size: .84em; font-weight: 700; color: var(--muted); }
.s2 .mail dd { margin: 0; font-weight: 700; }
.s2 .att dd { display: grid; justify-items: start; }
.s2 .att dd > * { grid-area: 1 / 1; }
.s2 .slot { width: 9em; height: 1.75em; border-radius: .5em; border: 1px dashed rgba(22, 48, 63, .3); }
.s2 .sendbar { height: .3em; margin: 0 1.1em; border-radius: 1em; overflow: hidden; background: rgba(22, 48, 63, .1); }
.s2 .sendbar i { display: block; height: 100%; transform-origin: 0 50%; background: linear-gradient(90deg, var(--sage), var(--dawn)); }
.s2 .sent { display: flex; align-items: center; gap: .4em; padding: .5em 1.1em .8em; font-size: .92em; font-weight: 700; color: var(--ok); }
.s2 .sent svg { width: 1.1em; height: 1.1em; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.s2.is-on .node-tile { animation: fxFrom .7s var(--ease) .1s both; }
.s2.is-on .mail { animation: fxFrom .8s var(--ease) .3s both; }
.s2.is-on .fly { animation: flyPdf 1.8s var(--ease) .9s both; }
.s2.is-on .pdf-chip.in { animation: fxPop .5s var(--ease) 2.6s both; }
.s2.is-on .sendbar i { animation: growX 1.3s linear 3.2s both; }
.s2.is-on .sent { animation: fxFrom .6s var(--ease) 4.6s both; }
.s2.is-on .note-chip { animation: fxFade .8s ease 1.2s both; }

/* --- 3 AIアシスタントが受け取る --- */
.s3 { --env-x: 6.4em; --env-y: 10.2em; }
.s3 .env { position: absolute; left: 6%; top: 12%; width: 3em; opacity: 0; }
.s3 .env svg { width: 100%; height: auto; fill: none; stroke: #fff; stroke-width: 1.5; stroke-linejoin: round; }
.s3 .orb-wrap { position: absolute; left: 9%; top: 26%; width: 13em; height: 13em; }
.s3 .orb-wrap .ring { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(240, 168, 104, .55); }
.s3 .orb-wrap .r1 { scale: .7; opacity: .55; }
.s3 .orb-wrap .r2 { scale: .88; opacity: .34; }
.s3 .orb-wrap .r3 { scale: 1.05; opacity: .18; }
.s3 .orb { position: absolute; inset: 27%; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 35% 30%, #fff1df, #f0a868 58%, #c8763a); box-shadow: 0 0 2.6em rgba(240, 168, 104, .55); }
.s3 .orb svg { width: 48%; height: 48%; fill: #fff; filter: drop-shadow(0 .1em .3em rgba(120, 60, 20, .5)); }
.s3 .orb-wrap .cap { position: absolute; left: 50%; top: 100%; translate: -50% 0; }
.s3 .talk { position: absolute; left: 44%; top: 27%; width: 22em; display: grid; gap: .8em; justify-items: start; }
.s3 .bubble { display: flex; align-items: center; gap: .5em; margin: 0; padding: .6em 1.1em; border-radius: 1.1em 1.1em 1.1em .3em; font-weight: 700; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .17); }
.s3 .bubble svg { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: var(--dawn); stroke-width: 1.3; stroke-linejoin: round; }
.s3 .bubble.b3 { border-color: rgba(240, 168, 104, .7); background: rgba(240, 168, 104, .13); }
.s3.is-on .env { animation: envIn 1.4s var(--ease) .3s both; }
.s3.is-on .orb { animation: orbBreath 3.2s ease-in-out infinite; }
.s3.is-on .orb-wrap .ring { animation: ringPulse 3s ease-out infinite; }
.s3.is-on .orb-wrap .r2 { animation-delay: 1s; }
.s3.is-on .orb-wrap .r3 { animation-delay: 2s; }
.s3.is-on .bubble { animation: fxFrom .6s var(--ease) both; }
.s3.is-on .b1 { animation-delay: 1.6s; }
.s3.is-on .b2 { animation-delay: 2.8s; }
.s3.is-on .b3 { animation-delay: 4s; }
.s3.is-on .note-chip { animation: fxFade .8s ease 1s both; }

/* --- 4 手書きの文字を読み取る --- */
.s4 .p-scan { left: 5%; top: 11%; overflow: hidden; }
.s4 .paper li.doubt { background: rgba(240, 168, 104, .34); }
.s4 .beam { position: absolute; left: 0; right: 0; top: 0; height: 2.4em; opacity: 0; background: linear-gradient(180deg, rgba(240, 168, 104, 0), rgba(240, 168, 104, .5)); border-bottom: 2px solid var(--dawn); }
.s4 .mid-spark { position: absolute; left: 43.4%; top: 43%; width: 3.2em; }
.s4 .mid-spark svg { width: 100%; height: auto; fill: var(--dawn); filter: drop-shadow(0 0 .5em rgba(240, 168, 104, .7)); }
.s4 .read { position: absolute; right: 5%; top: 16%; width: 18.6em; padding: .8em .8em .9em; border-radius: 1em; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .15); }
.scene .read-h, .scene .fix-h, .scene .zoom-h { font-size: .8em; font-weight: 700; letter-spacing: .14em; }
.scene .read-h, .scene .fix-h { margin: 0 .4em .5em; color: #8fa5b2; }
.s4 .read ol { list-style: none; margin: 0; padding: 0; }
.s4 .read li { display: grid; grid-template-columns: minmax(0, 1fr) 2.2em 3.4em 1.4em; align-items: center; gap: .45em; padding: .4em .7em; border-radius: .5em; font-weight: 700; }
.s4 .read li:nth-child(even) { background: var(--zebra-dark); }
.s4 .read li.doubt { background: rgba(240, 168, 104, .2); box-shadow: inset 0 0 0 1px rgba(240, 168, 104, .75); }
.s4 .read li b { font-family: var(--font-en); font-size: 1.12em; font-weight: 700; text-align: right; color: #fff; }
.s4 .read li i { font-style: normal; font-size: .9em; color: #b5c4ce; }
.s4 .read li em { grid-column: 4; width: 1.5em; height: 1.5em; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: .88em; font-weight: 900; color: #10222e; background: var(--dawn); }
.s4.is-on .beam { animation: scanBeam 3.2s ease-in-out .5s both; }
.s4.is-on .paper li.doubt { animation: markIn .6s ease 2.7s both; }
.s4.is-on .mid-spark svg { animation: twinkle 2.2s ease-in-out infinite; }
.s4.is-on .read li { animation: rowIn .5s var(--ease) both; }
.s4.is-on .read li:nth-child(1) { animation-delay: 1.2s; }
.s4.is-on .read li:nth-child(2) { animation-delay: 1.7s; }
.s4.is-on .read li:nth-child(3) { animation-delay: 2.2s; }
.s4.is-on .read li:nth-child(4) { animation-delay: 2.7s; }
.s4.is-on .read li:nth-child(5) { animation-delay: 3.2s; }
.s4.is-on .read li em { animation: fxPop .5s var(--ease) 3.7s both; }
.s4.is-on .note-chip { animation: fxFade .8s ease 4s both; }

/* --- 5 表に書き込む（自信度つき） --- */
.s5 .sheetui { position: absolute; left: 5%; right: 5%; top: 4.4em; overflow: hidden; border-radius: .9em; color: var(--ink); background: #fff; box-shadow: 0 1.2em 2.6em rgba(0, 0, 0, .42); }
.s5 .sheet-bar { display: flex; align-items: center; gap: .6em; padding: .5em 1em; background: #eef3f0; border-bottom: 1px solid rgba(22, 48, 63, .12); }
.s5 .gs { display: grid; grid-template-columns: repeat(2, .44em); gap: .12em; }
.s5 .gs i { height: .44em; border-radius: .1em; background: var(--sage); }
.s5 .gs i:first-child { background: var(--primary); }
.s5 .sheet-bar b { font-weight: 900; color: var(--navy); }
.s5 .sheet-bar small { margin-left: auto; font-size: .8em; font-weight: 700; color: var(--muted); }
.s5 table { width: 100%; border-collapse: collapse; font-size: .96em; }
.s5 th { padding: .35em .8em; font-size: .82em; font-weight: 700; text-align: left; white-space: nowrap; color: var(--muted); background: #f6f8f7; border-bottom: 1px solid rgba(22, 48, 63, .14); }
.s5 td { padding: .42em .8em; font-weight: 700; white-space: nowrap; }
.s5 th:nth-child(4), .s5 td:nth-child(4) { text-align: right; font-family: var(--font-en); }
.s5 tbody tr:nth-child(even) td { background: var(--zebra); }
.s5 tbody tr.low td { background: #ffe6d0; }
.s5 tbody tr.low { outline: 2px solid var(--dawn); outline-offset: -2px; }
.s5 .callout { position: absolute; right: 6.5%; top: 22.2em; padding: .42em 1.1em; border-radius: .8em; font-weight: 900; white-space: nowrap; color: #10222e; background: var(--dawn); box-shadow: 0 .6em 1.4em rgba(0, 0, 0, .35); }
.s5 .callout::before { content: ""; position: absolute; right: 2.2em; bottom: 100%; border: .5em solid transparent; border-bottom-color: var(--dawn); border-top-width: 0; }
.s5.is-on .sheetui { animation: fxFrom .7s var(--ease) .1s both; }
.s5.is-on tbody tr { animation: fxFade .5s ease both; }
.s5.is-on tbody tr:nth-child(1) { animation-delay: .9s; }
.s5.is-on tbody tr:nth-child(2) { animation-delay: 1.5s; }
.s5.is-on tbody tr:nth-child(3) { animation-delay: 2.1s; }
.s5.is-on tbody tr:nth-child(4) { animation-delay: 2.7s; }
.s5.is-on tbody tr:nth-child(5) { animation-delay: 3.3s; }
.s5.is-on tbody tr.low td { animation: lowPulse 1.8s ease-in-out 3.9s infinite; }
.s5.is-on .callout { animation: fxPop .6s var(--ease) 4.1s both; }
.s5.is-on .note-chip { animation: fxFade .8s ease 1s both; }

/* --- 6 人が確かめる --- */
.s6 { --cur-x: 29.9em; --cur-y: 11.2em; --cur-fx: -14em; --cur-fy: 6em; }
.s6 .zoom { position: absolute; left: 5%; top: 17%; width: 17em; border-radius: 1em; color: #22313b; background: #fffdf7; box-shadow: 0 1.2em 2.6em rgba(0, 0, 0, .42); }
.s6 .zoom-h { padding: .6em 1.2em; color: var(--muted); border-bottom: 1px solid rgba(22, 48, 63, .1); }
.s6 .zoom-body { display: grid; place-items: center; padding: 1.5em 1em 2.3em; }
.s6 .hand { font-family: "Zen Kurenaido", var(--font-jp); font-size: 2em; white-space: nowrap; }
.s6 .g8.big { margin: 0 .1em; }
.s6 .g8.big::after { content: ""; position: absolute; inset: -.05em -.28em; border-radius: 50%; border: .06em dashed #d8742e; }
.s6 .zoom-tip { position: absolute; left: 50%; bottom: -1em; translate: -50% 0; padding: .3em 1.1em; border-radius: 999px; font-size: .92em; font-weight: 700; white-space: nowrap; color: #fff; background: var(--primary); box-shadow: 0 .5em 1.2em rgba(0, 0, 0, .3); }
.s6 .fix { position: absolute; right: 5%; top: 17%; width: 21em; padding: .8em; border-radius: 1em; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .15); }
.s6 .fix-row { display: grid; grid-template-columns: minmax(0, 1fr) 3.2em 2.6em 5.6em; align-items: center; gap: .5em; padding: .7em .8em; border-radius: .7em; font-size: 1.1em; font-weight: 900; color: var(--ink); background: #fff; outline: 2px solid var(--sage); }
.s6 .qty { display: inline-flex; align-items: baseline; justify-content: center; gap: .35em; font-family: var(--font-en); }
.s6 .qty .old { font-size: .82em; color: #a3401c; opacity: .55; text-decoration: line-through; }
.s6 .qty .new { font-size: 1.2em; color: var(--ok); }
.s6 .st { display: grid; justify-items: end; align-items: center; }
.s6 .st > * { grid-area: 1 / 1; }
.s6 .st .conf.lo { opacity: 0; }
.s6 .okb { display: inline-flex; align-items: center; gap: .25em; padding: .05em .7em .05em .5em; border-radius: 999px; font-size: .74em; font-weight: 700; white-space: nowrap; color: var(--ok); background: var(--ok-soft); }
.s6 .okb svg { width: 1.1em; height: 1.1em; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.s6 .fix-rest { list-style: none; margin: .6em 0 0; padding: 0; }
.s6 .fix-rest li { display: flex; align-items: center; justify-content: space-between; gap: .6em; padding: .38em .9em; border-radius: .5em; font-size: .95em; font-weight: 700; color: #d5e0e7; }
.s6 .fix-rest li:nth-child(even) { background: var(--zebra-dark); }
.s6 .fix-rest i { font-style: normal; font-size: .84em; color: #9fe0b8; }
.s6 .cursor { position: absolute; left: var(--cur-x); top: var(--cur-y); z-index: 3; width: 1.9em; height: auto; fill: #fff; stroke: #10222e; stroke-width: 1.2; stroke-linejoin: round; filter: drop-shadow(0 .2em .4em rgba(0, 0, 0, .5)); }
.s6 .click { position: absolute; left: var(--cur-x); top: var(--cur-y); z-index: 2; width: 2.6em; height: 2.6em; margin: -1.1em 0 0 -1.1em; border-radius: 50%; border: 2px solid var(--dawn); opacity: 0; }
.s6.is-on .zoom { animation: fxFrom .7s var(--ease) .1s both; }
.s6.is-on .fix { animation: fxFrom .7s var(--ease) .3s both; }
.s6.is-on .zoom-tip { animation: fxPop .5s var(--ease) 1.5s both; }
.s6.is-on .cursor { animation: cursorMove 1.3s var(--ease) 1.9s both; }
.s6.is-on .click { animation: clickRing .7s ease-out 3.2s both; }
.s6.is-on .qty .old { animation: oldStrike .4s ease 3.4s both; }
.s6.is-on .qty .new { animation: fxPop .5s var(--ease) 3.5s both; }
.s6.is-on .st .conf.lo { animation: fxOut .4s ease 4.1s both; }
.s6.is-on .okb { animation: fxPop .5s var(--ease) 4.4s both; }
.s6.is-on .fix-row { animation: okLine .5s ease 4.4s both; }
.s6.is-on .note-chip { animation: fxFade .8s ease 1s both; }

/* --- 7 受注ボードに並ぶ --- */
.s7 .board-bar { position: absolute; left: 5%; right: 5%; top: 3.4em; display: flex; align-items: center; gap: .8em; }
.s7 .board-bar b { font-size: 1.25em; font-weight: 900; color: #fff; }
.s7 .day { padding: .05em .9em; border-radius: 999px; font-size: .88em; font-weight: 700; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .16); }
.s7 .cnt { margin-left: auto; font-weight: 900; color: var(--dawn); }
.s7 .board { position: absolute; left: 5%; right: 5%; top: 7em; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .9em; align-items: start; }
.s7 .k1 { --k: var(--dawn); }
.s7 .k2 { --k: var(--sage); }
.s7 .k3 { --k: var(--primary); }
.s7.is-on .board-bar { animation: fxFade .7s ease .1s both; }
.s7.is-on .bcard { animation: cardIn .7s var(--ease) both; }
.s7.is-on .k1 { animation-delay: .6s; }
.s7.is-on .k2 { animation-delay: 1.4s; }
.s7.is-on .k3 { animation-delay: 2.2s; }
.s7.is-on .note-chip { animation: fxFade .8s ease 3s both; }

/* --- 8 ボードを見て荷詰めする --- */
.s8 .pick { position: absolute; left: 6%; top: 17%; width: 19em; --k: var(--dawn); }
.s8 .pick li { display: flex; align-items: center; gap: .6em; padding: .4em .6em; }
.s8 .cb { flex: none; width: 1.3em; height: 1.3em; border-radius: .3em; display: grid; place-items: center; background: #3f8f5f; border: .12em solid #3f8f5f; }
.s8 .cb svg { width: .95em; height: .95em; fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.s8 .tx { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(85, 98, 112, .7); }
.s8 .meter { height: .45em; margin: .6em .9em .9em; border-radius: 1em; overflow: hidden; background: rgba(22, 48, 63, .1); }
.s8 .meter i { display: block; height: 100%; transform-origin: 0 50%; background: linear-gradient(90deg, var(--sage), #3f8f5f); }
.s8 .crate { position: absolute; right: 6%; top: 21%; width: 17em; aspect-ratio: 200 / 170; }
.s8 .crate svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.s8 .item { position: absolute; padding: .1em .7em; border-radius: .5em; font-size: .82em; font-weight: 900; white-space: nowrap; color: #10222e; background: var(--ic); box-shadow: 0 .2em .5em rgba(0, 0, 0, .25); }
.s8 .i1 { --ic: #b9dba0; left: 10%; top: 20%; rotate: -6deg; }
.s8 .i5 { --ic: #f4f1ea; left: 39%; top: 14%; rotate: 3deg; }
.s8 .i2 { --ic: #f1d9a0; left: 62%; top: 19%; rotate: 5deg; }
.s8 .i3 { --ic: #fff3dd; left: 22%; top: 31%; rotate: 3deg; }
.s8 .i4 { --ic: #cfe8c0; left: 51%; top: 31%; rotate: -4deg; }
.s8 .stamp { position: absolute; right: -2%; bottom: 2%; rotate: -8deg; padding: .15em .8em; border-radius: .4em; font-size: 1.05em; font-weight: 900; letter-spacing: .1em; white-space: nowrap; color: #ffb08f; border: .16em solid #ffb08f; background: rgba(13, 34, 48, .7); }
.s8.is-on .pick { animation: fxFrom .7s var(--ease) .1s both; }
.s8.is-on .cb { animation: cbOn .4s ease both; }
.s8.is-on .cb svg { animation: fxPop .4s var(--ease) both; }
.s8.is-on .tx { animation: txDone .4s ease both; }
.s8.is-on .item { animation: dropIn .8s cubic-bezier(.3, .9, .4, 1) both; }
.s8.is-on .i1 { animation-delay: .9s; }
.s8.is-on .t1 .cb, .s8.is-on .t1 .cb svg, .s8.is-on .t1 .tx { animation-delay: 1.6s; }
.s8.is-on .i2 { animation-delay: 2.1s; }
.s8.is-on .t2 .cb, .s8.is-on .t2 .cb svg, .s8.is-on .t2 .tx { animation-delay: 2.8s; }
.s8.is-on .i3 { animation-delay: 3.3s; }
.s8.is-on .t3 .cb, .s8.is-on .t3 .cb svg, .s8.is-on .t3 .tx { animation-delay: 4s; }
.s8.is-on .i4 { animation-delay: 4.5s; }
.s8.is-on .t4 .cb, .s8.is-on .t4 .cb svg, .s8.is-on .t4 .tx { animation-delay: 5.2s; }
.s8.is-on .i5 { animation-delay: 5.7s; }
.s8.is-on .t5 .cb, .s8.is-on .t5 .cb svg, .s8.is-on .t5 .tx { animation-delay: 6.4s; }
.s8.is-on .meter i { animation: meterGrow 5.2s linear 1.6s both; }
.s8.is-on .stamp { animation: stampIn .5s var(--ease) 7.1s both; }
.s8.is-on .note-chip { animation: fxFade .8s ease 1s both; }

/* 場面の動き。どれも「最後のコマ＝ふだんの見た目」になるように書く（控えめモードでは最後のコマだけが出る） */
@keyframes fxFrom { from { opacity: 0; translate: 0 .9em; } }
@keyframes fxPop { from { opacity: 0; scale: .5; } }
@keyframes fxFade { from { opacity: 0; } }
@keyframes fxOut { from { opacity: 1; } to { opacity: 0; } }
@keyframes rowIn { from { opacity: 0; translate: -.9em 0; } }
@keyframes growX { from { transform: scaleX(0); } }
@keyframes waveFlow { to { stroke-dashoffset: -140; } }
@keyframes bellPulse { 0% { box-shadow: 0 0 0 0 rgba(16, 34, 46, .5); } 80%, 100% { box-shadow: 0 0 0 .6em rgba(16, 34, 46, 0); } }
@keyframes softBlink { 50% { opacity: .4; } }
@keyframes sheetOut { from { transform: translateY(-9px); opacity: 0; } }
@keyframes paperOut { from { opacity: 0; translate: -13em 5em; scale: .25; rotate: -8deg; } }
@keyframes flyPdf { 0% { opacity: 0; translate: 0 0; scale: .8; } 14% { opacity: 1; } 55% { translate: var(--fly-mx) var(--fly-my); scale: 1.08; } 88% { opacity: 1; } 100% { opacity: 0; translate: var(--fly-x) var(--fly-y); scale: 1; } }
@keyframes envIn { 0% { opacity: 0; translate: -3em -1em; } 20% { opacity: 1; } 80% { opacity: 1; } 100% { opacity: 0; translate: var(--env-x) var(--env-y); scale: .4; } }
@keyframes ringPulse { 0% { scale: .55; opacity: .9; } 100% { scale: 1.15; opacity: 0; } }
@keyframes orbBreath { 50% { scale: 1.06; } }
@keyframes scanBeam { 0% { opacity: 1; translate: 0 -2.4em; } 88% { opacity: 1; } 100% { opacity: 0; translate: 0 18em; } }
@keyframes markIn { from { background: rgba(240, 168, 104, 0); } }
@keyframes lowPulse { 50% { background: #ffd0a8; } }
@keyframes cursorMove { 0% { opacity: 0; translate: var(--cur-fx) var(--cur-fy); } 18% { opacity: 1; } }
@keyframes clickRing { from { opacity: 1; scale: .2; } to { opacity: 0; scale: 1.3; } }
@keyframes oldStrike { from { opacity: 1; text-decoration-color: transparent; } }
@keyframes okLine { from { outline-color: var(--dawn); } }
@keyframes cardIn { from { opacity: 0; translate: 0 1.6em; scale: .96; } }
@keyframes cbOn { from { background: transparent; border-color: #9fb0ba; } }
@keyframes txDone { from { color: var(--ink); text-decoration-color: transparent; } }
@keyframes meterGrow { 0% { transform: scaleX(0); } 8%, 30% { transform: scaleX(.25); } 38%, 60% { transform: scaleX(.5); } 68%, 90% { transform: scaleX(.75); } 98%, 100% { transform: scaleX(1); } }
@keyframes dropIn { from { opacity: 0; translate: 0 -7em; } }
@keyframes stampIn { from { opacity: 0; scale: 1.9; } }

/* ---------- 時間の変化 ---------- */
.result { display: grid; gap: 24px; padding: clamp(24px, 4vw, 44px); border-radius: 28px; background: var(--card); border: 1px solid var(--line); box-shadow: 0 12px 30px rgba(22, 48, 63, .05); }
.result-head .section-title { margin-bottom: 10px; }
.result-head p { color: var(--muted); font-size: 15.5px; }
.result > .fine { margin-top: 0; }
.bars { display: grid; gap: 16px; }
.bar-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 6px 12px; }
.bar-row .bl { font-size: 14.5px; font-weight: 900; line-height: 1.45; color: var(--navy); }
.bar-row .bl small { display: block; font-size: 12px; font-weight: 500; color: var(--muted); }
.bar-row .bt { grid-column: 1 / -1; grid-row: 2; height: 20px; border-radius: 999px; overflow: hidden; background: rgba(22, 48, 63, .07); }
.bar-row .bt i { display: block; width: var(--w); height: 100%; border-radius: 999px; transform-origin: 0 50%; background: linear-gradient(90deg, var(--navy-2), var(--primary)); }
.bar-row.now .bt i { background: linear-gradient(90deg, #ffe6cb, var(--dawn)); }
.bar-row.est .bt i { background: repeating-linear-gradient(-45deg, var(--sage) 0 6px, #b9cfbb 6px 12px); }
.bar-row > b { font-size: 19px; font-weight: 900; line-height: 1.3; text-align: right; white-space: nowrap; color: var(--navy); }
.bar-row > b small { margin-left: 6px; font-size: 11.5px; font-weight: 700; color: var(--muted); }
.anim .bars .bt i { transform: scaleX(0); transition: transform 1.3s var(--ease); transition-delay: calc(var(--i) * .3s + .2s); }
.anim .bars.is-in .bt i { transform: none; }

/* 使ったもの（明るい背景の上のチップ） */
.chips.tools { margin-top: clamp(26px, 4vw, 40px); }
.chips.tools li { color: var(--navy); background: var(--card); border-color: var(--line); }

/* ---------- ≥ 561px ---------- */
@media (min-width: 561px) {
  .route { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px 6px; }
  .route button { grid-template-columns: minmax(0, 1fr); justify-items: center; row-gap: 2px; padding: 10px 2px; text-align: center; }
  .route .ic { grid-row: auto; width: 46px; height: 46px; margin-bottom: 4px; }
  .route .ic svg { width: 22px; height: 22px; }
  .route li:not(:nth-child(4n + 1))::before { content: ""; position: absolute; left: -3px; top: 34px; width: 7px; height: 7px; margin: -4px 0 0 -4px; border-top: 1.5px solid rgba(255, 255, 255, .42); border-right: 1.5px solid rgba(255, 255, 255, .42); transform: rotate(45deg); pointer-events: none; }
}

/* ---------- ≥ 700px ---------- */
@media (min-width: 700px) {
  .case-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .route-wrap { padding: 18px 20px 20px; }
  .bar-row { grid-template-columns: 10.5em minmax(0, 1fr) 6.4em; align-items: center; }
  .bar-row .bt { grid-column: auto; grid-row: auto; height: 22px; }
  .bar-row > b { text-align: left; }
  .bar-row > b small { display: block; margin-left: 0; }
}

/* ---------- ≥ 900px ---------- */
@media (min-width: 900px) {
  .route { grid-template-columns: repeat(8, minmax(0, 1fr)); }
  .route li:nth-child(4n + 1):not(:first-child)::before { content: ""; position: absolute; left: -3px; top: 34px; width: 7px; height: 7px; margin: -4px 0 0 -4px; border-top: 1.5px solid rgba(255, 255, 255, .42); border-right: 1.5px solid rgba(255, 255, 255, .42); transform: rotate(45deg); pointer-events: none; }
  .fx { grid-template-columns: minmax(0, .74fr) minmax(0, 1.26fr); gap: 26px; }
  .fx-window { position: sticky; top: 92px; }
  .fx-steps { order: -1; display: grid; gap: 8px; overflow: visible; padding: 0; }
  .fx-step { width: 100%; padding: 11px 16px 13px; }
  .fx-step .desc { grid-column: 2 / -1; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease); }
  .fx-step .desc > span { padding-top: 0; }
  .fx-step[aria-selected="true"] .desc { grid-template-rows: 1fr; }
  .fx-step[aria-selected="true"] .desc > span { padding-top: 4px; }
  .result { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center; column-gap: clamp(32px, 5vw, 64px); }
  .result > .fine { grid-column: 1 / -1; }
}

/* ---------- ≤ 560px：場面を縦長にして文字を大きく保つ ---------- */
@media (max-width: 560px) {
  .stack-fig { padding-top: 44px; }
  .stack-note.n1 { left: 0; top: 0; }
  .fx-window .win-bar { padding-left: 12px; }
  .fx-window .win-bar > i { display: none; }
  .fx-now { margin-left: 2px; }
  .fx-play { min-height: 36px; padding: 4px 11px; }
  .fx-play span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .fx-scenes { aspect-ratio: 5 / 7; }
  .scene { font-size: clamp(9px, 3.6cqw, 20px); }

  .s1 .wave { top: 4%; width: 52%; }
  .s1 .tag-chip { top: 3.5%; }
  .s1 .mfp { left: 3%; top: 47%; width: 11em; }
  .s1 .p-main { left: 41%; top: 18%; font-size: .95em; }

  .s2 { --fly-x: 4.6em; --fly-y: 13.8em; --fly-mx: 7em; --fly-my: 5em; }
  .s2 .node-tile { left: 6%; top: 4%; width: 7.6em; }
  .s2 .rail { left: 37%; top: 9%; width: 30%; height: 16%; transform: scaleY(-1); }
  .s2 .fly { left: 8%; top: 28%; }
  .s2 .mail { left: 6%; right: 6%; top: 37%; width: auto; }

  .s3 { --env-x: 10.6em; --env-y: 5.6em; }
  .s3 .env { top: 5%; }
  .s3 .orb-wrap { left: 50%; top: 6%; width: 11em; height: 11em; margin-left: -5.5em; }
  .s3 .talk { left: 7%; right: 7%; top: 47%; width: auto; }

  .s4 .p-scan { left: 6%; top: 2.5%; font-size: .88em; }
  .s4 .mid-spark { left: 70%; top: 17%; width: 3.6em; }
  .s4 .read { left: 6%; right: 6%; top: 48.5%; width: auto; }
  .s4 .read li { padding-block: .3em; }

  .s5 .sheetui { left: 3%; right: 3%; top: 5.5em; font-size: .92em; }
  .s5 th, .s5 td { padding-inline: .5em; }
  .s5 .callout { right: 5%; top: 21.8em; }

  .s6 { --cur-x: 12.9em; --cur-y: 20.1em; --cur-fx: 4em; --cur-fy: -10em; }
  .s6 .zoom { left: 6%; right: 6%; top: 3%; width: auto; }
  .s6 .fix { left: 6%; right: 6%; top: 15em; width: auto; }

  .s7 .board-bar { left: 4%; right: 4%; top: 1.3em; }
  .s7 .board { left: 4%; right: 4%; top: 4.6em; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8em; }

  .s8 .pick { left: 6%; right: 6%; top: 2.5%; width: auto; }
  .s8 .crate { right: auto; left: 50%; top: 17.6em; width: 16em; margin-left: -8em; }
}

/* ---------- 動きを控えめにするモード ---------- */
html.calm .case-hero [data-in] { animation: fadeOnly 1.1s ease .1s backwards !important; }
html.calm .scene, html.calm .scene.is-on { transition: none !important; }
