/* 기본 설정 */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: auto;
}

body {
  margin: 0;
  background: #eee9e4;
  color: #3f3a36;
  font-family:
    "Pretendard",
    "Apple SD Gothic Neo",
    "Noto Sans KR",
    Arial,
    sans-serif;
  line-height: 1.8;
}

/* 전체 청첩장 */
.invitation {
  width: 100%;
  max-width: 480px;
  min-height: 100vh;
  margin: 0 auto;
  background: #fffdfb;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.08);
}

/* 첫 화면 */
.hero {
  position: relative;
  height: 100svh;
  min-height: 680px;
  overflow: hidden;
  background: #d8d1ca;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.05),
      rgba(0, 0, 0, 0.12) 50%,
      rgba(0, 0, 0, 0.55)
    );
}

.hero-text {
  position: absolute;
  z-index: 1;
  left: 24px;
  right: 24px;
  bottom: 48px;
  color: white;
  text-align: center;
}

.small-title {
  margin: 0 0 16px;
  font-size: 11px;
  letter-spacing: 4px;
}

.hero h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
  font-weight: 400;
  letter-spacing: 2px;
}

.hero h1 span {
  display: inline-block;
  margin: 0 8px;
  font-style: italic;
}

.wedding-date {
  margin: 25px 0 2px;
  font-size: 15px;
}

.wedding-place {
  margin: 0;
  font-size: 14px;
}

/* 공통 섹션 */
.section {
  padding: 85px 28px;
  text-align: center;
  border-bottom: 1px solid #eee7e1;
}

.section-label {
  margin: 0 0 12px;
  color: #a98776;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 11px;
  letter-spacing: 3px;
}

.section h2 {
  margin: 0 0 35px;
  font-size: 21px;
  font-weight: 500;
  letter-spacing: -0.5px;
}

.body-text {
  margin: 0;
  font-size: 15px;
  line-height: 2.1;
}

/* 예식 안내 */
.info-card {
  padding: 30px 15px;
  background: #f7f3f0;
  border-radius: 4px;
}

.info-card p {
  margin: 5px 0;
  font-size: 15px;
}

.info-date {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px !important;
  letter-spacing: 1px;
}

/* 예식 정보 */
.wedding-summary {
  padding: 38px 20px;
  border: 1px solid #e6ddd6;
  background: #faf7f4;
}

.summary-date {
  margin: 0;
  color: #4b433e;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  letter-spacing: 2px;
}

.summary-day {
  margin: 3px 0 0;
  color: #a18474;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 11px;
  letter-spacing: 4px;
}

.summary-divider {
  width: 30px;
  height: 1px;
  margin: 25px auto;
  background: #b9a69b;
}

.summary-time {
  margin: 0 0 7px;
  font-size: 18px;
  font-weight: 600;
}

.summary-venue {
  margin: 0;
  font-size: 16px;
}

.summary-address {
  margin: 10px 0 0;
  color: #837a75;
  font-size: 13px;
  line-height: 1.7;
}

.wedding-detail-list {
  margin-top: 25px;
  border-top: 1px solid #eee6e0;
}

.wedding-detail-row {
  display: grid;
  grid-template-columns: 55px 1fr;
  gap: 15px;
  padding: 17px 2px;
  border-bottom: 1px solid #eee6e0;
  text-align: left;
}

.wedding-detail-row span {
  color: #a18474;
  font-size: 13px;
}

.wedding-detail-row strong {
  color: #4d4641;
  font-size: 14px;
  font-weight: 500;
}

/* 달력 */
.calendar {
  max-width: 380px;
  margin: 0 auto;
  padding: 25px 16px;
  border-top: 1px solid #ddd3cc;
  border-bottom: 1px solid #ddd3cc;
}

.calendar-week,
.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}

.calendar-header {
  margin-bottom: 13px;
  color: #857b75;
  font-size: 12px;
}

.calendar-header span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
}

.calendar-days {
  row-gap: 8px;
}

.calendar-days > span {
  position: relative;
  display: flex;
  min-height: 43px;
  align-items: center;
  justify-content: center;
  color: #524b47;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 13px;
}

.calendar .sunday {
  color: #b47777;
}

.calendar .saturday {
  color: #78899c;
}

.calendar .empty {
  visibility: hidden;
}

.calendar-days .wedding-day {
  width: 43px;
  height: 43px;
  min-height: 43px;
  margin: auto;
  flex-direction: column;
  border-radius: 50%;
  background: #9a7564;
  color: white;
  line-height: 1;
}

.calendar-days .wedding-day b {
  font-size: 14px;
  font-weight: 500;
}

.calendar-days .wedding-day small {
  margin-top: 3px;
  font-family:
    "Pretendard",
    "Apple SD Gothic Neo",
    sans-serif;
  font-size: 7px;
  letter-spacing: 0.2px;
}

.calendar-caption {
  margin: 27px 0 0;
  color: #847b76;
  font-size: 13px;
}

/* 장소 */
.venue-name {
  margin: 0 0 10px;
  font-size: 17px;
  font-weight: 600;
}

.address {
  margin: 0 0 30px;
  color: #77706b;
  font-size: 14px;
}

.button-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  padding: 12px 15px;
  align-items: center;
  justify-content: center;
  border: 1px solid #967363;
  border-radius: 3px;
  background: #967363;
  color: white;
  font-size: 14px;
  text-decoration: none;
}

.button.secondary {
  background: transparent;
  color: #72584d;
}

/* 연락처 */
.contact-row {
  display: grid;
  grid-template-columns: 1fr 55px 55px;
  gap: 8px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid #eee7e1;
  text-align: left;
}

.contact-row a {
  padding: 7px 3px;
  border: 1px solid #c8b8ae;
  border-radius: 3px;
  color: #644f45;
  font-size: 13px;
  text-align: center;
  text-decoration: none;
}

/* 계좌번호 */
.account-card {
  margin-bottom: 12px;
  padding: 23px 18px;
  background: #f7f3f0;
  border-radius: 4px;
}

.account-card p {
  margin: 3px 0;
  font-size: 14px;
}

.copy-button {
  width: 100%;
  margin-top: 15px;
  padding: 11px;
  border: 1px solid #ae9486;
  border-radius: 3px;
  background: white;
  color: #664f44;
  cursor: pointer;
}

/* ================================
   RSVP
================================ */

.rsvp-section {
  overflow: hidden;
}

.rsvp-description {
  margin: -5px 0 35px;
  color: #847b76;
  font-size: 13px;
  line-height: 1.9;
}

.rsvp-edit-panel {
  margin-bottom: 25px;
  border: 1px solid #e4dcd7;
  background: #fff;
  text-align: left;
}

