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

:root {
  --bg:           #080810;
  --bg-alt:       #0d0d1a;
  --accent:       #c9933a;
  --accent-light: #f0d89a;
  --text:         #e8e0d0;
  --text-muted:   #9a9080;
  --border:       rgba(201, 147, 58, 0.22);
  --font-ja:      'Hina Mincho', serif;
  --font-en:      'Lugrasimo', cursive;
  --max-w:        1100px;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ja);
  line-height: 1.8;
}

img {
  display: block;
  max-width: 100%;
}

/* ============================================================
   Ambient background (unified night tone)
   ============================================================ */
body::before {
  content: '';
  position: fixed;
  inset: -20%;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(45% 40% at 18% 22%, rgba(201, 147, 58, 0.10), transparent 70%),
    radial-gradient(50% 45% at 82% 58%, rgba(96, 76, 158, 0.12), transparent 70%),
    radial-gradient(60% 50% at 50% 96%, rgba(201, 147, 58, 0.07), transparent 70%);
  animation: ambientDrift 42s ease-in-out infinite alternate;
}

@keyframes ambientDrift {
  from { transform: translate3d(-2%, -1%, 0) scale(1); }
  to   { transform: translate3d(2%, 2%, 0) scale(1.06); }
}

.fireflies {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  pointer-events: none;
  mix-blend-mode: screen;
}

@media (prefers-reduced-motion: reduce) {
  body::before { animation: none; }
  .fireflies { display: none; }
}

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding: 20px 32px;
  background: linear-gradient(to bottom, rgba(8,8,16,0.75) 0%, transparent 100%);
  backdrop-filter: blur(2px);
}

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

.header-logo img {
  height: 32px;
  opacity: 0.85;
}

.header-nav {
  display: flex;
  gap: 36px;
}

.header-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  transition: color 0.3s;
}

.header-nav a:hover {
  color: var(--accent-light);
}

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

.hero-slides {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  animation: slideShow 36s infinite;
  transform: scale(1.05);
}

.hero-slide:nth-child(1) { animation-delay:  0s; }
.hero-slide:nth-child(2) { animation-delay:  6s; }
.hero-slide:nth-child(3) { animation-delay: 12s; }
.hero-slide:nth-child(4) { animation-delay: 18s; }
.hero-slide:nth-child(5) { animation-delay: 24s; }
.hero-slide:nth-child(6) { animation-delay: 30s; }

@keyframes slideShow {
  0%   { opacity: 0;   transform: scale(1.05); }
  5%   { opacity: 1;   transform: scale(1.05); }
  15%  { opacity: 1;   transform: scale(1.10); }
  20%  { opacity: 0;   transform: scale(1.10); }
  100% { opacity: 0; }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center,
    rgba(8,8,16,0.35) 0%,
    rgba(8,8,16,0.80) 70%,
    rgba(8,8,16,0.95) 100%
  );
}

.hero-content {
  position: relative;
  text-align: center;
  padding: 0 24px;
}

.hero-eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.4em;
  color: var(--accent);
  margin-bottom: 20px;
}

.hero-logo {
  width: 24vw;
  height: auto;
  margin: 0 auto 16px;
  opacity: 0.92;
}

.hero-year {
  font-family: var(--font-en);
  font-size: clamp(0.9rem, 1.8vw, 1.1rem);
  color: var(--accent);
  letter-spacing: 0.6em;
  margin-bottom: 24px;
}

.hero-copy {
  font-size: clamp(0.95rem, 2vw, 1.2rem);
  letter-spacing: 0.25em;
  color: var(--accent-light);
  margin-bottom: 10px;
}

.hero-date {
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.12em;
  margin-bottom: 44px;
}

.hero-scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 0.65rem;
  letter-spacing: 0.25em;
}

.hero-scroll-line {
  width: 1px;
  height: 44px;
  background: linear-gradient(to bottom, var(--text-muted), transparent);
  animation: scrollLine 2.2s ease-in-out infinite;
}

@keyframes scrollLine {
  0%   { opacity: 0; transform: scaleY(0); transform-origin: top; }
  40%  { opacity: 1; transform: scaleY(1); transform-origin: top; }
  100% { opacity: 0; transform: scaleY(1); transform-origin: bottom; }
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-block;
  padding: 14px 52px;
  font-family: var(--font-ja);
  font-size: 1rem;
  letter-spacing: 0.2em;
  text-decoration: none;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: color 0.3s;
}

.btn-primary {
  background: transparent;
  color: var(--accent-light);
  border: 1px solid var(--accent);
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: translateX(-101%);
  transition: transform 0.35s ease;
  z-index: -1;
}

.btn-primary:hover {
  color: var(--bg);
}

