@font-face {
  font-family: "M PLUS 1";
  src: url("../fonts/mplus1.woff2") format("woff2");
  font-weight: 500 900;
  font-display: swap;
}

@font-face {
  font-family: "Geist";
  src: url("../fonts/geist.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Geist Mono";
  src: url("../fonts/geist-mono.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

/* 計画：site/design/2026-12-03-refine.md */
:root {
  --sans: "Geist", "M PLUS 1", "Yu Gothic UI", "Hiragino Sans", "Noto Sans JP", system-ui, sans-serif;
  --sans-ja: "M PLUS 1", "Geist", "Yu Gothic UI", "Hiragino Sans", "Noto Sans JP", system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, Consolas, monospace;
  --ease: cubic-bezier(0.2, 0, 0, 1);
  --gutter: clamp(20px, 5vw, 72px);
  --wide: 1240px;
  --radius: 6px;
}

[data-theme="dark"] {
  color-scheme: dark;
  --paper: #0d0e0c;
  --surface: #151613;
  --sunk: #1b1c19;
  --ink: #ecebe4;
  --ink-2: #a9a89f;
  --ink-3: #86857c;
  --rule: rgba(236, 235, 228, 0.12);
  --accent: #d4ff3f;
  --accent-text: #d4ff3f;
  --accent-ink: #0d0e0c;
  --accent-hover: #e2ff7a;
  --ok: #d4ff3f;
  --wait: #ffb347;
}

[data-theme="light"] {
  color-scheme: light;
  --paper: #f2f1eb;
  --surface: #fbfaf6;
  --sunk: #e8e7e0;
  --ink: #121310;
  --ink-2: #45453f;
  --ink-3: #62625b;
  --rule: rgba(18, 19, 16, 0.13);
  --accent: #d4ff3f;
  --accent-text: #3d5200;
  --accent-ink: #121310;
  --accent-hover: #c4f020;
  --ok: #2f6b00;
  --wait: #9a4a00;
}

[data-pending] body {
  visibility: hidden;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.8 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

[lang="ja"] body {
  font-family: var(--sans-ja);
  font-weight: 500;
}

a {
  color: inherit;
}

code,
pre {
  font-family: var(--mono);
}

::selection {
  background: var(--accent);
  color: var(--accent-ink);
}

:focus-visible {
  outline: 2px solid var(--accent-text);
  outline-offset: 3px;
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 50;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--paper);
}

.skip:focus {
  top: 12px;
}

/* ヘッダー */

.bar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 10px var(--gutter);
  border-bottom: 1px solid transparent;
  transition: background-color 0.2s, border-color 0.2s;
}

.bar.scrolled {
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  border-bottom-color: var(--rule);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 44px;
  min-height: 44px;
  text-decoration: none;
  font: 500 13px/1 var(--mono);
}

.brand i {
  width: 10px;
  height: 10px;
  background: var(--accent);
}

.nav {
  display: flex;
  gap: 4px;
  margin-left: auto;
}

.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  color: var(--ink-2);
  text-decoration: none;
  font-size: 14px;
  transition: color 80ms;
}

.nav a:hover {
  color: var(--ink);
}

.tools {
  display: flex;
  gap: 2px;
}

.tool {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  color: var(--ink-2);
  background: none;
  border: 0;
  border-radius: var(--radius);
  font: 500 12px/1 var(--mono);
  cursor: pointer;
  transition: color 80ms;
}

.tool:hover {
  color: var(--ink);
}

.tool svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
}

.tool .fill {
  fill: currentColor;
  stroke: none;
}

[data-theme="dark"] .sun,
[data-theme="light"] .moon {
  display: none;
}

/* 共通の組み */

main {
  padding: 0 var(--gutter);
}

main > section {
  max-width: var(--wide);
  margin: 0 auto;
}

