:root {
  --paper: #f8f2e8;
  --ink: #214850;
  --sea: #377f93;
  --coral: #bb6b67;
  --serif: "Shippori Mincho", "Yu Mincho", "Hiragino Mincho ProN", serif;
  --sans: "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: #139fc3; color: var(--ink); }
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

.intro {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  background: var(--paper);
  pointer-events: none;
  animation: intro-out 1.15s cubic-bezier(.62,0,.2,1) 1.3s forwards;
}
.intro__mark { display: flex; flex-direction: column; align-items: center; transform: translateY(-6px); }
.intro__logo { font: 400 clamp(2rem, 5vw, 3.9rem)/1.3 var(--serif); letter-spacing: .1em; }
.intro__lab { margin-top: 7px; font: 500 10px/1 var(--sans); letter-spacing: .42em; }
.intro__line { display: block; width: min(180px, 45vw); height: 1px; margin-top: 25px; background: linear-gradient(90deg, transparent, #45adbc 26%, #f4c69e 74%, transparent); transform: scaleX(0); animation: draw-line 1.15s ease-out .18s forwards; }

.scroll-space { position: relative; height: 178svh; }
.hero { position: sticky; top: 0; height: 100svh; min-height: 620px; overflow: hidden; isolation: isolate; background: #139fc3; }
.atmosphere {
  position: absolute;
  inset: -15%;
  z-index: 0;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(127deg, #0e83b0 0%, #159dc4 31%, #22b6cd 70%, #f2b798 100%);
}
.atmosphere::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 410px 300px at 79% 76%, rgba(255, 218, 154, .68) 0%, rgba(245, 173, 131, .3) 54%, transparent 88%), radial-gradient(ellipse at 17% 44%, rgba(1, 56, 85, .22) 0%, rgba(2, 68, 95, .1) 42%, transparent 71%); pointer-events: none; }
.atmosphere__cloud { position: absolute; border-radius: 50%; filter: blur(clamp(36px, 6vw, 92px)); will-change: transform; }
.atmosphere__cloud span { display: block; width: 100%; height: 100%; border-radius: inherit; animation: cloud-drift 15s ease-in-out infinite alternate; }
.atmosphere__cloud--deep { top: -33%; left: -35%; width: 76%; height: 110%; opacity: .42; transform: translate3d(var(--deep-x, 0px), var(--deep-y, 0px), 0) scale(var(--deep-scale, 1)); }
.atmosphere__cloud--deep span { background: radial-gradient(ellipse at 48% 45%, #08678d 0%, #1184aa 38%, rgba(9, 121, 163, .62) 57%, transparent 76%); }
.atmosphere__cloud--lagoon { right: -18%; top: -1%; width: 111%; height: 104%; opacity: .92; transform: translate3d(var(--lagoon-x, 0px), var(--lagoon-y, 0px), 0) scale(var(--lagoon-scale, 1)); }
.atmosphere__cloud--lagoon span { background: radial-gradient(ellipse at 48% 50%, #20c8d7 0%, #089fc5 38%, rgba(8, 120, 174, .7) 56%, transparent 75%); animation-duration: 19s; animation-direction: alternate-reverse; }
.atmosphere__cloud--sun { top: 35%; right: 5%; width: 58%; height: 83%; opacity: .7; transform: translate3d(var(--sun-x, 0px), var(--sun-y, 0px), 0) scale(var(--sun-scale, 1)); }
.atmosphere__cloud--sun span { background: radial-gradient(ellipse at 47% 51%, #ffe8aa 0%, #ffd397 25%, rgba(244, 164, 120, .91) 47%, transparent 72%); animation-duration: 20s; }
.atmosphere__cloud--coral { bottom: -44%; left: 28%; width: 75%; height: 82%; opacity: .43; mix-blend-mode: screen; transform: translate3d(var(--coral-cloud-x, 0px), var(--coral-cloud-y, 0px), 0); }
.atmosphere__cloud--coral span { background: radial-gradient(ellipse at 47% 43%, #eeb1b0 0%, rgba(244, 173, 166, .8) 38%, transparent 74%); animation-duration: 24s; animation-direction: alternate-reverse; }
.atmosphere__cloud--mist { bottom: -45%; left: -15%; width: 68%; height: 75%; opacity: .34; mix-blend-mode: screen; transform: translate3d(var(--mist-x, 0px), var(--mist-y, 0px), 0); }
.atmosphere__cloud--mist span { background: radial-gradient(ellipse at 50% 48%, #daf4e6 0%, rgba(166, 224, 217, .9) 32%, transparent 72%); animation-duration: 17s; }
.fluid-canvas { position: absolute; z-index: 1; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; pointer-events: none; transition: opacity 1.2s ease; }
.hero.has-fluid .fluid-canvas { opacity: 1; }
.grain {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: .18;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.72' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.26'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

.site-head {
  position: absolute;
  z-index: 10;
  top: 42px;
  left: clamp(56px, 7vw, 110px);
  right: clamp(56px, 7vw, 110px);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  opacity: 0;
  transform: translateY(12px);
  animation: rise-in .9s ease 1.95s forwards;
}
.wordmark { display: flex; flex-direction: column; width: fit-content; color: #fff9f0; }
.wordmark__jp { font: 500 25px/1.2 var(--serif); letter-spacing: .08em; }
.wordmark__en { padding-left: 2px; margin-top: 3px; font: 500 9px/1.4 var(--sans); letter-spacing: .42em; }
.site-head__note { margin-top: 6px; font: 400 11px/1.6 var(--sans); letter-spacing: .14em; color: #fff9f0; }

.hero__content { position: absolute; z-index: 8; isolation: isolate; left: clamp(64px, 11.5vw, 176px); top: 26%; max-width: 820px; }
.hero__content::before { content: ""; position: absolute; z-index: -1; inset: -75px -95px -70px -95px; background: radial-gradient(ellipse at 45% 48%, rgba(1, 58, 94, .45) 0%, rgba(1, 66, 105, .28) 51%, transparent 76%); filter: blur(35px); pointer-events: none; }
.hero__kicker { margin: 0 0 28px 2px; font: 400 clamp(11px, 1.1vw, 13px)/1.7 var(--sans); letter-spacing: .22em; color: #fff9f0; opacity: 0; transform: translateY(16px); animation: rise-in .8s ease 1.98s forwards; }
h1 { margin: 0; font: 400 clamp(48px, 5.3vw, 84px)/1.43 var(--serif); letter-spacing: .065em; color: #fff9f0; text-shadow: 0 2px 18px rgba(2, 53, 80, .22); }
.hero__line { display: block; white-space: nowrap; opacity: 0; transform: translateY(30px); }
.hero__line:nth-child(1) { animation: rise-in 1.05s cubic-bezier(.2,.7,.1,1) 2.12s forwards; }
.hero__line:nth-child(2) { animation: rise-in 1.05s cubic-bezier(.2,.7,.1,1) 2.29s forwards; }
.hero__description { margin: 32px 0 0 4px; font: 400 clamp(14px, 1.24vw, 17px)/2.1 var(--serif); letter-spacing: .08em; color: #fff9f0; opacity: 0; transform: translateY(16px); animation: rise-in .85s ease 2.65s forwards; }

.motif-rail { position: absolute; z-index: 7; top: 13%; bottom: 17%; width: 56px; overflow: hidden; opacity: .8; mask-image: linear-gradient(to bottom, transparent, #000 14%, #000 84%, transparent); }
.motif-rail--left { left: 16px; }
.motif-rail--right { right: 16px; }
.motif-rail__track { display: flex; flex-direction: column; align-items: center; justify-content: space-around; height: 150%; width: 100%; animation: rail-drift 30s linear infinite alternate; }
.motif-rail--right .motif-rail__track { animation-duration: 34s; animation-direction: alternate-reverse; }
.motif { display: block; width: 41px; height: 41px; filter: drop-shadow(0 2px 5px rgba(4,64,89,.24)); }
.motif--flower { color: #fff4e6; }
.motif--shell { color: #fff4e6; width: 34px; height: 34px; }
.motif--coral { color: #fff4e6; width: 35px; height: 35px; }
.motif--sun { color: #fff4e6; width: 33px; height: 33px; }
.motif--shisa { color: #fff4e6; width: 39px; height: 39px; }

.hero__bottom { position: absolute; z-index: 8; bottom: 34px; left: clamp(56px, 7vw, 110px); right: clamp(56px, 7vw, 110px); display: flex; justify-content: flex-end; align-items: end; color: #fff9f0; opacity: 0; animation: fade-in .8s ease 3s forwards; }
.hero__caption { display: flex; align-items: center; gap: 12px; font: 500 9px/1.4 var(--sans); letter-spacing: .22em; }
.hero__caption-rule { display: inline-block; width: 27px; height: 1px; background: currentColor; }
.scroll-cue { display: flex; align-items: center; gap: 12px; font: 500 9px/1 var(--sans); letter-spacing: .22em; writing-mode: vertical-rl; }
.scroll-cue i { display: block; width: 1px; height: 46px; background: currentColor; transform-origin: top; animation: cue-line 2.1s ease-in-out infinite; }

.floating { position: absolute; z-index: 9; width: 80px; height: 80px; pointer-events: none; opacity: var(--float-opacity, 0); filter: drop-shadow(0 9px 12px rgba(45,73,71,.1)); }
.floating svg { width: 100%; height: 100%; }
.floating--flower { left: 8%; bottom: 17%; color: #fff5e9; transform: translate3d(var(--flower-x, -140px), var(--flower-y, 100px), 0) rotate(-18deg); }
.floating--shell { right: 11%; top: 35%; color: #fff5e9; width: 58px; height: 58px; transform: translate3d(var(--shell-x, 140px), var(--shell-y, -85px), 0) rotate(12deg); }
.floating--coral { right: 20%; bottom: 12%; color: #fff5e9; width: 70px; height: 70px; transform: translate3d(var(--coral-x, 100px), var(--coral-y, 120px), 0) rotate(12deg); }
.floating--shisa { left: 28%; bottom: 8%; color: #fff5e9; width: 72px; height: 72px; transform: translate3d(var(--shisa-x, -90px), var(--shisa-y, 130px), 0) rotate(-7deg); }
.afterglow { position: absolute; z-index: 8; right: 12%; bottom: 22%; margin: 0; font: 400 clamp(18px, 2vw, 26px)/1.5 var(--serif); letter-spacing: .16em; color: #fff9ef; text-shadow: 0 1px 8px rgba(13,74,88,.38); opacity: var(--after-opacity, 0); transform: translateY(var(--after-y, 18px)); }

@keyframes draw-line { to { transform: scaleX(1); } }
@keyframes intro-out { 0% { opacity: 1; clip-path: inset(0 0 0 0); } 58% { opacity: 1; } 100% { opacity: 0; clip-path: inset(0 0 100% 0); visibility: hidden; } }
@keyframes rise-in { to { opacity: 1; transform: translateY(0); } }
@keyframes fade-in { to { opacity: 1; } }
@keyframes rail-drift { from { transform: translateY(-15%); } to { transform: translateY(5%); } }
@keyframes cue-line { 0%, 100% { transform: scaleY(.4); } 50% { transform: scaleY(1); } }
@keyframes cloud-drift { from { transform: translate3d(-3%, 2%, 0) scale(1); } to { transform: translate3d(4%, -3%, 0) scale(1.1); } }

@media (max-width: 900px) {
  .hero__content { left: 10%; top: 29%; }
  h1 { font-size: clamp(40px, 5.8vw, 62px); }
  .site-head { left: 7%; right: 7%; }
  .hero__bottom { left: 7%; right: 7%; }
  .atmosphere__cloud--sun { right: -13%; }
}
@media (max-width: 600px) {
  .scroll-space { height: 165svh; }
  .hero { min-height: 0; }
  .atmosphere { inset: -24%; background: linear-gradient(155deg, #108bb6 0%, #16a2c5 47%, #27bbce 76%, #eeb7a2 100%); }
  .atmosphere::after { background: radial-gradient(ellipse 210px 220px at 75% 78%, rgba(255, 218, 154, .69), rgba(246, 174, 131, .32) 54%, transparent 88%), radial-gradient(ellipse at 16% 38%, rgba(1, 58, 83, .24), rgba(1, 75, 104, .1) 51%, transparent 78%); }
  .atmosphere__cloud { filter: blur(45px); }
  .atmosphere__cloud--deep { left: -48%; top: -25%; width: 116%; height: 100%; opacity: .34; }
  .atmosphere__cloud--lagoon { right: -33%; top: 3%; width: 165%; height: 102%; }
  .atmosphere__cloud--sun { right: -25%; top: 36%; width: 112%; height: 81%; opacity: .66; }
  .atmosphere__cloud--coral { left: 13%; bottom: -47%; width: 130%; height: 76%; }
  .atmosphere__cloud--mist { left: -35%; bottom: -52%; width: 119%; height: 81%; }
  .site-head { top: max(26px, env(safe-area-inset-top)); left: 9%; right: 9%; }
  .wordmark__jp { font-size: 20px; }
  .wordmark__en { font-size: 8px; }
  .site-head__note { max-width: 112px; text-align: right; font-size: 9px; line-height: 1.8; }
  .hero__content { top: 28%; left: 10%; right: 8%; max-width: none; }
  .hero__content::before { inset: -48px -37px -56px -36px; background: radial-gradient(ellipse at 48% 48%, rgba(1, 58, 94, .43), rgba(1, 66, 105, .24) 55%, transparent 78%); filter: blur(25px); }
  .hero__kicker { margin-bottom: 22px; font-size: 10px; line-height: 1.8; letter-spacing: .12em; }
  h1 { font-size: clamp(27px, 7.3vw, 37px); line-height: 1.6; letter-spacing: .02em; }
  .hero__description { margin-top: 27px; margin-left: 1px; font-size: 13px; line-height: 2; letter-spacing: .035em; }
  .motif-rail { top: 18%; bottom: 22%; width: 26px; opacity: .65; }
  .motif-rail--left { left: 5px; }
  .motif-rail--right { right: 5px; }
  .motif { width: 25px; height: 25px; }
  .motif--shell, .motif--coral, .motif--sun, .motif--shisa { width: 23px; height: 23px; }
  .hero__bottom { bottom: max(56px, calc(env(safe-area-inset-bottom) + 40px)); left: 9%; right: 9%; }
  .hero__caption { gap: 8px; font-size: 7px; letter-spacing: .13em; }
  .hero__caption-rule { width: 15px; }
  .scroll-cue { font-size: 8px; }
  .scroll-cue i { height: 30px; }
  .floating--flower { width: 58px; height: 58px; left: -1%; bottom: 17%; }
  .floating--shell { width: 43px; height: 43px; right: 2%; top: 41%; }
  .floating--coral { width: 50px; height: 50px; right: 8%; bottom: 16%; }
  .floating--shisa { width: 51px; height: 51px; left: 22%; bottom: 9%; }
  .afterglow { right: 10%; bottom: 24%; font-size: 17px; }
}
@media (max-width: 360px) {
  h1 { font-size: 25px; }
  .hero__kicker { font-size: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .intro { display: none; }
  .site-head, .hero__kicker, .hero__line, .hero__description, .hero__bottom { opacity: 1; transform: none; }
  .scroll-space { height: 100svh; }
}