.btn-primary:hover::before {
  transform: translateX(0);
}

.btn--full {
  width: 100%;
  text-align: center;
}

/* ============================================================
   Section common
   ============================================================ */
.section {
  padding: 132px 24px;
}

/* Sections share the single ambient tone (no alternating fill) */
.section--dark {
  background: transparent;
}

/* ------------------------------------------------------------
   Parallax section: background stays fixed to the viewport,
   only the content scrolls. Edges melt into the night tone.
   ------------------------------------------------------------ */
.parallax {
  position: relative;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.parallax::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, var(--bg) 0%, transparent 25%, transparent 75%, var(--bg) 100%),
    rgba(8, 8, 16, 0.72);
}

.parallax .container {
  position: relative;
  z-index: 1;
}

/* iOS Safari does not support fixed attachment */
@supports (-webkit-touch-callout: none) {
  .parallax { background-attachment: scroll; }
}

.section-lead {
  text-align: center;
  max-width: 580px;
  margin: 0 auto 60px;
  color: var(--text);
  line-height: 2.2;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
}

.container {
  max-width: var(--max-w);
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 72px;
  position: relative;
}

.section-header::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(640px, 92vw);
  height: 240px;
  transform: translate(-50%, -50%);
  background: radial-gradient(50% 50% at 50% 50%, rgba(201, 147, 58, 0.09), transparent 70%);
  pointer-events: none;
}

.section-label {
  font-family: var(--font-en);
  font-size: 0.7rem;
  letter-spacing: 0.45em;
  color: var(--accent);
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 400;
  letter-spacing: 0.35em;
  color: var(--text);
}

/* ============================================================
   About
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-lead {
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  line-height: 2.2;
  color: var(--accent-light);
  margin-bottom: 28px;
}

.about-text p:not(.about-lead) {
  color: var(--text-muted);
  line-height: 2.1;
  font-size: 0.95rem;
}

.about-images {
  position: relative;
  padding-bottom: 40px;
}

.about-img--main {
  width: 85%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.about-img--sub {
  width: 48%;
  aspect-ratio: 1;
  object-fit: cover;
  position: absolute;
  bottom: 0;
  right: 0;
  border: 5px solid var(--bg);
}

/* ============================================================
   Overview
   ============================================================ */
.overview-list {
  max-width: 640px;
  margin: 0 auto;
}

.overview-item {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}

.overview-item:first-child {
  border-top: 1px solid var(--border);
}

.overview-item dt {
  color: var(--accent);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  padding-top: 2px;
}

.overview-item dd {
  color: var(--text);
  line-height: 1.9;
}

.overview-item dd small {
  color: var(--text-muted);
  font-size: 0.82rem;
  display: block;
}

/* ============================================================
   Concept
   ============================================================ */
.concept-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}

.concept-item {
  text-align: center;
}

.concept-img-wrap {
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  margin-bottom: 28px;
}

.concept-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(25%) brightness(0.75);
  transition: transform 0.7s ease, filter 0.5s ease;
}

.concept-item:hover .concept-img-wrap img {
  transform: scale(1.06);
  filter: grayscale(0%) brightness(0.85);
}

.concept-item h3 {
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  color: var(--accent-light);
  margin-bottom: 14px;
}

.concept-item p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 2;
}

/* ============================================================
   Contents
   ============================================================ */
.contents-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px;
}

.content-card {
  background: rgba(13, 13, 26, 0.55);
  border: 1px solid var(--border);
  padding: 36px 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  transition: border-color 0.3s;
}

.content-card:hover {
  border-color: rgba(201, 147, 58, 0.5);
}

.content-card__name {
  font-size: 1rem;
  letter-spacing: 0.18em;
}

.badge {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 4px 12px;
}

/* ============================================================
   Roster (stage performers / marche vendors, built from CSV)
   ============================================================ */
.roster-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: start;
}

.roster-card {
  background: rgba(13, 13, 26, 0.55);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: border-color 0.3s;
}

.roster-card:hover {
  border-color: rgba(201, 147, 58, 0.5);
}

.roster-photo {
  aspect-ratio: 4/3;
  overflow: hidden;
}

.roster-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.85);
}

.roster-body {
  padding: 24px 22px 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}

.roster-genre {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: var(--accent);
}

.roster-name {
  font-size: 1.02rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: var(--accent-light);
}

.roster-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.9;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.roster-card.is-expanded .roster-desc {
  display: block;
  overflow: visible;
}

.roster-more {
  background: none;
  border: none;
  padding: 0;
  color: var(--accent);
  font-family: var(--font-ja);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  cursor: pointer;
}

.roster-more:hover {
  color: var(--accent-light);
}

.roster-link {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--accent);
  text-decoration: none;
}

