/**************************************************************/
/**************************************************************/
/**************************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-6xl);
    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-2xl);
    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;
}
#main .visual .caption a img {
}
.bx-has-pager {
    z-index: 99;
    position: relative;
    width: var(--web-width);
    margin: 0 auto;
    /* display: none; */
}
/* .bx-wrapper {max-width: 100% !important;} */

/* ----------------------- visual ----------------------*/
.main_slider li {
    width: 100% !important;
    height: 100vh !important;
    overflow: hidden;
}

.main_slider li img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
/* #main .visual, #main .visual .main_visual, #main .main_visual .bx-wrapper .bx-viewport, .main_slider li {
    width: 100% !important;
    height: 100vh !important;
} */

/* ----------------------- video visual ----------------------*/


@keyframes fadeUp {
  0% {
    opacity: 0;
    transform: translateY(50px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 이미지 줌 아웃 + 페이드 인 */
@keyframes fadeZoomIn {
  0% {
    opacity: 0;
    transform: scale(1.1);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* 텍스트 애니메이션 적용 */
.visual .main_copy {
  position: absolute;
    left: 50%;
    top: 37%;
    transform: translate(-50%);
    z-index: 99;
    color: #fff;
    text-shadow: 2px 0px 6px rgba(51,51,51,0.5);
    width: var(--web-width);
    text-align: center;
}

.visual .main_copy h3,
.visual .main_copy h2 {
  opacity: 0;
  transform: translateY(50px);
}

.visual .main_copy.animate h3,
.visual .main_copy.animate h2 {
  animation: fadeUp 1s ease forwards;
}

.visual .main_copy.animate h2 {
  animation-delay: 0.3s;
}

/* 슬라이드 이미지 애니메이션 */
.main_slider {
  position: relative;
}
.main_slider li {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  z-index: 0;
  transition: opacity 1.5s ease-in-out;
}
.main_slider li.prev {
  opacity: 0;
  z-index: 1;
}
.main_slider li.active {
  opacity: 1;
  z-index: 2;
}

.main_slider li img {
  opacity: 0;
  transform: scale(1.1);
  transition: opacity 1.2s ease, transform 1.2s ease;
}
.main_slider li.active img{
  opacity: 1;
  transform: scale(1);
}

@keyframes fadeZoomIn {
  0% {
    opacity: 0;
    transform: scale(1.1);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}
.main_slider li.active img {
  animation: fadeZoomIn 1.2s ease-out forwards;
}







.main_copy h2 {
    font-size: 4.375rem;
    font-weight: 500;
    line-height: normal;
    /* text-transform: uppercase; */
    margin: 0 0 1rem;
    font-family: var(--sub-font);
    letter-spacing: 1px;

}
.main_copy h3 {
    font-size: 1.875rem;
    font-weight: 500;
    line-height: normal;
}
.main_copy h3 span {
    font-weight: bold;
}
.main_copy p {
    font-size: 3.75rem;
    line-height: normal;
    font-weight: 400;
    font-family: var(--sub-font);
}

.video_wrapper {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background: url(../images/main/pattern.png);
    z-index: 9;
}
#mainVideo {
    width: 100%;
    height: 100%;
    background-color: black; 
    object-fit: cover; 
    z-index: -1;
    /* border-radius: 1rem 1rem 0 0; */
} 

.main_menu {
    position: absolute;
    left: 50%;
    top: 70%;
    transform: translate(-50%);
    z-index: 99;
    width: var(--web-width);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    transition: 0.4s;
}

.main_menu .box {
    width: calc((100% - 6rem) /4);
    border-radius: var(--radius-all-sm);
    padding: 1.75rem 2.5rem;
    box-shadow: 0px 5px 10px 0px rgb(0 0 0 / 10%);
    cursor: pointer;
}

.main_menu .box:nth-child(1) {
    background-image: url(../images/main/main_menu01_on.png);
    background-repeat: no-repeat;
    background-position: 85% 50%;
    background-color: #fff;
}
.main_menu .box:nth-child(1).on {
    background: url(../images/main/main_menu01.png);
    background-repeat: no-repeat;
    background-position: 85% 50%;
    background-color: var(--main-color);
    color: #fff;
}

.main_menu .box:nth-child(2) {
    background-image: url(../images/main/main_menu02_on.png);
    background-repeat: no-repeat;
    background-position: 85% 50%;
    background-color: #fff;
}
.main_menu .box:nth-child(2).on {
    background: url(../images/main/main_menu02.png);
    background-repeat: no-repeat;
    background-position: 85% 50%;
    background-color: var(--main-color);
    color: #fff;
}
.main_menu .box:nth-child(3) {
    background-image: url(../images/main/main_menu03_on.png);
    background-repeat: no-repeat;
    background-position: 85% 50%;
    background-color: #fff;
}
.main_menu .box:nth-child(3).on {
    background: url(../images/main/main_menu03.png);
    background-repeat: no-repeat;
    background-position: 85% 50%;
    background-color: var(--main-color);
    color: #fff;
}
.main_menu .box:nth-child(4) {
    background-image: url(../images/main/main_menu04_on.png);
    background-repeat: no-repeat;
    background-position: 85% 50%;
    background-color: #fff;
}
.main_menu .box:nth-child(4).on {
    background: url(../images/main/main_menu04.png);
    background-repeat: no-repeat;
    background-position: 85% 50%;
    background-color: var(--main-color);
    color: #fff;
}

.main_menu .box h4 {
    font-size: var(--txt-xl);
    font-weight: 500;
    line-height: 1.3em;
}
.main_menu .box strong {
    display: block;
}

.sec1 .main_copy_top .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    margin: 5rem auto;
    gap: 7rem;
}
.sec1 .btn a {
    display: inline-block;
    width: 425px;
    height: 70px;
    line-height: 70px;
    font-size: 1.5rem;
    font-weight: 500;
    color: #fff;
    text-align: center;
}
.sec1 .btn a.cate01 {
    background: var(--sub-color);
}
.sec1 .btn a.cate02 {
    background: var(--sub-color-2);
}

@media screen and (max-width:1300px) {
.main_visual::after {width: 60px;}

}