/* トップ内のAbout */

/* 読み送りで本文の紙を動かす位置（top.js の setReaderPose が毎フレーム .top-about に書く）。中の要素へ受け継がないように
   登録しておく（受け継ぐと、書くたびに4枚分の本文すべてのスタイルを計算し直す）。帯の模様は --reader-surface-pose を使う。 */
@property --reader-pose {
  syntax: '*';
  inherits: false;
}

/* レイアウト */
.top-about-window { display: contents; }
.top-reader-surface { display: none; }

.top-about {
  --about-white-tape: url('../../images/about/section/white-tape.webp');
  --about-line-tape: url('../../images/about/section/line-tape-blue.webp');
  --about-check-tape: url('../../images/about/section/check-tape-blue.webp');
  --about-title-tape-blue: url('../../images/about/section/title-tape-blue.webp');
  --about-paper-grain-blue: url('../../images/about/section/paper-grain-blue.webp');
  --about-blue-dot: url('../../images/about/section/blue-dot.webp');
  --about-red-stripe: url('../../images/about/section/red-stripe.webp');
  --about-poster-stripes: url('../../images/about/section/poster-stripes.webp');
  --about-poster-dots: url('../../images/about/section/poster-dots-blue.webp');
  --about-number-papers: url('../../images/about/section/number-papers.webp');
  background: var(--red);
}

:where(.top-about) .top-about-panel {
  position: relative;
  min-height: 650px;
  padding: 45px var(--gutter);
}

:where(.top-about) .top-about-button {
  --about-button-padding: 13px 26px;
  --about-button-gap: 30px;
  display: flex;
  width: fit-content;
  margin: 23px 0 0 auto;
  border: 0;
  padding: 0;
  background: transparent;
  font-size: 16px;
}

:where(.top-about) .top-about-button[hidden] {
  display: none;
}

:where(.top-about) .top-about-button > .button-face {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--about-button-gap);
  padding: var(--about-button-padding);
  color: var(--blue);
  background: var(--about-white-tape) center / 100% 117% no-repeat;
  transform: rotate(-4deg);
}

:where(.top-about) .top-about-button .type-arrow {
  font-size: 21px;
}

:where(.top-about) .top-about-poster {
  position: relative;
  justify-self: center;
  height: min(50vh, 480px);
  aspect-ratio: 600/847;
}

.top-about-poster-open {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
}

.top-about-poster-open:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

:where(.top-about) .top-about-poster picture {
  display: block;
  height: 100%;
}

:where(.top-about) .top-about-poster img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  box-shadow: 4px 7px 14px #32344a30;
}

:where(.top-about) .top-about-tape {
  position: absolute;
  top: -8px;
  width: 75px;
  height: 22px;
  background-size: 250px;
}

:where(.top-about) .top-about-tape-left {
  left: -21px;
  transform: rotate(-38deg);
}

:where(.top-about) .top-about-tape-right {
  right: -21px;
  transform: rotate(39deg);
}

:where(.top-about) .top-about-enlarge {
  border: 0;
  padding: 0;
  background: transparent;
  display: flex;
  gap: 30px;
  align-items: center;
  margin-top: 17px;
  font-size: 16px;
}

:where(.top-about) .top-about-enlarge > .button-face {
  display: flex;
  align-items: inherit;
  gap: inherit;
  padding: var(--about-enlarge-padding, 10px 0);
  border-bottom: 1px solid currentColor;
}

:where(.top-about) .top-about-enlarge .button-face > span {
  font-size: 22px;
}

.top-scene-active .top-about {
  position: absolute;
  z-index: 2;
  inset: var(--header-height) 0 var(--footer-height);
  clip-path: inset(0 var(--reel-inset, 0px) 0 var(--paper-left, 0px));
  transform-origin: top left;
  background: transparent;
  visibility: hidden;
  pointer-events: none;
}

.top-scene-active .top-about.top-about-readable {
  visibility: visible;
  pointer-events: auto;
}

.top-scene-active .top-about-pages {
  display: flex;
  width: 100%;
  height: 100%;
  will-change: transform;
}

.top-scene-active .top-about-panel {
  flex: 0 0 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  padding-top: 24px;
  padding-bottom: 24px;
}

/* 配色と装飾 */
.top-about {
  color: var(--white);
}

:where(.top-about) .top-about-poster {
  transform: rotate(-5deg);
}

