/*
 * 公開トップ（maps/templates/top.html）専用の scoped presentation。
 * 配色・組版・ボタン・ヘッダー・フッターなどの共通部分は marketing_base.css にあり、先に読み込む。
 * 「LPを一冊の小説として読む」構成：序章 → 各章 → 付録 → 終章。
 * 色は紙・墨・藍（操作）・朱（注記）に絞り、見出しは明朝、本文は Noto Sans JP。
 * 明朝は Shippori Mincho（SIL Open Font License 1.1、Google Fonts 経由）で端末間の見え方を揃え、
 * 読み込み前や失敗時はヒラギノ明朝／游明朝／Noto Serif CJK で代替する。
 */

@property --g {
  syntax: "<number>";
  inherits: true;
  initial-value: 0;
}

/* ── 序章（ヒーロー） ─────────────────────────────── */
.lp-hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(28px, 5vh, 64px));
  padding-bottom: clamp(72px, 9vw, 140px);
  overflow: clip;
}
.lp-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}
.lp-hero__copy {
  position: relative;
  z-index: 2;
}

.lp-hero-title {
  margin: 28px 0 30px;
  font-family: var(--serif);
  font-size: clamp(2.4rem, 4.2vw, 3.7rem);
  font-weight: 600;
  line-height: 1.16;
  letter-spacing: -0.04em;
  color: var(--ink);
}
.lp-hero-title,
.lp-hero-title__accent {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.lp-hero-title .lp-nowrap {
  display: block;
}
.lp-hero-title__break,
.lp-hero-title wbr {
  display: none;
}
.lp-hero-title__accent {
  color: var(--ai);
}
.lp-boten {
  position: relative;
  font-style: normal;
}
.lp-boten::after {
  /* 校正の朱筆を思わせる手書きの線 */
  content: "";
  position: absolute;
  left: -6%;
  right: -10%;
  bottom: -0.1em;
  height: 0.2em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 20' preserveAspectRatio='none'%3E%3Cpath d='M2 14 C 46 7 118 4 198 7 L 197 11 C 128 9 62 12 3 18 Z' fill='%23d4452a'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}

.lp-hero__lead {
  max-width: 36em;
  margin: 0;
  font-size: clamp(15px, 1.25vw, 17.5px);
  line-height: 2;
  color: var(--ink-2);
}
.lp-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}
.lp-hero__notes {
  margin-top: 22px;
  font-size: 13.5px;
  line-height: 1.75;
}
.lp-hero__notes p {
  margin: 0;
}
.lp-hero__quota {
  font-weight: 500;
  color: var(--ink);
}
.lp-hero__sample {
  margin-top: 2px !important;
  font-size: 12.5px;
  color: var(--muted);
}
.lp-hero__terms {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  margin-top: 14px !important;
  font-size: 12.5px;
  color: var(--muted);
}
.lp-hero__terms span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.lp-hero__terms span::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--shu);
}

.lp-hero__scroll {
  display: none;
}

@media (max-width: 639px) {
  .lp-hero__actions .lp-btn {
    width: 100%;
  }
  .lp-running-head {
    gap: 10px;
    font-size: 12px;
    letter-spacing: 0.12em;
  }
  .lp-running-head__no {
    gap: 10px;
  }
  .lp-running-head__no::after {
    width: 22px;
  }
}

@media (max-width: 359px) {
  .lp-hero-title {
    font-size: 2rem;
  }
}

@media (min-width: 1024px) {
  .lp-hero {
    padding-top: calc(var(--header-h) + clamp(36px, 6vh, 80px));
  }
  .lp-hero__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(32px, 4vw, 64px);
    min-height: calc(100svh - var(--header-h) - 120px);
  }
  .lp-hero__scroll {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 24px;
    font-family: var(--serif);
    font-size: 12px;
    letter-spacing: 0.3em;
    color: var(--muted);
  }
  .lp-hero__scroll i {
    position: relative;
    width: 64px;
    height: 1px;
    overflow: hidden;
    background: var(--rule);
  }
  .lp-hero__scroll i::after {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--ink);
    transform: translateX(-100%);
    animation: lp-scroll-cue 2.6s var(--ease-inout) infinite;
  }
}

/* 図〇：実際の画面（端末の枠は付けず、画面をそのまま見せる）
 * PC幅は初期設定（横書き）のPC実画面を版面内に収め、狭い幅はスマホ向けに撮影した画面を使う。 */
.lp-hero-shot {
  position: relative;
  margin: 0;
}
.lp-hero-shot__screen {
  overflow: hidden;
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 60px 100px -50px rgba(26, 23, 18, 0.55), 0 24px 40px -30px rgba(26, 23, 18, 0.3);
}
.lp-hero-shot__screen img {
  display: block;
  width: 100%;
  height: auto;
}
.lp-hero-shot .lp-figcap {
  margin-top: 22px;
}
.lp-hero-shot--wide {
  display: none;
}
/* 幅ごとに読み込む画像だけを切り替える picture。配置は中の img に任せる。 */
.lp-hero-shot__screen > picture {
  display: contents;
}
.lp-hero-shot--narrow {
  justify-self: center;
  width: min(100%, 420px);
}
/* スマホ幅の実画面は縦に長く上下が空白の方眼になるため、マップ部分を中心に5:4で切り取る */
.lp-hero-shot--narrow .lp-hero-shot__screen {
  aspect-ratio: 5 / 4;
}
.lp-hero-shot--narrow .lp-hero-shot__screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 56%;
  transform: scale(1.12);
  transform-origin: 50% 50%;
}
@media (min-width: 1024px) {
  .lp-hero-shot--narrow {
    display: none;
  }
  .lp-hero-shot--wide {
    display: block;
  }
  .lp-hero-shot--wide .lp-figcap {
    max-width: 30em;
  }
}

