/*
Theme Name: HIRAETH.Tokyo
Theme URI: https://hiraeth.tokyo
Author: Deep Session
Author URI: https://hajimari.pro
Description: Official theme for HIRAETH.Tokyo - Cyber Neon Idol Group
Version: 2.0.0
License: GNU General Public License v2 or later
Text Domain: hiraeth-tokyo
*/

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  /* Colors */
  --c-bg:          #030712;
  --c-bg2:         #060d1f;
  --c-surface:     rgba(6,18,50,0.6);
  --c-surface2:    rgba(10,30,80,0.4);
  --c-neon-cyan:   #00f5ff;
  --c-neon-purple: #bf5fff;
  --c-neon-pink:   #ff2d9b;
  --c-neon-blue:   #4d9fff;
  --c-text:        #e8f4ff;
  --c-text-muted:  rgba(200,220,255,0.55);
  --c-border:      rgba(0,245,255,0.18);
  --c-border2:     rgba(191,95,255,0.2);

  /* Glow */
  --glow-cyan:   0 0 20px rgba(0,245,255,0.4), 0 0 60px rgba(0,245,255,0.15);
  --glow-purple: 0 0 20px rgba(191,95,255,0.4), 0 0 60px rgba(191,95,255,0.15);
  --glow-pink:   0 0 20px rgba(255,45,155,0.4), 0 0 60px rgba(255,45,155,0.15);

  /* Typography */
  --font-display: 'Orbitron', 'Noto Sans JP', sans-serif;
  --font-body:    'Noto Sans JP', 'Inter', sans-serif;
  --font-accent:  'Space Grotesk', sans-serif;

  /* Spacing */
  --section-pad: clamp(60px, 10vw, 120px);
  --container:   1200px;

  /* Transitions */
  --ease:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease2: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font-body);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ============================================================
   NOISE OVERLAY
   ============================================================ */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.4;
}

/* ============================================================
   GRID BACKGROUND LINES
   ============================================================ */
.grid-bg {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,245,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,245,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.05em;
}

.section-label {
  font-family: var(--font-accent);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--c-neon-cyan);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.section-label::before {
  content: '';
  display: block;
  width: 30px;
  height: 1px;
  background: var(--c-neon-cyan);
  box-shadow: var(--glow-cyan);
}

.section-title {
  font-size: clamp(2rem, 4vw, 3.5rem);
  background: linear-gradient(135deg, var(--c-neon-cyan) 0%, var(--c-neon-purple) 60%, var(--c-neon-pink) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 20px;
}

/* ============================================================
   CONTAINER
   ============================================================ */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 60px);
}

/* ============================================================
   GLASSMORPHISM CARD
   ============================================================ */
.glass {
  background: var(--c-surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--c-border);
  border-radius: 16px;
}

.glass-purple {
  background: rgba(30, 10, 60, 0.5);
  border-color: var(--c-border2);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: 4px;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  transition: all 0.3s var(--ease);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--c-neon-cyan), var(--c-neon-purple));
  color: #000;
  box-shadow: var(--glow-cyan);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(0,245,255,0.6), 0 0 80px rgba(0,245,255,0.2);
}

.btn-outline {
  background: transparent;
  color: var(--c-neon-cyan);
  border: 1px solid var(--c-neon-cyan);
}
.btn-outline:hover {
  background: rgba(0,245,255,0.1);
  box-shadow: var(--glow-cyan);
  transform: translateY(-2px);
}

/* ============================================================
   HEADER / NAVIGATION
   ============================================================ */
#site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 clamp(20px, 4vw, 60px);
  transition: background 0.4s var(--ease), border-color 0.4s;
}

#site-header.scrolled {
  background: rgba(3,7,18,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--c-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  max-width: var(--container);
  margin: 0 auto;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.site-logo img {
  height: 40px;
  width: auto;
}
.site-logo-text {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--c-neon-cyan);
  text-shadow: var(--glow-cyan);
  line-height: 1.2;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.5vw, 36px);
}

.main-nav a {
  font-family: var(--font-accent);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-text-muted);
  transition: color 0.2s;
  position: relative;
}
.main-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 100%;
  height: 1px;
  background: var(--c-neon-cyan);
  transition: right 0.3s var(--ease);
}
.main-nav a:hover { color: var(--c-neon-cyan); }
.main-nav a:hover::after { right: 0; }

