/* =========================================================
   色・書体 — ここを変えると全体の色・書体が変わります
   ========================================================= */
:root {
  --bg: #F5ECDE;          /* ページ背景（クリーム） */
  --surface: #fffaf3;     /* カード */
  --soft: #f1e5d6;        /* やわらかい囲み */
  --ink: #3a2a25;         /* 本文 */
  --muted: #7d6a60;       /* 補足 */
  --line: #e6d6c3;        /* 区切り線 */
  --main: #7a1a22;        /* メインカラー：ワインレッド */
  --on-main: #f8ecdc;     /* メインカラーの上の文字 */
  --accent: #c4a27a;      /* ゴールド */
  --alert: #8f1d27;
  --alert-bg: #f7e4df;
  --inv-ink: #3a2a25;     /* 招待状の文字 */
  --inv-line: rgba(122, 26, 34, .35);
  --hero-bg: linear-gradient(180deg, #f8f0e6 0%, #f3e6d7 100%); /* フッター背景 */
  --hero-ink: #7a1a22;    /* フッター文字 */
  --radius: 0px;
  --btn-radius: 0px;
  --btn-hover: #b27a7a;
  --font-display: "Cinzel", "Times New Roman", serif;
  --font-en: "Cinzel", "Times New Roman", serif;
  --font-serif-ja: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --font-body: "Kaisei Decol";
}


/* =========================================================
   基本
   ========================================================= */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 64px;
  background: var(--bg);
}

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

body {
  background-color: var(--bg);
  background-image: url(sg.png);
  background-size: 100% auto;
  background-position: center top;
  background-repeat: repeat-y;
}

/* 画面に固定された背景画像 */
/* html::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-color: var(--bg);
  background-image: url(sg.png);
  background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat;
  pointer-events: none;
} */

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.6;
  letter-spacing: .06em;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--main);
  text-underline-offset: 4px;
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

p {
  margin: 0;
}

ul {
  margin: 0;
  padding-left: 1.2em;
  display: grid;
  gap: 8px;
}


/* =========================================================
   COVER（表紙）
   ========================================================= */
.cover {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100svh;
  width: 100%;
  padding-bottom: 130px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* 背景の模様（下に向かって透明にして、次のセクションとの境目をぼかす） */
.cover::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: #fcfaf6 url("cover_bg.png");
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 180px), transparent 100%);
  mask-image: linear-gradient(to bottom, #000 calc(100% - 180px), transparent 100%);
  pointer-events: none;
}

.cover-inner {
  position: relative;
  width: min(100%, 720px);
  display: grid;
  justify-items: center;
  gap: 18px;
  padding: clamp(64px, 11vh, 120px) 24px 0;
}

/* 左上・右上の中国風の飾り */
.cover-corner {
  position: absolute;
  top: 14px;
  width: clamp(64px, 18vw, 116px);
  height: auto;
  color: #9b2630;
  pointer-events: none;
}

.cover-corner * {
  stroke-width: 1.5px;
  vector-effect: non-scaling-stroke;   /* 大きさが変わっても線の太さは同じ */
}

.cover-corner.is-left {
  left: 14px;
}

.cover-corner.is-right {
  right: 14px;
  transform: scaleX(-1);
}

/* 囍のマーク */
.cover-xi {
  width: clamp(150px, 42vw, 240px);
  height: auto;
  margin-bottom: 4px;
}

/* WEDDING INVITATION */
.cover-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(27px, 8vw, 55px);
  line-height: 1.25;
  letter-spacing: .14em;
  padding-left: .14em;
  text-transform: uppercase;
  color: var(--main);
}

/* タイトル下の飾り線（二重線＋ひし形3つ＋二重線） */
.cover-rule {
  display: flex;
  align-items: center;
  gap: 6px;
  width: min(78vw, 360px);
}

.cover-rule .ln {
  flex: 1;
  height: 5px;
  border-top: 1px solid var(--accent);
  border-bottom: 1px solid var(--accent);
}

.cover-rule .knot {
  display: flex;
  align-items: center;
}

.cover-rule .knot i {
  width: 10px;
  height: 10px;
  border: 1px solid var(--accent);
  transform: rotate(45deg);
  margin: 0 -1px;
}

.cover-rule .knot i:nth-child(2) {
  width: 13px;
  height: 13px;
  background: rgba(196, 162, 122, .25);
}

/* メッセージ */
.cover-msg {
  margin-top: 4px;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(13px, 3.6vw, 17px);
  line-height: 1.8;
  letter-spacing: .12em;
  color: var(--ink);
}