/* 図一：縦書き・横書きの実画面を、画面内の書字方向アイコンで切り替える */
.lp-direction {
  position: relative;
}
.lp-direction__img {
  transition: opacity 0.6s var(--ease-out);
}
/* 表示していない方は、ホバー時のスタイル（article.css の拡大表示用）にも影響されないよう完全に隠す */
.lp-direction .lp-direction__img[data-direction-image="vertical"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.6s var(--ease-out), visibility 0s linear 0.6s;
}
.lp-direction[data-direction="vertical"] .lp-direction__img[data-direction-image="vertical"] {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.6s var(--ease-out), visibility 0s linear 0s;
}
.lp-direction__hotspot {
  position: absolute;
  z-index: 2;
  /* アイコン中心：横38.8%・縦16.1%（撮影画像から実測）。当たり判定は44px以上。 */
  left: 38.8%;
  top: 16.1%;
  width: max(44px, 4.2%);
  aspect-ratio: 1 / 1;
  translate: -50% -50%;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
}
.lp-direction__hotspot::before,
.lp-direction__hotspot::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: inherit;
  border: 2px solid var(--shu);
  pointer-events: none;
}
.lp-direction__hotspot::after {
  border-width: 1px;
  opacity: 0;
}
.lp-direction__hotspot:hover::before {
  background: rgba(212, 69, 42, 0.1);
}
.lp-direction__hotspot:focus-visible {
  outline: 3px solid #60a5fa;
  outline-offset: 2px;
}
.lp-direction.is-touched .lp-direction__hotspot::before {
  border-color: rgba(212, 69, 42, 0.55);
}
.lp-direction__switch {
  display: flex;
  justify-content: center;
  gap: 4px;
  width: fit-content;
  margin: 18px auto 0;
  padding: 4px;
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
}
.lp-direction__switch button {
  min-width: 88px;
  min-height: 40px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--ink-2);
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
}
.lp-direction__switch button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--paper);
}
.lp-direction__switch button:focus-visible {
  outline: 3px solid #60a5fa;
  outline-offset: 2px;
}
@media (prefers-reduced-motion: no-preference) {
  .lp-direction:not(.is-touched) .lp-direction__hotspot::after {
    animation: lp-ripple 2.2s ease-out infinite;
  }
}
@keyframes lp-ripple {
  0% {
    opacity: 0.9;
    inset: 4px;
  }
  100% {
    opacity: 0;
    inset: -14px;
  }
}

/* 広い画面ではヒーローの実画面側の列を広げ、画面全体を大きく見せる */
@media (min-width: 1280px) {
  .lp-hero__grid {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  }
}

/* 図一：実画面 */
.lp-screen {
  --r: 1;
  margin: clamp(56px, 9vw, 128px) 0 0;
  perspective: 1800px;
}
.lp-screen__frame {
  overflow: hidden;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(26, 23, 18, 0.12), 0 60px 120px -50px rgba(26, 23, 18, 0.55), 0 24px 40px -30px rgba(26, 23, 18, 0.35);
  transform-origin: 50% 0;
  transform: rotateX(calc((1 - var(--r)) * 16deg)) scale(calc(0.88 + var(--r) * 0.12));
}
.lp-screen__frame img {
  display: block;
  width: 100%;
  height: auto;
}
.lp-screen .lp-figcap {
  justify-content: center;
}

/* ── 帯（マーキー） ─────────────────────────────── */
.lp-marquee {
  overflow: hidden;
  padding: clamp(14px, 2vw, 22px) 0;
  border-block: 1px solid var(--rule);
  background: var(--paper);
}
.lp-marquee__track {
  display: flex;
  width: max-content;
  animation: lp-marquee 48s linear infinite;
}
.lp-marquee.is-paused .lp-marquee__track {
  animation-play-state: paused;
}
.lp-marquee__track > div {
  display: flex;
  align-items: center;
  gap: clamp(22px, 3vw, 44px);
  padding-right: clamp(22px, 3vw, 44px);
}
.lp-marquee span {
  font-family: var(--serif);
  font-size: clamp(30px, 4.6vw, 64px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.08em;
  color: var(--ink);
}
.lp-marquee span:nth-of-type(even) {
  color: transparent;
  -webkit-text-stroke: 1px var(--ink);
}
.lp-marquee i {
  font-style: normal;
  font-size: clamp(12px, 1.4vw, 18px);
  color: var(--shu);
}

/* ── 第一章 迷子 ─────────────────────────────── */
.lp-lost {
  position: relative;
  background: var(--night);
  color: var(--night-ink);
}
.lp-lost__sticky {
  padding: clamp(96px, 12vw, 160px) 0;
}
.lp-lost__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}
.lp-lost__title {
  margin: 24px 0 36px;
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3vw, 2.7rem);
  font-weight: 600;
  line-height: 1.5;
}
.lp-lost__title em {
  font-style: normal;
  color: var(--shu-light);
}
.lp-lost__list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}
.lp-lost__item {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  padding: 18px 0;
  border-top: 1px solid var(--night-rule);
  transition: opacity 0.6s ease;
}
.lp-lost__item:last-child {
  border-bottom: 1px solid var(--night-rule);
}
.lp-lost__no {
  font-family: var(--latin);
  font-style: italic;
  font-size: 20px;
  line-height: 1.5;
  color: var(--shu-light);
}
.lp-lost__item h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.1rem, 1.5vw, 1.3rem);
  font-weight: 600;
  line-height: 1.5;
}
.lp-lost__desc {
  display: grid;
  grid-template-rows: 1fr;
  transition: grid-template-rows 0.6s var(--ease-out), opacity 0.6s ease;
}
.lp-lost__desc p {
  min-height: 0;
  overflow: hidden;
  margin: 0;
  padding-top: 6px;
  font-size: 14.5px;
  line-height: 1.9;
  color: var(--night-muted);
}
.lp-lost__answer {
  margin: 36px 0 0;
  font-family: var(--serif);
  font-size: clamp(1.15rem, 1.6vw, 1.45rem);
  line-height: 1.8;
  transition: opacity 0.8s ease, transform 0.8s var(--ease-out);
}
.lp-lost__answer strong {
  padding: 0 0.1em;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(transparent 60%, rgba(36, 67, 214, 0.7) 60%);
}

