:root {
    --font-en-base: "Cormorant SC", serif;

    --font-en-title: "Playfair Display", serif;

    /* 한글 기본 폰트 */
    --font-kr-base: "Noto Sans KR", -apple-system, BlinkMacSystemFont,
        "Apple SD Gothic Neo", "Segoe UI", sans-serif;
    /*--font-kr-base: "Gowun Batang", serif;*/



    /* 한글 강조용 (원하면 다른 폰트로 교체 가능) */
    --font-kr-accent: "Noto Sans KR", sans-serif;

    /* 기본 굵기 */
    --fw-light: 200;
    --fw-regular: 400;
    --fw-medium: 500;
    --fw-semibold: 600;
}


/* CSS Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-kr-base);
    font-weight: var(--fw-regular);
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Mobile-first responsive foundation */
.container {
    width: 100%;
    max-width: 390px;
    margin: 0 auto;
    padding: 0 20px;
}

.container h2 {
    font-family: var(--font-en-title);
    font-weight: var(--fw-regular);

    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 30px;
    letter-spacing: 3px;
}

/* Section base styles */
section {
    width: 100%;
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Typography base */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: normal;
    line-height: 1.2;
}

p {
    margin-bottom: 1rem;
}

/* Button reset */
button {
    border: none;
    background: none;
    cursor: pointer;
    /* font-family: inherit;*/
    font-size: inherit;
    outline: none;
}

button:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

/* Image base styles */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Animation base classes */
.fade-in {
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
}

.fade-in.visible {
    opacity: 1;
}

.slide-up {
    transform: translateY(30px);
    opacity: 0;
    transition: transform 0.6s ease-out, opacity 0.6s ease-out;
}

.slide-up.visible {
    transform: translateY(0);
    opacity: 1;
}

/* Cover Section Styles */
.cover-section {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, #a4a39e  0%, #f9f9f9 100%);
    /* background-color: #2b2b2b; */
    z-index: 1000;
    overflow: hidden;
}

body.cover-active .cover-section {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
}

.cover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(128, 128, 128, 0.8);
    z-index: 1;
    transition: opacity 1s ease;
}

.cover-overlay.fade-out {
    opacity: 0;
    pointer-events: none;
    transition: opacity 1s ease;
}


.cover-card {
    width: 90%;
    max-width: 460px;
    height: 613px;
    margin: 0 auto;
    border-radius: 32px;

    background-image: url('/images/cover-bg.jpg');
    /* 여기 */
    background-size: cover;
    background-position: center;

    position: relative;
    overflow: hidden;

    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.cover-overlay2 {
    /* position: absolute; */
    inset: 0;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    padding: 36px 24px;
}

.cover-title {
    text-align: center;
    font-family: var(--font-en-base);
    font-weight: 300;
    font-size: 28px;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.85);
}

.cover-footer {
    text-align: center;
    color: rgba(0, 0, 0, 0.85);

    position: absolute;
    bottom: 28px;
    left: 0;
    width: 100%;
}

.cover-date {
    font-size: 13px;
    margin-bottom: 6px;
}

.cover-location {
    font-size: 12px;
}


.cover-content {

    position: relative;
    height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 0 20px;
    z-index: 2;

}



/* Status Bar */
.cover-status-bar {
    position: absolute;
    top: 60px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    border-radius: 20px;
    padding: 8px 16px;
}

.status-message {
    color: white;
    font-size: 0.8rem;
    font-weight: 400;
}

/* Main Title */
.cover-main-title {
    position: absolute;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 300;
    letter-spacing: 6px;
    color: #666;
    margin: 0;
    text-align: center;
    opacity: 0;
    animation: fadeInTitle 1s ease 0.5s forwards;
}

@keyframes fadeInTitle {
    to {
        opacity: 1;
    }
}

/* Door-shaped Image Container */
.door-image-container {
    position: relative;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 280px;
    height: 400px;
}

.door-frame {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 140px 140px 20px 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    opacity: 0;
    animation: fadeInDoor 1s ease 1s forwards;
}

@keyframes fadeInDoor {
    to {
        opacity: 1;
    }
}

.door-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Floating Dots */
.floating-dot {
    position: absolute;
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    opacity: 0;
    animation: floatDot 3s ease-in-out infinite;
}

.dot-1 {
    top: 20%;
    left: 15%;
    animation-delay: 2s;
}

.dot-2 {
    top: 35%;
    right: 20%;
    animation-delay: 2.5s;
}

