:root {
  --red: #e9342c;
  --deep-red: #c82222;
  --yellow: #ffd51f;
  --ink: #29272a;
  --paper: #fffdfa;
  --cream: #fff8e9;
  --ease-out: cubic-bezier(.2, .75, .25, 1);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", "YuGothic", "Noto Sans JP", sans-serif;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }

.hero {
  min-height: 100svh;
  overflow: clip;
  background:
    radial-gradient(circle at 82% 45%, rgba(255, 218, 52, .12), transparent 31%),
    linear-gradient(145deg, #fff 0%, #fffdfa 62%, #fff9eb 100%);
}

.hero__sticky {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
}

.hero__inner {
  width: min(1220px, calc(100% - 64px));
  min-height: min(680px, 100svh);
  display: grid;
  grid-template-columns: minmax(390px, .86fr) minmax(560px, 1.14fr);
  align-items: center;
  gap: clamp(12px, 2vw, 36px);
  margin: auto;
  padding: 36px 0 44px;
}

.hero__copy { position: relative; z-index: 5; padding-left: clamp(0px, 2vw, 22px); }

.hero__title {
  display: flex;
  align-items: baseline;
  margin: 0;
  white-space: nowrap;
  letter-spacing: -.045em;
  line-height: 1;
  opacity: 0;
  transform: translateY(16px);
  animation: reveal-up .65s var(--ease-out) .08s forwards;
}

.hero__title-large { font-family:"Kaisei Opti",serif; font-size: clamp(54px, 5.3vw, 78px); font-weight: 700; }
.hero__title-small { font-family:"Kaisei Opti",serif; font-size: clamp(29px, 2.9vw, 43px); font-weight: 700; margin: 0 .05em; }
.hero__title-gift {
  font: normal 700 clamp(57px, 5.6vw, 82px)/.9 "Mali", cursive;
  letter-spacing: -.04em;
  margin-right: .04em;
}
.hero__title-gift .gift-g { color: var(--yellow); }
.hero__title-gift .gift-i, .hero__title-gift .gift-t { color: #7f7f80; }
.hero__title-gift .gift-f { color: var(--red); }

.hero__tagline {
  margin: 20px 0 0;
  color: var(--red);
  font-size: clamp(16px, 1.5vw, 21px);
  font-weight: 800;
  letter-spacing: .05em;
  opacity: 0;
  transform: translateY(14px);
  animation: reveal-up .55s var(--ease-out) .52s forwards;
}

.hero__story { margin-top: clamp(54px, 7vh, 76px); }

.hero__story-line {
  margin: 0 0 10px;
  font-size: clamp(14px, 1.2vw, 17px);
  font-weight: 600;
  letter-spacing: .025em;
  line-height: 1.55;
  opacity: 0;
  transform: translateY(12px);
  animation: reveal-up .48s var(--ease-out) forwards;
}

.hero__story-line--1 { animation-delay: 1.08s; }
.hero__story-line--2 { animation-delay: 1.92s; }
.hero__story-line--3 { animation-delay: 2.34s; }
.hero__story-line--4 { animation-delay: 3.02s; color: var(--deep-red); font-weight: 800; }
.hero__story-line--5 { animation-delay: 3.78s; }

.hero__story-mobile-line { display: none; }

.hero__world {
  position: relative;
  width: min(100%, 620px, calc(100svh - 180px));
  aspect-ratio: 1;
  justify-self: center;
}

.hero__layer {
  position: absolute;
  height: auto;
  pointer-events: none;
}

.hero__ring {
  left: 12%;
  top: 12%;
  width: 76%;
  opacity: 0;
  transform: scale(.96);
  animation: ring-in .8s var(--ease-out) 1.08s forwards;
}

.hero__clown, .hero__aerial, .hero__audience {
  opacity: 0;
  transform: translateY(12px);
  animation: reveal-up .6s var(--ease-out) forwards;
}

.hero__clown { left: 32%; top: -3%; width: 37%; animation-delay: 1.56s; }
.hero__aerial { left: -1%; top: 5%; width: 39%; animation-delay: 2.08s; }
.hero__audience--left { left: -2%; top: 56%; width: 43%; animation-delay: 2.55s; }
.hero__audience--center { left: 31%; top: 67%; width: 38%; animation-delay: 2.82s; }
.hero__audience--right { left: 64%; top: 57%; width: 38%; animation-delay: 3.08s; }

.hero__decorations { position: absolute; inset: 0; pointer-events: none; }
.hero__deco {
  position: absolute;
  opacity: 0;
  transform: translateY(8px) scale(.88);
  animation: deco-in .45s var(--ease-out) forwards;
}
.hero__deco--star-yellow-1 { width: 7%; left: -3%; top: 42%; animation-delay: 3.38s; }
.hero__deco--star-red { width: 6%; right: 5%; top: 36%; animation-delay: 3.52s; }
.hero__deco--star-yellow-2 { width: 5.5%; right: 1%; top: 53%; animation-delay: 3.66s; }
.hero__deco--note-yellow { width: 6%; left: 34%; top: 20%; animation-delay: 3.74s; }
.hero__deco--note-red { width: 5.5%; left: 22%; top: 43%; animation-delay: 3.84s; }
.hero__deco--club { width: 7%; right: 15%; top: 19%; transform: rotate(29deg) scale(.88); animation-delay: 3.96s; }

.hero__message {
  position: absolute;
  z-index: 4;
  left: 50%;
  top: 50.5%;
  width: 48%;
  margin: 0;
  transform: translate(-50%, -50%);
  text-align: center;
  font-size: clamp(14px, 1.38vw, 19px);
  font-weight: 700;
  letter-spacing: .045em;
  line-height: 1.78;
  opacity: 0;
  animation: message-in 1.6s ease-in-out 4.45s forwards;
}
.hero__message span { color: var(--red); font-weight: 900; }

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 16px;
  margin: 0;
  color: #8d8580;
  font: 700 10px/1 Arial, sans-serif;
  letter-spacing: .18em;
  transform: translateX(-50%);
}
.hero__scroll span {
  display: block;
  width: 1px;
  height: 24px;
  margin: 0 auto 8px;
  background: linear-gradient(var(--red) 50%, #ddd 50%);
  background-size: 100% 200%;
  animation: scroll-line 1.8s ease-in-out infinite;
}

.circles-intro {
  position: relative;
  overflow: clip;
  background: var(--cream);
  padding: clamp(82px, 10vw, 138px) 24px clamp(68px, 7vw, 96px);
}
.circles-intro::before {
  content: "";
  position: absolute;
  width: 580px;
  height: 580px;
  left: 50%;
  top: -410px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: rgba(255, 255, 255, .72);
}
.circles-intro::after {
  content: "";
  position: absolute;
  z-index: 0;
  right: 0;
  bottom: 0;
  left: 0;
  height: clamp(38px, 5vw, 58px);
  background: linear-gradient(to bottom, transparent, #fff);
  pointer-events: none;
}
.circles-intro__inner { position: relative; max-width: 980px; margin: auto; text-align: center; }
.circles-intro__lead { margin: 0 0 9px; color: var(--red); font-weight: 800; letter-spacing: .08em; }
.circles-intro__title { margin: 0; font-size: clamp(25px, 3vw, 39px); letter-spacing: .035em; }
.circles-intro__title span { display: inline; }

.circles-intro__visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  margin: clamp(42px, 6vw, 68px) auto 0;
}
.circle-card {
  position: relative;
  width: min(42vw, 390px);
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
}
.circle-card--challenge { margin-right: -38px; }
.circle-card--gift { margin-left: -38px; transition-delay: .12s; }
.circle-card__figure { position: relative; width: 100%; aspect-ratio: 1; }
.circle-card__ring { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.circle-card__icon { position: absolute; left: 50%; top: 50%; object-fit: contain; transform: translate(-50%, -50%); }
.circle-card__icon--tent { width: 36%; }
.circle-card__icon--gift { width: 32%; }
.circle-card__caption { margin-top: 14px; }
.circle-card h3 { margin: 0 0 7px; font-size: clamp(18px, 2vw, 25px); letter-spacing: .035em; }
.circle-card--challenge h3 { color: #e64232; }
.circle-card--gift h3 { color: #cf9520; }
.circle-card p { margin: 0; font-size: clamp(13px, 1.3vw, 16px); font-weight: 700; letter-spacing: .06em; }
.circles-intro__arrows {
  z-index: 3;
  width: clamp(102px, 13vw, 150px);
  align-self: center;
  margin: 0 -64px 50px;
  opacity: 0;
  transform: scale(.94);
  transition: opacity .65s var(--ease-out) .4s, transform .65s var(--ease-out) .4s;
}
.circles-intro__next { margin: 50px 0 0; font-size: clamp(14px, 1.4vw, 17px); font-weight: 600; letter-spacing: .06em; }
.circles-intro__lead, .circles-intro__title, .circles-intro__next {
  opacity: 0;
  transform: translateY(15px);
  transition: opacity .65s var(--ease-out), transform .65s var(--ease-out);
}
.circles-intro__title { transition-delay: .08s; }
.circles-intro__next { transition-delay: .48s; }
.circles-intro.is-visible .circles-intro__lead,
.circles-intro.is-visible .circles-intro__title,
.circles-intro.is-visible .circles-intro__next,
.circles-intro.is-visible .circle-card,
.circles-intro.is-visible .circles-intro__arrows { opacity: 1; transform: none; }

@keyframes reveal-up { to { opacity: 1; transform: translateY(0); } }
@keyframes ring-in { to { opacity: 1; transform: scale(1); } }
@keyframes deco-in { to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes message-in { to { opacity: 1; } }
@keyframes scroll-line { 0% { background-position: 0 100%; } 60%, 100% { background-position: 0 -100%; } }

@media (max-width: 900px) and (min-width: 701px) {
  .hero__inner { width: calc(100% - 34px); grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 0; }
  .hero__copy { padding-left: 10px; }
  .hero__title-large { font-size: 47px; }
  .hero__title-small { font-size: 27px; }
  .hero__title-gift { font-size: 51px; }
  .hero__story-line { font-size: 13px; }
  .hero__message { font-size: 13px; }
}

@media (min-width: 701px) {
  .hero__message { font-size: min(clamp(13px, 1.2vw, 19px), 2.2svh); }
  .hero__inner {
    grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr);
    padding-top: max(100px, calc(var(--site-header-anchor-offset, 84px) + 16px));
  }
}

@media (max-width: 700px) {
  html { scroll-behavior: auto; }
  .hero { height: auto; min-height: 100svh; overflow: clip; }
  .hero__sticky { position: relative; top: 0; height: 100svh; min-height: 700px; overflow: clip; }
  .hero__inner {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 0;
    display: block;
    padding: 0;
  }
  .hero__copy { position: absolute; inset: 0; padding: 0 22px; }
  .hero__title {
    position: absolute;
    z-index: 8;
    top: 31%;
    left: 50%;
    transform: translate(-50%, 12px);
    animation: none;
    opacity: 0;
    transition: opacity .55s var(--ease-out), transform .55s var(--ease-out);
  }
  .hero__title-large { font-size: clamp(48px, 14vw, 61px); }
  .hero__title-small { font-size: clamp(25px, 7.3vw, 32px); }
  .hero__title-gift { font-size: clamp(51px, 14.6vw, 64px); }
  .hero__tagline {
    position: absolute;
    z-index: 8;
    top: calc(31% + 76px);
    left: 50%;
    width: calc(100% - 36px);
    margin: 0;
    text-align: center;
    font-size: clamp(14px, 4vw, 17px);
    animation: none;
    opacity: 0;
    transform: translate(-50%, 12px);
    transition: opacity .55s var(--ease-out) .13s, transform .55s var(--ease-out) .13s;
  }
  .hero[data-step="1"] .hero__title,
  .hero[data-step="1"] .hero__tagline { opacity: 1; transform: translate(-50%, 0); }

  .hero__story {
    position: absolute;
    z-index: 9;
    top: max(72px, calc(60px + env(safe-area-inset-top)));
    left: 18px;
    right: 18px;
    height: 94px;
    margin: 0;
    text-align: center;
  }
  .hero__story-line {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    margin: 0;
    padding: 0 6px;
    font-size: clamp(14px, 3.9vw, 16px);
    line-height: 1.5;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.94) 13%, rgba(255,255,255,.94) 87%, transparent);
    animation: none;
    opacity: 0;
    transform: translateY(9px);
    transition: opacity .5s var(--ease-out), transform .5s var(--ease-out);
  }
  .hero[data-step="2"] .hero__story-line--1,
  .hero[data-step="3"] .hero__story-line--2,
  .hero[data-step="4"] .hero__story-line--5 { opacity: 1; transform: none; }
  .hero__story-line--2 { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 0; }
  .hero__story-mobile-line { display: block; }
  .hero__story-mobile-line--accent { color: var(--deep-red); font-weight: 800; }

  .hero__world {
    position: absolute;
    z-index: 3;
    left: 50%;
    top: 58%;
    width: min(104vw, 430px);
    transform: translate(-50%, -44%);
  }
  .hero__ring, .hero__clown, .hero__aerial, .hero__audience, .hero__deco, .hero__message {
    animation: none;
    transition: opacity .58s var(--ease-out), transform .58s var(--ease-out);
  }
  .hero__ring { opacity: 0; transform: scale(.96); }
  .hero__clown, .hero__aerial, .hero__audience { opacity: 0; transform: translateY(10px); }
  .hero[data-step="2"] .hero__ring,
  .hero[data-step="3"] .hero__ring,
  .hero[data-step="4"] .hero__ring { opacity: 1; transform: scale(1); }
  .hero[data-step="2"] .hero__clown,
  .hero[data-step="3"] .hero__clown,
  .hero[data-step="4"] .hero__clown { opacity: 1; transform: none; transition-delay: .12s; }
  .hero[data-step="2"] .hero__aerial,
  .hero[data-step="3"] .hero__aerial,
  .hero[data-step="4"] .hero__aerial { opacity: 1; transform: none; transition-delay: .28s; }
  .hero[data-step="3"] .hero__audience--left,
  .hero[data-step="4"] .hero__audience--left { opacity: 1; transform: none; transition-delay: .08s; }
  .hero[data-step="3"] .hero__audience--right,
  .hero[data-step="4"] .hero__audience--right { opacity: 1; transform: none; transition-delay: .25s; }
  .hero[data-step="3"] .hero__audience--center,
  .hero[data-step="4"] .hero__audience--center { opacity: 1; transform: none; transition-delay: .42s; }

  .hero__deco--star-yellow-1 { width: 7%; left: 9%; top: 48%; }
  .hero__deco--star-red { width: 6%; right: 7%; top: 39%; }
  .hero__deco--star-yellow-2 { display: none; }
  .hero__deco--note-yellow { width: 6.5%; left: 33%; top: 19%; }
  .hero__deco--note-red { display: none; }
  .hero__deco--club { width: 6%; right: 17%; top: 20%; }
  .hero[data-step="3"] .hero__deco,
  .hero[data-step="4"] .hero__deco { opacity: 1; transform: none; }
  .hero[data-step="3"] .hero__deco--star-yellow-1,
  .hero[data-step="4"] .hero__deco--star-yellow-1 { transition-delay: .5s; }
  .hero[data-step="3"] .hero__deco--star-red,
  .hero[data-step="4"] .hero__deco--star-red { transition-delay: .58s; }
  .hero[data-step="3"] .hero__deco--note-yellow,
  .hero[data-step="4"] .hero__deco--note-yellow { transition-delay: .66s; }
  .hero[data-step="3"] .hero__deco--club,
  .hero[data-step="4"] .hero__deco--club { transition-delay: .74s; }

  .hero__message {
    width: 48%;
    top: 51%;
    font-size: clamp(11px, 3.1vw, 13.5px);
    line-height: 1.72;
    transform: translate(-50%, -50%);
    transition-duration: 1.25s;
  }
  .hero[data-step="4"] .hero__message { opacity: 1; transform: translate(-50%, -50%); transition-delay: .2s; }

  .hero__scroll { bottom: max(12px, env(safe-area-inset-bottom)); transition: opacity .3s; }
  .hero:not([data-step="1"]) .hero__scroll { opacity: 0; }

  .circles-intro { padding: 72px 10px 68px; }
  .circles-intro__lead { font-size: 13px; }
  .circles-intro__title { font-size: clamp(22px, 6.7vw, 28px); }
  .circles-intro__title span { display: block; }
  .circles-intro__visual { margin-top: 32px; align-items: flex-start; }
  .circle-card { width: 55vw; max-width: 230px; }
  .circle-card--challenge { margin-right: -37px; }
  .circle-card--gift { margin-left: -37px; }
  .circle-card__caption { margin-top: 9px; }
  .circle-card h3 { font-size: clamp(13px, 3.8vw, 16px); white-space: nowrap; }
  .circle-card p { font-size: 11px; }
  .circles-intro__arrows { width: 72px; flex: 0 0 72px; margin: 0 -31px 22px; }
  .circles-intro__next { margin-top: 40px; padding: 0 14px; line-height: 1.8; }
}

@media (max-width: 370px) {
  .hero__world { width: 108vw; }
  .hero__story-line { font-size: 13px; }
  .circle-card { width: 56vw; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .2s !important; animation-iteration-count: 1 !important; transition-duration: .2s !important; }
  .hero__scroll span { animation: none !important; }
  .hero__title, .hero__tagline, .hero__story-line, .hero__ring, .hero__clown, .hero__aerial, .hero__audience, .hero__deco, .hero__message { transform: none; }
  .hero__title { animation-delay: 0s !important; }
  .hero__tagline { animation-delay: .12s !important; }
  .hero__story-line--1, .hero__ring { animation-delay: .25s !important; }
  .hero__clown { animation-delay: .42s !important; }
  .hero__story-line--2, .hero__aerial { animation-delay: .58s !important; }
  .hero__story-line--3, .hero__audience--left { animation-delay: .74s !important; }
  .hero__audience--center { animation-delay: .86s !important; }
  .hero__story-line--4, .hero__audience--right { animation-delay: .98s !important; }
  .hero__deco { animation-delay: 1.1s !important; }
  .hero__story-line--5 { animation-delay: 1.18s !important; }
  .hero__message { animation-delay: 1.38s !important; }
  .hero__message { transform: translate(-50%, -50%); }
  .circles-intro__lead,
  .circles-intro__title,
  .circle-card,
  .circles-intro__arrows,
  .circles-intro__next {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

@media (prefers-reduced-motion: reduce) and (max-width: 700px) {
  .hero__title, .hero__tagline { transform: translate(-50%, 0); }
  .hero__message { transform: translate(-50%, -50%); }
}
