/* ─────────────────────────────────
   Wedding Theme – Mokuren & Sakira
   ───────────────────────────────── */

:root {
  --bg: #faf6f2;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-solid: #ffffff;
  --text: #3a302b;
  --text-light: #7a6e66;
  --accent: #c4917e;
  --accent-dark: #a06b56;
  --accent-light: #e8cfc4;
  --gold: #c5a97d;
  --gold-light: #e6dbc8;
  --line: rgba(60, 48, 43, 0.08);
  --shadow-sm: 0 4px 16px rgba(90, 60, 40, 0.06);
  --shadow-md: 0 12px 40px rgba(90, 60, 40, 0.08);
  --shadow-lg: 0 24px 80px rgba(90, 60, 40, 0.10);
  --radius: 20px;
  --radius-lg: 32px;
  --transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 300;
  color: var(--text);
  background: var(--bg);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: "Noto Serif JP", "Cormorant Garamond", serif;
  font-weight: 400;
  line-height: 1.3;
}

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

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

/* ── Navigation ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 12px clamp(16px, 4vw, 48px);
  transition: background var(--transition), box-shadow var(--transition);
}

.nav.scrolled {
  background: rgba(250, 246, 242, 0.92);
  backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--line);
}

.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.3rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--text);
}

.brand .amp {
  color: var(--accent);
  font-style: italic;
  margin: 0 2px;
}

.tab-buttons {
  display: flex;
  gap: 4px;
  background: rgba(0, 0, 0, 0.03);
  border-radius: 999px;
  padding: 4px;
}

.tab-btn {
  font: inherit;
  font-size: 0.88rem;
  font-weight: 400;
  border: none;
  background: transparent;
  padding: 8px 22px;
  border-radius: 999px;
  cursor: pointer;
  color: var(--text-light);
  transition: all 0.3s ease;
  letter-spacing: 0.04em;
}

.tab-btn.active {
  background: var(--surface-solid);
  color: var(--text);
  font-weight: 500;
  box-shadow: var(--shadow-sm);
}

.tab-btn:hover:not(.active) {
  color: var(--text);
}

/* ── Tab content ── */
.tab-content {
  display: none;
  animation: fadeUp 0.6s ease forwards;
}

.tab-content.active {
  display: block;
}

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

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 120px clamp(20px, 6vw, 80px) 80px;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(196, 145, 126, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 80%, rgba(197, 169, 125, 0.10) 0%, transparent 50%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.3) 0%, transparent 40%);
  pointer-events: none;
}

/* Decorative lines */
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  width: 1px;
  height: 120px;
  background: linear-gradient(180deg, transparent, var(--gold-light), transparent);
  pointer-events: none;
}

.hero::before {
  top: 60px;
  left: 15%;
}

.hero::after {
  bottom: 40px;
  right: 18%;
}

.hero-body {
  position: relative;
  max-width: 800px;
}

.eyebrow {
  font-family: "Cormorant Garamond", serif;
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
}

.couple-names {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: clamp(12px, 3vw, 32px);
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.name-groom,
.name-bride {
  font-family: "Noto Serif JP", serif;
  font-size: clamp(2rem, 5.5vw, 4rem);
  font-weight: 300;
  letter-spacing: 0.15em;
}

.name-divider {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 300;
  font-style: italic;
  color: var(--gold);
}

.hero-date {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.1rem, 2.5vw, 1.6rem);
  letter-spacing: 0.2em;
  color: var(--text-light);
  margin-bottom: 4px;
}

.hero-venue {
  font-size: 0.95rem;
  color: var(--text-light);
  letter-spacing: 0.1em;
  margin-bottom: 28px;
}

.lead {
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  color: var(--text-light);
  line-height: 2;
  max-width: 42em;
  margin: 0 auto;
}

.hero-meta {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 48px;
  flex-wrap: wrap;
}

.meta-item {
  background: var(--surface);
  backdrop-filter: blur(16px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 28px;
  min-width: 160px;
  box-shadow: var(--shadow-sm);
}

.label {
  display: block;
  font-family: "Cormorant Garamond", serif;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 4px;
}

.meta-item strong {
  display: block;
  font-family: "Noto Serif JP", serif;
  font-size: 0.95rem;
  font-weight: 400;
}

/* Scroll hint */
.scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-light);
}

