/* =====================================================================
   TOP HERO — 「月が灯り、光が広がって、夜の街が目を覚ます」
   ---------------------------------------------------------------------
   0.0s  暗闇。看板のガラス管だけがうっすら見える
   0.3s  月が描かれていく（最初の光）
   1.2s  月が満ちてフラッシュ → 月から光の波が広がり、暗闇を押しのける
         └ 波が届いた順に、星が点灯・花が咲く（遅延は JS が距離から計算）
   1.6s  月のそばの枠の両端から電気が走り、2.8s に上中央で合流して火花
   2.9s  WOL TOKYO が一文字ずつ点灯 → 3.6s Nail & Eyelash
   3.5s〜 コピー・ボタン・バッジ
   以降  月のゆらぎ、星のまたたき、ときどき風が花を揺らす、流れ星
   ===================================================================== */

@property --wr { syntax: "<length>"; inherits: false; initial-value: 0px; }

.nhero {
  --mx: 0;
  --my: 0;
  --sy: 0;
  --wx: 30%;
  --wy: 72%;
  --wave-start: 1.2s;
  --wave-dur: 2.6s;
  --pink-lit: 0 0 2px #fff, 0 0 7px #ff2d95, 0 0 16px #ff2d95, 0 0 34px #ff2d95, 0 0 70px rgba(255, 45, 149, 0.55);
  --blue-lit: 0 0 2px #fff, 0 0 7px #00c8ff, 0 0 16px #00c8ff, 0 0 34px rgba(0, 200, 255, 0.7);
  --yellow-lit: 0 0 2px #fff, 0 0 8px #f6ff00, 0 0 20px rgba(246, 255, 0, 0.75);
  position: relative;
  min-height: max(700px, 100svh);
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  background:
    radial-gradient(ellipse 60% 45% at 50% 42%, rgba(255, 122, 217, 0.2), transparent 70%),
    linear-gradient(180deg, #1a1478 0%, #2420b4 30%, #2f4fd8 58%, #3f8ae8 80%, #74c6f4 100%);
}

/* ---------- 夜空 ---------- */
.nhero-sky { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.nhero-stars, .nhero-bokeh, .nhero-shoot { position: absolute; inset: 0; }

.nhero-stars i {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--s);
  height: var(--s);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.9);
  animation: nStar var(--t) ease-in-out var(--d) infinite;
}
@keyframes nStar { 0%, 100% { opacity: 0.15; scale: 0.6; } 50% { opacity: 1; scale: 1.2; } }

.nhero-bokeh { transform: translate3d(calc(var(--mx) * -30px), calc(var(--my) * -16px + var(--sy) * 0.45px), 0); }
.nhero-bokeh i {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--s);
  height: var(--s);
  border-radius: 50%;
  background: radial-gradient(circle, var(--c) 0%, color-mix(in srgb, var(--c) 45%, transparent) 45%, transparent 70%);
  filter: blur(var(--b));
  opacity: 0;
}
body.is-ready .nhero-bokeh i { animation: nBokehIn 2s ease var(--in) forwards, nBokeh var(--t) ease-in-out var(--d) infinite alternate; }
@keyframes nBokehIn { to { opacity: var(--o); } }
@keyframes nBokeh { to { transform: translate(var(--dx), -14px) scale(1.15); } }

/* 流れ星：先頭に回転する黄色い星、その後ろに光の尾。
   要素の右端（＝星）を回転の中心にして進行方向へ向け、そのまま前へ進ませる */
