@charset "utf-8";

main {
    width: 100%;
    overflow: hidden;
}

/* 메인 section */
.mobile{
    display: none;
}
.main-area {
    position: relative;
    height: 100vh;
    /* height: 100dvh;
    min-height: 800px;
    max-height: 1080px; */
    background: #333;
    box-sizing: border-box;
}

/* 메인 동영상 */
.video-wrap{
    position: relative;
    width: 100%;
    height: 100%;
}
.video-wrap video{
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.video-wrap:before{
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /*background: rgba(0,0,0,0.2);*/
    pointer-events: none;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0) 68.27%);
}

/* 메인 텍스트 */
.main-text {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -60%) !important;
    left: 50%;
    z-index: 1;
    color: #fff;
    text-align: center;
    width: 100%;
}
.main-text h4 {
    text-transform: uppercase;
    font-weight: 400;
    font-size: var(--f20);
    margin-bottom: 30px;
}
.main-text h2 {
    font-size: var(--f40);
    font-weight: 500;
    line-height: 1.5em;
    letter-spacing: 1px;
    text-shadow: 4px 4px 3px rgba(0, 0, 0, 0.3);
}

/* 메인 스와이퍼 */
.main-swiper {
    height: 100%;
}
.main-swiper .swiper-slide {
    width: 100%;
    height: 100%;
    background-size: 100% 100%;
}
.main-swiper .bg1 {
    background: url('/images/img_main_01.jpg?v=1.3');
}
/* .main-swiper .bg2 {
    background: url('/images/img_main_02.jpg?v=1.1');
} */

.main-swiper .swiper-slide {
    position: relative;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    -webkit-transform: scale(1.1);
    transform: scale(1.1);
    -webkit-transition: -webkit-transform 3s;
    transition: -webkit-transform 3s;
    height: 100%;
    width: 100%;
}

.main-swiper .swiper-slide-active {
    -webkit-transform: scale(1);
    transform: scale(1);
}

.main-swiper-nav {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0 16px;
    margin-top: 40px;
}

.main-swiper-nav .swiper-btn-prev,
.main-swiper-nav .swiper-btn-next {
    cursor: pointer;
    margin-top: 2px;
}

.swiper-pagination {
    position: relative;
    width: auto;
    font-weight: 800;
    font-family: var(--font-su);
    margin-top: 13px;
}

/* 메인 스크롤다운 */
.scrolldown {
    position: absolute;
    bottom: 51px;
    left: 50%;
    z-index: 1;
    cursor: pointer;
    transform: translateX(-50%);
}

.scroll-mouse {
    width: 25px;
    height: 33px;
    border: 2px solid #fff;
    border-radius: 999px;
    position: relative;
    box-sizing: border-box;
}
.scroll-mouse::before {
    content:'';
    position:absolute;
    top:0;
    left:50%;
    transform:translateX(-50%);
    width:2px;
    height:6.67px;
    background:#fff;
}

.scroll-mouse span {
    position: absolute;
    left: 50%;
    top: 7px;
    transform: translateX(-50%);
    width: 5px;
    height: 8px;
    border: 2px solid #fff;
    border-radius: 999px;
    box-sizing: border-box;
    /*animation: scroll 1.8s infinite ease-in-out;*/
}

/* @keyframes scroll {
    0% {
        top: 8px;
        opacity: 0;
    }

    30% {
        top: 8px;
        opacity: 1;
    }

    70% {
        top: 20px;
        opacity: .3;
    }

    100% {
        top: 20px;
        opacity: 0;
    }
} */

