@charset "utf-8";

/*
 * main.css
 * 메인영역 삽입 추가하시면됩니다. 아래 커스텀진행하세요.
 *
 * 1) main visual
 * 
 */

/* 1) main visual */
[data-hero] {
    position: relative;
    width: 100%;
    height: 100vh;

    .videoWrap {
        width: 100%;
        height: 100%;

        video {
            display: block;
            width: 100%;
            height: 100%;
            object-fit: cover;
            object-position: bottom;
        }
    }

    .notice {
        position: absolute;
        left: 0;
        bottom: 0;
        width: 100%;
        height: clamp(50rem, 6.86vw, 80rem);
        border-top: 1px solid rgba(255, 255, 255, .12);
        z-index: 1;

        .noticeInr {
            display: flex;
            align-items: center;
            gap: 35rem;
            position: relative;
            margin: auto;
            max-width: 1700rem;
            width: 94%;
            height: 100%;
        }

        h3 {
            font-family: var(--font-eng);
            font-size: var(--fs20);
            font-weight: bold;
            line-height: 1;
            color: var(--color-secondary2);
        }

        .noticeSwiper {
            margin: 0;
            padding-left: 35rem;
            height: 24rem;
            width: 580rem;
            border-left: 2px solid #fff;

            a {
                display: flex;
                justify-content: space-between;
                align-items: center;
                gap: 45rem;
                height: 100%;
            }

            em {
                display: block;
                width: 360rem;
                font-size: var(--fs20);
                font-weight: 500;
                line-height: 1;
                color: #fff;
                overflow: hidden;
                text-overflow: ellipsis;
                white-space: nowrap;
            }

            span {
                display: flex;
                align-items: center;
                gap: 16rem;
                font-weight: 600;
                font-size: var(--fs18);
                color: #fff;
            }

            span img {
                display: block;
                width: 15rem;
            }
        }
    }

    @media(max-width:480px) {
        .notice {
            .noticeInr {
                gap: 20rem;
            }

            .noticeSwiper {
                padding-left: 20rem;
                height: 20rem;
                width: 80%;

                a {
                    gap: 20rem;
                }

                em {
                    width: 85%;
                }

                span {
                    gap: 0;
                    font-size: 0;
                }
            }
        }
    }
}


/* main common */
main * {
    box-sizing: border-box;
    word-break: keep-all;
}

section {
    position: relative;
    padding: clamp(80rem, 11.76vw, 180rem) 0 clamp(60rem, 9.8vw, 120rem);
}

.mainTit {
    i {
        display: block;
        margin-bottom: clamp(15rem, 1.96vw, 30rem);
        font-family: var(--font-eng);
        font-weight: Bold;
        font-size: var(--fs20);
        color: var(--color-primary);
    }

    h2 {
        font-size: var(--fs64);
        color: #222;
    }

    @media(max-width:1024px) {
        h2 {
            font-size: var(--fs55);
        }
    }
}


