/* 750px reference: page 1, y 0–1251. All pieces stay in normal flow. */
#hero {
  --hero-water-raised: clamp(130px, 25svh, 210px);
  --hero-water-height: var(--hero-water-raised);
  --hero-wave-fixed-height: calc(115 * var(--u));
  --hero-top-wave: url('../../../svg/hero-top-wave-a.svg');
  --hero-bubble: url('../../../svg/hero-bubble-detail-tile-a.svg');
  --hero-top-height: calc(425 * var(--u));
  display: block;
  min-height: 100svh;
  height: 100svh;
  padding: 0;
  overflow: clip;
  background-color: #fff;
  background-image: none;
}
#hero .hero-stage {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  height: 100svh;
  padding: calc(190 * var(--u)) var(--lp-inline-space) 0;
  background-color: #fff;
  background-image:
    var(--hero-bubble),
    var(--hero-bubble),
    var(--hero-bubble),
    radial-gradient(circle at center, transparent calc(10 * var(--u)), #b8dfe3a8 calc(11 * var(--u)) calc(13 * var(--u)), transparent calc(14 * var(--u))),
    radial-gradient(circle at center, transparent calc(6 * var(--u)), #b8dfe3a8 calc(7 * var(--u)) calc(9 * var(--u)), transparent calc(10 * var(--u))),
    radial-gradient(circle at center, transparent calc(13 * var(--u)), #b8dfe3a8 calc(14 * var(--u)) calc(16 * var(--u)), transparent calc(17 * var(--u)));
  background-size: calc(44 * var(--u)) calc(440 * var(--u)), calc(30 * var(--u)) calc(300 * var(--u)), calc(52 * var(--u)) calc(520 * var(--u)), calc(70 * var(--u)) calc(440 * var(--u)), calc(54 * var(--u)) calc(520 * var(--u)), calc(82 * var(--u)) calc(380 * var(--u));
  background-position: 22% calc(90 * var(--u)), 69% calc(260 * var(--u)), 92% calc(130 * var(--u)), 12% 0, 48% calc(130 * var(--u)), 82% calc(260 * var(--u));
  background-repeat: repeat-y;
  animation: heroBubbleRise 12s linear infinite;
  overflow: hidden;
}
#hero .hero-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--hero-top-wave);
  background-size: auto var(--hero-top-height);
  background-position: 50% var(--hero-pink-offset, 0px);
  background-repeat: repeat-x;
  filter: blur(var(--hero-pink-blur, 0px));
  pointer-events: none;
}
#hero::after { content: none; }
#hero .hero-content {
  position: absolute;
  top: calc((100svh - var(--hero-water-raised)) / 2 + 26px);
  left: 50%;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(10px, 2vh, 22px);
  width: min(calc(100% - 2 * var(--lp-inline-space)), 980px);
  translate: -50% -50%;
}
#hero .hero-copy,
#hero .hero-product-group,
#hero .hero-products,
#hero .hero-mint-wave,
#hero .hero-duck,
#hero .hero-char-pink,
#hero .hero-char-red { position: static; inset: auto; transform: none; }
#hero .hero-copy { transform: translate(var(--hero-copy-offset-x, 0px), calc(var(--hero-copy-offset-y, 0px) + var(--hero-content-scroll-y, 0px))); }
#hero .hero-product-group { transform: translateY(var(--hero-content-scroll-y, 0px)); }
#hero .hero-copy { --hero-copy-offset-x: 8px; --hero-copy-offset-y: 10px; order: 1; width: 100%; text-align: center; }
#hero .hero-copy-main {
  margin: 0 0 calc(44 * var(--u));
  color: #706d69;
  font-size: clamp(28px, 9vw, 54px);
  font-weight: 700;
  line-height: 1.48;
  text-align: center;
}
#hero .hero-copy-main .title-line { display: block; white-space: nowrap; }
#hero .hero-copy-sub {
  max-width: none;
  margin: 0;
  color: #706d69;
  font-size: clamp(13px, calc(26 * var(--u)), 20px);
  line-height: 1.9;
  white-space: normal;
  text-align: center;
}
#hero .hero-copy-sub-last { font-feature-settings: "palt" 1; letter-spacing: -.06em; white-space: nowrap; }
#hero .hero-bracket-open,
#hero .hero-bracket-close { font-family: "Hiragino Maru Gothic ProN", "Zen Maru Gothic", sans-serif; font-weight: inherit; font-feature-settings: "palt" 1; letter-spacing: 0; }
#hero .hero-product-group {
  order: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 12px;
  width: 100%;
}
#hero .hero-products {
  display: block;
  width: min(100%, calc(400 * var(--u)));
}
#hero .hero-products img { display: block; width: 100%; height: auto; max-width: none; }
#hero .hero-product-caption {
  margin: 0;
  color: #716c69;
  font-weight: 500;
  font-size: clamp(9px, calc(13 * var(--u)), 13px);
  line-height: 1.4;
  text-align: center;
}
#hero .hero-characters {
  order: 5;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: end;
  width: calc(100% + 2 * var(--lp-inline-space));
  min-height: clamp(95px, calc(165 * var(--u)), 165px);
  padding-top: calc(12 * var(--u));
  margin: calc(20 * var(--u)) calc(-1 * var(--lp-inline-space)) 0;
  overflow: visible;
  margin-top: auto;
}
#hero .hero-characters > img { display: block; grid-row: 1; height: auto; max-width: none; }
.js-hero-reveal #hero .hero-characters > :is(.hero-char-pink, .hero-char-red) { opacity: var(--hero-opacity, 0); transition: opacity .16s linear; }
.js-hero-reveal #hero .hero-mint-wave { translate: 0 110%; transition: translate 1.15s cubic-bezier(.2, .8, .25, 1); }
.js-hero-reveal #hero .hero-characters.is-wave-visible .hero-mint-wave { translate: 0; }
#hero .hero-characters > .hero-mint-wave {
  content: normal;
  grid-column: 1 / -1;
  grid-row: 1;
  align-self: end;
  z-index: 2;
  width: 104%;
  height: var(--hero-water-height);
  min-height: 0;
  background:
    url('../../../svg/wave-mint-a.svg') center top / auto var(--hero-wave-fixed-height) repeat-x,
    linear-gradient(#c7dfd9, #c7dfd9) center bottom / 100% calc(100% - 18px) no-repeat;
  justify-self: center;
  animation: waveSwayX 6s ease-in-out infinite;
}
#hero .hero-duck {
  opacity: 1;
  grid-column: 4 / 6;
  z-index: 3;
  width: min(100%, calc(70 * var(--u)));
  margin-bottom: calc(var(--hero-water-height) - 20px);
  justify-self: center;
  translate: 0 var(--hero-parallax-y, 0px);
  animation: characterBobY 4.2s ease-in-out infinite;
}
#hero .hero-char-pink {
  grid-column: 8 / 10;
  z-index: 1;
  width: min(100%, calc(112 * var(--u)));
  margin-bottom: calc(var(--hero-water-height) - 30px);
  margin-right: calc(50 * var(--u));
  justify-self: end;
  translate: 0 calc(6px + var(--hero-parallax-y, 0px));
  animation: characterBobY 5.4s ease-in-out .6s infinite;
}
#hero .hero-char-red {
  grid-column: 9 / 12;
  z-index: 0;
  width: min(100%, calc(190 * var(--u)));
  margin-bottom: calc(var(--hero-water-height) - 26px);
  justify-self: end;
  translate: -10px var(--hero-parallax-y, 0px);
  animation: characterBobY 4.8s ease-in-out infinite;
}
#hero .hero-steam {
  grid-row: 1;
  align-self: end;
  z-index: 3;
  width: clamp(28px, calc(70 * var(--u)), 55px);
  height: auto;
  opacity: 0;
  pointer-events: none;
  animation: heroSteamDrift 6.4s ease-in-out infinite;
}
#hero .hero-steam-a { grid-column: 7 / 9; justify-self: start; margin-bottom: calc(var(--hero-water-height) + 8px); }
#hero .hero-steam-b { grid-column: 11 / 13; justify-self: end; margin-bottom: calc(var(--hero-water-height) + 42px); animation-duration: 7.6s; animation-delay: -3.1s; }
#hero .hero-steam-extra {
  grid-column: 5 / 7;
  grid-row: 1;
  align-self: end;
  justify-self: end;
  z-index: 3;
  width: clamp(28px, calc(70 * var(--u)), 55px);
  margin-bottom: calc(var(--hero-water-height) + 95px);
  opacity: var(--hero-steam-extra-opacity, 0);
  pointer-events: none;
}
#hero .hero-steam-extra img { display: block; width: 100%; height: auto; animation: heroSteamDrift 8.2s ease-in-out -4.4s infinite; }
.js-hero-reveal #hero .hero-steam { animation-play-state: paused; }
.js-hero-reveal #hero .hero-characters.is-wave-visible .hero-steam { animation-play-state: running; }
@keyframes heroSteamDrift {
  0%, 100% { opacity: 0; transform: translateY(16px) scale(.75); filter: blur(8px); }
  24% { opacity: .62; filter: blur(3px); }
  48% { opacity: .72; transform: translateY(-14px) scale(1); filter: blur(1px); }
  78% { opacity: 0; transform: translateY(-38px) scale(1.12); filter: blur(9px); }
}
@keyframes waveSwayX { 0%, 100% { transform: translateX(-1.2%); } 50% { transform: translateX(1.2%); } }
@keyframes heroBubbleRise {
  0% { background-position: 22% calc(90 * var(--u)), 69% calc(260 * var(--u)), 92% calc(130 * var(--u)), 12% 0, 48% calc(130 * var(--u)), 82% calc(260 * var(--u)); }
  50% { background-position: 22% calc(-130 * var(--u)), 69% calc(110 * var(--u)), 92% calc(-130 * var(--u)), 12% calc(-220 * var(--u)), 48% calc(-130 * var(--u)), 82% calc(70 * var(--u)); }
  100% { background-position: 22% calc(-350 * var(--u)), 69% calc(-40 * var(--u)), 92% calc(-390 * var(--u)), 12% calc(-440 * var(--u)), 48% calc(-390 * var(--u)), 82% calc(-120 * var(--u)); }
}
@keyframes characterBobY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(calc(-8 * var(--u))); } }
@media (prefers-reduced-motion: reduce) {
  #hero .hero-stage::before { filter: none; }
  #hero, #hero .hero-mint-wave, #hero .hero-duck, #hero .hero-char-pink, #hero .hero-char-red { animation: none; }
  #hero .hero-copy { transform: translate(var(--hero-copy-offset-x, 0px), var(--hero-copy-offset-y, 0px)); }
  #hero .hero-product-group { transform: none; }
  #hero .hero-steam { animation: none; opacity: .35; filter: blur(2px); }
  #hero .hero-steam-extra { opacity: .4; }
  #hero .hero-steam-extra img { animation: none; filter: blur(2px); }
}