:where(.top-about) .top-about-tape-left {
  background-color: var(--white);
}

:where(.top-about) .top-about-tape-right {
  background-color: var(--blue);
}

@media (min-width: 761px) and (max-height: 760px) {
  :where(.top-about) .top-about-poster {
    height: 47vh;
  }
  .top-scene-active .top-about-panel {
    padding-top: 18px;
    padding-bottom: 18px;
  }
  :where(.top-about) .top-about-button {
    margin-top: 12px;
    --about-button-padding: 9px 20px;
  }
  :where(.top-about) .top-about-enlarge {
    font-size: 16px;
    line-height: 1.5;
    --about-enlarge-padding: 6px 0;
    margin-top: 8px;
  }
}

/* 矢印 */
:where(.top-about) .top-about-button .type-arrow {
  font-family: 'Higure Gothic', sans-serif;
  font-weight: 400;
  font-style: normal;
  font-synthesis: none;
}

/* テープ素材 */
:where(.top-about) .top-about-tape {
  background: var(--about-white-tape) center/100% 100% no-repeat;
  background-color: transparent;
  mask: none;
  clip-path: none;
  filter: none;
}

/* Aboutの紙面 */
.top-about .top-about-panel {
  display: grid;
  align-items: center;
  padding: 42px 7.6vw 42px 3.65vw;
}

.top-about-layout {
  display: grid;
  grid-template-columns: minmax(0, .63fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(26px, 6vw, 110px);
  width: 100%;
}

.top-about-number {
  position: absolute;
  top: clamp(10px, 1.6svh, 24px);
  left: clamp(9px, .95vw, 22px);
  z-index: 1;
  display: grid;
  place-items: center;
  width: clamp(69px, 7.8vw, 128px);
  aspect-ratio: 134 / 118;
  padding: 0;
  color: var(--blue);
  font-family: 'Higure Gothic', sans-serif;
  font-size: clamp(38px, 5.25vw, 87px);
  line-height: 1;
}

/* 青と白の紙を一枚に重ねておき、スクロール中にマスクを合成しない。 */
.top-about-number::before {
  position: absolute;
  inset: -25%;
  pointer-events: none;
  background: var(--about-number-papers) var(--number-paper-position, 0 0) / 200% 200% no-repeat;
  content: '';
}

.top-about-number > span {
  z-index: 1;
  transform: translate(8%, -10%) rotate(-12deg);
}

.top-about-number--2 {
  --number-paper-position: 100% 0;
}

.top-about-number--3 {
  --number-paper-position: 0 100%;
}

.top-about-number--4 {
  --number-paper-position: 100% 100%;
}

.top-about-title {
  position: relative;
  translate: 0 clamp(-44px, -4.7svh, -20px);
  color: var(--blue);
  font-size: clamp(34px, 5.2vw, 94px);
  line-height: 1.05;
  letter-spacing: .065em;
}

.top-about-title-row {
  display: flex;
  align-items: center;
  gap: .28em;
  margin-top: .60em;
}

.top-about-title-tape {
  position: relative;
  isolation: isolate;
  display: inline-block;
  width: max-content;
  padding: .19em .20em .16em;
  white-space: nowrap;
}

.top-about-title-tape::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: var(--about-white-tape) center / 100% 117% no-repeat;
  content: '';
}

.top-about-title-tape--first {
  rotate: -2.4deg;
}

.top-about-title-tape--second {
  rotate: 3deg;
}

.top-about-title-tape--blue {
  rotate: -7.5deg;
  color: var(--white);
  padding: .37em .27em;
  font-size: .48em;
  letter-spacing: .025em;
}

.top-about-title-tape--blue::before {
  background-image: var(--about-title-tape-blue);
}

.top-about-note {
  position: relative;
  translate: 0 clamp(20px, 6.1svh, 58px);
  rotate: -.7deg;
  color: var(--blue);
}

.top-about-paper {
  padding: clamp(22px, 2.15vw, 38px) clamp(27px, 3.15vw, 56px);
  background: var(--white) url('../../images/tape/paper.webp') center / 480px;
  clip-path: var(--note-edge);
  font-size: clamp(17px, 1.44vw, 26px);
  line-height: 2.05;
  letter-spacing: .035em;
}

.top-about-paper p {
  text-wrap: pretty;
}

.top-about-paper p + p {
  margin-top: .7em;
}

