/* atolog.day の見た目。色は tokens.css（tools/tokens から生成）の変数だけから作る。
   外部のリソースは使わない。動きは CSS だけで、prefers-reduced-motion: no-preference の中にだけ書く。
   動きの外（古いブラウザ、動きを減らす設定）では、すべての内容が最終の形で見える。 */

:root {
  color-scheme: light dark;
  --font: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", system-ui, sans-serif;
  --wrap: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 76px;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.75 var(--font);
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
}

a {
  color: var(--ink-2);
  text-underline-offset: 3px;
}

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

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 4px;
}

/* 日本語の見出しを語の途中で折り返さない（<wbr> と句読点の後で折り返す）。入りきらないときだけ最後の手段で折る。 */
.keep {
  word-break: keep-all;
  overflow-wrap: anywhere;
  line-break: strict;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

:lang(ja) h1,
:lang(ja) h2,
:lang(ja) .amount {
  font-feature-settings: "palt";
}

.note {
  color: var(--ink-3);
  font-size: 14px;
  line-height: 1.6;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border-radius: var(--radius-control);
  background: var(--ink);
  color: var(--bg);
  font-weight: 600;
  font-size: 15px;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
}

.button:hover {
  color: var(--bg);
  opacity: 0.88;
}

.button.sm {
  min-height: 36px;
  padding: 0 14px;
  font-size: 14px;
}

.button.lg {
  min-height: 60px;
  padding: 0 34px;
  border-radius: var(--radius-window);
  background: var(--cat-make);
  color: var(--on-make);
  font-size: 18px;
  box-shadow: 0 18px 36px -18px color-mix(in srgb, var(--cat-make) 70%, transparent);
}

.button.lg:hover {
  color: var(--on-make);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin-top: 28px;
}

.skip {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 50;
  padding: 10px 16px;
  border-radius: var(--radius-control);
  background: var(--ink);
  color: var(--bg);
}

.skip:focus {
  top: 12px;
  color: var(--bg);
}

/* ---------------------------------------------------------------
   画面の画像の枠。画像の中にツールバーまであるので、線と影だけで窓に見せる。
   --------------------------------------------------------------- */
.window {
  margin: 0;
}

.window img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-window);
  background: var(--raised);
  box-shadow: 0 40px 80px -48px var(--shadow);
}

/* ---------------------------------------------------------------
   共通の部品と LP。幅は .wrap の --wrap で変える（サブページは .doc と .dl で上書き）。
   --------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.bar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--rule);
}

.bar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.mark {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  color: var(--ink);
  text-decoration: none;
}

.mark img {
  width: 28px;
  height: 28px;
}

.bar nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 14px;
}

.bar nav a:not(.button) {
  text-decoration: none;
}

.bar nav a:not(.button):hover {
  text-decoration: underline;
}

/* 一日の帯のように、ページを読み進めるぶんだけ伸びる線（対応するブラウザだけ）。 */
.dayline {
  display: none;
}

/* 見出しの要点だけ、朱で。 */
.hl {
  color: var(--cat-make);
}

/* ---- ヒーロー ---- */
.hero {
  position: relative;
  padding-top: 178px;
  padding-bottom: clamp(24px, 4vw, 56px);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1000px;
  pointer-events: none;
  background:
    radial-gradient(48% 42% at 76% 58%, color-mix(in srgb, var(--cat-make) 15%, transparent), transparent 72%),
    radial-gradient(36% 36% at 10% 14%, color-mix(in srgb, var(--cat-meet) 9%, transparent), transparent 72%);
}

.hero .wrap {
  position: relative;
  z-index: 1;
}

.hero-head {
  display: grid;
  gap: 28px 72px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(40px, 6.8vw, 100px);
  line-height: 1.12;
  font-weight: 600;
  letter-spacing: -0.025em;
}

:lang(en) .hero h1 {
  font-size: clamp(38px, 5.8vw, 84px);
  line-height: 1.04;
  letter-spacing: -0.035em;
}

