/* ===== 폰트 ===== */
@font-face {
  font-family: 'NanumGothicCoding';
  src: url('./fonts/NanumGothicCoding-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'NanumGothicCoding';
  src: url('./fonts/NanumGothicCoding-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
}

/* ===== 리셋·공통 ===== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 20px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  background-color: #fff;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

body {
  font-family: "NanumGothicCoding", sans-serif;
  color: #4a4a4a;
  background-color: #fff;
  font-weight: 400;
  line-height: 1.8;
  letter-spacing: -0.5px;
  -webkit-font-smoothing: antialiased;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  touch-action: pan-y;
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ===== ラッパー（モバイル幅に制限） ===== */
.wrapper {
  max-width: 430px;
  margin: 0 auto;
  background-color: #f4f9fd;
  min-height: 100vh;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

/* ===== 共通パーツ ===== */
section {
  padding: 2.8rem 1.6rem;
  position: relative;
  z-index: 1;
  background-color: inherit;
  display: block;
  margin: 0;
}

.section-eng {
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-align: center;
  color: #96c0d8;
  margin-bottom: 1rem;
}

.divider-icon {
  text-align: center;
  font-size: 0.7rem;
  color: #b8d8eb;
  margin-bottom: 2rem;
  letter-spacing: 0.2em;
}

/* ===== フェードインアニメーション ===== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s ease, transform 1s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== カバー ===== */
#cover {
  padding: 0;
  text-align: center;
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 0;
  will-change: transform;
  transform: translateZ(0);
}

.cover-photo {
  width: 100%;
  overflow: hidden;
  position: relative;
}

#particles-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.cover-photo-placeholder {
  width: 100%;
  aspect-ratio: 3 / 4.15;
  background: url('./images/main.jpg') center center / cover no-repeat;
}

.cover-date-overlay {
  position: absolute;
  top: 27%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  color: #fff;
  -webkit-font-smoothing: antialiased;
}

.cover-date-overlay span {
  font-family: "Corben", serif;
  font-size: 88px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.5px;
  margin: -12px 0;
}

.cover-date-overlay span:nth-child(2) {
  padding-left: 42px;
}

.cover-date-overlay span:nth-child(3) {
  padding-left: 22px;
}

.cover-text {
  display: none;
}

.cover-label {
  font-family: "Cormorant Garamond", serif;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: #96c0d8;
  margin-bottom: 0.9rem;
  font-weight: 600;
  text-align: center;
}

.cover-names {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.75rem;
  font-size: 1.2rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: #3d3530;
}

.cover-heart {
  width: 18px;
  height: auto;
}

.cover-date {
  font-size: 18px;
  letter-spacing: -0.03em;
  word-spacing: -0.2em;
  color: rgb(61, 53, 48);
  margin-bottom: 20px;
  font-weight: 400;
  text-align: center;
}

.cover-venue {
  font-size: 0.72rem;
  color: #aaa09a;
  letter-spacing: 0.05em;
  font-weight: 300;
}

/* ===== 挨拶 ===== */
#greeting {
  text-align: center;
  background-color: #fff;
  padding-top: 56px;
}

.greeting-body {
  margin-bottom: 0;
}

.greeting-body p:last-child {
  margin-bottom: 0;
}

.greeting-body p {
  font-size: 0.8rem;
  font-weight: 400;
  line-height: 1.7;
  color: #5a5550;
  margin-bottom: 1.2rem;
  letter-spacing: 0;
}

.couple-label {
  display: inline-block;
  background-color: rgb(106, 170, 200);
  color: #fff;
  font-size: 12px;
  padding: 2px 12px;
  border-radius: 20px;
  margin-bottom: 6px;
}

.couple-parents {
  padding-top: 0;
  position: relative;
}

.couple-parents::before {
  content: '';
  display: block;
  width: 40px;
  height: 1px;
  background-color: #b8d8eb;
  margin: 1.6rem auto 1.6rem;
}

.couple-parents p {
  font-size: 0.72rem;
  color: rgb(170, 165, 160);
  line-height: 2;
  font-weight: 400;
}

.couple-parents p + p {
  margin-top: 48px;
}

.couple-parents strong {
  font-size: 0.8rem;
  font-weight: 400;
  color: #4a4540;
}

.parent-name {
  font-size: 0.72rem;
  color: rgb(61, 53, 48);
  font-weight: 400;
}

/* ===== カレンダー ===== */
#calendar {
  text-align: center;
}

