:root {
  --paper: #f5f1e9;
  --ink: #171713;
  --muted: #6e695f;
  --spring: #d98890;
  --spring-dark: #a95261;
  --summer: #8db4cf;
  --summer-dark: #356d97;
  --rule: rgba(23, 23, 19, .34);
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Noto Sans JP", sans-serif;
}

* { box-sizing: border-box; }

html {
  background: var(--paper);
  color: var(--ink);
  overflow-x: clip;
}

body {
  margin: 0;
  min-width: 0;
  overflow-x: clip;
  background: var(--paper);
  font-family: var(--sans);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
h1, h2, h3, p, figure { margin: 0; }

.story {
  position: relative;
  height: 3300vh;
}

.stage {
  position: sticky;
  top: 0;
  height: 100svh;
  min-height: 620px;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 82% 22%, rgba(255,255,255,.92), transparent 34%),
    linear-gradient(110deg, #f2eee6 0%, #f9f6f0 58%, #f2ece3 100%);
}

.paper-grain {
  position: absolute;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  opacity: .14;
  mix-blend-mode: multiply;
  background-image:
    repeating-radial-gradient(circle at 30% 20%, rgba(58,48,35,.17) 0 .4px, transparent .5px 3px),
    repeating-linear-gradient(96deg, transparent 0 11px, rgba(70,58,43,.04) 12px, transparent 13px 22px);
}

.scene {
  position: absolute;
  inset: 0;
  z-index: 2;
  padding: clamp(28px, 4vw, 68px);
}

.scene-number,
.prototype-label,
.eyebrow,
.hero-photo figcaption,
.ichiro-hero figcaption,
.chapter-transition,
.scroll-guide {
  font-size: clamp(9px, .72vw, 12px);
  letter-spacing: .2em;
}

.scene-number {
  position: absolute;
  top: clamp(28px, 4vw, 68px);
  right: clamp(28px, 4vw, 68px);
}

.intro-copy {
  position: absolute;
  left: 50%;
  top: 50%;
  width: max-content;
  max-width: calc(100vw - 96px);
  transform: translate(-50%, -54%);
  text-align: center;
  z-index: 2;
}

.intro-opening {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  width: 180px;
  height: 112px;
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.intro-pending .intro-opening { opacity: 0; }
.intro-motion .intro-opening { animation: intro-opening-exit 1.65s cubic-bezier(.65, 0, .35, 1) both; }

.intro-opening-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 72px;
  height: 72px;
  border: 1px solid rgba(23, 23, 19, .48);
  border-radius: 50%;
}

.intro-opening-ring--left {
  opacity: 0;
}

.intro-opening-ring--right {
  opacity: 0;
}

.intro-motion .intro-opening-ring--left { animation: intro-ring-left 1.38s cubic-bezier(.16, 1, .3, 1) both; }
.intro-motion .intro-opening-ring--right { animation: intro-ring-right 1.38s cubic-bezier(.16, 1, .3, 1) both; }

.intro-opening-axis {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 94px;
  height: 1px;
  background: rgba(23, 23, 19, .28);
  transform: translate(-50%, -50%) scaleX(0);
}

.intro-motion .intro-opening-axis { animation: intro-axis 1.05s cubic-bezier(.16, 1, .3, 1) .28s both; }

.intro-opening-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--spring-dark);
  transform: translate(-50%, -50%) scale(0);
}

.intro-motion .intro-opening-dot { animation: intro-dot 1s cubic-bezier(.16, 1, .3, 1) .42s both; }

.scene--intro .scene-number,
.intro-copy .eyebrow,
.intro-copy .lead,
.scroll-guide,
.progress,
.prototype-label {
  display: none;
}

.eyebrow {
  margin-bottom: 18px;
  font-weight: 400;
}

.intro-copy h1 {
  font: 400 clamp(82px, 10.8vw, 178px)/.77 var(--serif);
  letter-spacing: -.055em;
}

.intro-title-line {
  display: block;
  overflow: hidden;
  padding: .08em .08em .1em;
  margin: -.08em;
}

.intro-title-line > span {
  display: block;
  transform-origin: 50% 100%;
}

.intro-pending .intro-title-line > span,
.intro-pending .intro-title-rule {
  opacity: 0;
}

.intro-motion .intro-title-line > span {
  animation: intro-title-reveal 1.45s cubic-bezier(.16, 1, .3, 1) 1.18s both;
}

.intro-motion .intro-title-line:nth-child(2) > span {
  animation-delay: 1.34s;
}

.intro-title-rule {
  position: relative;
  display: block;
  width: min(300px, 36vw);
  height: 1px;
  margin: clamp(30px, 4.2vh, 48px) auto 0;
  background: rgba(23, 23, 19, .42);
  transform-origin: 50% 50%;
}

.intro-motion .intro-title-rule { animation: intro-rule-reveal 1.25s cubic-bezier(.16, 1, .3, 1) 1.72s both; }

.intro-title-rule::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--spring-dark);
  transform: translate(-50%, -50%);
}

@keyframes intro-title-reveal {
  from {
    opacity: 0;
    filter: blur(7px);
    transform: translateY(112%) rotate(.8deg);
    letter-spacing: .015em;
  }
  to {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0) rotate(0);
    letter-spacing: -.055em;
  }
}