.dot-3 {
    top: 60%;
    left: 25%;
    animation-delay: 3s;
}

.dot-4 {
    top: 45%;
    right: 15%;
    animation-delay: 3.5s;
}

.dot-5 {
    top: 75%;
    right: 30%;
    animation-delay: 4s;
}

.dot-6 {
    top: 25%;
    left: 35%;
    animation-delay: 4.5s;
}

@keyframes floatDot {

    0%,
    100% {
        opacity: 0;
        transform: translateY(0);
    }

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

/* Handwriting Animation */

.handwriting-container {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    /* width: 250px; */
    /* height: 80px; */

    width: 500%;
    display: flex;
    justify-content: center;
    margin-top: 16px;
}

.handwriting-mask {
    width: 80%;
    max-width: 320px;
}

.reveal-rect {
    animation: handwritingStroke 3.4s forwards;
    animation-delay: 1.6s;
}

@keyframes handwritingStroke {
    0% {
        x: -120px;
    }

    18% {
        x: 60px;
    }

    25% {
        x: 60px;
    }

    /* 멈칫 */
    45% {
        x: 200px;
    }

    58% {
        x: 300px;
    }

    68% {
        x: 300px;
    }

    /* 멈칫 */
    100% {
        x: 480px;
    }
}


/* .handwriting-container {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 250px;
    height: 80px;
} */

.handwriting-container.hidden {
    opacity: 0;
    pointer-events: none;
}

.handwriting-svg {
    width: 100%;
    height: 100%;
}

.handwriting-path {
    animation: drawPath 4s ease-in-out forwards;
    animation-delay: 2.5s;
}

@keyframes drawPath {
    to {
        stroke-dashoffset: 0;
    }
}

/* Bottom Buttons */
.cover-bottom-buttons {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: space-around;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 25px;
    padding: 12px 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    width: calc(100% - 40px);
    max-width: 320px;
    opacity: 0;
    animation: fadeInButtons 1s ease 1.5s forwards;
}

@keyframes fadeInButtons {
    to {
        opacity: 1;
    }
}

.cover-bottom-btn {
    background: none;
    border: none;
    color: #666;
    font-size: 0.85rem;
    font-weight: 400;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.cover-bottom-btn:hover {
    background: rgba(233, 30, 99, 0.1);
    color: #e91e63;
}

/* Hide cover section after animation */
.cover-section.hidden {
    transform: translateY(-100%);
    transition: transform 1s ease;
}

/* Ensure body scroll is disabled during cover animation */
body.cover-active {
    overflow: hidden;
}

/* Legacy styles for compatibility */
.typing-text {
    display: none;
}

@keyframes blink {

    0%,
    50% {
        opacity: 1;
    }

    51%,
    100% {
        opacity: 0;
    }
}

/* Calendar Section Styles */
.calendar-section {
    background-color: #fefefe;
    padding: 60px 0;
}

.calendar-section h2 {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
    letter-spacing: 3px;
}

.date-text {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 40px;
    color: #666;
}

.calendar-header {
    text-align: center;
    padding-left: 3px;
    /* 🔹 2~6px 사이에서 조절 */
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
    max-width: 300px;
    margin: 0 auto;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: #333;
    position: relative;
}

.calendar-day.highlighted {
    background-color: #f9d7e1;
    border-radius: 50%;
}

/* Family Section Styles */
.family-section {
    background-color: #f8f8f8;
    padding: 60px 0;
    min-height: auto;
}

/* .invitation-text {
    text-align: center;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 50px;
    color: #666;
    font-weight: 400;
} */

.family-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 320px;
    margin: 0 auto 40px auto;
}

.family-card {
    background: white;
    border-radius: 12px;
    padding: 24px 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
}

.family-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 8px;
}

.family-label {
    font-size: 0.9rem;
    color: #666;
    font-weight: 400;
}

.family-icon {
    font-size: 0.8rem;
    color: #999;
    margin: 0 4px;
}

.family-subtitle {
    text-align: center;
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 20px;
}

.main-name {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid #f5f5f5;
}

.korean-name {
    font-size: 1rem;
    color: #333;
    font-weight: 500;
}

.english-name {
    font-size: 0.9rem;
    color: #666;
    font-weight: 400;
    letter-spacing: 0.5px;
}

.contact-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
    padding: 16px 24px;
    background: #d4b5a0;
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(212, 181, 160, 0.3);
}

.contact-button:hover {
    background: #c9a892;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(212, 181, 160, 0.4);
}

