/* ============================
   Password Gate
   ============================ */
#password-gate {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--off-white, #faf9f7);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  transition: opacity 0.6s ease;
}

#password-gate.unlocked {
  opacity: 0;
  pointer-events: none;
}

.gate-box {
  text-align: center;
  max-width: 360px;
  width: 100%;
}

.gate-en {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: 0.8rem;
  letter-spacing: 0.25em;
  color: #999;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.gate-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-style: italic;
  font-size: 2.4rem;
  color: #2c2c2c;
  margin-bottom: 0.4rem;
  letter-spacing: 0.05em;
}

.gate-sub {
  font-family: 'Noto Serif JP', serif;
  font-weight: 300;
  font-size: 0.8rem;
  color: #999;
  letter-spacing: 0.1em;
  margin-bottom: 2rem;
}

.gate-form {
  display: flex;
  gap: 0;
  border: 1px solid #c9a96e;
  border-radius: 2px;
  overflow: hidden;
}

#gate-input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: none;
  outline: none;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  letter-spacing: 0.2em;
  color: #2c2c2c;
  background: #fff;
  text-align: center;
}

#gate-btn {
  padding: 0.75rem 1.2rem;
  border: none;
  background: #c9a96e;
  color: #fff;
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  cursor: pointer;
  transition: background 0.2s;
}

#gate-btn:hover {
  background: #b8955a;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}

#gate-input.shake {
  animation: shake 0.35s ease;
}

.gate-error {
  font-family: 'Noto Serif JP', serif;
  font-weight: 300;
  font-size: 0.78rem;
  color: #c0655a;
  letter-spacing: 0.08em;
  margin-top: 0.9rem;
}

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

:root {
  --white: #ffffff;
  --off-white: #faf9f7;
  --cream: #f5f0eb;
  --beige: #e8ddd4;
  --gold: #c9a96e;
  --gold-light: #e8d5b0;
  --text-dark: #2c2c2c;
  --text-mid: #5a5a5a;
  --text-light: #999;
  --font-en: 'Cormorant Garamond', serif;
  --font-ja: 'Noto Serif JP', serif;
}

html {
  scroll-behavior: smooth;
}

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

/* ============================
   Hero
   ============================ */
#hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  background-image: url('https://images.unsplash.com/photo-1478146059778-26028b07395a?w=1600&h=1000&fit=crop');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.55);
}

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

.hero-date {
  font-family: var(--font-en);
  font-weight: 300;
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  letter-spacing: 0.3em;
  color: var(--text-mid);
  margin-bottom: 1rem;
}

.hero-names {
  font-family: var(--font-en);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(2.8rem, 8vw, 5.5rem);
  color: var(--text-dark);
  line-height: 1.1;
  letter-spacing: 0.05em;
}

.hero-names-ja {
  font-family: var(--font-ja);
  font-weight: 200;
  font-size: clamp(0.85rem, 2vw, 1rem);
  letter-spacing: 0.4em;
  color: var(--text-mid);
  margin-top: 0.5rem;
}

.hero-divider {
  width: 80px;
  height: 1px;
  background: var(--gold);
  margin: 1.5rem auto;
}

.hero-venue {
  font-family: var(--font-ja);
  font-weight: 300;
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  letter-spacing: 0.3em;
  color: var(--text-mid);
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 2rem;
  color: var(--gold);
  text-decoration: none;
  animation: bounce 2s infinite;
}

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

/* ============================
   Nav
   ============================ */
#nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--beige);
}

#nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: clamp(1rem, 4vw, 3rem);
  padding: 1rem 1.5rem;
}

#nav a {
  text-decoration: none;
  font-family: var(--font-ja);
  font-weight: 300;
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  color: var(--text-mid);
  transition: color 0.3s;
}

#nav a:hover {
  color: var(--gold);
}

/* ============================
   Section Base
   ============================ */
.section {
  padding: clamp(4rem, 10vw, 8rem) 1.5rem;
}

.section-alt {
  background: var(--off-white);
}

.container {
  max-width: 960px;
  margin: 0 auto;
}

.section-title {
  font-family: var(--font-en);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(2rem, 5vw, 3rem);
  text-align: center;
  color: var(--text-dark);
  letter-spacing: 0.05em;
}

.section-subtitle {
  font-family: var(--font-ja);
  font-weight: 200;
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  text-align: center;
  color: var(--text-light);
  margin-top: 0.4rem;
  margin-bottom: 3rem;
}

/* ============================
   Access
   ============================ */
.access-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

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

.access-item {
  display: grid;
  grid-template-columns: 5em 1fr;
  gap: 0.5rem 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--beige);
  font-size: 0.9rem;
}

.access-item:last-child {
  border-bottom: none;
}