@keyframes intro-opening-exit {
  0%, 74% { opacity: 1; }
  100% {
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, -55%) scale(1.04);
  }
}

@keyframes intro-ring-left {
  0% { opacity: 0; transform: translate(-50%, -50%) translateX(-58px) scale(.68); }
  28% { opacity: .2; }
  72%, 100% { opacity: .72; transform: translate(-50%, -50%) translateX(-16px) scale(1); }
}

@keyframes intro-ring-right {
  0% { opacity: 0; transform: translate(-50%, -50%) translateX(58px) scale(.68); }
  28% { opacity: .2; }
  72%, 100% { opacity: .72; transform: translate(-50%, -50%) translateX(16px) scale(1); }
}

@keyframes intro-axis {
  0% { opacity: 0; transform: translate(-50%, -50%) scaleX(0); }
  55%, 100% { opacity: 1; transform: translate(-50%, -50%) scaleX(1); }
}

@keyframes intro-dot {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0); }
  48% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: .72; transform: translate(-50%, -50%) scale(.72); }
}

@keyframes intro-rule-reveal {
  from { opacity: 0; transform: scaleX(0); }
  to { opacity: 1; transform: scaleX(1); }
}

.intro-subtitle {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(760px, calc(100vw - 96px));
  transform: translate(-50%, -50%);
  text-align: center;
  visibility: hidden;
  opacity: 0;
}

.intro-subtitle p {
  font-size: clamp(15px, 1.35vw, 21px);
  line-height: 2.15;
  letter-spacing: .12em;
}

.intro-road {
  position: absolute;
  left: 50%;
  top: 0;
  z-index: 0;
  width: min(58vh, 640px);
  height: 100%;
  min-height: 0;
  visibility: hidden;
  opacity: 0;
  background: url("../../assets/generated/intro-road-naive-v1.webp") center center / 100% 100% no-repeat;
  transform: translateX(-50%);
  transform-origin: 50% 0;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 16%, #000 84%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 16%, #000 84%, transparent 100%);
  pointer-events: none;
}

.intro-road__line,
.intro-road__center {
  display: none;
}

.lead {
  margin-top: clamp(25px, 4vh, 46px);
  font-size: clamp(13px, 1.15vw, 18px);
  line-height: 2;
  letter-spacing: .07em;
}

.scroll-guide {
  position: absolute;
  right: clamp(38px, 5vw, 88px);
  bottom: clamp(32px, 6vh, 72px);
  display: flex;
  align-items: center;
  gap: 18px;
  writing-mode: vertical-rl;
}

.scroll-guide i {
  width: 1px;
  height: 72px;
  background: var(--ink);
}

.scene--spring {
  visibility: hidden;
  opacity: 0;
}

.spring-world {
  position: absolute;
  inset: 0;
  transform-origin: 50% 52%;
  will-change: transform, opacity;
}

.spring-heading {
  position: absolute;
  left: clamp(35px, 4vw, 72px);
  top: clamp(90px, 13vh, 130px);
  z-index: 1;
}

.spring-heading h2 {
  display: grid;
  justify-items: start;
  row-gap: clamp(6px, .8vh, 12px);
  color: var(--spring);
  font: 400 clamp(104px, 13vw, 208px)/.72 var(--serif);
  letter-spacing: -.06em;
}

.spring-heading h2 .season-year { color: var(--spring-dark); }

.hero-photo {
  position: absolute;
  right: clamp(40px, 5vw, 90px);
  top: clamp(92px, 12vh, 128px);
  width: min(45vw, 700px);
  z-index: 2;
}

.hero-photo__mask {
  position: relative;
  height: min(68vh, 670px);
  min-height: 430px;
  overflow: hidden;
  background: #d9cfc8;
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-photo figcaption {
  padding-top: 12px;
  text-align: right;
  white-space: nowrap;
}

.haruka-copy {
  position: absolute;
  left: auto;
  right: calc(clamp(40px, 5vw, 90px) + min(45vw, 700px) + clamp(24px, 3vw, 44px));
  bottom: clamp(48px, 7vh, 82px);
  width: min(24vw, 360px);
  z-index: 3;
}

.haruka-copy h3 {
  color: var(--spring-dark);
  font: 400 clamp(52px, 6.2vw, 100px)/.8 var(--serif);
  letter-spacing: -.045em;
}

.birth-date {
  margin: 16px 0 24px;
  color: var(--spring-dark);
  font: 400 clamp(18px, 1.6vw, 28px)/1 var(--serif);
  letter-spacing: .08em;
}

.haruka-copy > p:last-child {
  font-size: clamp(12px, .95vw, 15px);
  line-height: 2;
  letter-spacing: .04em;
}

.couple {
  --couple-h: min(58vh, 580px);
  position: absolute;
  left: 68%;
  bottom: 2.5vh;
  z-index: 6;
  width: calc(var(--couple-h) * .38);
  height: var(--couple-h);
  transform-origin: 50% 50%;
  background-image: url("../../assets/sprites/the-road-to-us-couple-cutout-v1.webp");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center bottom;
  filter: drop-shadow(0 10px 12px rgba(38, 30, 22, .12));
  contain: paint;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  will-change: transform, opacity;
}

.couple--layered {
  background-image: none;
}

.couple-frame {
  position: absolute;
  inset: 0;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center bottom;
  transform-origin: 50% 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  pointer-events: none;
  will-change: opacity;
}

/* 1・3コマ目の人物サイズと足元を2コマ目へ合わせ、切替時の視覚的な跳ねを防ぐ。 */
.couple-frame--walk-1 {
  transform: translate3d(0, 1.8%, 0) scale(.945);
}

.couple-frame--walk-3 {
  transform: translate3d(0, .35%, 0) scale(1.013);
}

.couple-road {
  position: absolute;
  left: -3vw;
  bottom: -13vh;
  z-index: 1;
  width: min(32vw, 500px);
  height: 54vh;
  min-height: 380px;
  visibility: hidden;
  opacity: 0;
  background: none;
  transform-origin: 50% 100%;
  filter: drop-shadow(0 16px 22px rgba(64, 49, 34, .08));
  pointer-events: none;
  will-change: transform, opacity;
}

.couple-road::before,
.couple-road::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../../assets/generated/intro-road-naive-cutout-v3.webp") center 69% / cover no-repeat;
}