.contact-button:active {
    transform: translateY(0);
}

.arrow-icon {
    width: 18px;
    height: 18px;
    stroke: currentColor;
}

/* Contact Modal Styles */
.contact-modal-content {
    background: white;
    border-radius: 16px;
    padding: 0;
    max-width: 320px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.contact-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #f0f0f0;
}

.contact-modal-header h3 {
    font-size: 1.1rem;
    font-weight: 500;
    color: #333;
    margin: 0;
}

.contact-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.contact-modal-close:hover {
    background: #f5f5f5;
    color: #666;
}

.contact-options {
    padding: 16px;
}

.contact-option {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    padding: 16px 20px;
    background: white;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1rem;
}

.contact-option:last-child {
    margin-bottom: 0;
}

.contact-option:hover {
    background: #f8f9fa;
    border-color: #e0e0e0;
    transform: translateY(-1px);
}

.contact-option:active {
    transform: translateY(0);
}

.contact-icon {
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}

.contact-text {
    color: #333;
    font-weight: 400;
}

/* Gallery Section Styles */
.gallery-section {
    background-color: #fff;
    padding: 60px 0;
}

.gallery-section h2 {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 40px;
    letter-spacing: 3px;
}

.gallery-container {
    position: relative;
    max-width: 300px;
    margin: 0 auto;
}

.gallery-image-container {
    width: 100%;
    aspect-ratio: 4/3;
    border-radius: 8px;
}

/*preview*/
.gallery-preview {
    margin-top: 32px;
    text-align: center;
}

.preview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 20px;
}

/* 접힌상태 예: 2줄까지만 보이게 (3×1 = 3장) */
.gallery-preview.collapsed .preview-grid {
    max-height: calc((78vw / 3) * 1 + 16px);
    overflow: hidden;
}

/* 펼쳐진 상태 */
.gallery-preview.expanded .preview-grid {
    max-height: none;
}


.preview-grid img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 8px;
}

.gallery-more-btn {
    padding: 12px 32px;
    border-radius: 999px;
    border: 1px solid #3a2a1f;
    background: transparent;

    font-size: 14px;
    letter-spacing: 0.04em;
    color: #3a2a1f;
}



/*viewport*/
.gallery-viewport {
    overflow: hidden;
    width: 100%;
}

.gallery-track {
    /* aspect-ratio: 4 / 5; */
    display: flex;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.gallery-track img {
    /* aspect-ratio: 4 / 5; */
    width: 100%;
    height: 100%;
    flex-shrink: 0;
    border-radius: 16px;
}

/*
.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    transition: opacity 0.3s ease;
}
.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: fill; 
    background-color: #fff;
}

*/

.gallery-image.loading {
    opacity: 0.7;
}

/*
.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);

    background: rgba(255, 255, 255, 0.8);
    border: 1px solid #ddd;
    border-radius: 50%;

    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #666;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
*/

.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);

    background: none;
    /* 동그란 배경 제거 */
    border: none;
    /* 테두리 제거 */
    box-shadow: none;
    border-radius: 0;

    font-size: 28px;
    color: #333;
    cursor: pointer;
    padding: 0;
}

.nav-arrow:hover {
    background: rgba(255, 255, 255, 0.95);
}

.nav-prev {
    left: -30px;
    /* 컨테이너 안쪽으로 */
}

.nav-next {
    right: -30px;
}

/*
.nav-prev {
    left: -50px;
}

.nav-next {
    right: -50px;
}
*/

/* Gallery Modal Styles */
.modal-overlay {
    position: fixed;
    inset: 0;
    /* background: rgba(0, 0, 0, 0.45); */
    background: rgba(31, 31, 31);

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

    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
    z-index: 1000;
}

