/* ********** 팝업 ********** */
.popup_con {
    width: 100%;
    height: 100%;
    position: fixed;
    z-index: 999;
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    gap: 20px;
}

.popup_modal {
    background-color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.modal_wrap {
    width: 420px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.modal_img {
    width: 100%;
    height: 100%;
}

.modal_img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.web_form {
    width: 100%;
    height: 48px;
    flex: 0 0 auto;
}

.popup_btn {
    display: flex;
    align-items: center;
    width: 100%;
    height: 100%;
    border-top: 1px solid #eee;
}

.popup_btn button {
    height: 100%;
    background-color: transparent;
    border: none;
    outline: none;
    padding: 10px;
    cursor: pointer;
    font-size: 16px;
}

.popup_btn .btn_today {
    border-right: 1px solid #eee;
    flex: 1 1 100%;
}

.popup_btn .btn_closes {
    width: 40%;
    flex: 0 0 auto;
}

.popup_btn i {
    margin-right: 5px;
}

@media screen and (max-width: 1680px) {
    .popup_con {
        flex-direction: row;
    }

    .modal_wrap {
        width: 480px;
        height: 100%;
    }
}

@media screen and (max-width: 1024px) {
    .popup_con {
        flex-direction: column;
    }

    .modal_wrap {
        width: 380px;
    }
}

@media screen and (max-width: 520px) {
    .modal_wrap {
        width: 260px;
    }
}

/* ********** 팝업종료 ********** */
/* 원페이지 내비 디자인변경 */
#fp-nav.left {
    left: 0;
}

#fp-nav ul li .fp-tooltip.left {
    opacity: 0.3;
    font-size: 16px;
    left: 30px;
    color: #fff;
}

#fp-nav ul li:hover .fp-tooltip,
#fp-nav.fp-show-active a.active + .fp-tooltip {
    opacity: 1;
    color: #fff;
    font-weight: 700;
}

#fp-nav ul li a.active span,
#fp-nav ul li:hover a.active span,
.fp-slidesNav ul li a.active span,
.fp-slidesNav ul li:hover a.active span {
    opacity: 1;
    height: 2px;
    width: 25px;
    background-color: #fff;
}

#fp-nav {
    z-index: 9;
}

.fp-table {
    display: block;
}

.fp-section .fp-table .active .fp-completely {
    height: auto;
}

#fp-nav ul li .fp-tooltip {
    opacity: 1;
    width: auto;
}

#fp-nav ul li,
.fp-slidesNav ul li {
    margin: 20px 0;
}

#fp-nav ul li a span,
.fp-slidesNav ul li a span {
    left: 0;
}

.-fp-section:last-of-type,
.fp-table:last-of-type {
    height: auto;
}

#fp-nav ul li a.active span,
#fp-nav ul li:hover a.active span,
.fp-slidesNav ul li a.active span,
.fp-slidesNav ul li:hover a.active span {
    margin: 0;
}

#fp-nav ul li a span,
.fp-slidesNav ul li a span,
#fp-nav ul li:last-child,
.fp-slidesNav ul li:last-child {
    opacity: 0;
}

#end {
    height: auto;
}

/* ----- 원페이지 내비 디자인변경 ----- */
.container {
    width: 100%;
    overflow: hidden;
    margin-right: auto;
    margin-left: auto;
}

.hero-slider {
    width: 100%;
    height: 100%;
    display: -webkit-box;
    display: -ms-flexbox;
    display: table;
    position: relative;
}

/* bg */
.swiper-slide {
    background-repeat: no-repeat;
    background-position: center top;
    background-size: cover;
}

.image1 {
    background-image: url(../img/main/slide_1.jpg);
}

.image2 {
    background-image: url(../img/main/slide_2.jpg);
}

.hero-slider .swiper-slide {
    overflow: hidden;
}

.hero-slider .swiper-container {
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
}