[lang="ja"] h1,
[lang="ja"] h2,
[lang="ja"] .say,
[lang="ja"] .lead,
[lang="ja"] .steps p,
[lang="ja"] .plate p {
  word-break: auto-phrase;
  text-wrap: pretty;
}

.sec-title {
  max-width: 16em;
  margin: 0;
  font-size: clamp(32px, 4.4vw, 60px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

[lang="ja"] .sec-title {
  line-height: 1.3;
  letter-spacing: -0.02em;
}

/* 見出し */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 400px);
  grid-template-areas:
    "eyebrow eyebrow"
    "title title"
    "foot sheet";
  column-gap: clamp(40px, 7vw, 120px);
  padding: clamp(128px, 18vh, 184px) 0 clamp(96px, 14vh, 144px);
}

.eyebrow {
  grid-area: eyebrow;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 14px;
  margin: 0;
  color: var(--ink-2);
  font-size: 15px;
}

.ver {
  display: inline-flex;
  align-items: center;
  min-width: 44px;
  min-height: 44px;
  color: var(--ink-3);
  font: 400 13px/1 var(--mono);
  text-decoration: none;
  transition: color 80ms;
}

.ver:hover {
  color: var(--ink);
}

h1 {
  grid-area: title;
  margin: 12px 0 0;
  font-size: clamp(48px, 8.6vw, 136px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.045em;
}

[lang="ja"] h1 {
  font-size: clamp(50px, 9.2vw, 148px);
  line-height: 1.14;
  letter-spacing: -0.03em;
}

h1 .line {
  display: block;
}

.hero-foot {
  grid-area: foot;
  align-self: start;
  max-width: 34em;
  margin-top: clamp(36px, 5vw, 56px);
}

.lead {
  margin: 0;
  color: var(--ink-2);
  font-size: 18px;
  line-height: 1.85;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 28px;
  margin-top: 36px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 22px 0 24px;
  color: var(--accent-ink);
  background: var(--accent);
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 80ms;
}

.btn:hover {
  background: var(--accent-hover);
}

.btn:active {
  transform: translateY(1px);
}

.btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.textlink {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink);
  font-size: 15px;
  text-decoration: underline;
  text-decoration-color: var(--rule);
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
  transition: text-decoration-color 80ms;
}

.textlink:hover {
  text-decoration-color: currentColor;
}

/* 会話の記録（ページで唯一の自動の動き） */

.sheet {
  grid-area: sheet;
  align-self: start;
  margin: clamp(36px, 5vw, 56px) 0 0;
  padding: 18px 22px 14px;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 8px;
}

.sheet-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--rule);
  color: var(--ink-3);
  font: 400 12px/1.6 var(--mono);
}

.sheet-head span:last-child {
  font-family: inherit;
}

[lang="ja"] .sheet-head span:last-child {
  font-family: var(--sans-ja);
}

.log {
  list-style: none;
  margin: 0;
  padding: 8px 0 0;
  font-size: 14px;
  line-height: 1.55;
}

.log li {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 8px;
  padding: 7px 0;
  color: var(--ink-3);
  transition: color 0.3s var(--ease);
}

.log b {
  color: var(--ink-3);
  font: 400 12px/1.8 var(--mono);
}

.log li.on {
  color: var(--ink);
}

.log li.you.on span,
.log li.you.on b {
  color: var(--accent-text);
}

.log li.done.on b,
.log li.done.on span {
  color: var(--ink);
  font-weight: 600;
}

/* 要約 */

.statement {
  padding: clamp(72px, 12vh, 128px) 0;
  border-top: 1px solid var(--rule);
}

.say {
  max-width: 24em;
  margin: 0;
  font-size: clamp(24px, 3vw, 40px);
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: -0.015em;
}

[lang="ja"] .say {
  max-width: 21em;
  line-height: 1.65;
  letter-spacing: 0;
}

/* 流れ */