/* 모달 박스 */
.modal-content {
    border-radius: 18px;
    max-width: 90%;
    width: 420px;

    transform: translateY(24px) scale(0.98);
    opacity: 0;

    transition:
        transform 0.45s cubic-bezier(0.22, 0.61, 0.36, 1),
        opacity 0.35s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-overlay.active .modal-content {
    transform: translateY(0) scale(1);
    opacity: 1;
}


/* .gallery-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
} */

/* .gallery-modal.active {
    display: flex;
} */

/* .modal-content {
    position: relative;
    max-width: 95%;
    max-height: 95%;
    display: flex;
    align-items: center;
    justify-content: center;
} */

.modal-viewport {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.modal-track {
    aspect-ratio: 4 / 5;
    display: flex;
    height: 100%;
    transition: transform 0.35s ease;
}

.modal-track img {
    width: 100%;
    height: auto;
    flex-shrink: 0;
    object-fit: contain;
}



.modal-prev {
    left: 12px;
}

.modal-next {
    right: 12px;
}

.modal-image {
    max-width: 100%;
    max-height: 100vh;
    width: auto;
    height: auto;
    border-radius: 8px;
    transition: opacity 350ms ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}


/* Modal navigation arrows */
.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    /* background: rgba(255, 255, 255, 0.1); */
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.modal-nav:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.modal-nav-prev {
    left: 20px;
}

.modal-nav-next {
    right: 20px;
}

.modal-close {
    text-align: right;
}

.modal-btn-simple {
    /* padding: 1rem 0; */
    bottom: 0;
    width: 100%;
    max-width: 420px;
    /* text-align: center; */
    z-index: 999;
    font-size: 20px;
    color: #000000;
}

.modal-btn-simple2 {
    /* padding: 1rem 0; */
    display: flex;
    justify-content: space-between;
    align-items: center;

    bottom: 0;
    width: 100%;
    max-width: 420px;
    /* text-align: center; */
    z-index: 999;
    font-size: 20px;
    color: #000000;
}

.modal-btn-simple>button {
    display: inline-block;
    line-height: 0;
    padding: 16px;
    /*background: rgba(0, 0, 0, 0.15);*/
    border-radius: 64px;
    cursor: pointer;
    color: #d9d9d9;
}

.modal-btn-simple2>button {
    display: inline-block;
    line-height: 0;
    padding: 16px;
    /*background: rgba(0, 0, 0, 0.15);*/
    border-radius: 64px;
    cursor: pointer;
    color: #d9d9d9;
}

/*

.modal-close {
    position: absolute;
    top: -50px;
    right: -10px;
    color: white;
    font-size: 2.5rem;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
    line-height: 1;
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.7);
}

.modal-close:focus {
    outline: 2px solid white;
    outline-offset: 2px;
}
*/

/* Mobile modal adjustments */
@media (max-width: 768px) {
    .modal-content {
        max-width: 98%;
        max-height: 98%;
    }

    /* .modal-close {
        top: -45px;
        right: -5px;
        font-size: 2rem;
        width: 35px;
        height: 35px;
    } */

    .modal-nav {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }

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

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

/* Location Section Styles */
.location-section {
    background-color: #f9f9f9;
    padding: 60px 0;
}

.location-section h2 {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 30px;
    letter-spacing: 3px;
}

.venue-info {
    text-align: center;
    margin-bottom: 30px;
}

.venue-info h3 {
    font-size: 1rem;
    margin-bottom: 10px;
    font-weight: 500;
    line-height: 1.4;
}

.venue-info p {
    color: #666;
    font-size: 0.9rem;
}

.map-container {
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.kakao-map {
    width: 100%;
    height: 250px;
    background-color: #f0f0f0;
}

.map-buttons {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 30px;
}

.map-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 16px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 12px;
    font-size: 0.85rem;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 110px;
    height: 44px;
    flex-shrink: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.map-btn:hover {
    background-color: #f8f8f8;
    border-color: #ccc;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.map-btn.naver-map:hover {
    background-color: #f0f8ff;
    border-color: #03c75a;
}

.map-btn.tmap:hover {
    background-color: #fff5f0;
    border-color: #ff6b35;
}

.map-btn.kakao-map:hover {
    background-color: #fffbf0;
    border-color: #ffe500;
}

.map-logo {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.location-details {
    display: flex;
    justify-content: space-around;
    max-width: 280px;
    margin: 0 auto;
}

.detail-item {
    text-align: center;
    flex: 1;
}

.detail-item h4 {
    font-size: 0.9rem;
    margin-bottom: 5px;
    color: #333;
}

.detail-item p {
    font-size: 0.8rem;
    color: #666;
}

/* Map error overlay styles */
.image-error-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(245, 245, 245, 0.95);
    display: none;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    z-index: 10;
}

.image-error-overlay span {
    color: #666;
    font-size: 0.9rem;
    text-align: center;
}

/* Transportation Section Styles */
.transportation-section {
    background-color: #fff;
    padding: 60px 0;
}

.transport-options {
    max-width: 320px;
    margin: 0 auto;
}

.transport-item {
    margin-bottom: 36px;
    text-align: center;
}

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

.transport-item h3 {
    font-size: 1rem;
    margin-bottom: 12px;
    color: #222;
    font-weight: 500;
    text-align: left;
}

.transport-item p {
    font-size: 0.85rem;
    color: #555;
    line-height: 1.5rem;
    margin: 0 0 8px;
    word-break: keep-all;
    text-align: left;
}

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

.notice-group {
    margin-top: 30px;
}

/* Account Section Styles */
.account-section {
    background-color: #f8f8f8;
    padding: 60px 0;
    min-height: auto;
}

.account-section h2 {
    text-align: center;
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: #333;
    font-weight: 500;
}

.account-description {
    text-align: center;
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 40px;
    padding: 0 20px;
}

/* Tab Navigation */
.account-tabs {
    display: flex;
    max-width: 320px;
    margin: 0 auto 30px auto;
    background: white;
    border-radius: 8px;
    padding: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.account-tab {
    flex: 1;
    padding: 12px 16px;
    background: none;
    border: none;
    font-size: 0.95rem;
    color: #666;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-weight: 400;
}

.account-tab.active {
    background: #333;
    color: white;
    font-weight: 500;
}

/* Tab Content */
.account-tab-content {
    max-width: 320px;
    margin: 0 auto;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

/* New Account Card Design */
.account-card-new {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
}

.account-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.account-role {
    font-size: 0.9rem;
    color: #666;
    font-weight: 400;
}

.account-name {
    font-size: 1rem;
    color: #333;
    font-weight: 500;
}

.account-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bank-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.bank-name {
    font-size: 0.85rem;
    color: #888;
}

.account-number {
    font-size: 0.9rem;
    color: #333;
    font-weight: 400;
}

.pay-button {
    display: inline-flex;
    align-items: center;
    gap: 4px;

    padding: 4px 8px;
    font-size: 0.72rem;
    line-height: 1;

    border: 1px solid #e6e6e6;
    border-radius: 4px;
    background: #fff;

    color: #777;
    cursor: pointer;

    transition: all 0.15s ease;
}

.pay-button:hover {
    background: #f7f7f7;
    border-color: #ddd;
    color: #444;
}

.pay-icon {
    width: 12px;
    height: 12px;

    fill: currentColor;
    /* 버튼 색 따라감 */
    opacity: 0.85;

    flex-shrink: 0;
}


/* Bottom Action Buttons */
.account-bottom-actions {
    display: flex;
    justify-content: space-around;
    max-width: 320px;
    margin: 40px auto 0 auto;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 25px;
    padding: 12px 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.action-btn {
    background: none;
    border: none;
    color: #666;
    font-size: 0.85rem;
    font-weight: 400;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.action-btn:hover {
    background: rgba(51, 51, 51, 0.1);
    color: #333;
}

/*/ 계좌 펼치기로 변경 */
.accordion-header {
    width: 100%;
    max-width: 320px;
    margin: 0 auto 12px auto;
    padding: 16px 18px;

    background: #ffffff;
    border: none;
    border-radius: 12px;

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

    font-size: 0.95rem;
    font-weight: 500;
    color: #333;

    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    cursor: pointer;
}

.accordion-header .arrow {
    transition: transform 0.3s ease;
}

.accordion-header.active .arrow {
    transform: rotate(180deg);
}

.accordion-panel {
    max-width: 320px;
    margin: 0 auto 20px auto;

    overflow: hidden;
    max-height: 0;
    transition: max-height 0.35s ease;
}

.accordion-panel.open {
    max-height: 2000px;
    /* 충분히 큰 값 */
}

/*/ 계좌 펼치기로 변경 */



/* Final Section Styles */
.final-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #f8f8f8;
}

.final-background {
    position: relative;
    flex: 1;
    min-height: 60vh;
    overflow: hidden;
}

.final-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 400px;
}

.final-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.6));
}

.final-content {
    position: relative;
    z-index: 2;
    background: #f8f8f8;
    padding: 40px 20px;
}

/* Quote Section */
.final-quote-container {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    top: -60px;
    background: rgba(0, 0, 0, 0.7);
    padding: 30px 20px;
    border-radius: 0;
    margin-left: -20px;
    margin-right: -20px;
}

.final-quote {
    font-size: 1rem;
    color: white;
    line-height: 1.6;
    margin: 0 0 15px 0;
    font-weight: 400;
    font-style: normal;
}

.final-quote::before,
.final-quote::after {
    content: '"';
    font-size: 1.1rem;
    color: white;
}

.final-quote-author {
    display: block;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    font-style: normal;
    margin-top: 10px;
}

/* Share Buttons Section */
.final-share-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* gap: 16px; */
    max-width: 320px;
    margin: 0 auto 40px auto;
    padding: 24px 20px 12px;
}

.final-share-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;

    width: 300px;
    height: 46px;

    padding: 0 20px;
    margin-bottom: 12px;

    border-radius: 16px;
    border: none;

    font-size: 15px;
    font-weight: 500;

    cursor: pointer;
    transition: background-color 0.25s ease;
}


/*공유버튼 밑줄 제거 */
.final-share-btn,
.final-share-btn:link,
.final-share-btn:visited,
.final-share-btn:hover,
.final-share-btn:active {
    text-decoration: none;
    color: inherit;
}


.kakao-btn {
    background: #F6E97A;
    color: #1f1f1f;
}

.kakao-btn:hover {
    background: #F1E26A;
    transform: translateY(-1px);
}

.invitation-btn {
    background: #bbbbbb;
    color: #ffffff;
}

.invitation-btn:hover {
    background: #bbbbbb;
    transform: translateY(-1px);
}

.btn-text {
    flex: 1;
    text-align: left;
}

.btn-arrow,
.btn-copy {
    width: 18px;
    height: 18px;
    stroke: currentColor;
}

/* Bottom Navigation */
.final-bottom-nav {
    display: flex;
    justify-content: space-around;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 25px;
    padding: 12px 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    max-width: 320px;
    margin: 0 auto;
}

.nav-item {
    background: none;
    border: none;
    color: #666;
    font-size: 0.85rem;
    font-weight: 400;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.nav-item:hover {
    background: rgba(51, 51, 51, 0.1);
    color: #333;
}

/* Toast Message Styles */
.toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 0.9rem;
    z-index: 1001;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.toast.show {
    opacity: 1;
}

.toast.success {
    background-color: rgba(76, 175, 80, 0.9);
}

.toast.error {
    background-color: rgba(244, 67, 54, 0.9);
}

/* Responsive Design */
@media (max-width: 390px) {
    .container {
        padding: 0 15px;
    }

    .nav-prev {
        left: -35px;
    }

    .nav-next {
        right: -35px;
    }

    .map-buttons {
        gap: 6px;
    }

    .map-btn {
        width: 90px;
        height: 40px;
        padding: 10px 12px;
        font-size: 0.8rem;
        white-space: nowrap;
    }

    .map-logo {
        width: 16px;
        height: 16px;
    }

    .family-cards {
        max-width: 300px;
        gap: 16px;
    }

    .family-card {
        padding: 20px 16px;
    }

    .contact-button {
        max-width: 300px;
        padding: 14px 20px;
        font-size: 0.95rem;
    }

    .contact-modal-content {
        width: 95%;
        max-width: 300px;
    }

    .main-title {
        font-size: 2.2rem;
        letter-spacing: 6px;
        margin-bottom: 40px;
    }

    .cover-image-circle {
        width: 240px;
        height: 240px;
    }

    .happily-text {
        font-size: 2.5rem;
    }

    .cover-buttons {
        padding: 10px 16px;
    }

    .cover-btn {
        font-size: 0.8rem;
        padding: 6px 10px;
    }

    .account-tabs {
        max-width: 300px;
    }

    .account-tab-content {
        max-width: 300px;
    }

    .account-card-new {
        padding: 16px;
        margin-bottom: 12px;
    }

    .account-header {
        margin-bottom: 12px;
    }

    .pay-button {
        display: inline-flex;
        align-items: center;
        gap: 4px;

        padding: 4px 8px;
        font-size: 0.72rem;
        line-height: 1;

        border: 1px solid #e6e6e6;
        border-radius: 4px;
        background: #fff;

        color: #777;
        cursor: pointer;

        transition: all 0.15s ease;
    }


    .account-bottom-actions {
        max-width: 300px;
        padding: 10px 16px;
    }

    .action-btn {
        font-size: 0.8rem;
        padding: 6px 10px;
    }

    /* Cover Section Mobile */
    .cover-main-title {
        font-size: 2rem;
        letter-spacing: 4px;
        top: 120px;
    }

    .door-image-container {
        width: 240px;
        height: 340px;
    }

    /*     
    .handwriting-container {
        width: 200px;
        height: 60px;
    }
     */
    .cover-bottom-buttons {
        width: calc(100% - 30px);
        padding: 10px 16px;
    }

    .cover-bottom-btn {
        font-size: 0.8rem;
        padding: 6px 10px;
    }

    /* Final Section Mobile */
    .final-quote-container {
        padding: 25px 15px;
        top: -40px;
    }

    .final-quote {
        font-size: 0.95rem;
    }

    .final-quote-author {
        font-size: 0.8rem;
    }

    .final-share-section {
        max-width: 300px;
        /* gap: 12px; */
    }

    .final-share-btn {
        padding: 14px 20px;
        font-size: 0.9rem;
    }

    .final-bottom-nav {
        max-width: 300px;
        padding: 10px 16px;
    }

    .nav-item {
        font-size: 0.8rem;
        padding: 6px 10px;
    }
}

@media (min-width: 391px) {
    body {
        max-width: 390px;
        margin: 0 auto;
        box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    }
}

/* Print Styles */
@media print {

    .nav-arrow,
    .share-buttons,
    .account-buttons {
        display: none;
    }
}

/*d-day text*/
.dday-text {
    text-align: center;
    font-size: 15px;
    margin-bottom: 20px;
    color: #333;
}

.dday-text .highlight {
    color: #e26d6d;
    font-weight: 600;
}

.countdown {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    padding-bottom: 80px;
}

.time-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 48px;
}

.time-box .num {
    font-size: 22px;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.time-box .label {
    font-size: 10px;
    margin-top: 4px;
    opacity: 0.6;
}

.colon {
    font-size: 20px;
    margin-top: -8px;
    opacity: 0.5;
}

/*family-contact*/
.family-intro {
    display: flex;
    flex-direction: column;
    /* 가로 → 세로 */
    align-items: center;
    /* 가로 중앙 */
    text-align: center;
    /* 텍스트 중앙 */
    padding: 40px 20px;
    background-color: #f9f9f9;
    /* 두 번째 사진 톤 */
}

/*부모님 소개 */

.family-text {
    margin-top: 20px;
    padding-bottom: 12px;
    text-align: center;

    font-family: 'Noto Serif KR', serif;
    color: #3a3a3a;
    letter-spacing: 0.02em;
    font-size: 15.5px;
}

/* 한 줄 기준 */
.family-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    line-height: 1.9;
}

/* 부모님 */
.family-row .parents {
    font-weight: 400;
}

/* 의 아들 / 의 딸 */
.family-row .role {
    display: inline-block;
    width: 3.4em;
    text-align: left;
    font-weight: 300;
    color: #7a7a7a;
}

/* 이름 */
.family-row .name {
    font-weight: 500;
    color: #1f1f1f;
}





/* ===== 연락하기 버튼 ===== */
.contact-btn {
    min-width: 120px;
    /* 버튼 크기 */
    padding: 14px 0;
    font-size: 15px;
    color: #4b4b4b;
    background: transparent;
    border: 1px solid #4b4b4b;
    border-radius: 999px;
    /* pill 형태 */
    cursor: pointer;
    transition: all 0.2s ease;
}

.contact-btn:hover {
    background-color: #4b4b4b;
    color: #fff;
}



.contact-box h3 {
    text-align: center;
    margin-bottom: 20px;
    color: #4b4b4b;
}



hr {
    border: none;
    border-top: 1px solid #e5d7cc;
    margin: 16px 0;
}



/* 캘린더 일요일 빨간색 */
.calendar-day.sunday {
    color: #C94A4A;
    /* 원하는 레드 톤 */
}


/* ===== 모달 배경 ===== */
.contact-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 9999;

    display: none;
    /* 기본 숨김 */
    justify-content: center;
    /* 가로 중앙 */
    align-items: center;
    /* 세로 중앙 */
}