.rsvp-edit-toggle {
  display: flex;
  width: 100%;
  min-height: 58px;
  padding: 0 18px;
  border: 0;
  background: transparent;
  color: #625953;
  font-family: inherit;
  font-size: 12px;
  cursor: pointer;
  align-items: center;
  justify-content: space-between;
}

.rsvp-edit-toggle span {
  color: #a58979;
  font-size: 21px;
  transition: transform 0.3s ease;
}

.rsvp-edit-panel.is-open .rsvp-edit-toggle span {
  transform: rotate(45deg);
}

.rsvp-edit-content {
  max-height: 0;
  padding: 0 18px;
  overflow: hidden;
  opacity: 0;
  transition:
    max-height 0.45s ease,
    opacity 0.25s ease,
    padding 0.35s ease;
}

.rsvp-edit-panel.is-open .rsvp-edit-content {
  max-height: 600px;
  padding-top: 5px;
  padding-bottom: 20px;
  opacity: 1;
}

.rsvp-edit-content > p {
  margin: 0 0 18px;
  color: #8b817b;
  font-size: 11px;
  line-height: 1.7;
}

.rsvp-form {
  padding: 28px 20px;
  border: 1px solid #e3dad4;
  background: #faf8f6;
  text-align: left;
}

.rsvp-field,
.rsvp-fieldset {
  margin: 0 0 27px;
  padding: 0;
  border: 0;
}

.rsvp-field label,
.rsvp-fieldset legend {
  display: block;
  margin-bottom: 10px;
  color: #554d48;
  font-size: 12px;
  font-weight: 500;
}

.required-mark {
  color: #b77972;
}

.rsvp-field input,
.rsvp-field select,
.rsvp-field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 13px;
  border: 1px solid #dcd2cc;
  border-radius: 0;
  outline: none;
  background: #fff;
  color: #4e4743;
  font-family: inherit;
  font-size: 14px;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.rsvp-field textarea {
  resize: vertical;
  line-height: 1.7;
}

.rsvp-field input:focus,
.rsvp-field select:focus,
.rsvp-field textarea:focus {
  border-color: #a98a7a;
  box-shadow: 0 0 0 2px rgba(169, 138, 122, 0.1);
}

.rsvp-choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.rsvp-choice {
  position: relative;
  cursor: pointer;
}