/* 日付・カウントダウン */
.cover-date {
  margin-top: 14px;
  font-family: var(--font-display);
  font-size: clamp(20px, 5.6vw, 28px);
  letter-spacing: .16em;
  color: var(--main);
}

.cover-date span {
  margin-left: .4em;
  font-size: .55em;
  letter-spacing: .2em;
  color: var(--accent);
  vertical-align: .25em;
}

.cover-label {
  margin-bottom: -10px;
  font-family: "Belleza", "Optima", sans-serif;
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--accent);
}

.cover-countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: min(86vw, 420px);
  padding: 14px 0;
  border-top: 1px solid var(--accent);
  border-bottom: 1px solid var(--accent);
}

.cd-unit {
  display: grid;
  justify-items: center;
  gap: 4px;
}

.cd-unit + .cd-unit {
  border-left: 1px solid rgba(196, 162, 122, .5);
}

.cd-unit b {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(24px, 7vw, 36px);
  line-height: 1.1;
  color: var(--main);
  font-variant-numeric: tabular-nums;
}

.cd-unit span {
  font-family: var(--font-display);
  font-size: clamp(8px, 2.2vw, 10px);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
}

/* スマホ：背景の模様を画面いっぱいに */
@media (max-width: 700px) {
  .cover::before {
    background-size: 100% 100%;
  }
}


/* =========================================================
   INVITATION（Dear Guests・ご出席の皆さまへ）
   ========================================================= */
.invitation {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
  color: var(--inv-ink);
  overflow: hidden;
}

.inv-wrap {
  padding: 30px 24px 64px;
  background-image: url(circle.jpg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.cap-title {
  margin: 0 0 20px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(19px, 5vw, 26px);
  letter-spacing: .2em;
  color: var(--main);
  line-height: 1.4;
}

.cap-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 1px;
  background: var(--accent);
  margin-top: 14px;
}

.letter-text {
  display: grid;
  gap: 1.2em;
  margin-top: 8px;
  text-align: left;
  font-family: var(--font-serif-ja);
  font-size: 14px;
  line-height: 2.1;
  letter-spacing: .1em;
}

.sign {
  margin-top: .8em;
  font-family: var(--font-en);
  font-size: 13px;
  letter-spacing: .14em;
  color: var(--accent);
}

/* ご出席の皆さまへ */
.rsvp {
  position: relative;
  margin: 0 20px 8px;
  padding: 44px 24px;
  display: grid;
  justify-items: center;
  gap: 14px;
  text-align: center;
  background: rgba(255, 250, 243, .7);
  border: 1px solid var(--inv-line);
}

.rsvp::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid var(--inv-line);
  pointer-events: none;
}

.rsvp h3 {
  margin: 0;
  font-family: var(--font-serif-ja);
  font-weight: 500;
  font-size: 20px;
  letter-spacing: .2em;
  color: var(--main);
}

.rsvp p {
  font-size: 14px;
  line-height: 2;
}

/* ボタン（サイト全体共通） */
.btn {
  display: block;
  text-align: center;
  background: var(--main);
  color: var(--on-main);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: .12em;
  padding: 15px 20px;
  border-radius: var(--btn-radius);
  border: 1px solid var(--main);
  transition: background .3s, color .3s;
}

.btn:hover {
  background: var(--btn-hover);
  border-color: var(--btn-hover);
  color: var(--on-main);
}

.btn-rsvp {
  position: relative;
  z-index: 1;
  min-width: 240px;
  margin-top: 6px;
}

.btn.is-disabled {
  pointer-events: none;
  opacity: .55;
}

/* パソコン幅 */
@media (min-width: 701px) {
  .inv-wrap {
    padding: 96px 48px 40px;
    background-size: min(560px, 50vw) auto;
    background-position: right 5% center;
  }

  .letter-text {
    font-size: 16px;
  }

  .rsvp {
    margin: 0 48px 8px;
    padding: 52px 32px;
  }
}

/* =========================================================
   目次メニュー（About Wedding から上に固定）
   ========================================================= */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(122, 26, 34, .96);
  border-bottom: 1px solid rgba(196, 162, 122, .5);
  box-shadow: 0 2px 10px rgba(90, 17, 24, .18);
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  transition: transform .4s ease, opacity .4s ease, visibility 0s linear .4s;
}

.site-nav.is-show {
  transform: none;
  opacity: 1;
  visibility: visible;
  transition: transform .4s ease, opacity .4s ease, visibility 0s;
}

