﻿

.masterpage {
    width: 100%;
    min-height: 100%;
}

.sec-wrap,
.sec-header,
.sec-content,
.sec-footer {
    position: relative;
    width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


.m_allmenu {
    display: none;
}
/* 전체 메뉴 */
.allmenu {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    z-index: 1000;
    background-color: rgba(0, 0, 0, 0.6);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.blur {
    filter: blur(5px);
}

.allmenu.active {
    opacity: 1;
    pointer-events: auto;
}

.allmenu-wrap {
    display: flex;
    justify-content: center;
    position: relative;
    width: 100%;
    height: 100%;
    overflow-y: auto; /* 내용이 넘치면 세로 스크롤 생성 */
    padding: 100px 20px 40px; /* 상단 close_icon 공간 확보 */
    box-sizing: border-box;
    background-color: rgba(0, 0, 0, 0.7);
}

.allmenu.closing {
    opacity: 0;
    pointer-events: none;
}

/* 이미지 사이즈는 조정 가능 */
.close_icon {
    position: relative;
    top: -80px;
    left: 1065px;
    width: 40px;
    height: 40px;
    cursor: pointer;
    z-index: 10000;
}



.mainmenu {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
    font-weight: 500;
    font-size: 1.13rem;
    color: #fff;
}

.allmenu-wrap > ul {
    display: flex;
    flex-wrap: nowrap; /* 줄바꿈 방지 */
    gap: 20px;
    width: max-content; /* 자식 너비만큼 확장 */
}

    .allmenu-wrap > ul > li {
        width: 200px;
        display: flex;
        flex-direction: column;
        align-items: center;
        flex-shrink: 0; /* 축소 방지 */
    }

        .allmenu-wrap > ul > li > ul {
            text-align: center;
            padding: 13px 0;
            width: 100%;
        }


            .allmenu-wrap > ul > li > ul li,
            .submenu1 {
                line-height: 280%;
            }

                .allmenu-wrap > ul > li > ul li:last-child {
                    margin-bottom: 40px;
                }



.allmenu-wrap a {
    width: 100%;
    display: block;
    font-weight: 300;
}

    .allmenu-wrap a:hover {
        color: #F15A40;
        font-weight: 500;
    }







.submenu1 {
    margin-bottom: 10px;
    color: #F15A40;
}

.submenu,
.allmenu-wrap a {
    color: #fff;
}
/* top/문의하기 btn */

.fixmenu {
    position: fixed;
    bottom: 50px;
    right: 50px;
    z-index: 999;
}

    .fixmenu > div {
        transition: all 0.3s ease-in-out;
        will-change: bottom;
    }

.topbtn img {
    width: 60px;
}

.topbtn {
    position: fixed;
    bottom: 190px;
    right: 50px;
    z-index: 1000;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}

    .topbtn:hover {
        transform: translateY(-15px) scale(1.1);
    }

.messagebtn {
    width: 60px;
    height: 60px;
    background-color: #F15A40;
    border-radius: 50px;
    font-weight: 500;
    cursor: pointer;
    position: fixed;
    bottom: 120px;
    right: 50px;
    overflow: hidden;
    transition: width 0.3s ease-in-out;
    z-index: 1000;
}

    .messagebtn img {
        width: 32px;
        position: absolute;
        right: 13px;
        top: 30px;
        transform: translateY(-50%);
        z-index: 999;
    }

    .messagebtn a {
        display: flex;
        align-items: center;
        height: 100%;
    }

        .messagebtn a span {
            opacity: 0;
            margin-left: 25px;
            line-height: 60px;
            font-size: 1.13rem;
            white-space: nowrap;
            transition: opacity 0.3s ease;
            color: #fff;
        }

    .messagebtn:hover {
        width: 150px;
    }

        .messagebtn:hover span {
            opacity: 1;
        }


.telbtn {
    width: 60px;
    height: 60px;
    background-color: #F15A40;
    border-radius: 50px;
    cursor: pointer;
    position: fixed;
    bottom: 50px;
    right: 50px;
    z-index: 1000;
}

    .telbtn img {
        width: 34px;
        position: absolute;
        top: 50%;
        left: 13px;
        transform: translateY(-50%);
        transition: all 0.3s ease-in-out;
    }

    .telbtn:hover img {
        width: 34px;
        left: 13px;
        content: url('/common/image/new/ringtel.png');
    }


/* nav */

.sec-header {
    width: 100%;
    position: fixed;
    top: 0;
    z-index: 999;
}

.sec-header {
    z-index: 100; /* allmenu보다 높게 설정 필요 */
    position: fixed;
}
.sec-header.scrolled {
    background: #fff; /* 원하는 배경색 */
    transition: background-color 0.4s ease;
}



.sec-header-wrap {
    width: 1200px;
    height: 80px;
    margin: 0 auto;
}

    .sec-header-wrap > .logo {
        display: inline-block;
        width: 160px;
        height: 100%;
        background: url('/common/image/new/mainlogo.svg') no-repeat center;
        background-size: 100%;
        float: left;
    }

.nav-wrap {
    display: flex;
    justify-content: space-between;
}

    .nav-wrap > li {
        float: left;
        width: 150px;
        height: 80px;
        text-align: center;
        cursor: pointer;
    }

    .nav-wrap h2 a {
        width: 100%;
        display: block;
        font-weight: 400;
        color: #3A3A3C;
        font-size: 1.13rem;
        line-height: 80px;
        cursor: pointer;
        transition: all 0.3s ease-in-out;
    }

.nav-wrap h2 a:hover {
    color: #F15A40;
}

.nav-wrap h2:hover .menu_list {
    display: block;
}

    .nav-wrap h3 {
        font-weight: 400;
        line-height: 46px;
        color: #F15A40;
    }

        .nav-wrap h3 img.down {
            width: 11px;
            margin-top: 20px;
            margin-left: 0;
            transition: all 0.3s ease;
            display: inline-block;
        }

        .nav-wrap h3:hover img.down,
        .nav-wrap h3.active img.down {
            transform: rotate(180deg);
            margin-top: 20px;
        }

    .nav-wrap h3 a {
        display: block;
        width: 100%;
    }

.menu_icon {
    width: 30px;
    padding: 20px 0;
    cursor: pointer;
}

/* depth 메뉴 */
.menu_list {
    display: none;
    position: absolute; /* ⬅️ 핵심! */
    top: 100%; /* h2 바로 밑에 나오게 */
    left: 0;
    width: 150px;
    padding: 15px 0;
    border-radius: 25px;
    background-color: #fff;
    box-shadow: 0 8px 16px rgba(0,0,0,0.19);
    z-index: 999;
}

    .menu_list li {
        width: 100%;
    }

        .menu_list li a:hover {
            color: #F15A40;
        }

.depth-2.menu_list,
.depth-3.menu_list {
    width: 180px;
    margin-left: -15px;
}

    .depth-3.menu_list h3 {
        text-align: center;
    }



.depth-2 li h3 {
    font-weight: 500;
    cursor: pointer;
}

/* depth-2 글자 block */
.depth-2 li a {
    display: block;
    line-height: 40px;
}


/* depth-3 */
.depth-3 {
    display: none;
}

.menu_list3 {
    width: 180px;
    background-color: #fff;
    border-radius: 0 0 25px 25px;
}

/* depth-2와 depth-3가 flow를 유지할 수 있게 */
.depth-2, .depth-3 {
    position: relative;
    overflow: visible;
}

/* 숨겨진 3차 메뉴 기본 상태 */
.depth-3 {
    display: none;
}

.depth-2 h3 {
    cursor: pointer;
}







/* edge 서비스 창 ul 사라짐 문제 css 추가 */
.nav-item {
    position: relative;
}

.nav-group {
    position: relative;
}

    .nav-group h2 {
        cursor: pointer;
    }










/* footer */
.footer {
    width: 100%;
    height: 300px;
    background-color: #3A3A3C;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 300;
}

.footer-wrap {
    width: 1200px;
}

.footer-wrap-info > p {
    margin-bottom: 30px;
}

    .footer-wrap-info > p > img {
        width: 220px;
    }

.f-info > p {
    color: #fff;
    font-size: 0.87rem;
    line-height: 25px;
}

    .f-info > p:last-child {
        color: #9D9FA2;
    }

.copyright {
    float: right;
    margin-top: -26px;
}

    .copyright > span {
        color: #F15A40;
    }







@media (max-width:1280px) {


    /* header */
    .sec-header-wrap {
        width: 1100px;
    }


    .nav-wrap {
        width: 900px;
    }

        .nav-wrap > li {
            width: 120px;
        }

    .close_icon {
        left: 990px;
    }

    .depth-1.menu_list {
        position: relative;
        left: -18px;
    }

    .depth-2.menu_list {
        left: -14px;
    }

    .depth-3.menu_list {
        left: -15px;
    }

    .depth-4.menu_list,
    .depth-5.menu_list {
        position: relative;
        left: -16px;
    }

    /* footer */
    .footer-wrap {
        width: 1100px;
    }
}




@media (max-width:1200px) {

    /* header */
    .sec-header-wrap {
        width: 1000px;
    }

    .nav-wrap {
        width: 800px;
    }


    .close_icon {
        left: 940px;
    }



    /* footer */
    .footer {
        height: 250px;
    }

    .footer-wrap {
        width: 1000px;
    }

    .footer-wrap-info > p {
        margin-bottom: 20px;
    }

        .footer-wrap-info > p > img {
            width: 180px;
        }

    .f-info > p {
        font-size: 0.75rem;
    }
}



@media (max-width:1080px) {

    .topbtn img {
        width: 50px;
    }

    .topbtn {
        bottom: 170px;
        right: 40px;
    }

    .messagebtn {
        width: 50px;
        height: 50px;
        bottom: 110px;
        right: 40px;
    }

        .messagebtn img {
            width: 28px;
            top: 25px;
            right: 10px;
        }

        .messagebtn a span {
            margin: 12px 20px;
            font-size: 1rem;
        }

        .messagebtn:hover {
            width: 130px; /* 길어지는 크기 */
        }

    .telbtn {
        width: 50px;
        height: 50px;
        bottom: 50px;
        right: 40px;
    }

        .telbtn img {
            width: 27px;
            top: 50%;
            left: 12px;
        }

        .telbtn:hover img {
            width: 30px;
            left: 12px;
        }


    /* header */


    .sec-header-wrap {
        width: 900px;
    }

    .nav-wrap {
        width: 700px;
    }

        .nav-wrap > li {
            width: 100px;
        }

    .depth-1.menu_list {
        left: -24px;
    }

    .depth-2.menu_list,
    .depth-3.menu_list {
        left: -25px;
    }


    .depth-4.menu_list,
    .depth-5.menu_list {
        left: -20px;
    }

    .allmenu-wrap > ul {
        gap: 10px;
    }

        .allmenu-wrap > ul > li {
            width: 150px;
        }

    .close_icon {
        left: 755px;
    }




    /* footer */
    .footer {
        height: 300px;
    }

    .footer-wrap {
        width: 90%;
        height: 200px;
    }

    .footer-wrap-info > p {
        margin-bottom: 25px;
    }

        .footer-wrap-info > p > img {
            width: 200px;
        }

    .f-info > p {
        font-size: 0.75rem;
        line-height: 20px;
    }

    .copyright {
        float: left;
        margin-top: 40px;
    }
}


@media (max-width:984px) {

    /* 우측 하단 버튼 호버기능 해제 */
    .topbtn:hover {
        transform: none;
    }

    .messagebtn a span {
        opacity: 0;
        color: #F15A40;
    }

    .messagebtn:hover {
        width: 50px; /* 길어지는 크기 */
        border-radius: 50px; /* 모서리를 둥글게 유지 */
    }

    .telbtn img{
        left: 13px;
    }

    .telbtn:hover img {
        width: 27px;
        content: url('/common/image/new/telephone.png');
    }


    .submenu1 {
        margin-bottom: 10px;
    }


    .sec-header-wrap {
        width: 95%;
    }

    .nav-wrap {
        display: flex;
        justify-content: flex-end;
        width: auto;
    }

        .nav-wrap > li {
            display: none;
        }

            .nav-wrap > li:last-child {
                display: flex;
                justify-content: flex-end;
            }

                .nav-wrap > li:last-child h2 {
                    width: 50px;
                }


    .menu_icon {
        width: 35px;
        padding: 15px 0;
    }


    .m_allmenu {
        display: block;
    }

    .allmenu {
        display: none;
    }
    /* 전체 메뉴 슬라이드 */
    .m_allmenu {
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        height: 100vh;
        z-index: 1000;
        opacity: 0;
        transition: opacity 0.3s ease;
        pointer-events: none;
        background-color: transparent;
        backdrop-filter: none;
        position: fixed;
        overflow-y: auto;
    }

    body.menu-open {
        overflow: hidden !important;
    }


        /* 메뉴 열림 상태 */
        .m_allmenu.active {
            opacity: 1;
            pointer-events: auto;
            visibility: visible;
        }


        .m_allmenu.closing {
            opacity: 0;
            pointer-events: none;
            visibility: hidden;
        }

    .m-allmenu-wrap {
        position: absolute;
        top: 0;
        right: 0;
        width: 80%;
        height: 100%;
        box-sizing: border-box;
        background-color: rgba(0, 0, 0, 0.6);
        backdrop-filter: blur(5px);
        justify-content: start;
        box-sizing: border-box;
        overflow-y: auto;
        transition: transform 0.3s ease-in-out;
        transform: translateX(100%); /* 시작 위치: 오른쪽 밖 */
        display: flex;
        padding: 100px 20px; /* 상단 close_icon 공간 확보 */
    }

    .blur {
        filter: blur(5px);
    }

    .m_allmenu.active .m-allmenu-wrap {
        transform: translateX(0); /* 보일 때: 오른쪽에서 들어옴 */
    }

    /* 닫힐 때 */
    .m_allmenu.closing .m-allmenu-wrap {
        transform: translateX(100%);
    }


    .m-allmenu-wrap > ul {
        display: block;
        padding-left: 40px;
    }

        .m-allmenu-wrap > ul > li {
            align-items: flex-start;
            text-align: left;
        }

            /* 기본적으로 모든 ul은 숨김 */
            .m-allmenu-wrap > ul > li > ul {
                display: none;
                text-align: left;
                padding: 13px 0;
            }


            .m-allmenu-wrap > ul > li > p {
                cursor: pointer;
                text-align: left;
            }

            .m-allmenu-wrap > ul > li img {
                text-align: left;
            }


            .m-allmenu-wrap > ul > li > ul li {
                line-height: 300%;
            }

                .m-allmenu-wrap > ul > li > ul li:last-child {
                    margin-bottom: 40px;
                }



    .m-allmenu-wrap a {
        width: 100%;
        display: block;
        font-weight: 300;
        color: #fff;
    }

        .m-allmenu-wrap a:hover {
            color: #F15A40;
            font-weight: 500;
        }






    /* submenu1 아래에 있는 ul은 항상 보이게 */
    .submenu1 + ul {
        display: block !important;
    }


    .submenu1 {
        cursor: pointer;
    }


    /* 닫기 아이콘 */
    .close_icon {
        position: absolute;
        top: 15px;
        right: 20px;
        left: auto; /* left 초기화 */
        width: 50px;
        height: 50px;
        display: block;
        z-index: 10000;
    }

    .m_mainmenu {
        font-size: 1.38rem;
        text-align: left;
        display: flex;
        align-items: center;
        font-weight: 500;
        font-size: 1.13rem;
        color: #fff;
        column-gap: 8px;
        line-height: 75px;
    }

    .h2down {
        width: 15px;
        height: 10px;
        transition: all 0.3s ease;
        content: url('/common/image/new/h2down.png');
    }

    .m_mainmenu:hover,
    .m_mainmenu.active {
        color: #F15A40;
        font-size: 1.56rem;
        font-weight: 600;
    }

        .m_mainmenu:hover .h2down,
        .m_mainmenu.active .h2down {
            transform: rotate(180deg) scale(1.2);
            content: url('/common/image/new/h2down_h.png'); /* 호버 시 이미지로 변경 */
        }

    .m_mainmenu > ul {
        display: none;
    }




    /* footer */
    .footer {
        height: 300px;
    }

    .footer-wrap {
        width: 90%;
        height: 200px;
    }

    .footer-wrap-info > p {
        margin-bottom: 25px;
    }

        .footer-wrap-info > p > img {
            width: 200px;
        }

    .f-info > p {
        font-size: 0.75rem;
        line-height: 20px;
    }

    .copyright {
        float: left;
        margin-top: 40px;
    }
}




@media (max-width:580px) {

    .topbtn {
        bottom: 150px;
        right: 30px;
    }

    .messagebtn {
        bottom: 90px;
        right: 30px;
    }

    .telbtn {
        width: 50px;
        height: 50px;
        bottom: 30px;
        right: 30px;
    }

        .telbtn img {
            width: 27px;
            top: 50%;
            left: 12px;
        }

    /* s2 ~ s5 에서 fixmenu 올려주는 클래스 */
    .topbtn.move-up {
        bottom: 190px;
    }

    .messagebtn.move-up {
        bottom: 130px;
    }

    .telbtn.move-up {
        bottom: 70px;
    }


    /* footer */
    .footer {
        height: 220px;
    }

    .footer-wrap {
        width: 90%;
        height: 100px;
        margin-top: -40px;
    }

    .footer-wrap-info > p {
        margin-bottom: 15px;
    }

        .footer-wrap-info > p > img {
            width: 130px;
        }

    .f-info > p {
        font-size: 0.625rem;
        line-height: 20px;
    }

    .copyright {
        float: left;
        margin-top: 10px;
    }
}
