.page--yellow { background: var(--color-accent); }
.page--aqua { background: var(--color-aqua); }
.page--pale { background: var(--color-aqua-pale); }
.page--ink { background: var(--color-ink); }

.page--wave::before {
  content: ""; position: absolute; z-index: 1; left: 0; right: 0; top: var(--header-h); height: var(--wave-h);
  background: radial-gradient(circle at 50% 0, var(--color-base) 0 calc(var(--wave-h) - 1px), transparent var(--wave-h)) 0 0 / calc(var(--wave-h) * 2.6) var(--wave-h) repeat-x;
}
.page__inner { word-break: keep-all; overflow-wrap: anywhere; }
.head { position: relative; display: grid; gap: var(--sp-1); }
.txt { display: grid; gap: var(--sp-p); }
.f-k { fill: var(--color-ink); }
.f-y { fill: var(--color-accent); }
.f-a { fill: var(--color-aqua); }
.f-w { fill: var(--color-base); }
.f-chk { fill: url(#chk); }
.o-5 { fill-opacity: 0.55; }
.f-p { fill: var(--color-aqua-pale); }
.f-chky { fill: url(#chk-y); }
.f-chka { fill: url(#chk-a); }

.bgx { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; pointer-events: none; }
.bgx__fl { opacity: 0.55; }
.bgx__fl { animation: float var(--bg-float-t) ease-in-out infinite alternate; }
.bgx__wire, .bgx__glow, .bgx__lt { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.bgx__wire { stroke: var(--color-aqua); stroke-width: 2.6; stroke-opacity: 0.4; stroke-dasharray: 0.1 9.5; }
.bgx__glow, .bgx__lt { stroke: var(--color-accent); stroke-dasharray: 0.1 199.9; animation: flow var(--flow-t) linear infinite; }
.bgx__glow { stroke-width: 10; stroke-opacity: 0.14; }
.bgx__lt { stroke-width: 5; stroke-opacity: 0.55; }
.bgx--on-y .bgx__wire, .bgx--on-a .bgx__wire { stroke: var(--color-base); }
.bgx--on-y .bgx__glow, .bgx--on-y .bgx__lt { stroke: var(--color-base); }
.bgx--on-k .bgx__wire { stroke: var(--color-aqua); stroke-opacity: 0.6; }
.page:not(.is-active) .bgx__fl, .page:not(.is-active) .bgx__glow, .page:not(.is-active) .bgx__lt { animation-play-state: paused; }

.lab { justify-self: start; font-family: var(--font-en); font-size: calc(var(--fs-ui) * 1.35); line-height: 1; letter-spacing: 0.02em; color: var(--color-ink); rotate: -4deg; transform-origin: 0 100%; }
.lab--on-dark { color: var(--color-aqua); }

.ttl--r { font-family: var(--font-head); font-weight: 900; font-size: var(--fs-head); line-height: var(--lh-head); letter-spacing: var(--ls-head); color: var(--color-ink); }
.ttl--on-dark { color: var(--color-on-dark); }

.em-b { font-weight: 700; white-space: nowrap; }
.em-y { font-weight: 700; color: var(--color-accent); white-space: nowrap; }
.tag-y { padding: 0.05em 0.35em; font-weight: 700; white-space: nowrap; background: var(--color-accent); border-radius: 6px; }

.bt > span { position: relative; }   
.bt > span::before { content: "●"; position: absolute; top: -0.17em; left: 0; right: 0; font-size: 0.34em; line-height: 1; text-align: center; color: var(--color-ink); }   
.bt > .bt__in::before { left: auto; width: 2.94em; }   
.body--dot { padding-top: var(--sp-p); font-weight: 700; border-top: var(--dot); }

.page__inner .ln, .voice__t { text-wrap: balance; }

.rv.rv--drop { transform: translateY(-64px) rotate(var(--r, -8deg)) scale(0.9); transition: opacity 250ms ease, transform var(--dur-pop) var(--ease-pop); }

.rv.rv--pop { transform: scale(0.7); transition: opacity 250ms ease, transform 600ms var(--ease-pop); }
.rv--drop.is-on, .rv--pop.is-on { transform: none; }
@keyframes float { from { translate: 0 calc(var(--float-y) * -1); } to { translate: 0 var(--float-y); } }
@keyframes spin { to { rotate: 360deg; } }
@keyframes wobble { from { rotate: -3deg; } to { rotate: 3deg; } }
@keyframes flow { to { stroke-dashoffset: -200; } }

@keyframes jelly { 0% { scale: 1 1; } 28% { scale: 1.07 0.93; } 52% { scale: 0.96 1.04; } 74% { scale: 1.015 0.985; } 100% { scale: 1 1; } }
@keyframes puyo { 0%, 100% { scale: 1 1; } 50% { scale: 1.045 0.955; } }
@keyframes bg-in { 0% { translate: var(--fx) var(--fy); scale: 0.8 1.2; } 62% { translate: calc(var(--fx) * -0.05) calc(var(--fy) * -0.05); scale: 1.12 0.88; } 80% { translate: 0 0; scale: 0.95 1.05; } 100% { translate: 0 0; scale: 1 1; } }
.rv.is-on { animation: jelly var(--dur-jelly) var(--ease-out) both; }
.blk.rv.is-on { animation: jelly var(--dur-jelly) var(--ease-out) both, float var(--float-t) ease-in-out infinite alternate; }
.bub.rv.is-on { animation: jelly var(--dur-jelly) var(--ease-out) both, wobble 1.8s ease-in-out infinite alternate; }

.bgx__fl use { transform-box: fill-box; transform-origin: center; translate: var(--fx, 0) var(--fy, 0); }
.page.is-active .bgx__fl use { animation: bg-in var(--dur-bg-in) var(--ease-out) calc(var(--i, 0) * 140ms) both, puyo var(--puyo-t) ease-in-out calc(var(--dur-bg-in) + var(--i, 0) * 140ms) infinite; }

.btn, .form__submit { transition: scale 0.5s var(--ease-pop); }
.btn:active, .form__submit:active { scale: 1.08 0.9; transition-duration: 0.12s; }
.hb:active { animation: jelly 0.5s var(--ease-out); }
.pill.rv.is-on:active { animation: jelly 0.5s var(--ease-out); }
@media (hover: hover) { .btn:hover, .form__submit:hover, .hb:hover { animation: jelly 0.6s var(--ease-out); } }

.blks { position: relative; container-type: inline-size; display: flex; align-items: flex-end; height: clamp(64px, calc(19dvh - 40px), 180px); margin-right: calc(var(--gutter) * -1.6); }
.blk { flex: 0 0 auto; height: min(100%, 24cqw); width: auto; aspect-ratio: 100 / 130; margin-left: -0.6%; rotate: var(--r); animation: float var(--float-t) ease-in-out infinite alternate; }
.blk--o { height: min(86%, 20.6cqw); animation-delay: -1.2s; }
.blk--u { height: min(92%, 22cqw); animation-delay: -2.1s; }
.blk--w { height: min(100%, 24cqw); aspect-ratio: 144 / 130; animation-delay: -0.6s; }
.blk--a { height: min(88%, 21cqw); animation-delay: -2.8s; }

.page--p2::before { content: ""; position: absolute; z-index: 1; left: -10%; right: -10%; top: calc(var(--header-h) - 30px); height: 60px; background: var(--color-base); border-radius: 0 0 50% 50%; }
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.card { display: flex; align-items: center; gap: 0.4em; min-height: clamp(44px, calc(9dvh - 8px), 96px); padding: 0.4em 0.55em; font-family: var(--font-head); font-weight: 900; font-size: var(--fs-min); line-height: 1.25; color: var(--color-ink); background: var(--color-base); border-radius: var(--radius-card); }
.card__t { white-space: nowrap; letter-spacing: 0; }
.card__ico { flex: 0 0 auto; width: clamp(24px, calc(5dvh - 4px), 52px); height: clamp(24px, calc(5dvh - 4px), 52px); color: var(--color-ink); }

.p3-fig { position: relative; flex-shrink: 0; }
.p3-photo { width: 100%; height: clamp(80px, calc(24dvh - 44px), 300px); object-fit: cover; border-radius: 46% 54% 40% 60% / 58% 46% 54% 42%; }
.seal { position: absolute; right: -6px; top: -18px; width: clamp(70px, 11dvh, 112px); height: auto; animation: spin var(--spin-t) linear infinite; }
.seal__t { font-family: var(--font-en); font-size: 17px; fill: var(--color-ink); }

.kouwa { --lw: min(calc((100% - 20px) / 3), calc((100dvh - var(--header-h) - 12em) / 2.7)); display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 10px; }
.kw-l { display: grid; justify-items: center; gap: 4px; width: var(--lw); }
.kw-l--w { width: calc(var(--lw) * 1.44); }
.kw-l__svg { display: block; width: 100%; height: auto; overflow: visible; }
.kw-l__img { animation: pan var(--pan-t) ease-in-out infinite alternate; }
.kw-l:nth-child(2) .kw-l__img { animation-delay: -2s; }
.kw-l:nth-child(3) .kw-l__img { animation-delay: -4s; }
.kw-l:nth-child(4) .kw-l__img { animation-delay: -6s; }
.kw-l:nth-child(5) .kw-l__img { animation-delay: -8s; }
@keyframes pan { from { translate: -12px 0; } to { translate: 12px 0; } }
.kw-l__tag { padding: 0.15em 0.6em; font-family: var(--font-en); font-size: var(--fs-min); line-height: 1.3; color: var(--color-on-dark); white-space: nowrap; background: var(--color-ink); border-radius: var(--radius-pill); }

@media (max-aspect-ratio: 1/2), (min-width: 960px) and (max-aspect-ratio: 5/4) {
  .kouwa { --lw: min(calc((100% - 20px) / 3), calc((100dvh - var(--header-h) - 17em) / 2.7)); row-gap: clamp(1.5em, 9dvh, 7em); }
  .kw-l { gap: 10px; }
}

.p5-big { font-family: var(--font-en); font-size: clamp(2.4em, 7dvh, 4.2em); line-height: 0.95; color: var(--color-ink); rotate: -4deg; transform-origin: 0 100%; }
.p5-big__s { display: block; justify-self: start; width: max-content; margin-left: 1.2em; padding: 0 0.2em; background: var(--color-accent); border-radius: 10px; }
.reels { --reel-h: clamp(104px, 24dvh, 260px); display: grid; gap: 12px; margin: 0 calc(var(--gutter) * -1); }
.reel { position: relative; overflow: hidden; }
.reel__track { display: flex; gap: 10px; width: max-content; padding-left: 10px; }
.reel__track.is-ready { animation: reel var(--reel-speed, 16s) linear infinite; }
.reel__track--ltr.is-ready { animation-direction: reverse; }
.page:not(.is-active) .reel__track { animation-play-state: paused; }
@keyframes reel { to { transform: translateX(var(--reel-dist, -50%)); } }
.pc { flex: 0 0 auto; display: grid; gap: 6px; width: calc(var(--reel-h) * 4 / 3); padding: 6px 6px 8px; background: var(--color-aqua-pale); border-radius: var(--radius-card); }
.pc__img { width: 100%; height: var(--reel-h); object-fit: cover; border-radius: 12px; }
.pc__cap { display: flex; align-items: center; justify-content: space-between; gap: 0.4em; padding: 0 0.3em; }
.pc__date { font-family: var(--font-en); font-size: var(--fs-min); line-height: 1.2; color: var(--color-ink); }
.pc__tag { padding: 0.05em 0.6em; font-weight: 700; font-size: var(--fs-min); line-height: 1.4; color: var(--color-ink); border: 1px solid var(--color-ink); border-radius: var(--radius-pill); }

.num { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 0.25em; font-family: var(--font-en); line-height: 0.9; color: var(--color-accent); }
.num__n { font-size: clamp(4em, 16dvh, 10em); }
.num__s { font-size: 1.6em; }
.num__plus { color: var(--color-aqua); }
.num__since { flex-basis: 100%; margin-top: 0.3em; font-size: var(--fs-ui); letter-spacing: 0.12em; color: var(--color-aqua); }
.page--ink .body { color: var(--color-on-dark); }
.p6-blk { flex: 0 0 auto; align-self: flex-end; margin-left: auto; height: clamp(64px, 13dvh, 150px); width: auto; aspect-ratio: 100 / 130; rotate: var(--r); animation: float var(--float-t) ease-in-out infinite alternate; }

.isle { position: relative; display: flex; align-items: center; justify-content: space-between; margin: 0 calc(var(--gutter) * -1); --isle-h: clamp(104px, calc(26dvh - 40px), 280px); }
.isle__ph { flex: 0 0 auto; width: var(--isle-h); height: var(--isle-h); object-fit: cover; }
.isle__ph--l { margin-left: calc(var(--isle-h) * -0.18); border-radius: 62% 38% 52% 48% / 46% 58% 42% 54%; }
.isle__ph--r { margin-right: calc(var(--isle-h) * -0.18); border-radius: 44% 56% 38% 62% / 56% 42% 58% 44%; }
.isle__sea { position: relative; flex: 1; align-self: stretch; }
.isle__sea::after { content: ""; position: absolute; left: 0; right: 0; bottom: 24%; height: 10px; background: radial-gradient(circle at 50% 100%, var(--color-base) 0 4px, transparent 5px) 0 0 / 14px 10px repeat-x; }
.isle__boat { position: absolute; left: 50%; bottom: 26%; width: 58px; height: 35px; margin-left: -29px; color: var(--color-ink); animation: sail 7s ease-in-out infinite alternate; }
@keyframes sail { 0% { translate: -26px 0; rotate: -4deg; } 50% { translate: 0 -3px; rotate: 4deg; } 100% { translate: 26px 0; rotate: -3deg; } }

.p8-top { display: flex; align-items: flex-end; justify-content: flex-start; gap: 1.4em; }
.bub { position: relative; display: grid; font-size: clamp(1em, calc(3dvh - 6px), 1.7em); justify-items: center; padding: 0.35em 1em 0.4em; font-family: var(--font-head); font-weight: 900; line-height: 1.15; color: var(--color-ink); border: 2.5px dotted var(--color-ink); border-radius: 50%; rotate: 4deg; animation: wobble 1.8s ease-in-out infinite alternate; }
.bub::after { content: ""; position: absolute; left: 18%; bottom: -12px; width: 12px; height: 12px; border: 2.5px dotted var(--color-ink); border-radius: 50%; }
.bub__1 { font-size: var(--fs-min); }
.bub__2 { padding: 0 0.25em; font-size: 1.15em; background: var(--color-accent); border-radius: 6px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { padding: clamp(0.4em, calc(2.4dvh - 6px), 1.2em) 1.1em; font-family: var(--font-head); font-weight: 900; font-size: var(--fs-ui); line-height: 1.2; color: var(--color-on-dark); background: var(--color-ink); border-radius: var(--radius-pill); }

.voices { display: grid; gap: var(--sp-1); }
.voice { display: flex; align-items: center; gap: 0.6em; min-height: clamp(2.6em, 8dvh, 6em); padding: clamp(0.45em, calc(2dvh - 4px), 1.2em) 0.8em; font-weight: 700; line-height: 1.5; background: var(--color-base); border: var(--dot); border-radius: 14px; }
.voice__ck { flex: 0 0 auto; display: grid; place-items: center; width: 1.7em; height: 1.7em; color: var(--color-ink); background: var(--color-accent); border-radius: 50%; }
.voice__ck svg { width: 1.1em; height: 1.1em; stroke-dasharray: 24; stroke-dashoffset: 24; }
.voice.is-on .voice__ck svg { stroke-dashoffset: 0; transition: stroke-dashoffset 400ms ease 250ms; }

.box { position: relative; padding: 1.1em 1.1em; color: var(--color-ink); background: var(--color-base); border: var(--dot); border-radius: var(--radius-card); }
.info { display: grid; gap: clamp(0.7em, calc(7dvh - 30px), 2.6em); }
.info__row { display: grid; grid-template-columns: 7.2em 1fr; gap: 0.6em; align-items: start; }
.info dt { font-weight: 700; white-space: nowrap; }
.town { position: relative; display: flex; align-items: flex-end; justify-content: space-between; height: clamp(80px, calc(30dvh - 40px), 300px); padding: 0 8%; }
.town__pole { width: auto; height: 100%; aspect-ratio: 80 / 160; color: var(--color-ink); }
.town__wire { position: absolute; left: 14%; right: 14%; top: 16%; height: 22%; border-bottom: 3px solid var(--color-ink); border-radius: 0 0 50% 50%; }
.town__bird { position: absolute; width: 28px; height: 21px; animation: float 2.4s ease-in-out infinite alternate; }
.town__bird--1 { left: 38%; top: calc(16% + 22% - 19px); }
.town__bird--2 { left: 56%; top: calc(16% + 22% - 19px); animation-delay: -1.1s; }
.page--long .lab { margin-block: var(--sp-1); }
.page--long .box { margin-bottom: var(--sp-g); }
.req__row dt { color: var(--color-ink); }
.req__row dd { min-width: 0; overflow-wrap: anywhere; }
.ln--ind { padding-left: 1em; }
.field__opt { font-size: var(--fs-min); color: var(--color-ink-soft); }
.submit { position: relative; display: grid; justify-items: center; padding-top: 1.4em; }
.form .form__submit { position: relative; z-index: 1; color: var(--color-ink); box-shadow: none; }
.header-nav .hb--entry { color: var(--color-ink); }

@media (min-width: 960px) {
  .page { --fs-base: clamp(15px, 1.95dvh, var(--fs-pc-max)); }
  .rail { overflow: hidden; }
  .rail-logo, .rail-side { position: relative; z-index: 2; }
  .rail-side .btn--fill { color: var(--color-ink); }
  .rl-blk { position: absolute; z-index: 1; height: 30%; width: auto; aspect-ratio: 100 / 130; animation: float 4.4s ease-in-out infinite alternate; }
  .rl-blk--k { left: -4%; top: -6%; rotate: -12deg; }
  .rl-blk--o { right: 10%; top: 8%; height: 18%; rotate: 10deg; animation-delay: -1.6s; }
  .rl-blk--w { left: 8%; top: 64%; height: 16%; aspect-ratio: 144 / 130; rotate: 8deg; animation-delay: -2.4s; }
  .rl-blk--a { right: -5%; top: -4%; rotate: 12deg; animation-delay: -0.8s; }
  .rl-blk--u { left: 6%; bottom: 6%; height: 22%; rotate: -8deg; animation-delay: -2s; }
  .rl-line { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; height: 26%; }
  .rl-line::before { content: ""; position: absolute; left: 30%; right: 18%; top: 14%; height: 18%; border-bottom: 3px solid var(--color-ink); border-radius: 0 0 50% 50%; }
  .rl-pole { position: absolute; bottom: -2%; height: 100%; width: auto; aspect-ratio: 80 / 160; }
  .rl-pole--1 { left: 24%; }
  .rl-pole--2 { right: 12%; }
  .rl-bird { position: absolute; width: 30px; height: 22px; animation: float 2.6s ease-in-out infinite alternate; }
  .rl-bird--1 { left: 44%; top: calc(14% + 18% - 20px); }
  .rl-bird--2 { left: 54%; top: calc(14% + 18% - 20px); animation-delay: -0.9s; }
  .rl-bird--3 { left: 64%; top: calc(14% + 18% - 22px); animation-delay: -1.7s; }
  .rl-seal { position: absolute; z-index: 1; right: 12%; bottom: 10%; width: 120px; height: 120px; animation: spin var(--spin-t) linear infinite; }
  .rl-seal__t { font-family: var(--font-en); font-size: 17px; fill: var(--color-accent); }
}
