/* イントロ・マーキー・リビール・粒子の演出状態を担当するCSS。
   毎フレーム変化する値はtransformとopacityだけに限定する。 */
.intro-overlay {
  display: none;
}

.js.intro-active .intro-overlay {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--color-surface);
  color: var(--color-purple);
}

.intro-lockup {
  position: relative;
  z-index: 2;
  text-align: center;
  opacity: 0;
  transform: translateY(10px);
  animation: intro-lockup .58s var(--ease-out) .18s forwards;
}

.intro-mark {
  margin-inline: auto;
  filter: drop-shadow(0 0 14px rgba(177, 140, 255, .72));
}

.intro-lockup p {
  margin-top: 12px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .24em;
}

.intro-lockup small {
  display: block;
  margin-top: 5px;
  color: var(--color-muted);
  font-size: 9px;
  letter-spacing: .2em;
}

.intro-flake {
  position: absolute;
  top: -12%;
  color: var(--color-cyan);
  font-size: 24px;
  opacity: 0;
  text-shadow: 0 0 16px rgba(127, 216, 240, .82);
  animation: intro-flake .68s ease-in forwards;
}

.intro-flake-one {
  left: 25%;
  animation-delay: .02s;
}

.intro-flake-two {
  left: 51%;
  animation-delay: .1s;
}

.intro-flake-three {
  left: 76%;
  animation-delay: .05s;
}

@keyframes intro-flake {
  0% { opacity: 0; transform: translate3d(0, 0, 0) rotate(0); }
  16% { opacity: 1; }
  100% { opacity: 0; transform: translate3d(22px, 72vh, 0) rotate(130deg); }
}

@keyframes intro-lockup {
  to { opacity: 1; transform: translateY(0); }
}

.js.intro-active .hero-intro-item {
  opacity: 0;
  transform: translateY(18px);
}

.hero-title-line {
  display: block !important;
  overflow: hidden;
}

.hero-title-line-inner {
  display: block;
}