.flow {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(40px, 7vw, 120px);
  padding: clamp(96px, 14vh, 144px) 0 clamp(64px, 10vh, 96px);
  border-top: 1px solid var(--rule);
}

.flow-side {
  position: sticky;
  top: 120px;
  align-self: start;
}

.counter {
  margin: 40px 0 0;
  font-family: "Geist", sans-serif;
  font-size: clamp(96px, 13vw, 184px);
  font-weight: 600;
  line-height: 0.9;
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
}

.counter small {
  margin-left: 10px;
  color: var(--ink-3);
  font-size: 0.2em;
  font-weight: 500;
  letter-spacing: 0;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  border-bottom: 1px solid var(--rule);
}

.steps li {
  padding: 22px 0 24px;
  border-top: 1px solid var(--rule);
}

.steps li.you {
  border-top-color: var(--accent-text);
}

.steps h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.01em;
  transition: color 0.25s var(--ease);
}

.steps p {
  max-width: 32em;
  margin: 8px 0 0;
  color: var(--ink-2);
  font-size: 15.5px;
  line-height: 1.8;
}

.steps li.you h3 {
  color: var(--accent-text);
}

.motion .steps li:not(.you) h3 {
  color: var(--ink-3);
}

.motion .steps li.active:not(.you) h3 {
  color: var(--ink);
}

/* 成果物 */

.outputs {
  padding: clamp(96px, 14vh, 144px) 0 clamp(48px, 8vh, 80px);
  border-top: 1px solid var(--rule);
}

.plates {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(48px, 6vw, 80px) clamp(24px, 4vw, 56px);
  margin-top: clamp(48px, 7vw, 88px);
}

.plate {
  display: flex;
  flex-direction: column;
}

.plate h3 {
  margin: 24px 0 0;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
}

.plate > p {
  max-width: 30em;
  margin: 8px 0 0;
  color: var(--ink-2);
  font-size: 15.5px;
}

.doc {
  flex: 1;
  min-height: 268px;
  padding: 22px 24px;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 8px;
}

.doc-title {
  margin: 0 0 16px;
  color: var(--ink-3);
  font: 400 12px/1 var(--mono);
}

.doc table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.doc th {
  padding: 0 8px 10px 0;
  color: var(--ink-3);
  font-size: 12.5px;
  font-weight: 500;
  text-align: left;
}

.doc td {
  padding: 12px 8px 12px 0;
  border-top: 1px solid var(--rule);
  line-height: 1.5;
}

.doc td:nth-child(2) {
  color: var(--ink-2);
}

.doc td:last-child {
  width: 1%;
  padding-right: 0;
  white-space: nowrap;
  font-weight: 600;
  text-align: right;
}

.ok {
  color: var(--ok);
}

.wait {
  color: var(--wait);
}

.muted {
  color: var(--ink-3);
}

.matrix {
  display: grid;
  grid-template-columns: 48px 1fr 1fr;
  gap: 6px;
  align-items: center;
  font: 400 12px/1 var(--mono);
}

.matrix b {
  color: var(--ink-3);
  font-weight: 400;
  text-align: center;
}

.matrix b:nth-child(3n + 4) {
  text-align: left;
}

.matrix i {
  position: relative;
  height: 24px;
  border-radius: 3px;
  background: var(--sunk);
}

.matrix i::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
  border-radius: 50%;
  background: var(--ok);
}

.score {
  margin: 18px 0 0;
  color: var(--ink-2);
  font: 400 13px/1.4 var(--mono);
}

.finds {
  margin: 0;
  padding: 0;
  list-style: none;
}

.finds li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid var(--rule);
  font-size: 14px;
  line-height: 1.5;
}

.finds em {
  font-style: normal;
  font-weight: 600;
  white-space: nowrap;
}

.rel {
  margin: 0;
  font-family: "Geist", sans-serif;
  font-size: 44px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
}

.files {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.files li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-top: 1px solid var(--rule);
  font: 400 13px/1.4 var(--mono);
}