.rsvp-choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.rsvp-choice span {
  display: flex;
  min-height: 65px;
  padding: 8px 3px;
  border: 1px solid #dcd2cc;
  background: #fff;
  color: #69605b;
  font-size: 12px;
  line-height: 1.4;
  text-align: center;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

.rsvp-choice input:checked + span {
  border-color: #9b7968;
  background: #9b7968;
  color: #fff;
}

.rsvp-character-count {
  margin: 5px 0 0;
  color: #a39993;
  font-size: 9px;
  text-align: right;
}

.rsvp-consent {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 9px;
  margin: 5px 0 24px;
  color: #6f6661;
  font-size: 10px;
  line-height: 1.7;
  align-items: start;
  cursor: pointer;
}

.rsvp-consent input {
  width: 16px;
  height: 16px;
  margin: 2px 0 0;
  accent-color: #987665;
}

.rsvp-submit-button,
.rsvp-secondary-button {
  display: flex;
  width: 100%;
  min-height: 50px;
  padding: 11px 16px;
  border: 1px solid #987665;
  background: #987665;
  color: #fff;
  font-family: inherit;
  font-size: 12px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.rsvp-submit-button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.rsvp-secondary-button {
  border-color: #cbbdb5;
  background: #fff;
  color: #635a55;
}

.rsvp-text-button {
  display: block;
  margin: 15px auto 0;
  padding: 5px;
  border: 0;
  background: transparent;
  color: #887468;
  font-family: inherit;
  font-size: 10px;
  text-decoration: underline;
  cursor: pointer;
}

.rsvp-error {
  min-height: 0;
  margin: 0 0 13px;
  color: #b35f5f;
  font-size: 11px;
  line-height: 1.6;
  text-align: center;
}

.rsvp-error:empty {
  display: none;
}

.rsvp-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

@media (max-width: 360px) {
  .rsvp-choice-grid {
    grid-template-columns: 1fr;
  }

  .rsvp-choice span {
    min-height: 50px;
  }
}

@media (min-width: 700px) {
  .rsvp-form,
  .rsvp-edit-panel,
  .rsvp-result {
    max-width: 620px;
    margin-right: auto;
    margin-left: auto;
  }

  .rsvp-form {
    padding: 36px 42px;
  }
}

/* RSVP 연락처 입력 */

.rsvp-phone-grid {
  display: grid;
  grid-template-columns:
    minmax(0, 0.8fr)
    12px
    minmax(0, 1fr)
    12px
    minmax(0, 1fr);
  gap: 5px;
  align-items: center;
}

.rsvp-phone-grid input {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 12px 6px;
  border: 1px solid #dcd2cc;
  outline: none;
  background: #fff;
  color: #4e4743;
  font-family: Arial, sans-serif;
  font-size: 14px;
  text-align: center;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.rsvp-phone-grid input:focus {
  border-color: #a98a7a;
  box-shadow: 0 0 0 2px rgba(169, 138, 122, 0.1);
}

.rsvp-phone-divider {
  color: #a69b95;
  font-family: Arial, sans-serif;
  font-size: 13px;
  text-align: center;
}

.rsvp-phone-guide {
  margin: 7px 0 0;
  color: #a09690;
  font-size: 9px;
  line-height: 1.6;
}

/* 하단 */
footer {
  padding: 55px 20px;
  background: #423a36;
  color: #eee7e1;
  text-align: center;
}

footer p {
  margin: 3px;
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: 1px;
}

/* 복사 알림 */
.toast {
  position: fixed;
  z-index: 100;
  left: 50%;
  bottom: 35px;
  width: max-content;
  max-width: calc(100% - 40px);
  padding: 13px 20px;
  border-radius: 30px;
  background: rgba(30, 27, 25, 0.9);
  color: white;
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 20px);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* 작은 휴대전화 */
@media (max-width: 360px) {
  .hero h1 {
    font-size: 30px;
  }

  .section {
    padding-right: 20px;
    padding-left: 20px;
  }
}
/* 초대 문구 */
.invitation-message {
  color: #5d5651;
}

.family-list {
  margin-top: 45px;
  padding-top: 30px;
  border-top: 1px solid #e8dfd8;
}

.family-row {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
  margin: 13px 0;
  font-size: 14px;
}

.family-row .parents {
  color: #5e5752;
}

.family-row .relation {
  color: #9a918b;
  font-size: 13px;
}

.family-row strong {
  min-width: 34px;
  color: #3f3935;
  font-size: 16px;
  font-weight: 600;
}


/* ========================================
   WEDDING GALLERY — INSTAGRAM FEED
======================================== */

.gallery-section {
  overflow: hidden;
}

.gallery-description {
  margin: -5px 0 30px;
  color: #847b76;
  font-size: 13px;
  line-height: 1.8;
}

/* 인스타그램 피드형 3열 */

.wedding-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  width: 100%;
  margin: 0;
  padding: 0;
}

/* 모든 썸네일을 동일한 4:5 비율로 표시 */

.gallery-item {
  position: relative;
  display: block;
  min-width: 0;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 0;
  background: #eee8e4;
  color: inherit;
  text-decoration: none;
  cursor: zoom-in;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  user-select: none;
}

/* 사진 위 아이콘과 원형 표시 제거 */

.gallery-item::before,
.gallery-item::after {
  display: none !important;
  content: none !important;
}

/* 처음에는 6장만 표시 */

.gallery-item:nth-child(n + 7) {
  display: none;
}

/* 더보기 상태에서는 전체 사진 표시 */

.wedding-gallery.is-expanded
  .gallery-item:nth-child(n + 7) {
  display: block;
}

/* 썸네일 이미지 */

.gallery-item img {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
  object-position: center;
  transform: scale(1);
  transform-origin: center;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transition:
    transform 0.38s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.28s ease,
    opacity 0.2s ease;
}

/*
  특정 사진의 얼굴이나 전신이 잘리면 아래처럼
  사진별 위치를 추가 조절할 수 있습니다.

  .gallery-item:nth-child(1) img {
    object-position: center 30%;
  }
*/

/* PC 마우스 hover */

@media (hover: hover) and (pointer: fine) {
  .gallery-item:hover img {
    transform: scale(1.025);
    filter: brightness(0.97);
  }
}

/* 모바일 터치 반응 */

.gallery-item:active img {
  transform: scale(0.985);
  opacity: 0.94;
}

/* 키보드 접근성 */

.gallery-item:focus-visible {
  z-index: 1;
  outline: 2px solid rgba(146, 111, 93, 0.72);
  outline-offset: 2px;
}

/* 사진 전체보기 버튼 */

.gallery-more-button {
  display: flex;
  min-width: 150px;
  min-height: 46px;
  margin: 26px auto 0;
  padding: 10px 24px;
  border: 1px solid #cdbeb5;
  border-radius: 0;
  background: transparent;
  color: #655b55;
  font-family: inherit;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 1.2px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition:
    transform 0.18s ease,
    background-color 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease;
}

.gallery-more-button:active {
  transform: scale(0.98);
}

@media (hover: hover) and (pointer: fine) {
  .gallery-more-button:hover {
    border-color: #997867;
    background: #997867;
    color: #fff;
  }
}

/* 작은 화면에서도 3열을 유지하되 간격을 조금 줄임 */

@media (max-width: 360px) {
  .wedding-gallery {
    gap: 3px;
  }
}

/* 모션 감소 설정 */

@media (prefers-reduced-motion: reduce) {
  .gallery-item img,
  .gallery-more-button {
    transition: none !important;
  }

  .gallery-item:hover img,
  .gallery-item:active img {
    transform: none !important;
    filter: none !important;
    opacity: 1 !important;
  }
}

/* PhotoSwipe 배경 */
.pswp {
  --pswp-bg: rgba(18, 16, 15, 0.96);
  --pswp-icon-color: #ffffff;
  --pswp-icon-color-secondary: #ffffff;
}

/* ================================
   LOCATION
================================ */

.location-section {
  overflow: hidden;
}

.location-venue {
  margin: 25px 0 16px;
  color: #69605b;
  line-height: 1.75;
}

.location-venue strong {
  display: block;
  margin-bottom: 5px;
  color: #443d39;
  font-size: 17px;
  font-weight: 500;
}

.location-venue p {
  margin: 0;
  font-size: 13px;
}

.address-copy-button {
  margin: 0 auto 28px;
  padding: 10px 22px;
  border: 1px solid #cdbeb5;
  border-radius: 30px;
  background: transparent;
  color: #655b55;
  font-family: inherit;
  font-size: 12px;
  cursor: pointer;
  transition:
    background 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease;
}

.address-copy-button:hover {
  border-color: #997867;
  background: #997867;
  color: #fff;
}

/* Google Maps */

.google-map-wrapper {
  position: relative;
  width: 100%;
  height: 290px;
  overflow: hidden;
  border-radius: 2px;
  background: #eee8e4;
}

.google-map-wrapper iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

/* 지도 서비스 버튼 */

.map-link-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin-top: 12px;
}

.map-link-button {
  display: flex;
  min-width: 0;
  min-height: 64px;
  padding: 10px 5px;
  border: 1px solid #ded4ce;
  background: #fff;
  color: #5f5651;
  text-decoration: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    transform 0.2s ease;
}

.map-link-button:hover {
  border-color: #bca99e;
  background: #faf7f5;
  transform: translateY(-1px);
}

.map-service-name {
  display: block;
  margin-bottom: 5px;
  color: #a68878;
  font-family: Arial, sans-serif;
  font-size: 9px;
  letter-spacing: 1px;
}

.map-link-button > span:last-child {
  font-size: 12px;
}

/* 공식 약도 */

.official-map-block {
  margin-top: 65px;
}

.location-subheading {
  margin-bottom: 25px;
  text-align: center;
}

.location-subheading span {
  display: block;
  margin-bottom: 8px;
  color: #b09584;
  font-family: Arial, sans-serif;
  font-size: 10px;
  letter-spacing: 2px;
}

.location-subheading h3 {
  margin: 0;
  color: #514843;
  font-size: 19px;
  font-weight: 400;
}

.official-map-button {
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 1px solid #e5ddd8;
  background: #fff;
  cursor: zoom-in;
}

.official-map-button img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.4s ease;
}

.official-map-button:hover img {
  transform: scale(1.01);
}

.map-expand-guide {
  margin: 12px 0 0;
  color: #9a908a;
  font-size: 11px;
}

/* 교통 안내 */

.transport-guide {
  margin-top: 65px;
  text-align: left;
}

.transport-item {
  display: grid;
  grid-template-columns: 45px minmax(0, 1fr);
  gap: 16px;
  padding: 25px 0;
  border-bottom: 1px solid #e8e1dc;
}

.transport-item:first-of-type {
  border-top: 1px solid #e8e1dc;
}

.transport-icon {
  display: flex;
  width: 42px;
  height: 42px;
  border: 1px solid #c8b5a9;
  border-radius: 50%;
  color: #9b7967;
  font-family: Georgia, serif;
  font-size: 14px;
  align-items: center;
  justify-content: center;
}

