/* =========================
   Base
========================= */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}

:root {
  --green-deep: #2d4a2d;
  --green-mid:  #4a7c4a;
  --green-pale: #8fc878;
  --gold:       #b8975a;
  --ivory:      #f8f4ed;
  --ivory-dark: #ede8df;
  --text-brown: #3a2a1a;
}

/* 和紙テクスチャ背景（SVGフィルター + アイボリーグラデ） */
body {
  margin: 0;
  font-family: "Noto Serif JP", serif;
  overflow-x: hidden;
  color: #2a2218;
  text-align: center;
  line-height: 1.6;
  letter-spacing: 0.05em;
  background-color: #f5f0e8;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeBlend in='SourceGraphic' mode='multiply' result='blend'/%3E%3CfeComposite in='blend' in2='SourceGraphic' operator='in'/%3E%3C/filter%3E%3Crect width='400' height='400' filter='url(%23noise)' opacity='0.06'/%3E%3C/svg%3E"),
    linear-gradient(175deg,
      #fdfaf4 0%,
      #f8f3ea 15%,
      #f4eddf 30%,
      #efe7d5 50%,
      #e8deca 65%,
      #dfd4bc 80%,
      #cfc6a8 92%,
      #bab58e 100%
    );
  background-attachment: fixed;
  background-size: 400px 400px, 100% 100%;
}

body.no-scroll { overflow: hidden; }

/* =========================
   プリロード（1.8秒で完了）
========================= */
#preloader {
  position: fixed;
  inset: 0;
  background: var(--green-deep);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}
#preloader.fade-out { opacity: 0; visibility: hidden; }

.preloader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.preloader-initials {
  font-family: "Great Vibes", cursive;
  font-size: clamp(3rem, 9vw, 5.5rem);
  color: var(--ivory);
  letter-spacing: 0.08em;
  opacity: 0;
  animation: pre-fade 0.7s ease 0.1s forwards;
}

.preloader-date {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(0.65rem, 1.8vw, 0.85rem);
  letter-spacing: 0.42em;
  color: rgba(248,244,237,0.6);
  opacity: 0;
  animation: pre-fade 0.7s ease 0.5s forwards;
}

.preloader-bar {
  width: 100px;
  height: 1px;
  background: rgba(248,244,237,0.18);
  overflow: hidden;
  opacity: 0;
  animation: pre-fade 0.5s ease 0.7s forwards;
}
.preloader-bar-fill {
  height: 100%;
  background: rgba(248,244,237,0.65);
  width: 0;
  /* 1.8s 完了に合わせ 0.8s で満タン */
  animation: pre-bar 0.85s ease 0.8s forwards;
}

@keyframes pre-fade { to { opacity: 1; } }
@keyframes pre-bar  { to { width: 100%; } }

/* =========================
   Typography
========================= */
h1, h2, .memory-title { font-family: "Great Vibes", cursive; font-weight: 400; }
p, body, .sub-title   { font-family: "Noto Serif JP", serif; word-break: keep-all; overflow-wrap: break-word; }

/* =========================
   ナビゲーション
========================= */
.hero-nav {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  padding: 14px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 999;
  background: rgba(0,0,0,0.28);
  backdrop-filter: blur(14px);
}

.nav-logo {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 13px;
  letter-spacing: 0.38em;
  color: rgba(255,255,255,0.8);
}