.couple-road::before {
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .28) 0 53%, #000 61% 100%);
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .28) 0 53%, #000 61% 100%);
}

.couple-road::after {
  filter: blur(1px);
  transform: scale(1.012);
  -webkit-mask-image: linear-gradient(to bottom, #000 0 53%, transparent 61% 100%);
  mask-image: linear-gradient(to bottom, #000 0 53%, transparent 61% 100%);
}

.scene--memory {
  visibility: hidden;
  opacity: 0;
  perspective: 1400px;
  overflow: hidden;
  background: transparent;
}

.world-stage {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  overflow: hidden;
  background: transparent;
}

.story-sky {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  transform-origin: 50% 14%;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  will-change: transform, opacity;
}

.story-sky::before,
.story-sky::after {
  content: "";
  position: absolute;
  width: 62vw;
  height: 14vh;
  min-height: 110px;
  border-radius: 52% 48% 56% 44% / 60% 42% 58% 40%;
  transform: rotate(-2deg);
  opacity: .32;
}

.story-sky::before {
  left: -24vw;
  top: 2vh;
  background: #fbf3e8;
  box-shadow: 74vw 9vh 0 #f8eee4;
}

.story-sky::after {
  display: none;
}

.story-cloud {
  position: absolute;
  display: block;
  height: clamp(42px, 8vh, 92px);
  border-radius: 54% 46% 58% 42% / 58% 45% 55% 42%;
  background: #fbf3e8;
  opacity: .84;
  filter: drop-shadow(0 10px 18px rgba(94, 70, 50, .035));
  transform-origin: 50% 50%;
  will-change: transform, opacity;
}

.story-cloud::before,
.story-cloud::after {
  content: "";
  position: absolute;
  background: inherit;
  border-radius: inherit;
}

.story-cloud::before {
  left: 15%;
  top: -34%;
  width: 46%;
  height: 112%;
}

.story-cloud::after {
  right: 10%;
  top: -18%;
  width: 38%;
  height: 96%;
}

.story-cloud--far-left {
  left: 28%;
  top: 17%;
  width: 12vw;
  min-width: 112px;
  background: #f8eee4;
}

.story-cloud--far-center {
  left: 48%;
  top: 10%;
  width: 9vw;
  min-width: 90px;
  background: #fbf3e8;
}

.story-cloud--far-right {
  left: 67%;
  top: 21%;
  width: 13vw;
  min-width: 120px;
  background: #f5e8dc;
}

.story-cloud--mid-left {
  left: 5%;
  top: 37%;
  width: 30vw;
  background: #fbf3e8;
}

.story-cloud--mid-right {
  left: 70%;
  top: 43%;
  width: 31vw;
  background: #f4e6d8;
}

.story-cloud--near-left {
  left: -22%;
  top: 61%;
  width: 58vw;
  height: clamp(96px, 16vh, 166px);
  background: #fff8ef;
}

.story-cloud--near-right {
  left: 66%;
  top: 67%;
  width: 56vw;
  height: clamp(98px, 17vh, 174px);
  background: #f8eee4;
}

.story-cloud--front {
  left: 9%;
  top: 82%;
  z-index: 5;
  width: 82vw;
  height: clamp(132px, 22vh, 214px);
  background: #fff8ef;
  filter: drop-shadow(0 -18px 28px rgba(94, 70, 50, .06));
}

.world-memory {
  position: absolute;
  left: calc(50% - min(42vw, 590px));
  top: 15%;
  z-index: 2;
  width: min(84vw, 1180px);
  height: min(64vh, 580px);
  padding: 0 clamp(16px, 1.8vw, 24px);
  display: grid;
  grid-template-columns: minmax(280px, 400px) minmax(0, 640px);
  justify-content: center;
  column-gap: clamp(14px, 1.8vw, 24px);
  overflow: visible;
  border: 0;
  background: transparent;
  box-shadow: none;
  transform-style: preserve-3d;
  pointer-events: none;
  will-change: transform, opacity;
}

.memory-copy {
  position: relative;
  left: auto;
  top: auto;
  width: min(100%, 520px);
  align-self: start;
  padding: clamp(6px, 1vh, 12px) clamp(6px, .8vw, 12px) 0 0;
  z-index: 1;
  will-change: transform, opacity, filter;
}

.scene--memory .memory-copy {
  top: auto;
}

.scene--memory .memory-story {
  gap: 16px;
  margin-top: 26px;
  line-height: 1.9;
}

.memory-copy h2 {
  color: var(--spring-dark);
  font: 400 clamp(52px, 6.2vw, 100px)/.8 var(--serif);
  letter-spacing: -.045em;
}

#memory-title {
  font-size: clamp(52px, 5.8vw, 92px);
}

.memory-story {
  display: grid;
  gap: 20px;
  margin-top: 34px;
  font-size: clamp(14px, 1.05vw, 16px);
  line-height: 2;
  letter-spacing: .05em;
}

.memory-gallery {
  position: relative;
  left: 0;
  top: auto;
  width: calc(100% + clamp(24px, 2.6vw, 36px));
  max-width: 680px;
  justify-self: end;
  height: 100%;
  min-height: 0;
  max-height: none;
  display: grid;
  grid-template-rows: .95fr 1.05fr;
  gap: 14px;
  z-index: 2;
  will-change: transform, opacity, filter;
}

.memory-photo {
  position: relative;
  min-height: 0;
  overflow: hidden;
  background: #ddd4ca;
}

.memory-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.memory-photo figcaption {
  position: absolute;
  left: 14px;
  bottom: 12px;
  padding: 7px 10px;
  color: #fff;
  background: rgba(22, 18, 15, .58);
  font-size: 9px;
  letter-spacing: .16em;
}

.memory-photo--family img { object-position: center 38%; }
.memory-photo--pet img { object-position: center 44%; }

.scene--ichiro-memory {
  visibility: hidden;
  opacity: 0;
  perspective: 1400px;
  overflow: hidden;
  background: transparent;
}

.ichiro-memory-wash {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0;
  background:
    radial-gradient(circle at 72% 22%, rgba(196, 221, 236, .62), transparent 34%),
    radial-gradient(circle at 16% 78%, rgba(226, 237, 243, .72), transparent 40%);
  pointer-events: none;
  will-change: opacity, transform;
}

.world-memory--ichiro .memory-copy h2,
.world-memory--ichiro .birth-date {
  color: var(--summer-dark);
}

.ichiro-memory-photo--hero img { object-position: center 46%; }
.ichiro-memory-photo--family img { object-position: center 40%; }

.scene--future {
  visibility: hidden;
  opacity: 0;
  overflow: hidden;
  perspective: 1400px;
}

.future-wash {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0;
  background:
    radial-gradient(circle at 50% 62%, rgba(255, 248, 236, .94), transparent 33%),
    radial-gradient(circle at 82% 18%, rgba(219, 233, 239, .44), transparent 30%),
    radial-gradient(circle at 18% 28%, rgba(241, 216, 207, .36), transparent 28%);
  pointer-events: none;
  will-change: opacity, transform;
}

.future-world {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  transform-origin: 50% 52%;
  will-change: transform, opacity;
}

.future-copy {
  position: absolute;
  inset-inline: clamp(32px, 5vw, 80px);
  top: clamp(54px, 7vh, 76px);
  z-index: 3;
  text-align: center;
  pointer-events: none;
}

.future-copy h2,
.future-copy > p,
.future-copy > span,
.future-footer {
  will-change: transform, opacity, filter;
}

.future-copy h2 {
  font: 400 clamp(78px, 9.4vw, 150px)/.68 var(--serif);
  letter-spacing: -.045em;
}

.future-copy > p {
  margin-top: clamp(28px, 4vh, 42px);
  font-size: clamp(14px, 1.2vw, 19px);
  line-height: 1.8;
  letter-spacing: .11em;
}

.future-copy > span {
  display: block;
  margin-top: clamp(18px, 2.6vh, 28px);
  color: var(--spring-dark);
  font: 400 clamp(11px, .9vw, 14px)/1 var(--serif);
  letter-spacing: .28em;
}

.future-visual {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: transparent;
  isolation: isolate;
  will-change: opacity;
}

.future-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(
    ellipse 58% 72% at 50% 56%,
    transparent 20%,
    rgba(250, 247, 240, .08) 54%,
    rgba(247, 242, 234, .44) 100%
  );
  pointer-events: none;
}