.transport-content h4 {
  margin: 0 0 11px;
  color: #514843;
  font-size: 15px;
  font-weight: 500;
}

.transport-content p {
  margin: 0 0 13px;
  color: #746b66;
  font-size: 12px;
  line-height: 1.75;
}

.transport-content p:last-child {
  margin-bottom: 0;
}

.transport-content strong {
  color: #5b514c;
  font-weight: 500;
}

/* 공식 약도 확대 모달 */

.map-modal {
  position: fixed;
  z-index: 10000;
  inset: 0;
  display: none;
  padding: 55px 12px 20px;
  overflow: auto;
  background: rgba(18, 16, 15, 0.96);
  align-items: flex-start;
  justify-content: center;
  overscroll-behavior: contain;
}

.map-modal.is-open {
  display: flex;
}

.map-modal-content {
  width: min(100%, 760px);
  margin: auto;
}

.map-modal-content img {
  display: block;
  width: 100%;
  height: auto;
  background: #fff;
}

.map-modal-close {
  position: fixed;
  z-index: 1;
  top: 10px;
  right: 14px;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  font-family: Arial, sans-serif;
  font-size: 34px;
  font-weight: 200;
  line-height: 42px;
  cursor: pointer;
}

body.map-modal-open {
  overflow: hidden;
}

/* 작은 모바일 화면 */

@media (max-width: 380px) {
  .map-link-grid {
    grid-template-columns: 1fr;
  }

  .map-link-button {
    min-height: 52px;
    flex-direction: row;
    gap: 8px;
  }

  .map-service-name {
    margin: 0;
  }
}

/* 넓은 화면 */

@media (min-width: 700px) {
  .google-map-wrapper {
    height: 350px;
  }

  .official-map-button {
    max-width: 620px;
    margin: 0 auto;
  }

  .transport-guide {
    max-width: 620px;
    margin-right: auto;
    margin-left: auto;
  }
}

/* ================================
   CONTACT
================================ */

.contact-section {
  overflow: hidden;
}

.contact-description {
  margin: -5px 0 42px;
  color: #847b76;
  font-size: 13px;
  line-height: 1.8;
}

.contact-group {
  margin-top: 45px;
}

.contact-group:first-of-type {
  margin-top: 0;
}

.contact-group h3 {
  margin: 0 0 18px;
  color: #655b55;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.3px;
}

.contact-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid #e8e1dc;
  text-align: left;
  align-items: center;
}

.contact-card:first-of-type {
  border-top: 1px solid #e8e1dc;
}

.contact-person {
  min-width: 0;
}

.contact-role {
  display: block;
  margin-bottom: 5px;
  color: #aa9386;
  font-size: 11px;
}

.contact-person strong {
  color: #4f4743;
  font-size: 15px;
  font-weight: 500;
}

.contact-toggle-button {
  min-width: 83px;
  padding: 9px 14px;
  border: 1px solid #cdbeb5;
  border-radius: 24px;
  background: transparent;
  color: #655b55;
  font-family: inherit;
  font-size: 11px;
  cursor: pointer;
  transition:
    background 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease;
}

.contact-toggle-button:hover,
.contact-card.is-open .contact-toggle-button {
  border-color: #997867;
  background: #997867;
  color: #fff;
}

.contact-actions {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-5px);
  transition:
    max-height 0.35s ease,
    opacity 0.25s ease,
    transform 0.35s ease,
    margin 0.35s ease;
}

.contact-card.is-open .contact-actions {
  max-height: 70px;
  margin-top: 4px;
  opacity: 1;
  transform: translateY(0);
}

.contact-action-button {
  display: flex;
  min-height: 43px;
  border: 1px solid #ded4ce;
  background: #faf7f5;
  color: #5f5651;
  font-size: 12px;
  text-decoration: none;
  align-items: center;
  justify-content: center;
  transition:
    background 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease;
}

.contact-action-button:hover {
  border-color: #a98c7d;
  background: #a98c7d;
  color: #fff;
}

@media (min-width: 700px) {
  .contact-group {
    max-width: 620px;
    margin-right: auto;
    margin-left: auto;
  }
}

/* ================================
   ACCOUNT
================================ */

.account-section {
  overflow: hidden;
}

.account-description {
  margin: -5px 0 28px;
  color: #847b76;
  font-size: 13px;
  line-height: 1.8;
}

.account-notice {
  margin-bottom: 35px;
  padding: 14px 18px;
  background: #faf7f5;
  color: #857a74;
  font-size: 11px;
  line-height: 1.7;
}

.account-group {
  margin-bottom: 12px;
  border: 1px solid #e4dcd7;
  background: #fff;
}

.account-group-toggle {
  display: flex;
  width: 100%;
  min-height: 59px;
  padding: 0 20px;
  border: 0;
  background: transparent;
  color: #554d48;
  font-family: inherit;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
  align-items: center;
  justify-content: space-between;
}

.account-toggle-icon {
  color: #a58979;
  font-family: Arial, sans-serif;
  font-size: 22px;
  font-weight: 200;
  line-height: 1;
  transition: transform 0.3s ease;
}

.account-group.is-open .account-toggle-icon {
  transform: rotate(45deg);
}

.account-group-content {
  max-height: 0;
  padding: 0 16px;
  overflow: hidden;
  opacity: 0;
  transition:
    max-height 0.5s ease,
    opacity 0.3s ease,
    padding 0.4s ease;
}

.account-group.is-open .account-group-content {
  max-height: 1000px;
  padding-top: 4px;
  padding-bottom: 18px;
  opacity: 1;
}

.account-card {
  padding: 20px 4px;
  border-top: 1px solid #ebe4df;
  text-align: left;
}

.account-card-header {
  display: flex;
  gap: 15px;
  align-items: flex-start;
  justify-content: space-between;
}

.account-role {
  display: block;
  margin-bottom: 5px;
  color: #aa9386;
  font-size: 10px;
}

.account-card-header strong {
  color: #4e4641;
  font-size: 15px;
  font-weight: 500;
}

.account-bank {
  padding-top: 17px;
  color: #857a74;
  font-size: 11px;
  white-space: nowrap;
}

.account-number {
  margin: 16px 0;
  color: #4e4641;
  font-family:
    Arial,
    sans-serif;
  font-size: 16px;
  letter-spacing: 0.5px;
}

.account-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.account-copy-button {
  min-height: 42px;
  padding: 8px 5px;
  border: 1px solid #d9cec7;
  background: #fff;
  color: #665c56;
  font-family: inherit;
  font-size: 11px;
  cursor: pointer;
  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease;
}

.account-copy-button:hover {
  border-color: #a98c7d;
  background: #a98c7d;
  color: #fff;
}

.account-copy-all {
  background: #faf7f5;
}

