:root {
  --page-bg: #f8f3ea;
  --paper: #fffdf8;
  --paper-soft: #fbf6ed;
  --ink: #4d3b2f;
  --muted: #8a7462;
  --line: #d6c29a;
  --line-soft: #eadfca;
  --gold: #b89a5f;
  --shadow: 0 18px 48px rgba(82, 61, 42, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--page-bg);
}

html.is-loading,
html.is-loading body {
  overflow: hidden;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(90deg, rgba(184, 154, 95, 0.08) 1px, transparent 1px),
    var(--page-bg);
  background-size: 28px 28px;
  color: var(--ink);
  font-family: "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-size: 15px;
  line-height: 1.9;
  letter-spacing: 0;
}

.loading-screen {
  display: none;
}

.js .loading-screen {
  position: fixed;
  z-index: 9999;
  inset: 0;
  display: grid;
  place-items: center;
  background: #fbf6ed;
  color: var(--ink);
  opacity: 1;
  visibility: visible;
  transition:
    opacity 900ms ease,
    visibility 900ms ease;
}

.js.is-loaded .loading-screen {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.js.is-loading .invite {
  opacity: 0;
}

.js.is-loaded .invite {
  opacity: 1;
  transition: opacity 700ms ease 140ms;
}

.loading-inner {
  width: min(100% - 56px, 300px);
  text-align: center;
}

.loading-kicker {
  margin: 0 0 12px;
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 14px;
  font-style: italic;
  line-height: 1.3;
  opacity: 0;
  transform: translateY(10px);
  animation: loadingTextIn 900ms ease 180ms forwards;
}

.loading-title {
  margin: 0;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: 27px;
  line-height: 1.45;
  opacity: 0;
  transform: translateY(10px);
  animation: loadingTextIn 900ms ease 360ms forwards;
}

.loading-line {
  position: relative;
  width: 136px;
  height: 1px;
  margin: 28px auto 0;
  overflow: hidden;
  background: rgba(184, 154, 95, 0.22);
}

.loading-line::before {
  position: absolute;
  inset: 0;
  background: var(--gold);
  content: "";
  transform: translateX(-100%);
  animation: loadingLine 1400ms ease-in-out 420ms infinite;
}

.js .reveal {
  opacity: 0;
  transform: translateY(42px);
  transition:
    opacity 1200ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 1200ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  animation: sectionFadeIn 1200ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.js .hero-panel.reveal {
  transition-delay: 80ms;
}

.invite {
  width: min(100%, 430px);
  min-height: 100vh;
  margin: 0 auto;
  overflow: hidden;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.hero {
  text-align: center;
}

.hero-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  background: #eee4d4;
}

.hero-photo::before {
  position: absolute;
  z-index: 2;
  inset: 14px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  content: "";
  pointer-events: none;
}

.hero-photo::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 253, 248, 0.05), rgba(77, 59, 47, 0.08));
  content: "";
  pointer-events: none;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-panel {
  padding: 38px 26px 48px;
  background: linear-gradient(180deg, #fffdf8 0%, #fbf6ed 100%);
}

.section-kicker {
  margin: 0 0 8px;
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 13px;
  font-style: italic;
  line-height: 1.3;
}

h1,
h2,
p,
dl,
dd,
ol {
  margin: 0;
}

h1,
h2 {
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-weight: 500;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(31px, 8vw, 36px);
  line-height: 1.42;
}

h2 {
  font-size: 25px;
  line-height: 1.45;
}

.ornament {
  width: 84px;
  height: 1px;
  margin: 22px auto 20px;
  background: var(--line);
}

.couple-main {
  color: var(--ink);
  font-size: 18px;
  line-height: 1.7;
}

.couple-main span {
  display: inline-block;
  margin: 0 9px;
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
}

.hero-details {
  display: grid;
  gap: 0;
  width: min(100%, 282px);
  margin: 30px auto 0;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.hero-details div {
  display: grid;
  grid-template-columns: 72px 1fr;
  align-items: baseline;
  padding: 12px 0;
  text-align: left;
}

.hero-details div + div {
  border-top: 1px solid var(--line-soft);
}

.hero-details dt {
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 12px;
  font-style: italic;
}

.hero-details dd {
  color: var(--ink);
  font-size: 14px;
}

.section {
  padding: 68px 28px;
  text-align: center;
}

.section:nth-of-type(odd) {
  background: var(--paper-soft);
}

.section-line {
  width: 36px;
  height: 1px;
  margin: 18px auto 30px;
  background: var(--line);
}

.lead-text {
  max-width: 324px;
  margin: 0 auto;
  color: #5c4739;
  font-size: 15px;
  line-height: 2.12;
  text-align: center;
}

.greeting-image {
  display: block;
  width: min(58%, 204px);
  height: auto;
  margin: 30px auto 0;
}

.timeline {
  position: relative;
  display: grid;
  gap: 0;
  max-width: 230px;
  margin: 0 auto;
  padding: 5px 0 0;
  list-style: none;
  text-align: left;
}

.timeline::before {
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 5px;
  width: 1px;
  background: var(--line-soft);
  content: "";
}

.timeline li {
  position: relative;
  min-height: 54px;
  padding: 0 0 25px 30px;
}

.timeline li:last-child {
  padding-bottom: 0;
}

.timeline li::before {
  position: absolute;
  top: 9px;
  left: 0;
  width: 11px;
  height: 11px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  background: var(--paper-soft);
  content: "";
}

.timeline span {
  color: var(--ink);
  font-size: 15px;
  line-height: 1.8;
}

.venue-box {
  max-width: 330px;
  margin: 0 auto;
  padding: 26px 22px 28px;
  border: 1px solid #eadcc4;
  background: #f7efe2;
  text-align: left;
}

.venue-list {
  display: grid;
  gap: 0;
}

.venue-list div {
  padding: 16px 0;
  border-bottom: 1px solid rgba(184, 154, 95, 0.23);
}

.venue-list div:first-child {
  padding-top: 0;
}

.venue-list dt {
  margin-bottom: 4px;
  color: var(--gold);
  font-size: 12px;
  line-height: 1.5;
}

.venue-list dd {
  color: var(--ink);
  font-size: 15px;
  line-height: 1.8;
}

.map-button {
  display: block;
  width: 100%;
  margin-top: 24px;
  padding: 12px 16px;
  border: 1px solid var(--gold);
  background: rgba(255, 253, 248, 0.72);
  color: #765f3b;
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
}

.map-embed {
  position: relative;
  max-width: 330px;
  height: 210px;
  margin: 24px auto 0;
  overflow: hidden;
  border: 1px solid #eadcc4;
  background:
    radial-gradient(circle at 50% 46%, rgba(184, 154, 95, 0.36) 0 5px, transparent 6px),
    linear-gradient(28deg, transparent 0 46%, rgba(184, 154, 95, 0.18) 47% 49%, transparent 50%),
    linear-gradient(132deg, transparent 0 42%, rgba(184, 154, 95, 0.16) 43% 45%, transparent 46%),
    linear-gradient(90deg, rgba(184, 154, 95, 0.1) 1px, transparent 1px),
    linear-gradient(0deg, rgba(184, 154, 95, 0.1) 1px, transparent 1px),
    #efe4d2;
  background-size: auto, auto, auto, 42px 42px, 42px 42px, auto;
}

.map-embed iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  pointer-events: none;
}

.map-embed::before {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(77, 59, 47, 0.72);
  content: "四季の味 しんや";
  font-size: 13px;
  line-height: 1;
  pointer-events: none;
}

.map-link-cover {
  position: absolute;
  inset: 0;
  z-index: 2;
  color: inherit;
  text-decoration: none;
}

.map-link-cover span {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 7px 10px;
  background: rgba(255, 253, 248, 0.92);
  color: #765f3b;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 11px;
  line-height: 1;
}

.venue-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  max-width: 330px;
  margin: 26px auto 0;
}

.venue-gallery figure {
  margin: 0;
  overflow: hidden;
  background: #efe4d2;
}

.venue-gallery figure:first-child {
  grid-column: 1 / -1;
}

.venue-gallery img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.venue-source {
  max-width: 330px;
  margin: 10px auto 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
  text-align: right;
}

@keyframes loadingTextIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes loadingLine {
  0% {
    transform: translateX(-100%);
  }

  52%,
  100% {
    transform: translateX(100%);
  }
}

@keyframes sectionFadeIn {
  from {
    opacity: 0;
    transform: translateY(42px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  html.is-loading,
  html.is-loading body {
    overflow: auto;
  }
}

@media (max-width: 360px) {
  body {
    font-size: 14px;
  }

  .hero-panel {
    padding-right: 20px;
    padding-left: 20px;
  }

  .section {
    padding-right: 22px;
    padding-left: 22px;
  }

  .couple-main {
    font-size: 17px;
  }

  .timeline {
    max-width: 220px;
  }

  .timeline::before {
    left: 5px;
  }

  .timeline li::before {
    left: 0;
  }
}