.future-entrance {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--paper) url("../../assets/generated/future-light-arch-v4.webp") center center / 88% auto no-repeat;
  filter: saturate(.82) contrast(.96) brightness(1.015);
  transform-origin: 50% 50%;
  will-change: transform, opacity, filter;
  pointer-events: none;
}

.future-light {
  position: absolute;
  left: 50%;
  top: 52%;
  z-index: 2;
  width: min(28vw, 420px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 250, 232, .7), rgba(255, 247, 226, .14) 44%, transparent 70%);
  mix-blend-mode: screen;
  transform: translate(-50%, -50%) scale(.82);
  animation: future-light-breathe 4.8s ease-in-out infinite alternate;
  pointer-events: none;
}

.future-couple-back {
  position: absolute;
  left: 50%;
  top: 50%;
  bottom: auto;
  z-index: 3;
  width: 190px;
  height: 285px;
  background-image: url("../../assets/generated/future-couple-back-v2.webp");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center bottom;
  transform: translate(-50%, -50%);
  transform-origin: 50% 50%;
  will-change: transform, opacity, clip-path;
  pointer-events: none;
}

.future-footer {
  position: absolute;
  inset-inline: 0;
  bottom: clamp(28px, 4vh, 48px);
  z-index: 3;
  text-align: center;
  font-size: clamp(9px, .7vw, 11px);
  letter-spacing: .38em;
  pointer-events: none;
}