/* 복사 완료 메시지 */

.copy-toast {
  position: fixed;
  z-index: 12000;
  right: 20px;
  bottom: 24px;
  left: 20px;
  max-width: 360px;
  margin: 0 auto;
  padding: 14px 18px;
  border-radius: 4px;
  background: rgba(55, 49, 46, 0.94);
  color: #fff;
  font-size: 12px;
  text-align: center;
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.25s ease,
    transform 0.3s ease;
  pointer-events: none;
}

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

@media (max-width: 360px) {
  .account-actions {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 700px) {
  .account-section > .account-group,
  .account-notice {
    max-width: 620px;
    margin-right: auto;
    margin-left: auto;
  }
}

/* ================================
   WEDDING FOOTER
================================ */

.share-button {
  display: flex;
  width: min(100%, 280px);
  min-height: 49px;
  margin: 0 auto;
  padding: 10px 20px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: transparent;
  color: #fff;
  font-family: inherit;
  font-size: 12px;
  letter-spacing: 0.5px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition:
    background 0.25s ease,
    border-color 0.25s ease;
}

.share-button:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

/* ================================
   HERO INTRO ANIMATION
================================ */

.hero-image {
  animation: heroImageReveal 1.2s ease both;
}

.hero-text {
  animation: heroTextReveal 1s ease 0.3s both;
}

@keyframes heroImageReveal {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes heroTextReveal {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

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

@media (prefers-reduced-motion: reduce) {
  .hero-image,
  .hero-text {
    animation: none !important;
  }
}

/*
  스크롤 애니메이션 적용 전에는
  모든 콘텐츠가 기본적으로 표시됩니다.
*/
.scroll-reveal {
  visibility: visible;
}

/*
  표시된 섹션은 클릭도 정상적으로 가능하게 합니다.
*/
.reveal-ready .scroll-reveal.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

/* ================================
   RSVP RESULT
================================ */

.rsvp-result {
  padding: 42px 22px 34px;
  border: 1px solid #ded4ce;
  background: #faf7f5;
  text-align: center;
}

.rsvp-result-check {
  display: flex;
  width: 54px;
  height: 54px;
  margin: 0 auto 20px;
  border: 1px solid #9c7b69;
  border-radius: 50%;
  color: #8e6d5c;
  font-size: 22px;
  align-items: center;
  justify-content: center;
}

.rsvp-result-label {
  margin: 0 0 9px;
  color: #aa8f80;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 9px;
  letter-spacing: 2.5px;
}

.rsvp-result h3 {
  margin: 0 0 15px;
  color: #4d4541;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.6;
}

.rsvp-result-description {
  margin: 0;
  color: #80766f;
  font-size: 12px;
  line-height: 1.85;
}

.rsvp-save-notice {
  margin: 27px 0 22px;
  padding: 17px 14px;
  border-left: 3px solid #a78675;
  background: #fff;
  text-align: left;
}

.rsvp-save-notice strong {
  display: block;
  margin-bottom: 7px;
  color: #5a504b;
  font-size: 12px;
  font-weight: 600;
}

.rsvp-save-notice p {
  margin: 0;
  color: #887d76;
  font-size: 10px;
  line-height: 1.75;
}

.rsvp-code-list {
  margin: 0 0 19px;
  border: 1px solid #ded4ce;
  background: #fff;
}

.rsvp-code-item {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  min-height: 66px;
  padding: 13px 15px;
  align-items: center;
}

.rsvp-code-item + .rsvp-code-item {
  border-top: 1px solid #e8e0db;
}

.rsvp-code-item dt {
  color: #988b84;
  font-size: 10px;
  text-align: left;
}

.rsvp-code-item dd {
  margin: 0;
  color: #443d39;
  font-family: Arial, sans-serif;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 1px;
  text-align: right;
  word-break: break-all;
  user-select: all;
}

.rsvp-copy-info-button {
  display: flex;
  width: 100%;
  min-height: 50px;
  padding: 11px 16px;
  border: 1px solid #987665;
  background: #987665;
  color: #fff;
  font-family: inherit;
  font-size: 12px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    transform 0.2s ease;
}

.rsvp-copy-info-button:hover {
  border-color: #7f6152;
  background: #7f6152;
}

.rsvp-copy-info-button:active {
  transform: translateY(1px);
}

.rsvp-screenshot-guide {
  margin: 11px 0 23px;
  color: #a09690;
  font-size: 9px;
  line-height: 1.6;
}

.rsvp-edit-response-button {
  padding: 6px;
  border: 0;
  background: transparent;
  color: #846f64;
  font-family: inherit;
  font-size: 10px;
  text-decoration: underline;
  cursor: pointer;
}

@media (min-width: 700px) {
  .rsvp-result {
    max-width: 620px;
    margin-right: auto;
    margin-left: auto;
    padding: 50px 46px 40px;
  }
}

/* ================================
   WEDDING D-DAY
================================ */

.wedding-dday {
  margin: 45px auto 0;
  padding: 32px 20px;
  border-top: 1px solid #e5ddd8;
  border-bottom: 1px solid #e5ddd8;
  text-align: center;
}

.dday-label {
  margin: 0 0 13px;
  color: #aa8c7b;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 9px;
  letter-spacing: 2.5px;
}

.dday-title {
  margin: 0 0 8px;
  color: #716762;
  font-size: 12px;
}

.dday-number {
  display: block;
  margin-bottom: 13px;
  color: #5a4f49;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 35px;
  font-weight: 400;
  letter-spacing: 2px;
}

.dday-date {
  margin: 0;
  color: #9a8f88;
  font-size: 10px;
  line-height: 1.7;
}

.wedding-dday.is-wedding-day .dday-number {
  font-size: 28px;
}

.wedding-dday.is-finished .dday-number {
  font-family: inherit;
  font-size: 20px;
  letter-spacing: 0;
}

/* ========================================
   Scroll Reveal Animation
======================================== */

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

.reveal.show {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   BUTTON & TOUCH UX
======================================== */

/*
  모바일에서 버튼을 빠르게 눌렀을 때 나타나는
  기본 파란색 하이라이트를 제거합니다.
*/
button,
a {
  -webkit-tap-highlight-color: transparent;
}

/*
  주요 버튼에 공통 전환 효과를 적용합니다.
*/
.share-button,
.gallery-more-button,
.address-copy-button,
.map-link-button,
.contact-toggle-button,
.contact-action-button,
.account-group-toggle,
.account-copy-button,
.official-map-button,
.rsvp-edit-toggle,
.rsvp-secondary-button,
.rsvp-text-button,
.rsvp-submit-button,
.rsvp-copy-info-button,
.rsvp-edit-response-button {
  transition:
    transform 0.16s ease,
    opacity 0.16s ease,
    background-color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

/*
  손가락이나 마우스로 누르는 순간
  아주 살짝 작아져 눌린 느낌을 줍니다.
*/
.share-button:active,
.gallery-more-button:active,
.address-copy-button:active,
.map-link-button:active,
.contact-toggle-button:active,
.contact-action-button:active,
.account-group-toggle:active,
.account-copy-button:active,
.official-map-button:active,
.rsvp-edit-toggle:active,
.rsvp-secondary-button:active,
.rsvp-submit-button:active,
.rsvp-copy-info-button:active {
  transform: scale(0.975);
  opacity: 0.88;
}

/*
  작은 텍스트형 버튼은 크기 변화가 과해 보일 수 있으므로
  아래로 1px만 이동시킵니다.
*/
.rsvp-text-button:active,
.rsvp-edit-response-button:active {
  transform: translateY(1px);
  opacity: 0.7;
}

/*
  키보드 사용자가 현재 선택한 버튼을 알 수 있도록
  포커스 표시를 제공합니다.
*/
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid rgba(146, 111, 93, 0.65);
  outline-offset: 3px;
}

/*
  버튼이 비활성화된 경우 눌림 효과를 제거합니다.
*/
button:disabled {
  transform: none !important;
  opacity: 0.55;
  cursor: not-allowed;
}

/*
  모바일에서 누르기 편하도록 주요 버튼의
  최소 터치 높이를 보장합니다.
*/
.share-button,
.gallery-more-button,
.address-copy-button,
.map-link-button,
.contact-toggle-button,
.contact-action-button,
.account-copy-button,
.rsvp-secondary-button,
.rsvp-submit-button,
.rsvp-copy-info-button {
  min-height: 48px;
  touch-action: manipulation;
}

/*
  접기·펼치기 버튼은 전체 영역을 누를 수 있도록 합니다.
*/
.account-group-toggle,
.rsvp-edit-toggle {
  touch-action: manipulation;
  cursor: pointer;
}

/*
  데스크톱에서 마우스를 올렸을 때만
  아주 은은한 반응을 줍니다.
*/
@media (hover: hover) and (pointer: fine) {
  .share-button:hover,
  .gallery-more-button:hover,
  .address-copy-button:hover,
  .contact-toggle-button:hover,
  .account-copy-button:hover,
  .rsvp-secondary-button:hover,
  .rsvp-copy-info-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 14px rgba(73, 57, 49, 0.08);
  }

  .map-link-button:hover,
  .contact-action-button:hover {
    transform: translateY(-1px);
  }

  .official-map-button:hover {
    transform: scale(1.005);
  }
}

/*
  사용자가 모션 감소를 설정한 경우에는
  크기 이동 애니메이션을 사용하지 않습니다.
*/
@media (prefers-reduced-motion: reduce) {
  .share-button,
  .gallery-more-button,
  .address-copy-button,
  .map-link-button,
  .contact-toggle-button,
  .contact-action-button,
  .account-group-toggle,
  .account-copy-button,
  .official-map-button,
  .rsvp-edit-toggle,
  .rsvp-secondary-button,
  .rsvp-text-button,
  .rsvp-submit-button,
  .rsvp-copy-info-button,
  .rsvp-edit-response-button {
    transition: none !important;
  }

  button:active,
  a:active {
    transform: none !important;
  }
}

/* ========================================
   SCROLL TO TOP BUTTON
======================================== */

.scroll-top-button {
  position: fixed;
  z-index: 9000;
  right: max(18px, env(safe-area-inset-right));
  bottom: calc(20px + env(safe-area-inset-bottom));

  display: flex;
  width: 46px;
  height: 46px;
  padding: 0;

  border: 1px solid rgba(116, 91, 78, 0.22);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 5px 18px rgba(62, 48, 41, 0.12);

  color: #765f53;
  font-family: Arial, sans-serif;
  font-size: 18px;

  align-items: center;
  justify-content: center;

  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  pointer-events: none;

  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  transition:
    opacity 0.25s ease,
    visibility 0.25s ease,
    transform 0.25s ease,
    background-color 0.2s ease;
}

.scroll-top-button.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.scroll-top-button:active {
  transform: scale(0.94);
}

@media (hover: hover) and (pointer: fine) {
  .scroll-top-button:hover {
    background: #fff;
    transform: translateY(-2px);
  }

  .scroll-top-button.is-visible:active {
    transform: scale(0.94);
  }
}

@media (max-width: 480px) {
  .scroll-top-button {
    right: max(14px, env(safe-area-inset-right));
    bottom: calc(16px + env(safe-area-inset-bottom));
    width: 43px;
    height: 43px;
    font-size: 17px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-top-button {
    transition: none;
  }
}

/* ========================================
   HERO — MOBILE SCROLL SAFE
======================================== */

.hero {
  overflow: hidden;
  touch-action: pan-y;
}

.hero-image,
.hero::after,
.hero-text,
.hero-scroll-guide {
  pointer-events: none;
}

.hero-image {
  -webkit-user-drag: none;
  user-select: none;
}

@media (prefers-reduced-motion: reduce) {
  .hero-image {
    translate: none !important;
  }
}

/* ========================================
   HERO SCROLL GUIDE — 겹침 방지
======================================== */

.hero {
  position: relative;
  overflow: hidden;
}

/*
  기존 이름·날짜·장소 묶음을 위로 이동해
  하단 SCROLL 영역을 확보합니다.

  translate는 기존 transform 애니메이션과
  비교적 안전하게 함께 사용할 수 있습니다.
*/
.hero-text {
  translate: 0 -34px;
}

/*
  SCROLL은 Hero 맨 아래 중앙에 별도로 고정합니다.
*/
.hero-scroll-guide {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 8px;

  display: flex;
  min-width: 70px;
  align-items: center;
  flex-direction: column;
  justify-content: flex-end;
  gap: 1px;

  color: rgba(255, 255, 255, 0.92);
  text-align: center;
  text-shadow: 0 1px 7px rgba(0, 0, 0, 0.55);

  translate: -50% 0;
  pointer-events: none;
}

.hero-scroll-text {
  display: block;
  margin: 0;
  font-family: Arial, sans-serif;
  font-size: 7px;
  line-height: 1;
  letter-spacing: 2px;
}

.hero-scroll-arrow {
  display: block;
  height: 22px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  line-height: 1;

  animation: heroScrollArrowMove 1.8s ease-in-out infinite;
}

@keyframes heroScrollArrowMove {
  0%,
  100% {
    opacity: 0.45;
    transform: translateY(-1px);
  }

  50% {
    opacity: 1;
    transform: translateY(4px);
  }
}

/*
  화면 높이가 작은 모바일에서는
  텍스트를 조금 더 위로 올립니다.
*/
@media (max-width: 480px) {
  .hero-text {
    translate: 0 -42px;
  }

  .hero-scroll-guide {
    bottom: 5px;
  }

  .hero-scroll-arrow {
    height: 20px;
    font-size: 20px;
  }
}

/*
  세로 화면이 특히 짧은 휴대전화 대응
*/
@media (max-height: 650px) {
  .hero-text {
    translate: 0 -48px;
  }

  .hero-scroll-guide {
    bottom: 3px;
  }

  .hero-scroll-text {
    font-size: 6px;
  }

  .hero-scroll-arrow {
    font-size: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-scroll-arrow {
    animation: none;
  }
}

/* ========================================
   WEDDING FOOTER — FINAL POLISH
======================================== */

.wedding-footer {
  position: relative;
  overflow: hidden;
  padding:
    88px
    28px
    calc(42px + env(safe-area-inset-bottom));

  background:
    linear-gradient(
      180deg,
      #473e39 0%,
      #382f2b 100%
    );

  color: #eee7e2;
  text-align: center;
}

/*
  아주 은은한 빛 번짐을 추가합니다.
*/
.wedding-footer::before {
  position: absolute;
  top: -140px;
  left: 50%;

  width: 340px;
  height: 260px;

  border-radius: 50%;
  background: rgba(255, 255, 255, 0.035);

  content: "";
  transform: translateX(-50%);
  pointer-events: none;
}

.footer-decoration {
  position: relative;
  z-index: 1;

  display: flex;
  width: 160px;
  margin: 0 auto 27px;

  align-items: center;
  justify-content: center;
  gap: 13px;
}

.footer-decoration > span:not(.footer-heart) {
  width: 49px;
  height: 1px;
  background: rgba(255, 255, 255, 0.27);
}

.footer-heart {
  color: #d7c3b7;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
}

.footer-label {
  position: relative;
  z-index: 1;

  margin: 0 0 17px;

  color: #c9ada0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 9px;
  letter-spacing: 3.2px;
}

.footer-title {
  position: relative;
  z-index: 1;

  margin: 0 0 22px;

  color: #f3eeeb;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.8;
  letter-spacing: -0.3px;
}

.footer-message {
  position: relative;
  z-index: 1;

  margin: 0 0 37px;

  color: rgba(238, 231, 226, 0.72);
  font-size: 12px;
  line-height: 2;
}

.footer-couple {
  position: relative;
  z-index: 1;

  display: flex;
  margin-bottom: 9px;

  align-items: center;
  justify-content: center;
  gap: 14px;
}

.footer-couple strong {
  color: #f5f0ed;
  font-size: 17px;
  font-weight: 400;
  letter-spacing: 1.2px;
}

.footer-couple span {
  color: #c3a89b;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  font-style: italic;
}

.footer-date {
  position: relative;
  z-index: 1;

  margin: 0 0 38px;

  color: rgba(229, 216, 208, 0.68);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 12px;
  letter-spacing: 2.4px;
}

.share-button {
  position: relative;
  z-index: 1;

  display: inline-flex;
  width: min(100%, 280px);
  min-height: 50px;
  margin: 0 auto;
  padding: 11px 20px;

  border: 1px solid rgba(255, 255, 255, 0.43);
  background: rgba(255, 255, 255, 0.025);

  color: #fff;
  font-family: inherit;
  font-size: 12px;
  letter-spacing: 0.3px;

  align-items: center;
  justify-content: center;
  gap: 9px;

  cursor: pointer;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.share-button-icon {
  display: inline-block;
  font-family: Arial, sans-serif;
  font-size: 15px;
  line-height: 1;
  transform: translateY(-1px);
}

.footer-copyright {
  position: relative;
  z-index: 1;

  margin: 47px 0 0;

  color: rgba(255, 255, 255, 0.3);
  font-family: Arial, sans-serif;
  font-size: 8px;
  letter-spacing: 2.4px;
}

@media (max-width: 480px) {
  .wedding-footer {
    padding-top: 76px;
  }

  .footer-title {
    font-size: 18px;
  }

  .footer-message {
    font-size: 11px;
  }
}

/* ========================================
   FINAL MOBILE UX STABILITY
======================================== */

/*
  긴 텍스트나 요소 때문에 페이지 전체에
  가로 스크롤이 생기는 것을 방지합니다.
*/
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

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

body {
  margin: 0;
  overscroll-behavior-x: none;
}

/*
  모든 요소의 너비 계산을 안정적으로 맞춥니다.
*/
*,
*::before,
*::after {
  box-sizing: border-box;
}

/*
  이미지와 iframe이 부모 영역보다 넓어지지 않게 합니다.
*/
img,
iframe {
  max-width: 100%;
}

/*
  긴 영문 주소, 접수번호, 수정 코드가
  화면 밖으로 튀어나가지 않게 합니다.
*/
.rsvp-code-item dd,
.account-number,
.location-venue,
.footer-message,
.rsvp-result-description,
.rsvp-save-notice,
.transport-content,
.contact-description,
.account-description {
  overflow-wrap: anywhere;
  word-break: keep-all;
}

/*
  접수번호와 수정 코드는 영문·숫자가 길기 때문에
  필요한 경우 글자 사이에서도 줄바꿈을 허용합니다.
*/
.rsvp-code-item dd {
  word-break: break-all;
}

/*
  iPhone Safari는 입력 글자가 16px보다 작으면
  입력칸을 누를 때 화면을 자동 확대할 수 있습니다.
*/
@media (max-width: 768px) {
  input,
  select,
  textarea {
    font-size: 16px;
  }
}

/*
  입력 요소의 모바일 기본 모양 차이를 줄입니다.
*/
input,
select,
textarea,
button {
  font-family: inherit;
}

input,
select,
textarea {
  width: 100%;
  max-width: 100%;
  border-radius: 0;
}

/*
  iOS에서 버튼과 select가 지나치게 기본 스타일로
  표시되는 현상을 줄입니다.
*/
button,
input,
select,
textarea {
  -webkit-appearance: none;
  appearance: none;
}

/*
  체크박스·라디오 버튼은 기존 기본 모양 또는
  프로젝트의 별도 CSS를 유지해야 하므로 복원합니다.
*/
input[type="checkbox"],
input[type="radio"] {
  width: auto;
  -webkit-appearance: auto;
  appearance: auto;
}

/*
  모바일 터치 중 실수로 텍스트가 선택되는 것을 줄입니다.
*/
button,
.map-link-button,
.contact-action-button,
.gallery-item,
.official-map-button {
  -webkit-user-select: none;
  user-select: none;
}

/*
  복사해야 하는 정보는 선택 가능하도록 유지합니다.
*/
.account-number,
.rsvp-code-item dd {
  -webkit-user-select: text;
  user-select: text;
}

/*
  아이폰 하단 홈바를 고려해 마지막 화면의 여백을 확보합니다.
*/
.wedding-footer {
  padding-bottom:
    calc(42px + env(safe-area-inset-bottom));
}

/*
  오른쪽 아래 고정 버튼이 아이폰 홈바나 화면 가장자리와
  겹치지 않도록 안전 영역을 반영합니다.
*/
.scroll-top-button {
  right: max(14px, env(safe-area-inset-right));
  bottom:
    calc(16px + env(safe-area-inset-bottom));
}

/*
  모바일에서 긴 문장이 너무 촘촘해지지 않도록
  좌우 여백을 안정적으로 유지합니다.
*/
@media (max-width: 480px) {
  .section {
    padding-right: 22px;
    padding-left: 22px;
  }

  .hero-text {
    width: calc(100% - 36px);
    max-width: 100%;
  }

  .hero-text h1 {
    white-space: nowrap;
  }

  .wedding-date,
  .wedding-place {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .rsvp-code-item {
    grid-template-columns: 78px minmax(0, 1fr);
    column-gap: 10px;
  }

  .rsvp-code-item dd {
    font-size: 14px;
    letter-spacing: 0.6px;
  }
}

/*
  아주 작은 화면에서는 이름이 화면 밖으로 나가지 않게
  글자 크기를 조금 줄입니다.
*/
@media (max-width: 360px) {
  .hero-text h1 {
    font-size: clamp(28px, 10vw, 38px);
  }

  .wedding-date {
    font-size: 12px;
  }

  .wedding-place {
    font-size: 11px;
  }

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

/* ========================================
   iOS RSVP INPUT ZOOM FIX
   반드시 style.css 맨 마지막에 배치
======================================== */

@media (max-width: 768px) {
  .rsvp-section input:not([type="checkbox"]):not([type="radio"]),
  .rsvp-section select,
  .rsvp-section textarea,
  .rsvp-field input,
  .rsvp-field select,
  .rsvp-field textarea,
  .rsvp-phone-grid input {
    font-size: 16px !important;
  }
}

/* ========================================
   BGM GLASS BUTTON
======================================== */

.bgm-button {
  position: fixed;
  z-index: 9100;
  top: calc(14px + env(safe-area-inset-top));
  right: max(14px, env(safe-area-inset-right));

  display: flex;
  width: 42px;
  height: 42px;
  padding: 0;

  border: 1px solid rgba(255, 255, 255, 0.46);
  border-radius: 50%;
  background: rgba(48, 41, 37, 0.34);
  box-shadow:
    0 5px 18px rgba(0, 0, 0, 0.13),
    inset 0 1px 0 rgba(255, 255, 255, 0.13);

  color: #fff;
  font-family: Arial, sans-serif;

  align-items: center;
  justify-content: center;

  cursor: pointer;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  -webkit-tap-highlight-color: transparent;

  transition:
    transform 0.18s ease,
    opacity 0.25s ease,
    background-color 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

/* ========================================
   BGM ICON CROSS FADE
======================================== */

.bgm-play-icon,
.bgm-pause-icon {
  position: absolute;
  inset: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  line-height: 1;
  pointer-events: none;

  transition:
    opacity 0.18s ease,
    transform 0.18s ease;
}

.bgm-play-icon {
  padding-left: 1px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 19px;

  opacity: 1;
  transform: scale(1) rotate(0deg);
}

.bgm-pause-icon {
  padding-left: 1px;
  font-family: Arial, sans-serif;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: -1px;

  opacity: 0;
  transform: scale(0.72);
}

.bgm-button.is-playing .bgm-play-icon {
  opacity: 0;
  transform: scale(0.72) rotate(10deg);
}

.bgm-button.is-playing .bgm-pause-icon {
  opacity: 1;
  transform: scale(1);
}

.bgm-play-icon {
  padding-left: 1px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 19px;
}

.bgm-pause-icon {
  padding-left: 1px;
  font-family: Arial, sans-serif;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: -1px;
}

/*
  음악 재생 중 상태
*/
.bgm-button.is-playing {
  border-color: rgba(255, 255, 255, 0.72);
  background: rgba(139, 102, 83, 0.58);
  box-shadow:
    0 5px 18px rgba(0, 0, 0, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.bgm-button.is-playing::after {
  position: absolute;
  inset: -4px;

  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;

  content: "";
  animation: bgmPlayingPulse 2.2s ease-out infinite;
  pointer-events: none;
}

@keyframes bgmPlayingPulse {
  0% {
    opacity: 0;
    transform: scale(0.9);
  }

  25% {
    opacity: 0.45;
  }

  100% {
    opacity: 0;
    transform: scale(1.18);
  }
}

@media (hover: hover) and (pointer: fine) {
  .bgm-button:hover {
    border-color: rgba(255, 255, 255, 0.68);
    background: rgba(48, 41, 37, 0.52);
    transform: translateY(-1px);
  }

  .bgm-button.is-playing:hover {
    background: rgba(139, 102, 83, 0.7);
  }
}

@media (max-width: 480px) {
  .bgm-button {
    top: calc(12px + env(safe-area-inset-top));
    right: max(12px, env(safe-area-inset-right));
    width: 40px;
    height: 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bgm-button,
  .bgm-button.is-playing::after {
    transition: none;
    animation: none;
  }
}
/* ========================================
   BGM BUTTON ENTRANCE
======================================== */

.bgm-button {
  opacity: 0;
  transform: translateY(-8px) scale(0.94);
}

.bgm-button.is-ready {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/*
  눌렀을 때는 등장 애니메이션보다
  터치 반응을 우선합니다.
*/
.bgm-button.is-ready:active {
  transform: scale(0.93);
}

@media (hover: hover) and (pointer: fine) {
  .bgm-button.is-ready:hover {
    transform: translateY(-1px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .bgm-button {
    opacity: 1;
    transform: none;
  }

  .bgm-play-icon,
  .bgm-pause-icon {
    transition: none;
  }
}

/* ========================================
   IMMEDIATE PAGE SCROLL
======================================== */

html,
body {
  min-height: 100%;
  overflow-y: auto;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
}

.invitation {
  touch-action: pan-y;
}

/* ========================================
   DISABLE AUTO-DETECTED PHONE LINKS
======================================== */

.account-number,
.account-number a,
.account-card a[x-apple-data-detectors] {
  color: inherit !important;
  font: inherit !important;
  text-decoration: none !important;
  cursor: default !important;
}

a[x-apple-data-detectors] {
  color: inherit !important;
  text-decoration: none !important;
}