.main{
    font-size: 0;
    position: relative;
}
.main img{
    width: 100%;
}
.main .center1{
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%,-50%);
}
.scroll{
    position: absolute;
    left: 50%;
    bottom: 10%;
    transform: translateX(-50%);
    gap: 15px 0;
}
.scroll span{
    position: relative;
    display: block;
    width: 25px;
    height: 49px;
    border: 1px solid #ffffff;
    box-sizing: border-box;
    border-radius: 30px;
}
.scroll span::after{
    content: " ";
    width: 10px;
    height: 10px;
    border-radius: 5px;
    background-color: #ffffff;
    position: absolute;
    left: 50%;
    top: 10%;
    transform: translateX(-50%);
    animation: scroll_down infinite 1.5s ease-in-out;
}
@keyframes scroll_down {
  100% {
    top: 85%;
    opacity: 0;
  }
}

/* main_section1 */
.main_section1 {
    padding: 230px 0 130px;
    background: #231915;
    position: relative;
}
.ms1_con1 {
    position: relative;
    height: 200px;
}
.circle_container {
    position: relative;
    width: 100%;
    height: 100%;
}
/* 개별 원형 요소 */
.circle_item {
    position: absolute;
    gap: 0 40px;
    transition: all 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.circle_item.left {
    transform: translateX(-250px);
}
.circle_item.right {
    transform: translateX(250px);
}
/* 원형 스타일 */
.circle_item .circle {
    width: 127px;
    height: 127px;
    border-radius: 50%;
    background-color: #8e712b;
    transition: all 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 2;
    gap: 0 5px;
    flex-shrink: 0;
    position: relative;
}
/* 텍스트 스타일 */
.circle_text {
    opacity: 1;
    transition: all 1s ease;
    transform: scale(1);
}
/* 애니메이션 활성화 상태 */
.circle_container.animated .circle_item.left {
    transform: translateX(42px);
}
.circle_container.animated .circle_item.right {
    transform: translateX(187px);
}
/* 글자 사라짐 효과 */
.circle_container.animated .circle_text {
    opacity: 0;
    transform: scale(0.8) translateY(-20px);
}

.ms1_con2 {
    margin-top: 140px;
}

.ms1_con3{
    margin-top: 180px;
}

.ms1_con4{
    margin-top: 175px;
}
.ms1_con4_txt{
    margin-top: 90px;
}
.ms1_con4_txt span{
    color: #fff;
    font-family: 'EliceDigitalBaeum_Regular';
    src: url('../css/fonts/EliceDigitalBaeum_Regular.ttf');
}
.ms1_con4_txt span:hover{
    color: #bc9635;
    font-family: 'EliceDigitalBaeum_Bold';
    src: url('../css/fonts/EliceDigitalBaeum_Bold.ttf');
}
.ms1_con4_btn{
    margin-top: 55px;
}
.ms1_con4_btn p{
    padding: 10px 52px;
    border-radius: 50px;
    background-color: #fff;
}
.ms1_con4_scroll{
    position: relative;
    margin-top: 45px;
    height: 50px;
}
.ms1_con4_scroll img {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    animation: updown 3s ease-in-out infinite;
}

@keyframes updown {
  0%, 100% {
    top: 0;
  }
  50% {
    top: 20px; /* 내려가는 거리 */
  }
}

/* main_section2 */
.main_section2{

}

/* main_section3 */
.main_section3{
    padding: 245px 0 205px;
    background-image: url(../img/ms3_bg.webp);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    z-index: 1;
}
.ms3_con{
    margin-left: 5vw;
    align-items: flex-start;
    position: relative;
    z-index: 3;
}
.ms3_txt{
    align-items: flex-start;
}
.ms3_txt .txt2{
    margin: 35px 0 50px;
    border-left: 2px solid #bc9635;
    box-sizing: border-box;
    padding-left: 20px;
}
.ms3_txt .txt3{
    padding: 10px 28px;
    border-radius: 50px;
    background-color: #bc9635;
}
.ms3_img{
    gap: 0 25px;
}
.ms3_img .img1{
    margin-top: -5vw;
}
.ms3_img .img2{
    padding-top: 3vw;
}
.ms3_img img{
    width: 100%;
}
.ms3_roll {
  display: flex;
  position: absolute;
  bottom: -3%;
  width: 100%;
  overflow: hidden;
  z-index: 2;
}
.ms3_roll .rolling_track {
  white-space: nowrap;
  animation: scrollText 30s linear infinite;
}
.ms3_roll p {
  margin: 0;
  padding-right: 50px; /* 텍스트 간격 */
  color: rgba(34, 34, 34, .1);
}
@keyframes scrollText {
  from { transform: translateX(0%); }
  to   { transform: translateX(-50%); }
}
.ms3_roll span{
    color: rgba(188, 150, 53, .1);
}

/* main_section4 */
.main_section4{
    padding: 306px 0;
    background-image: url(../img/ms4_bg.webp);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}
.ms4_box {
    display: inline-flex;
    flex-direction: column;
    gap: 20px 0;
    padding: 30px;
    background-color: rgba(188, 150, 53, 0.9);
}
.ms4_box.left {
    align-self: flex-start;  /* 왼쪽 끝 */
}
.ms4_box.right {
    align-self: flex-end;    /* 오른쪽 끝 */
    margin: 90px 0 150px;
}

/* main_section5 */
.ms5_title{
    display: none;
}
.ms5_box{
    height: 920px;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    width: 100%;
    position: relative;
}
.ms5_box.box1{
    background-image: url(../img/ms5_bg1.webp);
}
.ms5_box.box2{
    background-image: url(../img/ms5_bg2.webp);
    border-left: 1px solid rgba(187, 180, 178, .7);
    border-right: 1px solid rgba(187, 180, 178, .7);
    position: relative;
}
.ms5_box2_title{
    position: absolute;
    left: 50%;
    top: 25%;
    transform: translateX(-50%);
    width: 100%;
    z-index: 1;
}
.ms5_box.box3{
    background-image: url(../img/ms5_bg3.webp);
}
.ms5_box .num p{
    margin: 35px 0 30px;
    background-color: #b38f32;
    width: 39px;
    height: 39px;
    border-radius: 50%;
}
.ms5_box .txt_box{
    padding-top: 50px;
    height: 100%;
}
.ms5_box:hover .txt_box{
    opacity: 0;
    visibility: hidden;
}
.ms5_box .bk_box {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    overflow: hidden;   /* 텍스트가 박스 밖으로 안 나가게 */
    justify-content: flex-end;
    width: 100%;
}
.ms5_box:hover .bk_box{
    background-color: rgba(0, 0, 0, .3);
}
.ms5_box .bk_box .txts {
    transform: translateY(100%);
    opacity: 0;
    transition: transform 0.6s ease, opacity 0.6s ease;
    gap: 25px 0;
    padding: 0 0 4vw 3vw;
}
.ms5_box:hover .bk_box .txts {
    transform: translateY(0);
    opacity: 1;
}

/* main_section6 */
.main_section6{
    padding: 165px 0;
}
.s_title{
    gap: 15px 0;
}
.ms6_con{
    margin-top: 45px;
}
.ms6_left{
    height: 435px;
    background-image: url(../img/ms6_bg1.webp);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    position: relative;
}
.ms6_left,
.ms6_right{
    width: 49%;
}
.ms6_left .txt_box{
   position: absolute;
   left: 5%;
   bottom: 5%;
   align-items: flex-start;
}
.ms6_left .txt1{
    padding: 8px 17px;
    border-radius: 50px;
    background-color: #ffffff;
}
.ms6_con .txt2{
    margin: 10px 0 30px;
}
.ms6_right .box{
    background-color: #5a3628;
    width: 100%;
    height: 48%;
    position: relative;
}
.ms6_right .txt_box{
    align-items: flex-start;
    position: absolute;
    left: 5%;
    top: 15%;
}
.ms6_right .txt1{
    padding: 8px 17px;
    border-radius: 50px;
    background-color: #b38f32;
}

/* mobile */ 
@media screen and (max-width: 767px){ 
    /* main */
    .main{
        height: 800px;
    }
    .main img{
        height: 100%;
        object-fit: cover;
    }

    .scroll{
        bottom: 5%;
        gap: 10px 0;
    }
    .scroll span{
        width: 20px;
        height: 44px;
    }
    .scroll span::after{
        width: 5px;
        height: 5px;
    }

    /* main_section1 */
    .main_section1 {
        padding: 180px 0 100px;
    }
    .circle_item{
        gap: 10px 0;
        flex-direction: column;
    }
    .circle_item .circle{
        width: 85px;
        height: 85px;
    }
    .circle_item.left {
        transform: translateX(-100px);
    }
    .circle_container.animated .circle_item.left {
        transform: translateX(-50px);
    }
    .circle_item.right {
        transform: translateX(100px);
    }
    .circle_container.animated .circle_item.right {
        transform: translateX(50px);
    }
    .ms1_con2 {
        margin-top: 100px;
    }
    .ms1_con3 {
        margin-top: 100px;
    }
    .ms1_con4 {
        margin-top: 100px;
    }
    .ms1_con4_txt {
        margin-top: 45px;
    }

    /* main_section2 */

    /* main_section3 */
    .main_section3 {
        padding: 100px 0 150px;
    }
    .ms3_con{
        margin-left: 0;
        flex-direction: column;
        gap: 50px 0;
    }
    .ms3_txt .txt2 {
        margin: 15px 0 25px;
    }

    /* main_section4 */
    .main_section4 {
        padding: 150px 0;
    }
    .ms4_box {
        padding: 15px;
    }

    /* main_section5 */
    .ms5_title{
        display: block;
        background-color: #231915;
        padding: 20px 0;
    }
    .ms5_con{
        flex-direction: column;
    }
    .ms5_box{
        height: unset;
        padding: 100px 0;
    }
    .ms5_box2_title{
        display: none;
    }
    .ms5_box .txt_box{
        padding-top: 0;
    }
    .ms5_box .txt_box .icons{
        width: 80px;
    }
    .ms5_box .txt_box .icons img{
        width: 100%;
    }
    .ms5_box .num p {
        margin: 20px 0 15px;
    }
    .ms5_box .bk_box .icons{
        width: 70px;
    }
    .ms5_box .bk_box .icons img{
        width: 100%;
    }

    .s_title {
        gap: 10px 0;
    }
    /* main_section6 */
    .main_section6 {
        padding: 100px 0;
    }
    .ms6_con{
        flex-direction: column;
        gap: 10px 0;
    }
    .ms6_left, 
    .ms6_right {
        width: 100%;
    }
    .ms6_left{
        height: 200px;
    }
    .ms6_right {
        gap: 10px 0;
    }
    .ms6_right .box{
        height: 150px;
    }
}

/* tablet */
@media screen and (min-width: 768px) and (max-width: 1024px){
    /* main */
    .main{
        height: 800px;
    }
    .main img{
        height: 100%;
        object-fit: cover;
    }

    /* main_section2 */

    /* main_section3 */
    .main_section3 {
        padding: 120px 0 170px;
    }
    .ms3_con{
        margin-left: 0;
        flex-direction: column;
        gap: 100px 0;
    }
    .ms3_txt .txt2 {
        margin: 20px 0 30px;
    }

    /* main_section5 */
    .ms5_title{
        display: block;
        background-color: #231915;
        padding: 30px 0;
    }
    .ms5_con{
        flex-direction: column;
    }
    .ms5_box{
        height: unset;
        padding: 100px 0;
    }
    .ms5_box2_title{
        display: none;
    }
    .ms5_box .txt_box{
        padding-top: 0;
    }
    .ms5_box .txt_box .icons{
        width: 80px;
    }
    .ms5_box .txt_box .icons img{
        width: 100%;
    }
    .ms5_box .num p {
        margin: 20px 0 15px;
    }
    .ms5_box .bk_box .icons{
        width: 70px;
    }
    .ms5_box .bk_box .icons img{
        width: 100%;
    }

} 