/* ===== FONTS ===== */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;700;900&family=Noto+Sans+JP:wght@300;400;500;700&family=Rajdhani:wght@300;400;600;700&display=swap');

/* ===== CSS VARIABLES ===== */
:root {
  --space: #020818;
  --space-mid: #0a1628;
  --space-light: #0f2040;
  --blue: #4fc3f7;
  --blue-dark: #0288d1;
  --gold: #f5c842;
  --gold-dim: #b8941e;
  --white: #e8f0fe;
  --white-dim: #a0aec0;
  --red: #ff4757;
  --glow-blue: 0 0 20px rgba(79, 195, 247, 0.4);
  --glow-gold: 0 0 20px rgba(245, 200, 66, 0.4);
  --border: rgba(79, 195, 247, 0.2);
  --card-bg: rgba(10, 22, 40, 0.8);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--space);
  color: var(--white);
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 300;
  line-height: 1.8;
  overflow-x: hidden;
}

a { color: var(--blue); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--gold); }

img { max-width: 100%; }

/* ===== STARS CANVAS ===== */
#stars-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ===== NEBULA BG ===== */
.nebula {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 50% at 20% 30%, rgba(14, 56, 120, 0.25) 0%, transparent 70%),
    radial-gradient(ellipse 50% 60% at 80% 70%, rgba(60, 20, 100, 0.2) 0%, transparent 70%),
    radial-gradient(ellipse 80% 30% at 50% 90%, rgba(0, 80, 120, 0.15) 0%, transparent 70%);
}

/* ===== LAYOUT ===== */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* ===== NAVIGATION ===== */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0;
  transition: var(--transition);
}

nav.scrolled {
  background: rgba(2, 8, 24, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 30px rgba(0,0,0,0.5);
}

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

.nav-logo {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.nav-logo .logo-en {
  font-family: 'Cinzel', serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.15em;
  text-shadow: var(--glow-gold);
}

.nav-logo .logo-jp {
  font-size: 10px;
  color: var(--white-dim);
  letter-spacing: 0.2em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 13px;
  letter-spacing: 0.15em;
  color: var(--white-dim);
  position: relative;
  padding-bottom: 4px;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 400;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: var(--transition);
}

.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { width: 100%; }

.nav-cta {
  background: linear-gradient(135deg, var(--blue-dark), var(--blue));
  color: var(--space) !important;
  font-weight: 700 !important;
  padding: 8px 20px;
  border-radius: 4px;
  font-size: 12px !important;
  letter-spacing: 0.1em;
  box-shadow: var(--glow-blue);
}

.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 0 30px rgba(79,195,247,0.6); }
.nav-cta::after { display: none !important; }

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.nav-hamburger span {
  display: block;
  width: 26px; height: 2px;
  background: var(--white);
  transition: var(--transition);
}

.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
.nav-mobile {
  display: none;
  position: fixed;
  top: 70px; left: 0; right: 0;
  background: rgba(2, 8, 24, 0.98);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  z-index: 999;
  padding: 24px;
  flex-direction: column;
  gap: 20px;
}

.nav-mobile.open { display: flex; }
.nav-mobile a { font-size: 15px; color: var(--white); letter-spacing: 0.1em; padding: 8px 0; border-bottom: 1px solid var(--border); }

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-bg-img {
  position: absolute;
  inset: 0;
  background: url('../img/hero_bg_real.jpg') center/cover no-repeat;
  opacity: 0.4;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 40%, var(--space) 100%);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 120px 24px 80px;
  max-width: 800px;
}

.hero-badge {
  display: inline-block;
  font-family: 'Rajdhani', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.4em;
  color: var(--blue);
  border: 1px solid var(--border);
  padding: 6px 16px;
  margin-bottom: 32px;
  text-transform: uppercase;
  animation: fadeInDown 0.8s ease both;
}

.hero-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(52px, 10vw, 100px);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
  animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-title .milky {
  display: block;
  background: linear-gradient(135deg, var(--white) 0%, var(--blue) 50%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
}

.hero-title .way {
  display: block;
  color: var(--gold);
  text-shadow: var(--glow-gold);
  font-size: 0.45em;
  letter-spacing: 0.5em;
  margin-top: 8px;
}

.hero-subtitle {
  font-family: 'Rajdhani', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5em;
  color: var(--white-dim);
  margin-bottom: 40px;
  text-transform: uppercase;
  animation: fadeInUp 0.8s ease 0.3s both;
}

.hero-desc {
  font-size: 15px;
  color: var(--white-dim);
  line-height: 2;
  max-width: 520px;
  margin-bottom: 48px;
  animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 0.5s both;
}

.btn {
  display: inline-block;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.15em;
  padding: 14px 32px;
  border-radius: 4px;
  transition: var(--transition);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--blue-dark), var(--blue));
  color: var(--space);
  box-shadow: var(--glow-blue);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(79,195,247,0.6);
  color: var(--space);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(245,200,66,0.05);
  transform: translateY(-2px);
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--white-dim);
  animation: bounce 2s infinite;
}