.nav-social {
  display: flex;
  gap: 16px;
  align-items: center;
}
.nav-social a {
  color: var(--c-text-muted);
  font-size: 1rem;
  transition: color 0.2s, transform 0.2s;
}
.nav-social a:hover {
  color: var(--c-neon-cyan);
  transform: translateY(-2px);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--c-neon-cyan);
  transition: all 0.3s var(--ease);
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(3,7,18,0.97);
  backdrop-filter: blur(20px);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: 0.1em;
  color: var(--c-text-muted);
  transition: color 0.2s, text-shadow 0.2s;
}
.mobile-nav a:hover {
  color: var(--c-neon-cyan);
  text-shadow: var(--glow-cyan);
}

/* ============================================================
   HERO
   ============================================================ */
#hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-video-wrap video,
.hero-video-wrap iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-video-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(3,7,18,0.3) 0%,
    rgba(3,7,18,0.1) 40%,
    rgba(3,7,18,0.7) 80%,
    rgba(3,7,18,1) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 120px 20px 80px;
}

.hero-eyebrow {
  font-family: var(--font-accent);
  font-size: 0.7rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--c-neon-cyan);
  margin-bottom: 24px;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease) 0.3s forwards;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 10vw, 8rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease) 0.5s forwards;
}
.hero-title .line1 {
  display: block;
  background: linear-gradient(90deg, #fff 0%, var(--c-neon-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-title .line2 {
  display: block;
  font-size: 0.45em;
  letter-spacing: 0.5em;
  color: var(--c-neon-purple);
  -webkit-text-fill-color: var(--c-neon-purple);
  text-shadow: var(--glow-purple);
  margin-top: 8px;
}

.hero-tagline {
  font-size: clamp(0.85rem, 1.5vw, 1rem);
  color: var(--c-text-muted);
  max-width: 500px;
  margin: 24px auto 40px;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease) 0.7s forwards;
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease) 0.9s forwards;
}

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--c-text-muted);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  animation: bounce 2s ease-in-out infinite;
}
.hero-scroll::after {
  content: '';
  display: block;
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--c-neon-cyan), transparent);
}

/* Ambient glow orbs */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}
.hero-orb-1 {
  width: 500px; height: 500px;
  background: rgba(0,245,255,0.08);
  top: -100px; left: -100px;
}
.hero-orb-2 {
  width: 400px; height: 400px;
  background: rgba(191,95,255,0.1);
  bottom: 0; right: -50px;
}

/* ============================================================
   TICKER / NEWS STRIP
   ============================================================ */
.ticker-wrap {
  background: rgba(0,245,255,0.06);
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
  padding: 14px 0;
  overflow: hidden;
  position: relative;
  z-index: 1;
}
.ticker-label {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  padding: 0 20px;
  background: var(--c-neon-cyan);
  color: #000;
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  z-index: 2;
}
.ticker-track {
  display: flex;
  gap: 80px;
  animation: ticker 30s linear infinite;
  padding-left: 140px;
  white-space: nowrap;
}
.ticker-item {
  font-family: var(--font-accent);
  font-size: 0.8rem;
  color: var(--c-text-muted);
  flex-shrink: 0;
}
.ticker-item span {
  color: var(--c-neon-cyan);
  margin-right: 16px;
}

/* ============================================================
   SECTIONS — COMMON
   ============================================================ */
.section {
  padding: var(--section-pad) 0;
  position: relative;
  z-index: 1;
}

.section-header {
  margin-bottom: clamp(40px, 6vw, 80px);
}

/* ============================================================
   ABOUT / CONCEPT SECTION
   ============================================================ */
#about {
  background: radial-gradient(ellipse at 70% 50%, rgba(0,245,255,0.04) 0%, transparent 60%);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: center;
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 40px;
}
.stat-card {
  padding: 24px;
  text-align: center;
}
.stat-number {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  background: linear-gradient(135deg, var(--c-neon-cyan), var(--c-neon-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}
.stat-label {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--c-text-muted);
  margin-top: 6px;
}

.about-visual {
  position: relative;
}
.about-image-frame {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: 16px;
  overflow: hidden;
}
.about-image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.about-image-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid var(--c-border);
  border-radius: 16px;
  z-index: 2;
}
.about-deco-line {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 120px;
  height: 120px;
  border-right: 2px solid var(--c-neon-cyan);
  border-bottom: 2px solid var(--c-neon-cyan);
  box-shadow: var(--glow-cyan);
  border-radius: 0 0 8px 0;
}

/* ============================================================
   MEMBERS SECTION
   ============================================================ */
#members {
  background: radial-gradient(ellipse at 30% 50%, rgba(191,95,255,0.04) 0%, transparent 60%);
}

.members-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 24px;
}

.member-card {
  position: relative;
  cursor: pointer;
  transition: transform 0.4s var(--ease);
}
.member-card:hover { transform: translateY(-8px); }

