/* ============================================================
   Luxury Web Wedding Invitation - Stylesheet
   Sage silk, pearl and champagne gold — one gatefold design
   ============================================================ */

:root {
  /* Palette */
  --ivory-bg: #f7f5ee;
  --ivory-card: #fffdf9;
  --cream-border: #e6dac8;
  --gold-primary: #9a8051;
  --gold-light: #dfc48b;
  --gold-dark: #846326;
  --text-dark: #2c2623;
  --text-body: #4a413b;
  --text-muted: #84776c;

  /* Reel 2: Sage Green Silk Gatefold Doors */
  --sage-light: #7c8b76;
  --sage-mid: #687763;
  --sage-deep: #515e4d;
  --sage-shadow: rgba(25, 33, 23, 0.55);

  /* Typography */
  --font-serif-en: "Cormorant Garamond", Georgia, serif;
  --font-display-en: "Cinzel Decorative", "Cormorant Garamond", serif;
  --font-script-en: "Great Vibes", cursive;
  --font-mincho-ja: "Shippori Mincho", "Yu Mincho", "Hiragino Mincho ProN", serif;

  /* Phone Canvas Sizing */
  --phone-max-w: 460px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-mincho-ja);
  background-color: #1f221e;
  color: var(--text-dark);
  line-height: 1.8;
  min-height: 100dvh;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Lock page scroll while the cover envelope/doors are closed */
body[data-state="closed"] {
  overflow: hidden;
  height: 100dvh;
}

/* ============================================================
   Desktop Ambient Backdrop (PC閲覧時の左右背景)
   ============================================================ */
.desktop-ambient-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(182, 144, 74, 0.14), transparent 55%),
    radial-gradient(circle at 80% 50%, rgba(124, 139, 118, 0.18), transparent 55%),
    linear-gradient(135deg, #232822 0%, #191716 100%);
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-left: max(4vw, calc(50vw - 540px));
}

.desktop-ambient-brand {
  color: rgba(250, 246, 240, 0.85);
  max-width: 260px;
  text-align: center;
}

.desktop-eyebrow {
  display: block;
  font-family: var(--font-serif-en);
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  color: var(--gold-light);
  margin-bottom: 0.5rem;
}

.desktop-monogram {
  font-family: var(--font-serif-en);
  font-weight: 400;
  font-size: 3.4rem;
  letter-spacing: 0.12em;
  border-top: 1px solid rgba(223, 196, 139, 0.35);
  border-bottom: 1px solid rgba(223, 196, 139, 0.35);
  padding: 0.4rem 0;
  margin-bottom: 0.6rem;
}

.desktop-date {
  font-family: var(--font-serif-en);
  font-size: 1.05rem;
  letter-spacing: 0.25em;
  color: rgba(250, 246, 240, 0.65);
}

@media (max-width: 960px) {
  .desktop-ambient-brand {
    display: none;
  }
}

/* ============================================================
   Phone Stage Container (スマホサイズ・メインキャンバス)
   ============================================================ */
.phone-stage {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: var(--phone-max-w);
  min-height: 100dvh;
  background-color: var(--ivory-bg);
  box-shadow: 0 0 65px rgba(0, 0, 0, 0.65);
  overflow: hidden;
}