.hero .lead {
  margin: 20px 0 0;
  color: var(--ink-2);
  font-size: clamp(20px, 2.5vw, 32px);
  line-height: 1.4;
  font-weight: 500;
}

.hero-side p {
  margin: 0;
  max-width: 540px;
  color: var(--ink-2);
  font-size: clamp(16px, 1.3vw, 18px);
}

.hero-side .actions {
  margin-top: 24px;
}

.hero-side .note {
  max-width: 440px;
  text-wrap: pretty;
}

.hero-title,
.hero-side p {
  text-shadow: 0 0 12px var(--bg), 0 0 24px var(--bg);
}

.hero-shot {
  margin-top: clamp(32px, 5vw, 64px);
  transform-origin: 50% 0;
}

.hero-shot img {
  box-shadow:
    0 70px 140px -50px color-mix(in srgb, var(--cat-make) 42%, transparent),
    0 30px 60px -36px var(--shadow);
}

/* ---- 背景のレーン：作業の帯が、左から右へ記録されていく ---- */
.hero .lanes {
  --top: 42px;
  --row: 20px;
  --lh: 12px;
  height: 360px;
}

.lanes {
  position: absolute;
  inset: 0 0 auto 0;
  overflow: hidden;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, var(--ink) 0, var(--ink) 40%, transparent 100%);
  mask-image: linear-gradient(to bottom, var(--ink) 0, var(--ink) 40%, transparent 100%);
}

.tick {
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(var(--t) * 1%);
  width: 1px;
  background: var(--rule);
  opacity: 0.8;
}

.tick b {
  position: absolute;
  top: 14px;
  left: 8px;
  color: var(--ink-3);
  font-size: 11px;
  font-weight: 400;
  line-height: 1;
}

.lane {
  position: absolute;
  left: 0;
  right: 0;
  height: var(--lh, 18px);
  top: calc(var(--top, 44px) + var(--n, 0) * var(--row, 36px));
}

.lane::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: var(--rule);
}

.lane:nth-of-type(1) { --n: 0; }
.lane:nth-of-type(2) { --n: 1; }
.lane:nth-of-type(3) { --n: 2; }
.lane:nth-of-type(4) { --n: 3; }
.lane:nth-of-type(5) { --n: 4; }
.lane:nth-of-type(6) { --n: 5; }

.lane i {
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(var(--s) * 1%);
  width: calc(var(--w) * 1%);
  border-radius: var(--radius-swatch);
  transform-origin: 0 50%;
  opacity: 0.3;
}

.lane i.m { background: var(--cat-make); }
.lane i.r { background: var(--cat-research); }
.lane i.a { background: var(--cat-meet); }
.lane i.c { background: var(--cat-comm); }
.lane i.d { background: var(--cat-admin); }
.lane i.p { background: var(--cat-personal); }
.lane i.e { background: none; border: 1px dashed var(--rule-strong); opacity: 1; }

/* いま記録している時刻の線。動きの外では出さない。 */
.sweep {
  position: absolute;
  inset: 0;
  border-right: 1px solid var(--ink);
  opacity: 0;
}