.lp-lost__figure {
  margin: 0;
}
.lp-lost__stage {
  position: relative;
  width: 100%;
  aspect-ratio: 0.92 / 1;
}
.lp-lost__stage.is-gathered {
  --g: 1;
  transition: --g 2.8s var(--ease-inout);
}
.lp-lost__scraps {
  position: absolute;
  inset: 0;
}
.lp-frag {
  --k: min(1, calc(var(--g) / 0.7));
  position: absolute;
  z-index: 1;
  display: block;
  width: max-content;
  max-width: clamp(120px, 15vw, 190px);
  padding: 10px 13px 11px;
  border-radius: 2px;
  left: calc((var(--sx) + (50 - var(--sx)) * var(--k)) * 1%);
  top: calc((var(--sy) + (50 - var(--sy)) * var(--k)) * 1%);
  translate: -50% -50%;
  rotate: calc(var(--sr) * (1 - var(--k)) * 1deg);
  scale: calc(1 - var(--k) * 0.5);
  opacity: calc(1 - clamp(0, (var(--g) - 0.5) / 0.22, 1));
  font-family: var(--serif);
  font-size: clamp(11px, 1vw, 13px);
  line-height: 1.6;
  color: var(--ink);
  box-shadow: 0 20px 34px -18px rgba(0, 0, 0, 0.85);
}
.lp-frag small {
  display: block;
  margin-bottom: 3px;
  font-family: var(--sans);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  color: var(--muted);
}
.lp-frag--note {
  background-color: #f4efe3;
  background-image: repeating-linear-gradient(transparent 0 calc(1.6em - 1px), rgba(36, 67, 214, 0.2) calc(1.6em - 1px) 1.6em);
  background-position: 0 calc(11px + 1.1em);
}
.lp-frag--sticky {
  background: #ead27c;
}
.lp-frag--doc {
  padding-right: 22px;
  background: #fff;
  font-family: var(--sans);
}
.lp-frag--doc::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  border-style: solid;
  border-width: 0 12px 12px 0;
  border-color: transparent var(--night) #d9d3c6 transparent;
}
.lp-frag--sheet {
  border-top: 3px solid #1f8f5a;
  background: #fff;
  font-family: var(--sans);
}
.lp-frag__cells {
  display: grid;
  grid-template-columns: auto auto auto;
  border-left: 1px solid #cfd6cf;
  border-top: 1px solid #cfd6cf;
  font-size: 0.92em;
}
.lp-frag__cells span {
  padding: 2px 8px;
  border-right: 1px solid #cfd6cf;
  border-bottom: 1px solid #cfd6cf;
}
.lp-lost__result {
  --k: clamp(0, (var(--g) - 0.58) / 0.42, 1);
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  top: 50%;
  translate: 0 -50%;
  opacity: var(--k);
  scale: calc(0.82 + var(--k) * 0.18);
  pointer-events: none;
}
.lp-lost__result img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  box-shadow: 0 60px 110px -40px rgba(0, 0, 0, 0.95);
}
.lp-figcap--night {
  flex-direction: column;
  gap: 8px;
  color: var(--night-muted);
}
.lp-figcap--night .lp-kind {
  color: var(--night-ink);
}
.lp-figcap--night .lp-kind--illust {
  color: var(--shu-light);
}

@media (min-width: 1024px) {
  .lp-lost__grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(48px, 5vw, 96px);
  }
  .lp-lost__stage {
    aspect-ratio: 1.3 / 1;
  }
}

/* スクロール連動（PC・十分な高さがある場合のみ） */
@media (min-width: 1024px) and (min-height: 700px) {
  .lp-lost[data-mode="scrub"] .lp-lost__track {
    height: 360vh;
  }
  .lp-lost[data-mode="scrub"] .lp-lost__sticky {
    position: sticky;
    top: 0;
    display: flex;
    align-items: center;
    height: 100vh;
    height: 100svh;
    padding: var(--header-h) 0 0;
    overflow: hidden;
  }
  .lp-lost[data-mode="scrub"] .lp-lost__item {
    opacity: 0.38;
  }
  .lp-lost[data-mode="scrub"] .lp-lost__item.is-past {
    opacity: 0.55;
  }
  .lp-lost[data-mode="scrub"] .lp-lost__item.is-active {
    opacity: 1;
  }
  .lp-lost[data-mode="scrub"] .lp-lost__desc {
    grid-template-rows: 0fr;
    opacity: 0;
  }
  .lp-lost[data-mode="scrub"] .lp-lost__item.is-active .lp-lost__desc {
    grid-template-rows: 1fr;
    opacity: 1;
  }
  .lp-lost[data-mode="scrub"] .lp-lost__answer {
    opacity: 0;
    transform: translateY(18px);
  }
  .lp-lost[data-mode="scrub"].is-resolved .lp-lost__answer {
    opacity: 1;
    transform: none;
  }
  .lp-lost[data-mode="scrub"].is-resolved .lp-lost__item {
    opacity: 0.45;
  }
}