.hamburger {
  width: 32px; height: 22px;
  background: none; border: none;
  cursor: pointer;
  display: flex; flex-direction: column; justify-content: space-between; padding: 0;
}
.hamburger span {
  width: 100%; height: 1.5px;
  background: rgba(255,255,255,0.82);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-links {
  position: fixed;
  top: 0; right: -100%;
  width: 65%;
  height: 100vh;
  background: rgba(12,22,12,0.97);
  display: flex; flex-direction: column;
  justify-content: center; align-items: center;
  gap: 36px;
  transition: right 0.4s cubic-bezier(0.16,1,0.3,1);
  z-index: 1000;
}
.nav-links.active { right: 0; }

.nav-links a {
  font-family: "Cormorant Garamond", serif;
  font-size: 0.75rem;
  letter-spacing: 0.42em;
  color: rgba(255,255,255,0.68);
  text-decoration: none;
  position: relative;
  transition: color 0.3s;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -5px;
  width: 0; height: 1px;
  background: rgba(255,255,255,0.45);
  transition: width 0.3s ease;
}
.nav-links a:hover, .nav-links a.active { color: rgba(255,255,255,0.95); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.nav-close {
  position: absolute; top: 12px; right: 12px;
  background: none; border: none; color: #fff;
  font-size: 28px; cursor: pointer;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
}

/* =========================
   ヒーロー
========================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  overflow: hidden;
}

/* スライドショー背景 */
.hero-slides { position: absolute; inset: 0; z-index: 0; }
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  animation: hero-slide-cycle 15s ease-in-out infinite;
}
.slide-1 {
  background-image: url("hero.jpg");
  animation-delay: 0s;
}
.slide-2 {
  background-image: url("hero2.jpg"), url("hero.jpg"); /* hero2がなければheroで代替 */
  animation-delay: 5s;
  opacity: 0;
}
.slide-3 {
  background-image: url("hero3.jpg"), url("hero.jpg"); /* hero3がなければheroで代替 */
  animation-delay: 10s;
  opacity: 0;
}

@keyframes hero-slide-cycle {
  0%          { opacity: 0; transform: scale(1.04); }
  8%          { opacity: 1; }
  48%         { opacity: 1; }
  58%         { opacity: 0; transform: scale(1.08); }
  100%        { opacity: 0; transform: scale(1.04); }
}

.hero-overlay-gradient {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(160deg, rgba(0,0,0,0.32) 0%, rgba(0,0,0,0.58) 100%);
}

.hero-content {
  position: relative; z-index: 2;
  width: 100%;
  padding: 0 24px;
  text-align: center;
  pointer-events: none;
}

.cover_ttl {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 12px;
}

/* Our Wedding */
.cover_svg {
  display: block;
  margin: 0 auto 16px;
  opacity: 0;
  animation: logo-in 1.1s cubic-bezier(0.16,1,0.3,1) 0.2s forwards;
}
.cover_svg .opening-logo {
  display: inline-block;
  font-family: "Great Vibes", cursive;
  font-size: clamp(4.2rem, 11vw, 9rem);
  color: #fff;
  letter-spacing: 0.05em;
  text-shadow: 0 6px 28px rgba(0,0,0,0.3);
}
@keyframes logo-in {
  0%   { opacity: 0; transform: translateY(26px) scale(0.97); filter: blur(5px); }
  100% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

/* タイプライター */
.typewriter-wrap {
  display: flex;
  justify-content: center; align-items: center;
  margin: 0 0 16px;
  min-height: 1.8em;
  opacity: 0;
}
.typewriter {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: clamp(0.88rem, 1.9vw, 1.12rem);
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.85);
}
.typewriter-cursor {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(0.88rem, 1.9vw, 1.12rem);
  color: rgba(255,255,255,0.65);
  margin-left: 2px;
  animation: cur-blink 0.7s step-end infinite;
}
.typewriter-cursor.hidden { visibility: hidden; }
@keyframes cur-blink { 0%,100%{opacity:1} 50%{opacity:0} }

/* 区切り線 */
.cover_line {
  display: block;
  width: 0; height: 1px;
  background: rgba(255,255,255,0.45);
  margin: 0 auto 16px;
}
.cover_line.expand { animation: line-out 0.8s ease forwards; }
@keyframes line-out { from{width:0} to{width:60px} }

/* 日付 */
.cover_date {
  display: block;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(0.68rem, 1.4vw, 0.86rem);
  letter-spacing: 0.45em;
  color: rgba(255,255,255,0.72);
  opacity: 0;
}
.cover_date.show { animation: date-in 0.8s ease forwards; }
@keyframes date-in { from{opacity:0;transform:translateY(8px)} to{opacity:1;transform:translateY(0)} }

/* =========================
   ボタニカル区切り
========================= */
.botanical-divider {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  line-height: 0;
  overflow: visible;
  padding: 0 16px;
}
.botanical-divider svg { width: 100%; height: auto; display: block; }
.botanical-divider--flip svg { transform: scaleX(-1); }

/* =========================
   Section 共通
========================= */
section { padding: 40px 20px; }

section:not(.hero) h2 {
  font-size: clamp(2.2rem, 7vw, 3rem);
  color: var(--green-deep);
  position: relative;
  display: inline-block;
  padding-bottom: 10px;
  margin-bottom: 28px;
}
section:not(.hero) h2::after {
  content: "";
  position: absolute;
  left: 50%; transform: translateX(-50%);
  bottom: 0;
  width: 56px; height: 1px;
  background: rgba(184,151,90,0.45);
}

.message-text {
  max-width: 600px;
  margin: 0 auto;
  white-space: pre-line;
  font-size: 0.95rem;
  line-height: 2;
  color: #3a2a1a;
}

/* =========================
   ボタン
========================= */
.section-button {
  display: inline-flex;
  align-items: center; justify-content: center;
  gap: 8px;
  padding: 11px 28px;
  border-radius: 6px;
  border: 1px solid rgba(184,151,90,0.32);
  background: rgba(253,248,240,0.96);
  color: #5a3e28;
  font-family: "Noto Serif JP", serif;
  font-size: 0.83rem;
  font-weight: 400;
  letter-spacing: 0.13em;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(100,70,40,0.09);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  cursor: pointer;
  min-height: 44px;
}
.section-button:hover, .section-button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(100,70,40,0.14);
  border-color: rgba(184,151,90,0.52);
}
.section-button:focus-visible {
  outline: 2px solid rgba(184,151,90,0.4);
  outline-offset: 3px;
}