.lanes .t8{--t:6.25}
.lanes .t10{--t:18.75}
.lanes .t12{--t:31.25}
.lanes .t14{--t:43.75}
.lanes .t16{--t:56.25}
.lanes .t18{--t:68.75}
.lanes .t20{--t:81.25}
.lanes .t22{--t:93.75}
.lane:nth-of-type(1) i:nth-child(1){--s:12.5;--w:3.12}
.lane:nth-of-type(1) i:nth-child(2){--s:15.94;--w:13.75}
.lane:nth-of-type(1) i:nth-child(3){--s:30.0;--w:1.56}
.lane:nth-of-type(1) i:nth-child(4){--s:38.12;--w:5.63}
.lane:nth-of-type(1) i:nth-child(5){--s:44.06;--w:5.94}
.lane:nth-of-type(1) i:nth-child(6){--s:50.31;--w:4.38}
.lane:nth-of-type(1) i:nth-child(7){--s:55.0;--w:2.81}
.lane:nth-of-type(1) i:nth-child(8){--s:58.13;--w:13.75}
.lane:nth-of-type(1) i:nth-child(9){--s:75.0;--w:5.62}
.lane:nth-of-type(1) i:nth-child(10){--s:81.25;--w:4.69}
.lane:nth-of-type(2) i:nth-child(1){--s:30.0;--w:3.13}
.lane:nth-of-type(2) i:nth-child(2){--s:39.38;--w:2.49}
.lane:nth-of-type(2) i:nth-child(3){--s:45.0;--w:4.38}
.lane:nth-of-type(2) i:nth-child(4){--s:51.88;--w:3.12}
.lane:nth-of-type(2) i:nth-child(5){--s:61.25;--w:1.88}
.lane:nth-of-type(2) i:nth-child(6){--s:64.38;--w:3.74}
.lane:nth-of-type(2) i:nth-child(7){--s:83.75;--w:3.75}
.lane:nth-of-type(3) i:nth-child(1){--s:8.75;--w:3.13}
.lane:nth-of-type(3) i:nth-child(2){--s:18.75;--w:2.5}
.lane:nth-of-type(3) i:nth-child(3){--s:22.5;--w:5.0}
.lane:nth-of-type(3) i:nth-child(4){--s:35.0;--w:2.5}
.lane:nth-of-type(3) i:nth-child(5){--s:66.25;--w:9.38}
.lane:nth-of-type(3) i:nth-child(6){--s:76.88;--w:2.5}
.lane:nth-of-type(4) i:nth-child(1){--s:18.75;--w:6.25}
.lane:nth-of-type(4) i:nth-child(2){--s:40.62;--w:3.13}
.lane:nth-of-type(4) i:nth-child(3){--s:50.0;--w:4.69}
.lane:nth-of-type(4) i:nth-child(4){--s:75.0;--w:3.12}
.lane:nth-of-type(5) i:nth-child(1){--s:16.87;--w:7.51}
.lane:nth-of-type(5) i:nth-child(2){--s:44.38;--w:5.62}
.lane:nth-of-type(5) i:nth-child(3){--s:55.62;--w:1.88}
.lane:nth-of-type(5) i:nth-child(4){--s:58.75;--w:12.5}
.lane:nth-of-type(5) i:nth-child(5){--s:81.25;--w:10.63}
.lane:nth-of-type(6) i:nth-child(1){--s:7.5;--w:2.5}
.lane:nth-of-type(6) i:nth-child(2){--s:25.0;--w:3.75}
.lane:nth-of-type(6) i:nth-child(3){--s:40.0;--w:4.38}
.lane:nth-of-type(6) i:nth-child(4){--s:56.25;--w:3.13}
.lane:nth-of-type(6) i:nth-child(5){--s:73.75;--w:3.75}
.lane:nth-of-type(6) i:nth-child(6){--s:92.5;--w:3.75}

/* ---- 節の共通 ---- */
.sec {
  padding-block: clamp(64px, 8.5vw, 124px);
}

.tint {
  background: var(--sidebar);
}

.sec h2 {
  margin: 0;
  max-width: 16em;
  font-size: clamp(28px, 4.6vw, 64px);
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.025em;
}