.hero-scroll::before {
  content: '';
  display: block;
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, transparent, var(--blue));
}

/* ===== SECTIONS ===== */
section { padding: 100px 0; position: relative; z-index: 1; }

.section-label {
  font-family: 'Rajdhani', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5em;
  color: var(--blue);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
  letter-spacing: 0.05em;
}

.section-title span { color: var(--gold); }

.section-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 48px;
}

.section-divider::before,
.section-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.section-divider::before { flex: 0 0 60px; }
.section-divider::after { flex: 1; max-width: 200px; }

.diamond {
  width: 6px; height: 6px;
  background: var(--gold);
  transform: rotate(45deg);
  box-shadow: var(--glow-gold);
}

/* Furigana / Reading */
.furigana {
  display: block;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--white-dim);
  font-weight: 400;
  margin-bottom: 4px;
  text-transform: none;
}

.hero-title .furigana {
  font-size: 12px;
  margin-bottom: 8px;
  background: none;
  -webkit-text-fill-color: var(--white-dim);
}

/* Join Us Highlight */
.cta-highlight {
  font-size: 20px !important;
  font-weight: 700 !important;
  color: var(--white) !important;
  display: block;
  margin-bottom: 24px !important;
}

/* ===== ABOUT ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.about-text p {
  color: var(--white-dim);
  margin-bottom: 20px;
  line-height: 2;
  font-size: 14px;
}

.about-highlight {
  border-left: 2px solid var(--gold);
  padding-left: 20px;
  margin: 32px 0;
  color: var(--gold) !important;
  font-size: 13px !important;
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.stat-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  padding: 24px;
  border-radius: 8px;
  text-align: center;
  backdrop-filter: blur(10px);
  transition: var(--transition);
}

.stat-card:hover {
  border-color: var(--blue);
  box-shadow: var(--glow-blue);
  transform: translateY(-4px);
}

.stat-num {
  font-family: 'Cinzel', serif;
  font-size: 36px;
  font-weight: 700;
  color: var(--blue);
  text-shadow: var(--glow-blue);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 11px;
  color: var(--white-dim);
  letter-spacing: 0.2em;
}

/* ===== TOURS ===== */
.tours-section { background: rgba(10, 22, 40, 0.3); }

.tour-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tour-item {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px 28px;
  display: flex;
  align-items: center;
  gap: 24px;
  backdrop-filter: blur(10px);
  transition: var(--transition);
}

.tour-item:hover {
  border-color: rgba(79,195,247,0.4);
  transform: translateX(4px);
}

.tour-date {
  font-family: 'Rajdhani', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--blue);
  letter-spacing: 0.1em;
  white-space: nowrap;
  min-width: 120px;
}

.tour-name {
  flex: 1;
  font-size: 14px;
  color: var(--white);
  font-weight: 500;
}

.tour-members {
  font-size: 12px;
  color: var(--white-dim);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
}

.tour-members::before {
  content: '';
  display: inline-block;
  width: 16px; height: 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%234fc3f7'%3E%3Cpath d='M16 11c1.66 0 2.99-1.34 2.99-3S17.66 5 16 5c-1.66 0-3 1.34-3 3s1.34 3 3 3zm-8 0c1.66 0 2.99-1.34 2.99-3S9.66 5 8 5C6.34 5 5 6.34 5 8s1.34 3 3 3zm0 2c-2.33 0-7 1.17-7 3.5V19h14v-2.5c0-2.33-4.67-3.5-7-3.5zm8 0c-.29 0-.62.02-.97.05 1.16.84 1.97 1.97 1.97 3.45V19h6v-2.5c0-2.33-4.67-3.5-7-3.5z'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* ===== RULES (はじめに) ===== */
.rules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.rule-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 28px;
  backdrop-filter: blur(10px);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.rule-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 100%;
  background: linear-gradient(to bottom, var(--blue), var(--gold));
}

.rule-card:hover {
  border-color: rgba(79,195,247,0.4);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.rule-num {
  font-family: 'Cinzel', serif;
  font-size: 40px;
  font-weight: 900;
  color: rgba(79, 195, 247, 0.4);
  line-height: 1;
  margin-bottom: 12px;
}

.rule-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 8px;
  letter-spacing: 0.05em;
}

.rule-text {
  font-size: 13px;
  color: var(--white-dim);
  line-height: 1.9;
}