.hero-slider .slide-inner {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    background-size: cover;
    background-position: center;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.container {
    width: 85%;
    overflow: hidden;
    position: absolute;
    top: 30vh;
    left: 10%;
}

/* 내비 */
.swiper-container-horizontal > .swiper-pagination-bullets,
.swiper-pagination-custom,
.swiper-pagination-fraction {
    bottom: 30vh;
    left: 10%;
}

.swiper-pagination {
    text-align: justify;
}

.hero-slider .swiper-pagination-bullet {
    height: 12px;
    line-height: 12px;
    font-size: 12px;
    color: #000;
    opacity: 0.3;
    background: #fff;
    transition: all 0.2s ease;
}

.hero-slider .swiper-pagination-bullet-active {
    opacity: 1;
}

.hero-style .slide-title {
    width: 100%;
}
.hero-style .slide-title h2 {
    font-size: 7rem;
    font-weight: 900;
    margin-bottom: 6rem;
    color: #fff;
    transition: all 0.4s ease;
    text-shadow: 0px 4px 20px rgba(0, 0, 0, 0.5);
}

@media (max-width: 991px) {
    .hero-style .slide-title h2 {
        font-size: 60px;
        margin: 0 0 35px;
    }
}

@media (max-width: 767px) {
    .hero-style .slide-title h2 {
        margin: 0 0 30px;
    }
}

.hero-style .slide-text p {
    font-size: 2.4rem;
    font-weight: 400;
    color: #fff;
    margin: 0 0 40px;
    transition: all 0.4s ease;
}

@media (max-width: 767px) {
    .hero-style .slide-text p {
        font-size: 2rem;
        line-height: 3rem;
        font-weight: normal;
        margin: 0 0 30px;
    }
}

.swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: transparent;
    opacity: 1;
}

.swiper-pagination-bullet-active {
    width: 60px;
    transition: width 0.5s;
    border-radius: 50px;
    border: 1px solid transparent;
}

.swiper-container-horizontal > .swiper-pagination-bullets .swiper-pagination-bullet {
    margin: 0 10px;
}

/* scroll ani */
.scroll-down {
    bottom: 0;
    height: 10vh;
    left: 0;
    margin: 0 auto;
    position: absolute;
    right: 0;
    text-align: center;
    z-index: 1;
}

.scroll-down-text {
    color: #fff;
    font-weight: bold;
    font-size: 12px;
}

.scroll-down-bar {
    background: #999;
    bottom: 0;
    display: inline-block;
    height: 6.5vh;
    left: 0;
    margin: 0 auto;
    overflow: hidden;
    position: absolute;
    right: 0;
    width: 2px;
}

.scroll-down-bar::before {
    animation: scrollDown 1.5s infinite;
    background: #fff;
    content: "";
    display: inline-block;
    height: 3.5vh;
    left: 0;
    position: absolute;
    top: 0;
    width: 2px;
    z-index: 1;
}

@-moz-keyframes scrollDown {
    0% {
        transform: translate3d(0, -32px, 0);
    }

    50% {
        animation-timing-function: ease-out;
        transform: translate3d(0, 0, 0);
    }

    100% {
        animation-timing-function: ease-in;
        transform: translate3d(0, 65px, 0);
    }
}

@-webkit-keyframes scrollDown {
    0% {
        transform: translate3d(0, -32px, 0);
    }

    50% {
        animation-timing-function: ease-out;
        transform: translate3d(0, 0, 0);
    }

    100% {
        animation-timing-function: ease-in;
        transform: translate3d(0, 65px, 0);
    }
}

@-o-keyframes scrollDown {
    0% {
        transform: translate3d(0, -32px, 0);
    }

    50% {
        animation-timing-function: ease-out;
        transform: translate3d(0, 0, 0);
    }

    100% {
        animation-timing-function: ease-in;
        transform: translate3d(0, 65px, 0);
    }
}

@keyframes scrollDown {
    0% {
        transform: translate3d(0, -32px, 0);
    }

    50% {
        animation-timing-function: ease-out;
        transform: translate3d(0, 0, 0);
    }

    100% {
        animation-timing-function: ease-in;
        transform: translate3d(0, 65px, 0);
    }
}

/* main_end */

.section {
    background-size: cover;
    background-repeat: no-repeat;
    color: #fff;
}

#guide {
    background-image: url(../img/main/con1_bg.jpg);
    background-position: top;
}

.title {
    margin-top: 15vh;
}

.title h1 {
    font-size: 5.5rem;
    font-weight: 700;
    line-height: 6rem;
    margin-bottom: 4vh;
}

.title h4 {
    font-size: 2rem;
    letter-spacing: 0.3em;
    line-height: 3rem;
    font-weight: 700;
    color: #ffab2d;
}

.title h2 {
    font-size: 3.6rem;
    line-height: 4rem;
    margin-bottom: 5vh;
    font-weight: 300;
}