.chevrons {
    margin-left: 4px;
    margin-top: 6px;
    width: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.chevrondown {
    margin-top: -1px;
    position: relative;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    display: inline-block;
    width: 8px;
    height: 8px;
    transform: rotate(45deg);
    border-radius: 2px;
}
.chevrondown:nth-child(1) {
    animation: pulse 1.8s ease-in-out infinite;
}
.chevrondown:nth-child(2) {
    animation: pulse 1.8s ease-in-out infinite .2s;
}

@keyframes pulse {
    0% {
        opacity: 0;
    }

    30% {
        opacity: 1;
    }

    70% {
        opacity: .3;
    }

    100% {
        opacity: 0;
    }
}

/* 섹션2 */
.texture {
    background: url('/images/section-gray-bg.png');
    background-size: 100% 100%;
    width: 100%;
    height: 100%;
    padding: 131px 0 157px;
}
.info-swiper {
    margin: 0 auto;
    max-width: 1400px;
    width: 100%;
}
.info-swiper .swiper-slide {
    overflow: hidden;
}
.info-swiper .bg {
    /* width: 310px; */
    height: 412px;
    position: relative;
    display: block;
}
.info-swiper .bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s;
}
.info-swiper .swiper-slide:hover img {
    transform: scale(1.12);
    transition: all 0.5s;
}
.info-swiper .bg .text {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.23);
    pointer-events: none;
    padding: 29px 0 37px 29px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-direction: column;
}
.info-swiper .bg .text span {
    font-family: var(--font-mont);
    font-weight: 400;
    font-size: 18px;
    color: #fff;
    min-width: 100px;
    border-radius: 32px;
    background: rgba(255, 255, 255, 0.3);
    border: 1.5px solid #fff;
    display: inline-block;
    text-align: center;
    padding: 11px 0;
}
.info-swiper .bg .text h1 {
    /* position: absolute;
    bottom: 37px;
    left: 30px; */
    color: #fff;
    font-weight: 500;
    font-size: var(--f28);
}

/* 섹션3 */
.section03 {
    text-align: center;
    position: relative;
    padding-bottom: 130px;
    overflow-x: hidden
}
.section03::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 390px;
    background: url('/images/wave-bg.png') center center no-repeat;
    background-size: 100% 100%;
}

.main-course-text {
    text-align: center;
    width: 100%;
    position: absolute;
    top: 100px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}
.main-course-text h1 {
    font-family: var(--font-mont);
    color: var(--sub-color);
    font-weight: 400;
    font-size: var(--f40);
}
.main-course-text p {
    margin-top: 32px;
    font-size: var(--f20);
    font-weight: 500;
    color: var(--font-color);
}

.visual {
    padding-top: 150px;
}
.visual img {
    clip-path: inset(0 50% 0 50%);
    transform: scale(1.08);
    transition:
        clip-path 1.3s cubic-bezier(.22,1,.36,1),
        transform 2s ease;
}

.visual.show img {
    clip-path: inset(0 0 0 0);
    transform: scale(1);
}

/* 섹션3 스와이퍼 */
.course-swiper {
    margin-top: 203px;
    overflow: visible;
    width: 100%;
}
.course-swiper .swiper-wrapper {
    align-items: center;
    transition-timing-function: cubic-bezier(.22, 1, .36, 1) !important;
    transform: translateZ(0);
    backface-visibility: hidden;
}
.course-swiper .swiper-slide {
    width: 400px;
    height: 382px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 1s cubic-bezier(.22, 1, .36, 1);
}
.course-swiper .swiper-slide-active {
    z-index: 2;
}
.course-swiper .swiper-slide-active ~ .swiper-slide {
    transform: translateX(100px);
}
.course-img {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 600px;
    height: 382px;
    overflow: hidden;
    transform: translate(-50%, -50%) scale(0.6667); /* 400/600 */
    transition: transform 1s cubic-bezier(.22, 1, .36, 1);
}
.course-img img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}
.course-swiper .swiper-slide-active .course-img {
    transform: translate(-50%, -50%) scale(1);
}
/*.course-swiper .swiper-slide.move-prev {
    justify-content: flex-end;
}
.course-swiper .swiper-slide.move-next {
    justify-content: flex-start;
}*/
.course-swiper .nav-position {
    position: relative;
    margin-top: 68px;
    max-width: 1425px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    gap: 30px;
}
.course-nav {
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
    flex-direction: row-reverse;
}
.course-nav .swiper-button-next,
.course-nav .swiper-button-prev {
    position: static;
    margin: 0;
    width: 33px;
    height: 33px;
    background-repeat: no-repeat;
    background-position: center;
    cursor: pointer;
    background-size: 100% 100%;
}
.course-swiper .swiper-slide.is-after  { transform: translateX(100px); }   /* (320-180)/2 */
.course-swiper .swiper-slide.is-before { transform: translateX(-100px); }
.course-nav .swiper-button-next::after,
.course-nav .swiper-button-prev::after {
    display: none;
}
.course-nav .swiper-button-prev {
    background-image: url('/images/course-prev.svg');
}
.course-nav .swiper-button-next {
    background-image: url('/images/course-next.svg');
}
.course-swiper .swiper-pagination-progressbar {
    position: relative;
    top: auto;
    bottom: auto;
    height: 2px;
    background: #AEAEAE;
    flex: 1;
}
.course-swiper .swiper-pagination-lock {
    display: block !important;
}
.course-swiper .swiper-pagination-progressbar .swiper-pagination-progressbar-fill {
    background: var(--font-color);
}