.site-nav .row {
  display: flex;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.site-nav .row::-webkit-scrollbar {
  display: none;
}

.site-nav a {
  position: relative;
  flex: 0 0 auto;
  padding: 14px 14px;
  font-family: var(--font-serif-ja);
  font-size: 12px;
  letter-spacing: .12em;
  white-space: nowrap;
  text-decoration: none;
  color: #f3e3cf;
}

.site-nav a + a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 1px;
  height: 12px;
  transform: translateY(-50%);
  background: rgba(196, 162, 122, .5);
}

.site-nav a.on {
  color: #fff;
  box-shadow: inset 0 -2px 0 var(--accent);
}

@media (min-width: 721px) {
  .site-nav .row {
    justify-content: center;
  }
}

/* =========================================================
   各セクション（About Wedding 〜 Singapore Tips）
   ========================================================= */
.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 96px 20px 40px;
  display: grid;
  gap: 88px;
}

/* 見出し */
.sec-head {
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 8px;
  margin-bottom: 36px;
}

.sec-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(24px, 6.6vw, 36px);
  line-height: 1.15;
  letter-spacing: .16em;
  color: var(--main);
}

.sec-head .ja {
  font-family: var(--font-serif-ja);
  font-size: 13px;
  letter-spacing: .3em;
  color: var(--muted);
}

/* 項目 */
.item {
  padding: 32px 0;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 14px;
}

.sec-head + .item {
  border-top: 0;
  padding-top: 0;
}

.item h3 {
  margin: 0;
  font-family: var(--font-serif-ja);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: .08em;
  color: var(--main);
  display: flex;
  align-items: center;
  gap: 12px;
}

.item h3::before {
  content: "";
  width: 7px;
  height: 7px;
  background: var(--main);
  transform: rotate(45deg);
  flex: 0 0 7px;
}

/* 小見出し（Guide のJB部分で使用） */
.item h4 {
  margin: 14px 0 0;
  font-family: var(--font-serif-ja);
  font-size: 15px;
  letter-spacing: .08em;
  color: var(--main);
  padding-left: 12px;
  border-left: 2px solid var(--accent);
  line-height: 1.5;
}

/* 日程の表 */
dl.kv {
  margin: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 18px 22px;
  border-radius: var(--radius);
}

dl.kv dt {
  font-family: var(--font-serif-ja);
  font-weight: 600;
  font-size: 14px;
  color: var(--main);
}

dl.kv dd {
  margin: 0;
}

/* 調整中 */
.tbd-pill {
  display: inline-block;
  padding: 2px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--muted);
  background: var(--soft);
}

.note {
  font-size: 12px;
  color: var(--muted);
}

/* 会場カード */
.venue-card {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 36px 24px 32px;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
}

.venue-card::before {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  pointer-events: none;
}

.venue-name {
  font-family: var(--font-display);
  font-size: clamp(22px, 6vw, 30px);
  letter-spacing: .06em;
  line-height: 1.3;
  color: var(--main);
}

.venue-address {
  margin: 10px 0 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.8;
}

.venue-card .btn {
  position: relative;
  min-width: 220px;
}

/* アクセス */
.access-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.access-list li {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 16px;
  align-items: start;
  padding: 18px 20px;
}

.access-list li + li {
  border-top: 1px solid var(--line);
}

.access-tag {
  display: grid;
  place-items: center;
  height: 28px;
  background: var(--main);
  color: var(--on-main);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  border-radius: 3px;
}

.access-list p {
  line-height: 1.7;
}

/* 決まり次第更新します・随時更新します */
.placeholder {
  border: 1px dashed var(--accent);
  padding: 16px 20px;
  color: var(--muted);
  font-size: 14px;
  border-radius: var(--radius);
}

/* 服装（2列） */
.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 560px) {
  .two {
    grid-template-columns: 1fr;
  }
}

.dress-guide {
  background: #f5ede2;
  padding: 90px 20px;
  color: #59483d;
}

.dress-guide-inner {
  max-width: 1000px;
  margin: 0 auto;
}

.dress-guide-heading {
  text-align: center;
  margin-bottom: 35px;
}

.dress-guide-heading span {
  display: block;
  color: #a17b58;
  font-size: 10px;
  letter-spacing: .3em;
  margin-bottom: 12px;
}

.dress-guide-heading h2 {
  font-family: var(--font-en);
  color: #762326;
  font-size: 34px;
  font-weight: 400;
  letter-spacing: .08em;
  margin: 0;
}

.dress-guide-heading i {
  display: block;
  width: 38px;
  height: 1px;
  background: #b99a75;
  margin: 22px auto 0;
}

.dress-guide-text {
  max-width: 650px;
  margin: 0 auto;
  text-align: center;
  font-size: 14px;
  line-height: 2.2;
}