@keyframes future-light-breathe {
  from { opacity: .12; transform: translate(-50%, -50%) scale(.86); }
  to { opacity: .38; transform: translate(-50%, -50%) scale(1.08); }
}

.scene--summer {
  visibility: hidden;
  opacity: 0;
  overflow: hidden;
  perspective: 1400px;
}

.summer-wash {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0;
  background:
    radial-gradient(circle at 76% 22%, rgba(202, 224, 237, .72), transparent 34%),
    radial-gradient(circle at 18% 82%, rgba(226, 236, 241, .8), transparent 38%);
  pointer-events: none;
  will-change: opacity, transform;
}

.summer-world {
  position: absolute;
  inset: 0;
  z-index: 2;
  transform-origin: 50% 52%;
  will-change: transform, opacity;
}

.summer-heading {
  position: absolute;
  left: clamp(35px, 4vw, 72px);
  top: clamp(90px, 13vh, 130px);
  z-index: 1;
}

.summer-heading h2 {
  display: grid;
  justify-items: start;
  row-gap: clamp(6px, .8vh, 12px);
  color: var(--summer);
  font: 400 clamp(104px, 13vw, 208px)/.72 var(--serif);
  letter-spacing: -.06em;
}

.summer-heading h2 .season-year { color: var(--summer-dark); }

.ichiro-hero {
  position: absolute;
  right: clamp(40px, 5vw, 90px);
  top: clamp(92px, 12vh, 128px);
  width: min(45vw, 700px);
  z-index: 2;
}

.ichiro-hero__mask {
  position: relative;
  height: min(68vh, 670px);
  min-height: 430px;
  overflow: hidden;
  background: #dce7ed;
}

.ichiro-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 46%;
}

.ichiro-hero figcaption {
  padding-top: 12px;
  text-align: right;
  white-space: nowrap;
}

.ichiro-copy {
  position: absolute;
  left: auto;
  right: calc(clamp(40px, 5vw, 90px) + min(45vw, 700px) + clamp(24px, 3vw, 44px));
  bottom: clamp(48px, 7vh, 82px);
  width: min(24vw, 360px);
  z-index: 3;
}

.ichiro-copy h3 {
  color: var(--summer-dark);
  font: 400 clamp(52px, 6.2vw, 100px)/.8 var(--serif);
  letter-spacing: -.045em;
}

.ichiro-copy .birth-date { color: var(--summer-dark); }

.ichiro-copy > p:last-child {
  font-size: clamp(12px, .95vw, 15px);
  line-height: 2;
  letter-spacing: .04em;
}

.chapter-transition {
  position: absolute;
  right: clamp(40px, 6vw, 100px);
  bottom: clamp(40px, 7vh, 80px);
  display: flex;
  align-items: center;
  gap: 20px;
  opacity: 0;
}

.chapter-transition i {
  display: block;
  width: 100px;
  height: 1px;
  background: var(--spring-dark);
}

.progress {
  position: absolute;
  left: clamp(22px, 2vw, 38px);
  top: 12%;
  bottom: 12%;
  z-index: 12;
  width: 1px;
  background: rgba(23,23,19,.16);
}

.progress span {
  display: block;
  width: 1px;
  height: 0;
  background: var(--spring-dark);
}

.prototype-label {
  position: absolute;
  left: clamp(28px, 4vw, 68px);
  bottom: clamp(24px, 3vw, 48px);
  z-index: 12;
  color: var(--muted);
}

.pilot-end {
  min-height: 70vh;
  display: grid;
  place-content: center;
  gap: 28px;
  padding: 80px 24px;
  text-align: center;
  border-top: 1px solid rgba(23,23,19,.14);
}

.pilot-end p {
  font-size: 10px;
  letter-spacing: .24em;
}

.pilot-end h2 {
  font: 400 clamp(30px, 4vw, 58px)/1.3 var(--serif);
}

