/* main */
#main_wrap{
    width: 100%;
}
.main{
    background-image: url(../img/main_bg.webp);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    padding: 227px 0 70px;
}
.main_txt{
    gap: 40px 0;
    width: 40%;
}
.main_btns{
    margin-top: 50px;
    gap: 0 3vw;
}
.main_btns li{
    gap: 0 1vw;
}
.main_imgs{
    position: relative;
    width: 60%;
}
.main_imgs ul{
    position: absolute;
    right: 0;
    top: -20%;
    gap: 50px 0;
    z-index: 1;
}
.main_imgs li{
    width: 31%;
}
.main_imgs li img{
    width: 100%;
}

/* main_section1 */
.main_section1{
    padding: 12vw 0 100px;
    background-image: url(../img/ms1_bg.webp);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}
.scroll i {
  position: relative;
  animation: scroll_down 2.5s ease-in-out infinite;
}
@keyframes scroll_down {
  0% {
    top: 0;
  }
  50% {
    top: 15px;   /* 아래로 조금 이동 */
  }
  100% {
    top: 0;
  }
}
.ms1_con{
    margin-top: 60px;
}
.ms1_con video{
    width: 100%;
    border-radius: 20px;
}

/* main_section2 */
.main_section2{
    padding: 71px 0 ;
    background-image: url(../img/ms2_bg.webp);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    position: relative;
}
.ms2_img{
    width: 40%;
    padding: 26px 0;
    position: relative;
    overflow: hidden;
    border-radius: 20px;
}
.ms2_img::before{
    content: "";
    position: absolute;
    inset: 0;
    background-image: url(../img/ms2_img.webp);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform-origin: center;
    transform: scale(1);
    transition: all .5s;
}
.ms2_img:hover::before{
    transform: scale(1.1);
}
.ms2_img .txts {
    position: relative;
    z-index: 1;
    gap: 10vw 0;
    padding: 0 1.5vw;
}
.ms2_img .arrow{
    justify-content: flex-end;
}
.ms2_img .arrow i{
    transform: rotate(45deg);
}
.ms2_txt{
    width: 50%;
    gap: 50px 0;
}
.ms2_txt span {
  position: relative;
  display: inline-block;
  z-index: 1;
}
.ms2_txt span::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 5%; /* 글자와 밑줄 간격 */
  width: 0%;
  height: 12px;
  background-color: #fcc056;
  transition: width 2.5s ease; /* 밑줄 애니메이션 */
  z-index: -1;
}
.ms2_txt span.active::after {
  width: 100%;
}

/* main_section3 */
.main_section3{
    padding: 106px 0;
    background-image: url(../img/ms3_bg.webp);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}
.ms3_txt{
    width: 50%;
    gap: 50px 0;
}
.ms3_txt strong{
    font-weight: normal;
}
.ms3_txt strong:hover{
    text-decoration: underline;
    text-underline-position: under;
    text-decoration-color : #fcc056;
    text-decoration-thickness : 2px;
}
.ms3_txt span{
    margin: 0 20px;
}
.ms3_btn{
    margin-top: 10px;
    gap: 0 1vw;
}
.ms3_arrow{
    position: relative;
    z-index: 1;
}
.ms3_arrow .circle{
    background-color: #fcc056;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(0,-50%) scale(1);
    transition: all .5s;
    z-index: -1;
}
.ms3_btn:hover .circle{
    transform: translate(0,-50%) scale(1.1);
}
.ms3_img{
    width: 50%;
} 
.ms3_img img{
    width: 100%;
}
    

/* mobile */ 
@media screen and (max-width: 767px){ 
    #main_wrap{
        overflow: hidden;
    }
    /* main */
    .main{
        height: 850px;
        padding: unset;
    }
    .main .center2{
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 50px 0;
        height: 100%;
    }
    .main_txt{
        width: 100%;
        gap: 20px 0;
    }
    .main_btns {
        margin-top: 15px;
        gap: 0 7vw;
    }
    .main_btns li {
        gap: 0 2vw;
    }
    .main_btns .imgs{
        width: 50px;
    }
    .main_btns .imgs img{
        width: 100%;
    }
    .main_imgs{
        width: 100%;
    }
    .main_imgs ul{
        position: unset;
    }

    /* main_section1 */
    .main_section1{
        padding: 100px 0;
    }
    .ms1_con {
        margin-top: 30px;
    }

    /* main_section2 */
    .main_section2 .center2{
        flex-direction: column;
        gap: 50px 0;
    }
    .ms2_img{
        width: 100%;
    }
    .ms2_img .txts{
        gap: 25vw 0;
        padding: 0 3vw;
    }
    .ms2_txt {
        width: 100%;
        gap: 25px 0;
    }

    /* main_section3 */
    .main_section3 {
        padding: 100px 0;
    }
    .main_section3 .center2{
        flex-direction: column;
        gap: 50px 0;
    }
    .ms3_txt{
        gap: 25px 0;
        width: 100%;
    }
    .ms3_txt span {
        margin: 0 10px;
    }
    .ms3_img{
        width: 100%;
    }
    .ms3_arrow{
        width: 40px;
    }
    .ms3_arrow img{
        width: 100%;
    }
    .ms3_arrow .circle{
        width: 30px;
        height: 30px;
    }
}

/* tablet */
@media screen and (min-width: 768px) and (max-width: 1024px){

    #main_wrap{
        overflow: hidden;
    }

    /* main */
    .main{
        padding: 200px 0 100px;
    }
    .main .center2{
        flex-direction: column;
        justify-content: center;
        gap: 55px 0;
        height: 100%;
    }
    .main_txt{
        width: 100%;
        gap: 25px 0;
    }
    .main_btns {
        margin-top: 20px;
        gap: 0 6vw;
    }
    .main_btns li {
        gap: 0 2vw;
    }
    .main_btns .imgs{
        width: 60px;
    }
    .main_btns .imgs img{
        width: 100%;
    }
    .main_imgs{
        width: 80%;
    }
    .main_imgs ul{
        position: unset;
    }

    /* main_section1 */
    .main_section1{
        padding: 110px 0;
    }
    .ms1_con {
        margin-top: 35px;
    }

    /* main_section2 */
    .main_section2 .center2{
        flex-direction: column;
        gap: 55px 0;
    }
    .ms2_img{
        width: 100%;
    }
    .ms2_img .txts{
        gap: 27vw 0;
        padding: 0 5vw;
    }
    .ms2_txt {
        width: 100%;
        gap: 30px 0;
    }

    /* main_section3 */
    .main_section3 {
        padding: 110px 0;
    }
    .main_section3 .center2{
        flex-direction: column;
        gap: 55px 0;
    }
    .ms3_txt{
        gap: 30px 0;
        width: 100%;
    }
    .ms3_txt span {
        margin: 0 15px;
    }
    .ms3_img{
        width: 100%;
    }
    .ms3_arrow{
        width: 45px;
    }
    .ms3_arrow img{
        width: 100%;
    }
    .ms3_arrow .circle{
        width: 35px;
        height: 35px;
    }

} 