@import url('https://fonts.googleapis.com/css2?family=Zen+Antique&family=DM+Sans:ital,wght@0,300;0,400;0,500;0,700;1,400&display=swap');

:root {
  --bg-deep: #0a0a12;
  --bg-mid: #12121f;
  --bg-card: #1a1a2e;
  --fg: #e8e4dc;
  --fg-dim: #9a958a;
  --accent: #c8553d;
  --accent-gold: #d4a847;
  --accent-sakura: #e8a0bf;
  --accent-teal: #5b9a8b;
  --torii-red: #b5322a;
  --torii-dark: #8a2422;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
  background: var(--bg-deep);
  color: var(--fg);
  font-family: 'DM Sans', sans-serif;
  line-height: 1.7;
  overflow-x: hidden;
}

.jp-heading {
  font-family: 'Zen Antique', serif;
  letter-spacing: 0.05em;
}

/* ===== HERO: TORII GATE ===== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #0d0d1a 0%, #141425 40%, #1a1a2e 100%);
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(200, 85, 61, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.torii-visual {
  position: relative;
  margin-bottom: 3rem;
  width: 280px;
  height: 240px;
}

.torii-top {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 280px;
  height: 20px;
  background: var(--torii-red);
  border-radius: 4px 4px 0 0;
  box-shadow: 0 0 40px rgba(181, 50, 42, 0.3);
}

.torii-top::before {
  content: '';
  position: absolute;
  top: -12px;
  left: -20px;
  right: -20px;
  height: 16px;
  background: var(--torii-dark);
  border-radius: 6px 6px 0 0;
  clip-path: polygon(5% 100%, 0% 0%, 100% 0%, 95% 100%);
}

.torii-beam {
  position: absolute;
  top: 40px;
  left: 50%;
  transform: translateX(-50%);
  width: 240px;
  height: 12px;
  background: var(--torii-red);
}

.torii-pillar-left,
.torii-pillar-right {
  position: absolute;
  top: 18px;
  width: 18px;
  height: 220px;
  background: linear-gradient(180deg, var(--torii-red) 0%, var(--torii-dark) 100%);
  border-radius: 0 0 4px 4px;
}

.torii-pillar-left { left: 60px; }
.torii-pillar-right { right: 60px; }

.hero-content {
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-family: 'Zen Antique', serif;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  color: var(--fg);
  letter-spacing: 0.15em;
  margin-bottom: 0.5rem;
  text-shadow: 0 0 60px rgba(200, 85, 61, 0.2);
}

.hero .kanji-sub {
  font-family: 'Zen Antique', serif;
  font-size: 1.2rem;
  color: var(--accent-gold);
  letter-spacing: 0.3em;
  margin-bottom: 2rem;
  opacity: 0.8;
}

.hero .lede {
  font-size: 1.15rem;
  color: var(--fg-dim);
  max-width: 520px;
  margin: 0 auto;
  font-weight: 300;
  line-height: 1.8;
}

.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--fg-dim);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.4;
  animation: pulse-down 2s ease-in-out infinite;
}

.scroll-hint::after {
  content: '';
  display: block;
  width: 1px;
  height: 40px;
  background: linear-gradient(180deg, var(--fg-dim), transparent);
  margin: 0.5rem auto 0;
}

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

/* ===== FEATURES: THE COURTYARD ===== */
.courtyard {
  padding: 6rem 1.5rem;
  background: linear-gradient(180deg, #1a1a2e 0%, #0f1a1a 50%, #1a1a2e 100%);
  position: relative;
}

.courtyard::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(180deg, var(--bg-mid), transparent);
  pointer-events: none;
}

.courtyard-inner {
  max-width: 1000px;
  margin: 0 auto;
}

.section-label {
  font-family: 'Zen Antique', serif;
  font-size: 0.85rem;
  color: var(--accent-gold);
  letter-spacing: 0.35em;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 1rem;
}

.courtyard h2 {
  font-family: 'Zen Antique', serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  text-align: center;
  margin-bottom: 1rem;
  color: var(--fg);
}