.member-photo {
  aspect-ratio: 3/4;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  border: 1px solid var(--c-border);
}
.member-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.member-card:hover .member-photo img {
  transform: scale(1.05);
}

.member-photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--c-neon-cyan);
  background: linear-gradient(135deg, rgba(0,245,255,0.05), rgba(191,95,255,0.05));
}

.member-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(3,7,18,0.95) 0%, transparent 50%);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.member-card:hover .member-overlay { opacity: 1; }

.member-color-dot {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  box-shadow: 0 0 8px currentColor;
}

.member-info {
  padding: 14px 4px 0;
}
.member-name-jp {
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--c-text);
  margin-bottom: 2px;
}
.member-name-en {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--c-text-muted);
}
.member-catch {
  font-size: 0.75rem;
  color: var(--c-text-muted);
  margin-top: 8px;
  line-height: 1.5;
}

.member-sns {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}
.member-sns a {
  font-size: 0.8rem;
  color: var(--c-neon-cyan);
  transition: text-shadow 0.2s;
}
.member-sns a:hover { text-shadow: var(--glow-cyan); }

/* Coming soon card */
.member-card-soon .member-photo {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(6,18,50,0.8);
}
.member-card-soon .member-photo::before {
  content: '?';
  font-family: var(--font-display);
  font-size: 4rem;
  color: rgba(0,245,255,0.2);
}

/* ============================================================
   EVENT / LIVE SECTION
   ============================================================ */
#events {
  background: radial-gradient(ellipse at 50% 100%, rgba(0,245,255,0.05) 0%, transparent 60%);
}

/* Calendar embed wrapper */
.calendar-wrap {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 16px;
  overflow: hidden;
  backdrop-filter: blur(20px);
}

/* The Events Calendar style override */
.tribe-events * { font-family: var(--font-body) !important; }
.tribe-events .tribe-events-calendar td { background: transparent !important; }

/* ============================================================
   NEWS SECTION
   ============================================================ */
#news {
  background: rgba(6,18,50,0.3);
}

.news-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.news-item {
  display: grid;
  grid-template-columns: 140px auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--c-border);
  transition: background 0.2s;
}
.news-item:hover {
  background: rgba(0,245,255,0.03);
  padding-left: 12px;
  padding-right: 12px;
  margin: 0 -12px;
}

.news-date {
  font-family: var(--font-display);
  font-size: 0.75rem;
  color: var(--c-text-muted);
  letter-spacing: 0.05em;
}
.news-cat {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 2px;
  background: rgba(0,245,255,0.1);
  border: 1px solid rgba(0,245,255,0.3);
  color: var(--c-neon-cyan);
  white-space: nowrap;
}
.news-title {
  font-size: 0.9rem;
  color: var(--c-text);
  transition: color 0.2s;
}
.news-item:hover .news-title { color: var(--c-neon-cyan); }

/* ============================================================
   MEDIA / GALLERY SECTION
   ============================================================ */
#media {
  background: radial-gradient(ellipse at 70% 30%, rgba(255,45,155,0.04) 0%, transparent 60%);
}

.media-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 40px;
  background: rgba(6,18,50,0.6);
  border: 1px solid var(--c-border);
  border-radius: 8px;
  padding: 4px;
  width: fit-content;
}
.media-tab {
  padding: 10px 24px;
  border-radius: 6px;
  font-family: var(--font-accent);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-text-muted);
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  background: none;
}
.media-tab.active {
  background: rgba(0,245,255,0.15);
  color: var(--c-neon-cyan);
  border: 1px solid rgba(0,245,255,0.3);
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}
.photo-item {
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  background: rgba(6,18,50,0.5);
  border: 1px solid var(--c-border);
}
.photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease);
}
.photo-item:hover img { transform: scale(1.08); }

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
.video-item {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--c-border);
  aspect-ratio: 16/9;
}
.video-item iframe {
  width: 100%;
  height: 100%;
}

/* ============================================================
   REGULATION SECTION
   ============================================================ */
#regulation {
  background: rgba(6,18,50,0.3);
}

.regulation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.reg-card {
  padding: 32px;
}
.reg-card-title {
  font-family: var(--font-display);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  color: var(--c-neon-cyan);
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--c-border);
  display: flex;
  align-items: center;
  gap: 10px;
}
.reg-card-title::before {
  content: '';
  display: block;
  width: 4px;
  height: 18px;
  background: linear-gradient(to bottom, var(--c-neon-cyan), var(--c-neon-purple));
  border-radius: 2px;
}
.reg-card p, .reg-card li {
  font-size: 0.85rem;
  color: var(--c-text-muted);
  line-height: 1.8;
  margin-bottom: 8px;
}
.reg-card ul {
  list-style: none;
  padding: 0;
}
.reg-card li::before {
  content: '▸ ';
  color: var(--c-neon-cyan);
}
.reg-highlight {
  color: var(--c-neon-cyan) !important;
  font-weight: 600;
}
.reg-price {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--c-text);
  margin: 8px 0;
}

