/* ********* 메인 슬라이드 ********* */
.main_visual {
    position: relative;
    width: 100%;
    height: 100vh;
}

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

.swiper-slide-active .slide_bg {
    animation: main_zoom 5s 0.5s;
    animation-fill-mode: both;
}

.slide_bg {
    width: 100%;
    height: 100vh;
    background-repeat: no-repeat;
    background-size: cover;
}

.slide_bg1 {
    background-image: url(../img/index/bg_1.png);
}

.slide_bg2 {
    background-image: url(../img/index/bg_2.png);
}

.slide_bg3 {
    background-image: url(../img/index/bg_3.png);
}

.slide_title_wrap {
    margin-top: 30px;
    flex-wrap: wrap;
}

/* 타이틀 */
.slide_title_box {
    position: absolute;
    width: 85%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
}

.slide_title_wrap {
    display: flex;
    align-items: center;
    overflow: hidden !important;
    color: #fff;
    height: auto;
}

.sub_title {
    font-size: 20px;
    font-weight: 600;
}

.sub_titleline {
    width: 50px;
    height: 1px;
    display: block;
    background-color: #fff;
    margin-right: 10px;
}

.main_title {
    font-size: 80px;
    line-height: 80px;
    font-weight: 700;
}

.main_title span {
    color: #ffa83f;
}

.sub_comment {
    font-size: 24px;
    line-height: 26px;
    margin-top: 50px;
    font-weight: 600;
}

/* 슬라이드 바 */
.slide_bar {
    position: absolute;
    bottom: 10px;
    left: 50%;
    width: 85%;
    height: 10px;
    transform: translate(-50%, -50%);
    z-index: 2;
}

.bar_box {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    height: 100%;
    position: relative;
}

.bar_box::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffa83f;
    border-radius: 10px;
    opacity: 0.2;
}

.item {
    position: relative;
    top: 0;
    left: 0;
    width: 33.33%;
    height: 100%;
}

.bar_text {
    color: #fff;
    font-weight: 600;
    font-size: 15px;
    opacity: 0.3;
    transition: 0.2s;
    text-align: right;
    margin-top: -30px;
}

.item .bar {
    width: 0%;
    border-radius: 50px;
    background-color: #ffa83f;
}

.item.on .bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: all 5s;
}

.item.on .bar_text {
    opacity: 1;
}

/* ********** 컨텐츠 시작 ********** */
/* 공통 */
.title_comment {
    margin-left: 30px;
    color: #495059;
}

.btn_more {
    font-weight: 500;
    display: flex;
    align-items: center;
}

.btn_more a::after {
    font-family: "bootstrap-icons" !important;
    content: "\F285";
    margin-left: 5px;
}

.btn_more a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 140px;
    height: 48px;
    color: #495059;
    border: 1px solid #d7dce5;
    background-color: #fff;
    border-radius: 5px;
    font-size: 16px;
}

.btn_more a:hover {
    transition: all 0.3s;
    border-color: #ffa83f;
    color: #ffa83f;
}

.btn_more2 {
    height: 48px;
    justify-content: center;
    width: 140px;
    color: #fff;
    border: 1px solid #fff;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    font-size: 16px;
}

.btn_more2:hover {
    color: #ffa83f;
    transition: all 0.3s;
    background-color: #fff;
    border-color: #fff;
}

/* ********** 빠른메뉴 ********** */
.quick {
    background-color: #f5f7f8;
    padding: 50px 0;
}

.quick .content {
    padding: 0;
}

.quick_con {
    display: flex;
    justify-content: space-between;
    animation: ani_3 0.5s 0.3s;
}

.quick_right {
    width: calc(100% - 240px);
    display: flex;
}

.con_quick_box {
    width: 100%;
    height: 80px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    background-color: #fff;
    justify-content: center;
    cursor: pointer;
    color: #212529;
    animation: y_top 0.5s 0.3s;
}

.con_quick_box:not(:last-child) {
    margin-right: 20px;
}

.con_quick_box img {
    width: 60px;
    margin-right: 20px;
}