.dress-guide-posts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  align-items: start;
}

.dress-guide-post {
  min-width: 0;
  overflow: hidden;
}

.dress-guide-post .instagram-media {
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 auto !important;
}

@media (max-width: 700px) {
  .dress-guide {
    padding: 65px 16px;
  }

  .dress-guide-heading h2 {
    font-size: 29px;
  }

  .dress-guide-text {
    font-size: 13px;
  }

  .pc-br{
    display: none;
  }

  .dress-guide-posts {
    grid-template-columns: 1fr;
    gap: 18px;
    margin: 0 auto;
  }
}

/* ---------- 服装：冷房・靴のメモ ---------- */
.dress-tips {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 8px;
}

.dress-tips li {
  position: relative;
  padding-left: 20px;
  font-size: 12px;
  line-height: 1.8;
}

.dress-tips li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: .75em;
  width: 6px;
  height: 6px;
  border: 1px solid var(--accent);
  transform: rotate(45deg);
}

/* ---------- 服装：Instagramの投稿 ---------- */
.dress-guide-text {
  margin-top: 12px;
  padding-top: 20px;
  border-top: 1px dashed var(--line);
  font-size: 14px;
  line-height: 1.9;
  color: var(--muted);
}

/* 横にスワイプして見る形 */
.dress-guide-posts {
  display: flex;
  gap: 14px;
  margin: 0 -20px;
  padding: 4px 20px 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.dress-guide-post {
  flex: 0 0 326px;
  scroll-snap-align: center;
}

.dress-guide-post .instagram-media {
  margin: 0 !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  border-radius: 0 !important;
  border: 1px solid var(--line) !important;
  box-shadow: none !important;
}

@media (min-width: 701px) {
  .dress-guide-posts {
    margin: 0;
    padding: 4px 0 12px;
  }
}

/* カード */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 18px 20px;
  display: grid;
  gap: 8px;
  border-radius: var(--radius);
}

.card h4,
.card-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: .12em;
  color: var(--main);
  border: 0;
  padding: 0;
}

/* やわらかい囲み */
.soft {
  background: var(--soft);
  padding: 16px 20px;
  display: grid;
  gap: 6px;
  border-radius: var(--radius);
}

/* 注意の囲み */
.alert {
  background: var(--alert-bg);
  border-left: 2px solid var(--alert);
  padding: 16px 20px;
  display: grid;
  gap: 4px;
  border-radius: 0 var(--radius) var(--radius) 0;
}

.alert strong {
  color: var(--alert);
}

/* 配車アプリ */
.apps {
  display: grid;
  gap: 10px;
}

.app-name {
  color: #6e1720;
  font-weight: bold;
}

/* ダウンロード手順 */
.steps-list > p {
  margin-bottom: 8px;
}

.steps-list ol {
  margin: 0;
  padding-left: 1.4em;
  display: grid;
  gap: 6px;
}

.steps-list li {
  padding-left: 4px;
  line-height: 1.8;
}

.steps-list .icon {
  font-size: 20px;
  vertical-align: -5px;
  color: var(--main);
}

/* 注意事項リスト */
.tips {
  background: var(--soft);
  padding: 20px 22px;
  display: grid;
  gap: 10px;
  border-radius: var(--radius);
}

.tips-title {
  font-family: var(--font-serif-ja);
  font-weight: 600;
  color: var(--main);
  letter-spacing: .08em;
}

.tips ul {
  list-style: none;
  padding-left: 0;
  gap: 12px;
}

.tips li {
  position: relative;
  padding-left: 22px;
}

.tips li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: .8em;
  width: 8px;
  height: 1px;
  background: var(--accent);
}

.li-note {
  display: block;
  font-size: 14px;
  color: var(--muted);
}

/* 以下はコメントアウト中の Gourmet・Guide で使用 */
.image {
  display: block;
  width: 100%;
}

.maplink {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .08em;
  justify-self: start;
}

/* パソコン幅 */
@media (min-width: 701px) {
  .wrap {
    padding: 112px 24px 60px;
    gap: 104px;
  }

  .sec-head {
    margin-bottom: 44px;
  }
}


/* =========================================================
   FOOTER（See you in Singapore!）
   ========================================================= */
footer {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  padding: 0 20px 0;
  text-align: center;
  color: var(--hero-ink);
  overflow: hidden;
}

/* 中国結びの区切り線 */
.knot-rule {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 60px;
  width: min(78vw, 360px);
  color: var(--accent);
}

.knot-rule svg {
  flex: 0 0 auto;
  width: 54px;
  height: auto;
}
.knot-rule .ln {
  flex: 1;
  height: 5px;
  border-top: 1px solid var(--accent);
  border-bottom: 1px solid var(--accent);
}