/* Point reward table */
.point-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
  font-size: 0.8rem;
}
.point-table th {
  background: rgba(0,245,255,0.08);
  color: var(--c-neon-cyan);
  padding: 10px 14px;
  text-align: left;
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  border-bottom: 1px solid var(--c-border);
}
.point-table td {
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  color: var(--c-text-muted);
}
.point-table tr:hover td { background: rgba(0,245,255,0.03); }

/* ============================================================
   FOOTER
   ============================================================ */
#site-footer {
  background: rgba(3,7,18,0.95);
  border-top: 1px solid var(--c-border);
  padding: 60px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer-brand .site-logo-text {
  font-size: 1.1rem;
  margin-bottom: 16px;
}
.footer-brand p {
  font-size: 0.8rem;
  color: var(--c-text-muted);
  line-height: 1.8;
  max-width: 280px;
}
.footer-social {
  display: flex;
  gap: 16px;
  margin-top: 24px;
}
.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--c-border);
  color: var(--c-text-muted);
  font-size: 0.85rem;
  transition: all 0.2s;
}
.footer-social a:hover {
  border-color: var(--c-neon-cyan);
  color: var(--c-neon-cyan);
  box-shadow: var(--glow-cyan);
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--c-neon-cyan);
  margin-bottom: 20px;
}
.footer-col ul li {
  margin-bottom: 12px;
}
.footer-col ul a {
  font-size: 0.82rem;
  color: var(--c-text-muted);
  transition: color 0.2s;
}
.footer-col ul a:hover { color: var(--c-text); }

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--c-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p {
  font-size: 0.72rem;
  color: var(--c-text-muted);
}

/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ============================================================
   GLITCH EFFECT
   ============================================================ */
.glitch {
  position: relative;
}
.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  clip-path: polygon(0 35%, 100% 35%, 100% 55%, 0 55%);
}
.glitch::before {
  color: var(--c-neon-cyan);
  animation: glitch1 3s infinite;
  left: 2px;
}
.glitch::after {
  color: var(--c-neon-pink);
  animation: glitch2 3s infinite;
  left: -2px;
}

/* ============================================================
   KEYFRAMES
   ============================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@keyframes glitch1 {
  0%, 90%, 100% { clip-path: polygon(0 0, 100% 0, 100% 0, 0 0); transform: translate(0); }
  92% { clip-path: polygon(0 30%, 100% 30%, 100% 50%, 0 50%); transform: translate(-2px, 1px); }
  94% { clip-path: polygon(0 60%, 100% 60%, 100% 80%, 0 80%); transform: translate(2px, -1px); }
}

@keyframes glitch2 {
  0%, 90%, 100% { clip-path: polygon(0 0, 100% 0, 100% 0, 0 0); transform: translate(0); }
  93% { clip-path: polygon(0 45%, 100% 45%, 100% 65%, 0 65%); transform: translate(2px, -1px); }
  95% { clip-path: polygon(0 20%, 100% 20%, 100% 40%, 0 40%); transform: translate(-2px, 1px); }
}

@keyframes pulse-ring {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.6); opacity: 0; }
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .about-visual { display: none; }
}

@media (max-width: 768px) {
  .main-nav, .nav-social { display: none; }
  .hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .news-item { grid-template-columns: 1fr; gap: 8px; }
  .members-grid { grid-template-columns: repeat(2, 1fr); }
  .about-stats { grid-template-columns: repeat(2, 1fr); }
  .regulation-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .members-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .hero-cta { flex-direction: column; align-items: center; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================================
   PHOTO MARQUEE STRIP
   ============================================================ */
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
#photoStrip:hover { animation-play-state: paused; }

/* Member spotlight hover */
.spotlight-card:hover { transform: translateY(-6px) !important; border-color: var(--mcolor) !important; }
.spotlight-card:hover .spotlight-glow { opacity: 1 !important; }
.spotlight-card:hover .spotlight-img { transform: scale(1.04); }

/* Page hero shared */
.page-hero {
  background:
    radial-gradient(ellipse at 50% 100%, rgba(191,95,255,.06) 0%, transparent 60%),
    radial-gradient(ellipse at 20% 50%, rgba(0,245,255,.04) 0%, transparent 40%);
  border-bottom: 1px solid var(--c-border);
}