.files small {
  color: var(--ink-3);
  white-space: nowrap;
}

.sig {
  margin: 14px 0 0;
  color: var(--ink-2);
  font-size: 14px;
}

/* デザイン案（README の見本。左に画面、右に 3 案の一覧と選んだ案の中身） */

.designs {
  padding: clamp(96px, 14vh, 144px) 0 clamp(48px, 8vh, 80px);
  border-top: 1px solid var(--rule);
}

.designs-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px 48px;
}

.designs-note {
  max-width: 25em;
  margin: 0;
  color: var(--ink-2);
  font-size: 15.5px;
}

.board {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  align-items: start;
  gap: 32px clamp(32px, 4vw, 56px);
  margin-top: clamp(40px, 6vw, 72px);
}

.shot {
  margin: 0;
}

.frame {
  display: block;
  overflow: hidden;
  background: var(--sunk);
  border-radius: 8px;
  box-shadow: var(--frame-shadow);
}

[data-theme="dark"] {
  --frame-shadow: 0 0 0 1px rgba(236, 235, 228, 0.1), 0 48px 90px -40px rgba(0, 0, 0, 0.9);
}

[data-theme="light"] {
  --frame-shadow: 0 0 0 1px rgba(18, 19, 16, 0.08), 0 40px 80px -44px rgba(18, 19, 16, 0.45);
}

.frame img {
  display: block;
  width: 100%;
  height: auto;
  transition: opacity 180ms ease-out, transform 700ms var(--ease);
}

.frame:hover img {
  transform: scale(1.012);
}

.shot.swap img {
  opacity: 0;
}

/* 3 案の一覧：行で並べ、選んだ案の記号だけライム（案を選ぶのは利用者の番） */
.tabs {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--ink);
}

.tab {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 60px;
  padding: 12px 2px;
  color: var(--ink-3);
  font: 700 17px/1.3 var(--sans-ja);
  text-align: left;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--rule);
  cursor: pointer;
  transition: color 200ms;
}

.tab b {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  color: var(--ink-2);
  font: 600 13px/1 var(--mono);
  border: 1px solid var(--rule);
  border-radius: 4px;
  transition: color 200ms, background-color 200ms, border-color 200ms;
}

.tab:hover,
.tab[aria-selected="true"] {
  color: var(--ink);
}

.tab[aria-selected="true"] b {
  color: var(--accent-ink);
  background: var(--accent);
  border-color: transparent;
}

.dots {
  display: flex;
  gap: 4px;
}

.dots i,
.swatches i {
  background: var(--l);
  box-shadow: inset 0 0 0 1px var(--rule);
}

[data-theme="dark"] .dots i,
[data-theme="dark"] .swatches i,
[data-theme="dark"] .logo-card {
  background: var(--k);
}

.dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

/* 選んだ案の中身 */
.spec {
  padding-top: 24px;
}

.spec-cap {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.7;
}

.spec dl {
  margin: 22px 0 0;
}

.spec dt {
  margin: 18px 0 8px;
  color: var(--ink-3);
  font-size: 12.5px;
  font-weight: 500;
}

.spec dt:first-child {
  margin-top: 0;
}

.spec dd {
  margin: 0;
}

.swatches {
  display: flex;
  gap: 6px;
}

.swatches i {
  flex: 1;
  height: 34px;
  border-radius: 4px;
}

.type {
  font: 500 14px/1.5 var(--mono);
}

.brand-row {
  display: flex;
  gap: 10px;
}

.logo-card {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  min-width: 0;
  height: 76px;
  padding: 0 16px;
  background: var(--l);
  border-radius: 6px;
  box-shadow: inset 0 0 0 1px var(--rule);
}

.logo-card img {
  min-width: 0;
  max-width: 100%;
  object-fit: contain;
  max-height: 46px;
}

[data-theme="light"] .on-dark,
[data-theme="dark"] .on-light {
  display: none;
}