/* Have a safe flight. */
.footer1 {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: .32em;
  padding-left: .32em;
  text-transform: uppercase;
  color: var(--ink);
}

/* See you in Singapore! */
.footer2 {
  margin: 10px 0 40px;
  font-family: "Snell Roundhand", "Segoe Script", cursive;
  font-weight: 400;
  font-size: 30px;
  line-height: 1.3;
  white-space: nowrap;
  color: var(--main);
}

.footer-sg {
  display: block;
  width: 100%;
  max-width: 700px;
  height: auto;
}

/* =========================================================
   スクロールでふわっと表示（JSで付くクラス）
   ========================================================= */
   .cover-inner > * {
  animation: cover-rise 1.2s cubic-bezier(.2, .7, .2, 1) both;
}

.cover-inner > :nth-child(3)  { animation-delay: .2s; }
.cover-inner > :nth-child(4)  { animation-delay: .45s; }
.cover-inner > :nth-child(5)  { animation-delay: .65s; }
.cover-inner > :nth-child(6)  { animation-delay: .85s; }
.cover-inner > :nth-child(7)  { animation-delay: 1.05s; }
.cover-inner > :nth-child(8)  { animation-delay: 1.15s; }
.cover-inner > :nth-child(9)  { animation-delay: 1.35s; }
.cover-inner > :nth-child(10) { animation-delay: 1.45s; }

/* 角の飾りは、左右反転を保つため、うっすら出てくるだけ */
.cover-inner > .cover-corner {
  animation: cover-fade 1.8s ease both;
}

@keyframes cover-rise {
  from { opacity: 0; transform: translateY(16px); filter: blur(3px); }
  to   { opacity: 1; transform: none; filter: none; }
}

@keyframes cover-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .cover-inner > * {
    animation-name: cover-fade;
  }
  .anim .reveal {
    transform: none;
  }
}

.anim .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 1s ease, transform 1s cubic-bezier(.2, .7, .2, 1);
}

.anim .reveal.in {
  opacity: 1;
  transform: none;
}

/* =========================================================
   FORM（form.html・thanks.html）
   ========================================================= */
.form-wrap {
  max-width: 520px;
  margin: 0 auto;
  padding: 72px 20px 96px;
}

.rsvp-form {
  display: grid;
  gap: 20px;
  padding: 36px 24px;
  background: rgba(255, 250, 243, .8);
  border: 1px solid var(--inv-line);
  outline: 1px solid var(--inv-line);
  outline-offset: -7px;
}

.rsvp-form .hp {
  display: none;
}

.field {
  display: grid;
  gap: 6px;
}

.field span {
  font-family: var(--font-serif-ja);
  font-size: 13px;
  letter-spacing: .08em;
  color: var(--main);
}

.field em {
  margin-left: 8px;
  font-style: normal;
  font-size: 10px;
  letter-spacing: .1em;
  color: var(--accent);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 11px 12px;
  font: inherit;
  font-size: 16px;            /* iPhoneで入力時に画面が拡大されないように */
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
}

.field input[type="date"] {
  min-height: 46px;
}

.field select {
  background-image: linear-gradient(45deg, transparent 50%, var(--accent) 50%),
                    linear-gradient(135deg, var(--accent) 50%, transparent 50%);
  background-position: right 16px center, right 11px center;
  background-size: 5px 5px;
  background-repeat: no-repeat;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.companion {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 18px 16px 20px;
  border: 1px solid var(--line);
  background: rgba(241, 229, 214, .45);
}

.companion[hidden] {
  display: none;
}

.companion legend {
  padding: 0 8px;
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: .14em;
  color: var(--accent);
}

.rsvp-form .btn {
  margin-top: 8px;
  cursor: pointer;
  font-family: inherit;
}

.back-link {
  display: block;
  margin-top: 28px;
  text-align: center;
  font-size: 13px;
  letter-spacing: .1em;
}

/* フォームが枠からはみ出さないように */
.rsvp-form > *,
.field,
.companion {
  min-width: 0;
}

.field input,
.field select,
.field textarea {
  min-width: 0;
  max-width: 100%;
}

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

/* 送信完了ページ */
.thanks-page {
  display: grid;
  justify-items: center;
  gap: 28px;
  text-align: center;
  padding-top: 120px;
}

.thanks-page p {
  font-family: var(--font-serif-ja);
  font-size: 15px;
  line-height: 2.1;
  letter-spacing: .08em;
}

.thanks-page .btn {
  min-width: 220px;
  margin-top: 50px;
}