.calendar-date-text {
  font-family: "Pretendard", sans-serif;
  font-size: 1.2rem;
  color: rgb(61, 53, 48);
  margin-bottom: 1.2rem;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0.08em;
}

.mini-calendar {
  max-width: 300px;
  margin: 0 auto 1.2rem;
  border-top: 1px solid #e5f3fb;
  padding-top: 1.2rem;
}

.cal-header {
  font-family: "Cormorant Garamond", serif;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  color: #6a6560;
  margin-bottom: 1rem;
  font-weight: 400;
}

.cal-weekdays,
.cal-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  align-items: center;
}

.cal-weekdays {
  margin-bottom: 0.5rem;
}

.calendar-date-sub {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
}

.cal-weekdays span {
  font-size: 0.7rem;
  color: rgb(61, 53, 48);
  padding: 0.3rem 0;
  font-weight: 400;
}

.cal-weekdays .sun {
  color: #d4907a;
}

.cal-weekdays .sat {
  color: #7a9ab5;
}

.cal-days span {
  font-family: "Pretendard", sans-serif;
  font-size: 0.8rem;
  padding: 0.4rem 0;
  color: #5a5550;
  font-weight: 400;
}

.cal-days .sun {
  color: #d4907a;
}

.cal-days .sat {
  color: #7a9ab5;
}

.cal-days .today {
  position: relative;
}

/* 1日（피로연 당일）をハイライト */
.cal-days span:nth-child(6) {
  background-color: #6aaac8;
  color: #fff;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  padding: 0;
  margin: 0 auto;
  font-weight: 400;
  display: flex;
  align-items: center;
  justify-content: center;
}

.countdown-inline {
  font-size: 15px;
  color: rgb(61, 53, 48);
  text-align: center;
  padding-top: 0.5rem;
  border-top: 1px solid #e5f3fb;
  max-width: 300px;
  margin: 0 auto;
  font-weight: 400;
  white-space: nowrap;
}

.countdown-inline span {
  letter-spacing: 0;
}

.countdown-inline strong {
  font-family: "Pretendard", sans-serif;
  font-size: 0.9rem;
  color: rgb(61, 53, 48);
  font-weight: 400;
  position: relative;
  top: 2px;
}

/* ===== ギャラリー ===== */
#gallery {
  background-color: #fff;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
}

.gallery-placeholder {
  width: 100%;
  aspect-ratio: 1;
  background: linear-gradient(135deg, #ede8e2 0%, #e0d8d0 100%);
}

.gallery-item {
  cursor: pointer;
  aspect-ratio: 1;
  overflow: hidden;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ===== 라이트박스 ===== */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 100vw;
  max-height: 88vh;
  width: 100vw;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
}

/* ===== 式場案内 ===== */
#location {
  text-align: center;
}

.location-name {
  font-size: 18px;
  font-weight: 400;
  color: #3d3530;
  margin-bottom: 0.2rem;
  line-height: 1.7;
  letter-spacing: -1px;
}

.location-hall {
  font-size: 0.8rem;
  color: #9a958f;
  margin-bottom: 0.8rem;
  font-weight: 400;
}

.location-address {
  font-size: 0.75rem;
  color: #999999;
  margin-bottom: 12px;
  font-weight: 400;
}

.location-tel {
  font-family: "Pretendard", sans-serif;
  font-size: 18px;
  color: rgb(61, 53, 48);
  margin-bottom: 28px;
}

.location-tel a {
  color: rgb(61, 53, 48);
  text-decoration: none;
}
  margin-bottom: 1.5rem;
}

.location-map {
  margin-bottom: 1.5rem;
}

.map-preview {
  display: block;
  position: relative;
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 24px;
  text-decoration: none;
}

.map-img {
  width: 100%;
  height: auto;
  display: block;
}

.map-label {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  align-items: center;
  gap: 5px;
  background-color: rgba(0, 0, 0, 0.6);
  border-radius: 8px;
  padding: 5px 10px 5px 6px;
  font-size: 12px;
  color: #ffffff;
  font-weight: 400;
  font-family: "NanumGothicCoding", sans-serif;
}

.map-label-icon {
  width: 18px !important;
  height: 18px !important;
  max-width: 18px !important;
  max-height: 18px !important;
  object-fit: contain;
  border-radius: 4px;
  display: inline-block !important;
  flex-shrink: 0;
}

.map-nav-section {
  text-align: left;
  margin-bottom: 1.5rem;
}

.map-nav-title {
  font-size: 16px;
  font-weight: 600;
  color: #3d3530;
  margin-bottom: 4px;
}