:lang(en) .sec h2 {
  max-width: 18em;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

.sec h3 {
  margin: 0 0 10px;
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.35;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.sec p {
  margin: 0 0 1em;
  color: var(--ink-2);
}

.lede {
  max-width: 660px;
  margin-top: clamp(20px, 3vw, 32px);
  font-size: clamp(16px, 1.5vw, 19px);
}

/* 痛み */
#pain h2 {
  max-width: none;
  font-size: clamp(32px, 6.4vw, 92px);
  line-height: 1.15;
}

/* 最後の呼びかけの見出し。.sec.end にして、英語の :lang(en) .sec h2 の幅にも勝たせる。 */
.sec.end h2 {
  max-width: none;
  font-size: clamp(34px, 6.4vw, 92px);
}

.scenes {
  display: grid;
  gap: 40px 72px;
  margin-top: clamp(40px, 6vw, 88px);
}

.scene {
  padding-top: 24px;
  border-top: 2px solid var(--ink);
}

.scene p {
  max-width: 520px;
  font-size: clamp(16px, 1.4vw, 18px);
}

/* 一日の流れ：見出しを左に留めて、3つの段が右を流れる。段の左の線が、読み進めるぶんだけ伸びる。 */
.flow {
  display: grid;
  gap: 40px 72px;
}

.steps {
  position: relative;
  display: grid;
  gap: clamp(64px, 8vw, 112px);
  margin: clamp(32px, 5vw, 56px) 0 0;
  padding: 0 0 0 clamp(20px, 3vw, 36px);
  list-style: none;
}

.steps::before,
.steps::after {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 2px;
}

.steps::before {
  background: var(--rule-strong);
}

.steps::after {
  background: var(--ink);
  transform-origin: 50% 0;
}

.step {
  display: grid;
  gap: 24px;
}

.step h3 {
  font-size: clamp(30px, 3.6vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.step-text p {
  max-width: 520px;
  font-size: clamp(16px, 1.4vw, 18px);
}

.step .window {
  width: 100%;
}

.step-menubar .window { max-width: 400px; }
.step-summary .window { max-width: 500px; }
.step-reflection .window { max-width: 600px; }

/* 書かなくても使える */
.sec .window.pop {
  margin-top: clamp(36px, 5vw, 64px);
  transform-origin: 50% 0;
}

.split {
  display: grid;
  gap: 40px 80px;
  align-items: center;
}

.sec .wrap > h2 + .split {
  margin-top: clamp(36px, 5vw, 72px);
}

.window figcaption {
  margin-top: 12px;
  color: var(--ink-3);
  font-size: 14px;
  line-height: 1.6;
}

.split p {
  max-width: 560px;
  font-size: clamp(16px, 1.4vw, 18px);
}

.split .window {
  max-width: 440px;
}

/* AI、書き出し：罫線で区切る */
.quad,
.trio {
  display: grid;
  gap: 0 72px;
  margin-top: clamp(40px, 6vw, 88px);
}

.quad > div,
.trio > div {
  padding: 24px 0 24px;
  border-top: 1px solid var(--rule-strong);
}

.trio > div {
  border-top: 2px solid var(--ink);
  padding-bottom: 8px;
}

.quad p,
.trio p {
  max-width: 520px;
}

/* プライバシー：地と文字を反転した節 */
.inv {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: var(--bg);
}

.inv::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(46% 70% at 100% 0%, color-mix(in srgb, var(--cat-make) 34%, transparent), transparent 70%);
}

.inv .wrap {
  position: relative;
}

.inv h2 {
  color: var(--bg);
}

.inv p,
.inv li {
  color: color-mix(in srgb, var(--bg) 76%, transparent);
}

.inv a {
  color: var(--bg);
}

.two {
  display: grid;
  gap: 32px 80px;
}

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

.inv li {
  padding: 18px 0;
  border-top: 1px solid color-mix(in srgb, var(--bg) 24%, transparent);
  font-size: clamp(16px, 1.4vw, 18px);
}

.inv li:last-child {
  border-bottom: 1px solid color-mix(in srgb, var(--bg) 24%, transparent);
}

/* 料金 */
.price {
  margin-top: clamp(36px, 5vw, 72px);
  border-top: 2px solid var(--ink);
}

.price-row {
  display: grid;
  gap: 2px 32px;
  padding: 24px 0;
  border-bottom: 1px solid var(--rule-strong);
}

.price-row h3 {
  margin: 0;
  font-size: 18px;
}

.price-row p {
  margin: 0;
}

.price-row .amount {
  color: var(--ink);
  font-size: clamp(26px, 3.2vw, 40px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

/* よくある質問 */
.faq {
  display: grid;
  gap: 0 72px;
  margin: clamp(36px, 5vw, 72px) 0 0;
}

.faq > div {
  padding: 22px 0 26px;
  border-top: 1px solid var(--rule-strong);
}

.faq dt {
  color: var(--ink);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
}

.faq dd {
  margin: 8px 0 0;
  color: var(--ink-2);
}

/* 最後の呼びかけ。下のレーンは、ここまで読み進めたときに記録される。 */
.end {
  position: relative;
  overflow: hidden;
  padding-top: clamp(80px, 11vw, 160px);
  padding-bottom: clamp(280px, 30vw, 380px);
  border-top: 1px solid var(--rule);
}

.end::before {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 520px;
  pointer-events: none;
  background: radial-gradient(60% 90% at 50% 100%, color-mix(in srgb, var(--cat-make) 14%, transparent), transparent 72%);
}

.end .wrap {
  position: relative;
  z-index: 1;
  text-align: center;
}

.end h2 {
  margin-inline: auto;
}

/* ボタンのまわりを広く取り、補足はボタンの下に。 */
.end .actions {
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  margin-top: clamp(40px, 5vw, 64px);
}

/* 振り返りを書くときに使える機能 */
.features {
  display: grid;
  gap: 28px;
}

.features h3 {
  margin-bottom: 6px;
  font-size: clamp(18px, 1.7vw, 22px);
}

.features p {
  margin: 0;
}

.end .lanes {
  inset: auto 0 0 0;
  height: 300px;
  -webkit-mask-image: linear-gradient(to top, var(--ink) 0, var(--ink) 45%, transparent 100%);
  mask-image: linear-gradient(to top, var(--ink) 0, var(--ink) 45%, transparent 100%);
}

.end .lane {
  top: auto;
  bottom: calc(24px + var(--n, 0) * var(--row, 36px));
}

.end .tick b {
  top: auto;
  bottom: 14px;
}

.end .lane i {
  opacity: 0.4;
}

.foot {
  padding: 28px 0 44px;
  border-top: 1px solid var(--rule);
  color: var(--ink-3);
  font-size: 14px;
}

.foot .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 24px;
  line-height: 24px;
}

.foot .mark {
  margin-right: 8px;
  font-size: 16px;
  line-height: 24px;
}

.foot .mark img {
  width: 24px;
  height: 24px;
}

.foot small {
  margin-left: auto;
  font-size: 13px;
}

/* ---------------------------------------------------------------
   幅
   --------------------------------------------------------------- */
@media (min-width: 820px) {
  .dl-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .scenes,
  .quad,
  .faq {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .trio {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0 40px;
  }

  .split {
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  }

  .two {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    align-items: start;
  }

  .two.even {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .price-row {
    grid-template-columns: minmax(0, 3fr) minmax(0, 3fr) minmax(0, 5fr);
    align-items: baseline;
  }
}

@media (min-width: 960px) {
  .flow {
    grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
    align-items: start;
  }

  .flow-head {
    position: sticky;
    top: 112px;
  }

  .steps {
    margin-top: 0;
  }

  .hero-head {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: end;
  }

  :lang(en) .hero-head {
    grid-template-columns: minmax(0, 8fr) minmax(0, 5fr);
  }
}

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

  .step .window {
    justify-self: start;
  }
}

@media (max-width: 640px) {
  /* 狭い画面では、日次ビューの真ん中（要約と内訳）を切り出して大きく見せる。 */
  .hero-shot img {
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: 60% 0;
  }

  .sec .window.pop img {
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: 40% 0;
  }

  .hero-side {
    display: flex;
    flex-direction: column;
  }

  .hero-side .actions {
    order: -1;
    margin: 0 0 20px;
  }

  .actions .button.lg {
    width: 100%;
  }

  .hero {
    padding-top: 128px;
  }

  .hero .lanes {
    --top: 34px;
    --row: 16px;
    --lh: 10px;
  }

  .hero .lane:nth-of-type(6) {
    display: none;
  }

  .tick b {
    display: none;
  }

  .tick:nth-of-type(even) {
    display: none;
  }
}

/* ---------------------------------------------------------------
   動き：CSS だけ。動きを減らす設定のとき、また対応しないブラウザでは、何も起きず最終の形のまま。
   --------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }

  .button {
    transition: opacity 0.2s, transform 0.2s;
  }

  .button:hover {
    transform: translateY(-1px);
  }

  /* 読み込み時：記録の線が 0.2 秒で一度だけ通り、通ったところに帯が記録される（くり返さない）。 */
  .lane i {
    animation: record calc(var(--w) * 0.002s) linear calc(0.05s + var(--s) * 0.002s) backwards;
  }

  .sweep {
    animation: sweep 0.2s linear 0.05s backwards;
  }

  .tick {
    animation: fade-in 0.2s ease-out backwards;
  }

  .end .lane i,
  .end .tick {
    animation: none;
  }

  .hero-title > *,
  .hero-side > *,
  .hero-shot {
    animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) backwards;
  }

  .hero-title > .lead {
    animation-delay: 0.08s;
  }

  .hero-side > p {
    animation-delay: 0.16s;
  }

  .hero-side > .actions {
    animation-delay: 0.24s;
  }

  .hero-shot {
    animation-delay: 0.32s;
  }

  @keyframes record {
    from { transform: scaleX(0); }
  }

  @keyframes sweep {
    0% { transform: translateX(-100%); opacity: 0.5; }
    85% { opacity: 0.5; }
    100% { transform: translateX(0); opacity: 0; }
  }

  @keyframes fade-in {
    from { opacity: 0; }
  }

  @keyframes rise {
    from { opacity: 0; translate: 0 18px; }
  }

  /* スクロールに結ぶ動き（Chrome、Safari 26 以降）。Firefox など非対応のブラウザでは何も起きない。 */
  @supports (animation-timeline: view()) {
    .rv,
    .rv-img {
      animation: reveal linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 38%;
    }

    .rv-img {
      animation-name: reveal-img;
      animation-range: entry 0% entry 30%;
    }

    /* 窓が少し小さく入ってきて、読むうちに実寸になる。 */
    .window.pop {
      animation: pop linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 34%;
    }

    .hero-shot {
      animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) 0.32s backwards, settle linear both;
      animation-timeline: auto, scroll(root);
      animation-range: normal, 0px 60vh;
    }

    /* ページを読み進めるぶんだけ、上の線が伸びる。 */
    .dayline {
      display: block;
      position: absolute;
      left: 0;
      right: 0;
      bottom: -1px;
      height: 2px;
      background: var(--ink);
      transform-origin: 0 50%;
      animation: record linear both;
      animation-timeline: scroll(root);
    }

    .end {
      view-timeline-name: --end;
    }

    .end .lane i {
      animation: record linear both;
      animation-timeline: --end;
      animation-range: entry calc(8% + var(--s) * 0.5%) entry calc(22% + (var(--s) + var(--w)) * 0.5%);
    }

    .steps::after {
      animation: grow-y linear both;
      animation-timeline: view();
      animation-range: cover 10% cover 90%;
    }

    @keyframes grow-y {
      from { transform: scaleY(0); }
    }


    @keyframes reveal {
      from { opacity: 0; transform: translateY(28px); }
    }

    @keyframes reveal-img {
      from { opacity: 0; transform: translateY(40px) scale(0.97); }
    }

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

    @keyframes settle {
      from { transform: perspective(2000px) rotateX(8deg) scale(0.95); }
    }
  }
}

/* ---------------------------------------------------------------
   サブページ（プライバシーポリシー、利用規約、Chrome 拡張、ダウンロード、404）。
   ヘッダー（.bar）、フッター（.foot）、幅（.wrap）、ボタンは LP と共通。本文は読みやすい幅に抑える。
   --------------------------------------------------------------- */
/* 短いページでも、フッターを画面の下に置く（body は縦の flex）。 */
main {
  flex: 1;
}

.doc {
  --wrap: 800px;
  padding-bottom: clamp(48px, 7vw, 104px);
}

/* 本文のないページ（404）では、見出しの下の線を引かない。 */
.doc-head:last-child {
  border-bottom: 0;
}

.doc-head {
  padding: clamp(56px, 8vw, 112px) 0 clamp(36px, 4vw, 52px);
  border-bottom: 1px solid var(--rule);
}

.doc-head h1,
.dl-hero h1 {
  margin: 0;
  font-size: clamp(36px, 5.6vw, 64px);
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.doc-head p {
  margin: 20px 0 0;
  max-width: 680px;
  color: var(--ink-2);
  font-size: clamp(16px, 1.4vw, 18px);
}

.doc-head p.note {
  font-size: 14px;
  color: var(--ink-3);
}

.doc .wrap > section {
  padding: clamp(36px, 4vw, 48px) 0;
  border-bottom: 1px solid var(--rule);
}

.doc .wrap > section:last-of-type {
  border-bottom: 0;
}

.doc section h2 {
  margin: 0 0 14px;
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.doc section h3 {
  margin: 26px 0 6px;
  font-size: 17px;
  font-weight: 600;
}

.doc section p,
.doc section li {
  color: var(--ink-2);
}

.doc section p {
  margin: 0 0 1em;
}

.doc section ol,
.doc section ul {
  padding-left: 1.4em;
}

.doc section li + li {
  margin-top: 4px;
}

code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.9em;
  background: var(--track);
  padding: 1px 6px;
  border-radius: 4px;
}

.doc section table {
  border-collapse: collapse;
  width: 100%;
}

.doc section th,
.doc section td {
  padding: 12px 16px 12px 0;
  border-bottom: 1px solid var(--rule);
  text-align: left;
  vertical-align: top;
}

.doc section th {
  font-weight: 600;
}

/* ---------------------------------------------------------------
   ダウンロードのページ：アイコンとボタンを真ん中に、背景に LP と同じ時間軸のレーン。下に、はじめの3段。
   --------------------------------------------------------------- */
.dl {
  --wrap: 1040px;
}

.dl-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(36px, 4vw, 48px) 0;
  text-align: center;
}

.dl-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(50% 60% at 50% 40%, color-mix(in srgb, var(--cat-make) 10%, transparent), transparent 72%);
}