.top-about-overview .top-about-note {
  --stripe-bleed: clamp(26px, 3vw, 46px);
  padding-bottom: var(--stripe-bleed);
}

.top-about-overview .top-about-paper {
  --note-edge: polygon(0 3.5%, 34% 0, 68% 1.5%, 99.6% .5%, 99% 23%, 100% 48%, 99.1% 74%, 100% 98%, 67% 96.4%, 34% 100%, .1% 97.8%, 1.1% 64%, .3% 36%);
  padding-bottom: clamp(31px, 2.8vw, 48px);
}

.top-about-note::before, .top-about-note::after {
  position: absolute;
  z-index: 1;
  display: block;
  pointer-events: none;
  content: '';
}

.top-about-overview .top-about-note::before {
  top: clamp(-78px, -4.85vw, -32px);
  right: clamp(-54px, -3.15vw, -23px);
  width: clamp(100px, 15vw, 256px);
  aspect-ratio: 1.63;
  rotate: -10deg;
  background: url('../../images/common/tape-dots.webp?v=20261122-paper-perf') center / 100% 100% no-repeat;
}

.top-about-overview .top-about-note::after {
  bottom: 0;
  left: clamp(-45px, -2.9vw, -16px);
  width: clamp(88px, 12.6vw, 209px);
  aspect-ratio: 1.55;
  rotate: 4deg;
  background: var(--about-line-tape) center / 100% 100% no-repeat;
}

/* 1 枚目のメモは、右上の水玉と左下のストライプのテープが紙からはみ出すので、紙面（上下は赤い紙の端で切っている）に
   収まるよう、紙を少し上げて上下の真ん中に置き、高さが足りない画面では行の間を収まるところまで詰める（2.05 → 最小 1.65）。
   行の間の式は、メモ 8 行と、行以外の高さ（余白・段落の間・テープのはみ出し ≒ 19vw + 6px、大きい画面では 330px で頭打ち）を、
   紙面の高さ（画面 − 上下の帯 210px）から上下 8px ずつのゆとりを残して割り振ったもの。高さが十分あれば今までどおり 2.05。 */
@media (min-width: 761px) and (min-height: 751px) {
  .top-about-overview .top-about-note {
    translate: 0 clamp(12px, calc(6.1svh - 8px), 50px);
  }

  .top-about-overview .top-about-paper {
    line-height: clamp(1.65em, calc((100svh - 226px - min(19vw + 6px, 330px)) / 8), 2.05em);
  }
}

.top-about-concept .top-about-layout {
  grid-template-columns: minmax(0, .49fr) minmax(0, 1fr);
  gap: clamp(30px, 6.5vw, 110px);
  padding-inline: clamp(0px, 3vw, 56px);
}

.top-about-concept .top-about-title {
  display: flex;
  justify-self: center;
  gap: .11em;
  translate: 0 30px;
  font-size: clamp(44px, 6.8vw, 114px);
}

.top-about-concept .top-about-title-tape::before {
  background: var(--white) url('../../images/tape/paper.webp') center / 320px;
}

.top-about-concept .top-about-title-tape--first::before {
  clip-path: polygon(1% 9%, 27% 4%, 42% 6%, 63% 0, 96% 4%, 100% 39%, 96% 65%, 100% 90%, 71% 94%, 45% 91%, 22% 100%, 3% 93%, 5% 68%, 0 54%, 2% 34%);
}

.top-about-concept .top-about-title-tape--second {
  translate: 0 -.16em;
  rotate: 7deg;
}

.top-about-concept .top-about-title-tape--second::before {
  clip-path: polygon(1% 5%, 36% 8%, 66% 3%, 86% 0, 97% 17%, 98% 40%, 100% 70%, 94% 93%, 69% 96%, 48% 93%, 16% 100%, 2% 82%, 4% 49%);
}

.top-about-concept .top-about-note {
  isolation: isolate;
  translate: 0 -12px;
  rotate: 2deg;
  color: var(--white);
}

.top-about-concept .top-about-paper {
  --note-edge: polygon(0 18%, 7% 10%, 23% 6%, 43% 1%, 69% 4%, 90% 0, 98% 11%, 97% 31%, 100% 54%, 96% 72%, 94% 84%, 81% 96%, 60% 98%, 38% 97%, 17% 100%, 2% 89%, 1% 69%, 3% 46%);
  --concept-padding-top: clamp(37px, 4.2vw, 74px);
  padding: var(--concept-padding-top) clamp(33px, 4.9vw, 84px);
  background: var(--blue) var(--about-paper-grain-blue) center / 480px;
}