.sub-title {
  margin: 8px auto 0;
  color: #6b4f3a;
  font-size: 0.96rem;
  font-style: italic;
  letter-spacing: 0.07em;
  line-height: 1.8;
}

/* =========================
   Profile — 左右2カラム
========================= */
.profile-section { padding: 40px 16px 60px; }

.profile-duo {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 24px;
  max-width: 820px;
  margin: 0 auto 48px;
  /* スマホは必ず縦積み、PCは横並び */
  flex-direction: column;
  align-items: center;
}

.profile-ampersand {
  font-family: "Great Vibes", cursive;
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  color: var(--gold);
  opacity: 0.7;
  flex-shrink: 0;
  margin: 0;
  line-height: 1;
}

.profile-card {
  width: 100%;
  max-width: 320px;
  background: rgba(255,252,246,0.88);
  border: 1px solid rgba(184,151,90,0.15);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(50,40,20,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.profile-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(50,40,20,0.14);
}

.profile-img-wrap {
  width: 100%;
  aspect-ratio: 4 / 5;
  max-height: 340px;
  overflow: hidden;
}
.profile-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center center;
  transition: transform 0.6s ease;
}
.profile-card:hover .profile-img-wrap img { transform: scale(1.04); }

.profile-body { padding: 18px 18px 22px; }

.profile-role {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  color: var(--gold);
  margin: 0 0 6px;
}

.profile-name {
  font-family: "Noto Serif JP", serif;
  font-size: 1.02rem;
  font-weight: 400;
  color: var(--green-deep);
  margin: 0 0 4px;
  letter-spacing: 0.12em;
}

.profile-ruby {
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  color: #888;
  margin: 0 0 12px;
}

.profile-msg {
  font-size: 0.82rem;
  line-height: 1.85;
  color: #4a3828;
  margin: 0;
}

