:root {
  --ink: #1a1210;
  --paper: #fff9f2;
  --amber: #e8a317;
  --lantern: #d64545;
  --lantern-glow: #ff6b4a;
  --night: #120c14;
  --muted: #5c4f48;
  --line: rgba(26, 18, 16, 0.12);
  --shadow: 0 12px 40px rgba(18, 12, 20, 0.18);
  --radius: 14px;
  --header-h: 4rem;
  --font-display: "Outfit", "Noto Sans JP", sans-serif;
  --font-body: "Noto Sans JP", "Outfit", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
}

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

a {
  color: var(--lantern);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 1000;
  padding: 0.75rem 1rem;
  background: var(--ink);
  color: var(--paper);
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.container {
  width: min(1120px, 92vw);
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 249, 242, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: min(1120px, 92vw);
  margin-inline: auto;
  min-height: var(--header-h);
  padding: 0.35rem 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  margin-right: auto;
}

.logo-mark {
  font-size: 1.35rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.site-nav a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
  font-size: 0.95rem;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--lantern);
}

.nav-cta {
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: var(--lantern);
  color: #fff !important;
}

.nav-cta:hover {
  background: #b83838;
}

.lang-toggle {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  flex-shrink: 0;
}

.lang-btn {
  border: 0;
  background: transparent;
  padding: 0.35rem 0.65rem;
  font: inherit;
  font-size: 0.8rem;
  cursor: pointer;
  color: var(--muted);
}

.lang-btn[aria-pressed="true"] {
  background: var(--ink);
  color: var(--paper);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
}

.menu-bar {
  display: block;
  width: 1.25rem;
  height: 2px;
  margin-inline: auto;
  background: var(--ink);
  transition: transform 0.2s, opacity 0.2s;
}

.menu-toggle[aria-expanded="true"] .menu-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-bar:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] .menu-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 820px) {
  .menu-toggle {
    display: flex;
    order: 2;
  }

  .lang-toggle {
    order: 3;
  }

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.25rem 1.5rem;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s, opacity 0.25s;
  }

  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav a {
    padding: 0.65rem 0;
    border-bottom: 1px solid var(--line);
  }

  .nav-cta {
    text-align: center;
    margin-top: 0.5rem;
    border: 0;
  }
}

/* Hero */
.hero {
  position: relative;
  min-height: clamp(420px, 72vh, 640px);
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18, 12, 20, 0.35) 0%, rgba(18, 12, 20, 0.82) 72%);
}

.hero-lanterns {
  position: absolute;
  top: 5rem;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-around;
  padding: 0 4vw;
  pointer-events: none;
  z-index: 1;
}

.lantern {
  width: clamp(28px, 4vw, 44px);
  height: clamp(36px, 5vw, 56px);
  border-radius: 50% 50% 45% 45%;
  background: radial-gradient(circle at 50% 35%, #ffd4a8, var(--lantern) 55%, #8b2020);
  box-shadow: 0 0 24px rgba(255, 107, 74, 0.55);
  animation: sway 4s ease-in-out infinite;
}

.lantern:nth-child(2) { animation-delay: 0.4s; }
.lantern:nth-child(3) { animation-delay: 0.8s; }
.lantern:nth-child(4) { animation-delay: 1.2s; }
.lantern:nth-child(5) { animation-delay: 1.6s; }

@keyframes sway {
  0%, 100% { transform: rotate(-3deg) translateY(0); }
  50% { transform: rotate(3deg) translateY(4px); }
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1120px, 92vw);
  margin: 0 auto;
  padding: 2.5rem 0 3rem;
}

.hero-eyebrow {
  font-family: var(--font-display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
  opacity: 0.9;
  margin: 0 0 0.5rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 3.75rem);
  line-height: 1.1;
  margin: 0 0 0.75rem;
}

.hero-lead {
  max-width: 36rem;
  font-size: 1.05rem;
  margin: 0 0 1.5rem;
  opacity: 0.95;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.35rem;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.btn-primary {
  background: var(--amber);
  color: var(--ink);
  border-color: var(--amber);
}

.btn-primary:hover {
  background: #f0b832;
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
}

.btn-block {
  width: 100%;
}

/* Sections */
.section {
  padding: 4rem 0;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  margin: 0 0 0.5rem;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  max-width: 42rem;
}

/* Stalls */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.75rem 0 1.25rem;
}

.filter-btn {
  border: 1px solid var(--line);
  background: #fff;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  font: inherit;
  font-size: 0.88rem;
  cursor: pointer;
  color: var(--muted);
}

.filter-btn.is-active,
.filter-btn:hover {
  border-color: var(--lantern);
  color: var(--lantern);
  background: #fff5f3;
}

