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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Shippori Mincho', 'Hiragino Mincho ProN', 'Yu Mincho', serif;
  color: #3d4f5f;
  background: #edf1f6;
  line-height: 1.8;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.container {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ================================
   Header
   ================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 14px 0;
  transition: background 0.3s, box-shadow 0.3s;
}

.header.scrolled {
  background: rgba(237, 241, 246, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 16px rgba(61, 79, 95, 0.06);
}

.header-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-logo img {
  height: 30px;
  width: auto;
}

.header-nav {
  display: flex;
  gap: 32px;
  align-items: center;
}

.header-nav a {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: #3d4f5f;
  opacity: 0.7;
  transition: opacity 0.3s;
}

.header-nav a:hover {
  opacity: 1;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 28px;
  height: 20px;
  position: relative;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: #3d4f5f;
  position: absolute;
  left: 0;
  transition: all 0.3s;
}

.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.hamburger span:nth-child(3) { bottom: 0; }

.hamburger.active span:nth-child(1) {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) {
  bottom: 50%;
  transform: translateY(50%) rotate(-45deg);
}

/* ================================
   Hero
   ================================ */
.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  background: url('images/風の輪郭_ビラ表_文字なし.png') center / cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(200, 210, 228, 0.35);
}

#sand-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  transition: opacity 0.8s ease;
}

#sand-canvas.done {
  opacity: 0;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  margin-bottom: 8vh;
}

.hero-content .hero-title,
.hero-content .hero-sub,
.hero-content .hero-cta {
  opacity: 0;
  transform: translateY(12px);
}

.hero-content.revealed .hero-title {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.hero-content.revealed .hero-sub {
  opacity: 0.85;
  transform: translateY(0);
  transition: opacity 0.8s ease 0.25s, transform 0.8s ease 0.25s;
}

.hero-content.revealed .hero-cta {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s ease 0.5s, transform 0.8s ease 0.5s;
}

.hero-title {
  font-family: 'Zen Old Mincho', 'Shippori Mincho', serif;
  font-size: clamp(2.8rem, 8vw, 5rem);
  font-weight: 700;
  letter-spacing: 0.22em;
  margin-bottom: 16px;
  text-shadow: 0 2px 30px rgba(100, 120, 160, 0.4);
}

.hero-sub {
  font-size: clamp(0.8rem, 2.5vw, 1.05rem);
  font-weight: 400;
  letter-spacing: 0.18em;
  text-shadow: 0 1px 12px rgba(100, 120, 160, 0.3);
}

/* ================================
   Reserve Button
   ================================ */
.reserve-btn {
  display: inline-block;
  margin-top: 36px;
  padding: 13px 44px;
  background: #7b9aba;
  color: #fff;
  border-radius: 32px;
  font-size: 0.9rem;
  font-family: inherit;
  letter-spacing: 0.12em;
  transition: background 0.3s;
}

.reserve-btn:hover {
  background: #6688a8;
}

/* ================================
   About (あらすじ)
   ================================ */
.about {
  padding: 100px 28px 80px;
  text-align: center;
  background: #edf1f6;
}

.about-inner {
  max-width: 620px;
  margin: 0 auto;
}

.about-lead,
.about-body {
  font-size: clamp(0.9rem, 2.2vw, 1.05rem);
  line-height: 2.4;
  letter-spacing: 0.06em;
}

.about-body {
  margin-top: 20px;
}

.about-question {
  margin-top: 36px;
  font-size: clamp(0.85rem, 2vw, 0.95rem);
  line-height: 2.2;
  color: #6a7f94;
}

/* ================================
   Info (公演情報)
   ================================ */
.info {
  padding: 80px 0;
  text-align: center;
  background: #f5f7fa;
}

.info-heading {
  font-family: 'Zen Old Mincho', serif;
  font-size: clamp(1.5rem, 4vw, 2rem);
  letter-spacing: 0.12em;
  margin-bottom: 32px;
}

.info-body {
  font-size: clamp(0.9rem, 2.2vw, 1.05rem);
  line-height: 2.2;
}

.info-body p {
  margin-bottom: 16px;
}

/* ================================
   Mid Visual
   ================================ */
.mid-visual {
  background: #d8e0ec;
  padding: 0;
  display: flex;
  justify-content: center;
  overflow: hidden;
}

.mid-visual img {
  width: 100%;
  max-width: 520px;
  display: block;
}

/* ================================
   Cast & Staff
   ================================ */
.cast-staff {
  padding: 90px 0 70px;
  background: #edf1f6;
}

.cs-block {
  margin-bottom: 56px;
  text-align: center;
}

.cs-heading {
  font-family: 'Zen Old Mincho', serif;
  font-size: 1.3rem;
  letter-spacing: 0.15em;
  margin-bottom: 24px;
  color: #3d4f5f;
}

.cast-names {
  font-size: 1rem;
  line-height: 2.4;
  letter-spacing: 0.12em;
}

/* Staff */
.staff-dl {
  max-width: 580px;
  margin: 0 auto;
  text-align: left;
}

.staff-row {
  display: flex;
  gap: 16px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(61, 79, 95, 0.08);
  font-size: 0.88rem;
  line-height: 1.9;
}

.staff-row dt {
  flex-shrink: 0;
  min-width: 80px;
  color: #8a9bab;
  letter-spacing: 0.06em;
  font-size: 0.82rem;
  padding-top: 1px;
}

.staff-row dd {
  color: #3d4f5f;
}

/* Thanks */
.cs-thanks {
  margin-bottom: 0;
}

.cs-sub-heading {
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  color: #8a9bab;
  margin-bottom: 14px;
  font-weight: 400;
}

.cs-thanks p {
  font-size: 0.82rem;
  line-height: 2;
  color: #8a9bab;
}

/* ================================
   Bira
   ================================ */
.bira {
  padding: 80px 0;
  background: #f5f7fa;
}

.bira-heading {
  font-family: 'Zen Old Mincho', serif;
  font-size: 1.3rem;
  letter-spacing: 0.15em;
  text-align: center;
  margin-bottom: 32px;
}

.bira-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 560px;
  margin: 0 auto;
}