/* ===== 박스 ===== */
.contact-box {
    width: 90%;
    max-width: 360px;
    background: #ffffff;
    border-radius: 24px;
    padding: 24px;
    box-sizing: border-box;
}

/* 제목 */
.modal-title {
    text-align: center;
    color: #c08968;
    font-size: 18px;
    margin-bottom: 18px;
}

/* ===== row ===== */
.row {
    display: grid;
    grid-template-columns: 80px 1fr auto;
    align-items: center;
    padding: 10px 0;
}

/* 역할 */
.role {
    font-size: 14px;
}

/* 신랑 / 신부 컬러 */
.groom-role {
    color: #6b8fb3;
}

.bride-role {
    color: #d17a7a;
}

.name {
    font-size: 15px;
    color: #2f2f2f;
}

/* ===== 아이콘 ===== */
.actions {
    display: flex;
    gap: 12px;
}

.actions a {
    width: 20px;
    height: 20px;
    display: block;
    background-size: contain;
    background-repeat: no-repeat;
}

/* 전화 */
.actions .call {
    background-image: url("./assets/icons/call.svg");
}

/* 문자 */
.actions .sms {
    background-image: url("./assets/icons/sms.svg");
}

/* ===== 구분선 ===== */
.contact-box hr {
    border: none;
    border-top: 1px solid #e4d6c8;
    margin: 14px 0;
}