/* PC（600px以上）は横並び */
@media (min-width: 600px) {
  .profile-duo {
    flex-direction: row;
    align-items: flex-start;
    flex-wrap: nowrap;
  }
  .profile-card {
    flex: 1 1 0;
    max-width: 300px;
  }
  .profile-ampersand {
    align-self: center;
    margin-top: -12px;
  }
  .profile-img-wrap {
    height: auto;
    aspect-ratio: 3/4;
  }
}

/* =========================
   Memory Slider（ポラロイド傾き / 自動スクロール + スワイプ対応）
========================= */
.memory-section { overflow: hidden; padding: 0 0 16px; }

.memory-slider {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  touch-action: pan-x;
  -webkit-overflow-scrolling: touch;   /* iOSの慣性スクロール */
  scrollbar-width: none;               /* Firefox: スクロールバー非表示 */
  -ms-overflow-style: none;
  cursor: grab;
}
.memory-slider::-webkit-scrollbar { display: none; } /* Chrome/Safari: スクロールバー非表示 */
.memory-slider:active { cursor: grabbing; }

.memory-track {
  display: flex; gap: 22px;
  width: max-content;
  padding: 20px 0;
}
.memory-photo {
  width: 130px; height: 185px;
  object-fit: cover;
  border-radius: 3px;
  border: 10px solid white;
  border-bottom-width: 30px;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0,0,0,0.13);
  transition: transform 0.3s ease;
}
.memory-photo:nth-child(4n+1) { transform: rotate(-4deg); }
.memory-photo:nth-child(4n+2) { transform: rotate(3.5deg); }
.memory-photo:nth-child(4n+3) { transform: rotate(-2.5deg); }
.memory-photo:nth-child(4n+0) { transform: rotate(5deg); }
.memory-photo:hover { transform: rotate(0deg) scale(1.04) !important; }
@media (min-width: 481px) { .memory-photo { width: 170px; height: 230px; } }

/* =========================
   Countdown — 全リニューアル
========================= */
.countdown-section {
  color: white;
  background:
    linear-gradient(rgba(20,35,20,0.62), rgba(20,35,20,0.72)),
    url("countdown.jpg") center / cover no-repeat;
  background-color: #2a3e2a;
  padding: 60px 20px;
}

.countdown-section h2 {
  font-size: clamp(1.8rem, 5vw, 2.6rem) !important;
  color: rgba(255,255,255,0.88) !important;
  margin-bottom: 40px !important;
}
.countdown-section h2::after { background: rgba(255,255,255,0.3) !important; }

.countdown-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  max-width: 680px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.count-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 100px;
  padding: 24px 16px 20px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  backdrop-filter: blur(8px);
}

.count-sep {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: rgba(255,255,255,0.3);
  padding-bottom: 24px;
  flex-shrink: 0;
}

.count-number {
  display: block;
  font-family: "Cormorant Garamond", serif;
  font-weight: 300;
  font-size: clamp(2.8rem, 6vw, 5rem);
  letter-spacing: 0.08em;
  color: #fff;
  line-height: 1;
  text-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.count-label {
  display: block;
  margin-top: 8px;
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  color: rgba(255,255,255,0.55);
}

@keyframes flip-in {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 520px) {
  .count-item { min-width: 72px; padding: 18px 10px 14px; }
  .count-sep  { font-size: 1.6rem; padding-bottom: 18px; }
}

/* =========================
   Timeline — 高級感
========================= */
.schedule-section { background: transparent; }

.timeline-card {
  position: relative;
  max-width: 480px;
  margin: 0 auto;
  background: rgba(255,252,246,0.9);
  border: 1px solid rgba(184,151,90,0.14);
  padding: 32px 32px 28px;
  border-radius: 28px;
  box-shadow: 0 20px 50px rgba(40,30,15,0.1);
  backdrop-filter: blur(6px);
}

.timeline-card-title {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 0.82rem;
  letter-spacing: 0.22em;
  color: var(--gold);
  margin: 0 0 28px;
  text-align: center;
}

/* 縦ゴールドライン — 中央配置に合わせて left を調整 */
.timeline-main-line {
  position: absolute;
  top: 72px; bottom: 24px;
  width: 1px;
  background: linear-gradient(to bottom, #c8aa7a 0%, rgba(200,170,122,0.2) 100%);
  z-index: 1;
  left: calc(32px + 80px + 14px);
}

/* 時刻・ドット・テキストの3カラム構成（アイコンなし） */
.timeline-row {
  display: grid;
  grid-template-columns: 80px 28px 1fr;
  align-items: center;
  margin-bottom: 28px;
  position: relative;
  z-index: 2;
}
.timeline-row:last-child { margin-bottom: 0; }

/* ドット */
.timeline-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gold);
  border: 2px solid rgba(255,252,246,0.9);
  box-shadow: 0 0 0 2px rgba(184,151,90,0.35);
  justify-self: center;
  align-self: center;
}

