﻿*, *::before, *::after {
    box-sizing: border-box;
}

body {
    //background-color: var(--bg-paper);
    color: var(--ink-black);
    font-family: 'AritaBuri', serif;
    font-weight: 600;
    line-height: 1.7;
}

/* 최상위 wrapper - START*/
.invitation-wrapper {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    background-color: var(--bg-paper);
}
/* 최상위 wrapper - END*/

/* 최상위 wrapper 한옥 frame 디자인 - START*/
.hanok-frame {
    position: relative;
    padding-left: 0px;
    padding-right: 0px;
}

    /* 좌우 기둥 */
    .hanok-frame::before,
    .hanok-frame::after {
        content: '';
        position: absolute;
        top: 0;
        bottom: 0;
        width: 12px;
        pointer-events: none;
        /* 🌳 나무결 느낌 핵심 */
        /*background:*/
        /* 미세한 결 */
        /*repeating-linear-gradient( to bottom, rgba(255,255,255,0.04), rgba(255,255,255,0.04) 2px, rgba(0,0,0,0.03) 4px ),*/
        /* 깊이 그라데이션 */
        /*linear-gradient( to right, #5a4632, #4a3b2a 30%, #3e3123 60%, #5a4632 );*/
        box-shadow: inset 1px 0 1px rgba(134, 76, 52, 0.1)
    }

    /* 왼쪽 */
    .hanok-frame::before {
        left: 0;
    }

    /* 오른쪽 */
    .hanok-frame::after {
        right: 0;
        transform: scaleX(-1);
    }
/* 최상위 wrapper 한옥 frame 디자인 - END*/

/* 공통섹션 - START*/

.section {
    padding: 20px 20px 40px;
    position: relative;
}

.section-title {
    font-family: SSRock;
    text-align: center;
    font-size: 25px;
    letter-spacing: 0.2em;
    transform: translateX(0.1em);
    margin-top: 0px;
    margin-bottom: 16px;
    color: var(--roof-black);
}

.section + .section {
    box-shadow: inset 0 1px 0 rgba(0,0,0,0.02);
    border-top: none;
}

.section.con_section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20px;
    right: 20px;
    height: 2px;
    background: linear-gradient( to right, transparent, rgba(74, 59, 42, 0.4), transparent );
}
/* 공통섹션 - END*/

/* 메인사진 -  START*/
.section-hero {
    padding-bottom: 0px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 24px;
    padding-bottom: 30px;
}

.hero-overlay {
    text-align: center;
    margin-top: 10px;
    margin-bottom: 10px;
}

.hero-slider {
    position: relative;
    /* 👉 항상 같은 비율 */
    aspect-ratio: 3 / 4;
    /* 👉 반응형 너비 */
    width: 100%;
    max-width: 340px; /* PC에서 너무 커지지 않게 */
    /* 👉 높이 제한 */
    max-height: 400px; /* 태블릿/폴드 방어 */
    /* 스타일 */
    overflow: hidden;
    border-radius: 25px;
    margin: 20px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-image: inherit;
    background-size: cover;
    background-position: center 90%; /* 아래 강조 */

    transform: scale(1.5);
    transition: transform 6s ease-out;
}

.hero-title-area {
    text-align: center;
    padding: 10px 24px 10px;
    color: var(--ink-black);
}

.hero-invite {
    font-family: 'AritaBuriKR', serif;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 0.2em;
    transform: translateX(0.1em);
    margin-top: 15px;
    margin-bottom: 15px;
}

