@charset "utf-8";

/*
 * File       : style.css
 * Author     : YONG
 *
 * 최종수정일 : 24/00/00
 *
 * SUMMARY:
 * 통합.CSS
 */

/* 
■■■■■■■■■■■■■■■■■■■■■
■■■■■■■■ 공용 ■■■■■■■■
■■■■■■■■■■■■■■■■■■■■■
*/

.main {
    width: 100%;
    height: auto;
}

/*  */
.section {
    width: 100%;
    height: 100vh;
    max-height: 960px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.section>.inner {
    width: 100%;
    height: auto;
}

.section1 {
    background-color: #1790f9;
}

.section1>.inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section1 .txt {
    line-height: normal;
}

.section1 .txt>h3 {
    font-size: 4rem;
    color: #fff;
    margin-bottom: 1rem;
}

.section1 .txt>p {
    font-size: 1.2rem;
    color: #d6ecff;
}

.section1 .img img {
    width: 500px;
    height: auto;
    object-fit: contain;
}

/*  */
.section2 {
    background-color: #fff;
}

.section2>.inner {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4rem;
}

.section2 .txt h3 {
    font-size: 3rem;
    font-weight: 800;
    color: #000;
    text-align: center;
}

.section2 .txt h3>span {
    position: relative;
    transition: all 0.3s ease;
}

.section2 .txt h3>span.active {
    color: #fff;
}

.section2 .txt h3>span::after {
    content: '';
    width: 0;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background-color: #000;
    transition: width 0.6s ease;
    z-index: -1;
}

.section2 .txt h3>span.active::after {
    width: 100%;
}

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

.section2 .swiper-slide {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    background-color: #fff;
    padding: 3rem 0;
}

.swiper-pagination-bullet-active {
    background: #222;
}

.swiper-slide .balloon {
    width: 450px;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    background: #1790f9;
    border-radius: 10px;
    padding: 2rem;
}

.swiper-slide .balloon::after {
    border-top: 10px solid #1790f9;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 0px solid transparent;
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.section2 .swiper-slide.active .balloon {
    margin-bottom: 0;
}

.section2 .balloon p {
    font-size: 1.4rem;
    font-weight: 600;
    color: #fff;
}

.section2 .img img {
    width: 200px;
    height: auto;
    object-fit: contain;
}

.section2 .img.last img {
    width: 500px;
}

/*  */
.section3 {
    background-color: #d9edff;
}

.section3>.inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section3 .txt {
    line-height: normal;
}

.section3 .txt>h3 {
    font-size: 1.4rem;
    color: #1790f9;
    margin-left: 5px;
    margin-bottom: 1rem;
}

.section3 .txt>p {
    font-size: 3rem;
    font-weight: 800;
}

.section3 .img img {
    width: 500px;
    height: auto;
    object-fit: contain;
}

/*  */
.section4 {
    background-color: #fff;
    border-bottom: 1px solid #1790f9;
}

.section4>.inner {
    display: flex;
    align-items: center;
    gap: 8rem;
}

.section4 .txt {
    line-height: normal;
}

.section4 .txt>h3 {
    font-size: 1.4rem;
    color: #1790f9;
    margin-left: 5px;
    margin-bottom: 1rem;
}

.section4 .txt>p {
    font-size: 3rem;
    font-weight: 800;
}

.section4 .img img {
    width: 400px;
    height: auto;
    object-fit: contain;
}

/*  */
.marquee {
    width: 100%;
    height: auto;
    overflow: hidden;
    padding: 100px 0;
}

.marquee__box {
    display: flex;
    gap: 1.5rem;
    animation: marquee 30s linear infinite;
}

@keyframes marquee {
    from {
        transform: translateX(0);

    }

    to {
        transform: translateX(-6100px);
    }
}


/*  */
.main__popup {
    width: 100%;
    height: 200px;
    display: flex;
    justify-content: center;
    position: fixed;
    left: 0;
    bottom: -250px;
    background-color: #222;
    transition: all 0.8s ease;
    z-index: 999;
}

.main__popup.active {
    bottom: 0;
}

.main__popup>.inner {
    width: 100%;
    height: auto;
    display: flex;
    align-items: center;
    gap: 4rem;
}

.main__popup .img {
    width: 250px;
    height: auto;
    min-height: 100px;
    position: relative;
}

.main__popup .img img {
    width: 100%;
    height: auto;
    object-fit: contain;
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
}

.main__popup .txt {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.main__popup .txt h3 {
    width: fit-content;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    background-color: #ff3656;
    border-radius: 2rem;
    padding: 8px 1rem;
}

.main__popup .txt h4 {
    font-size: 1.8rem;
    color: #fff;
}

.main__popup .txt a {
    font-size: 1.1rem;
    font-weight: 500;
    color: #656a71;
    display: flex;
    align-items: center;
    gap: 5px;
}

.main__popup .txt a > img {
    width: 20px;
    height: auto;
    object-fit: contain;
    filter: invert(1);
}

.main__popup .x__mark {
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 10px;
    right: 10px;
}

.main__popup .x__mark>img {
    width: 20px;
    height: auto;
    object-fit: contain;
    filter: invert(1);
    cursor: pointer;
}

@media screen and (min-width: 768px) and (max-width: 1200px) {

    /* 
    ■■■■■■■■■■■■■■■■■■■■■
    ■■■■■■■■ 태블릿 ■■■■■■■■
    ■■■■■■■■■■■■■■■■■■■■■
    */

    .main {
        overflow: hidden;
    }

    .section {
        height: auto;
    }

    .section1 {
        padding: 8rem 6rem 6rem;
    }

    .section1>.inner {
        flex-direction: column;
        gap: 4rem;
    }

    .section1 .txt {
        width: 100%;
    }

    .section1 .txt>h3 {
        font-size: 3rem;
    }

    .section1 .img img {
        width: 45vw;
    }

    /*  */
    .section2>.inner {
        gap: 2rem;
        padding: 4rem 0;
    }

    .section2 .txt h3 {
        font-size: 2rem;
    }

    .section2 .balloon p {
        font-size: 1.2rem;
    }

    .section2 .img img {
        width: 20vw;
    }

    .section2 .img.last img {
        width: 55vw;
    }

    .section2 .swiper-slide {
        padding: 0;
    }

    .swiper-container-horizontal>.swiper-pagination-bullets,
    .swiper-pagination-custom,
    .swiper-pagination-fraction {
        bottom: -30px;
    }

    /*  */
    .section3>.inner {
        justify-content: center;
        gap: 4rem;
        padding: 4rem 2rem;
    }

    .section3 .txt>p {
        font-size: 2rem;
    }

    .section3 .img img {
        width: 40vw;
    }

    /*  */
    .section4>.inner {
        justify-content: center;
        gap: 4rem;
        padding: 4rem 2rem;
    }

    .section4 .txt>p {
        font-size: 2rem;
    }

    .section4 .img img {
        width: 30vw;
    }

    /*  */
    .marquee {
        padding: 50px 0;
    }

    .marquee .marquee__box img {
        height: 50px;
    }

    @keyframes marquee {
        from {
            transform: translateX(0);

        }

        to {
            transform: translateX(-3800px);
        }
    }

    /*  */
    .main__popup .img {
        left: 1rem;
    }

    .main__popup .txt {
        gap: 10px;
    }

    .main__popup .txt h4 {
        font-size: 1.4rem;
    }
}


@media screen and (max-width: 767px) {

    /* 
    ■■■■■■■■■■■■■■■■■■■■■
    ■■■■■■■■ 모바일 ■■■■■■■■
    ■■■■■■■■■■■■■■■■■■■■■
    */

    .main {
        overflow: hidden;
    }

    .section1>.inner {
        flex-direction: column;
        justify-content: center;
        gap: 4rem;
    }

    .section1 .txt>h3 {
        font-size: 2rem;
    }

    .section1 .txt>p {
        font-size: 1rem;
    }

    .section1 .img img {
        width: 65vw;
        max-width: 340px;
    }

    /*  */
    .section2 {
        height: auto;
        padding: 4rem 1rem;
    }

    .section2>.inner {
        gap: 2rem;
    }

    .section2 .txt h3 {
        font-size: 1.4rem;
    }

    .section2 .swiper-slide {
        padding: 0;
    }

    .swiper-slide .balloon {
        width: 90%;
        padding: 2rem 1rem;
    }

    .section2 .balloon p {
        font-size: 1rem;
    }

    .section2 .img img {
        width: 30vw;
    }

    .section2 .img.last img {
        width: 80vw;
    }

    .swiper-container-horizontal>.swiper-pagination-bullets,
    .swiper-pagination-custom, .swiper-pagination-fraction {
        bottom: -30px;
    }

    /*  */
    .section3 {
        height: auto;
        padding: 4rem 1rem;
    }

    .section3>.inner {
        flex-direction: column;
        gap: 2rem;
    }

    .section3 .txt>h3 {
        font-size: 1rem;
        margin-left: 0;
        margin-bottom: 10px;
    }

    .section3 .txt>p {
        font-size: 1.4rem;
    }

    .section3 .img img {
        width: 65vw;
    }

    /*  */
    .section4 {
        height: auto;
        padding: 4rem 1rem;
    }

    .section4>.inner {
        flex-direction: column-reverse;
        gap: 2rem;
    }

    .section4 .txt>h3 {
        font-size: 1rem;
        margin-left: 0;
        margin-bottom: 10px;
    }

    .section4 .txt>p {
        font-size: 1.4rem;
    }

    .section4 .img img {
        width: 55vw;
    }

    /*  */
    .marquee {
        padding: 2rem 0;
    }

    .marquee__box {
        gap: 1rem;
        animation: marquee 15s linear infinite;
    }

    @keyframes marquee {
        from {
            transform: translateX(0);
    
        }
    
        to {
            transform: translateX(-2000px);
        }
    }


    /*  */
    .main__popup {
        height: auto;
    }
    
    .main__popup .img {
        display: none;
    }

    .main__popup .txt {
        width: 100%;
        height: 100%;
        justify-content: center;
        gap: 5px;
        padding: 46px 2rem;
    }

    .main__popup .txt h3 {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }

    .main__popup .txt h4 {
        font-size: 1.2rem;
    }

    .main__popup .txt a {
        font-size: 1rem;
    }

}