/* ============================================================
   FUKKO Wind Orchestra — Coming Soon Page
   style.css
   ============================================================ */

/* ============================================================
   1. CSS Custom Properties (Design Tokens)
   ============================================================ */
:root {
  /* Colors */
  --bg:          #02040a;
  --gold:        #f59e0b;
  --gold-light:  #fbbf24;
  --gold-dim:    rgba(245, 158, 11, 0.25);
  --cyan:        #06b6d4;
  --cyan-dim:    rgba(6, 182, 212, 0.25);
  --silver:      #f1f5f9;
  --silver-dim:  rgba(241, 245, 249, 0.45);
  --text-1:      #f8fafc;
  --text-2:      #cbd5e1;
  --text-3:      #475569;

  /* Fonts */
  --font-display: 'Cinzel', Georgia, serif;
  --font-sub:     'Montserrat', Arial, sans-serif;
  --font-ja:      'Noto Serif JP', '游明朝', 'Yu Mincho', serif;

  /* Glows */
  --glow-gold:   0 0 20px rgba(245, 158, 11, 0.35), 0 0 50px rgba(245, 158, 11, 0.15);
  --glow-cyan:   0 0 20px rgba(6, 182, 212, 0.35), 0 0 50px rgba(6, 182, 212, 0.15);
}

/* ============================================================
   2. Reset & Base
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  height: 100%;
}

body {
  height: 100%;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text-1);
  font-family: var(--font-ja);
  overflow-x: hidden;
  overflow-y: auto;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
}

/* ============================================================
   3. Interactive Canvas & Overlays
   ============================================================ */
/* Canvas handles all mouse events directly */
#bg-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  display: block;
  cursor: pointer;
  background: var(--bg);
  -webkit-tap-highlight-color: transparent;
}

.vignette {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: radial-gradient(
    ellipse at center,
    transparent 15%,
    rgba(2, 4, 10, 0.4) 55%,
    rgba(2, 4, 10, 0.95) 100%
  );
}

/* ============================================================
   4. Interactive Staff Lines (SVG Overlays)
   ============================================================ */
.strings-container {
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.strings-svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}

.interactive-string {
  transition: stroke 0.4s ease;
  filter: drop-shadow(0 0 3px rgba(245, 158, 11, 0.1));
}

#treble-clef-text {
  filter: drop-shadow(0 0 8px rgba(245, 158, 11, 0.25));
  user-select: none;
  pointer-events: none;
}

/* ============================================================
   5. Custom Cursor & Spotlight
   ============================================================ */
#cursor-dot {
  position: fixed;
  width: 6px;
  height: 6px;
  background: var(--cyan);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  box-shadow: var(--glow-cyan);
}

#cursor-ring {
  position: fixed;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(6, 182, 212, 0.35);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width 0.22s ease, height 0.22s ease, border-color 0.22s ease;
}

#cursor-ring.clicking {
  width: 48px;
  height: 48px;
  border-color: var(--gold);
}

.spotlight {
  position: fixed;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 2;
  transform: translate(-50%, -50%);
  background: radial-gradient(
    circle,
    rgba(6, 182, 212, 0.045) 0%,
    rgba(245, 158, 11, 0.02) 45%,
    transparent 70%
  );
  will-change: transform;
}

/* ============================================================
   6. Mouse Follow Note Indicator (Pitch Visualizer Guide)
   ============================================================ */
.note-indicator {
  position: fixed;
  transform: translate(24px, -50%);
  z-index: 9990;
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(2, 4, 10, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1.2px solid rgba(245, 158, 11, 0.25);
  border-radius: 6px;
  padding: 0.3rem 0.6rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  opacity: 0;
  transition: opacity 0.3s ease;
  will-change: transform, opacity;
}

.note-indicator.active {
  opacity: 1;
}

.note-name {
  font-family: var(--font-ja);
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--gold-light);
  letter-spacing: 0.05em;
  text-shadow: 0 0 6px rgba(245, 158, 11, 0.3);
}

.note-pitch {
  font-family: var(--font-sub);
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--silver-dim);
}

/* ============================================================
   7. Page Layout Container (Purely Overlay)
   ============================================================ */
.page-container {
  position: relative;
  min-height: 100dvh;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
  padding: 2.5rem 1rem 4rem 1rem;
}

.main-content {
  width: 100%;
  max-width: 900px;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.content-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.4rem;
  max-width: 780px;
  text-align: center;
  opacity: 0; /* GSAP */
}

/* ============================================================
   8. Typography & Badges
   ============================================================ */
.renewal-badge {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 75%;
  max-width: 440px;
}

.renewal-badge__text {
  font-family: var(--font-sub);
  font-size: clamp(0.6rem, 1vw, 0.72rem);
  font-weight: 600;
  letter-spacing: 0.35em;
  color: var(--cyan);
  white-space: nowrap;
  text-shadow: var(--glow-cyan);
}

.renewal-badge__line {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(6, 182, 212, 0.4), transparent);
}

.school-name__main {
  font-family: var(--font-ja);
  font-size: clamp(0.85rem, 1.4vw, 0.95rem);
  font-weight: 300;
  letter-spacing: 0.3em;
  color: var(--text-1);
}

.school-name__sub {
  font-family: var(--font-sub);
  font-size: clamp(0.65rem, 1.1vw, 0.8rem);
  font-weight: 300;
  letter-spacing: 0.16em;
  color: var(--text-2);
}

.school-name__sub::before {
  content: "(";
}

.school-name__sub::after {
  content: ")";
}

.band-name {
  font-family: var(--font-display);
  user-select: none;
}