/* ── 章の共通 ─────────────────────────────── */
.lp-section {
  position: relative;
  padding: clamp(104px, 13vw, 200px) 0;
}
.lp-section-head {
  max-width: 880px;
  margin-bottom: clamp(56px, 8vw, 112px);
}
.lp-section-head--center {
  margin-inline: auto;
  text-align: center;
}
.lp-section-head--center .lp-running-head {
  justify-content: center;
}
.lp-section-head--center .lp-section-head__lead {
  margin-inline: auto;
}
.lp-display {
  margin: 24px 0 0;
  font-family: var(--serif);
  font-size: clamp(1.9rem, 4.3vw, 3.9rem);
  font-weight: 600;
  line-height: 1.32;
  letter-spacing: -0.005em;
}
.lp-display--md {
  font-size: clamp(1.7rem, 3.1vw, 2.8rem);
}
.lp-section-head__lead {
  max-width: 40em;
  margin: 28px 0 0;
  font-size: clamp(15px, 1.2vw, 17px);
  line-height: 2;
  color: var(--ink-2);
}
.lp-checks {
  display: grid;
  gap: 10px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}
.lp-checks li {
  position: relative;
  padding-left: 30px;
  font-size: 14.5px;
  line-height: 1.75;
}
.lp-checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85em;
  width: 18px;
  height: 1px;
  background: var(--shu);
}
.lp-note {
  margin-top: 16px !important;
  padding-left: 14px;
  border-left: 2px solid var(--shu);
  font-size: 13px !important;
  line-height: 1.85 !important;
  color: var(--muted) !important;
}

/* ── 第二章 地図 ─────────────────────────────── */
.lp-spreads {
  display: grid;
  gap: clamp(96px, 12vw, 176px);
}
.lp-spread {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
}
.lp-spread__index {
  display: flex;
  align-items: baseline;
  gap: 14px;
  font-family: var(--serif);
}
.lp-spread__index span {
  font-size: 40px;
  font-weight: 600;
  line-height: 1;
  color: var(--shu);
}
.lp-spread__index small {
  font-family: var(--latin);
  font-style: italic;
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.lp-plate {
  margin: 0;
}
.lp-plate__frame {
  display: block;
  overflow: hidden;
  border: 1px solid var(--rule);
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 50px 90px -60px rgba(26, 23, 18, 0.6);
}
.lp-plate__frame > img {
  display: block;
  width: 100%;
  height: auto;
}
.lp-plate {
  overflow: visible;
}
.lp-spread__title {
  margin: 0 0 22px;
  font-family: var(--serif);
  font-size: clamp(1.6rem, 2.5vw, 2.35rem);
  font-weight: 600;
  line-height: 1.45;
}
.lp-spread__text p {
  margin: 0;
  font-size: 15.5px;
  line-height: 2.05;
  color: var(--ink-2);
}

@media (min-width: 1024px) {
  .lp-spread {
    grid-template-columns: 56px minmax(0, 7fr) minmax(0, 4fr);
    gap: clamp(36px, 4vw, 64px);
    align-items: center;
  }
  .lp-spread--reverse {
    grid-template-columns: 56px minmax(0, 4fr) minmax(0, 7fr);
  }
  .lp-spread--reverse .lp-plate {
    order: 3;
  }
  .lp-spread--reverse .lp-spread__text {
    order: 2;
  }
  .lp-spread__index {
    flex-direction: row;
    align-self: start;
    writing-mode: vertical-rl;
    gap: 18px;
  }
  .lp-spread__index span {
    font-size: 48px;
  }
}

/* ── 第三章 執筆 ─────────────────────────────── */
.lp-writing {
  background: var(--night);
  color: var(--night-ink);
}
.lp-writing .lp-section-head__lead {
  color: var(--night-muted);
}
.lp-theater {
  position: relative;
  max-width: 1120px;
  margin: 0 auto;
}
.lp-theater::before {
  content: "";
  position: absolute;
  inset: 10% 8% -4%;
  z-index: 0;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(36, 67, 214, 0.35), transparent);
  filter: blur(40px);
  pointer-events: none;
}
.lp-theater__frame {
  position: relative;
  z-index: 1;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 12px;
  background: #000;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 70px 120px -50px rgba(0, 0, 0, 0.9);
}
.lp-theater__video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.lp-theater .lp-figcap {
  position: relative;
  z-index: 1;
  color: var(--night-muted);
}
.lp-writing-video-control {
  position: absolute;
  right: 16px;
  bottom: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border: 0;
  border-radius: 999px;
  color: var(--ink);
  background: rgba(243, 239, 230, 0.94);
  box-shadow: 0 14px 30px -10px rgba(0, 0, 0, 0.6);
  transition: transform 0.5s var(--ease-out), background-color 0.3s ease;
}
.lp-writing-video-control:hover {
  transform: scale(1.07);
  background: #fff;
}
.lp-writing-video-control:focus-visible {
  outline: 3px solid var(--ai-light);
  outline-offset: 3px;
}
.lp-writing-video-control svg {
  width: 22px;
  height: 22px;
}
.lp-writing-video-control [data-video-icon="pause"] {
  display: none;
}
.lp-writing-video-control[data-state="playing"] [data-video-icon="play"] {
  display: none;
}
.lp-writing-video-control[data-state="playing"] [data-video-icon="pause"] {
  display: block;
}