/* ===== CONTACT ===== */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-info-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contact-info-label {
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--blue);
  text-transform: uppercase;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
}

.contact-info-value {
  font-size: 14px;
  color: var(--white);
}

.contact-line-box {
  background: linear-gradient(135deg, rgba(0,185,0,0.1), rgba(0,185,0,0.05));
  border: 1px solid rgba(0,185,0,0.3);
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  margin-top: 8px;
}

.contact-line-box .line-icon {
  font-size: 28px;
  margin-bottom: 8px;
}

.contact-line-box p {
  font-size: 12px;
  color: var(--white-dim);
}

.contact-line-box .btn {
  margin-top: 12px;
  background: #06c755;
  color: white;
  font-size: 12px;
  padding: 10px 24px;
  display: inline-block;
}

.contact-form {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 40px;
  backdrop-filter: blur(10px);
}

.form-notice {
  background: rgba(79,195,247,0.05);
  border: 1px solid rgba(79,195,247,0.2);
  border-radius: 6px;
  padding: 16px;
  margin-bottom: 28px;
  font-size: 12px;
  color: var(--white-dim);
  line-height: 1.8;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 12px;
  color: var(--white-dim);
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

.form-group label .required {
  color: var(--red);
  margin-left: 4px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 12px 16px;
  color: var(--white);
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 14px;
  font-weight: 300;
  transition: var(--transition);
  appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue);
  background: rgba(79,195,247,0.05);
  box-shadow: var(--glow-blue);
}

.form-group select option { background: var(--space-mid); }

.form-group textarea { resize: vertical; min-height: 120px; }

.form-agree {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 28px;
  font-size: 12px;
  color: var(--white-dim);
  cursor: pointer;
}

.form-agree input[type="checkbox"] {
  width: 16px; height: 16px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--blue);
}

.btn-submit {
  width: 100%;
  padding: 16px;
  font-size: 14px;
  letter-spacing: 0.2em;
  background: linear-gradient(135deg, var(--blue-dark), var(--blue));
  color: var(--space);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700;
  transition: var(--transition);
  box-shadow: var(--glow-blue);
}

.btn-submit:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(79,195,247,0.5);
}

.btn-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ===== PAGE HERO (inner pages) ===== */
.page-hero {
  padding: 140px 0 80px;
  position: relative;
  z-index: 1;
  text-align: center;
}

.page-hero-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.page-hero-sub {
  font-size: 13px;
  color: var(--white-dim);
  letter-spacing: 0.3em;
}

/* ===== LEGAL PAGES ===== */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 48px;
  backdrop-filter: blur(10px);
  margin-bottom: 80px;
}

.legal-content h2 {
  font-family: 'Cinzel', serif;
  font-size: 20px;
  color: var(--gold);
  margin: 36px 0 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(245,200,66,0.2);
}

.legal-content h2:first-child { margin-top: 0; }

.legal-content p {
  font-size: 13px;
  color: var(--white-dim);
  line-height: 2;
  margin-bottom: 16px;
}

.legal-content ul {
  font-size: 13px;
  color: var(--white-dim);
  line-height: 2;
  margin-bottom: 16px;
  padding-left: 24px;
}

.legal-content ul li { margin-bottom: 8px; }

.legal-date {
  font-size: 12px;
  color: var(--white-dim);
  letter-spacing: 0.1em;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}



/* ===== FOOTER ===== */
footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 60px 0 40px;
}

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

.footer-brand .logo-en {
  font-family: 'Cinzel', serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.15em;
  text-shadow: var(--glow-gold);
}

.footer-brand p {
  font-size: 13px;
  color: var(--white-dim);
  margin-top: 16px;
  line-height: 1.8;
  max-width: 280px;
}

.footer-col h4 {
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--blue);
  text-transform: uppercase;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  margin-bottom: 16px;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a { font-size: 13px; color: var(--white-dim); }
.footer-col ul a:hover { color: var(--white); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--white-dim);
}

/* ===== ALERT ===== */
.alert {
  padding: 16px 20px;
  border-radius: 6px;
  margin-bottom: 20px;
  font-size: 13px;
  display: none;
}

.alert-success {
  background: rgba(0,200,100,0.1);
  border: 1px solid rgba(0,200,100,0.3);
  color: #4ade80;
  display: block;
}

.alert-error {
  background: rgba(255,71,87,0.1);
  border: 1px solid rgba(255,71,87,0.3);
  color: var(--red);
  display: block;
}

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

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

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

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }

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

  .contact-wrapper { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 24px; }

  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }

  .legal-content { padding: 28px 20px; }

  .tour-item { flex-direction: column; align-items: flex-start; gap: 8px; }
  .tour-date { min-width: unset; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .btn { text-align: center; }
}