@media (max-width: 900px) {
  .story {
    height: auto;
    overflow: clip;
  }

  .stage {
    position: relative;
    min-height: 0;
    height: auto;
    overflow: clip;
    background:
      radial-gradient(circle at 84% 8%, rgba(255, 255, 255, .9), transparent 24%),
      linear-gradient(112deg, #f3efe8 0%, #fbf8f2 54%, #f3eee6 100%);
  }

  .paper-grain {
    position: fixed;
    z-index: 20;
  }

  .story-sky,
  .couple-road,
  .couple,
  .progress,
  .chapter-transition,
  .prototype-label {
    display: none;
  }

  .scene {
    position: relative;
    inset: auto;
    min-height: 0;
    padding: 88px 20px 104px;
    visibility: visible;
    opacity: 1;
    overflow: clip;
    perspective: none;
  }

  .scene + .scene {
    border-top: 1px solid rgba(23, 23, 19, .08);
  }

  .scene-number {
    top: 28px;
    right: 20px;
    font-size: 8px;
    letter-spacing: .18em;
  }

  .scene--intro {
    display: block;
    min-height: 100svh;
    padding: 0 20px;
  }

  .intro-opening {
    width: 144px;
    height: 92px;
  }

  .intro-copy {
    left: 20px;
    right: 20px;
    top: 50%;
    width: auto;
    max-width: none;
    transform: translateY(-52%);
  }

  .intro-copy h1 {
    font-size: clamp(52px, 16vw, 68px);
    line-height: .8;
  }

  .intro-title-line {
    white-space: nowrap;
  }

  .intro-title-rule {
    width: min(220px, 62vw);
    margin-top: 30px;
  }

  .intro-copy .lead {
    display: block;
    margin-top: 28px;
    font-size: 12px;
    line-height: 2;
    letter-spacing: .05em;
  }

  .intro-subtitle,
  .intro-road {
    display: none;
  }

  .spring-world,
  .summer-world,
  .world-stage,
  .world-memory,
  .future-world {
    position: relative;
    inset: auto;
    width: 100%;
    height: auto;
    min-height: 0;
    transform: none;
    overflow: visible;
  }

  .spring-heading,
  .summer-heading {
    position: relative;
    left: auto;
    top: auto;
    margin-bottom: 30px;
  }

  .spring-heading .eyebrow,
  .summer-heading .eyebrow {
    margin-bottom: 12px;
  }

  .spring-heading h2,
  .summer-heading h2 {
    row-gap: 4px;
    font-size: clamp(62px, 18.5vw, 84px);
    line-height: .76;
    letter-spacing: -.055em;
  }

  .hero-photo,
  .ichiro-hero {
    position: relative;
    inset: auto;
    width: 100%;
    margin: 0;
  }

  .hero-photo__mask,
  .ichiro-hero__mask {
    height: auto;
    min-height: 0;
    aspect-ratio: 4 / 5;
  }

  .hero-photo figcaption,
  .ichiro-hero figcaption {
    padding-top: 10px;
    font-size: 8px;
    white-space: normal;
    text-align: left;
  }

  .haruka-copy,
  .ichiro-copy {
    position: relative;
    inset: auto;
    width: calc(100% - 36px);
    margin: 56px 0 0 36px;
  }

  .haruka-copy h3,
  .ichiro-copy h3 {
    font-size: clamp(52px, 16vw, 72px);
    line-height: .84;
  }

  .birth-date {
    margin: 14px 0 22px;
    font-size: 20px;
  }

  .haruka-copy > p:last-child,
  .ichiro-copy > p:last-child {
    font-size: 13px;
    line-height: 2;
  }

  .scene--memory,
  .scene--ichiro-memory {
    display: block;
    padding-top: 96px;
    background: transparent;
  }

  .world-memory {
    left: auto;
    top: auto;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr;
    row-gap: 42px;
    pointer-events: auto;
  }

  .memory-copy {
    width: calc(100% - 24px);
    padding: 0;
  }

  .memory-copy h2,
  #memory-title {
    font-size: clamp(54px, 17vw, 76px);
    line-height: .82;
  }

  .scene--memory .memory-story,
  .memory-story {
    gap: 18px;
    margin-top: 28px;
    font-size: 13px;
    line-height: 2;
  }

  .memory-gallery {
    left: auto;
    width: calc(100% - 28px);
    max-width: none;
    height: auto;
    margin-left: 28px;
    display: grid;
    grid-template-rows: none;
    gap: 12px;
  }

  .memory-photo {
    aspect-ratio: 4 / 3;
  }

  .memory-photo figcaption {
    left: 10px;
    bottom: 10px;
    max-width: calc(100% - 20px);
    padding: 6px 8px;
    font-size: 7px;
    line-height: 1.4;
  }

  .summer-wash,
  .ichiro-memory-wash {
    opacity: .52;
  }

  .scene--summer {
    display: block;
    background: rgba(235, 243, 247, .28);
  }

  .scene--ichiro-memory {
    background: rgba(235, 243, 247, .16);
  }

  .scene--future {
    display: block;
    min-height: 100svh;
    padding: 0;
    background: #f7f3ec;
  }

  .future-world {
    min-height: 100svh;
    overflow: hidden;
  }

  .future-wash {
    opacity: .72;
  }

  .future-copy {
    inset-inline: 20px;
    top: 70px;
  }

  .future-copy h2 {
    font-size: clamp(54px, 17vw, 74px);
    line-height: .72;
  }

  .future-copy > p {
    margin-top: 24px;
    font-size: 12px;
    line-height: 1.8;
    letter-spacing: .07em;
  }

  .future-copy > span {
    margin-top: 18px;
    font-size: 10px;
  }

  .future-visual {
    opacity: 1;
  }

  .future-entrance {
    opacity: .96;
    background-size: auto 72%;
    background-position: center 62%;
    filter: saturate(.78) contrast(.95) brightness(1.025);
  }

  .future-light {
    top: 62%;
    width: min(58vw, 220px);
  }

  .future-couple-back {
    top: 68%;
    width: 116px;
    height: 174px;
    opacity: 1;
  }

  .future-footer {
    bottom: 26px;
    font-size: 8px;
  }

  .pilot-end {
    display: none;
  }

  .sp-motion .scene > .spring-world,
  .sp-motion .scene > .world-stage,
  .sp-motion .scene > .summer-world,
  .sp-motion .scene > .future-world {
    opacity: 0;
    transform: translateY(30px) scale(.985);
    transition: opacity .9s ease, transform 1.15s cubic-bezier(.2, .72, .2, 1);
  }

  .sp-motion .scene.is-visible > .spring-world,
  .sp-motion .scene.is-visible > .world-stage,
  .sp-motion .scene.is-visible > .summer-world,
  .sp-motion .scene.is-visible > .future-world {
    opacity: 1;
    transform: none;
  }

  .sp-motion .scene:not(.is-visible) > .scene-number {
    opacity: 0;
    transform: translateY(8px);
  }

  .sp-motion .scene.is-visible > .scene-number {
    opacity: 1;
    transform: none;
    transition: opacity .65s ease .12s, transform .65s ease .12s;
  }
}