.lp-video-guide {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1120px;
  margin: 56px auto 0;
  padding: 28px 0;
  border-block: 1px solid var(--night-rule);
}
.lp-video-guide h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 600;
}
.lp-video-guide p {
  margin: 6px 0 0;
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--night-muted);
}
.lp-page .lp-video-guide-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  gap: 10px;
  font-size: 0.875rem;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  min-height: 52px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  background: var(--night-ink);
  color: var(--night);
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: background-color 0.3s ease;
}
.lp-page .lp-video-guide-link:hover {
  background: #fff;
  color: var(--night);
}
.lp-video-guide-link svg {
  width: 18px;
  height: 18px;
}
@media (max-width: 767px) {
  .lp-video-guide {
    flex-direction: column;
    align-items: flex-start;
  }
  .lp-video-guide-link {
    width: 100%;
  }
}

.lp-related {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
  align-items: center;
  margin-top: clamp(96px, 12vw, 168px);
}
.lp-plate--night .lp-plate__frame {
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 60px 110px -50px rgba(0, 0, 0, 0.95);
}
.lp-tag {
  display: inline-flex;
  margin: 0;
  padding: 4px 14px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-family: var(--serif);
  font-size: 12.5px;
  letter-spacing: 0.2em;
  color: var(--shu-light);
}
.lp-related__title {
  margin: 22px 0 20px;
  font-family: var(--serif);
  font-size: clamp(1.7rem, 2.7vw, 2.5rem);
  font-weight: 600;
  line-height: 1.4;
}
.lp-related__text p:not(.lp-tag) {
  margin: 0;
  font-size: 15.5px;
  line-height: 2.05;
  color: var(--night-muted);
}
.lp-checks--night li {
  color: var(--night-ink);
}
.lp-checks--night li::before {
  background: var(--shu-light);
}
@media (min-width: 1024px) {
  .lp-related {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: clamp(48px, 5vw, 88px);
  }
}

.lp-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  margin-top: clamp(80px, 10vw, 136px);
}
.lp-tool {
  overflow: hidden;
  border: 1px solid var(--night-rule);
  border-radius: 12px;
  background: var(--night-2);
  transition: border-color 0.4s ease, translate 0.7s var(--ease-out);
}
.lp-tool:hover {
  translate: 0 -4px;
  border-color: rgba(236, 230, 218, 0.3);
}
.lp-tool__media {
  overflow: hidden;
  background: #fff;
}
.lp-tool__media img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 1.2s var(--ease-out);
}
.lp-tool:hover .lp-tool__media img {
  transform: scale(1.03);
}
.lp-tool__body {
  padding: 28px 28px 32px;
}
.lp-tool__no {
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--shu-light);
}
.lp-tool h3 {
  margin: 8px 0 12px;
  font-family: var(--serif);
  font-size: clamp(1.25rem, 1.7vw, 1.5rem);
  font-weight: 600;
  line-height: 1.45;
}
.lp-tool p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.95;
  color: var(--night-muted);
}
@media (min-width: 768px) {
  .lp-tools {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
  }
}

.lp-pocket {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 36px;
  align-items: center;
  max-width: 880px;
  margin: clamp(80px, 10vw, 136px) auto 0;
}
.lp-pocket__shot {
  justify-self: center;
  width: min(100%, 300px);
  margin: 0;
}
.lp-pocket__shot img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--night-rule);
  border-radius: 22px;
  box-shadow: 0 60px 100px -50px rgba(0, 0, 0, 0.95);
}
.lp-pocket__title {
  margin: 0 0 18px;
  font-family: var(--serif);
  font-size: clamp(1.6rem, 2.6vw, 2.3rem);
  font-weight: 600;
  line-height: 1.45;
}
.lp-device-note {
  margin: 0;
  font-size: 15px;
  line-height: 2;
  color: var(--night-muted);
}
@media (min-width: 768px) {
  .lp-pocket {
    grid-template-columns: 300px minmax(0, 1fr);
    gap: clamp(40px, 6vw, 88px);
  }
}
.lp-cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 48px;
}
@media (max-width: 639px) {
  .lp-cta-row .lp-btn {
    width: 100%;
  }
}