/* 섹션4 */
.section04 {
    position: relative;
}
.section04::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 305px;
    background: #EFEDEA;
}
.facil-list {
    display: flex;
    justify-content: center;
    gap: 40px;
    padding: 93px 0 187px;
}
.facil-list li {
    position: relative;
    cursor: pointer;
    overflow: hidden;
}
.facil-list li .text {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 16px;
    color: #fff;
    opacity: 0;
    visibility: hidden;
    transition: opacity .35s ease, visibility .35s ease;
}
.facil-list li:hover .text {
    opacity: 1;
    visibility: visible;
}
.facil-list .text h1 {
    font-weight: 600;
    font-size: var(--f24);
}
.facil-list .text h2 {
    font-weight: 400;
    font-size: var(--f16);
    font-family: var(--font-mont);
}
.facil-list li h2 img {
    transition: transform 1s ease;
    margin-left: 4px;
}
.facil-list li:hover .text h2 img {
    transform: rotate(-180deg);
}

/* 카카오맵 */
.root_daum_roughmap {
    width: 615px;
}
.root_daum_roughmap .wrap_controllers,
.root_daum_roughmap .cont {
    display: none;
}

/* 메인 팝업 */
.main-pop-wrap {
    position: absolute;
    top: 127px;
    left: 32px;
    z-index: 99 !important;
}

.main-pop {
    position: relative;
    width: 180px;
    max-width: 1160px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.pop-swiper {
    position: relative;
    width: 180px;
    height: 100%;
    max-height: 735px;
}

.pop-swiper .swiper-slide {
    position: relative;
    width: 180px;
    height: 180px !important;
}

.pop-swiper .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: fill;
    overflow: hidden;
}

.pop-swiper .swiper-pagination {
    display: none;
}

.main-pop .swiper-btn-prev,
.main-pop .swiper-btn-next {
    cursor: pointer;
}

.btn-pop-close {
    width: 100%;
    max-width: 1140px;
    display: flex;
    align-items: center;
    padding: 8px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-pop-close button {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #fff;
    font-weight: 400;
    font-size: var(--f14);
}

.btn-pop-close .btn-close-all {
    margin-left: auto;
}

/* 팝업 위/아래 이동 버튼 */
.pop-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}
.pop-nav.hide {
    display: none;
}
.pop-nav button {
    width: 24px;
    height: 20px;
    justify-content: center;
}
.pop-nav button img {
    width: 14px;
    filter: brightness(0) invert(1);
}
.pop-nav .pop-nav-prev img {
    transform: rotate(180deg);
}

/* PC 환경에서는 스크롤바 숨김 */
.mobile-scroll::after {
    display: none;
}