.courtyard .subtitle {
  text-align: center;
  color: var(--fg-dim);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto 4rem;
  font-weight: 300;
}

.stations {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.station {
  background: linear-gradient(135deg, rgba(26, 26, 46, 0.8), rgba(15, 26, 26, 0.6));
  border: 1px solid rgba(212, 168, 71, 0.1);
  border-radius: 16px;
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s ease;
}

.station:hover {
  border-color: rgba(212, 168, 71, 0.25);
}

.station::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(212, 168, 71, 0.03) 0%, transparent 70%);
  pointer-events: none;
}

.station-icon {
  font-size: 2.5rem;
  margin-bottom: 1.2rem;
  display: block;
}

.station h3 {
  font-family: 'Zen Antique', serif;
  font-size: 1.4rem;
  margin-bottom: 0.3rem;
  color: var(--fg);
}

.station .jp-name {
  font-size: 0.85rem;
  color: var(--accent-gold);
  letter-spacing: 0.15em;
  margin-bottom: 1rem;
  opacity: 0.7;
}

.station p {
  color: var(--fg-dim);
  font-size: 0.95rem;
  line-height: 1.8;
}

.station-colors {
  display: flex;
  gap: 0.6rem;
  margin-top: 1rem;
}

.color-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.1);
}

.color-dot.red { background: #c8553d; }
.color-dot.gold { background: #d4a847; }
.color-dot.blue { background: #4a7fb5; }

@media (min-width: 768px) {
  .stations {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ===== ATMOSPHERE SECTION ===== */
.atmosphere {
  padding: 6rem 1.5rem;
  background: var(--bg-deep);
  text-align: center;
}

.atmosphere-inner {
  max-width: 700px;
  margin: 0 auto;
}

.atmosphere h2 {
  font-family: 'Zen Antique', serif;
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  margin-bottom: 2rem;
  color: var(--fg);
}

.atmosphere-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  text-align: left;
}

.atm-item {
  padding: 1.5rem;
  border-left: 2px solid var(--accent-gold);
}

.atm-item h4 {
  font-family: 'Zen Antique', serif;
  font-size: 1rem;
  color: var(--accent-gold);
  margin-bottom: 0.4rem;
}

.atm-item p {
  color: var(--fg-dim);
  font-size: 0.9rem;
  line-height: 1.6;
}

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

/* ===== CLOSING ===== */
.closing {
  padding: 6rem 1.5rem 4rem;
  background: linear-gradient(180deg, var(--bg-deep) 0%, #0d0d1a 100%);
  text-align: center;
}

.closing-inner {
  max-width: 600px;
  margin: 0 auto;
}

.closing .kanji-large {
  font-family: 'Zen Antique', serif;
  font-size: 3rem;
  color: var(--accent-gold);
  opacity: 0.3;
  margin-bottom: 1.5rem;
  letter-spacing: 0.5em;
}

.closing h2 {
  font-family: 'Zen Antique', serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 1.5rem;
  color: var(--fg);
  line-height: 1.5;
}

.closing p {
  color: var(--fg-dim);
  font-size: 1rem;
  line-height: 1.8;
}

/* ===== ENTER SHRINE BUTTON (landing page) ===== */
.enter-shrine-btn {
  display: inline-block;
  margin-top: 2rem;
  padding: 1rem 2.5rem;
  background: linear-gradient(135deg, var(--torii-red), var(--torii-dark));
  color: var(--fg);
  text-decoration: none;
  border-radius: 12px;
  font-family: 'DM Sans', sans-serif;
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
  z-index: 2;
}
.enter-shrine-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(181, 50, 42, 0.35);
}

/* ===== FOOTER ===== */
footer {
  padding: 2rem 1.5rem;
  text-align: center;
  background: #08080f;
  border-top: 1px solid rgba(212, 168, 71, 0.08);
}

footer p {
  color: var(--fg-dim);
  font-size: 0.8rem;
  opacity: 0.5;
  letter-spacing: 0.1em;
}
