:root {
  --base: #fff8ec;
  --base-soft: #f3f1ec;
  --wood: #c89f6b;
  --gold: #b58a3a;
  --gold-light: #d9be78;
  --text: #3e3a36;
  --white: #ffffff;
  --shadow: rgba(70, 50, 30, 0.18);
  --line: rgba(181, 138, 58, 0.28);
  --petal: #f3c9c6;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 10%, rgba(217, 190, 120, 0.2), transparent 28rem),
    linear-gradient(180deg, var(--base) 0%, var(--base-soft) 100%);
  font-family: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", "Noto Serif JP", serif;
  font-size: 16px;
  line-height: 1.8;
  letter-spacing: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.55) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.4) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.32;
}

.page-photo-stream {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.page-photo-stream::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 248, 236, 0.66), rgba(255, 248, 236, 0.8)),
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.28), transparent 35rem);
}

.stream-photo {
  position: absolute;
  width: clamp(145px, 18vw, 290px);
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 8px solid rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 38px rgba(70, 50, 30, 0.16);
  opacity: 0.36;
  filter: saturate(0.92) sepia(0.08);
  transform: translate3d(0, var(--stream-offset, 0px), 0) rotate(var(--rotate));
  transition: transform 0.2s linear;
}

.stream-photo:nth-child(1) {
  left: -6vw;
  top: 8vh;
  --rotate: -13deg;
}

.stream-photo:nth-child(2) {
  right: -4vw;
  top: 20vh;
  --rotate: 10deg;
}

.stream-photo:nth-child(3) {
  left: 9vw;
  top: 42vh;
  --rotate: 8deg;
}

.stream-photo:nth-child(4) {
  right: 12vw;
  top: 58vh;
  --rotate: -9deg;
}

.stream-photo:nth-child(5) {
  left: -5vw;
  top: 72vh;
  --rotate: 12deg;
}

.stream-photo:nth-child(6) {
  right: -6vw;
  top: 82vh;
  --rotate: -12deg;
}

.stream-photo:nth-child(7) {
  left: 16vw;
  top: 30vh;
  --rotate: -7deg;
}

.stream-photo:nth-child(8) {
  right: 18vw;
  top: 70vh;
  --rotate: 9deg;
}