@media (max-width: 1200px) {
    .mobile {
        display: block;
    }

    /*레이아웃*/
    .main-area {
        min-height: 670px;
    }
    .m-visual-area {
        padding: 48px 16px 80px;
    }

    /*스와이퍼 네비 삭제*/
    .main-swiper-nav {
        display: none;
    }

    /*섹션1*/

    .main-text {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%) !important;
        text-align: center;
        height: auto;
        margin: 0 auto;
    }
    .main-text h4 {
        font-size: var(--f16);
        margin-bottom: 24px;
    }
    .main-text h2 {
        font-size: var(--f28);
        letter-spacing: -1.68px;
        line-height: 34px;
    }

    .scroll-mouse {
        width: 27px;
    }
    .scrolldown {
        bottom: 24px;
    }
    .chevrons {
        margin-left: 5px;
        margin-top: 3px;
    }

    /*섹션2*/
    .texture {
        padding: 74px 32px 120px;
    }
    .main-title-box {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        margin: 0 auto 32px;
        max-width: 310px;
    }
    .main-title-box h1 {
        font-size: var(--f24);
    }
    .main-title-box h1 span {
        margin-top: 4px;
    }
    .sub-title {
        width: 100%;
        display: inline-block;
        text-align: right;
    }
    .sub-title p {
        display: none;
    }
    .sub-title a {
        font-size: var(--f14);
    }
    .info-swiper {
        width: 100%;
    }

    /*섹션3*/
    .section03 {
        padding-bottom: 35px;
    }
    .main-course-text {
        top: 71px;
    }
    .main-course-text h1 {
       font-size: var(--f32);
        letter-spacing: -1px;
    }
    .main-course-text p {
        font-size: var(--f16);
        letter-spacing: -0.5px;
        line-height: 20px;
        width: 80%;
        margin: 25px auto 0;
        word-break: keep-all;
    }
    .br {
        display: block;
    }
    .visual {
        width: 92%;
        margin: 0 auto;
        padding-top: 124px;
    }
    .visual img {
        width: 100%;
        min-height: 306px;
        max-height: 100%;
        object-fit: cover;
    }
    .course-swiper .nav-position {
        width: 96%;
        margin-top: 10px;
    }
    .section03::before {
        height: 156px;
        background: url('/img_main_mobile_01images/wave-bg-mobile.png') center center no-repeat;
        background-size: 100% 100%;
    }

    /*섹션3 스와이퍼*/
    .course-swiper {
        margin-top: 100px;
    }
    .course-swiper .swiper-slide {
        width: 180px;
        height: 204px;
        transition: transform .8s cubic-bezier(0.25, 1, 0.5, 1);
    }
    .course-swiper .swiper-slide-active ~ .swiper-slide {
        transform: translateX(calc((320px - 180px) / 2));
    }
    .course-swiper .swiper-slide.is-after  { transform: translateX(70px); }   /* (320-180)/2 */
    .course-swiper .swiper-slide.is-before { transform: translateX(-70px); }
    .course-img {
        width: 320px;
        height: 204px;
        transform: translate(-50%, -50%) scale(0.5625); /* 180/320 */
        transition: transform .8s cubic-bezier(0.25, 1, 0.5, 1);
    }
    .course-swiper .swiper-slide-active .course-img {
        transform: translate(-50%, -50%) scale(1);
    }

    /*섹션4*/
    .section04::before {
        height: 558px;
    }
    .facil-list {
        flex-direction: column;
        margin: 0 auto;
        width: 92%;
        padding: 62px 0 154px;
        text-align: center;
        gap: 16px;
    }
    .facil-list li {
        width: 100%;
    }
    .facil-list img {
        width: auto;
        max-width: 100%;
    }
    .root_daum_roughmap {
        width: 100%;
        height: auto;
    }
    .root_daum_roughmap .wrap_map {
        height: 223px !important;
    }

    /*모바일 스크롤*/
    .mobile-scroll {
        width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
        align-self: center;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 32px;
    }
    /* 크로스브라우징용 스크롤바*/
    .mobile-scroll::after {
        content: "";
        position: absolute;
        bottom: 8px;
        left: 0;
        width: 100%;
        height: 4px;
        background: var(--sub-color);
        pointer-events: none;
        opacity: 1;
    }

    /* 모바일 팝업 */
    .main-pop-wrap {
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        position: fixed;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.3);
        justify-content: center;
        align-items: center;
        display: flex;
        flex-direction: column;
    }
    .main-pop {
        width: 260px;
    }
    .pop-swiper {
        height: auto;
        width: 260px;
    }
    .pop-swiper .swiper-slide {
        height: 260px !important;
    }
    .pop-swiper .swiper-slide img {
        width: 260px;
        height: 260px;
    }

    .pop-swiper .swiper-pagination {
        bottom: 8px !important;
        display: block;
        position: absolute;
    }

    .pop-swiper .swiper-pagination-bullet {
        width: 8px;
        height: 8px;
        margin: 0 3px !important;
        background: #707070;
        opacity: 1;
        border-radius: 50%;
        transition: all .3s;
    }

    .pop-swiper .swiper-pagination-bullet-active {
        background: #ccc;
    }

    .btn-pop-close {
        width: 260px;
    }
    .btn-pop-close button .pc {
        display: none;
    }
    .pop-nav {
        display: none;
    }

    /*모바일 스크롤바*/
    .mobile-scroll::-webkit-scrollbar {
        height:4px;
        z-index: 1;
    }

    .mobile-scroll::-webkit-scrollbar-thumb {
        background: var(--sub-color); /* 스크롤바 색상 */
    }

    .mobile-scroll::-webkit-scrollbar-track {
        background: #ddd;  /*스크롤바 뒷 배경 색상*/
    }
}

@media (max-width: 768px) {
    .main-title-area p {
        max-width: 80%;
    }
}