/* ********** 교정서비스+교정안내 ********** */
.service {
    animation: y_top 0.5s 0.3s;
}

.service_intro,
.service_con,
.info_intro {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    animation: y_top 0.5s 0.3s;
}

.servive_title,
.info_title {
    display: flex;
    align-items: center;
    animation: y_top 0.5s 0.3s;
}

.service_leftcon,
.service_rightcon {
    width: calc(50% - 10px);
}

.service_link_box {
    display: flex;
}

.service_link {
    width: 100%;
    padding: 15px 0;
    text-align: center;
    margin: auto;
    display: block;
    border-radius: 10px;
    font-size: 16px;
    color: #495059;
    font-weight: 600;
}

.service_link.active {
    color: #fff;
    transition: all 0.3s;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.15);
    background: rgb(255, 168, 63);
    background: -moz-linear-gradient(120deg, rgba(255, 168, 63, 1) 0%, rgba(255, 128, 56, 1) 100%);
    background: -webkit-linear-gradient(120deg, rgba(255, 168, 63, 1) 0%, rgba(255, 128, 56, 1) 100%);
    background: linear-gradient(120deg, rgba(255, 168, 63, 1) 0%, rgba(255, 128, 56, 1) 100%);
}

.service_link.active .tab_over {
    opacity: 1;
}

.service_link.active .tab_basic,
.service_tab_img .tab_over {
    opacity: 0;
}

.service_tab_con {
    animation: x_left 0.5s 0.3s;
    animation-fill-mode: both;
    flex-wrap: wrap;
}

.service_rightcon_bg {
    position: relative;
    background-size: cover;
    animation: x_right 0.5s 0.3s;
    animation-fill-mode: both;
}

.service_tab_img {
    position: relative;
    display: block;
    width: 40px;
    height: 40px;
    margin: auto;
    margin-bottom: 5px;
}