.title h2 span {
    display: inline;
    font-weight: bold;
}

@keyframes movetop {
    0% {
        opacity: 0;
        -moz-transform: translateY(100px);
        -ms-transform: translateY(100px);
        -webkit-transform: translateY(100px);
        transform: translateY(100px);
    }

    100% {
        opacity: 1;
        -moz-transform: translateY(0);
        -ms-transform: translateY(0);
        -webkit-transform: translateY(0);
        transform: translateY(0);
    }
}

.boxes:first-of-type {
    -webkit-animation: 1.5s movetop ease-in-out forwards;
    animation: 1.5s movetop ease-in-out forwards;
    animation-delay: 0.7s;
}

.boxes:first-of-type {
    -webkit-animation: 1.5s movetop ease-in-out forwards;
    animation: 1.5s movetop ease-in-out forwards;
    animation-delay: 1.5s;
}

.boxes:first-of-type {
    -webkit-animation: 1.5s movetop ease-in-out forwards;
    animation: 1.5s movetop ease-in-out forwards;
    animation-delay: 3.2s;
}

#guide .con li {
    float: left;
    width: 25%;
}

#guide .con_box {
    width: 90%;
    margin: auto;
}

#guide .con_box a {
    display: block;
    width: 100%;
    height: 350px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

#guide .con_box a span {
    position: absolute;
    bottom: -100%;
    display: block;
    background-color: #000000ce;
    width: 100%;
    height: 100%;
}

#guide .con_box a span .over_text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 22px;
    font-weight: 600;
    text-align: center;
}

#guide .con_box a span .over_text i {
    width: 100%;
    text-align: center;
    margin-bottom: 10px;
}

#guide .con_box h4 {
    font-size: 24px;
    margin: 10px 0;
    font-weight: 500;
}

#guide li:nth-child(1) .con_box a {
    background-image: url(../img/main/guide_1.jpg);
}

#guide li:nth-child(2) .con_box a {
    background-image: url(../img/main/guide_2.jpg);
}

#guide li:nth-child(3) .con_box a {
    background-image: url(../img/main/guide_3.jpg);
}

#guide li:nth-child(4) .con_box a {
    background-image: url(../img/main/guide_4.jpg);
}

/* 교정서비스 시작 */
#service {
    background-image: url(../img/main/con2_bg.jpg);
    background-position: top;
}

#service .title {
    text-align: center;
}

#service .title h2 {
    text-shadow: 0px 4px 20px rgba(0, 0, 0, 0.15);
    line-height: 4rem;
    margin-top: 10px;
}

#service .con li {
    width: 33.33%;
    height: 40vh;
    float: left;
    background: rgba(0, 0, 0, 0.2);
    position: relative;
}

#service .con_box {
    position: absolute;
    width: 100%;
    text-align: center;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2.4rem;
    line-height: 3.4rem;
    font-weight: 600;
    cursor: pointer;
}

#service .con li:nth-child(2)::after,
#service .con li:nth-child(3)::after {
    content: "";
    display: block;
    width: 1px;
    height: 80%;
    margin-top: 10%;
    background-color: rgba(255, 255, 255, 0.3);
}

#service .con_box img {
    margin: 24px auto;
}

#service .con_box button {
    display: none;
    background: transparent;
    width: 120px;
    height: 4vh;
    line-height: 40px;
    margin-top: 10px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-size: 16px;
    font-weight: 500;
    font-family: "Pretendard", sans-serif;
    cursor: pointer;
}

#service .con_box button a {
    display: block;
    color: #fff;
}

#service .con_box button:hover a {
    background-color: #fff;
    color: #1c1c1c;
    font-weight: 700;
    transition: all 0.3s;
}

#customer {
    width: 100%;
    height: 100%;
    background-image: url(../img/main/con3_bg.jpg);
    background-position: top;
}

#customer .title {
    margin-top: 20vh;
    position: relative;
    width: 100%;
    overflow: hidden;
}

#customer .title_text {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48%;
    overflow: hidden;
    float: left;
}

#customer .service_con {
    width: 50%;
    height: 40vh;
    overflow: hidden;
    float: right;
    position: relative;
    background-image: url(../img/main/con3_img.jpg);
    background-size: cover;
}

#customer .service_con .text_box {
    position: absolute;
    top: 50%;
    margin-left: 10%;
    transform: translateY(-50%);
    width: 100%;
    overflow: hidden;
}