.scroll-hint span {
  font-family: "Cormorant Garamond", serif;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(180deg, var(--gold-light), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ── Sections ── */
.section {
  padding: 60px clamp(20px, 4vw, 64px);
}

.section-inner {
  max-width: 1080px;
  margin: 0 auto;
}

.section-label {
  font-family: "Cormorant Garamond", serif;
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 4px;
}

.section-header {
  margin-bottom: 32px;
}

.section-header h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  letter-spacing: 0.08em;
}

/* ── Cards ── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.card.glass {
  background: var(--surface);
  backdrop-filter: blur(16px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition), box-shadow var(--transition);
}

.card.glass:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.card h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  margin: 8px 0 16px;
  letter-spacing: 0.06em;
}

.card p {
  color: var(--text-light);
  line-height: 2;
}

.signature {
  margin-top: 20px;
  font-family: "Noto Serif JP", serif;
  font-weight: 400;
  color: var(--text);
  letter-spacing: 0.1em;
}

.info-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
}

.info-list li {
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  color: var(--text-light);
  font-size: 0.95rem;
}

.info-list li:last-child {
  border-bottom: none;
}

.info-list.compact {
  margin-top: 12px;
}

/* ── Timeline ── */
.timeline {
  position: relative;
  display: grid;
  gap: 0;
  padding-left: 20px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 69px;
  top: 28px;
  bottom: 28px;
  width: 1px;
  background: var(--gold-light);
}

.timeline-item {
  display: grid;
  grid-template-columns: 60px 20px 1fr;
  gap: 12px;
  align-items: start;
  padding: 20px 0;
}

.tl-time {
  font-family: "Cormorant Garamond", serif;
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  color: var(--accent-dark);
  padding-top: 2px;
  text-align: right;
}

.tl-dot {
  position: relative;
  width: 10px;
  height: 10px;
  background: var(--gold);
  border-radius: 50%;
  margin-top: 8px;
  justify-self: center;
  box-shadow: 0 0 0 4px var(--gold-light);
}

.tl-body h3 {
  font-size: 1.3rem;
  margin-bottom: 4px;
  letter-spacing: 0.06em;
}

.tl-body p {
  color: var(--text-light);
  font-size: 0.92rem;
}

/* ── Access ── */
.access-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: stretch;
}

.access-card h3 {
  font-size: 1.5rem;
  margin-bottom: 8px;
  letter-spacing: 0.06em;
}

.access-card p {
  color: var(--text-light);
  margin-bottom: 12px;
}

.btn-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.map-card {
  padding: 12px;
}

.map-card iframe {
  width: 100%;
  min-height: 380px;
  border: 0;
  border-radius: calc(var(--radius-lg) - 12px);
}

/* ── Buttons ── */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 24px;
  border-radius: 999px;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.button svg {
  flex-shrink: 0;
}

.button.primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 24px rgba(196, 145, 126, 0.25);
}

.button.primary:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
  box-shadow: 0 12px 32px rgba(196, 145, 126, 0.3);
}

.button.outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}

.button.outline:hover {
  background: var(--surface-solid);
  border-color: var(--accent-light);
}

/* ── RSVP Tab ── */
.rsvp-hero {
  padding: 140px clamp(20px, 6vw, 80px) 48px;
  text-align: center;
}

.rsvp-hero h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  letter-spacing: 0.1em;
  margin: 12px 0 16px;
}

.rsvp-hero .lead {
  margin: 0 auto;
}

.rsvp-section {
  padding-top: 20px;
}

.rsvp-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1.1fr);
  gap: 24px;
  align-items: start;
}

.rsvp-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.invite-panel {
  padding: 24px;
  border-radius: var(--radius);
  background: rgba(232, 207, 196, 0.15);
  border: 1px solid var(--line);
}

.invite-panel h3 {
  font-size: 1.3rem;
  margin: 8px 0 4px;
  letter-spacing: 0.04em;
}

.invite-panel p {
  font-size: 0.92rem;
}

.note {
  font-size: 0.78rem;
  color: var(--text-light);
  letter-spacing: 0.04em;
}

/* ── Form ── */
.rsvp-form {
  display: grid;
  gap: 20px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.field {
  display: grid;
  gap: 6px;
}

.field span {
  font-size: 0.88rem;
  font-weight: 400;
  color: var(--text);
  letter-spacing: 0.04em;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  border-radius: 14px;
  padding: 12px 16px;
  font: inherit;
  font-size: 0.95rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent-light);
  box-shadow: 0 0 0 3px rgba(196, 145, 126, 0.1);
}

.field textarea {
  resize: vertical;
}

.field-full {
  grid-column: 1 / -1;
}

.form-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.form-status {
  min-height: 1.6em;
  margin: 0;
  font-size: 0.9rem;
  font-weight: 400;
}

.form-status.error {
  color: #b35454;
}

.form-status.success {
  color: #4a8a6e;
}

/* ── Footer ── */
.footer {
  padding: 48px 20px 56px;
  text-align: center;
  border-top: 1px solid var(--line);
}

.footer-names {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.1rem;
  letter-spacing: 0.15em;
  color: var(--text);
  margin-bottom: 4px;
}

.footer-date {
  font-family: "Cormorant Garamond", serif;
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  color: var(--text-light);
}

/* ── Scroll fade-in ── */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* ── Responsive ── */
.hide-sp {
  display: inline;
}

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

  .rsvp-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .nav-inner {
    flex-direction: column;
    gap: 8px;
  }

  .tab-buttons {
    width: 100%;
    justify-content: center;
  }

  .hero {
    min-height: 90svh;
    padding-top: 100px;
  }

  .couple-names {
    flex-direction: column;
    gap: 4px;
  }

  .name-divider {
    font-size: 1.2rem;
  }

  .hero-meta {
    flex-direction: column;
    align-items: center;
  }

  .meta-item {
    width: 100%;
    max-width: 280px;
  }

  .timeline::before {
    display: none;
  }

  .timeline-item {
    grid-template-columns: 50px 1fr;
    gap: 8px;
  }

  .tl-dot {
    display: none;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .hide-sp {
    display: none;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .rsvp-hero {
    padding-top: 120px;
  }
}