.nhero-shoot span {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--len, 200px);
  height: 26px;
  margin: -13px 0 0 calc(var(--len, 200px) * -1);
  transform-origin: 100% 50%;
  opacity: 0;
  animation: nShoot var(--dur, 1.5s) cubic-bezier(0.35, 0, 0.65, 1) forwards;
}
/* 尾：星に近いほど明るく、後ろへ細く消えていく */
.nhero-shoot span::before {
  content: "";
  position: absolute;
  right: 13px;
  top: 50%;
  width: calc(100% - 13px);
  height: 4px;
  margin-top: -2px;
  border-radius: 3px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 252, 200, 0.35) 45%, rgba(255, 255, 230, 0.95));
  -webkit-mask: linear-gradient(90deg, transparent, #000 60%);
  mask: linear-gradient(90deg, transparent, #000 60%);
  filter: drop-shadow(0 0 4px rgba(246, 255, 0, 0.8));
  transform-origin: 100% 50%;
  animation: nTail var(--dur, 1.5s) ease-out forwards;
}
.nhero-shoot span svg {
  position: absolute;
  right: 0;
  top: 2px;
  width: 28px;
  height: 28px;
  margin-top: -3px;
  overflow: visible;
  filter: drop-shadow(0 0 4px #f6ff00) drop-shadow(0 0 12px rgba(246, 255, 0, 0.8)) drop-shadow(0 0 22px rgba(255, 255, 255, 0.5));
  animation: nShootSpin 0.9s linear infinite;
}
/* 尾からこぼれるきらきら */
.nhero-shoot span i {
  position: absolute;
  top: 50%;
  width: 4px;
  height: 4px;
  margin-top: -2px;
  border-radius: 50%;
  background: #fffbd0;
  box-shadow: 0 0 6px #f6ff00;
  opacity: 0;
  animation: nDust 0.9s ease-out var(--dd) forwards;
}
@keyframes nShoot {
  0% { opacity: 0; transform: rotate(var(--a)) translateX(0); }
  12% { opacity: 1; }
  78% { opacity: 1; }
  100% { opacity: 0; transform: rotate(var(--a)) translateX(var(--dist, 460px)); }
}
@keyframes nTail { 0% { scale: 0.15 1; } 35% { scale: 1 1; } 100% { scale: 0.6 1; } }
@keyframes nShootSpin { to { rotate: 360deg; } }
@keyframes nDust { 0% { opacity: 1; translate: 0 0; } 100% { opacity: 0; translate: 0 -18px; scale: 0.3; } }

/* ---------- 蛍光イエローの星 ---------- */
.nhero-ystars { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.ystar {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--s);
  height: var(--s);
  margin: calc(var(--s) / -2) 0 0 calc(var(--s) / -2);
  opacity: 0;
  scale: 0;
  translate: calc(var(--mx) * var(--z) * -54px) calc(var(--my) * var(--z) * -32px + var(--sy) * var(--z) * 0.35px);
  pointer-events: auto;
}
.ystar svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: drop-shadow(0 0 3px #f6ff00) drop-shadow(0 0 12px rgba(246, 255, 0, 0.7)) drop-shadow(0 0 26px rgba(246, 255, 0, 0.35));
  animation: yTwinkle calc(2.4s + var(--k) * 0.17s) ease-in-out calc(var(--k) * -0.41s) infinite;
}
.ystar:nth-child(3n + 1) svg { animation-name: yRock; }
.ystar:nth-child(3n + 2) svg { animation-name: yFloat; animation-duration: calc(3.4s + var(--k) * 0.13s); }
@keyframes yTwinkle { 0%, 100% { scale: 1; filter: drop-shadow(0 0 3px #f6ff00) drop-shadow(0 0 12px rgba(246, 255, 0, 0.7)) drop-shadow(0 0 26px rgba(246, 255, 0, 0.35)); } 50% { scale: 0.8; filter: drop-shadow(0 0 2px #f6ff00) drop-shadow(0 0 6px rgba(246, 255, 0, 0.5)); } }
@keyframes yRock { 0%, 100% { rotate: -14deg; } 50% { rotate: 14deg; } }
@keyframes yFloat { 0%, 100% { translate: 0 0; rotate: -6deg; } 50% { translate: 0 -8px; rotate: 8deg; } }

/* 光の波が届いた瞬間に点灯（--at は JS が月からの距離で設定） */
body.is-ready .ystar { animation: yIgnite 0.9s var(--bounce) var(--at, 2s) forwards; }
@keyframes yIgnite {
  0% { opacity: 0; scale: 0; rotate: -140deg; }
  55% { opacity: 1; scale: 1.4; rotate: 14deg; }
  100% { opacity: 1; scale: 1; rotate: 0deg; }
}
.ystar::after {
  content: "";
  position: absolute;
  inset: -40%;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 210, 0.9);
  box-shadow: 0 0 12px rgba(246, 255, 0, 0.8);
  opacity: 0;
  pointer-events: none;
}
body.is-ready .ystar::after { animation: yRing 0.8s ease-out var(--at, 2s) forwards; }
@keyframes yRing { 0% { opacity: 1; scale: 0.2; } 100% { opacity: 0; scale: 1.6; } }

/* 触ると、くるっと回ってきらめく */
.ystar.is-poke svg { animation: ySpin 0.9s var(--bounce); }
@keyframes ySpin {
  0% { rotate: 0deg; scale: 1; }
  40% { scale: 1.45; filter: drop-shadow(0 0 6px #fff) drop-shadow(0 0 24px #f6ff00) drop-shadow(0 0 44px rgba(246, 255, 0, 0.7)); }
  100% { rotate: 360deg; scale: 1; }
}

/* ---------- シャボン玉 ---------- */
.nhero-bubbles { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; opacity: 0; }
body.is-ready .nhero-bubbles { animation: nFade 2s ease 2.2s forwards; }
@keyframes nFade { to { opacity: 1; } }
.nhero-bubbles i {
  position: absolute;
  left: var(--x);
  bottom: -70px;
  width: var(--s);
  height: var(--s);
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background:
    radial-gradient(circle at 30% 28%, rgba(255, 255, 255, 0.95) 0 7%, transparent 13%),
    radial-gradient(circle at 70% 75%, rgba(255, 255, 255, 0.4) 0 4%, transparent 8%),
    conic-gradient(from 30deg, rgba(255, 120, 220, 0.38), rgba(120, 220, 255, 0.34), rgba(246, 255, 140, 0.3), rgba(180, 120, 255, 0.38), rgba(255, 120, 220, 0.38));
  -webkit-mask: radial-gradient(circle, rgba(0, 0, 0, 0.35) 52%, #000 72%);
  mask: radial-gradient(circle, rgba(0, 0, 0, 0.35) 52%, #000 72%);
  animation: nRise var(--t) linear var(--d) infinite, nHue 6s linear infinite;
}
.nhero-bubbles i.heart {
  border: 0;
  border-radius: 0;
  background: linear-gradient(160deg, #fff 0%, #ffb3ec 35%, #ff6ad5 70%, #b97cff 100%);
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 22"><path d="M12 21.5 1.8 11.6A6 6 0 0 1 12 3.3a6 6 0 0 1 10.2 8.3z"/></svg>') center / contain no-repeat;
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 22"><path d="M12 21.5 1.8 11.6A6 6 0 0 1 12 3.3a6 6 0 0 1 10.2 8.3z"/></svg>') center / contain no-repeat;
  animation: nRise var(--t) linear var(--d) infinite;
}
@keyframes nRise {
  0% { transform: translate(0, 0) rotate(0deg); opacity: 0; }
  8% { opacity: 1; }
  50% { transform: translate(var(--sw), -55vh) rotate(20deg); }
  92% { opacity: 1; }
  100% { transform: translate(calc(var(--sw) * -0.4), -112vh) rotate(-10deg); opacity: 0; }
}
@keyframes nHue { to { filter: hue-rotate(360deg); } }

/* ---------- メタリックフラワー ---------- */
.nflora {
  position: absolute;
  bottom: -2%;
  z-index: 1;
  width: clamp(200px, 26vw, 440px);
  height: auto;
  aspect-ratio: 440 / 560;
  overflow: visible;
  pointer-events: none;
  filter: drop-shadow(0 0 18px rgba(120, 90, 255, 0.45));
  transform: translate3d(calc(var(--mx) * 18px), calc(var(--sy) * -0.12px), 0);
}
.nflora--l { left: -2%; }
.nflora--r { right: -2%; }
.nflora .fl { transform-box: view-box; scale: 1 0; }
body.is-ready .nflora .fl { animation: nGrow 1.3s var(--bounce) calc(var(--at, 2.2s) - 0.5s) forwards, nSway var(--t) ease-in-out var(--d) infinite alternate; }
@keyframes nGrow { to { scale: 1 1; } }
@keyframes nSway { from { rotate: -3.5deg; } to { rotate: 3.5deg; } }
.fl-stem { fill: none; stroke: #0d2350; stroke-width: 5; stroke-linecap: round; }
.fl-head { transform-box: fill-box; transform-origin: center; scale: 0; pointer-events: auto; cursor: pointer; }
.fl-head--tulip { transform-origin: 50% 100%; }
.fl-head use { transform-box: fill-box; transform-origin: center; }
body.is-ready .fl-head { animation: nBloom 1.1s var(--bounce) var(--at, 2.2s) forwards, nBreathe var(--t2) ease-in-out calc(var(--at, 2.2s) + 1.1s) infinite alternate; }
body.is-ready .fl-head--open { animation: nBloom 1.1s var(--bounce) var(--at, 2.2s) forwards, nTurn var(--t2) ease-in-out calc(var(--at, 2.2s) + 1.1s) infinite alternate; }
@keyframes nBloom { from { scale: 0; rotate: -70deg; } to { scale: 1; rotate: 0deg; } }
@keyframes nBreathe { from { scale: 1; } to { scale: 1.07 0.96; } }
@keyframes nTurn { from { scale: 1; rotate: -8deg; } to { scale: 1.06; rotate: 8deg; } }
.fl-sheen { opacity: 0.22; animation: nSheen 3.4s ease-in-out infinite; }
@keyframes nSheen { 0%, 100% { opacity: 0.12; } 50% { opacity: 0.5; } }

/* ---------- 暗闇のベールと光の波 ---------- */
.nhero-dark {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  --wr: 0px;
  background: radial-gradient(circle at var(--wx) var(--wy),
    transparent calc(var(--wr) - 260px),
    rgba(255, 250, 205, 0.16) calc(var(--wr) - 90px),
    rgba(255, 252, 220, 0.42) calc(var(--wr) - 14px),
    rgba(6, 3, 26, 0.95) var(--wr));
}
body.is-ready .nhero-dark { animation: nWave var(--wave-dur) linear var(--wave-start) forwards; }
@keyframes nWave { to { --wr: 3200px; } }

/* ---------- レイアウト ---------- */
.nhero-inner {
  position: relative;
  z-index: 2;
  min-height: inherit;
  display: grid;
  align-items: center;
  justify-items: center;
  gap: 36px;
  width: min(100% - 40px, 1180px);
  margin-inline: auto;
  padding: calc(var(--head-h) + 18px) 0 120px;
  pointer-events: none;
}
.nhero-inner > * { pointer-events: auto; }
@media (min-width: 960px) {
  .nhero-inner { grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 80px); padding-bottom: 90px; }
}

/* ---------- ネオンサイン ---------- */
.nsign {
  position: relative;
  width: min(380px, 78vw);
  aspect-ratio: 600 / 720;
  container-type: inline-size;
  transform:
    perspective(1100px)
    translate3d(0, calc(var(--sy) * 0.18px), 0)
    rotateX(calc(var(--my) * -9deg))
    rotateY(calc(var(--mx) * 12deg))
    scale(calc(1 - var(--sy) * 0.00022));
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
@media (min-width: 960px) {
  .nsign { width: min(500px, 42vw, calc((100svh - 150px) * 0.83)); justify-self: end; }
}

.nsign-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.nsign-svg .glass,
.nsign-svg .tube,
.nsign-svg .core { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.nsign-svg .glass { stroke: rgba(220, 210, 255, 0.1); stroke-width: 9; }
.nsign-svg .tube,
.nsign-svg .core { stroke-dasharray: 1; stroke-dashoffset: 1; }
.nsign-svg .tube { stroke-width: 9; }
.nsign-svg .core { stroke: #fff; stroke-width: 2.6; opacity: 0.85; }
.nsign-svg .tube.f1, .nsign-svg .tube.f2 { stroke: url(#rainbow); }
.nsign-svg .tube.moon, .nsign-svg .tube.star { stroke: #f6ff00; }
.nsign-frame, .nsign-moon { filter: url(#neonGlow); }

/* 月：最初の光 */
body.is-ready .nsign-svg .moon { animation: nDraw 0.9s cubic-bezier(0.5, 0, 0.3, 1) 0.3s forwards, nMoonFill 0.8s ease 1.2s forwards; }
@keyframes nMoonFill { from { fill: rgba(246, 255, 0, 0); } to { fill: rgba(246, 255, 0, 0.1); } }
body.is-ready .nsign-moon { animation: nMoonFlash 1s ease-out 1.15s, nSwing 6s ease-in-out 2.6s infinite alternate; }
@keyframes nMoonFlash {
  0% { filter: url(#neonGlow) brightness(1); }
  18% { filter: url(#neonGlow) brightness(2.4); }
  100% { filter: url(#neonGlow) brightness(1); }
}
.nsign-moon { transform-box: view-box; transform-origin: 300px 560px; }
@keyframes nSwing { from { rotate: -3deg; translate: 0 0; } to { rotate: 4deg; translate: 0 -6px; } }

/* 枠：月の両側から上へ電気が走る */
body.is-ready .nsign-svg .f1 { animation: nDraw 1.2s cubic-bezier(0.55, 0, 0.35, 1) 1.6s forwards; }
body.is-ready .nsign-svg .f2 { animation: nDraw 1.1s cubic-bezier(0.55, 0, 0.35, 1) 1.72s forwards; }
body.is-ready .nsign-svg .s1 .star { animation: nDraw 0.45s ease-out 1.45s forwards; }
body.is-ready .nsign-svg .s2 .star { animation: nDraw 0.4s ease-out 1.6s forwards; }
@keyframes nDraw { to { stroke-dashoffset: 0; } }

body.is-ready .nsign-frame { animation: nFrameHum 7s ease-in-out 4.5s infinite; }
@keyframes nFrameHum {
  0%, 48%, 50%, 52%, 100% { opacity: 1; }
  49% { opacity: 0.55; } 51% { opacity: 0.7; }
}
.nsign-star { transform-box: fill-box; transform-origin: center; }
body.is-ready .nsign-star.s1 { animation: nTwinkle 2.4s ease-in-out 2.4s infinite; }
body.is-ready .nsign-star.s2 { animation: nTwinkle 2s ease-in-out 2.8s infinite; }
@keyframes nTwinkle { 0%, 100% { scale: 1; rotate: 0deg; } 50% { scale: 1.18; rotate: 14deg; } }

/* 枠が閉じた瞬間の火花 */
.nsign-spark {
  position: absolute;
  left: 50%;
  top: 3.33%;
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 12px #fff, 0 0 30px #f6ff00, 0 0 60px #ff2d95;
  opacity: 0;
  pointer-events: none;
}
body.is-ready .nsign-spark { animation: nSpark 0.7s ease-out 2.8s; }
@keyframes nSpark { 0% { opacity: 1; scale: 0.3; } 30% { opacity: 1; scale: 2.6; } 100% { opacity: 0; scale: 0.6; } }
.nspark-p {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--c);
  box-shadow: 0 0 8px var(--c);
  pointer-events: none;
}

/* 月の後光：月が満ちた瞬間にふくらむ */
.nsign-halo {
  position: absolute;
  left: 50%;
  top: 80%;
  width: 78%;
  aspect-ratio: 1;
  border-radius: 50%;
  translate: -50% -50%;
  background: radial-gradient(circle, rgba(255, 252, 215, 0.42) 0%, rgba(255, 150, 225, 0.16) 38%, transparent 68%);
  opacity: 0;
  pointer-events: none;
}
body.is-ready .nsign-halo { animation: nHaloBloom 1.4s cubic-bezier(0.2, 0.9, 0.3, 1) 1.15s forwards, nHalo 4s ease-in-out 2.6s infinite; }
@keyframes nHaloBloom { 0% { opacity: 0; scale: 0.3; } 35% { opacity: 1; scale: 1.7; } 100% { opacity: 1; scale: 1; } }
@keyframes nHalo { 0%, 100% { scale: 1; opacity: 1; } 50% { scale: 1.12; opacity: 0.7; } }

/* ---------- 看板の文字 ---------- */
.nsign-word {
  position: absolute;
  inset: 17% 0 auto;
  margin: 0;
  display: grid;
  justify-content: center;
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 15.5cqw;
  line-height: 1.1;
  letter-spacing: 0.07em;
  text-align: center;
}
.nsign-line { display: block; margin-right: -0.07em; }
.nsign-sub {
  justify-self: end;
  margin-top: 0.25em;
  font-size: 0.36em;
  letter-spacing: 0.03em;
  line-height: 1.2;
}

/* 消灯状態（ガラス管だけ見えている） */
[data-neon] .ch { display: inline-block; color: rgba(255, 120, 190, 0.16); text-shadow: none; }
.nsign-sub .ch { color: rgba(120, 210, 255, 0.16); }
.nhero-title .ch { color: rgba(255, 255, 255, 0.1); }

body.is-ready .nsign-line .ch { animation: nOnPink 1.1s linear calc(2.9s + var(--i) * 0.09s + var(--r)) both; }
body.is-ready .nsign-line .ch.is-broken { animation: nOnPink 1.1s linear calc(2.9s + var(--i) * 0.09s + var(--r)) both, nBroken 4.2s steps(1) 6s infinite; }
body.is-ready .nsign-sub .ch { animation: nOnBlue 0.9s linear calc(3.6s + var(--i) * 0.03s) both; }
body.is-ready .nhero-title .ch { animation: nOnTitle 0.9s linear calc(3.7s + var(--i) * 0.05s) both; }

@keyframes nOnPink {
  0% { color: rgba(255, 120, 190, 0.16); text-shadow: none; }
  8%, 22%, 40%, 100% { color: #ffe1f1; text-shadow: var(--pink-lit); }
  12%, 28% { color: rgba(255, 120, 190, 0.3); text-shadow: none; }
}
@keyframes nOnBlue {
  0% { color: rgba(120, 210, 255, 0.16); text-shadow: none; }
  10%, 30%, 100% { color: #dff7ff; text-shadow: var(--blue-lit); }
  18% { color: rgba(120, 210, 255, 0.3); text-shadow: none; }
}
@keyframes nOnTitle {
  0% { color: rgba(255, 255, 255, 0.1); text-shadow: none; }
  15%, 45%, 100% { color: #fff; text-shadow: 0 0 6px rgba(255, 255, 255, 0.8), 0 0 18px #ff2d95, 0 0 40px rgba(255, 45, 149, 0.7); }
  25% { color: rgba(255, 255, 255, 0.25); text-shadow: none; }
}
@keyframes nBroken {
  0%, 86% { color: #ffe1f1; text-shadow: var(--pink-lit); }
  87%, 90%, 95% { color: rgba(255, 120, 190, 0.25); text-shadow: none; }
  88%, 92%, 97%, 100% { color: #ffe1f1; text-shadow: var(--pink-lit); }
}

/* タップ／クリックでスイッチを入れ直す */
.nsign.is-zap .nsign-line .ch { animation: nOnPink 0.7s linear calc(var(--i) * 0.03s) both !important; }
.nsign.is-zap .nsign-sub .ch { animation: nOnBlue 0.7s linear calc(var(--i) * 0.02s) both !important; }
.nsign.is-zap .nsign-frame { animation: nZap 0.7s steps(1) both; }
@keyframes nZap { 0%, 30%, 60% { opacity: 0.25; } 15%, 45%, 100% { opacity: 1; } }

/* ---------- コピー側 ---------- */
.nhero-copy { text-align: center; max-width: 520px; transform: translate3d(calc(var(--mx) * 10px), calc(var(--sy) * 0.08px), 0); }
@media (min-width: 960px) { .nhero-copy { text-align: left; justify-self: start; } }

.nhero-kicker {
  margin: 0 0 16px;
  font-family: var(--font-en);
  font-weight: 900;
  font-size: 0.8rem;
  letter-spacing: 0.42em;
  color: #c9f3ff;
  text-shadow: 0 0 10px rgba(0, 200, 255, 0.9);
  opacity: 0;
}
.nhero-title {
  margin: 0;
  font-family: var(--font-jp);
  font-weight: 900;
  font-size: clamp(2rem, 4.4vw, 3.5rem);
  line-height: 1.35;
  letter-spacing: 0.04em;
}
.nhero-sub {
  margin: 20px 0 0;
  font-weight: 700;
  font-size: clamp(0.92rem, 1.4vw, 1.05rem);
  line-height: 1.9;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.85);
  opacity: 0;
}
.nhero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; justify-content: center; opacity: 0; }
@media (min-width: 960px) { .nhero-cta { justify-content: flex-start; } }

body.is-ready .nhero-kicker { animation: nFadeUp 0.9s ease 3.5s forwards; }
body.is-ready .nhero-sub { animation: nFadeUp 0.9s ease 4.3s forwards; }
body.is-ready .nhero-cta { animation: nFadeUp 0.9s var(--bounce) 4.6s forwards; }
@keyframes nFadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.nbtn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  min-height: 58px;
  padding: 0.7em 1.8em;
  border-radius: 14px;
  background: rgba(8, 3, 26, 0.65);
  font-family: var(--font-jp);
  font-weight: 900;
  font-size: 1rem;
  letter-spacing: 0.1em;
  transition: transform 0.25s var(--ease), filter 0.25s;
  isolation: isolate;
}
@media (hover: hover) and (pointer: fine) { .nbtn:hover { transform: translateY(-3px); filter: brightness(1.2); } }
.nbtn svg { width: 1.2em; height: 1.2em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; filter: drop-shadow(0 0 4px currentColor); transition: translate 0.25s; }
@media (hover: hover) and (pointer: fine) { .nbtn:hover svg { translate: 3px -2px; } }
.nbtn--rainbow { color: #fdffb0; text-shadow: var(--yellow-lit); }
.nbtn--rainbow::before,
.nbtn--rainbow::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 3px;
  background: linear-gradient(90deg, #b55cff, #1f8bff, #00f5d4, #f6ff00, #ff8a00, #ff2d55, #b55cff) 0 0 / 200% 100%;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: nRainbow 4s linear infinite;
  pointer-events: none;
}
.nbtn--rainbow::after { z-index: -1; filter: blur(10px); opacity: 0.85; padding: 5px; }
@keyframes nRainbow { to { background-position: 200% 0; } }
.nbtn--blue { color: #dff7ff; border: 2px solid #00c8ff; box-shadow: 0 0 12px rgba(0, 200, 255, 0.7), inset 0 0 12px rgba(0, 200, 255, 0.35); text-shadow: 0 0 8px rgba(0, 200, 255, 0.9); }

.nhero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 0; padding: 0; list-style: none; justify-content: center; }
@media (min-width: 960px) { .nhero-badges { justify-content: flex-start; } }
.nhero-badges li {
  padding: 0.45em 1.05em;
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(8, 3, 40, 0.25);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.88);
  opacity: 0;
}
.nhero-badges b { margin: 0 0.15em; font-family: var(--font-en); font-size: 1.25em; color: #f6ff00; text-shadow: 0 0 8px rgba(246, 255, 0, 0.8); }
body.is-ready .nhero-badges li { animation: nFadeUp 0.7s var(--bounce) forwards; }
body.is-ready .nhero-badges li:nth-child(1) { animation-delay: 4.9s; }
body.is-ready .nhero-badges li:nth-child(2) { animation-delay: 5.02s; }
body.is-ready .nhero-badges li:nth-child(3) { animation-delay: 5.14s; }

.nhero-scroll {
  position: absolute;
  left: 50%;
  bottom: 20px;
  z-index: 3;
  translate: -50% 0;
  display: grid;
  justify-items: center;
  gap: 8px;
  font-family: var(--font-en);
  font-weight: 900;
  font-size: 0.66rem;
  letter-spacing: 0.4em;
  color: rgba(255, 255, 255, 0.75);
  opacity: 0;
}
.nhero-scroll::after {
  content: "";
  width: 2px;
  height: 46px;
  background: linear-gradient(180deg, #ff2d95 0 30%, rgba(255, 255, 255, 0.15) 30%) 0 -46px / 100% 200% no-repeat;
  box-shadow: 0 0 8px rgba(255, 45, 149, 0.8);
  animation: nScroll 1.8s ease-in-out infinite;
}
body.is-ready .nhero-scroll { animation: nFadeUp 1s ease 5.4s forwards; }
@keyframes nScroll { to { background-position: 0 46px; } }

.trail.trail--neon { border-radius: 50%; background: var(--c); box-shadow: 0 0 10px var(--c), 0 0 20px var(--c); }

@media (max-width: 959px) {
  .nhero-scroll { display: none; }
  .nflora { width: 40vw; top: calc(100svh - 52vw); bottom: auto; }
  .ystar--pc { display: none; }
}