.hero-names {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 320px;
    margin: 0 auto 20px;
}

    .hero-names > div {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

.role {
    font-size: 14px;
    letter-spacing: 0.2em;
    transform: translateX(0.1em);
    margin-bottom: 4px;
}

    .role.groom {
        color: #1E3A5F; /* 전통 남청 */
    }

    .role.bride {
        color: #8B1E1E; /* 단청 홍 */
    }

.name {
    font-family: 'AritaBuriKR', serif;
    font-size: 22px;
    letter-spacing: 0.15em;
    transform: translateX(0.075em);
}

.hero-sub {
    font-size: 13px;
    color: var(--soft-gray);
    letter-spacing: 0.12em;
    transform: translateX(0.06em);
}


.hero-line {
    margin: 0;
    line-height: 1.3;
    text-shadow: 0 1px 3px rgba(0,0,0,.35);
}

/*이름들 */
.hero-line-1 {
    font-family: SSRock;
    font-weight: 600;
    letter-spacing: 0.2em;
    transform: translateX(0.1em);
    font-size: 20px;
    margin-top: 15px;
}


.hero-line-2 {
    font-weight: 600;
    letter-spacing: 0.8em;
    margin-top: 15px;
    font-size: 25px;
}

 /*영문 */
.hero-line-3 {
    color: var(--ink-black);
    font-family: SSRock;
    font-weight: 600;
    letter-spacing: 0.5em;
    transform: translateX(0.25em);
    opacity: 0.85;
    margin-top: 10px;
    font-size: 60px;
}

.hero-line-title {
    color: var(--ink-black);
    font-family: SSRock;
    font-weight: 600;
    letter-spacing: 0.5em;
    transform: translateX(0.25em);
    opacity: 0.85;
    font-size: 20px;
}
.hero-name {
    display: inline-block;
    letter-spacing: 0.8em;
    transform: translateX(0.4em);
}

.hero-line-sub {
    color: var(--ink-black);
    display: inline-block;
    letter-spacing: 0.2em;
    transform: translateX(0.1em);
    font-size: 18px;
}
/* 메인사진 -  END*/
/* 인사말 - START*/
.section-greeting {
    background: var(--bg-paper-warm);
}

.greeting-divider {
    width: 36px;
    height: 1px;
    margin: 10px auto;
    background: linear-gradient( to right, transparent, var(--ink-black), transparent );
    opacity: 0.4;
}

.greeting-text {
    /*font-family: 'Nanum Myeongjo', serif;*/
    font-size: 16px;
    line-height: 1.9;
    letter-spacing: 0.08em;
    font-weight: 600;
    text-align: center;
    color: var(--ink-black);
}

.greeting-symbol {
    text-align: center;
    font-size: 20px;
    opacity: 0.35;
    margin: 5px 0;
}

.greeting-wrap {
    max-width: 400px;
    margin: 0 auto;
}
/* 인사말 -  END*/

/*  신랑, 신부, 혼주 - START*/
.section-couple {
    background: linear-gradient( to bottom, var(--bg-paper-soft), var(--bg-paper) );
}

.couple-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    max-width: 420px;
    margin: 0 auto;
    padding-top: 10px;
}

.couple-card {
    background: var(--bg-paper);
    border-radius: 14px;
    padding: 28px 16px 24px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05), inset 0 0 0 1px rgba(0,0,0,0.04);
    position: relative;
}

.couple-role {
    font-size: clamp(14px, 3.5vw, 16px);
    letter-spacing: 0.3em;
    transform: translateX(0.15em);
    /*margin-bottom: 10px;*/
}

.couple-name {
    font-size: clamp(20px, 5vw, 24px);
    letter-spacing: 0.15em;
    transform: translateX(0.075em);
}

.parents {
    margin-top: 25px;
}

.parents-title {
    font-size: 13px;
    letter-spacing: 0.18em;
    transform: translateX(0.09em);
    color: var(--ink-black);
    opacity: 0.75;
    margin-bottom: 10px;
}

.parents-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.parent-row {
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 6px;
    font-size: 18px;
}

.parent-label {
    color: var(--soft-gray);
    font-size: 13px;
}

.parent-name {
    letter-spacing: 0.01em;
}

.groom-card {
    background: linear-gradient( to bottom, var(--bg-ceremony-blue-soft), var(--bg-paper) );
}

.groom-card .couple-role{
    color: #1E3A5F; /* 전통 남청 */
}

.bride-card {
    background: linear-gradient( to bottom, var(--bg-ceremony-red-soft), var(--bg-paper) );
}

.bride-card .couple-role{
    color: #8B1E1E; /* 단청 홍 */
}