/* ── 第四章 型 ─────────────────────────────── */
.lp-section-head--split {
  display: grid;
  gap: 28px;
  max-width: none;
}
.lp-section-head--split .lp-section-head__lead {
  margin: 0;
}
@media (min-width: 1024px) {
  .lp-section-head--split {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: clamp(40px, 5vw, 88px);
    align-items: end;
  }
}
.lp-template-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.lp-page .lp-template {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas:
    "media media"
    "no name"
    "no desc";
  column-gap: 12px;
  color: inherit;
  white-space: normal;
  text-decoration: none;
}
.lp-template__media {
  grid-area: media;
  aspect-ratio: 16 / 10;
  margin-bottom: 16px;
  overflow: hidden;
  border: 1px solid var(--rule);
  border-radius: 6px;
  background: #fff;
}
.lp-template__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease-out);
}
.lp-template:hover .lp-template__media img {
  transform: scale(1.05);
}
.lp-template__no {
  grid-area: no;
  padding-top: 3px;
  font-family: var(--latin);
  font-style: italic;
  font-size: 14px;
  line-height: 1.5;
  color: var(--shu-ink);
}
.lp-template__name {
  grid-area: name;
  position: relative;
  width: fit-content;
  font-family: var(--serif);
  font-size: clamp(1.02rem, 1.5vw, 1.3rem);
  font-weight: 600;
  line-height: 1.45;
}
.lp-template__name::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 0.5s var(--ease-out);
}
.lp-template:hover .lp-template__name::after {
  transform: scaleX(1);
  transform-origin: left center;
}
.lp-template__desc {
  grid-area: desc;
  margin-top: 2px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}
@media (min-width: 1024px) {
  .lp-template-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 64px 36px;
  }
}

/* ── 第五章 書き手 ─────────────────────────────── */
.lp-author {
  background: var(--paper-2);
}
.lp-author__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}
.lp-author__sheet {
  position: relative;
  display: flex;
  justify-content: center;
  width: min(100%, 400px);
  aspect-ratio: 3 / 4;
  margin-inline: auto;
  padding: 44px 30px;
  border: 1px solid var(--rule);
  border-radius: 3px;
  background-color: var(--sheet);
  box-shadow: 0 50px 90px -50px rgba(26, 23, 18, 0.55);
  rotate: -1.5deg;
}
.lp-author__sheet::before,
.lp-author__sheet::after {
  content: "";
  position: absolute;
  left: 30px;
  right: 30px;
  height: 1px;
  background: rgba(212, 69, 42, 0.4);
}
.lp-author__sheet::before {
  top: 44px;
}
.lp-author__sheet::after {
  bottom: 44px;
}
.lp-author__vertical {
  height: 100%;
  margin: 0;
  writing-mode: vertical-rl;
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.3vw, 2rem);
  font-weight: 600;
  line-height: 2.1;
  letter-spacing: 0.14em;
  color: var(--ink);
  background-image: repeating-linear-gradient(to left, transparent 0 calc(2.1em - 1px), rgba(212, 69, 42, 0.25) calc(2.1em - 1px) 2.1em);
}
.lp-author__body p {
  margin: 1.1em 0 0;
  font-size: 16px;
  line-height: 2.05;
  color: var(--ink-2);
}
.lp-author__body strong {
  font-weight: 700;
  color: var(--ink);
}
.lp-author__links {
  margin-top: 22px;
}
.lp-about {
  display: grid;
  gap: 10px;
  margin-top: 48px;
  padding-top: 30px;
  border-top: 1px solid var(--rule-strong);
}
.lp-about h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 600;
}
.lp-about p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.95;
  color: var(--ink-2);
}
.lp-about .lp-btn {
  justify-self: start;
  margin-top: 10px;
}
@media (min-width: 1024px) {
  .lp-author__grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(56px, 7vw, 120px);
  }
}

/* ── 付録 料金 ─────────────────────────────── */
.lp-pricing {
  background: var(--paper);
}
.lp-plans {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
  max-width: 48rem;
  margin-inline: auto;
}
@media (min-width: 768px) {
  .lp-plans {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.lp-plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 38px 32px 32px;
  border-radius: 14px;
}
.lp-plan--free {
  border: 1px solid var(--rule-strong);
  background: var(--sheet);
}
.lp-plan--pro {
  background: var(--night);
  color: var(--night-ink);
  box-shadow: 0 60px 100px -60px rgba(26, 23, 18, 0.85);
}
.lp-plan__name {
  margin: 0;
  font-family: var(--latin);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: 0.1em;
}
.lp-plan--pro .lp-plan__name {
  color: var(--ai-light);
}
.lp-plan__price {
  margin: 16px 0 6px;
  font-family: var(--latin);
  font-size: clamp(3.4rem, 5vw, 4.4rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: lining-nums;
}
.lp-plan__yen {
  margin-right: 0.06em;
  font-size: 0.46em;
  vertical-align: 0.85em;
}
.lp-plan__per {
  font-family: var(--sans);
  font-size: 14.5px;
  letter-spacing: 0;
  color: var(--night-muted);
}
.lp-plan__annual {
  margin: 4px 0 0;
  font-size: 12.5px;
  color: var(--night-muted);
}
.lp-plan__lead {
  margin: 18px 0 24px;
  font-size: 13.5px;
  line-height: 1.9;
  color: var(--muted);
}
.lp-plan--pro .lp-plan__lead {
  color: var(--night-muted);
}
.lp-plan__list {
  display: grid;
  flex: 1;
  align-content: start;
  gap: 11px;
  margin: 0 0 32px;
  padding: 22px 0 0;
  border-top: 1px solid var(--rule);
  list-style: none;
  font-size: 14px;
  line-height: 1.65;
}
.lp-plan--pro .lp-plan__list {
  border-top-color: var(--night-rule);
}
.lp-plan__list li {
  position: relative;
  padding-left: 26px;
}
.lp-plan__list li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 0.42em;
  width: 11px;
  height: 6px;
  border-left: 1.5px solid var(--shu);
  border-bottom: 1.5px solid var(--shu);
  transform: rotate(-45deg);
}
.lp-plan--pro .lp-plan__list li::before {
  border-color: var(--ai-light);
}
.lp-plan__list strong {
  font-weight: 700;
}

.lp-term {
  max-width: 40rem;
  margin: clamp(64px, 8vw, 104px) auto 0;
  text-align: center;
}
.lp-term__label {
  margin: 0;
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--shu-ink);
}
.lp-term__title {
  margin: 12px 0 20px;
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.2vw, 1.8rem);
  font-weight: 600;
  line-height: 1.5;
}
.lp-term__body {
  margin: 0;
  font-size: 15px;
  line-height: 2;
  color: var(--ink-2);
}
.lp-term__fine {
  margin: 12px 0 0;
  font-size: 13px;
  line-height: 1.9;
  color: var(--muted);
}
.lp-term__link {
  margin-top: 18px;
  font-size: 14px;
}