@media (min-width: 750px) {
  #hero { --hero-water-raised: clamp(160px, 26svh, 260px); --hero-wave-fixed-height: 72px; }
  #hero .hero-stage {
    --hero-top-wave: url('../../../svg/hero-top-wave-pc-622121.svg');
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding: clamp(70px, 10vh, 100px) var(--lp-inline-space) 0;
  }
  #hero .hero-stage::before { background-size: 100vw auto; background-repeat: no-repeat; }
  #hero .hero-content {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 480px));
    justify-content: center;
    column-gap: clamp(20px, 3vw, 48px);
    align-items: center;
  }
  #hero .hero-copy { --hero-copy-offset-x: clamp(16px, 2.5vw, 32px); --hero-copy-offset-y: clamp(18px, 3vh, 30px); grid-area: auto; align-self: center; justify-self: center; max-width: 480px; text-align: left; }
  #hero .hero-copy-main { font-size: clamp(30px, 4.2vw, 52px); line-height: 1.4; text-align: left; }
  #hero .hero-copy-sub { font-size: clamp(14px, 1.5vw, 20px); text-align: left; }
  #hero .hero-product-group { grid-area: auto; justify-self: center; align-self: center; margin-top: 0; width: min(100%, 370px); }
  #hero .hero-products { width: 100%; }
  #hero .hero-product-caption { align-self: center; margin-top: 12px; margin-left: 0; text-align: center; }
  #hero .hero-characters {
    grid-area: auto;
    grid-template-columns: var(--lp-inline-space) repeat(12, minmax(0, 1fr)) var(--lp-inline-space);
    width: 100vw;
    justify-self: center;
    margin-inline: 0;
    margin-top: 10px;
  }
  #hero .hero-characters > .hero-mint-wave { background-image: url('../../../svg/wave-mint-pc-a.svg'), linear-gradient(#d0e5e4, #d0e5e4); }
  #hero .hero-duck { grid-column: 3 / 5; width: min(100%, clamp(52px, 5vw, 65px)); translate: -25px var(--hero-parallax-y, 0px); }
  #hero .hero-char-pink { grid-column: 9 / 11; width: min(100%, 120px); margin-right: 0; margin-bottom: calc(var(--hero-water-height) - 20px); translate: -10px calc(32px + var(--hero-parallax-y, 0px)); }
  #hero .hero-char-red { grid-column: 10 / 13; width: min(100%, 190px); translate: -25px var(--hero-parallax-y, 0px); }
  #hero .hero-steam-a { grid-column: 9 / 11; margin-left: -20px; }
  #hero .hero-steam-b { grid-column: 12 / 14; margin-right: -8px; }
  #hero .hero-steam-extra { grid-column: 8 / 10; margin-right: 15px; }
}