@media (max-width: 359px) {
  .scene {
    padding-inline: 16px;
  }

  .scene-number {
    right: 16px;
  }

  .spring-heading h2,
  .summer-heading h2 {
    font-size: clamp(56px, 18vw, 64px);
  }

  .haruka-copy,
  .ichiro-copy {
    width: calc(100% - 24px);
    margin-left: 24px;
  }

  .memory-gallery {
    width: calc(100% - 20px);
    margin-left: 20px;
  }
}

/* SP版はPC版と同じ固定画面のスクロールタイムラインを使用する。 */
@media (max-width: 900px) {
  .story {
    height: 3300vh;
    overflow: visible;
  }

  .stage {
    position: sticky;
    top: 0;
    width: 100%;
    height: 100svh;
    min-height: 0;
    overflow: hidden;
  }

  .paper-grain {
    position: absolute;
  }

  .story-sky,
  .couple-road,
  .couple {
    display: block;
  }

  .progress,
  .chapter-transition,
  .prototype-label,
  .pilot-end {
    display: none;
  }

  .scene {
    position: absolute;
    inset: 0;
    min-height: 0;
    height: 100%;
    padding: 22px 16px;
    overflow: hidden;
    border: 0;
  }

  .scene + .scene {
    border-top: 0;
  }

  .scene--intro {
    min-height: 0;
    padding: 0 16px;
  }

  .scene--spring,
  .scene--memory,
  .scene--summer,
  .scene--ichiro-memory,
  .scene--future {
    visibility: hidden;
    opacity: 0;
  }

  .scene-number {
    top: 18px;
    right: 14px;
    z-index: 9;
    font-size: 7px;
    letter-spacing: .15em;
  }

  .intro-copy {
    left: 16px;
    right: 16px;
    top: 50%;
    width: auto;
    max-width: none;
    transform: translateY(-54%);
  }

  .intro-copy h1 {
    font-size: clamp(52px, 16vw, 68px);
    line-height: .8;
  }

  .intro-title-line {
    white-space: nowrap;
  }

  .intro-copy .lead {
    display: none;
  }

  .intro-subtitle {
    display: block;
    width: calc(100vw - 40px);
  }

  .intro-subtitle p {
    font-size: clamp(11px, 3.3vw, 14px);
    line-height: 2;
    letter-spacing: .07em;
  }

  .intro-road {
    display: block;
    width: 100vw;
    min-width: 0;
    background-size: auto 100%;
  }

  .spring-world,
  .summer-world,
  .world-stage,
  .future-world {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 0;
    overflow: hidden;
  }

  .spring-heading,
  .summer-heading {
    position: absolute;
    left: 18px;
    top: 66px;
    margin: 0;
  }

  .spring-heading .eyebrow,
  .summer-heading .eyebrow {
    margin-bottom: 10px;
    font-size: 7px;
  }

  .spring-heading h2,
  .summer-heading h2 {
    row-gap: 2px;
    font-size: clamp(50px, 15vw, 62px);
    line-height: .74;
    letter-spacing: -.055em;
  }

  .hero-photo,
  .ichiro-hero {
    position: absolute;
    left: auto;
    right: 14px;
    top: 210px;
    width: 66vw;
    margin: 0;
  }

  .hero-photo__mask,
  .ichiro-hero__mask {
    height: min(42vh, 350px);
    min-height: 250px;
    aspect-ratio: auto;
  }

  .hero-photo figcaption,
  .ichiro-hero figcaption {
    padding-top: 8px;
    font-size: 6px;
    line-height: 1.4;
    white-space: nowrap;
    text-align: right;
  }

  .haruka-copy,
  .ichiro-copy {
    position: absolute;
    left: auto;
    right: 14px;
    top: calc(210px + min(42vh, 350px) + 66px);
    bottom: auto;
    width: 43vw;
    margin: 0;
  }

  .haruka-copy .eyebrow,
  .ichiro-copy .eyebrow {
    font-size: 7px;
  }

  .haruka-copy h3,
  .ichiro-copy h3 {
    font-size: clamp(35px, 10.5vw, 42px);
    line-height: .82;
  }

  .haruka-copy .birth-date,
  .ichiro-copy .birth-date {
    margin: 9px 0 12px;
    font-size: 15px;
  }

  .haruka-copy > p:last-child,
  .ichiro-copy > p:last-child {
    font-size: clamp(8px, 2.6vw, 10px);
    line-height: 1.75;
  }

  .couple {
    --couple-h: min(42vh, 320px);
  }

  .couple-road {
    left: -18vw;
    bottom: -12vh;
    width: min(70vw, 310px);
    height: 57vh;
    min-height: 340px;
  }

  .world-memory {
    position: absolute;
    left: 104px;
    top: 62px;
    width: calc(100% - 118px);
    height: calc(100% - 86px);
    padding: 0;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
    row-gap: 14px;
    overflow: hidden;
    pointer-events: none;
  }

  .memory-copy {
    width: 100%;
    padding: 0;
  }

  .memory-copy .eyebrow {
    margin-bottom: 8px;
    font-size: 7px;
  }

  .memory-copy h2,
  #memory-title {
    font-size: clamp(44px, 14vw, 54px);
    line-height: .82;
  }

  .memory-copy .birth-date {
    margin: 8px 0 10px;
    font-size: 14px;
  }

  .scene--memory .memory-story,
  .memory-story {
    gap: 7px;
    margin-top: 10px;
    font-size: clamp(8px, 2.55vw, 10px);
    line-height: 1.62;
  }

  .memory-gallery {
    left: auto;
    width: 100%;
    max-width: none;
    height: 100%;
    min-height: 0;
    margin: 0;
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 8px;
  }

  .memory-photo {
    min-height: 0;
    aspect-ratio: auto;
  }

  .memory-photo figcaption {
    left: 7px;
    bottom: 7px;
    max-width: calc(100% - 14px);
    padding: 4px 6px;
    font-size: 5px;
  }

  .scene--summer,
  .scene--ichiro-memory {
    background: transparent;
  }

  .future-world {
    min-height: 0;
  }

  .future-copy {
    inset-inline: 16px;
    top: 54px;
  }

  .future-copy h2 {
    font-size: clamp(48px, 15.5vw, 62px);
    line-height: .72;
  }

  .future-copy > p {
    margin-top: 20px;
    font-size: 10px;
  }

  .future-copy > span {
    margin-top: 14px;
    font-size: 8px;
  }

  .future-entrance {
    background-size: auto 72%;
    background-position: center 62%;
  }

  .future-light {
    top: 62%;
    width: min(58vw, 210px);
  }

  .future-couple-back {
    top: 64%;
    width: 112px;
    height: 168px;
  }

  .future-footer {
    bottom: 20px;
    font-size: 7px;
  }
}