/* ── 付録 問答 ─────────────────────────────── */
.lp-faq {
  border-top: 1px solid var(--rule);
  background: var(--paper);
}
.lp-faq__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
}
.lp-faq__list {
  border-top: 1px solid var(--rule-strong);
}
.lp-qa {
  border-bottom: 1px solid var(--rule-strong);
}
.lp-qa summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 44px;
  padding: 24px 2px;
  cursor: pointer;
  list-style: none;
  font-family: var(--serif);
  font-size: clamp(1rem, 1.3vw, 1.14rem);
  font-weight: 600;
  line-height: 1.65;
  transition: color 0.3s ease;
}
.lp-qa summary::-webkit-details-marker {
  display: none;
}
.lp-qa summary:hover {
  color: var(--ai);
}
.lp-qa__mark {
  position: relative;
  width: 30px;
  height: 30px;
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  transition: background-color 0.4s ease, border-color 0.4s ease, rotate 0.5s var(--ease-out);
}
.lp-qa__mark::before,
.lp-qa__mark::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 11px;
  height: 1.5px;
  background: currentColor;
  translate: -50% -50%;
  transition: rotate 0.5s var(--ease-out), opacity 0.3s ease;
}
.lp-qa__mark::after {
  rotate: 90deg;
}
.lp-qa[open] .lp-qa__mark {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}
.lp-qa[open] .lp-qa__mark::after {
  rotate: 0deg;
  opacity: 0;
}
.lp-qa__answer {
  max-width: 44em;
  padding: 0 2px 28px;
  font-size: 15px;
  line-height: 2;
  color: var(--ink-2);
}
@supports selector(::details-content) {
  .lp-page {
    interpolate-size: allow-keywords;
  }
  .lp-qa::details-content {
    block-size: 0;
    overflow: clip;
    transition: block-size 0.5s var(--ease-out), content-visibility 0.5s allow-discrete;
  }
  .lp-qa[open]::details-content {
    block-size: auto;
  }
}
@media (min-width: 1024px) {
  .lp-faq__grid {
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    gap: clamp(48px, 6vw, 104px);
  }
  .lp-faq__head {
    position: sticky;
    top: calc(var(--header-h) + 48px);
    align-self: start;
  }
}