.stream-photo:nth-child(9) { left: 36vw; top: 6vh; --rotate: 8deg; }
.stream-photo:nth-child(10) { right: 31vw; top: 36vh; --rotate: -12deg; }
.stream-photo:nth-child(11) { left: 31vw; top: 78vh; --rotate: 13deg; }
.stream-photo:nth-child(12) { right: 40vw; top: 12vh; --rotate: -8deg; }
.stream-photo:nth-child(13) { left: 48vw; top: 50vh; --rotate: 11deg; }
.stream-photo:nth-child(14) { right: 30vw; top: 88vh; --rotate: -6deg; }
.stream-photo:nth-child(15) { left: 3vw; top: 92vh; --rotate: -10deg; }
.stream-photo:nth-child(16) { right: 4vw; top: 4vh; --rotate: 7deg; }
.stream-photo:nth-child(17) { left: 20vw; top: 23vh; --rotate: -5deg; }
.stream-photo:nth-child(18) { right: 18vw; top: 46vh; --rotate: 14deg; }
.stream-photo:nth-child(19) { left: 57vw; top: 75vh; --rotate: -14deg; }
.stream-photo:nth-child(20) { right: 51vw; top: 63vh; --rotate: 6deg; }
.stream-photo:nth-child(21) { left: 69vw; top: 18vh; --rotate: -11deg; }
.stream-photo:nth-child(22) { left: 7vw; top: 54vh; --rotate: 5deg; }
.stream-photo:nth-child(23) { right: 8vw; top: 66vh; --rotate: -4deg; }
.stream-photo:nth-child(24) { left: 43vw; top: 92vh; --rotate: 10deg; }
.stream-photo:nth-child(25) { left: 23vw; top: 3vh; --rotate: 12deg; }
.stream-photo:nth-child(26) { right: 23vw; top: 13vh; --rotate: -13deg; }
.stream-photo:nth-child(27) { left: 58vw; top: 33vh; --rotate: 7deg; }
.stream-photo:nth-child(28) { right: 44vw; top: 48vh; --rotate: -9deg; }
.stream-photo:nth-child(29) { left: 74vw; top: 57vh; --rotate: 12deg; }
.stream-photo:nth-child(30) { left: 25vw; top: 88vh; --rotate: -11deg; }
.stream-photo:nth-child(31) { right: 62vw; top: 72vh; --rotate: 7deg; }
.stream-photo:nth-child(32) { right: 23vw; top: 90vh; --rotate: -8deg; }
.stream-photo:nth-child(33) { left: 2vw; top: 27vh; --rotate: 14deg; }
.stream-photo:nth-child(34) { right: 2vw; top: 43vh; --rotate: -14deg; }
.stream-photo:nth-child(35) { left: 39vw; top: 23vh; --rotate: -5deg; }
.stream-photo:nth-child(36) { right: 38vw; top: 5vh; --rotate: 9deg; }
.stream-photo:nth-child(37) { left: 12vw; top: 15vh; --rotate: -6deg; }
.stream-photo:nth-child(38) { right: 13vw; top: 29vh; --rotate: 6deg; }
.stream-photo:nth-child(39) { left: 51vw; top: 64vh; --rotate: -12deg; }
.stream-photo:nth-child(40) { left: 15vw; top: 83vh; --rotate: 9deg; }
.stream-photo:nth-child(41) { right: 50vw; top: 84vh; --rotate: -7deg; }
.stream-photo:nth-child(42) { right: 11vw; top: 95vh; --rotate: 11deg; }
.stream-photo:nth-child(43) { left: -4vw; top: 108vh; --rotate: -12deg; }
.stream-photo:nth-child(44) { right: -3vw; top: 114vh; --rotate: 10deg; }
.stream-photo:nth-child(45) { left: 28vw; top: 118vh; --rotate: 7deg; }
.stream-photo:nth-child(46) { right: 31vw; top: 124vh; --rotate: -8deg; }
.stream-photo:nth-child(47) { left: 11vw; top: 132vh; --rotate: 13deg; }
.stream-photo:nth-child(48) { right: 12vw; top: 138vh; --rotate: -11deg; }
.stream-photo:nth-child(49) { left: 49vw; top: 142vh; --rotate: 9deg; }
.stream-photo:nth-child(50) { right: 51vw; top: 148vh; --rotate: -6deg; }
.stream-photo:nth-child(51) { left: -6vw; top: 154vh; --rotate: 8deg; }
.stream-photo:nth-child(52) { right: -5vw; top: 160vh; --rotate: -12deg; }
.stream-photo:nth-child(53) { left: 21vw; top: 166vh; --rotate: -9deg; }
.stream-photo:nth-child(54) { right: 23vw; top: 170vh; --rotate: 12deg; }
.stream-photo:nth-child(55) { left: 66vw; top: 176vh; --rotate: -14deg; }
.stream-photo:nth-child(56) { right: 65vw; top: 180vh; --rotate: 8deg; }
.stream-photo:nth-child(57) { left: 39vw; top: 186vh; --rotate: 11deg; }
.stream-photo:nth-child(58) { right: 38vw; top: 192vh; --rotate: -10deg; }
.stream-photo:nth-child(59) { left: 5vw; top: 198vh; --rotate: 6deg; }
.stream-photo:nth-child(60) { right: 7vw; top: 204vh; --rotate: -7deg; }
.stream-photo:nth-child(61) { left: 31vw; top: 210vh; --rotate: -13deg; }
.stream-photo:nth-child(62) { right: 30vw; top: 216vh; --rotate: 14deg; }
.stream-photo:nth-child(63) { left: 58vw; top: 222vh; --rotate: -6deg; }
.stream-photo:nth-child(64) { right: 57vw; top: 228vh; --rotate: 7deg; }
.stream-photo:nth-child(65) { left: -3vw; top: 234vh; --rotate: -11deg; }
.stream-photo:nth-child(66) { right: -4vw; top: 240vh; --rotate: 9deg; }
.stream-photo:nth-child(67) { left: 17vw; top: 246vh; --rotate: 12deg; }
.stream-photo:nth-child(68) { right: 18vw; top: 252vh; --rotate: -12deg; }
.stream-photo:nth-child(69) { left: 45vw; top: 258vh; --rotate: 8deg; }
.stream-photo:nth-child(70) { right: 45vw; top: 264vh; --rotate: -9deg; }
.stream-photo:nth-child(71) { left: 72vw; top: 270vh; --rotate: 13deg; }
.stream-photo:nth-child(72) { right: 72vw; top: 276vh; --rotate: -8deg; }