.access-label {
  font-weight: 300;
  color: var(--gold);
  letter-spacing: 0.05em;
  padding-top: 0.1em;
}

.access-value {
  color: var(--text-mid);
  line-height: 1.7;
}

.access-map iframe {
  border-radius: 8px;
  filter: grayscale(20%);
}

/* ============================
   Schedule / Timeline
   ============================ */
.timeline {
  max-width: 640px;
  margin: 0 auto;
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 80px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--beige);
}

@media (max-width: 480px) {
  .timeline::before {
    left: 60px;
  }
}

.timeline-item {
  display: grid;
  grid-template-columns: 80px 16px 1fr;
  gap: 0 1rem;
  align-items: start;
  margin-bottom: 2.5rem;
}

@media (max-width: 480px) {
  .timeline-item {
    grid-template-columns: 60px 16px 1fr;
  }
}

.timeline-time {
  font-family: var(--font-en);
  font-size: 1rem;
  font-weight: 300;
  color: var(--gold);
  text-align: right;
  padding-top: 0.15em;
  letter-spacing: 0.05em;
}

.timeline-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
  border: 2px solid var(--white);
  box-shadow: 0 0 0 1px var(--gold);
  margin-top: 0.35em;
  position: relative;
  z-index: 1;
}

.timeline-content h3 {
  font-weight: 400;
  font-size: 1rem;
  letter-spacing: 0.05em;
  margin-bottom: 0.2rem;
}

.timeline-content p {
  font-size: 0.85rem;
  color: var(--text-mid);
  font-weight: 300;
  line-height: 1.7;
}

/* ============================
   Profile
   ============================ */
.profile-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 2rem;
  align-items: start;
  margin-bottom: 4rem;
}

@media (max-width: 640px) {
  .profile-grid {
    grid-template-columns: 1fr;
  }
  .profile-heart {
    text-align: center;
  }
}

.profile-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.profile-photo {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--gold-light);
  margin-bottom: 1.2rem;
}

.profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-role {
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  color: var(--gold);
  font-weight: 300;
  margin-bottom: 0.3rem;
}

.profile-name {
  font-family: var(--font-ja);
  font-weight: 400;
  font-size: 1.3rem;
  letter-spacing: 0.1em;
}

.profile-name-en {
  font-family: var(--font-en);
  font-weight: 300;
  font-style: italic;
  font-size: 0.9rem;
  color: var(--text-light);
  margin-top: 0.2rem;
  margin-bottom: 1rem;
}

.profile-details {
  text-align: left;
  font-size: 0.85rem;
  width: 100%;
  max-width: 200px;
}

.profile-details dt {
  font-weight: 300;
  color: var(--gold);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  margin-top: 0.5rem;
}

.profile-details dd {
  color: var(--text-mid);
  margin-left: 0;
}

.profile-heart {
  font-size: 1.8rem;
  color: var(--gold-light);
  display: flex;
  align-items: center;
  padding-top: 4rem;
}

/* Story */
.story {
  border-top: 1px solid var(--beige);
  padding-top: 3rem;
}

.story-title {
  font-family: var(--font-en);
  font-weight: 300;
  font-style: italic;
  font-size: 1.8rem;
  text-align: center;
  color: var(--text-dark);
  margin-bottom: 2.5rem;
}

.story-items {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

.story-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 1rem;
  align-items: start;
}

.story-year {
  font-family: var(--font-en);
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--gold);
  letter-spacing: 0.05em;
  padding-top: 0.15em;
  text-align: right;
}

.story-text strong {
  font-weight: 400;
  font-size: 0.95rem;
  display: block;
  margin-bottom: 0.2rem;
}

.story-text p {
  font-size: 0.85rem;
  color: var(--text-mid);
  font-weight: 300;
}

/* ============================
   Gallery
   ============================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

@media (max-width: 560px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .gallery-item--wide {
    grid-column: span 2;
  }
}

.gallery-item {
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--cream);
}

.gallery-item--wide {
  grid-column: span 2;
  aspect-ratio: 2 / 1;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* ============================
   Footer
   ============================ */
#footer {
  background: var(--text-dark);
  color: var(--white);
  text-align: center;
  padding: 3rem 1.5rem;
}

.footer-names {
  font-family: var(--font-en);
  font-weight: 300;
  font-style: italic;
  font-size: 1.8rem;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.footer-date {
  font-family: var(--font-en);
  font-weight: 300;
  font-size: 0.9rem;
  letter-spacing: 0.3em;
  color: var(--gold-light);
  margin-bottom: 0.3rem;
}

.footer-venue {
  font-family: var(--font-ja);
  font-weight: 200;
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  color: rgba(255,255,255,0.5);
}

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

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