﻿@font-face {
  font-family: "GangwonEdu";
  src: url("https://cdn.jsdelivr.net/npm/@noonnu/gangwon-edu-otf-bold-a@0.1.0/fonts/gangwoneduotfbolda-normal.woff")
    format("woff");
  font-weight: 400;
  font-style: normal;
}
:root {
  --bg: #f9f9f9;
  --text: #2f302c;
  --subtext: #676a63;
  --line: #e3e6de;
  --card: #ffffff;
  --accent: #6f7f63;
  --accent-soft: #edf2e8;
  --blush: #f7efea;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "GangwonEdu", serif;
  line-height: 1.75;
}

.sakura-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

.sakura {
  position: absolute;
  top: -12vh;
  border-radius: 70% 30% 70% 30%;
  background: radial-gradient(circle at 30% 25%, #fff 6%, #ffdce7 40%, #f5b7ca 100%);
  opacity: 0.68;
  animation-name: sakura-fall;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  will-change: transform, opacity;
}

@keyframes sakura-fall {
  0% {
    transform: translate3d(0, -12vh, 0) rotate(0deg);
    opacity: 0;
  }
  12% {
    opacity: 0.75;
  }
  100% {
    transform: translate3d(var(--sakura-drift, 40px), 112vh, 0) rotate(380deg);
    opacity: 0.06;
  }
}

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

.invitation {
  width: min(100%, 760px);
  margin: 0 auto;
  padding: 22px 22px 56px;
  position: relative;
  z-index: 2;
}

.invitation::before {
  content: "";
  position: absolute;
  inset: 0 16px auto;
  height: 180px;
  z-index: -1;
  background:
    radial-gradient(circle at 14% 30%, rgba(241, 229, 220, 0.6), transparent 48%),
    radial-gradient(circle at 78% 22%, rgba(228, 236, 223, 0.85), transparent 54%);
  filter: blur(2px);
}

.section {
  margin-top: 0;
  padding: 34px 6px;
  border-top: 1px solid var(--line);
  background: transparent;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.section + .section {
  margin-top: 16px;
}

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

.section h2 {
  margin: 0 0 10px;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.01em;
}

.cover {
  overflow: hidden;
  padding: 0;
  border-top: 0;
}

.cover-image {
  width: 100%;
  margin: 0 auto;
  aspect-ratio: auto;
  height: auto;
  object-fit: contain;
  border-radius: 0;
}

.cover-text {
  padding: 0 4px 14px;
  color: var(--text);
  text-align: left;
  text-shadow: none;
}

.cover-kicker {
  margin: 0;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.cover-date {
  margin: 6px 0 4px;
  font-size: 1.05rem;
  font-weight: 500;
}

.cover-photo-wrap {
  padding: 0;
}

.cover-info {
  margin: 0;
  color: var(--subtext);
}

.cover-photo-wrap + .cover-info {
  margin-top: 14px;
}

.cover-info + .cover-info {
  margin-top: 4px;
}

.countdown {
  margin-top: 18px;
  padding-top: 8px;
  border-top: 1px solid rgba(47, 48, 44, 0.08);
}

.dday-label,
.dday-timer {
  margin: 0;
}

.dday-label {
  display: none;
}

.dday-timer {
  margin-top: 4px;
  font-size: 0.92rem;
  color: var(--subtext);
}

.dday-timer.is-live {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.dday-unit {
  flex: 1 1 0;
  min-width: 0;
  text-align: center;
}

.dday-circle {
  width: 56px;
  height: 56px;
  margin: 0 auto;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid #dedede;
  color: #4a4a4a;
  display: grid;
  place-items: center;
  font-size: 1.05rem;
}

.dday-name {
  display: block;
  margin-top: 6px;
  font-size: 0.72rem;
  color: #777;
}

.greeting p,
.location p {
  margin: 0;
  color: var(--subtext);
}

.greeting p {
  text-align: center;
}

.mini-polaroid {
  width: 88px;
  margin: 26px auto 34px;
  padding: 6px 6px 14px;
  background: #fff;
  border: 1px solid #ecebe7;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  transform: none;
}

.mini-polaroid img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.greeting-family {
  margin-top: 18px !important;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: #7a7d76 !important;
  font-size: 0.98rem;
  line-height: 1.8;
}

.call-link {
  display: inline-block;
  text-decoration: none;
  margin-left: 5px;
  font-size: 0.88em;
  color: var(--subtext);
  line-height: 1;
  vertical-align: 0.06em;
}

.calendar-wrap {
  width: min(100%, 340px);
  margin: 0 auto;
  padding: 2px 0 0;
  background: transparent;
}

.calendar-month {
  margin: 0 0 8px;
  text-align: center;
  color: var(--accent);
  font-size: 1.02rem;
  letter-spacing: 0.06em;
}

.calendar-weekdays,
.calendar-dates {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  text-align: center;
}

.calendar-dates {
  grid-auto-rows: 50px;
}

.calendar-weekdays {
  margin-bottom: 6px;
  color: var(--subtext);
  font-size: 0.64rem;
}

.day {
  display: grid;
  place-items: center;
  height: 100%;
  font-size: 0.8rem;
  color: var(--text);
}

.calendar-dates .day:not(.is-empty):nth-child(7n + 1) {
  color: #d17b9a;
}

.calendar-dates .day:not(.is-empty):nth-child(7n) {
  color: #6fa7d8;
}

.day.is-empty {
  visibility: hidden;
}

.day.is-wedding {
  position: relative;
  display: grid;
  place-items: center;
  height: 100%;
}

.day.is-wedding::before {
  content: "";
  position: absolute;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1.5px solid rgba(111, 127, 99, 0.85);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.day-number {
  position: relative;
  z-index: 1;
  font-weight: 600;
  color: inherit;
}

.day-time {
  position: absolute;
  left: 50%;
  bottom: 1px;
  transform: translateX(-50%);
  font-size: 0.52rem;
  color: var(--subtext);
  line-height: 1.1;
  white-space: nowrap;
}

.venue-name {
  font-weight: 500;
  color: var(--text) !important;
}

#map {
  width: 100%;
  height: 240px;
  margin-top: 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
}

.map-link {
  display: inline-block;
  margin-top: 12px;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(111, 127, 99, 0.45);
}

.gallery-preview-wrap {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
}

.gallery-preview {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 0;
  cursor: pointer;
  transition: opacity 0.28s ease;
}

.gallery-preview.is-changing {
  opacity: 0.38;
}

.gallery-thumbs {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
}

.gallery-thumb {
  padding: 0;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
}

.gallery-thumb img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

.gallery-thumb.is-active {
  border-color: var(--accent);
}

.lightbox {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.86);
  z-index: 1000;
}

.lightbox.is-open {
  display: flex;
}

.lightbox-image {
  max-width: min(92vw, 980px);
  max-height: 84vh;
  width: auto;
  height: auto;
  object-fit: contain;
  touch-action: none;
  user-select: none;
}

.lightbox-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 52px;
  border: 0;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
}

.lightbox-nav.prev {
  left: 10px;
}

.lightbox-nav.next {
  right: 10px;
}

.account-list {
  display: grid;
  gap: 12px;
}

.account-card {
  border-top: 1px solid var(--line);
  padding-top: 10px;
  background: transparent;
}

.account-summary {
  cursor: pointer;
  list-style: none;
  font-size: 0.94rem;
  color: var(--text);
  padding: 6px 0;
}

.account-summary::-webkit-details-marker {
  display: none;
}

.account-summary::after {
  content: "+";
  float: right;
  color: var(--subtext);
}

.account-card[open] .account-summary::after {
  content: "-";
}

.account-body {
  padding-top: 6px;
}

.account-number {
  margin: 6px 0 12px;
  word-break: keep-all;
}

.copy-btn {
  width: 100%;
  height: 40px;
  border: 1px solid #cad3c3;
  border-radius: 0;
  background: transparent;
  color: var(--text);
  font-family: inherit;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.copy-btn:hover {
  background: #f5f9f2;
  border-color: #b7c4ad;
}

.copy-btn:active {
  transform: translateY(1px);
}

@media (prefers-reduced-motion: reduce) {
  .sakura-layer {
    display: none;
  }

  .section {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (min-width: 768px) {
  .invitation {
    padding: 36px 34px 68px;
  }

  .section {
    padding: 44px 8px;
  }

  .section + .section {
    margin-top: 20px;
  }

  .cover-image {
    aspect-ratio: auto;
  }

  .gallery-thumbs {
    gap: 9px;
  }

  #map {
    height: 300px;
  }
}