.timeline-left {
  font-family: "Cormorant Garamond", serif;
  font-size: 0.92rem;
  color: var(--gold);
  letter-spacing: 0.06em;
  text-align: right;
}

.timeline-right {
  text-align: left;
  padding-left: 16px;
  min-width: 0;
}
.timeline-right h3 {
  margin: 0;
  font-family: "Noto Serif JP", serif;
  font-weight: 400;
  font-size: 0.94rem;
  color: var(--green-deep);
  line-height: 1.5;
}
.timeline-right p {
  margin: 3px 0 0;
  font-size: 0.74rem;
  color: #999;
  letter-spacing: 0.06em;
}

@media (min-width: 481px) {
  .timeline-card { max-width: 500px; padding: 36px 40px; }
  .timeline-main-line { left: calc(40px + 80px + 14px); }
  .timeline-row { grid-template-columns: 80px 28px 1fr; margin-bottom: 32px; }
  .timeline-left { font-size: 0.96rem; }
  .timeline-right h3 { font-size: 0.98rem; }
}

@media (min-width: 769px) {
  .timeline-card { max-width: 520px; padding: 40px 48px; }
  .timeline-main-line { left: calc(48px + 84px + 14px); }
  .timeline-row { grid-template-columns: 84px 28px 1fr; margin-bottom: 36px; }
  .timeline-left { font-size: 1rem; }
  .timeline-right h3 { font-size: 1.02rem; }
}

/* =========================
   RSVP / Gift
========================= */
.rsvp-section, .gift-section {
  background: rgba(253,248,240,0.88);
  border: 1px solid rgba(184,151,90,0.14);
  border-radius: 28px;
  padding: 36px 20px 32px;
  box-shadow: 0 16px 48px rgba(100,75,40,0.07);
  max-width: 720px;
  margin: 16px auto;
}
.rsvp-section .section-button { width: min(100%, 260px); }
.gift-section .section-button  { min-width: 110px; }

/* RSVP 案内文 */
.rsvp-intro {
  font-size: 0.92rem;
  line-height: 2;
  color: #5a3f2f;
  letter-spacing: 0.06em;
  margin: 0 auto 24px;
  max-width: 480px;
}
.rsvp-date-inline {
  font-family: "Noto Serif JP", serif;
  font-size: 1.05rem;
  letter-spacing: 0.1em;
  color: #7a4a22;
  border-bottom: 1px solid rgba(184,151,90,0.5);
  padding-bottom: 1px;
  white-space: nowrap; /* 日付が途中で折り返されないよう */
}

.gift-option {
  width: calc(33.333% - 10px);
  background: rgba(255,255,255,0.96);
  border: 1px solid rgba(184,151,90,0.2);
}
#giftMethods {
  display: flex; flex-wrap: wrap;
  justify-content: center; gap: 10px;
  padding-top: 14px;
}
#giftGuide {
  width: 100%;
  margin: 16px auto 0;
  color: #5a3f2f;
  font-size: 0.93rem;
  line-height: 1.85;
  text-align: left;
}
#giftGuide a { color: #7a4f33; text-decoration: underline; }
@media (max-width: 480px) { .gift-option { width: 100%; } }