/* Floating Sound & Replay Controls */
.floating-controls {
  position: fixed;
  bottom: 18px;
  right: max(14px, calc(50vw - 205px));
  z-index: 900;
  display: flex;
  gap: 8px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

body[data-state="opened"] .floating-controls {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.icon-pill-btn {
  appearance: none;
  border: 1px solid rgba(182, 144, 74, 0.45);
  background: rgba(255, 253, 249, 0.92);
  backdrop-filter: blur(8px);
  color: var(--text-dark);
  font-family: var(--font-serif-en);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  padding: 7px 13px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(44, 38, 35, 0.15);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.icon-pill-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(44, 38, 35, 0.22);
}

.audio-bars {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 11px;
}

.audio-bars span {
  width: 2px;
  height: 4px;
  background: var(--gold-primary);
  border-radius: 1px;
  transition: height 0.2s ease;
}

.audio-bars.playing span:nth-child(1) {
  animation: eqBar 0.8s ease-in-out infinite alternate;
}
.audio-bars.playing span:nth-child(2) {
  animation: eqBar 0.55s ease-in-out infinite alternate 0.2s;
}
.audio-bars.playing span:nth-child(3) {
  animation: eqBar 0.7s ease-in-out infinite alternate 0.35s;
}

@keyframes eqBar {
  0% { height: 3px; }
  100% { height: 11px; }
}

/* ============================================================
   OPENING COVER OVERLAY (セージグリーンの観音開き)
   ============================================================ */
.cover-overlay {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--phone-max-w);
  height: 100dvh;
  z-index: 1000;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: opacity 0.85s ease, visibility 0.85s ease;
}

body[data-state="opened"] .cover-overlay {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.cover-scene { position: absolute; inset: 0; width: 100%; height: 100%; }
.cover-gatefold { perspective: 1600px; overflow: hidden; }
.gatefold-peek-bg { position: absolute; inset: 0; overflow: hidden; }
.peek-bg-img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); filter: brightness(.8); transition: transform 2s ease, filter 2s ease; }
.gatefold-doors { position: absolute; inset: 0; display: flex; justify-content: space-between; perspective: 1600px; }
.gate-door {
  position: relative; width: 50%; height: 100%;
  background: linear-gradient(100deg, #f3e8c00a, #25351f30), url('assets/sage-silk.webp') center / auto 100%;
  box-shadow: inset 0 0 50px #26351b20, 0 0 20px #13210e90;
  transition: transform 1.7s cubic-bezier(.45,.04,.2,1) .35s;
  backface-visibility: hidden; will-change: transform;
}
.gate-door::after { content: ''; position: absolute; inset: 13px; border: 1px solid #d6d2af45; box-shadow: 0 0 0 5px #202b1910; }
.gate-door-left { transform-origin: left center; border-right: 1px solid #b7b996; background-position: left center; }
.gate-door-right { transform-origin: right center; border-left: 1px solid #48543e; background-position: right center; }
.door-inner-border { position: absolute; inset: 21px; border: 1px solid #e7e0c540; }
.cover-heading { position: absolute; top: 13%; width: 100%; text-align: center; color: #f5f1df; transition: opacity .35s ease; }
.cover-kicker { display: block; font-family: var(--font-serif-en); font-size: 10px; letter-spacing: .24em; margin-bottom: 12px; }
.cover-title { font-family: var(--font-script-en); font-size: clamp(30px,8vw,39px); text-shadow: 0 1px 3px #26301c50; }
.gatefold-crest-button { position: absolute; top: 45%; left: 50%; width: min(76%,320px); aspect-ratio: 1; transform: translate(-50%,-50%); filter: drop-shadow(0 12px 12px #26301c80); transition: transform .65s ease, opacity .5s ease .15s, filter .5s ease; }
.crest-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.crest-center-text { position: absolute; inset: 28% 20% 23%; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #806335; }
.crest-eyebrow { font-family: var(--font-serif-en); font-size: 8px; letter-spacing: .15em; }
.crest-monogram { font-family: var(--font-script-en); font-size: clamp(30px,8vw,39px); line-height: 1.5; white-space: nowrap; margin-top: 2px; text-shadow: 0 1px 0 #fff; }
.crest-date { font-family: var(--font-serif-en); font-size: 8px; letter-spacing: .10em; padding-top: 5px; border-top: 1px solid #ac916544; }
.cover-dedication { position: absolute; top: 69%; left: 0; width: 100%; text-align: center; color: #f8f3e6; transition: opacity .4s ease; }
.cover-couple { display: block; font-family: var(--font-serif-en); font-size: 25px; letter-spacing: .08em; }
.cover-couple i { font-family: var(--font-script-en); margin: 0 6px; }
.cover-venue { display: block; margin-top: 8px; font-family: var(--font-serif-en); font-size: 9px; letter-spacing: .17em; }
.gatefold-footer-hint { position: absolute; bottom: max(5.5%,env(safe-area-inset-bottom)); left: 0; width: 100%; display: flex; flex-direction: column; align-items: center; color: #fff9e9; transition: opacity .35s ease; }
.hint-rule { width: 1px; height: 24px; margin-bottom: 12px; background: #e2d8b7a8; }
.gate-hint-en { font-family: var(--font-serif-en); font-style: italic; font-size: 16px; letter-spacing: .1em; }
.gate-hint-ja { font-size: 10px; letter-spacing: .17em; margin-top: 3px; }
.cover-overlay:focus-visible { outline: 2px solid #f4e8c8; outline-offset: -8px; }
.cover-overlay.is-opening .gatefold-crest-button { transform: translate(-50%,-50%) scale(1.09); opacity: 0; filter: drop-shadow(0 20px 20px #26301c00); }
.cover-overlay.is-opening .cover-heading, .cover-overlay.is-opening .cover-dedication, .cover-overlay.is-opening .gatefold-footer-hint { opacity: 0; }
.cover-overlay.is-opening .gate-door-left { transform: rotateY(-105deg); }
.cover-overlay.is-opening .gate-door-right { transform: rotateY(105deg); }
.cover-overlay.is-opening .peek-bg-img { transform: scale(1); filter: brightness(1); }
@media (max-height: 650px) {
  .cover-heading { top: 7%; }
  .gatefold-crest-button { width: min(62%,245px); top: 44%; }
  .cover-dedication { top: 68%; }
  .cover-title { font-size: 30px; }
  .hint-rule { height: 10px; margin-bottom: 7px; }
}

/* Shared paper, typography and spacing throughout the invitation. */
body { background: #daddd2; color: #3f4938; }
.desktop-ambient-bg { background: radial-gradient(ellipse at 30% 20%,#faf9f1aa,transparent 70%),#daddd2; }
.desktop-ambient-bg::before { content: ''; position: absolute; inset: 0; opacity: .06; background: url('assets/sage-silk.webp') center / 700px; }
.desktop-ambient-brand { color: #505d49; }
.desktop-eyebrow, .desktop-date { color: #657158; }
.desktop-monogram { font-family: var(--font-script-en); font-size: 4.5rem; letter-spacing: .03em; border-color: #9caa8c70; }
.phone-stage { box-shadow: 0 0 90px #35402a22; }
.floating-controls { position: absolute; top: 12px; bottom: auto; right: 14px; }
.icon-pill-btn { min-height: 34px; font-size: 9px; padding: 7px 10px; border-color: #b7bea780; background: #fcfaf3e8; box-shadow: none; }
.icon-pill-btn:last-child { font-family: var(--font-mincho-ja); }
.invitation-main { width: 100%; background: #fcfaf5; }
.hero-section { position: relative; height: 100svh; min-height: 720px; max-height: 950px; overflow: hidden; background: #f4f0e7; text-align: center; }
.hero-bg-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center bottom; }
.hero-content { position: relative; z-index: 1; padding: clamp(55px,9svh,95px) 24px 0; display: flex; flex-direction: column; align-items: center; }
.hero-eyebrow { font-family: var(--font-serif-en); font-size: 11px; letter-spacing: .3em; color: #59654f; }
.hero-couple-names { margin: 28px 0 22px; display: flex; align-items: baseline; justify-content: center; gap: 10px; font-family: var(--font-serif-en); font-weight: 400; font-size: clamp(43px,12.8vw,59px); line-height: 1.15; color: #46563c; white-space: nowrap; }
.hero-couple-names .amp { font-family: var(--font-script-en); font-size: .65em; color: #988052; }
.hero-rule { width: 38px; height: 1px; background: #b6a57e; margin: 7px 0 18px; }
.hero-date-en { font-family: var(--font-serif-en); font-size: 19px; color: #46563c; }
.hero-venue { font-family: var(--font-serif-en); font-size: 9px; letter-spacing: .19em; margin-top: 6px; color: #5b624e; }
.hero-rsvp-link { color: #46563c; font-size: 11px; text-decoration: none; border-bottom: 1px solid #7b896a80; padding: 8px 4px; margin-top: 16px; }
.hero-rsvp-link span { margin-left: 10px; }
.scroll-indicator { position: absolute; bottom: 80px; right: 26px; display: flex; align-items: center; gap: 12px; font-family: var(--font-serif-en); font-size: 9px; letter-spacing: .16em; color: #34402d; text-decoration: none; background: #fcfaf5e6; padding: 10px 13px; }
.scroll-line { width: 1px; height: 23px; background: #748264; }
.invitation-nav { display: flex; justify-content: center; padding: 22px 10px; border-bottom: 1px solid #daddce; background: #f1f1e8; }
.invitation-nav a { color: #56634b; text-decoration: none; font-size: 11px; padding: 0 16px; border-right: 1px solid #c6cdbb; }
.invitation-nav a:last-child { border: 0; }
.section-card { position: relative; padding: 72px 32px; text-align: center; scroll-margin-top: 20px; }
.section-en-title { font-family: var(--font-script-en); font-size: 42px; font-weight: 400; line-height: 1.25; color: #748063; margin-bottom: 10px; }
.section-ja-title { font-size: 13px; font-weight: 500; letter-spacing: .2em; color: #48523f; margin-bottom: 34px; }
.ornament-divider { display: flex; align-items: center; justify-content: center; gap: 15px; color: #a18b60; margin-bottom: 24px; font-size: 10px; }
.ornament-divider::before, .ornament-divider::after { content: ''; width: 35px; height: 1px; background: #c7b999; }
.reveal-on-scroll { opacity: 0; transform: translateY(16px); transition: opacity .6s ease,transform .6s ease; }
.reveal-on-scroll.is-visible { opacity: 1; transform: none; }
.greeting-header,.greeting-footer { font-size: 13px; margin: 25px 0; }
.greeting-body { display: grid; gap: 25px; font-size: 13px; line-height: 2.4; white-space: pre-line; }
.greeting-sign { display: inline-block; min-width: 180px; border-top: 1px solid #cbd1be; padding-top: 23px; font-size: 11px; color: #68735b; }
.greeting-names { font-size: 21px; color: #46563c; letter-spacing: .18em; margin-top: 8px; }
.name-gap { display: inline-block; width: 24px; }
.countdown-section { background: #e9ede2; border-block: 1px solid #dce1d2; padding-top: 58px; padding-bottom: 58px; }
.countdown-section .section-ja-title { margin-bottom: 22px; }
.countdown-date-highlight { font-size: 13px; letter-spacing: .1em; margin-bottom: 18px; }
.countdown-grid { display: flex; align-items: center; justify-content: center; gap: 4px; margin-bottom: 28px; }
.countdown-box { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.cd-num { font-family: var(--font-serif-en); font-size: 45px; font-weight: 400; font-variant-numeric: tabular-nums; line-height: 1.2; color: #4e5e45; }
.cd-unit { font-family: var(--font-serif-en); font-size: 9px; letter-spacing: .15em; margin-top: 4px; color: #657359; }
.cd-colon { font-size: 18px; color: #8c977f; margin-top: -18px; }
.calendar-actions { display: grid; gap: 10px; }
.luxury-outline-btn { appearance: none; display: inline-flex; align-items: center; justify-content: center; min-height: 46px; width: 100%; padding: 12px 8px; border: 1px solid #a9b49a; border-radius: 0; background: transparent; color: #4e6042; font-family: var(--font-mincho-ja); font-size: 11px; letter-spacing: .04em; text-decoration: none; cursor: pointer; transition: background .2s,color .2s; }
.luxury-outline-btn:hover { background: #637357; color: #fffdf7; }
.profile-cards { display: grid; gap: 30px; }
.profile-card { display: grid; grid-template-columns: 64px 1fr; column-gap: 20px; text-align: left; padding-bottom: 30px; border-bottom: 1px solid #d6dbcd; }
.profile-card:last-child { padding-bottom: 0; border: 0; }
.profile-initial { grid-column: 1; grid-row: 1 / 4; border: 1px solid #bdb58f; border-radius: 50%; width: 60px; height: 78px; display: grid; place-items: center; font-family: var(--font-script-en); font-size: 32px; color: #79876a; }
.profile-role { font-family: var(--font-serif-en); font-size: 9px; letter-spacing: .12em; color: #67755b; }
.profile-name-ja { font-size: 21px; font-weight: 400; letter-spacing: .15em; }
.profile-name-en { font-family: var(--font-serif-en); font-size: 16px; font-style: italic; color: #67755b; }
.profile-msg { grid-column: 1 / -1; margin-top: 18px; font-size: 13px; line-height: 2.2; }
.schedule-section { background: #f0f1e8; }
.timeline-list { text-align: left; }
.timeline-item { display: grid; grid-template-columns: 65px 1fr; column-gap: 20px; position: relative; padding-bottom: 32px; }
.timeline-item:last-child { padding-bottom: 0; }
.tl-time { font-family: var(--font-serif-en); font-size: 26px; line-height: 1.3; color: #637353; grid-row: 1 / 3; padding-top: 2px; }
.tl-titles { display: flex; flex-direction: column; border-left: 1px solid #b8c2aa; padding-left: 20px; }
.tl-ja { font-size: 16px; color: #3d4b33; }
.tl-en { font-family: var(--font-serif-en); font-style: italic; font-size: 14px; color: #6e7963; }
.tl-desc { grid-column: 2; border-left: 1px solid #b8c2aa; padding: 8px 0 0 20px; font-size: 12px; line-height: 1.9; }
.venue-wordmark { display: flex; flex-direction: column; align-items: center; width: 120px; margin: 0 auto 30px; padding: 20px 0; border-block: 1px solid #c6cbb9; color: #5f6c53; }
.venue-wordmark span { font-family: Georgia,serif; font-size: 42px; line-height: 1.3; letter-spacing: -.04em; }
.venue-wordmark small { font-family: var(--font-serif-en); font-size: 10px; letter-spacing: .22em; }
.venue-name-en { font-family: var(--font-serif-en); font-size: 10px; letter-spacing: .1em; color: #67755a; margin-bottom: 6px; }
.venue-name-ja { font-size: 16px; font-weight: 500; letter-spacing: .01em; margin-bottom: 18px; }
.venue-details { font-size: 13px; margin-bottom: 16px; }
.venue-access-list { list-style: none; font-size: 12px; line-height: 2; margin-bottom: 24px; color: #65705b; }
.venue-map-frame { height: 220px; border: 1px solid #c2cab6; margin-bottom: 15px; background: #e9ede2; }
.venue-map-frame iframe { border: 0; width: 100%; height: 100%; }
.interlude-section { position: relative; padding: 66px 24px; text-align: center; color: #f9f6e9; background: linear-gradient(#3d503a55,#3d503a55),url('assets/sage-silk.webp') center / cover; }
.interlude-initial { display: block; font-family: var(--font-serif-en); font-size: 12px; letter-spacing: .25em; margin-bottom: 15px; }
.interlude-script { font-family: var(--font-script-en); font-size: 39px; margin-bottom: 14px; line-height: 1.5; }
.interlude-section p:last-child { font-size: 11px; letter-spacing: .1em; }
.rsvp-deadline-note { font-size: 12px; line-height: 2.3; margin-bottom: 38px; }
.rsvp-deadline-note strong { display: inline-block; font-weight: 500; color: #465b39; border-bottom: 1px solid #bdc5ad; }
.rsvp-form { display: flex; flex-direction: column; gap: 24px; text-align: left; }
.form-group { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.form-label { font-size: 13px; display: flex; align-items: center; gap: 8px; }
.req-badge { background: #e8ecdf; color: #56634b; border: 1px solid #cbd3bd; padding: 0 5px; font-size: 9px; }
.attendance-selector,.side-selector { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.attend-card,.side-pill { cursor: pointer; position: relative; }
.attend-card input,.side-pill input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.attend-card-body { display: flex; flex-direction: column; align-items: center; padding: 17px 6px; border: 1px solid #c8cfbb; background: #fcfaf5; }
.attend-en { font-family: var(--font-serif-en); font-size: 10px; letter-spacing: .15em; color: #647359; }
.attend-ja { font-size: 18px; margin: 3px 0; }
.attend-sub { font-size: 9px; color: #65705b; }
.attend-card input:checked + .attend-card-body { border-color: #71815d; background: #e9edde; box-shadow: inset 0 0 0 1px #71815d; }
.side-pill span { display: block; padding: 12px 4px; text-align: center; border: 1px solid #c8cfbb; font-size: 12px; }
.side-pill input:checked + span { background: #65765a; color: #fffdf7; border-color: #65765a; }
.attend-card input:focus-visible + span,.side-pill input:focus-visible + span { outline: 2px solid #637357; outline-offset: 4px; }
.luxury-input,.luxury-textarea { appearance: none; width: 100%; border: 1px solid #c7cebb; border-radius: 0; background: #fffefa; color: #3f4938; padding: 13px 12px; font-family: var(--font-mincho-ja); font-size: 16px; line-height: 1.7; }
.luxury-textarea { resize: vertical; }
.luxury-input::placeholder,.luxury-textarea::placeholder { font-size: 12px; color: #7b8273; }
.luxury-input:focus,.luxury-textarea:focus { outline: 1px solid #7a8967; box-shadow: 0 0 0 3px #8e9e791c; }
.form-row-2,.form-row-postal { display: grid; grid-template-columns: 1fr; gap: 24px; }
#guestPostal { max-width: 155px; }
.form-error-msg { font-size: 12px; color: #9b3c32; }
.luxury-submit-btn { appearance: none; cursor: pointer; border: 1px solid #60714f; background: #60714f; color: #fffdf6; width: 100%; min-height: 68px; padding: 13px; display: flex; flex-direction: column; align-items: center; gap: 4px; font-family: var(--font-mincho-ja); }
.luxury-submit-btn:hover { background: #4b5c3d; }
.luxury-submit-btn:disabled { opacity: .6; cursor: wait; }
.submit-en { font-family: var(--font-serif-en); font-size: 10px; letter-spacing: .22em; }
.submit-ja { font-size: 13px; letter-spacing: .05em; }
.rsvp-success-box { padding: 32px 20px; border: 1px solid #c4ceb6; background: #eef1e6; }
.success-seal { font-size: 28px; color: #65765a; }
.success-title { font-family: var(--font-script-en); font-weight: 400; font-size: 38px; }
.success-ja { font-size: 12px; margin: 20px 0; }
.invitation-footer { background: #45533d; color: #e9e5d5; padding: 50px 20px 106px; text-align: center; }
.footer-monogram { font-family: var(--font-script-en); font-size: 43px; }
.footer-names { font-family: var(--font-serif-en); font-size: 16px; letter-spacing: .1em; margin: 8px 0 20px; }
.footer-copy { font-family: var(--font-serif-en); font-size: 10px; letter-spacing: .18em; color: #d2d5c4; }
.footer-replay { appearance: none; border: 0; border-bottom: 1px solid #b6c0a7; padding: 10px 0; margin-top: 25px; background: none; color: #eeefdf; font-family: var(--font-mincho-ja); font-size: 11px; cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid #77865f; outline-offset: 4px; }
#invitationTitle:focus { outline: none; }
@media (max-width: 360px) {
  .section-card { padding: 60px 24px; }
  .hero-section { min-height: 680px; }
  .hero-content { padding-top: 68px; }
  .hero-couple-names { font-size: 42px; gap: 7px; }
  .hero-date-en { font-size: 17px; }
  .greeting-body { font-size: 13px; }
  .invitation-nav a { padding-inline: 12px; font-size: 10px; }
  .timeline-item { grid-template-columns: 58px 1fr; column-gap: 12px; }
  .tl-titles,.tl-desc { padding-left: 15px; }
  .venue-name-ja { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0ms !important; }
  .reveal-on-scroll { opacity: 1; transform: none; }
}

/* Reference-led textile invitation: DeaJSGTRSs4, reviewed 2026-11-02.
   Illustrations stay decorative; all event details remain live text. */
:root { --paper: #f7f3ed; --ink: #4c5749; }
.invitation-main { background: var(--paper); color: var(--ink); }
.hero-section { height: 100svh; min-height: 650px; max-height: 850px; background: var(--paper); }
.hero-bg-img { object-fit: fill; }
.hero-content { position: absolute; top: 23%; left: 18%; width: 64%; padding: 0; }
.hero-eyebrow { font-size: 10px; letter-spacing: .19em; }
.hero-couple-names { flex-direction: column; align-items: center; gap: 0; margin: 12px 0 14px; font-size: 49px; line-height: 1.04; color: var(--ink); }
.hero-couple-names .amp { font-family: var(--font-serif-en); font-size: 20px; font-style: italic; margin: 7px 0; color: #78816c; }
.hero-rule { margin: 0 0 12px; width: 26px; }
.hero-date-en { font-size: 15px; }
.hero-venue { font-size: 8px; letter-spacing: .09em; }
.scroll-indicator { bottom: 17px; right: 50%; transform: translateX(50%); padding: 6px 12px; white-space: nowrap; background: #f7f3ede8; font-size: 8px; }
.scroll-line { height: 14px; }
.floating-controls { top: auto; bottom: auto; right: 12px; transform: none; }
body[data-state="opened"] .floating-controls { top: 10px; }
.icon-pill-btn { background: #f7f3eddd; border-color: #aaa78b70; }
.section-en-title { font-family: var(--font-serif-en); font-size: 38px; font-weight: 500; line-height: 1.15; color: var(--ink); letter-spacing: .01em; }
.section-ja-title { font-size: 12px; letter-spacing: .1em; margin-bottom: 28px; }
.section-card { background: transparent; border: 0; padding: 56px 32px; }
.section-garland { display: block; width: calc(100% + 64px); max-width: none; height: auto; margin: -20px -32px 20px; mix-blend-mode: multiply; }
.full-width-art { width: 100%; height: auto; display: block; mix-blend-mode: multiply; }
.textile-frame { background-repeat: no-repeat; background-position: center; background-size: 100% 100%; text-align: center; }
.welcome-panel { background-image: url('assets/embroidery-welcome.webp'); min-height: 600px; display: grid; place-items: center; }
.welcome-panel .frame-copy { width: 60%; padding-top: 48px; }
.welcome-panel .section-en-title { font-size: 35px; margin-bottom: 30px; }
.welcome-message { font-size: 12px; line-height: 2.4; }
.welcome-sign { font-family: var(--font-serif-en); font-style: italic; font-size: 22px; margin-top: 35px; }
.greeting-section { padding-top: 40px; padding-bottom: 65px; }
.greeting-section .section-en-title { font-size: 34px; }
.greeting-body { gap: 25px; font-size: 13px; line-height: 2.3; }
.greeting-sign { border-color: #bdb39c; }
.ceremony-panel { background-image: url('assets/embroidery-arch.webp'); min-height: 650px; display: grid; place-items: center; }
.ceremony-panel .frame-copy { width: 62%; padding-top: 66px; }
.ceremony-panel .section-en-title { font-size: 34px; }
.ceremony-panel .section-ja-title { margin: 20px 0 30px; font-size: 11px; }
.ceremony-date { font-size: 12px; }
.ceremony-times { font-size: 12px; line-height: 2; margin: 24px 0; }
.ceremony-times strong { font-family: var(--font-serif-en); font-size: 29px; font-weight: 500; margin-left: 9px; }
.ceremony-location { font-size: 11px; margin-bottom: 25px; }
.text-link { color: var(--ink); font-size: 10px; text-decoration: none; border-bottom: 1px solid #bab298; padding-bottom: 6px; }
.swan-panel { margin: 12px 0 0; }
.countdown-section { padding-top: 18px; padding-bottom: 55px; }
.countdown-section .section-garland { margin-top: 0; margin-bottom: 5px; }
.countdown-date-highlight { font-size: 12px; }
.countdown-grid { gap: 14px; margin: 30px -10px; }
.countdown-box { position: relative; background: none; padding-top: 0; }
.countdown-box::before { content: ''; position: absolute; inset: 0 0 auto; aspect-ratio: 1; background: url('assets/embroidery-medallion.webp') center / contain no-repeat; mask-image: radial-gradient(ellipse, #000 65%, transparent 72%); pointer-events: none; }
.countdown-box .cd-num { position: relative; }
.cd-num { display: flex; align-items: center; justify-content: center; aspect-ratio: 1; font-size: 37px; line-height: 1; padding-top: 6px; }
.cd-unit { margin-top: 8px; }
.cd-colon { display: none; }
.calendar-actions { margin: 38px 12px 0; gap: 12px; }
.luxury-outline-btn { min-height: 44px; border-color: #b6af98; color: var(--ink); }
.celebration-panel { text-align: center; padding: 40px 0 20px; }
.celebration-panel .section-en-title { font-size: 33px; margin-bottom: 18px; }
.celebration-panel > p:not(.section-en-title) { font-size: 11px; padding: 0 24px; }
.celebration-panel .full-width-art { margin-top: 28px; }
.profile-section { background-image: url('assets/embroidery-arch.webp'); min-height: 900px; padding: 210px 26% 95px; }
.profile-section .section-en-title { font-size: 36px; }
.profile-section .section-ja-title { font-size: 11px; margin-bottom: 32px; }
.profile-cards { gap: 30px; }
.profile-card { display: block; text-align: center; padding-bottom: 30px; border-color: #c9bfa6; }
.profile-role { display: none; }
.profile-name-ja { font-size: 20px; }
.profile-name-en { font-size: 16px; }
.profile-msg { font-size: 12px; line-height: 2.1; margin-top: 12px; }
.schedule-section { padding-top: 70px; padding-bottom: 36px; }
.timeline-list { margin-top: 38px; }
.timeline-item { grid-template-columns: 95px 1fr; gap: 0; padding: 0 0 38px; min-height: 150px; }
.tl-art { width: 95px; height: 80px; grid-column: 1; grid-row: 1/4; align-self: start; background: url('assets/embroidery-timeline.webp') center -12px / 256px 384px no-repeat; mix-blend-mode: multiply; }
.tl-art-1 { background-position-y: -85px; }
.tl-art-2 { background-position-y: -157px; }
.tl-art-3 { background-position-y: -300px; }
.tl-time { grid-column: 2; grid-row: 1; padding: 0 0 8px 22px; font-size: 28px; line-height: 1.1; border-left: 2px dotted #a4ad93; color: var(--ink); }
.tl-titles { grid-column: 2; grid-row: 2; border-left: 2px dotted #a4ad93; padding-left: 22px; }
.tl-ja { font-size: 15px; }
.tl-en { font-size: 12px; }
.tl-desc { grid-row: 3; font-size: 11px; line-height: 1.9; padding: 8px 0 0 22px; border-left: 2px dotted #a4ad93; }
.timeline-item::after { content: ''; position: absolute; left: 90px; top: -7px; width: 12px; height: 12px; border-radius: 50%; background: radial-gradient(circle at 35% 30%,#fffefb,#e9deca 65%,#c3b6a2); box-shadow: 0 1px 3px #8c7f6233; }
.venue-section { padding-top: 55px; }
.venue-wordmark { margin: 0 auto 26px; border-color: #c9bfa6; }
.venue-map-frame { border-color: #c9bfa6; }
.rsvp-section { padding-top: 25px; }
.rsvp-section .section-en-title { font-size: 43px; }
.rsvp-section .section-garland { margin-bottom: 24px; }
.rsvp-form { background: #fffcf640; border: 1px solid #c8bda155; padding: 22px 17px; }
.luxury-input,.luxury-textarea { background: #fffdf8cc; border-color: #c5bfad; }
.attend-card-body { background: #fffcf6; }
.invitation-footer { background: var(--paper); color: var(--ink); padding: 25px 32px 60px; }
.invitation-footer .section-garland { margin-bottom: 20px; }
.footer-monogram { font-family: var(--font-serif-en); font-size: 38px; }
.footer-copy,.footer-replay { color: #75806a; }
.footer-replay { border-color: #b3b59f; }
@media (max-width: 360px) {
  .hero-content { top: 23%; }
  .hero-couple-names { font-size: 44px; }
  .hero-date-en { font-size: 13px; }
  .hero-venue { font-size: 7px; }
  .section-card { padding-left: 22px; padding-right: 22px; }
  .section-garland { width: calc(100% + 44px); margin-left: -22px; margin-right: -22px; }
  .welcome-panel { min-height: 550px; }
  .welcome-panel .section-en-title { font-size: 30px; }
  .welcome-message { font-size: 11px; }
  .ceremony-panel { min-height: 600px; }
  .ceremony-panel .section-en-title { font-size: 29px; }
  .ceremony-location { font-size: 10px; }
  .profile-section { padding-left: 26%; padding-right: 26%; padding-top: 215px; min-height: 900px; }
  .profile-section .section-ja-title { font-size: 10px; }
  .countdown-grid { gap: 9px; margin-left: -5px; margin-right: -5px; }
  .cd-num { font-size: 32px; }
  .timeline-item { grid-template-columns: 82px 1fr; }
  .tl-art { width: 82px; }
  .timeline-item::after { left: 77px; }
  .tl-time,.tl-titles,.tl-desc { padding-left: 16px; }
  .rsvp-form { padding: 20px 12px; }
}

/* Feather only decorative bitmap edges, preserving live text and controls. */
.section-garland, .full-width-art { mask-image: linear-gradient(transparent, #000 8%, #000 91%, transparent); }
.textile-frame { background-image: linear-gradient(var(--paper), transparent 28px, transparent calc(100% - 28px), var(--paper)), var(--frame-art); }
.welcome-panel { --frame-art: url('assets/embroidery-welcome.webp'); }
.ceremony-panel, .profile-section { --frame-art: url('assets/embroidery-arch.webp'); }
.tl-art { mask-image: radial-gradient(ellipse, #000 52%, transparent 77%); }