.couple-card::before {
    content: '';
    position: absolute;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    width: 36px;
    height: 1px;
    background: rgba(0,0,0,0.18);
}

/* 연락 아이콘 공통 */
.contact-box {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 6px;
    margin-bottom: 18px;
}

.contact-img{
    height: 17px;
    width: 17px;
}

.contact-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(0,0,0,0.035);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

    .contact-btn:hover {
        background: rgba(0,0,0,0.08);
        transform: translateY(-1px);
    }

/* 혼주용 - 더 작고 조용하게 */
.contact-box.small {
    margin-bottom: 0px;
}

.contact-box.small .contact-img {
    height: 14px;
    width: 14px;
}

.contact-box.small .contact-btn {
    width: 24px;
    height: 24px;
    font-size: 12px;
    background: rgba(0,0,0,0.03);
}

.groom-card .contact-btn {
    color: #1E3A5F;
}

.bride-card .contact-btn {
    color: #8B1E1E;
}
/*  신랑, 신부, 혼주 - END*/

/*  날짜 + D-day - START*/
/* D-DAY 날짜 */
.section-date {
    padding: 25px 20px;
    background: var(--bg-paper-soft);
    text-align: center;
}

.date-box {
    /*max-width: 340px;*/
    /*margin: 0 auto;*/
    padding: 28px 20px 34px;
    background: var(--bg-paper);
    border-radius: 18px;
    box-shadow: 0 6px 14px rgba(0,0,0,0.06), inset 0 0 0 1px rgba(0,0,0,0.04);
}

/* ===== 날짜 ===== */
.date-row {
    margin-bottom: 18px;
}

.wedding-date {
    font-size: 18px;
    letter-spacing: 0.18em;
    transform: translateX(0.09em);
    margin-top: 10px;
    margin-bottom: 2px;
    color: var(--ink-black);
}

.wedding-day {
    font-size: 14px;
    letter-spacing: 0.25em;
    transform: translateX(0.12em);
    color: var(--soft-gray);
    margin-top: 4px;
}

/* ===== 시간 ===== */
.time-row {
    margin-bottom: 26px;
}

.wedding-time {
    margin-top: 2px;
    font-size: 14px;
    letter-spacing: 0.14em;
    color: var(--ink-black);
}

/* ===== D-DAY 문장형 ===== */
.d-day {
    margin-top: 16px;
    text-align: center;
}

.d-day-text {
    font-size: 15px;
    line-height: 1.9;
    letter-spacing: 0.08em;
    color: var(--ink-black);
}

    /* 숫자 강조 */
    .d-day-text .num {
        display: inline-block;
        min-width: 2.4em;
        text-align: center;
        font-size: 18px;
        font-weight: 600;
        letter-spacing: 0.12em;
        color: var(--ink-black);
    }

    /* 마무리 문구 */
    .d-day-text .suffix {
        margin-left: 4px;
        color: var(--soft-gray);
        font-size: 14px;
    }

.calendar-box {
    margin-top: 30px;
    padding: 16px 14px;
    background: var(--bg-paper-soft);
    border-radius: 12px;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.04);
}

.calendar-month {
    font-size: 14px;
    text-align: center;
    margin-bottom: 10px;
    letter-spacing: 0.15em;
    color: var(--ink-black);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
    text-align: center;
    font-size: 13px;
    color: var(--soft-gray);
}

    .calendar-grid span {
        height: 32px;
        width: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 auto; /* 가운데 고정 */
    }

    .calendar-grid .wedding-day {
        background: var(--bg-paper);
        border-radius: 50%;
        color: var(--accent-red);
        padding-left:3px;
        font-weight: 600;
        box-shadow: 0 0 0 1px rgba(139,30,30,0.2);
    }
     
    .calendar-grid .empty {
        visibility: hidden;
    }
/*  날짜 + D-day - END*/


/*  식장 안내- START*/
.section-location {
    padding: 25px 20px;
}

.location-map-image img {
    width: 100%;
    border-radius: 14px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}

.location-map-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 18px 0 0px;
}