.roster-link:hover {
  color: var(--accent-light);
}

/* ============================================================
   Guest
   ============================================================ */
.guest-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  max-width: 880px;
  margin: 0 auto;
}

.guest-card {
  text-align: center;
}

.guest-photo {
  width: min(150px, 100%);
  aspect-ratio: 1;
  margin: 0 auto 18px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(13, 13, 26, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-en);
  font-size: 1.4rem;
  color: var(--text-muted);
}

.guest-name {
  font-family: var(--font-en);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: var(--text-muted);
}

/* ============================================================
   Staff Recruit
   ============================================================ */
.staff-closed {
  text-align: center;
  color: var(--text-muted);
  line-height: 2.4;
  font-size: 0.95rem;
  letter-spacing: 0.1em;
}

.staff-intro {
  text-align: center;
  max-width: 580px;
  margin: 0 auto 60px;
  color: var(--text-muted);
  line-height: 2.1;
  font-size: 0.95rem;
}

.positions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 60px;
}

.position-card {
  background: rgba(13, 13, 26, 0.55);
  border: 1px solid var(--border);
  padding: 44px 28px;
  text-align: center;
  transition: border-color 0.3s;
}

.position-card:hover {
  border-color: var(--accent);
}

.position-label {
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  color: var(--accent);
  margin-bottom: 10px;
}

.position-title {
  font-size: 1.1rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  color: var(--accent-light);
  margin-bottom: 20px;
}

.position-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.9;
}

.staff-cta {
  text-align: center;
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: transparent;
  border-top: 1px solid var(--border);
  padding: 72px 24px;
  text-align: center;
}

.footer-logo {
  height: 36px;
  margin: 0 auto 20px;
  opacity: 0.55;
}

.footer-name {
  font-size: 0.82rem;
  letter-spacing: 0.22em;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 36px;
  margin-bottom: 36px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--accent-light);
}

.footer-copy {
  font-size: 0.7rem;
  color: var(--text-muted);
  opacity: 0.45;
}

/* ============================================================
   Fixed CTA
   ============================================================ */
.fixed-cta {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 90;
}

.fixed-cta__btn {
  padding: 16px 48px;
  font-size: 0.9rem;
  letter-spacing: 0.22em;
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
  box-shadow: 0 4px 32px rgba(201, 147, 58, 0.35);
  white-space: nowrap;
}

.fixed-cta__btn::before {
  background: var(--accent-light);
}

.fixed-cta__btn:hover {
  color: var(--bg);
}

@media (max-width: 768px) {
  .fixed-cta {
    bottom: 20px;
    width: calc(100% - 40px);
    left: 20px;
    transform: none;
  }

  .fixed-cta__btn {
    width: 100%;
    text-align: center;
  }
}

/* ============================================================
   Modal
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8,8,16,0.92);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.modal-overlay.is-open {
  opacity: 1;
  pointer-events: all;
}

.modal {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  padding: 52px 44px;
  width: 100%;
  max-width: 560px;
  max-height: 90svh;
  overflow-y: auto;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.6rem;
  cursor: pointer;
  transition: color 0.3s;
  line-height: 1;
}

.modal-close:hover {
  color: var(--text);
}

.modal-title {
  font-size: 1.2rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-align: center;
  color: var(--accent-light);
  margin-bottom: 44px;
}

/* ============================================================
   Form
   ============================================================ */
.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.required {
  color: var(--accent);
  font-size: 0.72rem;
  margin-left: 4px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--font-ja);
  font-size: 1rem;
  padding: 12px 16px;
  outline: none;
  appearance: none;
  transition: border-color 0.3s;
  border-radius: 0;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(154,144,128,0.5);
}

.form-group select option {
  background: var(--bg-alt);
  color: var(--text);
}

.form-note {
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 18px;
}

.form-success,
.form-error {
  text-align: center;
  padding: 48px 0;
  line-height: 2.2;
}

.form-success { color: var(--accent-light); }
.form-error   { color: #d97070; }

/* ============================================================
   Scroll animation
   ============================================================ */
.fade-up {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.85s ease, transform 0.85s ease;
}

.fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  .roster-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .concept-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
    gap: 36px;
  }

  .positions-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto 60px;
  }
}

@media (max-width: 768px) {
  .section { padding: 96px 20px; }

  .hero-logo { width: 40vw; }

  .header-nav { display: none; }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-images { display: none; }

  .overview-item {
    grid-template-columns: 84px 1fr;
    gap: 16px;
    padding: 20px 0;
  }

  .modal {
    padding: 36px 20px;
  }

  .contents-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .guest-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }

  .roster-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }
}

@media (max-width: 400px) {
  .contents-grid {
    grid-template-columns: 1fr;
  }
}