/* our materials */
[data-main="materials"] {
    &:before {
        content: '';
        display: block;
        position: absolute;
        left: 0;
        bottom: 0;
        width: 100%;
        height: calc(100% - clamp(160rem, 22.54vw, 320rem));
        border-top-left-radius: clamp(40rem, 7.84vw, 100rem);
        background: url('/assets/images/main/materials_bg.jpg')no-repeat center/cover;
        z-index: -1;
    }

    .titWrap {
        position: relative;

        &:before {
            content: '';
            display: block;
            position: absolute;
            right: 0;
            top: 0;
            max-width: calc((100% - 1700rem) / 2 + 1700rem);
            width: 97%;
            height: 335rem;
            border-bottom-left-radius: clamp(20rem, 5.88vw, 80rem);
            background: #fff;
        }

        .mainTit {
            position: absolute;
            left: 0;
            top: clamp(10rem, 2.94vw, 50rem);
        }
    }

    .materialsSwiper {
        margin-left: auto;
        margin-right: 30rem;
        width: 52%;

        a {
            display: block;
            position: relative;
            width: 100%;
            aspect-ratio: 7/10;
            border-radius: 12rem;
            overflow: hidden;

            &:after {
                content: '';
                display: block;
                position: absolute;
                left: 0;
                top: 0;
                width: 100%;
                height: 100%;
                border-radius: 12rem;
                border: 3rem solid rgba(255, 255, 255, .24);
            }

            .bg {
                display: block;
                position: relative;
                width: 100%;
                height: 100%;
            }

            .bg img {
                display: block;
                position: absolute;
                left: 0;
                top: 0;
                width: 100%;
                height: 100%;
                object-fit: cover;
            }

            .txt {
                display: flex;
                flex-direction: column;
                justify-content: flex-end;
                position: absolute;
                left: 0;
                bottom: 0;
                padding: clamp(30rem, 3.92vw, 50rem) clamp(20rem, 2.94vw, 40rem);
                width: 100%;
                height: 100%;
            }

            .txt * {
                position: relative;
                z-index: 1;
            }

            .txt:before {
                content: '';
                display: block;
                position: absolute;
                left: 0;
                top: 0;
                width: 100%;
                height: 100%;
                background: linear-gradient(to bottom, transparent, #051A36);
                opacity: .7;
                transition: .3s ease;
            }

            .txt:after {
                content: '';
                display: block;
                position: absolute;
                left: 0;
                top: 0;
                width: 100%;
                height: 100%;
                background: linear-gradient(to bottom, #62BC46, #007DC5);
                opacity: 0;
                transition: .3s ease;
            }

            .txt i {
                display: block;
                font-family: var(--font-eng);
                font-weight: bold;
                font-size: var(--fs18);
                color: var(--color-secondary2);
                line-height: 1.3;
                transition: .3s ease;
            }

            .txt em {
                display: block;
                margin: 25rem 0 20rem;
                font-weight: 800;
                font-size: var(--fs32);
                line-height: 1.3;
                color: #fff;
            }

            .txt p {
                font-size: var(--fs20);
                line-height: 1.4;
                color: #fff;
            }

            @media(hover:hover) {
                &:hover .txt:after {
                    opacity: .5;
                }

                &:hover .txt i {
                    color: #fff;
                }
            }
        }

        .ctrl {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-top: clamp(30rem, 3.92vw, 55rem);
            width: 81.83%;

            .swiper-scrollbar {
                position: relative;
                left: auto;
                bottom: auto;
                top: auto;
                width: 80.29%;
                height: 8rem;
                border-radius: 4rem;
                background: rgba(255, 255, 255, .5);
            }

            .swiper-scrollbar-drag {
                background: #fff;
            }

            .navi {
                display: flex;
                gap: clamp(20rem, 2.45vw, 30rem);
            }

            .navi div {
                cursor: pointer;
            }

            .navi img {
                display: block;
                width: 27rem;
            }

            .navi .next img {
                transform: rotate(180deg);
            }
        }
    }

    @media(max-width:1024px) {
        .titWrap {
            &:before {
                height: 250rem;
            }
        }

        .materialsSwiper {
            .ctrl {
                width: 90%;

                .swiper-scrollbar {
                    width: 80%;
                }

                .navi img {
                    width: 24rem;
                }
            }
        }
    }

    @media(max-width:768px) {
        &:before {
            height: 45%;
        }

        .titWrap {
            margin-bottom: clamp(40rem, 6.86vw, 100rem);

            .mainTit {
                position: relative;
                top: auto;
            }
        }

        .materialsSwiper {
            margin-right: 4%;
            width: 85%;
        }
    }

    @media(max-width:480px) {
        .materialsSwiper {
            .ctrl {
                .swiper-scrollbar {
                    width: 68%;
                }

                .navi img {
                    width: 22rem;
                }
            }
        }
    }
}


/* R&D */
[data-main="r-d"] {
    background: url('/assets/images/main/r-d_bg.jpg')no-repeat center/cover;

    .mainTit {
        margin-bottom: clamp(40rem, 6.86vw, 100rem);
        text-align: center;
    }

    ul {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20rem;

        li {
            padding: 3rem;
            overflow: hidden;
            border: 2rem solid;
            border-radius: 12rem;

            &.item1 {
                border-color: var(--color-secondary);

                .txt i {
                    color: var(--color-secondary2);
                }
            }

            &.item2 {
                border-color: var(--color-primary);

                .txt i {
                    color: var(--color-primary2);
                }
            }
        }

        a {
            position: relative;
            display: block;
            width: 100%;
            aspect-ratio: 147/101;
            overflow: hidden;
            border-radius: 9rem;
        }

        a:before {
            content: '';
            position: absolute;
            inset: 0;
            background: #051A36;
            opacity: .5;
            transition: .3s ease;
            z-index: 1;
        }

        a:after {
            content: '';
            position: absolute;
            inset: 0;
            background: linear-gradient(to left, #62BC46, #007DC5);
            opacity: 0;
            transition: .3s ease;
            z-index: 2;
        }

        .bg {
            display: block;
            position: relative;
            width: 100%;
            height: 100%;
        }

        .bg img {
            display: block;
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .txt {
            position: absolute;
            left: 50%;
            top: 50%;
            transform: translate(-50%, -50%);
            text-align: center;
            z-index: 3;
        }

        .txt i {
            display: block;
            margin-bottom: 20rem;
            font-family: var(--font-eng);
            font-size: var(--fs24);
            font-weight: bold;
            line-height: 1;
            transition: .3s ease;
        }

        .txt em {
            display: block;
            font-size: var(--fs48);
            font-weight: 800;
            line-height: 1;
            color: #fff;
        }

        @media(hover:hover) {
            li:hover a:after {
                opacity: .5;
            }

            li:hover .txt i {
                color: #fff !important;
            }
        }
    }

    @media(max-width:480px) {
        ul {
            grid-template-columns: 1fr;
        }
    }
}


/* about */
[data-main="about"] {
    .inr-narrow {
        display: flex;
        align-items: center;
        gap: clamp(20rem, 7.84vw, 140rem);
    }

    .img {
        position: relative;
        border-radius: 16rem;
        overflow: hidden;

        .kno-img {
            display: block;
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .symbol {
            display: block;
            position: absolute;
            right: 20rem;
            bottom: 20rem;
            width: clamp(40rem, 5.88vw, 70rem);
        }
    }

    .txt {
        flex: 0 0 auto;
        width: 540rem;

        .mainTit {
            margin-bottom: clamp(30rem, 3.92vw, 50rem);
        }

        h3 {
            margin-bottom: 15rem;
            font-size: var(--fs24);
            font-weight: bold;
            color: #222;
            line-height: 1;
        }

        p {
            font-size: var(--fs20);
            color: #555;
            line-height: 1.8;
        }
    }

    @media(max-width:1024px) {
        .inr-narrow {
            align-items: normal;
        }

        .txt {
            width: 460rem;
        }
    }

    @media(max-width:768px) {
        .txt {
            width: 50%;

            p>br {
                display: none;
            }
        }
    }

    @media(max-width:480px) {
        .inr-narrow {
            flex-direction: column-reverse;
        }

        .txt {
            width: 100%;
        }
    }
}