/* ── 終章 ─────────────────────────────── */
.lp-finale {
  position: relative;
  overflow: hidden;
  padding: clamp(128px, 16vw, 240px) 0;
  background: var(--night);
  color: var(--night-ink);
  text-align: center;
}
.lp-finale__sky {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  -webkit-mask-image: radial-gradient(ellipse 46% 40% at 50% 50%, transparent 35%, #000 100%);
  mask-image: radial-gradient(ellipse 46% 40% at 50% 50%, transparent 35%, #000 100%);
}
.lp-finale__lines path {
  fill: none;
  stroke: var(--night-ink);
  stroke-opacity: 0.22;
  stroke-width: 1.2;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}
.lp-finale__stars circle {
  fill: var(--night-ink);
  opacity: 0.5;
  animation: lp-twinkle 4.8s ease-in-out infinite;
}
.lp-finale__stars circle:nth-child(3n) {
  animation-delay: -1.6s;
}
.lp-finale__stars circle:nth-child(3n + 1) {
  animation-delay: -3.2s;
}
.lp-finale__stars circle:nth-child(7) {
  fill: var(--shu-light);
  opacity: 0.9;
}
.lp-finale__inner {
  position: relative;
}
.lp-finale .lp-running-head {
  justify-content: center;
}
.lp-finale__title {
  max-width: 15em;
  margin: 28px auto;
  font-family: var(--serif);
  font-size: clamp(2rem, 5.2vw, 4.9rem);
  font-weight: 600;
  line-height: 1.32;
}
.lp-finale__lead {
  max-width: 34em;
  margin: 0 auto 44px;
  font-size: clamp(15px, 1.3vw, 17px);
  line-height: 2;
  color: var(--night-muted);
}
.lp-finale__fine {
  margin: 20px 0 0;
  font-size: 13px;
  line-height: 1.9;
  color: var(--night-muted);
}
@media (max-width: 639px) {
  .lp-finale__actions .lp-btn {
    width: 100%;
  }
}

/* ── 動き ─────────────────────────────── */
@keyframes lp-ink-in {
  from {
    opacity: 0;
    transform: translateY(0.3em);
    clip-path: inset(0 0 100% 0);
    filter: blur(8px);
  }
  to {
    opacity: 1;
    transform: none;
    clip-path: inset(-20% -10% -45% -10%);
    filter: blur(0);
  }
}
@keyframes lp-stroke-in {
  from {
    clip-path: inset(0 100% 0 0);
  }
  to {
    clip-path: inset(0 0 0 0);
  }
}
@keyframes lp-hero-in {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
}
@keyframes lp-shot-in {
  from {
    opacity: 0;
    transform: translateY(48px) rotate(2deg);
  }
}
@keyframes lp-marquee {
  to {
    transform: translateX(-50%);
  }
}
@keyframes lp-scroll-cue {
  0% { transform: translateX(-100%); }
  55% { transform: translateX(0); }
  100% { transform: translateX(100%); }
}
@keyframes lp-twinkle {
  50% {
    opacity: 0.15;
  }
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }

  .lp-js .lp-hero-title .lp-nowrap {
    animation: lp-ink-in 1.25s var(--ease-out) both;
  }
  .lp-js .lp-hero-title > .lp-nowrap:nth-of-type(1) { animation-delay: 0.1s; }
  .lp-js .lp-hero-title > .lp-nowrap:nth-of-type(2) { animation-delay: 0.22s; }
  .lp-js .lp-hero-title__accent > .lp-nowrap:nth-of-type(1) { animation-delay: 0.38s; }
  .lp-js .lp-hero-title__accent > .lp-nowrap:nth-of-type(2) { animation-delay: 0.5s; }

  .lp-js .lp-boten::after {
    animation: lp-stroke-in 0.9s 1.2s var(--ease-out) both;
  }
  .lp-js .lp-hero-in {
    animation: lp-hero-in 1.1s var(--ease-out) both;
    animation-delay: calc(0.35s + var(--i, 0) * 0.08s);
  }
  .lp-js .lp-hero-shot .lp-hero-shot__screen {
    animation: lp-shot-in 1.6s 0.3s var(--ease-out) both;
  }

  .lp-js [data-reveal] {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 1s var(--ease-out), transform 1.2s var(--ease-out);
    transition-delay: calc(var(--i, 0) * 90ms);
  }
  .lp-js [data-reveal].is-in {
    opacity: 1;
    transform: none;
  }
  /* 監視対象の figure 自体は切り抜かない（完全に切り抜くと交差判定されないため）。
   * 枠が開ききってから、読み込み済みの画像をフェードで出す（枠と画像を同時に出すと、
   * 読み込み途中の白い枠だけが開いてから画像が急に現れるため）。 */
  .lp-js [data-reveal="wipe"] {
    opacity: 1;
    transform: none;
  }
  .lp-js [data-reveal="wipe"] .lp-plate__frame {
    clip-path: inset(0 100% 0 0);
    transition: clip-path 1.1s var(--ease-inout);
  }
  .lp-js [data-reveal="wipe"].is-in .lp-plate__frame {
    clip-path: inset(0 0 0 0);
  }
  .lp-js [data-reveal="wipe"] .lp-plate__frame > img {
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 0.9s ease 1s, transform 1.4s var(--ease-out) 1s;
  }
  .lp-js [data-reveal="wipe"].is-in .lp-plate__frame > img.is-loaded {
    opacity: 1;
    transform: none;
  }
  .lp-js [data-reveal="wipe"] > figcaption {
    opacity: 0;
    transition: opacity 1s 0.9s ease;
  }
  .lp-js [data-reveal="wipe"].is-in > figcaption {
    opacity: 1;
  }
  .lp-js .lp-author__sheet[data-reveal] {
    transform: translateY(28px);
  }
  .lp-js .lp-author__sheet[data-reveal] .lp-author__vertical {
    clip-path: inset(0 0 0 100%);
    transition: clip-path 2.6s 0.4s var(--ease-inout);
  }
  .lp-js .lp-author__sheet[data-reveal].is-in .lp-author__vertical {
    clip-path: inset(0 0 0 0);
  }
  .lp-js .lp-finale__lines path {
    stroke-dashoffset: 1;
    transition: stroke-dashoffset 3s var(--ease-inout);
  }
  .lp-js .lp-finale.is-in .lp-finale__lines path {
    stroke-dashoffset: 0;
  }
  .lp-js .lp-finale.is-in .lp-finale__lines path:nth-child(2) {
    transition-delay: 0.6s;
  }
  .lp-js .lp-finale.is-in .lp-finale__lines path:nth-child(3) {
    transition-delay: 1s;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lp-page *,
  .lp-page *::before,
  .lp-page *::after {
    animation-duration: 1ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
    transition-delay: 0s !important;
  }
  .lp-marquee__track {
    animation: none !important;
  }
  .lp-lost__stage {
    --g: 1 !important;
  }
  .lp-screen {
    --r: 1 !important;
  }
  .lp-btn:active,
  .lp-tool:hover {
    transform: none;
    translate: none;
    scale: none;
  }
  .lp-writing-video-control:hover {
    transform: none;
  }
}

/* ── 幅が広いときだけ入れる改行 ─────────────── */
.lp-br-sm {
  display: none;
}
@media (min-width: 640px) {
  .lp-br-sm {
    display: block;
  }
}

/* ── 横のはみ出しは本文の枠で切り取る ───────────────
 * body の overflow-x は画面全体（viewport）の設定として扱われ、iOS では指で横に動かせてしまう。
 * 第一章のメモの断片などが画面端からはみ出しても横にずれないよう、全幅の main で切り取る（clip は sticky を妨げない）。 */
.lp-page > main {
  overflow-x: clip;
}