.top-about-concept .top-about-paper:has(> .top-about-button[hidden]) {
  display: grid;
  grid-template-columns: fit-content(100%);
  justify-content: center;
  padding-block: var(--concept-padding-top);
}

.top-about-concept .top-about-paper:has(> .top-about-button[hidden]) > p {
  text-wrap: wrap;
}

.top-about-concept .top-about-note::before {
  top: 4.5%;
  right: 9%;
  width: clamp(135px, 15.3vw, 228px);
  aspect-ratio: 10 / 3;
  transform: translateY(-50%) rotate(11deg);
  background: var(--about-check-tape) center / contain no-repeat;
}

.top-about-concept .top-about-note::after {
  z-index: -1;
  right: -3%;
  bottom: 1%;
  width: 35%;
  height: 45%;
  rotate: -8deg;
  background: var(--white) repeating-linear-gradient(0deg, #0041c435 0 1px, transparent 1px 12px);
  clip-path: polygon(0 13%, 89% 0, 100% 18%, 94% 73%, 82% 100%, 12% 89%);
}

.top-about-hatten .top-about-layout {
  grid-template-columns: minmax(0, .67fr) minmax(0, 1fr);
  gap: clamp(27px, 3.9vw, 66px);
  padding-inline-start: clamp(0px, 2.15vw, 32px);
}

.top-about-hatten-heading {
  display: grid;
  justify-self: end;
  justify-items: start;
  gap: clamp(6px, .9vw, 14px);
  translate: 0 -6px;
}

.top-about-hatten-kicker {
  margin-inline-start: 9%;
  padding: .27em .55em .23em;
  rotate: 4deg;
  color: var(--white);
  font-size: clamp(15px, 1.57vw, 23px);
  line-height: 1.2;
  letter-spacing: .06em;
}

.top-about-hatten-kicker::before {
  background: url('../../images/common/tape-blue.webp') center / 102% 170% no-repeat;
}

.top-about-hatten .top-about-title {
  translate: none;
  rotate: -4deg;
  font-size: clamp(35px, 4.95vw, 86px);
  letter-spacing: .035em;
}

.top-about-hatten .top-about-title .top-about-title-tape {
  padding-inline: .53em .38em;
}

.top-about-hatten .top-about-note {
  --hatten-tape-width: clamp(90px, 11.3vw, 168px);
  translate: none;
  rotate: 1deg;
}

.top-about-hatten .top-about-note::before,
.top-about-hatten .top-about-note::after {
  width: var(--hatten-tape-width);
  aspect-ratio: 852 / 313;
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
}

.top-about-hatten .top-about-note::before {
  top: 0;
  right: -8px;
  translate: 0 -43%;
  rotate: 8deg;
  background-image: var(--about-blue-dot);
}

.top-about-hatten .top-about-note::after {
  bottom: 0;
  left: -9px;
  translate: 0 52%;
  rotate: -9deg;
  background-image: var(--about-red-stripe);
}

.top-about-hatten .top-about-paper {
  --note-edge: polygon(0 2%, 26% 0, 54% 1.2%, 80% 0, 99% 1%, 98.5% 26%, 100% 53%, 99% 76%, 99.6% 98%, 74% 97%, 51% 100%, 22% 98.6%, 1% 100%, 1.4% 75%, 0 51%, .7% 23%);
  padding-block: clamp(31px, min(4.15vw, 6.4svh), 60px) clamp(24px, min(3.85vw, 5.8svh), 56px);
  padding-inline: clamp(21px, 3.4vw, 54px);
  background: linear-gradient(#0041c419 1px, transparent 1px) 7px 4px / 22px 22px,
    linear-gradient(90deg, #0041c419 1px, transparent 1px) 7px 4px / 22px 22px,
    var(--white) url('../../images/tape/paper.webp') center / 480px;
  background-blend-mode: multiply;
  font-size: clamp(16px, 1.39vw, 24px);
  line-height: 1.75;
  text-align: center;
}

.top-about-hatten-lead {
  font-size: 1.1em;
}

.top-about-hatten .top-about-paper p > span {
  display: inline-block;
  max-width: 100%;
}

.top-about-hatten-equation {
  padding-top: .6em;
  border-top: 1px solid #0041c44d;
  letter-spacing: .095em;
}

.top-about-hatten-equation > span {
  color: var(--red);
  white-space: nowrap;
}

.top-about-visual .top-about-layout {
  grid-template-columns: minmax(0, .92fr) minmax(0, 1fr);
  gap: clamp(34px, 7vw, 110px);
}

.top-about-visual .top-about-poster {
  isolation: isolate;
  height: min(52svh, 510px);
  transform: rotate(-6deg);
}

.top-about-visual .top-about-poster::before {
  position: absolute;
  z-index: -1;
  inset: -9.5% -10% -10% -9%;
  background: var(--blue) var(--about-paper-grain-blue) center / 380px;
  clip-path: polygon(0 4%, 69% 0, 99% 4%, 98% 68%, 100% 92%, 91% 99%, 46% 97%, 5% 100%, 1% 70%);
  content: '';
}

.top-about-visual .top-about-tape-left {
  top: -8.4%;
  left: 9%;
  width: 56%;
  height: auto;
  aspect-ratio: 3;
  background: var(--about-poster-stripes) center / contain no-repeat;
  transform: translateY(-50%) rotate(-4deg);
}

.top-about-visual .top-about-tape-right {
  top: auto;
  right: 8%;
  bottom: -8.7%;
  width: 51%;
  height: auto;
  aspect-ratio: 3;
  background: var(--about-poster-dots) center / contain no-repeat;
  transform: translateY(50%) rotate(6deg);
}

.top-about-visual .top-about-note {
  justify-self: center;
  width: min(100%, max(360px, 34vw));
  translate: 0 0;
  rotate: 1.2deg;
}

.top-about-visual .top-about-note::before, .top-about-visual .top-about-note::after {
  content: none;
}

.top-about-visual .top-about-paper {
  --note-edge: polygon(0 1%, 23% 2%, 54% 0, 74% 1.4%, 96% 0, 97% 17%, 99% 29%, 98% 44%, 100% 64%, 97% 88%, 89% 99%, 70% 97%, 48% 100%, 24% 97%, 6% 99%, 1% 88%, 2% 70%, 0 47%, 2% 26%);
  padding-block: clamp(27px, 3vw, 47px);
  background: linear-gradient(#0041c41f 1px, transparent 1px) 7px 4px / 22px 22px,
    linear-gradient(90deg, #0041c41f 1px, transparent 1px) 7px 4px / 22px 22px,
    var(--white) url('../../images/tape/paper.webp') center / 480px;
  background-blend-mode: multiply;
  line-height: 1.75;
}

.top-about-visual h2 {
  font-size: clamp(25px, 3.1vw, 52px);
  line-height: 1.15;
  margin: 0 0 .45em;
}

@media (max-width: 1180px) {
  .top-about-line {
    display: none;
  }
}

@media (min-width: 761px) and (max-height: 750px) {
  .top-about .top-about-panel {
    padding-block: 24px;
  }
  .top-about-overview .top-about-note {
    translate: 0 12px;
  }
  .top-about-paper, .top-about-visual .top-about-paper {
    padding-block: 21px;
    font-size: clamp(16px, 1.4vw, 20px);
    line-height: 1.65;
  }
  .top-about-concept .top-about-paper {
    --concept-padding-top: 44px;
    padding-block: var(--concept-padding-top) 32px;
  }
  .top-about-visual .top-about-poster {
    height: min(47svh, 380px);
  }
  .top-about-visual .top-about-enlarge {
    margin-top: 10px;
  }
}

@media (min-width: 761px) and (max-height: 650px) {
  .top-about-hatten .top-about-paper {
    padding: 28px 21px 23px;
    font-size: clamp(15px, 1.5vw, 19px);
    line-height: 1.53;
  }
  .top-about-hatten .top-about-note {
    --hatten-tape-width: clamp(85px, 10vw, 126px);
  }
  .top-about-hatten-break {
    display: none;
  }
}

/* スマホと縦持ちタブレットは、一本の縦のテープに4つの紙面を貼る。 */
@media (max-width: 760px), (max-width: 1100px) and (orientation: portrait), (max-width: 960px) and (max-height: 540px) and (pointer: coarse) {
  .top-pin {
    --vertical-tape: 1;
    --cover-height: 100svh;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }
  .top-backdrop { height: var(--cover-height); }
  .top-cover {
    grid-area: 1 / 1;
    min-height: var(--cover-height);
  }
  .top-scroll-footer {
    grid-area: 1 / 1;
    align-self: end;
    justify-self: end;
    z-index: 4;
    height: auto;
    padding: 0;
    margin: 0 7% max(8svh, env(safe-area-inset-bottom));
    color: var(--white);
  }
  .top-scroll-cue {
    min-height: 44px;
    gap: 9px;
    font-size: 16px;
  }
  .top-scroll-cue > span:last-child { font-size: 23px; }
  .top-about { grid-area: 2 / 1; }

  .top-mobile-scene-active .top-mobile-track {
    grid-area: 1 / 1;
    display: block;
    min-width: 0;
    height: var(--tape-scroll-height, 100svh);
    /* アドレスバーが縮んで広がる範囲も、ステージと同じ背景でつなぐ。 */
    background: var(--blue);
  }
  .top-mobile-scene-active .top-mobile-stage {
    position: sticky;
    top: min(0px, calc(100svh - var(--cover-height)));
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    height: var(--cover-height);
    overflow: clip;
    isolation: isolate;
    background: var(--blue);
  }
  .top-mobile-stage .top-scene {
    position: absolute;
    z-index: 3;
    inset: auto 0 0;
    height: 100svh;
    pointer-events: none;
  }
  .top-mobile-scene-active .top-scene { display: block; }
  .top-mobile-scene-active .top-backdrop, .top-mobile-scene-active .top-cover {
    /* 表紙をはみ出した紙もカメラに映し、画面端でのクリップは外側のステージに任せる。 */
    overflow: visible;
    transform-origin: 0 calc(var(--cover-height) - 100svh);
  }
  /* 回り込み後の表紙は透明にする。visibility で隠すとSafariがレイヤーを作り直し、
     回り込みの終わりと戻りで止まるため（操作は top.js の inert で止めている）。 */
  .top-mobile-stage[data-cover-passed] :is(.top-backdrop, .top-cover) {
    opacity: 0;
    pointer-events: none;
  }
  .top-mobile-stage[data-cover-passed] [data-cover-beat] {
    animation-play-state: paused;
  }
  .top-mobile-scene-active .top-scroll-footer { z-index: 5; opacity: 1; pointer-events: auto; }
  [data-reader-cue] .top-scroll-footer {
    justify-self: end;
    height: clamp(26px, 5svh, 48px);
    margin: 0;
    padding-inline: 12px max(12px, env(safe-area-inset-right));
    background: var(--blue);
  }
  [data-reader-cue] .top-scroll-cue { min-height: 100%; font-size: 14px; }
  @media (orientation: portrait) {
    /* 表紙とスクロール距離は小さい表示領域を基準にし、描画面は最大の高さを確保する。 */
    .top-mobile-scene-active .top-mobile-stage {
      top: 0;
      height: 100lvh;
      grid-template-rows: var(--cover-height);
    }
    .top-mobile-scene-active .top-mobile-stage:not([data-cover-passed]) {
      overflow: clip visible;
    }
    .top-mobile-scene-active .top-mobile-stage .top-scene { height: 100lvh; }
    .top-mobile-scene-active [data-reader-cue] .top-scroll-footer {
      position: absolute;
      right: 0;
      bottom: var(--mobile-bottom-inset, 0px);
    }

    @supports (font: -apple-system-body) {
      @media (pointer: coarse) {
        /* 表紙が消えるフレームでsticky面の切り抜きを組み直さない。 */
        .top-mobile-scene-active .top-mobile-stage { overflow: clip visible; }
      }
    }
  }
  /* 本文とWebGLを同じsticky面に載せ、巻き口に合わせて本文を見せる。 */
  .top-mobile-scene-active .top-about-window {
    display: block;
    position: absolute;
    inset: calc(var(--cover-height) - 100svh) 0 0;
    z-index: 4;
    pointer-events: none;
    overflow: clip;
  }
  .top-mobile-scene-active .top-about {
    position: absolute;
    grid-area: auto;
    inset: 0 0 auto;
    margin: 0;
    transform-origin: top left;
    transform: var(--reader-pose, none);
    visibility: hidden;
    pointer-events: auto;
  }

  .top-about {
    --strip-width: min(92%, 560px);
    --paper-gutter: clamp(12px, 3.6vw, 24px);
    position: relative;
    overflow: clip;
    isolation: isolate;
    padding-block: clamp(76px, 16vw, 108px) clamp(26px, 7vw, 50px);
    background: var(--blue);
  }

  /* 演出中の赤い台紙は3Dの帯そのもの。本文の紙片だけを重ねる。 */
  .top-mobile-scene-active .top-about {
    padding-block-start: 0;
    background: transparent;
  }

  .top-mobile-scene-active .top-about-pages::before {
    content: none;
  }

  .top-about-pages {
    position: relative;
    isolation: isolate;
    display: grid;
    gap: clamp(64px, 16vw, 96px);
    width: var(--strip-width);
    margin-inline: auto;
    padding-block: clamp(40px, 10vw, 62px) clamp(52px, 12vw, 76px);
  }

  .top-about-pages::before {
    content: '';
    position: absolute;
    z-index: -1;
    inset: 0;
    background: var(--red) url('../../images/tape/paper.webp') 50% 0 / 380px auto repeat;
    background-blend-mode: multiply;
  }

  /* 動きを減らす設定やWebGLの代替表示でも、同じロールから紙が続く。 */
  .top-ready:not(.top-mobile-scene-active) .top-about {
    padding-block: clamp(36px, 8vw, 60px);
  }

  .top-ready:not(.top-mobile-scene-active) .top-about-pages::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: clamp(26px, 5svh, 48px);
    background: url('../../images/about/mobile-tape-roll.webp') center top / 100% 100% no-repeat;
    pointer-events: none;
  }

  .top-about .top-about-panel {
    min-height: 0;
    padding: 0 var(--paper-gutter);
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    column-gap: clamp(12px, 4vw, 24px);
    row-gap: clamp(25px, 6vw, 34px);
    scroll-margin: 0;
  }

  .top-about-panel .top-about-layout {
    display: contents;
  }

  .top-about-number {
    position: relative;
    inset: auto;
    grid-area: 1 / 1;
    align-self: start;
    width: clamp(49px, 13.4vw, 71px);
    font-size: clamp(32px, 8.6vw, 48px);
  }

  .top-about-layout > .top-about-title,
  .top-about-hatten-heading {
    grid-area: 1 / 2;
    justify-self: start;
    translate: none;
  }

  .top-about-title {
    font-size: clamp(30px, 8.1vw, 47px);
  }

  .top-about-title-row {
    margin-top: .24em;
    margin-inline-start: .45em;
  }

  .top-about-concept .top-about-title {
    font-size: clamp(43px, 12vw, 63px);
  }

  .top-about-hatten-heading {
    gap: 7px;
  }

  .top-about-hatten-kicker {
    margin-inline-start: 3%;
    font-size: clamp(14px, 3.75vw, 18px);
  }

  .top-about-hatten .top-about-title {
    font-size: clamp(30px, 8.35vw, 48px);
  }

  .top-about-panel .top-about-note {
    grid-column: 1 / -1;
    min-width: 0;
    width: 100%;
    translate: none;
  }

  .top-about-panel .top-about-paper {
    padding: clamp(25px, 6vw, 35px) clamp(18px, 5.1vw, 34px);
    font-size: clamp(16px, 3.7vw, 19px);
    line-height: 1.78;
    letter-spacing: .02em;
    overflow-wrap: anywhere;
  }

  .top-about-paper p + p {
    margin-top: .95em;
  }

  .top-about-overview .top-about-note {
    --stripe-bleed: 10px;
    rotate: -.8deg;
  }

  .top-about-overview .top-about-paper {
    padding-bottom: clamp(33px, 8vw, 44px);
  }

  .top-about-overview .top-about-note::before {
    top: -16px;
    right: -3px;
    width: clamp(57px, 16vw, 82px);
  }

  .top-about-overview .top-about-note::after {
    left: -4px;
    width: clamp(56px, 15.5vw, 80px);
  }

  .top-about-concept .top-about-note {
    rotate: 1.2deg;
  }

  .top-about-concept .top-about-paper {
    --concept-padding-top: clamp(42px, 10vw, 56px);
    padding: var(--concept-padding-top) clamp(22px, 6.2vw, 40px) clamp(38px, 9vw, 50px);
  }

  .top-about-concept .top-about-note::before {
    top: 3%;
    right: 7%;
    width: clamp(88px, 25vw, 125px);
  }

  .top-about-concept .top-about-note::after {
    right: -1%;
    width: 31%;
  }

  .top-about-button {
    --about-button-padding: 10px 19px;
    --about-button-gap: 18px;
    margin-top: 19px;
  }

  .top-about-hatten .top-about-note {
    --hatten-tape-width: clamp(65px, 19vw, 96px);
    rotate: .6deg;
  }

  .top-about-hatten .top-about-paper {
    padding: clamp(32px, 8vw, 42px) clamp(15px, 4vw, 29px);
    letter-spacing: 0;
  }

  .top-about-hatten .top-about-hatten-lead {
    font-size: 1.06em;
    text-wrap: balance;
  }

  .top-about-hatten-equation {
    padding-top: .9em;
    letter-spacing: .02em;
  }

  .top-about-visual .top-about-poster {
    grid-area: 1 / 1 / auto / -1;
    /* 画面が低いときは、4枚目が画面に収まる高さまで縮める（--visual-poster-height は top.js の fitVisualPage）。 */
    width: min(68%, 265px, calc(var(--visual-poster-height, 1000px) * 600 / 847));
    height: auto;
    margin-block: 18px 14px;
    transform: rotate(-4deg);
  }

  .top-about-visual .top-about-number {
    justify-self: start;
    transform: rotate(-5deg);
  }

  .top-about-visual .top-about-note {
    rotate: -.7deg;
  }

  .top-about-visual h2 {
    margin-bottom: .42em;
    font-size: clamp(31px, 8.7vw, 46px);
  }

  .top-about-visual .top-about-enlarge {
    margin-top: 14px;
    gap: 18px;
  }

  .top-about-button .button-face, .top-about-enlarge .button-face {
    min-height: 44px;
  }
}

@media (max-width: 760px) {
  .top-pin { --cover-height: max(100svh, clamp(660px, 155vw, 1000px)); }
}

@media (min-width: 600px) and (max-width: 1100px) and (orientation: portrait) {
  .top-about {
    --strip-width: min(92%, max(560px, 76vw));
  }
}

/* 本文と帯の模様を、同じスクロール位置に合わせて送る。 */
.top-mobile-scene-active [data-reader-timeline] .top-about,
.top-mobile-scene-active [data-reader-timeline] .top-reader-surface::before {
  animation: top-reader-feed auto linear backwards;
  animation-timeline: scroll(root block);
  animation-range: var(--reader-feed-start) var(--reader-feed-end);
}

@keyframes top-reader-feed {
  from { transform: var(--reader-feed-first); }
  to { transform: var(--reader-feed-last); }
}

/* 巻き口の手前で模様のレイヤーを透かし、3Dの帯に落ちる影を見せる。 */
.top-mobile-scene-active [data-reader-surface] .top-reader-surface {
  display: block;
  position: absolute;
  inset: 0;
  pointer-events: none;
  mask-image: linear-gradient(#000 var(--reader-surface-solid), transparent var(--reader-surface-clear));
}

.top-reader-surface::before {
  content: '';
  position: absolute;
  inset: calc(-1 * var(--reader-surface-extent)) 0 auto;
  width: var(--reader-surface-width);
  height: calc(var(--reader-surface-height) + var(--reader-surface-extent));
  margin-inline: auto;
  transform-origin: top left;
  transform: var(--reader-surface-pose, none);
  background: url('../../images/tape/reader-surface.webp')
    0 var(--reader-surface-phase) / var(--reader-surface-tile) var(--reader-surface-tile);
}

/* 横送りでは既存の赤い帯の地を90度戻し、本文と同じ面で動かす。 */
.top-scene-active .top-about-pages[data-reader-surface]::before {
  content: '';
  position: absolute;
  z-index: -1;
  top: 100%;
  left: -100%;
  width: var(--wide-reader-band);
  height: var(--wide-reader-span);
  transform: rotate(-90deg);
  transform-origin: top left;
  background: url('../../images/tape/reader-surface.webp')
    0 var(--wide-reader-phase) / var(--wide-reader-tile) var(--wide-reader-tile);
  pointer-events: none;
}

/* Safariでは、送り中に切り抜いた紙面を個別に合成する。 */
@supports (font: -apple-system-body) {
  .top-scene-active .top-about-paper,
  .top-mobile-scene-active .top-about-paper {
    transform: translateZ(0);
  }
}