.stall-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

.stall-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 4px 20px rgba(26, 18, 16, 0.06);
  transition: transform 0.2s, box-shadow 0.2s;
}

.stall-card.is-hidden {
  display: none;
}

.stall-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.stall-card img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
}

.stall-body {
  padding: 1rem 1.1rem 1.15rem;
}

.stall-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.stall-zone {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--lantern);
  font-family: var(--font-display);
}

.stall-tag {
  font-size: 0.72rem;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: #f3ebe3;
  color: var(--muted);
}

.stall-body h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin: 0 0 0.35rem;
}

.stall-body p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

/* Map */
.map-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.5rem;
  margin-top: 1.75rem;
}

@media (max-width: 768px) {
  .map-layout {
    grid-template-columns: 1fr;
  }
}

.alley-map {
  background: linear-gradient(180deg, #2a2228 0%, #1a1418 100%);
  color: #f5e8dc;
  border-radius: var(--radius);
  padding: 1.25rem;
  border: 2px solid #3d3238;
}

.map-tracks,
.map-entrance {
  text-align: center;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  opacity: 0.85;
  padding: 0.35rem;
}

.map-tracks {
  border-bottom: 3px dashed #6b5a62;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.map-zones {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
  margin-bottom: 0.65rem;
}

.map-zone {
  border: 2px solid #5c4a52;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 1rem 0.5rem;
  text-align: center;
  cursor: pointer;
  font: inherit;
  color: inherit;
  transition: border-color 0.2s, background 0.2s;
}

.map-zone-plaza {
  grid-column: 1 / -1;
  cursor: default;
  background: rgba(232, 163, 23, 0.15);
  border-color: var(--amber);
}

.map-zone:not(.map-zone-plaza):hover,
.map-zone[aria-pressed="true"] {
  border-color: var(--lantern-glow);
  background: rgba(214, 69, 69, 0.2);
}

.zone-label {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
}

.zone-name {
  font-size: 0.78rem;
  opacity: 0.9;
}

.map-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
}

.map-panel h3 {
  font-family: var(--font-display);
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.map-panel p {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.map-legend {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  font-size: 0.85rem;
}

.map-legend li {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot-food { background: var(--lantern); }
.dot-drink { background: #3d8bfd; }
.dot-craft { background: #6bbf59; }

/* Access */
.access-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.info-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem 1.25rem;
}

.info-card h3 {
  font-family: var(--font-display);
  margin: 0 0 0.4rem;
  font-size: 1rem;
}

.info-card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
}

.info-card-rain {
  border-color: rgba(61, 139, 253, 0.35);
  background: #f4f9ff;
}

/* RSVP */
.rsvp {
  background: linear-gradient(180deg, #fff 0%, #f7efe6 100%);
}

.rsvp-inner {
  max-width: 520px;
}

.rsvp-form {
  margin-top: 1.5rem;
  display: grid;
  gap: 1.1rem;
}

.field label,
.field legend {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
}

.field input[type="text"],
.field input[type="email"],
.field input[type="number"] {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
  background: #fff;
}

.field input:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
}

.field input.is-invalid {
  border-color: var(--lantern);
  background: #fff8f7;
}

.field-error {
  margin: 0.35rem 0 0;
  font-size: 0.82rem;
  color: var(--lantern);
}

.radio-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.radio-pill {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  cursor: pointer;
  font-size: 0.9rem;
}

.radio-pill:has(input:checked) {
  border-color: var(--lantern);
  background: #fff5f3;
}

.radio-pill input {
  accent-color: var(--lantern);
}

.rsvp-thanks {
  margin-top: 1.5rem;
  padding: 1.5rem;
  background: #fff;
  border: 1px solid rgba(107, 191, 89, 0.4);
  border-radius: var(--radius);
}

.rsvp-thanks h3 {
  font-family: var(--font-display);
  margin: 0 0 0.5rem;
  color: #2d6a32;
}

.rsvp-thanks p {
  margin: 0 0 1rem;
  color: var(--muted);
}

/* Footer */
.site-footer {
  background: var(--night);
  color: #d8cfc8;
  padding: 2.5rem 0;
  font-size: 0.88rem;
}

.footer-inner {
  display: grid;
  gap: 1rem;
}

.footer-brand {
  font-family: var(--font-display);
  font-weight: 600;
  color: #fff;
  margin: 0;
}

.footer-copy {
  margin: 0;
  opacity: 0.75;
}

.photo-credits ul {
  margin: 0.35rem 0;
  padding-left: 1.1rem;
}

.photo-credits a {
  color: #ffb4a8;
}

.credits-title {
  font-size: 0.85rem;
  font-weight: 600;
  margin: 0;
  color: #fff;
}