main,
.site-footer {
  position: relative;
  z-index: 1;
}

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

a {
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.petal-layer {
  position: fixed;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  overflow: hidden;
}

.petal {
  position: absolute;
  top: -44px;
  width: 13px;
  height: 18px;
  border-radius: 62% 38% 58% 42%;
  background: rgba(243, 201, 198, 0.7);
  box-shadow: 0 5px 14px rgba(181, 138, 58, 0.08);
  animation-name: petal-fall;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

@keyframes petal-fall {
  0% {
    transform: translate3d(0, -48px, 0) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.8;
  }
  100% {
    transform: translate3d(36px, 110vh, 0) rotate(240deg);
    opacity: 0;
  }
}

.hero {
  position: relative;
  min-height: 108svh;
  display: grid;
  place-items: center;
  isolation: isolate;
  overflow: hidden;
  margin-bottom: clamp(76px, 12vh, 150px);
  padding: 64px 24px 84px;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: clamp(150px, 22vh, 260px);
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 0%, rgba(255, 248, 236, 0.62) 56%, var(--base) 100%);
}

.hero-photo-collage {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 48%, rgba(255, 255, 255, 0.36), transparent 24rem),
    var(--base);
}

.hero-photo {
  position: absolute;
  width: clamp(170px, 22vw, 360px);
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 9px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 20px 42px rgba(70, 50, 30, 0.2);
  opacity: 0.78;
  filter: saturate(0.98) sepia(0.08);
  transform: rotate(var(--rotate));
}

.hero-photo:nth-child(1) {
  left: -5vw;
  top: 5vh;
  --rotate: -14deg;
}

.hero-photo:nth-child(2) {
  left: 20vw;
  top: -7vh;
  --rotate: 9deg;
}

.hero-photo:nth-child(3) {
  right: -4vw;
  top: 7vh;
  --rotate: 13deg;
}

.hero-photo:nth-child(4) {
  left: -7vw;
  top: 45vh;
  --rotate: 11deg;
}

.hero-photo:nth-child(5) {
  right: 4vw;
  top: 42vh;
  --rotate: -12deg;
}

.hero-photo:nth-child(6) {
  left: 28vw;
  bottom: -8vh;
  --rotate: -7deg;
}

.hero-photo:nth-child(7) {
  left: 8vw;
  bottom: -11vh;
  --rotate: 8deg;
}

.hero-photo:nth-child(8) {
  right: 20vw;
  bottom: -10vh;
  --rotate: 10deg;
}