@media (max-width: 749px) {
  #hero .hero-char-pink { margin-bottom: calc(var(--hero-water-height) - 8px); }
}

@media (min-width: 750px) and (max-height: 750px) {
  #hero .hero-stage { padding-top: 70px; }
  #hero .hero-copy-main { font-size: clamp(30px, 3.5vw, 45px); margin-bottom: 15px; }
  #hero .hero-product-group { width: min(100%, 325px); }
  #hero .hero-char-red { width: min(100%, 150px); }
  #hero .hero-char-pink { width: min(100%, 96px); }
  #hero .hero-duck { width: min(100%, 54px); }
}

@media (max-width: 749px) and (max-height: 700px) {
  #hero .hero-stage { padding-top: 70px; }
  #hero .hero-copy-main { font-size: clamp(28px, 8.5vw, 34px); margin-bottom: 10px; }
  #hero .hero-products { width: min(100%, calc(380 * var(--u))); }
}
@media (max-width: 359px) and (max-height: 720px) {
  #hero .hero-content { top: calc((100svh - var(--hero-water-raised)) / 2 + 28px); }
  #hero .hero-copy-main { font-size: 26px; line-height: 1.36; }
  #hero .hero-copy-sub { font-size: 12px; line-height: 1.7; }
  #hero .hero-products { width: min(100%, calc(380 * var(--u))); }
}