.app-icon {
  flex: none;
  width: 76px;
  height: 76px;
  border-radius: 24%;
}

.motion .spec:not([hidden]) {
  animation: fade-up 420ms var(--out) both;
}

[lang="ja"] .designs-note,
[lang="ja"] .spec-cap {
  word-break: auto-phrase;
  text-wrap: pretty;
}

/* 入手 */

.install {
  padding: clamp(96px, 14vh, 144px) 0 0;
  border-top: 1px solid var(--rule);
}

.ways {
  display: grid;
  grid-template-columns: 1fr 1.4fr 1fr;
  margin-top: clamp(40px, 6vw, 72px);
  border-top: 1px solid var(--rule);
}

.way {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 28px 32px 8px 0;
}

.way + .way {
  padding-left: 32px;
  border-left: 1px solid var(--rule);
}

.way h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
}

.way p {
  margin: 0;
  color: var(--ink-2);
  font-size: 15px;
}

.way code,
.usage code {
  font-size: 0.9em;
}

.cmd {
  position: relative;
  width: 100%;
}

.cmd pre {
  margin: 0;
  padding: 14px 16px 60px;
  max-height: 176px;
  overflow: auto;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  color: var(--ink);
  font-size: 12px;
  line-height: 1.65;
  white-space: pre-wrap;
  word-break: break-all;
}

.copy {
  position: absolute;
  right: 8px;
  bottom: 8px;
  min-width: 72px;
  min-height: 44px;
  padding: 0 16px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  font: 500 13px/1 var(--sans);
  cursor: pointer;
  transition: border-color 80ms;
}

[lang="ja"] .copy {
  font-family: var(--sans-ja);
}

.copy:hover {
  border-color: var(--ink-3);
}

.usage {
  margin: 48px 0 0;
  color: var(--ink-2);
}

/* フッター */

.foot {
  max-width: calc(var(--wide) + 2 * var(--gutter));
  margin: clamp(96px, 14vh, 160px) auto 0;
  padding: 24px var(--gutter) 40px;
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 24px;
  margin: 0;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
  color: var(--ink-3);
  font-size: 14px;
}

.foot-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  color: var(--ink-2);
  text-decoration: none;
  transition: color 80ms;
}

.foot-links a:hover {
  color: var(--ink);
}

.foot-links .brand {
  margin-right: auto;
  color: var(--ink);
}

.foot-note {
  max-width: 48em;
  margin: 8px 0 0;
  color: var(--ink-3);
  font-size: 13px;
  line-height: 1.7;
}

/* 透過（利用者の指定。光の上にすりガラスの面を重ねる） */

main {
  overflow-x: clip;
}

.hero,
.outputs {
  position: relative;
  isolation: isolate;
}

.hero::before,
.outputs::before {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--glow), transparent);
  pointer-events: none;
}

.hero::before {
  right: -8%;
  bottom: 0;
  width: min(640px, 90vw);
  aspect-ratio: 1;
}

.outputs::before {
  left: 18%;
  top: 30%;
  width: min(900px, 120vw);
  aspect-ratio: 1.4;
}

[data-theme="dark"] {
  --glow: rgba(212, 255, 63, 0.16);
  --glass: rgba(21, 22, 19, 0.58);
  --glass-edge: rgba(236, 235, 228, 0.14);
}

[data-theme="light"] {
  --glow: rgba(196, 240, 32, 0.38);
  --glass: rgba(251, 250, 246, 0.6);
  --glass-edge: rgba(18, 19, 16, 0.1);
}

.sheet,
.doc {
  background: var(--glass);
  border-color: var(--glass-edge);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  backdrop-filter: blur(18px) saturate(1.3);
}