.snow-canvas {
  position: absolute;
  z-index: 1;
  inset: 0;
  /* canvasの描画バッファをヒーロー表示領域へ一致させる内在サイズ制御。 */
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.outro-snow-canvas {
  z-index: 3;
}

.image-reveal {
  position: relative;
  overflow: hidden;
}

.image-curtain {
  position: absolute;
  z-index: 2;
  inset: 0;
  background: var(--color-surface);
  transform: translateX(0);
  transform-origin: right center;
}

.js.motion-ready [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
}

.js.motion-ready .schedule-card {
  opacity: .22;
  transform: translateY(18px) scale(.985);
}

.marquee {
  overflow: hidden;
  border-block: 1px solid var(--color-line);
  background: var(--color-surface);
}

.marquee-track,
.marquee-group {
  display: flex;
  align-items: center;
}

.marquee-track {
  /* 継ぎ目のない横ループで内容幅を保持する装飾トラック。 */
  width: max-content;
  will-change: transform;
}

.marquee-group {
  flex: 0 0 auto;
  gap: 30px;
  padding: 19px 15px;
}

.marquee-group span {
  color: var(--color-text);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .2em;
  white-space: nowrap;
}

.marquee-group i {
  color: var(--color-purple);
  font-size: 16px;
  font-style: normal;
}

.link-card::after,
.song-image::after {
  position: absolute;
  z-index: 3;
  top: -45%;
  left: -50%;
  /* 画像とカードを横断する光帯の比率を保つ装飾固有寸法。 */
  width: 42%;
  height: 190%;
  background: linear-gradient(112deg, transparent 0%, transparent 24%, rgba(127, 216, 240, .06) 34%, rgba(177, 140, 255, .14) 42%, rgba(255, 255, 255, .58) 49%, rgba(255, 255, 255, .76) 52%, rgba(255, 182, 213, .12) 60%, transparent 76%, transparent 100%);
  content: "";
  opacity: 0;
  transform: translateX(0) skewX(-12deg);
  transition: transform .6s var(--ease-out), opacity .24s ease;
}

.link-card::after {
  z-index: 1;
}

.song-image picture {
  transform: scale(1);
  transition: transform .6s var(--ease-out);
}

.link-card > .link-label,
.link-card > strong,
.link-card > span:last-child {
  position: relative;
  z-index: 2;
}

.shine-snow {
  position: absolute;
  z-index: 4;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.shine-snow i {
  position: absolute;
  color: rgba(255, 255, 255, .96);
  font-size: 14px;
  font-style: normal;
  line-height: 1;
  opacity: 0;
  text-shadow: 0 0 8px rgba(255, 255, 255, .96), 0 0 16px rgba(127, 216, 240, .78);
  transform: translateY(8px) rotate(-16deg) scale(.55);
  transition: opacity .24s ease, transform .6s var(--ease-out);
}

.shine-snow i:nth-child(1) {
  top: 20%;
  left: 19%;
}

.shine-snow i:nth-child(2) {
  top: 57%;
  left: 53%;
  color: rgba(255, 227, 244, .98);
  font-size: 11px;
}

.shine-snow i:nth-child(3) {
  top: 29%;
  right: 17%;
  font-size: 10px;
}

.penlight-console::before {
  position: absolute;
  z-index: 0;
  top: 0;
  bottom: 0;
  left: -100%;
  /* 3周期分の装飾トラックを確保し、transformだけで継ぎ目なく循環させる。 */
  width: 300%;
  background: repeating-linear-gradient(90deg, var(--color-cyan) 0, var(--color-purple) 11.111%, var(--color-pink) 22.222%, var(--color-cyan) 33.333%);
  content: "";
  animation: penlight-border-cycle 8s linear infinite;
}

.penlight-console::after {
  position: absolute;
  z-index: 1;
  inset: 1px;
  background: linear-gradient(152deg, #29304a, #171d35 62%, #10162d);
  content: "";
}

.penlight-console > * {
  position: relative;
  z-index: 2;
}

@keyframes penlight-border-cycle {
  to { transform: translateX(-33.333%); }
}

.penlight-beams {
  position: absolute;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.penlight-beam {
  position: absolute;
  bottom: -112px;
  left: var(--beam-left);
  opacity: 0;
  transition: opacity var(--transition-ui);
}

.penlight-beam.is-live {
  opacity: .76;
}

.penlight-beam-core {
  display: block;
  /* 事前描画した3色ビームの縦横比を保つ装飾固有寸法。 */
  width: clamp(96px, 11vw, 164px);
  aspect-ratio: 250 / 1167;
  background-repeat: no-repeat;
  background-size: 300% 100%;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 12%, #000 86%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 12%, #000 86%, transparent 100%);
  mix-blend-mode: screen;
  transform-origin: 50% 100%;
  animation: penlight-beam-sway var(--beam-duration) ease-in-out infinite alternate;
}

.penlight-beam-cyan .penlight-beam-core {
  background-position: left center;
}

.penlight-beam-purple .penlight-beam-core {
  background-position: center;
}

.penlight-beam-pink .penlight-beam-core {
  background-position: right center;
}

@keyframes penlight-beam-sway {
  from { transform: translateX(-50%) rotate(var(--beam-start)) scaleY(.98); }
  to { transform: translateX(-50%) rotate(var(--beam-end)) scaleY(1.025); }
}

.penlight-section:not(.is-penlight-visible) .penlight-beam-core {
  animation-play-state: paused;
}

.penlight-section:not(.is-penlight-visible) .penlight-console::before {
  animation-play-state: paused;
}

.penlight-crowd {
  --crowd-ambient-opacity: 0;
  position: absolute;
  z-index: 0;
  top: 28%;
  right: 8%;
  bottom: 0;
  left: 8%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 11%, #000 89%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, #000 11%, #000 89%, transparent 100%);
  pointer-events: none;
}

.penlight-crowd::before {
  position: absolute;
  inset: 12% 6% -24%;
  background: radial-gradient(ellipse at center bottom, rgba(255, 182, 213, .34) 0, rgba(177, 140, 255, .24) 30%, rgba(127, 216, 240, .12) 52%, transparent 74%);
  content: "";
  opacity: var(--crowd-ambient-opacity);
  transition: opacity .6s var(--ease-out);
}

.penlight-crowd-light {
  position: absolute;
  z-index: var(--crowd-depth);
  bottom: var(--crowd-bottom);
  left: var(--crowd-left);
  color: var(--color-cyan);
  opacity: 0;
  transform: translateY(10px) scale(calc(var(--crowd-scale) - .2));
  transform-origin: 50% 100%;
  transition: opacity .6s var(--ease-out), transform .6s var(--ease-out);
}

.penlight-crowd-light.is-live {
  opacity: var(--crowd-light-opacity);
  transform: translateY(0) scale(var(--crowd-scale));
}

.penlight-crowd-light-cyan {
  color: var(--color-cyan);
}

.penlight-crowd-light-purple {
  color: var(--color-purple);
}

.penlight-crowd-light-pink {
  color: var(--color-pink);
}

.penlight-crowd-stick {
  position: relative;
  display: block;
  /* 観客席の発光スティックとして判別できる装飾固有寸法。 */
  width: clamp(3px, .36vw, 5px);
  aspect-ratio: 1 / 5.2;
  border-radius: 999px;
  background: linear-gradient(to top, rgba(255, 255, 255, .24) 0 15%, currentColor 18% 76%, #fff 100%);
  box-shadow: 0 0 5px currentColor, 0 0 14px currentColor;
  transform-origin: 50% 120%;
  animation: penlight-crowd-sway var(--crowd-duration) ease-in-out var(--crowd-delay) infinite alternate;
}

.penlight-crowd-stick::before {
  position: absolute;
  inset: -60% -190% -44%;
  border-radius: 50%;
  background: radial-gradient(ellipse, currentColor 0, transparent 70%);
  content: "";
  opacity: .3;
}

@keyframes penlight-crowd-sway {
  from {
    transform: translate3d(var(--crowd-shift-start), 0, 0) rotate(var(--crowd-angle-start));
  }
  to {
    transform: translate3d(var(--crowd-shift-end), -4px, 0) rotate(var(--crowd-angle-end));
  }
}

.penlight-section:not(.is-penlight-visible) .penlight-crowd-stick {
  animation-play-state: paused;
}

.snow-bunny {
  isolation: isolate;
  opacity: 0;
  transform: translateY(36px) scale(.72);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
  pointer-events: none;
}

.snow-bunny::before {
  position: absolute;
  z-index: -1;
  inset: -24px;
  background: radial-gradient(circle, rgba(255, 255, 255, .92) 0, rgba(177, 140, 255, .38) 34%, rgba(127, 216, 240, .16) 56%, transparent 74%);
  content: "";
}

.penlight-section.is-100 .snow-bunny {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.particle-layer {
  position: fixed;
  z-index: 900;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.snow-particle {
  position: absolute;
  color: var(--color-cyan);
  font-size: 26px;
  line-height: 1;
  text-shadow: 0 0 12px rgba(127, 216, 240, .86);
  transform: translate3d(0, 0, 0);
}

.snow-particle-purple {
  color: var(--color-purple);
  text-shadow: 0 0 14px rgba(177, 140, 255, .84);
}

.snow-particle-pink {
  color: var(--color-pink);
  text-shadow: 0 0 14px rgba(255, 182, 213, .82);
}

.snow-particle-celebration {
  font-size: 30px;
}