/* ===== 닫기 버튼 ===== */
.close-btn {
    width: 100%;
    margin-top: 20px;
    padding: 14px 0;
    border-radius: 999px;
    border: none;
    background: #c0c0c0;
    color: #fff;
    font-size: 15px;
    cursor: pointer;
}

/* 카카오맵 말풍선 */
.map-label {
    background: #ffffff;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.4;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    white-space: nowrap;
}

.map-label strong {
    font-weight: 600;
}

.divider {
    width: 100%;
    max-width: 480px;
    margin: 28px auto;
    border-top: 1px solid #4b4b4b;
    opacity: 0.8;
}

.divider-footer {
    width: 100%;
    max-width: 480px;
    border-top: 1px solid #4b4b4b;
    opacity: 0.2;
}

.intro-title {
    margin-top: clamp(48px, 10vh, 96px);
    margin-bottom: clamp(20px, 4vh, 40px);
    text-align: center;
}

.intro-title h1 {
    font-family: "Ivy Presto Display", serif;
    font-size: clamp(28px, 7vw, 44px);
    letter-spacing: 0.18em;
    line-height: 1.25;
    color: #777;
}


/* footer */
.site-footer {
    padding: 24px 16px;
    text-align: center;
    font-size: 12px;
    color: #999;
    background-color: #fff;
}

