* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
::-webkit-scrollbar {
    background-color: transparent;
    width: 0;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #000;
}

/* PC/모바일 구분 */
.pc_only { display: block; }
.mobile_only { display: none; }

/* ======================
   PC 티저 요소
====================== */

/* PC 티저 (영상 전용) */
.pc_teaser {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.pc_teaser video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}


.teaser_background {
    position: relative;
    width: 1920px;
    height: 1080px;
    margin: 0 auto;
    background: url('../img/teaser_background.jpg') no-repeat center center;
    background-size: 1920px 1080px;
    overflow: hidden;
}

.teaser_cloud {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 20;
    pointer-events: none;
    animation: cloudZoomIn 7s ease-out infinite alternate forwards;
}

.teaser_cloud img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@keyframes cloudZoomIn {
    0% { transform: scale(1); }
    100% { transform: scale(1.2); }
}

.teaser_sunset_1 {
    position: absolute;
    inset: 0;
    z-index: 99;
    pointer-events: none;
}

.teaser_sunset_1 img {
    width: 70%;
    object-fit: cover;
    opacity: 0;
    animation: fadeInSunset 5.5s ease forwards;
    margin-left: 274px;
    margin-top: 137px;
    transform-origin: center;
}

@keyframes fadeInSunset {
    0% {
        opacity: 0.2;
        transform: translateX(-20px) translateY(110px) rotate(-15deg);
    }
    100% {
        opacity: 1;
        transform: translateX(0) translateY(0) rotate(0deg);
    }
}




.teaser_text {
    position: absolute;
    top: 132px;
    left: 450px;
    z-index: 30;
}

.teaser_text img {
    width: 1008px;
    height: 579px;
    opacity: 0;
    animation: textFadeIn 4s ease-in-out forwards;
    animation-delay: 1.5s;
}

@keyframes textFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}





.teaser_obj {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 33;
    overflow: hidden;
}

.teaser_obj img {
    width: 100%;
    height: auto;
    display: block;
    filter: brightness(0);
    animation: fadeBright 9s ease forwards;
}

@keyframes fadeBright {
    from {
        filter: brightness(0);
    }
    to {
        filter: brightness(1);
    }
}

.form_modal_overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 210;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.form_modal_overlay.show {
    opacity: 1;
    pointer-events: auto;
}

/* ======================
   오버레이 (공통)
====================== */
.teaser_overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 190;
    opacity: 0;
    transition: opacity 1.8s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
}

.teaser_overlay.show {
    opacity: 1;
    pointer-events: auto;
}

/* ======================
   팝업 공통
====================== */
.popup_content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    transform: translateY(-80px);
}

.popup_image_wrap {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.popup_image_wrap img {
    display: block;
    max-width: 100%;
    -webkit-user-drag: none; /* 크롬, 사파리 */
    -khtml-user-drag: none;  /* 옛 카멜케이스 브라우저 */
    -moz-user-drag: none;    /* 파이어폭스 */
    -o-user-drag: none;      /* 오페라 */
    user-drag: none;

    user-select: none;       /* 텍스트 선택 방지 */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.popup_close,
.popup_skip_day {
    background: transparent;
    border: none;
    cursor: pointer;
    color: #fff;
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', sans-serif;
    font-weight: 300;
    letter-spacing: -0.2px;
    font-size: 15px;
}

.popup_close {
    align-self: center;
    padding: 6px 10px;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    -webkit-tap-highlight-color: transparent;
}

.popup_close:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* ======================
   PC 팝업
====================== */
.pc_popup {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
    opacity: 0;
    transform: translateY(6px) scale(0.99);
    pointer-events: none;
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.pc_popup.show {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
    transition: opacity 2.5s cubic-bezier(0.22, 1, 0.36, 1),
    transform 3.4s cubic-bezier(0.22, 1, 0.36, 1);
}


/* ======================
   팝업 관심고객등록
====================== */
.form_modal {
    position: fixed;
    top: 0;
    right: 0;
    width: 900px;
    max-width: 100%;
    height: 100%;
    background: #fff;
    box-shadow: -4px 0 12px rgba(0,0,0,0.3);
    transform: translateX(100%);
    opacity: 0;
    /*visibility: hidden;*/
    transition: transform 0.7s ease, opacity 0.7s ease;
    z-index: 220;
    overflow-y: auto;
}

.form_modal.show {
    transform: translateX(0);
    opacity: 1;
    /*visibility: visible;*/
}


.form_close {
    position: absolute;
    top: 10px;
    right: 20px;
    border: none;
    background: transparent;
    font-size: 25px;
    font-weight: 300;
    cursor: pointer;
    font-family: "Helvetica Neue", sans-serif;
    z-index: 99999999999 !important;
}








/* ======================
   모바일 스타일
====================== */
@media screen and (max-width: 1024px) {
    .pc_only { display: none; }
    .mobile_only { display: block; }

    .mobile_teaser img {
        width: 100%;
        height: auto;
        animation: mobileZoomOut 8s ease-out forwards;
    }

    @keyframes mobileZoomOut {
        0% { transform: scale(1.2); }
        100% { transform: scale(1); }
    }
    .mobile_teaser video {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }
    .mobile_teaser {
        width: 100%;
        height: 100vh;
        overflow: hidden;
    }

    /* 모바일 팝업 */
    .mobile_popup {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 90%;
        max-width: 400px;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.8s ease; /* 가볍게 페이드인 */
        z-index: 200;
    }

    .mobile_popup.show {
        opacity: 1;
        pointer-events: auto;
    }

    .mobile_popup .popup_content {
        transform: none; /* PC에서 적용된 -80px 제거 */
    }


    .form_modal {
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
        right: auto;
        bottom: 0;
        box-shadow: none;
        transform: translateY(100%); /* 아래에서 슬라이드 업 */
    }
    .form_modal.show {
        transform: translateY(0);
    }
    .form_close {
        top: 15px;
        right: 20px;
        font-size: 25px;
    }
}