.band-name__fukko {
  display: block;
  font-size: clamp(4.5rem, 11vw, 9.5rem);
  font-weight: 900;
  color: var(--gold);
  letter-spacing: 0.05em;
  text-shadow: var(--glow-gold);
}

.band-name__sub {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.5em;
  margin-top: -0.1em;
}

.band-name__wind {
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  font-weight: 400;
  color: var(--silver);
  letter-spacing: 0.22em;
}

.band-name__orchestra {
  font-size: clamp(1.5rem, 3.6vw, 3rem);
  font-weight: 400;
  color: var(--silver-dim);
  letter-spacing: 0.16em;
}

.coming-soon-text {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.cs-ja {
  font-family: var(--font-ja);
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  font-weight: 400;
  letter-spacing: 0.3em;
  color: var(--gold-light);
}

.cs-sep {
  color: var(--silver-dim);
}

.cs-en {
  font-family: var(--font-sub);
  font-size: clamp(0.85rem, 1.8vw, 1.1rem);
  font-weight: 300;
  letter-spacing: 0.2em;
  color: var(--silver-dim);
}

.subtext {
  font-family: var(--font-ja);
  font-size: clamp(0.7rem, 1.1vw, 0.82rem);
  font-weight: 300;
  line-height: 1.8;
  letter-spacing: 0.16em;
  color: var(--text-2);
  max-width: 580px;
  background: rgba(2, 4, 10, 0.55);
  padding: 0.9rem 1.4rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* Event Notice Card (Vertical Layout) */
.event-notice {
  margin-top: 0.8rem;
  padding: 1.2rem 1.4rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 16px;
  backdrop-filter: blur(12px);
  max-width: 580px;
  width: 100%;
  text-align: center;
  pointer-events: auto !important;
  user-select: text !important;
  -webkit-user-select: text !important;
}

.event-title {
  font-family: var(--font-ja);
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: var(--text-1);
}

.event-details {
  display: flex;
  flex-direction: column;
  gap: 1.2rem; /* 項目間の余白を調整 */
  margin: 0 auto 1.8rem;
}

.detail-row {
  display: flex;
  flex-direction: column; /* 縦並びに変更 */
  align-items: center;    /* 中央揃え */
  gap: 0.2rem;
}

.detail-row dt {
  font-family: var(--font-sub);
  font-size: 0.7rem;
  color: var(--gold); /* ゴールドを適用して強調 */
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.detail-row dd {
  font-family: var(--font-sub);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-1);
  margin-left: 0;
}

.event-cheer {
  font-family: var(--font-ja);
  font-size: 0.85rem;
  color: var(--text-2);
  line-height: 1.6;
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 1rem;
}

/* ============================================================
   9. Footer
   ============================================================ */
.site-footer {
  position: relative;
  margin-top: 2rem;
  z-index: 10;
  pointer-events: none;
  text-align: center;
}

.site-footer p {
  font-family: var(--font-sub);
  font-size: 0.6rem;
  font-weight: 300;
  letter-spacing: 0.15em;
  color: var(--text-3);
}

/* ============================================================
   10. Click波紋エフェクト
   ============================================================ */
.visual-click-splash {
  position: fixed;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
  transform: translate(-50%, -50%) scale(0);
  pointer-events: none;
  z-index: 4;
  animation: splash-expand 1.5s cubic-bezier(0.1, 0.8, 0.2, 1) forwards;
  background: radial-gradient(circle, rgba(245,158,11,0.08) 0%, transparent 70%);
}

@keyframes splash-expand {
  0% {
    width: 0;
    height: 0;
    opacity: 0.85;
    border-color: var(--gold);
  }
  50% {
    border-color: var(--cyan);
  }
  100% {
    width: 350px;
    height: 350px;
    opacity: 0;
    transform: translate(-50%, -50%) scale(1);
  }
}

/* ============================================================
   11. Responsive Overrides
   ============================================================ */
@media (max-width: 768px) {
  .band-name__sub {
    flex-direction: column;
    gap: 0;
    align-items: center;
  }
  .coming-soon-text {
    flex-direction: column;
    gap: 0.2rem;
  }
  .cs-sep {
    display: none;
  }
  .main-content {
    padding: 1rem;
  }
  .note-indicator {
    transform: translate(-50%, -45px); /* On mobile, place it above cursor instead of side */
    left: 50% !important;
  }
}

@media (max-height: 720px) {
  .page-container {
    padding-top: 1.5rem;
    padding-bottom: 2rem;
  }
  .content-center {
    gap: 0.8rem;
  }
  .band-name__fukko {
    font-size: clamp(3.5rem, 9vw, 6rem);
  }
  .band-name__wind {
    font-size: clamp(1.8rem, 4vw, 3rem);
  }
  .band-name__orchestra {
    font-size: clamp(1.2rem, 3vw, 2rem);
  }
  .event-notice {
    padding: 1rem;
  }
  .event-details {
    gap: 0.4rem;
  }
}

.dynamic-ledger-line {
  pointer-events: none;
  animation: ledger-fade-in 0.15s ease forwards;
}

@keyframes ledger-fade-in {
  from {
    opacity: 0;
    scale: 0.9;
  }
  to {
    opacity: 0.7;
    scale: 1;
  }
}

/* 画面中央のテキストコンテナのイベントをすべて背後のキャンバスへ透過させる */
.page-container {
  pointer-events: none !important;
  user-select: none !important;
  -webkit-user-select: none !important;
}

/* フッターのコピーライトなどの選択も五線譜の邪魔をしないように無効化 */
.site-footer {
  pointer-events: none !important;
  user-select: none !important;
  -webkit-user-select: none !important;
}