@media (min-width: 901px) and (max-width: 1100px) and (max-height: 800px) {
  .haruka-copy,
  .ichiro-copy {
    bottom: 80px;
  }
}

@media (min-width: 600px) and (max-width: 900px) {
  .world-memory {
    left: 228px;
    width: calc(100% - 252px);
  }
}

/* 414px前後では季節見出しの下に写真を収め、写真直下へBIRTH RECORDを続ける。 */
@media (min-width: 400px) and (max-width: 480px) {
  .hero-photo,
  .ichiro-hero {
    top: 274px;
  }

  .haruka-copy,
  .ichiro-copy {
    top: calc(274px + min(42vh, 350px) + 18px);
  }
}

@media (max-width: 900px) and (max-height: 700px) {
  .hero-photo,
  .ichiro-hero {
    top: 170px;
  }

  .hero-photo__mask,
  .ichiro-hero__mask {
    height: min(35vh, 260px);
    min-height: 0;
  }

  .haruka-copy,
  .ichiro-copy {
    top: calc(170px + min(35vh, 260px) + 66px);
  }
}

/* iPhone Pro Max相当ではブラウザUIで短くなる実表示高でも季節見出しと写真を分離する。 */
@media (min-width: 400px) and (max-width: 480px) and (max-height: 720px) {
  .hero-photo,
  .ichiro-hero {
    top: 220px;
  }

  .hero-photo__mask,
  .ichiro-hero__mask {
    height: min(34vh, 250px);
  }

  .haruka-copy,
  .ichiro-copy {
    top: calc(220px + min(34vh, 250px) + 18px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .story { height: auto; }
  .stage { position: relative; min-height: 1000px; height: auto; }
  .scene--intro { display: none; }
  .scene--spring { visibility: visible; opacity: 1; }
  .couple { background-position: 0 0 !important; }
  .intro-opening { display: none; }
  .intro-title-line > span,
  .intro-title-rule { animation: none; opacity: 1; filter: none; transform: none; }
  .future-light { animation: none; }
  .progress, .chapter-transition { display: none; }
}

html.embed-mode,
html.embed-mode body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
}

html.embed-mode .story {
  height: 100vh;
  height: 100svh;
}

html.embed-mode .stage {
  position: relative;
  top: auto;
  height: 100vh;
  height: 100svh;
  min-height: 0;
}

html.embed-mode .pilot-end {
  display: none;
}