#customer .service_con .text_box h4 {
    width: 100%;
    color: #fff;
    font-size: 3.2rem;
    border-bottom: 2px solid #fff;
    padding: 6px 0;
    font-weight: 800;
    letter-spacing: 0;
}

#customer .service_con .text_box ul {
    padding-top: 20px;
}

#customer .service_con .text_box li {
    font-size: 2.2rem;
    line-height: 5rem;
}

#customer .service_con .text_box li span {
    font-weight: 800;
}

/* notice */

#customer .notice {
    width: 100%;
    position: relative;
    overflow: hidden;
}

#customer .swiper-slide .notice_box h1 {
    width: 100%;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    margin-bottom: 10px;
    font-size: 22px;
}

#customer .notice h2 {
    font-size: 2.6rem;
    font-weight: 800;
    line-height: 3.6rem;
}

#customer .notice p {
    font-size: 20px;
    font-weight: 400;
    line-height: 2rem;
    color: #fff;
}

#customer .swiper .mySwiper {
    width: 100%;
    overflow: hidden;
}

#customer .swiper {
    margin-top: 30px;
}

#customer .swiper-slide {
    cursor: pointer;
    text-align: center;
    font-size: 18px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-sizing: border-box;
    display: -webkit-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    -webkit-justify-content: center;
    justify-content: space-around;
    -webkit-box-align: center;
    -ms-flex-align: center;
    -webkit-align-items: center;
    align-items: baseline;
    flex-direction: row-reverse;
    width: 10%;
    height: 200px;
}

#customer .swiper-slide .notice_box {
    text-align: left;
    background-color: transparent;
    position: relative;
    width: 100%;
    height: 100%;
}

#customer .swiper-slide .notice_box a {
    padding: 30px;
    display: block;
    color: #fff;
}

#customer .swiper-slide .notice_box p {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 18px;
    color: #ccc;
}

#customer .swiper-slide .notice_box h6 {
    font-size: 16px;
    color: #ccc;
    position: absolute;
    bottom: 5%;
}

.swiper-button-prev,
.swiper-container-rtl .swiper-button-next {
    background-image: url(../img/main/left.png);
    background-size: cover;
    background-repeat: no-repeat;
    width: 50px;
    height: 50px;
    top: 0;
}

.swiper-button-next,
.swiper-container-rtl .swiper-button-prev {
    background-image: url(../img/main/right.png);
    background-size: cover;
    background-repeat: no-repeat;
    width: 50px;
    height: 50px;
}

.swiper-button-next,
.swiper-button-prev {
    top: 30px;
    margin-top: 0;
}

.swiper-button-next,
.swiper-container-rtl .swiper-button-prev {
    right: 0;
}

.swiper-button-prev,
.swiper-container-rtl .swiper-button-next {
    left: inherit;
    right: 80px;
}

/* 파트너 */
#end {
    width: 100%;
    overflow: hidden;
    background-color: #fff;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-20px * 5));
    }
}

#end .slider {
    height: 100px;
    margin: auto;
    position: relative;
    width: 80%;
}

#end .slider .slide-track {
    /* animation: scroll 3s linear infinite; */
    display: flex;
}

#end .slider .partner_slide {
    line-height: 10rem;
    width: 100%;
}

#end .slider .partner_slide img {
    display: inline-block;
    width: 80%;
    margin: auto;
    vertical-align: middle;
}

#end .slider:hover > div {
    animation-play-state: paused;
}

/* 파트너 end */