/* Featured event responsive */
@media (max-width: 768px) {
  #hero h1 { font-size: clamp(4rem, 18vw, 6rem) !important; }
  #about .container > div { grid-template-columns: 1fr !important; }
  #about .container > div > div:first-child { display: none; }
  #membersReel { grid-template-columns: repeat(2, 1fr) !important; }
  .glass[style*="grid-template-columns: 1fr 380px"] { grid-template-columns: 1fr !important; }
  .glass[style*="grid-template-columns: 1fr 380px"] > div:last-child { display: none; }
}

/* ============================================================
   MOBILE RESPONSIVE — 全ページ対応
   ============================================================ */

/* 横スクロール完全防止 */
html, body {
  overflow-x: hidden;
  max-width: 100%;
}
* { box-sizing: border-box; }

/* 固定幅の装飾orb類をスマホで隠す */
@media (max-width: 768px) {
  /* --- 共通 --- */
  .container { padding-left: 16px !important; padding-right: 16px !important; }

  /* --- ヘッダー --- */
  .site-header { padding: 0 16px !important; }

  /* --- ヒーロー --- */
  #hero > div[style*="width:600px"],
  #hero > div[style*="width:500px"] { display: none !important; }
  #hero .container,
  #hero > div[style*="z-index:2"] {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  /* --- About セクション --- */
  #about .container > div {
    grid-template-columns: 1fr !important;
  }
  #about .container > div > div:first-child { display: none !important; }
  #about .container > div > div:last-child > div[style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr 1fr !important;
  }

  /* --- メンバーグリッド --- */
  #membersReel { grid-template-columns: repeat(2, 1fr) !important; gap: 8px !important; }

  /* --- イベントセクション（HOME） --- */
  .events-grid { grid-template-columns: 1fr !important; }

  /* --- ニュースセクション --- */
  .news-item { grid-template-columns: 1fr !important; gap: 6px !important; }

  /* --- フッター --- */
  .footer-grid { grid-template-columns: 1fr !important; gap: 28px !important; }

  /* --- glassカード内の2カラムを1カラムに --- */
  .glass > div[style*="grid-template-columns:1fr 1fr"],
  .glass > div[style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }

  /* --- イベントリスト（/events/） --- */
  #view-list a[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }
  #view-list a > div:first-child { display: flex; gap: 8px; align-items: center; }

  /* --- カレンダーグリッド文字サイズ --- */
  #cal-grid > div { min-height: 56px !important; padding: 4px 3px !important; }
  #cal-grid p { font-size: .6rem !important; }
  #cal-grid div[style*="border-radius:3px"] p { font-size: .5rem !important; }

  /* --- regulation ポイントテーブル --- */
  .point-table { font-size: .75rem; }
  .point-table th, .point-table td { padding: 8px 10px !important; }

  /* --- member.php 左右交互レイアウト → 縦積み --- */
  .member-row { grid-template-columns: 1fr !important; }
  .member-row > div:first-child { display: none !important; }

  /* --- history タイムライン --- */
  .history-line { left: 0 !important; }

  /* --- discography グリッド --- */
  .disc-grid { grid-template-columns: 1fr !important; }

  /* --- section padding 縮小 --- */
  .section { padding-top: clamp(48px, 10vw, 80px) !important; padding-bottom: clamp(48px, 10vw, 80px) !important; }

  /* --- ページヒーロー --- */
  .page-hero .container { padding-top: 60px !important; padding-bottom: 40px !important; }

  /* --- ボタン --- */
  .btn { padding: 12px 20px !important; font-size: .72rem !important; }
  .hero-cta { flex-direction: column; align-items: center; gap: 10px !important; }
}

@media (max-width: 480px) {
  /* --- ヒーロー文字 --- */
  #heroLine1 { font-size: clamp(3rem, 16vw, 5rem) !important; }

  /* --- メンバーグリッド 2カラム維持 --- */
  #membersReel { grid-template-columns: repeat(2, 1fr) !important; }

  /* --- カレンダー：イベントバーのテキスト非表示（バーだけ表示） --- */
  #cal-grid div[style*="border-radius:3px"] p { display: none !important; }
  #cal-grid div[style*="border-radius:3px"] { min-height: 6px !important; padding: 3px 2px !important; }
}

/* About grid mobile */
@media (max-width: 768px) {
  .about-grid-inner {
    grid-template-columns: 1fr !important;
  }
  .about-grid-inner > div:first-child { display: none !important; }
}

/* Events list — flexboxなのでモバイル追加対応不要 */