.service_tab_img img {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.service_tab_con {
    width: 100%;
    height: 450px;
    border-radius: 10px;
    padding: 50px 0;
}

.service_tab_con1 .cert_btn {
    margin-right: 1rem;
}

.service_tab_con1 .btn_more a {
    width: fit-content;
    padding: 0 3rem;
}

.service_tab_con1 .tab_hd {
    display: flex;
    align-items: center;
}

.service_tab_con1 .tab_hd img {
    height: 7rem;
    margin-left: 5rem;
}

.service_rightcon_bg1 {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.right_title {
    display: flex;
    margin-bottom: 2rem;
}

.right_title img {
    margin-right: 1rem;
    height: 32px;
}

.right_txt {
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 1rem;
}

.right_txt li {
    display: flex;
    margin-top: 1rem;
}

.right_txt .txt_hd {
    margin-right: 3rem;
}
.service_rightcon_bg1 {
    background-image: url(../img/index/service_tab1.png);
    background-position: center;
}

.service_rightcon_bg2 {
    background-image: url(../img/index/service_tab2.jpg);
    background-position: center;
}

.service_rightcon_bg3 {
    background-image: url(../img/index/service_tab3.jpg);
    background-position: center;
}

/* 패턴 */
.service .pt_1 {
    position: absolute;
    z-index: -1;
    top: 50px;
    left: 0%;
    width: 300px;
}

.service .pt_2 {
    position: absolute;
    z-index: -1;
    top: 50%;
    left: 30%;
}

.service .pt_3 {
    position: absolute;
    z-index: -1;
    top: 30px;
    right: 0%;
}

/* ********** 회사소개  ********** */
.company_leftcon {
    width: 50%;
    border-radius: 10px;
    background-image: url(../img/index/company.jpg);
}

.company_leftcon,
.company_rightcon {
    width: calc(50% - 10px);
}

.company_con,
.company_intro {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.company::before {
    width: 100%;
    height: 300px;
    content: "";
    background-color: #ffa83f;
    z-index: -1;
    position: absolute;
    left: 0;
}

.company_link_box {
    display: flex;
}

.company_link {
    width: 100%;
    border-radius: 10px;
    background-color: #fff;
    padding: 50px 0;
    margin: 10px;
    text-align: center;
    border: 1px solid #d7dce5;
    cursor: pointer;
    position: relative;
    color: #212529;
}

.company_link img {
    margin: auto;
}

.company_link:hover::after {
    visibility: visible;
    opacity: 1;
    box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.1);
}

.company_link::after {
    content: "";
    display: block;
    position: absolute;
    top: -1px;
    bottom: -1px;
    right: -1px;
    left: -1px;
    border: 5px solid #ffa83f;
    border-radius: 10px;
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s;
}

/* 패턴 */
.company .pt_1 {
    position: absolute;
    bottom: 0%;
    right: 0%;
    z-index: -1;
}

/* ********** 교정안내  ********** */
.info_con {
    display: flex;
    justify-content: space-between;
}

.info_link {
    position: relative;
    width: 25%;
    height: 450px;
    margin: 0 5px;
    border-radius: 10px;
    cursor: pointer;
    background-size: cover;
    background-position: center;
    display: flex;
    flex-wrap: wrap;
}

.info_link::after {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    content: "";
    background-color: #212529;
    width: 100%;
    height: 100%;
    opacity: 0.7;
    border-radius: 10px;
}

.info_over {
    position: absolute;
    z-index: 2;
    bottom: 50px;
    left: 50%;
    color: #fff;
    width: 90%;
    transform: translateX(-50%);
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    display: none;
}

.info_basic {
    position: absolute;
    z-index: 2;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    width: 90%;
    text-align: center;
}

.info_link:nth-child(1) {
    background-image: url(../img/index/calibration.jpg);
}

.info_link:nth-child(2) {
    background-image: url(../img/index/period.jpg);
}

.info_link:nth-child(3) {
    background-image: url(../img/index/recognition.jpg);
}

.info_link:nth-child(4) {
    background-image: url(../img/index/fee.jpg);
}

.info_link.active .info_basic {
    display: none;
}

.info_link.active::after {
    opacity: 0.2;
}

.info_link.active .info_over {
    display: flex;
}

.info_link.active {
    width: 100%;
    transition: all 0.5s;
}

.info .pt_1 {
    position: absolute;
    bottom: 50px;
    z-index: -1;
    left: 00%;
}

/* ********** 공지사항 오시는길  ********** */
.etc {
    height: 300px;
    display: flex;
    flex-wrap: wrap;
}

.notice {
    width: 50%;
    background-image: url(../img/index/notice.jpg);
    background-position: center;
    position: relative;
}

.locations {
    width: 50%;
    background-image: url(../img/index/locations.jpg);
    position: relative;
}

.etc_text {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.etc_text h1 {
    margin-bottom: 10px;
}

.etc_text button {
    margin: auto;
    display: flex;
    align-items: center;
}

/* ********** 관계사 ********** */
.related {
    padding: 30px 0;
}

.related_con {
    display: flex;
    justify-content: space-between;
}

.related img {
    width: auto;
    height: 30px;
}

@media screen and (max-width: 1200px) {
    /* 공통 */
    .btn_more,
    .btn_more a {
        width: 100%;
        margin-top: 20px;
    }

    /* 빠른메뉴 */
    .quick_con {
        flex-direction: column;
        flex-wrap: wrap;
    }

    .quick_right {
        width: 100%;
        margin-top: 20px;
    }

    /* 교정서비스 */
    .service_leftcon,
    .service_rightcon {
        width: 100%;
    }

    .service_link_box {
        position: relative;
    }

    .service_tab_con1 .btn_more a {
        width: 100%;
    }

    .service_rightcon_bg {
        height: 300px !important;
    }

    .service .service_tab_con {
        height: auto;
        display: flex;
        justify-content: space-between;
        padding: 30px 0;
    }

    .service_con .btn_more {
        margin-top: 0;
    }

    .service_con {
        flex-direction: column-reverse;
    }

    .service_rightcon {
        margin-bottom: 20px;
    }

    .service_rightcon_bg1 {
        padding: 0 !important;
        justify-content: center !important;
    }

    /* 회사소개 */
    .company_leftcon {
        display: none;
    }

    .company_rightcon {
        width: 100%;
    }

    .company::before {
        background-image: url(../img/index/company.jpg);
        background-position: center;
        filter: brightness(80%);
        height: 500px;
    }
}

@media screen and (max-width: 980px) {
    /* 메인 */
    .main_title {
        font-size: 70px;
        line-height: 60px;
    }

    /* 빠른메뉴 */
    .quick_right {
        flex-wrap: wrap;
    }

    .con_quick_box {
        width: calc(50% - 10px);
        margin-bottom: 10px;
    }

    .con_quick_box:not(:last-of-type) {
        margin-right: 0;
    }

    .con_quick_box:nth-child(odd) {
        margin-right: 10px;
    }

    /*  교정안내 */
    .info_con {
        flex-wrap: wrap;
    }

    .info_link {
        width: 100%;
        height: 100px;
        margin-bottom: 10px;
    }

    .info_link.active {
        height: 400px;
    }

    .info_basic {
        top: 50%;
        transform: translateX(-50%);
        text-align: left;
    }

    /* 공지+오시는길 */
    .etc {
        height: auto;
    }

    .notice,
    .locations {
        width: 100%;
        height: 300px;
    }
}

@media screen and (max-width: 860px) {
    br {
        display: none;
    }

    /* 교정 서비스 */
    .servive_title,
    .info_title {
        flex-direction: column;
        align-items: flex-start;
    }

    .title_comment {
        margin-left: 0;
    }

    /* 관계사 */
    .related img {
        height: 25px;
    }
}

@media screen and (max-width: 650px) {
    /* 메인 */
    .main_title {
        font-size: 60px;
        line-height: 50px;
    }

    /* 기본설정 */
    .btn_more2,
    .btn_more a {
        height: 44px;
    }

    /* 교정 서비스 */
    .service_rightcon_bg {
        height: 200px !important;
    }

    .right_con p {
        font-size: 1.8rem;
        line-height: 3rem;
    }

    .right_title {
        margin-bottom: 1rem;
    }

    .right_txt li {
        margin: 0;
    }

    .service_tab_con1 .tab_hd img {
        height: 5rem;
        margin-left: 2rem;
    }
    .etc_title,
    .service_tab_title {
        font-size: 24px;
        margin-bottom: 10px;
    }

    /* 회사소개 */
    .company_link_box,
    .company_con .flex_sb {
        flex-wrap: wrap;
    }

    .company_link_box {
        padding-top: 40px;
    }

    .company_link {
        width: 100%;
        padding: 20px;
    }

    .company_link div {
        margin-top: 20px;
    }

    /* 교정업무 */
    .info_link.active .info_over {
        flex-wrap: wrap;
    }

    /* 관계사 */
    .related img {
        height: 20px;
    }
}

@media screen and (max-width: 520px) {
    /* 메인 */
    .main_visual br {
        display: flex;
    }

    .main_title {
        font-size: 40px;
        line-height: 40px;
    }

    .sub_comment {
        font-size: 20px;
        line-height: 24px;
        margin-top: 0px;
    }

    /* 빠른메뉴 */
    .con_quick_box img {
        width: 40px;
    }

    /* 관계사 */
    .related_con {
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .related img {
        width: auto;
        height: 25px;
    }

    .related img:not(:first-child) {
        margin-top: 20px;
    }
}

@media screen and (max-width: 420px) {
    /* 빠른메뉴 */
    .con_quick_box {
        width: 100%;
    }

    .con_quick_box:nth-child(odd) {
        margin-right: 0px;
    }

    /* 교정업무 */
    .service_con .btn_more{
        flex-wrap: wrap;
    }

    .service_link_box {
        flex-wrap: wrap;
    }

    .service_tab_con1 .cert_btn{margin-right: 0;}

    .service_tab_con1 .tab_hd {
        flex-direction: column;
        align-items: flex-start;
    }

    .service_tab_con1 .tab_hd img {
        margin-left: 0;
    }
    .service_link {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .service_tab_img {
        margin: 0;
        margin-right: 10px;
    }
}