/* 반응형 */
@media screen and (max-width: 1536px) {
    /* 메인사이즈조절 */
    #main {
        width: 100%;
        height: 100vh;
    }

    .container,
    .swiper-container-horizontal > .swiper-pagination-bullets,
    .swiper-pagination-custom,
    .swiper-pagination-fraction {
        left: 10%;
    }

    .container,
    .swiper-container-horizontal > .swiper-pagination-bullets,
    .swiper-pagination-custom,
    .swiper-pagination-fraction {
        font-size: 8rem;
    }

    .hero-style .slide-text p {
        font-size: 3rem;
    }

    /* 세팅 */
    #wrap {
        margin: auto;
        padding: 150px 0;
        width: 85%;
        overflow: hidden;
    }

    .title {
        margin-top: 0;
    }

    #guide .con_box a {
        background-position: center;
        height: 30vh;
    }

    #service .con ul {
        background-color: rgba(0, 0, 0, 0.2);
        width: 100%;
        overflow: hidden;
        height: auto;
    }

    #service .con li {
        width: 70%;
        overflow: hidden;
        margin: auto;
        float: none;
        height: auto;
        background-color: transparent;
        border-bottom: 1px solid #ccc;
        padding: 30px;
    }

    #service .con_box {
        position: inherit;
        top: 0;
        left: 0;
        transform: none;
    }

    #service .con_box button {
        display: block;
        margin: auto;
        height: 40px;
        margin-top: 10px;
    }

    #customer .title {
        overflow: hidden;
        margin-top: 0;
    }

    #service .con li:nth-child(2)::after,
    #service .con li:nth-child(3)::after {
        display: none;
    }

    #service .con li:last-child {
        border-bottom: none;
    }

    #customer .service_con {
        height: 280px;
    }

    #customer .service_con .text_box {
        width: 90%;
        margin: auto;
        margin-left: 10px;
        left: 5%;
    }

    #customer .service_con .text_box li {
        width: 100%;
        overflow: hidden;
        line-height: 4rem;
        font-size: 1.8rem;
    }

    #customer .service_con .text_box li span {
        display: block;
        float: left;
    }

    #customer .service_con .text_box h4 {
        font-size: 2.8rem;
    }

    #customer .notice {
        margin-top: 50px;
    }

    .swiper-button-next,
    .swiper-button-prev {
        top: 0;
    }
}

@media screen and (max-width: 1024px) {
    .swiper-container-horizontal > .swiper-pagination-bullets,
    .swiper-pagination-custom,
    .swiper-pagination-fraction {
        bottom: 20vh;
        left: 10%;
    }
}

@media screen and (max-width: 980px) {
    #customer .title_text {
        width: 100%;
        position: initial;
        top: 0;
        transform: none;
    }

    #customer .service_con {
        width: 100%;
    }

    #customer .service_con .text_box li span {
        margin-right: 10px;
    }

    #end .slider .partner_slide img,
    #end .slider .partner_slide {
        width: auto;
    }

    #end .slider .partner_slide {
        margin-left: 20px;
    }

    #end .slider .slide-track {
        /* animation: scroll 20s linear infinite; */
    }

    @keyframes scroll {
        0% {
            transform: translateX(0);
        }

        100% {
            transform: translateX(calc(-150px * 5));
        }
    }
}

@media screen and (max-width: 720px) {
    #wrap {
        padding: 100px 0;
    }

    .hero-style .slide-title h2 {
        font-size: 5rem;
    }

    .hero-style .slide-text p {
        font-size: 2.4rem;
    }

    .title h1 {
        font-size: 3.5rem;
        margin-bottom: 20px;
    }

    .title h4 {
        font-size: 1.6rem;
    }

    .title h2 {
        font-size: 3.2rem;
        margin-bottom: 40px;
    }

    #guide .con li {
        width: 50%;
        margin-bottom: 30px;
    }

    #guide .con_box h4 {
        font-size: 2rem;
    }

    #guide .con_box a {
        height: 200px;
    }

    #service .con_box img {
        width: 60px;
        margin: 10px auto;
    }

    #service .con_box {
        font-size: 2rem;
    }

    #service .con li {
        padding: 20px;
    }
}

@media screen and (max-width: 460px) {
    .hero-style .slide-title h2 {
        font-size: 4rem;
    }

    .hero-style .slide-text p {
        font-size: 2rem;
    }

    .title h2,
    #service .title h2 {
        font-size: 2.8rem;
        line-height: 3.2rem;
    }

    #guide .con li,
    #guide .con_box {
        width: 100%;
    }

    #guide .con_box a {
        height: 150px;
    }

    .swiper-button-next,
    .swiper-button-prev {
        display: none;
    }

    #customer .service_con .text_box h4 {
        font-size: 2.4rem;
    }

    #customer .service_con .text_box li {
        font-size: 1.6rem;
        line-height: 2rem;
        margin-bottom: 10px;
    }

    #customer .service_con {
        height: 250px;
    }

    #customer .service_con .text_box {
        margin-left: 0;
    }

    #customer .service_con .text_box h4 {
        border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    }

    #customer .service_con .text_box li span {
        width: 100%;
    }
}

@media screen and (max-width: 280px) {
    .container {
        top: 20vh;
    }
}