.hero-photo:nth-child(9) { left: 43vw; top: 20vh; --rotate: -10deg; }
.hero-photo:nth-child(10) { right: 33vw; top: 60vh; --rotate: 12deg; }
.hero-photo:nth-child(11) { left: 38vw; top: 69vh; --rotate: -14deg; }
.hero-photo:nth-child(12) { left: 59vw; top: -4vh; --rotate: -6deg; }
.hero-photo:nth-child(13) { left: 12vw; top: 27vh; --rotate: 10deg; }
.hero-photo:nth-child(14) { right: 3vw; bottom: -8vh; --rotate: -8deg; }
.hero-photo:nth-child(15) { left: 33vw; top: 38vh; --rotate: 8deg; }
.hero-photo:nth-child(16) { right: 17vw; top: 16vh; --rotate: -9deg; }
.hero-photo:nth-child(17) { left: 4vw; top: 18vh; --rotate: 7deg; }
.hero-photo:nth-child(18) { right: 48vw; top: 48vh; --rotate: -12deg; }
.hero-photo:nth-child(19) { left: 64vw; top: 32vh; --rotate: 11deg; }
.hero-photo:nth-child(20) { right: -6vw; top: 58vh; --rotate: 10deg; }
.hero-photo:nth-child(21) { left: 21vw; top: 56vh; --rotate: -10deg; }
.hero-photo:nth-child(22) { right: 28vw; bottom: 8vh; --rotate: 7deg; }
.hero-photo:nth-child(23) { left: -4vw; bottom: 15vh; --rotate: -7deg; }
.hero-photo:nth-child(24) { right: 9vw; bottom: 12vh; --rotate: 12deg; }
.hero-photo:nth-child(25) { left: 50vw; top: 7vh; --rotate: -13deg; }
.hero-photo:nth-child(26) { left: 71vw; top: 2vh; --rotate: 8deg; }
.hero-photo:nth-child(27) { left: 38vw; bottom: -14vh; --rotate: 11deg; }
.hero-photo:nth-child(28) { right: 42vw; bottom: -12vh; --rotate: -8deg; }

.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 50% 47%, rgba(255, 255, 255, 0.74) 0 10rem, rgba(255, 255, 255, 0.38) 19rem, transparent 31rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.28), rgba(255, 248, 236, 0.46));
  backdrop-filter: blur(0.6px);
}

.hero-copy {
  display: grid;
  justify-items: center;
  gap: 18px;
  max-width: 560px;
  padding: 44px 36px;
  text-align: center;
}

.hero-logo {
  width: clamp(110px, 18vw, 160px);
  height: auto;
  margin-bottom: 4px;
  filter: drop-shadow(0 8px 18px rgba(181, 138, 58, 0.18));
  opacity: 0;
  animation: hero-text-fade 1.15s ease forwards;
}

.hero-copy .eyebrow,
.hero-copy h1,
.hero-copy .hero-lead {
  opacity: 0;
  animation: hero-text-fade 1.15s ease forwards;
}

.hero-copy .eyebrow {
  animation-delay: 0.18s;
}

.hero-copy h1 {
  animation-delay: 0.48s;
}

.hero-copy .hero-lead {
  animation-delay: 0.86s;
}

