/**************************************************************/
/**************************************************************/
/**************************main visual*************************/
/**************************************************************/
/**************************************************************/

#main .visual {
    width: 100%;
    overflow: hidden;
    margin: 0 auto;
    position: relative;
}

@keyframes scroll {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-20px);
    }
}

#main .visual .caption {
    color: #fff;
    width: var(--web-width);
    margin: 0 auto;
    text-align: left;
}
#main .visual .caption h4 {
    font-size: var(--txt-display2);
    font-weight: bold;
    line-height: 1.3em;
    font-family: var(--main-font);
    letter-spacing: 1px;
    margin-bottom: 20px;
}
#main .visual .caption h5 {
    font-size: var(--txt-title3);
    font-weight: 400;
    line-height: 1.5em;
    margin-top: 14px;
    margin-bottom: 100px;
    position: relative;
    letter-spacing: 0.4px;
}
#main .visual .caption a {
    transition: 0.4s;
}
#main .visual .caption a:hover {
    margin-left: 20px;
}

.bx-has-pager {
    z-index: 99;
    position: relative;
    width: var(--web-width);
    margin: 0 auto;
}

/* ----------------------- visual ----------------------*/
#main .visual, 
#main .visual .main_visual, 
#main .main_visual .bx-wrapper,
#main .main_visual .bx-wrapper .bx-viewport, 
.main_slider {
    width: 100% !important;
    height: 100vh !important;
}
#main .main_visual {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 1; /* 배경 레이어로 고정 */
    pointer-events: none;
}
.bx-wrapper {
    max-width: none !important;
    margin: 0 !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    position: relative !important;
}

.bx-viewport {
    position: relative !important;
    left: 0 !important;
}

/* 슬라이드 li 설정 (페이드 전환을 위한 절대 위치 및 크기 고정) */
.main_slider li {
    /* position: absolute !important;
    top: 0 !important;
    left: 0 !important; */
    width: 100% !important;
    height: 100vh !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
}

.main_slider li.visual01 { background: url(../images/main/mainvisual_01.png) center no-repeat; background-size: cover; }
.main_slider li.visual02 { background: url(../images/main/mainvisual_02.png?v=1.0) center no-repeat; background-size: cover; }
.main_slider li.visual03 { background: url(../images/main/mainvisual_03.png?v=1.0) center no-repeat; background-size: cover; }
.main_slider li.visual04 { background: url(../images/main/mainvisual_04.png) center no-repeat; background-size: cover; }
.main_slider li.visual05 { background: url(../images/main/mainvisual_05.png) center no-repeat; background-size: cover; }
.main_slider li.visual06 { background: url(../images/main/mainvisual_06.png) center no-repeat; background-size: cover; }
.main_slider li.visual07 { background: url(../images/main/mainvisual_07.png) center no-repeat; background-size: cover; }
.main_slider li.visual08 { background: url(../images/main/mainvisual_08.png) center no-repeat; background-size: cover; }


/* ----------------------- video visual ----------------------*/

.main_copy {
    position: absolute;
    z-index: 100;
    top: 53%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    text-align: left;
    pointer-events: none;
    max-width: var(--web-width);
    z-index: 10;
}

.main_copy h2 {
    font-size: 4rem;
    font-weight: 700;
    line-height: 130%;
    color: #fff;
    text-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
}
.main_copy h3 {
    font-size: 1.5rem;
    font-weight: 500;
    line-height: normal;
    color: var(--main-color-2);
    margin-bottom: 0.5rem;
}
.main_copy h3 span {
    font-weight: bold;
}
.main_copy p {
    font-size: 1.25rem;
    line-height: 150%;
    font-weight: 400;
    margin-top: 1rem;
    color: #fff;
    margin-bottom: 3rem;
}

.main_copy .btn_wrap .btn{
    width: 170px;
    white-space: nowrap;
    pointer-events: auto;
}


.main_copy h3,
.main_copy h2,
.main_copy p,
.main_copy .btn_wrap {
    opacity: 0;
    transform: translateY(1.875rem); 
    animation-fill-mode: forwards; 
}

.main_copy h3,
.main_copy h2 {
    animation: fadeInUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.1s forwards;
}

.main_copy p {
    animation: fadeInUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.25s forwards;
}

.main_copy .btn_wrap {
    animation: fadeInUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(1.875rem);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}


.video-container {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background: #000;
}

.mainVideo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; 
    opacity: 0; 
    transition: opacity 1.5s ease-in-out; 
    visibility: hidden;
    z-index: 1;
}
.mainVideo.transitioning {
    opacity: 1;
    z-index: 2; 
    visibility: visible;
    transition: none;
}

.mainVideo.active {
    opacity: 1;
    z-index: 3;
    visibility: visible;
}

.mainVideo.last-active {
    opacity: 1; 
    z-index: 2; 
    visibility: visible;
}