/* Gift セクション 案内文・期限 */
.gift-intro {
  font-size: 0.88rem;
  line-height: 2;
  color: #5a3f2f;
  letter-spacing: 0.06em;
  margin: 0 auto 12px;
  max-width: 480px;
  text-align: center;
  word-break: normal;
  overflow-wrap: break-word;
}
.gift-intro + .gift-intro {
  margin-bottom: 24px;
}

.gift-deadline {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(184,151,90,0.1);
  border: 1px solid rgba(184,151,90,0.28);
  border-radius: 8px;
  padding: 10px 22px;
  margin-bottom: 24px;
}
.gift-deadline-label {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  color: var(--gold);
}
.gift-deadline-date {
  font-family: "Noto Serif JP", serif;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  color: #5a3a22;
  font-weight: 400;
}

/* Gift ガイドカード */
.gift-guide-card {
  background: rgba(255,253,248,0.95);
  border: 1px solid rgba(184,151,90,0.18);
  border-radius: 16px;
  padding: 22px 20px;
  text-align: left;
  margin-top: 4px;
}
.gift-guide-title {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 1rem;
  letter-spacing: 0.18em;
  color: var(--gold);
  margin: 0 0 12px;
}
.gift-guide-body {
  font-size: 0.86rem;
  line-height: 1.9;
  color: #5a3f2f;
  margin: 0 0 14px;
}
.gift-guide-link {
  display: inline-block;
  font-size: 0.84rem;
  color: #5a3f2f;
  border-bottom: 1px solid rgba(184,151,90,0.4);
  text-decoration: none;
  letter-spacing: 0.06em;
  transition: border-color 0.2s;
}
.gift-guide-link:hover { border-color: var(--gold); }

/* 銀行振込 口座情報テーブル */
.gift-bank-info {
  border: 1px solid rgba(184,151,90,0.18);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 16px;
}
.gift-bank-row {
  display: flex;
  align-items: center;
  padding: 9px 14px;
  font-size: 0.86rem;
  border-bottom: 1px solid rgba(184,151,90,0.12);
  gap: 16px;
}
.gift-bank-row:last-child { border-bottom: none; }
.gift-bank-label {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  color: var(--gold);
  min-width: 72px;
  flex-shrink: 0;
}
.gift-bank-row span:last-child {
  color: #3a2a1a;
  letter-spacing: 0.06em;
}

/* 銀行振込 注意書き */
.gift-bank-note {
  background: rgba(184,151,90,0.07);
  border-left: 2px solid rgba(184,151,90,0.4);
  border-radius: 0 8px 8px 0;
  padding: 12px 14px;
  font-size: 0.82rem;
  line-height: 1.85;
  color: #5a3f2f;
}
.gift-bank-note-title {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  color: var(--gold);
  margin: 0 0 6px;
}
.gift-bank-note strong { font-weight: 400; text-decoration: underline; text-underline-offset: 2px; }
.gift-bank-note p { margin: 0; }

/* =========================
   Access
========================= */
#access { max-width: 720px; margin: 0 auto; }
#access iframe { border-radius: 16px; margin: 16px 0; display: block; }
#access .section-button { margin: 8px 6px 0; }
#access p { font-size: 0.9rem; line-height: 2; color: #3a2a1a; }