.site-footer .footer-inner {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.site-footer a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.2s ease;
}

.site-footer a:hover {
    color: #555;
    text-decoration: underline;
}

.site-footer .divider {
    color: #ccc;
}


/*초대인사*/
/* Invitation Section */
.invitation-section {
    padding: 80px 20px;
    background-color: #ffffff;
    /* 카드 바깥 배경 (지금 톤에 맞게 조절) */
}

.intro-section {
    padding: 80px 20px;
    background-color: #ffffff;
    /* 카드 바깥 배경 (지금 톤에 맞게 조절) */
}

/* 카드 느낌 */
.invitation-card {
    max-width: 420px;
    margin: 0 auto;
    background-color: #f9f9f9;
    padding: 56px 28px;
    border-radius: 2px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    text-align: center;
}

/* 제목 */
.invitation-title {
    font-size: 15px;
    letter-spacing: 0.15em;
    margin-bottom: 36px;
    color: #8b5e3c;
}

/* 본문 */
.invitation-text {
    font-size: 14.0px;
    line-height: 1.9;
    color: #3a2a2a;
    margin-bottom: 28px;
}

.invitation-text-intro {
    font-size: 17.0px;
    line-height: 1.9;
    color: #3a2a2a;
    margin-bottom: 28px;
}

.invitation-text-verse {
    font-size: 13.0px;
    line-height: 1.9;
    color: #3a2a2a;
    margin-bottom: 10px;
    font-family: "Gowun Batang", serif;
    font-weight: 400;
    font-style: normal;
}

/* 성경구절 출처 */
.invitation-verse {
    font-size: 13px;
    color: #505050;
    margin-bottom: 36px;
    font-family: "Gowun Batang", serif;
    font-weight: 400;
    font-style: normal;
}

/* 구분선 */
.invitation-divider {
    width: 180px;
    height: 1px;
    background-color: #595959;
    margin: 36px auto;
}

/* 서명 */
.invitation-sign {
    font-size: 13.5px;
    margin-top: 36px;
    color: #3a2a2a;
}


/* 벚꽃 커버*/
#sakura-layer {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;

    pointer-events: none;
    z-index: 5;
}

/*배경음악*/
.bgm-container {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 9999;
}

.bgm-toggle {
    width: 40px;
    height: 40px;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
}

.bgm-toggle svg {
    display: block;
}

.bgm-toggle:active {
    transform: scale(0.95);
}

.image-full {
  width: 100vw;                 /* 화면 전체 폭 */
  margin-left: calc(50% - 50vw); /* container 탈출 핵심 */
}