/* =====================================================================
   TOP：ヒーロー（夜の月）から下は、明るいネオンポップに戻る
   ---------------------------------------------------------------------
   夜の演出はヒーローだけ。下のセクションは pop.css / neon.css の明るい色帯のまま、
   ヒーローと同じ「星・花・シャボン玉」のモチーフをアクセントとして散らす。
   各セクションは画面に入ると .is-lit が付き、星が点灯・花が咲く（night-world.js）
   ===================================================================== */

.nsec { --mx: 0; --my: 0; --sy: 0; position: relative; isolation: isolate; }
.nsec > .wrap, .nsec > .carousel, .nsec > .strip { position: relative; z-index: 2; }
.nsec .sparkles { display: none; }

/* ---------- 星：セクションが画面に入ったら順番に点灯 ---------- */
body.is-ready .nsec .ystar { animation: none; translate: 0 0; }
body.is-ready .nsec .ystar::after { animation: none; }
body.is-ready .nsec.is-lit .ystar { animation: yIgnite 0.9s var(--bounce) calc(0.15s + var(--k) * 0.13s) forwards; }
body.is-ready .nsec.is-lit .ystar::after { animation: yRing 0.8s ease-out calc(0.15s + var(--k) * 0.13s) forwards; }

/* 黄色い背景の上では星をピンク・ブルーに（同じ形のまま色だけ回す） */
.nsec--garden .ystar svg { filter: hue-rotate(-95deg) saturate(1.3) drop-shadow(0 0 6px rgba(255, 45, 149, 0.7)); }
.nsec--garden .ystar:nth-child(even) svg { filter: hue-rotate(140deg) saturate(1.4) drop-shadow(0 0 6px rgba(0, 200, 255, 0.7)); }
.nsec--garden .ystar svg { animation-name: yRock; }

/* ---------- 花：ギャラリーとフィナーレの左右から育つ ---------- */
.nflora--sec { width: clamp(150px, 19vw, 320px); bottom: -1%; filter: drop-shadow(0 0 12px rgba(120, 90, 255, 0.45)); transform: none; }
.nflora--sec.nflora--l { left: -1%; }
.nflora--sec.nflora--r { right: -1%; }
body.is-ready .nsec .nflora .fl,
body.is-ready .nsec .fl-head { animation: none; }
body.is-ready .nsec.is-lit .nflora .fl { animation: nGrow 1.3s var(--bounce) calc(0.3s + var(--g)) forwards, nSway var(--t) ease-in-out var(--d) infinite alternate; }
body.is-ready .nsec.is-lit .fl-head { animation: nBloom 1.1s var(--bounce) calc(0.9s + var(--g)) forwards, nBreathe var(--t2) ease-in-out calc(2s + var(--g)) infinite alternate; }
body.is-ready .nsec.is-lit .fl-head--open { animation: nBloom 1.1s var(--bounce) calc(0.9s + var(--g)) forwards, nTurn var(--t2) ease-in-out calc(2s + var(--g)) infinite alternate; }
.nsec-bubbles { z-index: 1; }
body.is-ready .nsec .nsec-bubbles { animation: none; }
body.is-ready .nsec.is-lit .nsec-bubbles { animation: nFade 2s ease 0.6s forwards; }