/* =========================
   Modal — RSVPフォーム
========================= */
.modal {
  display: none;
  position: fixed; inset: 0;
  background: rgba(10,15,10,0.55);
  backdrop-filter: blur(4px);
  align-items: flex-start; justify-content: center;
  z-index: 1100;
  overflow-y: auto; -webkit-overflow-scrolling: touch;
  padding: 20px 12px 48px;
}
.modal .modal-content {
  background: rgba(255,250,243,0.99);
  padding: 52px 22px 30px;
  border-radius: 22px;
  max-width: 460px; width: 100%;
  box-shadow: 0 28px 70px rgba(50,35,15,0.2);
  border: 1px solid rgba(184,151,90,0.16);
  position: relative;
  margin: 0 auto;
}
.modal .modal-content h3 {
  font-family: "Great Vibes", cursive;
  font-size: 2rem;
  color: var(--green-deep);
  letter-spacing: 0.06em;
  margin: 0 0 6px;
  text-align: center;
}
.modal .close {
  position: absolute; right: 12px; top: 12px;
  font-size: 20px; color: #7a5a46; cursor: pointer;
  background: rgba(253,248,240,0.95);
  border: 1px solid rgba(184,151,90,0.2);
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; padding: 0;
}
.modal label {
  display: block;
  margin: 16px 0 5px;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  color: #6a4a38;
  text-align: left;
}
.modal label.allergy-label {
  font-size: 0.75rem;
  letter-spacing: 0;
  white-space: nowrap;
}
.modal input, .modal select, .modal textarea {
  width: 100%; padding: 10px 13px;
  border-radius: 8px;
  border: 1px solid rgba(148,111,76,0.22);
  background: #fff9f3;
  font-family: inherit; color: #3a2a1a;
  font-size: 16px; line-height: 1.5; outline: none;
}
.modal select {
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23a07850' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  padding-right: 36px;
}
.modal textarea { min-height: 80px; resize: vertical; }

.guest { border-top: 1px dashed rgba(184,151,90,0.22); padding-top: 14px; margin-top: 14px; }
.guest.main-guest { border-top: none; padding-top: 0; margin-top: 0; }
#guestList { margin-bottom: 20px; }

button.removeGuest {
  display: inline-flex !important;
  align-items: center !important; justify-content: center !important;
  margin-top: 10px !important;
  padding: 4px 14px !important; min-height: 28px !important; min-width: unset !important;
  font-size: 0.75rem !important; border-radius: 999px !important;
  background: rgba(180,60,50,0.06) !important;
  border: 1px solid rgba(180,60,50,0.28) !important;
  color: #a03020 !important; box-shadow: none !important;
  letter-spacing: 0.04em !important; cursor: pointer !important; white-space: nowrap !important;
}

.form-actions { display: flex; flex-direction: column; gap: 10px; }
.form-actions .section-button { width: 100%; justify-content: center; }
#formMessage { margin-top: 14px; font-size: 0.9rem; color: #5a3f2f; text-align: center; line-height: 1.7; }

/* =========================
   Lightbox
========================= */
#lightbox {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.9);
  align-items: center; justify-content: center;
  z-index: 1200; cursor: pointer;
}
#lightbox img { max-width: 92%; max-height: 92%; border-radius: 4px; }

/* =========================
   Top Button
========================= */
#topBtn {
  position: fixed; right: 20px; bottom: 28px;
  background: rgba(45,74,45,0.85); color: #fff;
  border: none; border-radius: 50%;
  width: 44px; height: 44px;
  display: none; align-items: center; justify-content: center;
  z-index: 1000; cursor: pointer;
  font-size: 16px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
  transition: background 0.3s;
}
#topBtn:hover { background: rgba(45,74,45,1); }

/* =========================
   Footer
========================= */
footer {
  padding: 48px 12px 56px;
  text-align: center;
  background: transparent;
}
.footer-botanical { max-width: 300px; margin: 0 auto 20px; }
.footer-botanical svg { width: 100%; height: auto; display: block; }
.footer-inner {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.footer-names {
  font-family: "Great Vibes", cursive;
  font-size: clamp(1.5rem, 5vw, 2.2rem);
  color: var(--green-deep);
  letter-spacing: 0.04em;
}
.footer-date {
  font-family: "Cormorant Garamond", serif;
  font-size: 0.78rem;
  letter-spacing: 0.42em;
  color: #888;
}
@media (min-width: 481px) { footer { padding: 60px 20px 72px; } }