.map-nav-desc {
  font-size: 13px;
  color: rgb(61, 53, 48);
  margin-bottom: 0.8rem;
  font-weight: 400;
  line-height: 1.5;
}

.map-buttons {
  display: flex;
  gap: 0.5rem;
}

.map-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 44px;
  border-radius: 10px;
  background-color: #ffffff;
  border: 1px solid #e8e8e8;
  font-size: 12px;
  color: #3d3530;
  font-weight: 400;
  text-decoration: none;
  font-family: "NanumGothicCoding", sans-serif;
  white-space: nowrap;
}

.map-btn-img {
  width: 20px !important;
  height: 20px !important;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}

.location-access {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.access-item {
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
  font-size: 0.75rem;
  color: rgb(61, 53, 48);
  font-weight: 400;
}

.access-label {
  font-size: 0.68rem;
  color: #fff;
  background-color: #6aaac8;
  padding: 0.15rem 0.5rem;
  border-radius: 2px;
  flex-shrink: 0;
  font-weight: 400;
}

/* ===== ご祝儀 ===== */
#account {
  background-color: #fff;
  text-align: center;
}

.account-desc {
  font-size: 0.78rem;
  color: rgb(61, 53, 48);
  margin-bottom: 1.5rem;
  line-height: 1.7;
  font-weight: 400;
}

.account-tabs {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-bottom: 1.5rem;
  border: 1px solid #d8eef8;
  border-radius: 4px;
  overflow: hidden;
}

.account-tab {
  flex: 1;
  padding: 0.6rem 0;
  font-size: 0.78rem;
  color: #aaa5a0;
  background-color: transparent;
  transition: all 0.3s ease;
  font-weight: 400;
}

.account-tab.active {
  background-color: #b8d8eb;
  color: #fff;
  font-weight: 400;
}

.account-content.hidden {
  display: none;
}

.account-list {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.account-row {
  padding: 1rem;
  background-color: #f2f8fd;
  border-radius: 6px;
}

.account-bank {
  font-size: 0.72rem;
  color: #aaa5a0;
  margin-bottom: 0.2rem;
}

.account-number {
  font-family: "Pretendard", sans-serif;
  font-size: 0.95rem;
  color: rgb(61, 53, 48);
  letter-spacing: 0.08em;
  margin-bottom: 0.1rem;
}

.account-holder {
  font-size: 0.78rem;
  color: rgb(61, 53, 48);
  margin-bottom: 0.6rem;
  font-weight: 400;
}

.copy-btn {
  font-size: 0.7rem;
  color: rgb(106, 170, 200);
  background-color: #fff;
  border: 1px solid rgb(106, 170, 200);
  padding: 0.35rem 1.2rem;
  border-radius: 3px;
  transition: all 0.2s ease;
}

.copy-btn:active {
  background-color: #b8d8eb;
  color: #fff;
  border-color: #b8d8eb;
}

/* ===== フッター ===== */
#footer {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: #fff;
}

.footer-bg {
  width: 100%;
  height: auto;
  display: block;
}


.footer-thanks {
  position: absolute;
  z-index: 2;
  font-family: "NanumGothicCoding", sans-serif;
  font-size: 14.5px;
  font-weight: 400;
  color: #738899;
  letter-spacing: 0;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.25);
  transform: translateY(-40px);
}

/* ===== 프로필 섹션 ===== */
#profile {
  background-color: #ffffff;
}

.profile-card {
  text-align: center;
  margin-bottom: 48px;
}

.profile-card:last-child {
  margin-bottom: 0;
}

.profile-card .couple-label {
  display: inline-block;
  margin-bottom: 0.8rem;
}

.profile-parents {
  font-size: 0.75rem;
  color: #9b9287;
  margin-bottom: 0.3rem;
  line-height: 1.5;
}

.profile-person-name {
  font-size: 1rem;
  font-weight: 400;
  line-height: 32px;
  color: #3d3530;
  letter-spacing: 0.05em;
  margin-bottom: 0.8rem;
}

.profile-photo {
  width: 70%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  margin: 0 auto 0.8rem;
}

.profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.profile-info {
  font-size: 0.75rem;
  color: #5a5047;
  line-height: 2;
  letter-spacing: 0;
}

.profile-comment {
  font-size: 0.75rem;
  color: #9b9287;
  margin-top: 1rem;
  font-style: italic;
  letter-spacing: 0;
  line-height: 24px;
}

.profile-separator {
  width: 60px;
  height: 1px;
  background-color: #6aaac8;
  margin: 2.5rem auto;
}