/* ---------- STATEMENT（写真の上）：言葉が一行ずつネオンで灯る ---------- */
.nsec--dusk p .line { color: rgba(255, 255, 255, 0.18); text-shadow: none; opacity: 1; transform: none; transition: none; }
.nsec--dusk .is-in p .line { animation: nOnLine 1s linear calc(0.3s + var(--i) * 0.32s) both; }
@keyframes nOnLine {
  0% { color: rgba(255, 255, 255, 0.18); text-shadow: none; }
  12%, 34%, 100% { color: #fff; text-shadow: 0 0 6px rgba(255, 255, 255, 0.7), 0 0 16px #ff2d95, 0 0 34px rgba(255, 45, 149, 0.55); }
  20% { color: rgba(255, 255, 255, 0.3); text-shadow: none; }
}

/* ---------- FINALE：明るいピンクの帯に、ネオンの月 ---------- */
.nfinale {
  padding: clamp(110px, 13vw, 170px) 0 clamp(150px, 16vw, 230px);
  overflow: hidden;
  text-align: center;
  color: #fff;
  background:
    radial-gradient(ellipse 45% 35% at 50% 18%, rgba(255, 255, 255, 0.28), transparent 70%),
    linear-gradient(180deg, #ff7ad9 0%, #ff2d95 55%, #ff0a78 100%);
}
.nfinale-inner { position: relative; z-index: 2; }
.nfinale-moon { display: block; width: clamp(150px, 22vw, 220px); margin: 0 auto 26px; overflow: visible; }
.nmoon .glass, .nmoon .tube, .nmoon .core { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.nmoon .glass { stroke: rgba(255, 255, 255, 0.25); stroke-width: 9; }
.nmoon .tube, .nmoon .core { stroke-dasharray: 1; stroke-dashoffset: 1; }
.nmoon .tube { stroke: #f6ff00; stroke-width: 9; }
.nmoon .core { stroke: #fff; stroke-width: 2.6; opacity: 0.85; }
.nmoon-g { filter: url(#neonGlow); transform-box: view-box; transform-origin: 300px 560px; }
.nfinale.is-lit .nmoon .moon { animation: nDraw 1.2s cubic-bezier(0.5, 0, 0.3, 1) 0.2s forwards, nMoonFill 0.8s ease 1.4s forwards; }
.nfinale.is-lit .nmoon .s1 .star { animation: nDraw 0.45s ease-out 1.3s forwards; }
.nfinale.is-lit .nmoon .s2 .star { animation: nDraw 0.4s ease-out 1.5s forwards; }
.nfinale.is-lit .nmoon-g { animation: nMoonFlash 1s ease-out 1.35s, nSwing 6s ease-in-out 2.5s infinite alternate; }
.nfinale.is-lit .nmoon .nsign-star.s1 { animation: nTwinkle 2.4s ease-in-out 2.2s infinite; }
.nfinale.is-lit .nmoon .nsign-star.s2 { animation: nTwinkle 2s ease-in-out 2.6s infinite; }

.nfinale .pill-label { opacity: 0; }
.nfinale.is-lit .pill-label { animation: nFadeUp 0.8s ease 1.3s forwards; }
.nfinale-title {
  margin: 22px 0 0;
  font-family: var(--font-jp);
  font-weight: 900;
  font-size: clamp(1.8rem, 4.6vw, 3.2rem);
  line-height: 1.45;
  letter-spacing: 0.06em;
  color: #fff;
  -webkit-text-stroke: 2px var(--ink);
  paint-order: stroke fill;
}
.nfinale-title .ch { display: inline-block; opacity: 0; transform: translateY(40px) scale(0.4); }
.nfinale.is-lit .nfinale-title .ch { animation: charHop 0.7s var(--bounce) calc(1.6s + var(--i) * 0.045s) both; }
.nfinale-lead { margin: 22px auto 0; max-width: 34em; font-weight: 700; line-height: 2; opacity: 0; }
.nfinale-cta { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; margin-top: 34px; opacity: 0; }
.nfinale-note { margin-top: 26px; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; color: rgba(255, 255, 255, 0.85); opacity: 0; }
.nfinale.is-lit .nfinale-lead { animation: nFadeUp 0.9s ease 2.4s forwards; }
.nfinale.is-lit .nfinale-cta { animation: nFadeUp 0.9s var(--bounce) 2.7s forwards; }
.nfinale.is-lit .nfinale-note { animation: nFadeUp 0.9s ease 3s forwards; }

@media (max-width: 959px) {
  .nflora--sec { width: 30vw; }
  .nfinale .nflora--sec { width: 34vw; }
}

/* POINT：6枚を 3×2（PC）／2×3（タブレット）できれいに揃える */
@media (min-width: 600px) {
  .nsec--signs .glass-grid { grid-template-columns: repeat(2, 1fr); max-width: 760px; margin-inline: auto; }
}
@media (min-width: 960px) {
  .nsec--signs .glass-grid { grid-template-columns: repeat(3, 1fr); max-width: 1000px; gap: 24px; }
}
/* 2段目は色をずらして、縦に同じ色が並ばないように */
.nsec--signs .glass:nth-child(4) { border-color: var(--neon-yellow); box-shadow: 0 0 14px rgba(246, 255, 0, 0.7), inset 0 0 14px rgba(246, 255, 0, 0.3); }
.nsec--signs .glass:nth-child(5) { border-color: var(--neon-pink); box-shadow: 0 0 14px rgba(255, 45, 149, 0.75), inset 0 0 14px rgba(255, 45, 149, 0.35); }
.nsec--signs .glass:nth-child(6) { border-color: var(--neon-blue); box-shadow: 0 0 14px rgba(0, 200, 255, 0.7), inset 0 0 14px rgba(0, 200, 255, 0.35); }