.bira-card {
  position: relative;
}

.bira-label {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(123, 154, 186, 0.8);
  color: #fff;
  font-size: 0.65rem;
  padding: 3px 10px;
  border-radius: 12px;
  letter-spacing: 0.08em;
  z-index: 1;
}

.bira-img {
  border-radius: 3px;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 6px 20px rgba(61, 79, 95, 0.08);
}

.bira-img:hover {
  transform: scale(1.02);
  box-shadow: 0 10px 32px rgba(61, 79, 95, 0.14);
}

/* ================================
   Notice
   ================================ */
.notice {
  padding: 48px 0;
  background: #edf1f6;
}

.notice-heading {
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  color: #8a9bab;
  margin-bottom: 14px;
  font-weight: 600;
}

.notice p {
  font-size: 0.75rem;
  line-height: 2;
  color: #8a9bab;
  margin-bottom: 10px;
}

.notice-tags {
  font-size: 0.75rem;
  color: #8a9bab;
  opacity: 0.8;
}

/* ================================
   Footer CTA
   ================================ */
.footer-cta {
  position: relative;
  padding: 100px 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 50vh;
}

.footer-cta-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.footer-cta-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.18;
}

.footer-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, #4a6180 0%, #3a4f68 100%);
  z-index: 1;
}

.footer-cta-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
}

.footer-cta-text {
  font-size: clamp(0.9rem, 2.2vw, 1.05rem);
  line-height: 2.2;
  margin-bottom: 16px;
  opacity: 0.85;
}

.footer-cta-text:first-child {
  font-family: 'Zen Old Mincho', serif;
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  letter-spacing: 0.12em;
}

.footer-cta .reserve-btn {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.footer-cta .reserve-btn:hover {
  background: rgba(255, 255, 255, 0.35);
}

/* ================================
   Footer
   ================================ */
.footer {
  background: #2d3d4d;
  color: #ccc;
  padding: 48px 0 36px;
  text-align: center;
}

.footer-name {
  font-size: 0.95rem;
  letter-spacing: 0.15em;
  margin-bottom: 14px;
  color: #e8ecf0;
}

.footer-info {
  font-size: 0.78rem;
  line-height: 2;
  opacity: 0.5;
  margin-bottom: 20px;
}

.footer-sns {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.footer-sns a {
  font-size: 0.72rem;
  color: #ccc;
  opacity: 0.4;
  letter-spacing: 0.04em;
  transition: opacity 0.3s;
}

.footer-sns a:hover { opacity: 1; }

.footer-copy {
  font-size: 0.65rem;
  opacity: 0.2;
  letter-spacing: 0.08em;
}

/* ================================
   Mobile Nav
   ================================ */
.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(237, 241, 246, 0.97);
  backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s, visibility 0.35s;
}

.mobile-nav-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.mobile-nav a {
  font-size: 1.1rem;
  color: #3d4f5f;
  letter-spacing: 0.15em;
}

.mobile-nav-cta {
  margin-top: 8px;
  padding: 12px 40px;
  background: #7b9aba;
  color: #fff !important;
  border-radius: 28px;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
}

/* ================================
   Lightbox
   ================================ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(45, 61, 77, 0.9);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 28px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.2rem;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.3s;
}

.lightbox-close:hover { opacity: 1; }

.lightbox-img {
  max-width: 88%;
  max-height: 85vh;
}

/* ================================
   Fade-in
   ================================ */
.fade-in {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ================================
   Responsive
   ================================ */
@media (max-width: 768px) {
  .header-nav { display: none; }
  .hamburger { display: block; }

  .hero-title {
    font-size: 2.6rem;
  }

  .about {
    padding: 72px 24px 60px;
  }

  .info {
    padding: 60px 20px;
  }

  .mid-visual img {
    max-width: 100%;
  }

  .cast-staff {
    padding: 64px 0 48px;
  }

  .staff-row {
    flex-direction: column;
    gap: 2px;
  }

  .staff-row dt {
    min-width: auto;
  }

  .bira-grid {
    grid-template-columns: 1fr;
    max-width: 280px;
  }

  .reserve-btn {
    padding: 12px 36px;
    font-size: 0.85rem;
  }

  .footer-cta {
    padding: 72px 24px;
    min-height: auto;
  }
}