.copy {
  background: var(--glass);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

/* 動き（「動きを減らす」設定では止める。head の中で .motion を付ける） */

:root {
  --out: cubic-bezier(0.05, 0.7, 0.1, 1);
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
}

@keyframes drift {
  to {
    transform: translate(-6%, 5%) scale(1.12);
  }
}

@keyframes pop {
  from {
    opacity: 0;
    transform: scale(0);
  }
}

@keyframes roll {
  from {
    opacity: 0.2;
    transform: translateY(24%);
  }
}

.motion .eyebrow,
.motion h1 .line,
.motion .hero-foot,
.motion .sheet {
  animation: fade-up 700ms var(--out) both;
}

.motion h1 .line:nth-child(1) {
  animation-delay: 80ms;
}

.motion h1 .line:nth-child(2) {
  animation-delay: 180ms;
}

.motion .hero-foot {
  animation-delay: 340ms;
}

.motion .sheet {
  animation-delay: 480ms;
}

.motion .hero::before,
.motion .outputs::before {
  animation: drift 16s ease-in-out infinite alternate;
}

.motion .outputs::before {
  animation-duration: 22s;
  animation-direction: alternate-reverse;
}

.motion .reveal {
  opacity: 0;
  transform: translateY(20px);
}

.motion .reveal.in {
  opacity: 1;
  transform: none;
  transition: opacity 500ms ease-out var(--d, 0ms), transform 650ms var(--out) var(--d, 0ms);
}

.motion .plate.in .matrix i::after {
  animation: pop 320ms var(--out) both;
  animation-delay: calc(var(--k, 0) * 60ms + 250ms);
}

.motion .plate.in td:last-child,
.motion .plate.in .finds em,
.motion .plate.in .sig {
  animation: fade-up 400ms var(--out) both;
}

.motion .plate.in tr:nth-child(2) td:last-child,
.motion .plate.in .finds li:nth-child(2) em {
  animation-delay: 140ms;
}

.motion .plate.in tr:nth-child(3) td:last-child,
.motion .plate.in .finds li:nth-child(3) em,
.motion .plate.in .sig {
  animation-delay: 280ms;
}

.counter span {
  display: inline-block;
}

.counter span.tick {
  animation: roll 260ms var(--out);
}

.steps li {
  position: relative;
}

.steps li::before {
  content: "";
  position: absolute;
  left: -20px;
  top: 34px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ink);
  opacity: 0;
  transform: scale(0);
  transition: opacity 200ms ease-out, transform 250ms var(--out);
}

.steps li.you::before {
  background: var(--accent-text);
}

.motion .steps li.active::before {
  opacity: 1;
  transform: none;
}

.btn svg {
  transition: transform 100ms ease-out;
}

.btn:hover svg {
  transform: translateY(2px);
}

/* 幅 */

@media (max-width: 960px) {
  .board {
    grid-template-columns: 1fr;
  }

  .hero {
    grid-template-columns: 1fr;
    grid-template-areas: "eyebrow" "title" "foot" "sheet";
  }

  .sheet {
    max-width: 460px;
    margin-top: 56px;
  }

  .flow {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .flow-side {
    position: static;
  }

  .counter {
    display: none;
  }

  .steps li::before {
    display: none;
  }

  .motion .steps li:not(.you) h3 {
    color: var(--ink);
  }

  .ways {
    grid-template-columns: 1fr;
  }

  .way,
  .way + .way {
    padding: 28px 0 12px;
    border-left: 0;
  }

  .way + .way {
    border-top: 1px solid var(--rule);
  }
}

@media (max-width: 720px) {
  .plates {
    grid-template-columns: 1fr;
  }

  .doc {
    min-height: 0;
  }
}

@media (max-width: 640px) {
  .nav {
    display: none;
  }

  .tools {
    margin-left: auto;
  }

  .bar > .brand span {
    display: none;
  }

  .lead {
    font-size: 16.5px;
  }

  .steps h3 {
    font-size: 20px;
  }

  .doc {
    padding: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  html {
    scroll-behavior: auto;
  }
}