/* レーンは見出しの上までにとどめ、文字の後ろに置かない。 */
.dl-lanes {
  height: clamp(150px, 17vw, 250px);
  opacity: 0.6;
}

.dl-hero .wrap {
  position: relative;
  z-index: 1;
}

.dl-icon {
  width: clamp(96px, 12vw, 136px);
  height: auto;
  filter: drop-shadow(0 18px 28px var(--shadow));
}

.dl-hero h1 {
  margin-top: 24px;
}

.dl-hero .lead {
  margin: 14px auto 0;
  max-width: 32em;
  color: var(--ink-2);
  font-size: clamp(17px, 1.6vw, 20px);
}

.dl-hero .actions {
  flex-direction: column;
  gap: 10px;
  margin-top: 36px;
}

.dl-hero .actions .button {
  margin-bottom: 8px;
}

.dl-steps {
  display: grid;
  gap: 16px;
  margin: clamp(48px, 6vw, 80px) 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.dl-steps li {
  margin: 0;
  counter-increment: step;
  padding: 24px 24px 20px;
  border: 1px solid var(--rule);
  border-radius: var(--radius-window);
  background: var(--raised);
}

.dl-steps li::before {
  content: counter(step);
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--cat-make);
  color: var(--on-make);
  font-size: 14px;
  font-weight: 600;
}

.dl-steps h2 {
  margin: 14px 0 6px;
  font-size: 19px;
  line-height: 1.4;
  font-weight: 600;
}

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

.dl-more {
  margin-top: clamp(32px, 4vw, 48px);
  text-align: center;
}

.dl-more {
  color: var(--ink-2);
}

.dl-more p {
  margin: 0 0 12px;
}

.dl-more p:first-child {
  margin-bottom: clamp(28px, 3vw, 40px);
}
