@charset "utf-8";

:root{
    --font-batang: 'GowunBatang';
    --font-pretendard: 'Pretendard';
    --font-gaegu: 'Gaegu';

    --fwt : 100;
    --fwel: 200;
    --fwl : 300;
    --fwr : 400;
    --fwm : 500;
    --fwb : 600;
    --fweb: 700;
    --fwh : 800;
    --fwbl: 900;

    --blue: #3980d1;
    --light-blue: rgba(57, 128, 209, 0.1);
    --red: #e97575;

    --fitler-blue: brightness(0) saturate(100%) invert(46%) sepia(13%) saturate(2693%) hue-rotate(172deg) brightness(98%) contrast(88%);
}

*{margin: 0; padding: 0; list-style: none; color: inherit; box-sizing: border-box; text-decoration: none;}
*:before,
*:after{box-sizing: border-box;}
body{font-family: var(--font-batang); font-weight: var(--fwr); line-height: 1.4;}
img{vertical-align: top; max-width: 100%;}
button{background: none; border: 1px solid #000; box-shadow: none; cursor: pointer; font-family: inherit; font-size: inherit;}

.font-batang{font-family: var(--font-batang);}
.font-pretendard{font-family: var(--font-pretendard);}
.font-gaegu{font-family: var(--font-gaegu);}

#app{max-width: 560px; margin: 0 auto; padding: 0 0 0;}

.wrap{padding: 0 20px;}
.wrap.blue{background-color: var(--light-blue); padding-top: 30px; padding-bottom: 30px;}

#bgm{width: 0; height: 0; overflow: hidden; position: absolute; opacity: 0; border: none; box-shadow: none; background: none;}

.audio-control{
    position: fixed; bottom: 35px; right: 20px; user-select: none;
    span{position: relative; display: block; width: 45px; height: auto; aspect-ratio: 1; border-radius: 3px; background: #fff; border: 1px solid #ddd; box-shadow: 0 0 1px 1px rgba(0,0,0,0.02);}
    span:before{content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: url("../img/ico-stop.svg") no-repeat center left 9px; background-size: 25px auto; filter: brightness(0) saturate(100%) invert(45%) sepia(83%) saturate(436%) hue-rotate(172deg) brightness(87%) contrast(97%);}

    &.on{
        span:before{background-image: url("../img/ico-play.svg"); background-position: center left 10px;}
    }
}

.visual{
    position: relative; margin: 0 0 10px; overflow: hidden;
    .img{
        position: relative; z-index: 1; aspect-ratio: 1 / 1.2; border: 1px solid #000; border: none; padding: 10% 0 0;
        img{width: 100%; height: 100%; object-fit: cover;}
    }
    .txt{
        position: absolute; z-index: 2; top: 70px; left: 50%; transform: translateX(-50%); color: var(--blue); font-weight: var(--fwb); font-size: 38px; letter-spacing: 0.02em; 
        font-family: var(--font-gaegu); width: 100%; text-align:  center;

        span{display: inline-flex;}
        span em{
            display: inline-block; font-style: normal; opacity: 0; filter: blur(3px); transform: translate3d(0, 0.3em, 0) rotateX(-25deg); transform-origin: 50% 100%; 
            animation: wedding-letter-in 1.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
        }
        span em{}
        span em:nth-child(1)  { animation-delay: 0.15s; }
        span em:nth-child(2)  { animation-delay: 0.22s; }
        span em:nth-child(3)  { animation-delay: 0.29s; }
        span em:nth-child(4)  { animation-delay: 0.36s; }
        span em:nth-child(5)  { animation-delay: 0.43s; }
        span em:nth-child(6)  { animation-delay: 0.50s; }
        span em:nth-child(7)  { animation-delay: 0.57s; }
        span em:nth-child(8)  { animation-delay: 0.64s; }
        span em:nth-child(9)  { animation-delay: 0.71s; }
        span em:nth-child(10) { animation-delay: 0.78s; }
        span em:nth-child(11) { animation-delay: 0.85s; }
        span em:nth-child(12) { animation-delay: 0.92s; }
        span em:nth-child(13) { animation-delay: 0.99s; }
        span em:nth-child(14) { animation-delay: 1.06s; }
        span em:nth-child(15) { animation-delay: 1.13s; }
    }
    .bot-txt{
        position: absolute; z-index: 2; bottom: 30px; left: 50%; transform: translateX(-50%); width: 100%; text-align: center; color: #3378c7; font-weight: var(--fwb); font-size: 21px; font-family: var(--font-batang);
        display: flex; flex-wrap: wrap; gap: 0.2em; justify-content: center; letter-spacing: 0.2em;
        .h{font-family: var(--font-batang); display: inline;}
    }

    .bubble-demo {position: absolute; z-index: 2; left: 0; right: 0; bottom: -20%; top: 40%; overflow: hidden; background: transparent; isolation: isolate;}

    /* .bubble-demo .b {
        position: absolute; bottom: -12px; width: var(--s); height: var(--s); left: var(--x); border-radius: 50%; background: rgba(51, 120, 199, 0.5); box-shadow: 0 0 5px #73d8ff66; opacity: 0; animation: rise var(--d) ease-in var(--delay) infinite;
    } */
    .bubble-demo .b {
        position: absolute;
        bottom: -12px;
        left: var(--x);
        width: auto;
        height: auto;
        border-radius: 0;
        background: none;
        box-shadow: none;

        color: rgba(51, 120, 199, 0.5);
        font-size: var(--s);
        line-height: 1;
        opacity: 0;

        animation: rise var(--d) ease-in var(--delay) infinite;
    }

    .bubble-demo .b::before {
        content: "♥";
        display: block;
        text-shadow: 0 0 5px #73d8ff66;
    }
    .bubble-demo .b:nth-child(1)  { --x: 6%;  --s: 4px; --d: 3.5s; --delay: .2s; --drift: 9px; }
    .bubble-demo .b:nth-child(2)  { --x: 14%; --s: 7px; --d: 4.1s; --delay: 1.4s; --drift: -7px; }
    .bubble-demo .b:nth-child(3)  { --x: 22%; --s: 3px; --d: 3s; --delay: .8s; --drift: 12px; }
    .bubble-demo .b:nth-child(4)  { --x: 29%; --s: 5px; --d: 3.8s; --delay: 1.8s; --drift: -10px; }

    .bubble-demo .b:nth-child(5)  { --x: 26%; --s: 8px; --d: 3.4s; --delay: .1s; --drift: 5px; }
    .bubble-demo .b:nth-child(6)  { --x: 33%; --s: 4px; --d: 3.2s; --delay: 1.1s; --drift: -8px; }

    .bubble-demo .b:nth-child(7)  { --x: 24%; --s: 6px; --d: 3.9s; --delay: 2.1s; --drift: 11px; }
    .bubble-demo .b:nth-child(8)  { --x: 43%; --s: 3px; --d: 3.1s; --delay: .6s; --drift: -5px; }
    .bubble-demo .b:nth-child(9)  { --x: 78%; --s: 5px; --d: 4s; --delay: 1.6s; --drift: 8px; }
    .bubble-demo .b:nth-child(10) { --x: 85%; --s: 7px; --d: 3.7s; --delay: .4s; --drift: -12px; }
    
    .bubble-demo .b:nth-child(11) { --x: 78%; --s: 4px; --d: 4.2s; --delay: 2.4s; --drift: 6px; }
    .bubble-demo .b:nth-child(12) { --x: 85%; --s: 6px; --d: 3.4s; --delay: 1s; --drift: -9px; }

    .bubble-demo .b:nth-child(13) { --x: 93%; --s: 3px; --d: 3.6s; --delay: 1.9s; --drift: 7px; }
    .bubble-demo .b:nth-child(14) { --x: 18%; --s: 3px; --d: 4.3s; --delay: 2.6s; --drift: 10px; }
    .bubble-demo .b:nth-child(15) { --x: 47%; --s: 5px; --d: 3.3s; --delay: 2.8s; --drift: -7px; }
    .bubble-demo .b:nth-child(16) { --x: 74%; --s: 3px; --d: 4.5s; --delay: 3.1s; --drift: 12px; }
}

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

.tit{
    text-align: center; padding: 0 0 30px;
    .sup{font-size: 13px; padding: 0 0 10px; color: var(--blue); font-style: italic;}
    .title{font-size: 22px; font-weight: var(--fwb); color: #666;}
    .sub{font-size: 14px; padding: 20px 0 0; line-height: 1.5;}
    .sub strong.blue{color: var(--blue); font-size: 14px;}
    .sub .sublist{
        margin: 20px 0 0; border: 1px solid var(--blue); border-radius: 3px;
        > dl{
            display: flex; flex-wrap: wrap; align-items: center; font-family: var(--font-pretendard); padding: 0 10px;
            dt{flex: 0 0 auto; width: 100px; text-align: left; position: relative; padding: 0 0 0 23px;}
            dt .ico{position: absolute; top: 50%; transform: translateY(-50%); left: 0;}
            dd{flex: 1; min-width: 0; text-align: left; padding: 8px 0 8px 10px; border-left: 1px solid var(--blue);}
            dd .depth-list{display: flex; flex-direction: column; gap: 2px;}
            dd .depth-list > li{position: relative; padding: 0 0 0 12px;}
            dd .depth-list > li:before{content: "·"; font-weight: 900; position: absolute; top: 0; left: 0;}
        }
        > dl + dl{margin-top: -1px; border-top: 1px solid var(--blue);}
    }
}


.calendar{
    .c-head{}
    .c-body{
        .weeks{display: flex; flex-wrap: wrap; padding: 0 0 10px;}
        .weeks > div{flex: 1; min-width: 0; text-align: center;}
        .weeks > div:nth-child(1){color: var(--red);}
        .weeks > div:nth-child(7){color: var(--blue);}

        .days{
            display: grid; grid-template-columns: repeat(7, 1fr); grid-template-rows: repeat(auto-fill, minmax(10px, auto)); gap: 10px 0;
            > div{text-align: center;}
            > div:nth-child(7n + 1){color: var(--red);}
            > div:nth-child(7n){color:var(--blue);}
            > div.d-day{color: #fff; position: relative;}
            > div.d-day:before{content: ""; position: absolute; z-index: -1; top: 60%; left: 50%; transform: translate(-50%, -50%); width: 70%; height: auto; aspect-ratio: 17 / 15; background: url("../img/heart.svg") no-repeat center; background-size: 100% auto; filter: var(--fitler-blue);}
            > div.d-day span{}
        }
    }
}

.account{
    display: flex; flex-direction: column; gap: 10px; padding-top: 20px;
    .item{
        .account-btn{display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; border: 1px solid var(--blue); border-radius: 3px; font-family: var(--font-pretendard); color: var(--blue); line-height: 48px;}
        .account-btn:after{content: ""; display: inline-block; vertical-align: middle; margin: -4px 0 0; width: 8px; height: auto; aspect-ratio: 1; border-left: 2px solid var(--blue); border-bottom: 2px solid var(--blue); transform: rotate(-45deg);}
        .account-btn.on{border-radius: 3px 3px 0 0; background-color: var(--blue); color: #fff;}
        .account-btn.on:after{transform: rotate(-225deg); margin: 2px 0 0; border-color: #fff;}

        > ul{display: none; border: 1px solid var(--blue); border-top: none;}
        > ul > li{padding: 10px 10px; display: flex; flex-direction: column; gap: 5px;}
        > ul > li + li{border-top: 1px solid #ddd;}
        > ul > li > dl{display: flex; flex-wrap: wrap; align-items: center;}
        > ul > li > dl dt{flex: 0 0 auto; width: 120px;}
        > ul > li > dl dd{flex: 1; min-width: 0; font-family: var(--font-pretendard); display: flex; flex-wrap: wrap; align-items: center;}
        > ul > li > dl dd .account-copy{font-size: 13px; border: 1px solid #ddd; border-radius: 3px; color: #555; padding: 4px 5px; line-height: 1; margin: 0 0 0 auto;}
    }
}

.greeting{
    text-align: center; font-size: 16px; line-height: 1.5; 

    .wrap.blue{margin: 30px 0 0;}
    .contact{
        display: flex; flex-direction: column; text-align: center; gap: 15px;
        .item{display: flex; flex-wrap: wrap; justify-content: center; align-items: center; font-size: 14px; line-height: 1;}
        .item .parent{font-size: 16px;}
        .item span{display: inline-block; width: 30px; margin: 0 0.6em 0 0.3em;}
        .item strong{font-weight: var(--fwb); font-size: 16px;}
        .item .call{display: inline-block; vertical-align: middle; margin: 2px 0 0 16px; width: 16px; height: auto; aspect-ratio: 1; background: url("../img/ico-phone.svg") no-repeat center; background-size: 100% auto; filter: brightness(0.3);}
        .item .sms{display: inline-block; vertical-align: middle; margin: 2px 0 0 16px; width: 16px; height: auto; aspect-ratio: 1; background: url("../img/ico-mail.svg") no-repeat center; background-size: 100% auto; filter: brightness(0.3);}
    }
}

.gallery{
    .g-list{
        display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(auto-fill, minmax(10px, auto)); gap: 5px;
        > li{
            a{
                display: block; width: 100%; aspect-ratio: 1;
                img{width: 100%; height: 100%; display: block; object-fit: cover;}
            }
        }
    }
}

.location{
    .mapbox{
        .root_daum_roughmap{width: 100%;}
        .root_daum_roughmap .wrap_map{/* height: auto; aspect-ratio: 1; */}
        .root_daum_roughmap .wrap_controllers{display: none;}
        .root_daum_roughmap .cont{display: none;}
        .root_daum_roughmap .map_border{display: none;}

        .root_daum_roughmap .wrap_map .wrap_btn_zoom{display: none;}
        .root_daum_roughmap .wrap_map .map > div:nth-child(2){display: none;}
    }

    .links{
        padding: 20px 0 0;
        .wrap{
            display: flex; flex-wrap: wrap; gap: 10px;
            a{flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 5px; justify-content: center; font-family: var(--font-pretendard); text-align: center; font-size: 14px; line-height: 48px; border: 1px solid #ddd; border-radius: 3px;}
            a:before{content: ""; display: inline-block; width: 20px; height: auto; aspect-ratio: 1; background-repeat: no-repeat; background-position: center; background-size: 100% auto;}
            a.naver:before{background-image: url("../img/icon-n-map.png");}
            a.kakao:before{background-image: url("../img/icon-k-map.png");}
        }
    }
}

.share{
    padding: 30px 0 0;
    .s-list{
        display: flex; flex-wrap: wrap; gap: 10px;
        button{flex: 1; width: auto; display: block; line-height: 48px; border-radius: 50px; background: var(--blue); color: #fff; border: none;}
    }

    .thanks{
        font-style: italic; text-align: center; color: var(--blue); font-weight: var(--fwb); font-size: 22px; padding: 30px 0 0;
        .heart{display: block; text-align: center; font-size: 30px; font-style: normal;}
    }
}

#footer{
    background: var(--blue); height: 60px; margin-top: 50px; color: rgba(255,255,255,0.5); text-align: center; align-content: center;
}

@keyframes rise {
    0% {
        transform: translate(0, 0) scale(.65);
        opacity: 0;
    }

    12% {
        opacity: .8;
    }

    65% {
        opacity: .65;
    }

    100% {
        transform: translate(var(--drift), -310px) scale(1.15);
        opacity: 0;
    }
}
@media (prefers-reduced-motion: reduce) {
    .bubble-demo .b {
        animation-play-state: paused;
    }
}
@keyframes wedding-letter-in {
    0% {
        opacity: 0;
        filter: blur(3px);
        transform: translate3d(0, 0.3em, 0) rotateX(-25deg);
    }

    100% {
        opacity: 1;
        filter: blur(0);
        transform: translate3d(0, 0, 0) rotateX(0);
    }
}
@media (prefers-reduced-motion: reduce) {
    .visual .txt span > em {
        animation: none;
        opacity: 1;
        filter: none;
        transform: none;
    }
}