.map-btn {
    padding: 10px 18px;
    border-radius: 999px;
    font-size: 14px;
    text-decoration: none;
    background: var(--bg-paper-soft);
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.08);
    color: var(--ink-black);
}

.location-address {
    text-align: center;
    margin-bottom: 26px;
}

.hall-name {
    font-size: 16px;
    margin-bottom: 6px;
}

.hall-address {
    font-size: 14px;
    color: var(--soft-gray);
}

.location-guide,
.location-notice {
    margin-top: 15px;
}

    .location-guide h3,
    .location-notice h3 {
        font-size: 18px;
        letter-spacing: 0.15em;
        margin-bottom: 0px;
    }

    .location-guide ul {
        font-size: 16px;
        line-height: 1.7;
        padding-left: 16px;
    }

    .location-guide ul li {
        font-size: 15px;
        margin-top: 14px;
    }

    .location-notice p {
        font-size: 16px;
        line-height: 1.6;
        color: var(--soft-gray);
    }
/*  식장 안내 - END*/

/* 갤러리 - START*/
/* ===== 전체 ===== */
.gallery-section {
    max-width: 420px;
    margin: 0 auto;
    padding: 20px;
}

/* ===== 대표 이미지 ===== */
.gallery-main {
    position: relative;
    width: 100%;
    height: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    margin-bottom: 30px;
}

/* 배경용 블러 이미지 */
.gallery-main .bg-blur {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: blur(18px);
    transform: scale(1.1);
    opacity: 0.45;
}

.gallery-main img {
    position: relative;
    z-index: 1;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    margin: auto;
    display: block;
    transition: opacity 0.20s ease, transform 0.20s ease;
}

/* ===== 썸네일 ===== */
.gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.gallery-thumbs img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    opacity: 0.7;
    transition: all 0.2s ease;
}

/* hover 효과 */
.gallery-thumbs img:hover {
    opacity: 1;
    transform: scale(1.04);
}

/* 선택된 썸네일 */
.gallery-thumbs img.active {
    opacity: 1;
    outline: 2px solid var(--ink-black);
}

/* 갤러리 - END*/


/*  계좌안내 - START*/
.account-groups {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

/* 그룹 */
.account-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.group-title {
    font-size: 14px;
    color: #666;
    margin-bottom: 4px;
    letter-spacing: 0.05em;
}

/* 계좌 한 줄 */
.account-item {
    display: grid;
    grid-template-columns: 0px 1fr auto;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    background: #fafafa;
}

    /* 소유자 */
    .account-item .owner {
        font-size: 13px;
        color: #444;
    }

    /* 계좌번호 */
    .account-item .number {
        font-size: 14px;
        color: #222;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

/* 복사 버튼 */
.btn-copy {
    font-size: 12px;
    padding: 4px 7px;
    border-radius: 6px;
    border: 1px solid #ddd;
    background: var(--bg-wood-light);
    cursor: pointer;
    color: var(--ink-black);
    font-family: 'AritaBuri', serif;
    font-weight: 600;
}
}

.btn-copy.location-copy {
    margin-left: 20px;
}

.btn-copy:active {
    transform: scale(0.96);
}
/*  계좌 안내 - END*/



@media (max-width: 430px) {
    .hero-line-1 {
        font-size: 10px;
    }

    .hero-line-2 {
        margin-top: 5px;
        font-size: 15px;
    }

    .hero-line-3 {
        margin-top: 5px;
        font-size: 45px;
    }

    .sub {
        font-size: 12px;
    }

    .greeting-text {
        font-size: 13px;
    }

    .greeting-symbol {
        font-size: 18px;
    }
}

@media (max-width: 360px) {

    .hero-line-1 {
        font-size: 10px;
    }

    .hero-line-2 {
        margin-top: 5px;
        font-size: 15px;
    }

    .hero-line-3 {
        margin-top: 5px;
        font-size: 35px;
    }

    .sub {
        font-size: 10px;
    }

    .greeting-text {
        font-size: 12px;
    }

    .greeting-symbol {
        font-size: 16px;
    }
}