@keyframes hero-text-fade {
  0% {
    opacity: 0;
    transform: translateY(18px);
    filter: blur(4px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

.eyebrow,
.section-kicker {
  margin: 0;
  color: var(--gold);
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", "YuGothic", sans-serif;
  font-size: 13px;
  font-weight: 700;
}

.hero h1 {
  margin: 0;
  writing-mode: vertical-rl;
  min-height: 360px;
  color: var(--text);
  font-size: 32px;
  font-weight: 500;
  line-height: 1.9;
  text-shadow: 0 2px 24px rgba(255, 255, 255, 0.85);
}

.hero-lead {
  max-width: 420px;
  margin: 0;
  font-size: 17px;
  font-weight: 600;
}

.hero-date {
  position: absolute;
  right: 32px;
  bottom: 28px;
  display: grid;
  min-width: 132px;
  padding: 16px 18px;
  color: var(--white);
  text-align: center;
  background: rgba(62, 58, 54, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 8px;
  box-shadow: 0 16px 32px rgba(62, 58, 54, 0.22);
}

.hero-date span {
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", "YuGothic", sans-serif;
  font-size: 12px;
}

.hero-date strong {
  font-size: 34px;
  line-height: 1.1;
}

.section {
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto;
  padding: 88px 0;
}

.intro-section {
  width: min(760px, calc(100% - 40px));
  margin-top: 0;
  padding-top: 0;
}

.section h2 {
  margin: 0;
  font-size: 34px;
  font-weight: 500;
  line-height: 1.45;
}

.section h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
}

.section-title {
  margin: 0 0 20px;
  color: var(--text);
  font-size: clamp(22px, 4vw, 30px);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-align: center;
}

.section p {
  margin: 0;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 32px;
}

.section-heading > p {
  max-width: 390px;
  color: rgba(62, 58, 54, 0.72);
}

.invitation-paper,
.rsvp-panel {
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 48px rgba(70, 50, 30, 0.08);
}

.invitation-paper {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 0;
  padding: clamp(40px, 7vw, 72px) clamp(22px, 6vw, 56px);
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse 30% 82% at center, rgba(255, 248, 236, 0.78), rgba(255, 248, 236, 0.22) 66%, transparent 100%),
    rgba(255, 255, 255, 0.72);
}

.teacher-message {
  display: grid;
  justify-items: center;
  gap: 10px;
}

.teacher-logo {
  width: clamp(95px, 17vw, 140px);
  height: auto;
  margin-top: clamp(6px, 1.5vw, 12px);
  filter: drop-shadow(0 8px 14px rgba(181, 138, 58, 0.1));
}

.teacher-message h2 {
  margin: 0;
  color: var(--text);
  font-size: clamp(30px, 5vw, 44px);
  font-weight: 500;
  letter-spacing: 0.28em;
}

.teacher-message h2 span {
  color: var(--gold);
}

.message-sub {
  margin: 0;
  color: var(--text);
  font-size: clamp(18px, 3vw, 25px);
  letter-spacing: 0.18em;
}

.message-body {
  display: grid;
  gap: 20px;
  max-width: 720px;
}

.message-body p {
  margin: 0;
  font-size: clamp(15px, 2.2vw, 18px);
  line-height: 2.2;
  letter-spacing: 0.08em;
  text-align: center;
}

.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: min(330px, 72vw);
  margin: clamp(24px, 4vw, 40px) 0;
  color: var(--gold);
  justify-self: center;
}

.ornament span {
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.7;
}

.ornament i {
  width: 7px;
  height: 7px;
  background: var(--gold);
  transform: rotate(45deg);
}

.paper-footer {
  display: grid;
  justify-items: center;
  gap: 8px;
}

.paper-footer p {
  color: rgba(62, 58, 54, 0.74);
}

.detail-sheet {
  padding: clamp(22px, 4vw, 34px) clamp(18px, 4vw, 34px);
  background: rgba(255, 255, 255, 0.62);
  border-top: 1px solid rgba(181, 138, 58, 0.3);
  border-bottom: 1px solid rgba(181, 138, 58, 0.3);
}

.detail-block {
  width: 100%;
  max-width: 760px;
  margin: clamp(20px, 3vw, 28px) 0;
  padding: clamp(20px, 4vw, 30px) clamp(16px, 4vw, 28px);
  border-top: 1px solid rgba(181, 138, 58, 0.25);
  border-bottom: 1px solid rgba(181, 138, 58, 0.25);
  text-align: left;
}

.detail-row {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 14px 0;
}

.detail-row + .detail-row {
  border-top: 1px dashed rgba(181, 138, 58, 0.25);
}

.detail-icon {
  position: relative;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  background: rgba(255, 248, 236, 0.5);
  border: 1px solid var(--gold);
  border-radius: 50%;
  font-family: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", serif;
  font-size: 15px;
}

.detail-icon.calendar::before {
  content: "";
  position: absolute;
  top: 11px;
  left: 13px;
  right: 13px;
  height: 3px;
  border-top: 2px solid currentColor;
}

.detail-icon.calendar::after {
  content: "";
  position: absolute;
  inset: 17px 12px 11px;
  border: 1px solid currentColor;
  border-radius: 2px;
}

.detail-icon.calendar span {
  position: relative;
  top: 4px;
  font-size: 10px;
}

.detail-icon.venue span {
  font-size: 13px;
}

.detail-icon.fee span {
  font-size: 19px;
}

.detail-label {
  margin-bottom: 4px;
  color: var(--gold);
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", "YuGothic", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.4em;
}

.detail-value {
  color: var(--text);
  font-size: clamp(15px, 2.4vw, 18px);
  line-height: 1.7;
  letter-spacing: 0.08em;
}

.detail-value strong {
  display: block;
  margin: 2px 0;
  font-size: clamp(20px, 3.4vw, 26px);
  font-weight: 500;
  letter-spacing: 0.12em;
}

.detail-date-time {
  display: grid;
  gap: 4px;
}

.detail-date-time strong {
  margin: 0;
  font-size: clamp(16px, 2.5vw, 20px);
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.detail-value small {
  margin-left: 4px;
  font-size: 0.55em;
  letter-spacing: 0.1em;
}

.detail-sub {
  margin-top: 4px;
  color: rgba(62, 58, 54, 0.62);
  font-size: 13px;
  letter-spacing: 0.06em;
}

.detail-list {
  display: grid;
  gap: 0;
  margin: 0;
}

.detail-list div {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 22px;
  padding: 18px 0;
  border-bottom: 1px dashed rgba(181, 138, 58, 0.28);
}

.detail-list div:last-child {
  border-bottom: 0;
}

.detail-list dt {
  color: var(--gold);
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", "YuGothic", sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.detail-list dd {
  display: grid;
  gap: 4px;
  margin: 0;
}

.detail-list span {
  color: rgba(62, 58, 54, 0.74);
}

.detail-list strong {
  color: var(--gold);
  font-size: clamp(18px, 2.8vw, 24px);
  font-weight: 500;
  letter-spacing: 0.08em;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.detail-item {
  display: grid;
  gap: 10px;
  min-height: 230px;
  padding: 24px;
}

.detail-number {
  color: var(--gold);
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", "YuGothic", sans-serif;
  font-size: 14px;
  font-weight: 800;
}

.detail-item p {
  color: rgba(62, 58, 54, 0.72);
}

.detail-item strong {
  align-self: end;
  color: var(--gold);
  font-size: 18px;
  font-weight: 600;
}

.program {
  width: 100%;
  max-width: 760px;
  margin: clamp(32px, 5vw, 48px) 0 0;
}

.program-note {
  margin: 12px auto 20px;
  padding: 10px 16px;
  max-width: 560px;
  font-size: 13px;
  text-align: center;
  color: #8a6a3a;
  background: rgba(245, 222, 179, 0.35);
  border: 1px dashed rgba(173, 130, 64, 0.45);
  border-radius: 8px;
  letter-spacing: 0.02em;
}

.program-list {
  position: relative;
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.program-list::before {
  content: "";
  position: absolute;
  top: 12px;
  bottom: 12px;
  left: 80px;
  width: 1px;
  background: linear-gradient(180deg, transparent 0%, var(--gold) 8%, var(--gold) 92%, transparent 100%);
  opacity: 0.4;
}

.program-item {
  position: relative;
  display: grid;
  grid-template-columns: 56px 24px minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
  padding: 14px 0;
}

.program-dot {
  width: 10px;
  height: 10px;
  align-self: center;
  justify-self: center;
  background: var(--white);
  border: 1.5px solid var(--gold);
  border-radius: 50%;
  transform: translateY(2px);
}

.program-time {
  color: var(--gold);
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", "YuGothic", sans-serif;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
}

.program-text {
  color: var(--text);
  font-size: 16px;
  letter-spacing: 0.1em;
}

.program-text small {
  display: block;
  margin-top: 2px;
  color: rgba(62, 58, 54, 0.62);
  font-size: 12px;
  letter-spacing: 0.05em;
}

.rsvp-section {
  width: min(760px, calc(100% - 40px));
  padding-bottom: 96px;
}

.rsvp-panel {
  display: block;
  padding: clamp(32px, 5vw, 56px) clamp(20px, 5vw, 48px);
  background:
    radial-gradient(ellipse 36% 80% at center, rgba(255, 248, 236, 0.68), transparent 78%),
    rgba(255, 255, 255, 0.78);
  border-radius: 8px;
  box-shadow:
    0 30px 60px rgba(70, 50, 30, 0.12),
    0 8px 16px rgba(70, 50, 30, 0.08);
}

.rsvp-copy {
  display: grid;
  justify-items: center;
  gap: 12px;
  text-align: center;
}

.rsvp-copy p {
  max-width: 460px;
  color: rgba(62, 58, 54, 0.72);
  line-height: 2;
}

.rsvp-panel > .ornament {
  width: min(460px, 100%);
  margin-inline: auto;
}

.rsvp-form {
  --form-section-gap: clamp(22px, 3.4vw, 30px);
  --form-field-gap: 10px;
  display: grid;
  gap: var(--form-section-gap);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--form-section-gap) 14px;
}

.form-row > label {
  display: grid;
  min-width: 0;
  gap: var(--form-field-gap);
}

.rsvp-form label,
.rsvp-form fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

.form-group {
  display: grid;
  gap: var(--form-field-gap);
  margin: 0;
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", "YuGothic", sans-serif;
  font-size: 14px;
}

.form-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--text);
  font-family: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.req {
  color: var(--gold);
  background: rgba(217, 190, 120, 0.15);
  border-radius: 2px;
  padding: 2px 6px;
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", "YuGothic", sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.rsvp-form input[type="text"],
.rsvp-form input[type="email"],
.rsvp-form input[type="tel"],
.rsvp-form input[type="number"],
.rsvp-form select,
.rsvp-form textarea {
  width: 100%;
  border: 1px solid rgba(181, 138, 58, 0.34);
  border-radius: 2px;
  padding: 14px 16px;
  color: var(--text);
  background: var(--base);
  outline: 0;
  letter-spacing: 0.06em;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.rsvp-form select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--gold) 50%),
    linear-gradient(135deg, var(--gold) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 54%,
    calc(100% - 12px) 54%;
  background-size: 6px 6px;
  background-repeat: no-repeat;
}

.rsvp-form textarea {
  resize: vertical;
}

.rsvp-form input:focus,
.rsvp-form select:focus,
.rsvp-form textarea:focus {
  border-color: var(--gold);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(217, 190, 120, 0.22);
}

.participant-fields.is-disabled {
  opacity: 0.54;
}

.participant-fields.is-disabled input,
.attendee-options.is-disabled {
  background: rgba(243, 241, 236, 0.82);
}

.attendee-options.is-disabled {
  opacity: 0.48;
}

.attend-toggle {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.attend-toggle.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.attend-option {
  position: relative;
  cursor: pointer;
}

.attend-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.attend-option .face {
  min-height: 112px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 18px 12px;
  border: 1px solid rgba(181, 138, 58, 0.3);
  border-radius: 4px;
  color: var(--text);
  background: var(--base);
  font-family: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", serif;
  font-size: 16px;
  letter-spacing: 0.14em;
  text-align: center;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.attend-option .face small {
  color: rgba(62, 58, 54, 0.55);
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", "YuGothic", sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.attend-option .option-icon {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  opacity: 0.72;
}

.attend-option .option-icon svg {
  width: 18px;
  height: 18px;
  display: block;
  overflow: visible;
}

.attend-option .option-icon path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.attend-option input:checked + .face {
  color: #8f6322;
  background: linear-gradient(180deg, #fbf3e2 0%, #f0e3c8 100%);
  border-color: var(--gold);
  box-shadow: 0 4px 10px rgba(181, 138, 58, 0.18);
}

.attend-option input:checked + .face .option-icon {
  color: var(--white);
  background: var(--gold);
  border-color: var(--gold);
  opacity: 1;
}

.attendee-options.is-disabled .face {
  color: rgba(62, 58, 54, 0.48);
  background: rgba(243, 241, 236, 0.82);
  box-shadow: none;
}

.btn-primary {
  width: 100%;
  min-height: 58px;
  display: block;
  margin-top: 0;
  padding: 18px 24px;
  color: #8f6322;
  background: var(--base);
  border: 1px solid var(--gold);
  border-radius: 999px;
  font-family: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", serif;
  font-size: 16px;
  letter-spacing: 0.22em;
  transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  color: var(--white);
  background: linear-gradient(180deg, var(--gold-light), var(--gold));
  box-shadow: 0 8px 20px rgba(181, 138, 58, 0.3);
  transform: translateY(-1px);
}

.form-result {
  min-height: 32px;
  margin: 0;
  color: var(--gold);
  font-weight: 700;
  line-height: 1.8;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 32px;
  color: rgba(62, 58, 54, 0.72);
  border-top: 1px solid rgba(181, 138, 58, 0.2);
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--gold);
  font-weight: 700;
  text-decoration: none;
}

@media (max-width: 920px) {
  .hero {
    min-height: 104svh;
    margin-bottom: 72px;
    padding-top: 58px;
  }

  .hero h1 {
    min-height: 320px;
    font-size: 30px;
  }

  .hero-date {
    right: 20px;
    bottom: 20px;
  }

  .section {
    width: min(100% - 32px, 760px);
    padding: 72px 0;
  }

  .section-heading,
  .intro-grid,
  .rsvp-panel {
    grid-template-columns: 1fr;
  }

  .section-heading {
    display: grid;
    gap: 14px;
  }

  .detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  body {
    font-size: 15px;
  }

  .message-body br {
    display: none;
  }

  .hero {
    min-height: 100svh;
    margin-bottom: 56px;
    padding: 50px 18px 76px;
  }

  .hero-scrim {
    background:
      radial-gradient(circle at 50% 43%, rgba(255, 255, 255, 0.72) 0 8rem, rgba(255, 255, 255, 0.36) 16rem, transparent 27rem),
      linear-gradient(180deg, rgba(255, 255, 255, 0.3), rgba(255, 248, 236, 0.5));
  }

  .hero-photo {
    width: clamp(145px, 52vw, 220px);
    border-width: 6px;
    opacity: 0.74;
  }

  .hero-photo:nth-child(1) {
    left: -18vw;
    top: 4vh;
  }

  .hero-photo:nth-child(2) {
    left: 42vw;
    top: -4vh;
  }

  .hero-photo:nth-child(3) {
    right: -24vw;
    top: 21vh;
  }

  .hero-photo:nth-child(4) {
    left: -22vw;
    top: 37vh;
  }

  .hero-photo:nth-child(5) {
    right: -20vw;
    top: 57vh;
  }

  .hero-photo:nth-child(6) {
    left: 19vw;
    bottom: -5vh;
  }

  .hero-photo:nth-child(7),
  .hero-photo:nth-child(8),
  .hero-photo:nth-child(n + 15) {
    display: none;
  }

  .stream-photo {
    width: 190px;
    border-width: 6px;
    opacity: 0.28;
  }

  .stream-photo:not(:nth-child(3n + 1)) {
    display: none;
  }

  .hero-copy {
    gap: 14px;
    padding: 18px 10px;
  }

  .hero h1 {
    min-height: 270px;
    font-size: 27px;
    line-height: 1.8;
  }

  .hero-lead {
    font-size: 15px;
  }

  .hero-date {
    right: 16px;
    bottom: 14px;
    min-width: 116px;
    padding: 12px 14px;
  }

  .hero-date strong {
    font-size: 28px;
  }

  .section {
    width: min(100% - 28px, 520px);
    padding: 60px 0;
  }

  .section h2 {
    font-size: 27px;
  }

  .section h3 {
    font-size: 18px;
  }

  .detail-row {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 12px;
  }

  .detail-icon {
    width: 40px;
    height: 40px;
  }

  .program-list::before {
    left: 80px;
  }

  .program-item {
    grid-template-columns: 56px 24px minmax(0, 1fr);
    gap: 10px;
  }

  .detail-list div {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 16px 0;
  }

  .rsvp-panel {
    padding: 24px;
  }

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

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    padding: 28px 18px;
  }
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s ease, transform 0.9s ease;
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-copy .eyebrow,
  .hero-copy h1,
  .hero-copy .hero-lead,
  .hero-logo {
    opacity: 1;
    animation: none;
    filter: none;
    transform: none;
  }

  .petal {
    animation: none;
    display: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
