@charset "utf-8";

#header {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    z-index: 2000;
}

#header .dim {
    width: 100%;
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: 0.4s;
    z-index: 999;
}

#header .dim.active {
    opacity: 1;
    visibility: visible;
}

@media (min-width: 768px) {
    
}
@media (min-width: 1024px) {

}
@media (min-width: 1280px) {

}


@media (min-width: 1024px) or ((min-width:1366px) and pointer: coarse) {
    #header .header_wrap {
        position: fixed;
        left: 0;
        top: 0;
        z-index: 1000;
        width: 100%;
        height: max(calc(100px * var(--base-ratio)), calc(calc(100 / var(--base-size)) * var(--base-percent)));
        transition: top 0.6s;
    }

    #header .header_wrap .inner {
        position: relative;
        height: 100%;
        padding: 0 max(calc(40px * var(--base-ratio)), calc(calc(40 / var(--base-size)) * var(--base-percent)));
        box-sizing: border-box;
    }

    #header .header_wrap h1.logo {
        display: flex;
        flex-wrap: wrap;
        justify-content: start;
        align-items: center;
        position: absolute;
        left: max(calc(40px * var(--base-ratio)), calc(calc(40 / var(--base-size)) * var(--base-percent)));
        top: 50%;
        transform: translateY(-50%);
        z-index: 2;
        gap: 12px;
    }

    /* 옆에 붙을 보조 로고 */
    #header .header_wrap h1.logo .sub_logo {
        display: block;
        width: 130px;
        /* 필요 시 조절 */
        height: 40px;
        background: url("../images/sub_logo.png") center no-repeat;
        background-size: contain;
    }

    #header .header_wrap h1.logo a {
        font-size: 0;
        display: block;
        text-indent: -9999px;
        width: max(calc(80px * var(--base-ratio)), calc(calc(80 / var(--base-size)) * var(--base-percent)));
        height: max(calc(40px * var(--base-ratio)), calc(calc(40 / var(--base-size)) * var(--base-percent)));
        background: url("../svg/logo_white.svg") center no-repeat;
        background-size: 100% 100%;
    }

    #header .header_wrap .gnb_wrap {
        position: absolute;
        right: 0;
        top: 0;
        width: 100%;
        height: 100%;
        border-bottom: 1px solid transparent;
    }

    #header .header_wrap .gnb_wrap .gnb_inner {
        height: 100%;
        font-size: 0;
    }

    #header .header_wrap .gnb_wrap .list {
        height: 100%;
        font-size: 0;
        text-align: right;
    }

    #header .header_wrap .gnb_wrap .list>li.depth01 {
        display: inline-block;
        vertical-align: top;
        height: 100%;
    }

    #header .header_wrap .gnb_wrap .list>li.depth01:last-child {
        padding-right: max(calc(20px * var(--base-ratio)), calc(calc(20 / var(--base-size)) * var(--base-percent)));
    }

    #header .header_wrap .gnb_wrap .list>li.depth01>a {
        display: block;
        position: relative;
        height: 100%;
        padding: 0 max(calc(24px * var(--base-ratio)), calc(calc(24 / var(--base-size)) * var(--base-percent)));
        font-size: max(calc(16px * var(--base-ratio)), calc(calc(16 / var(--base-size)) * var(--base-percent)));
        line-height: 1;
        letter-spacing: -0.02em;
        color: #fff;
        font-weight: bold;
        width: 100%;
        height: 100%;
    }

    #header .header_wrap .gnb_wrap .list>li.depth01>a span {
        display: block;
        position: relative;
        display: flex;
        flex-wrap: wrap;
        justify-content: start;
        align-items: normal;
        align-content: center;
        height: 100%;
    }

    #header .header_wrap .gnb_wrap .list>li.depth01>a span::after {
        content: "";
        position: absolute;
        left: 50%;
        bottom: -1px;
        width: 0;
        height: 3px;
        transform: translateX(-50%);
        background: #1C1C1C;
        transition: width 0.3s;
    }

    /* 헤더 메뉴 간극 */
    #header .header_wrap .gnb_wrap .list>li.depth01 .snb_wrap {
        overflow: hidden;
        position: absolute;
        width: 100%;
        right: 0;
        top: max(calc(100px * var(--base-ratio)), calc(calc(100 / var(--base-size)) * var(--base-percent)));
        padding: max(calc(20px * var(--base-ratio)), calc(calc(20 / var(--base-size)) * var(--base-percent))) max(calc(20px * var(--base-ratio)), calc(calc(20 / var(--base-size)) * var(--base-percent)));
        z-index: -1;
        background-color: #fff;
        transform: translateY(max(calc(calc(96px * var(--base-ratio)) * -1), calc(calc(calc(96 / var(--base-size)) * var(--base-percent)) * -1)));
        visibility: hidden;
        opacity: 0;
        font-size: 0;
        text-align: left;
    }

    #header .header_wrap .gnb_wrap .list>li.depth01 .snb_wrap .text_list>ul {
        display: inline-block;
        overflow: hidden;
    }

    #header .header_wrap .gnb_wrap .list>li.depth01 .snb_wrap .text_list>ul>li {
        float: left;
    }

    #header .header_wrap .gnb_wrap .list>li.depth01 .snb_wrap .text_list>ul>li>a {
        display: inline-block;
        position: relative;
        padding: 0 max(calc(24px * var(--base-ratio)), calc(calc(24 / var(--base-size)) * var(--base-percent)));
        font-size: max(calc(16px * var(--base-ratio)), calc(calc(16 / var(--base-size)) * var(--base-percent)));
        line-height: 1;
        letter-spacing: -0.02em;
        color: #666;
        font-weight: 500;
        vertical-align: top;
    }

    #header .header_wrap .gnb_wrap .list>li.depth01.current>a {
        color: #ff6f61;
    }

    #header .header_wrap .gnb_wrap .list>li.depth01.active .snb_wrap {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        transition: 0.4s opacity, 0.4s transform;
    }

    #header .header_wrap .gnb_wrap .list>li.depth01.active>a span::after {
        width: 100%;
    }

    @media (min-width: 1025px) and (pointer: fine) {
        #header .header_wrap .gnb_wrap .list>li.depth01>a:hover {
            color: #1c1c1c;
        }

        #header .header_wrap .gnb_wrap .list>li.depth01>a:hover span::after {
            width: 100%;
        }

        #header .header_wrap .gnb_wrap .list>li.depth01.current>a:hover {
            color: #ff6f61;
        }

        #header .header_wrap .gnb_wrap .list>li.depth01 .snb_wrap .text_list {
            font-size: 0;
        }

        #header .header_wrap .gnb_wrap .list>li.depth01 .snb_wrap .text_list>ul>li.current a {
            color: #ff6f61;
        }

        #header .header_wrap .gnb_wrap .list>li.depth01 .snb_wrap .text_list>ul>li:hover>a {
            color: #ff6f61;
        }
    }

    #header .header_wrap .gnb_wrap .m_menu_btn {
        display: none;
    }

    #header .header_wrap .link_wrap {
        position: absolute;
        right: max(calc(40px * var(--base-ratio)), calc(calc(40 / var(--base-size)) * var(--base-percent)));
        top: 50%;
        transform: translateY(-50%);
        z-index: 2;
    }

    #header .header_wrap .link_wrap .ham_btn {
        display: none;
    }

    #header.active .header_wrap {
        background: #fff;
    }

    @media (min-width: 1025px) or ((min-width:1366px) and pointer: coarse) {
        #header.active .header_wrap h1.logo a {
            background: url("../svg/logo.svg") center no-repeat;
            background-size: 100% 100%;
        }

        #header.active .header_wrap .gnb_wrap {
            border-bottom: 1px solid #ddd;
        }

        #header.active .header_wrap .gnb_wrap .list>li.depth01>a {
            color: #1c1c1c;
        }

        #header.active .header_wrap .gnb_wrap .list>li.depth01.current>a {
            color: #ff6f61;
        }
    }

    #header.header_color .header_wrap h1.logo a {
        background: url("../svg/logo.svg") center no-repeat;
        background-size: 100% 100%;
    }

    #header.header_color .header_wrap .gnb_wrap .list>li.depth01>a {
        color: #1c1c1c;
    }

    #header.header_color .header_wrap .gnb_wrap .list>li.depth01.current>a {
        color: #ff6f61;
    }
}

@media (max-width: 1024px) or ((min-width:1366px) and pointer: coarse) {
    #header .header_wrap {
        position: fixed;
        left: 0;
        top: 0;
        z-index: 1000;
        width: 100%;
        height: max(calc(80px * var(--base-ratio)), calc(calc(80 / var(--base-size)) * var(--base-percent)));
        transition: top 0.6s;
    }

    #header .header_wrap .inner {
        position: relative;
        height: 100%;
        /*padding: 0 max(calc(40px * var(--base-ratio)), calc(calc(40 / var(--base-size)) * var(--base-percent)));*/
    }

    #header .header_wrap h1.logo {
        position: absolute;
        left: max(calc(40px * var(--base-ratio)), calc(calc(40 / var(--base-size)) * var(--base-percent)));
        top: 50%;
        transform: translateY(-50%);
        z-index: 2;
        display: flex;
        align-items: center;
        gap: 12px;
    }

    /* 옆에 붙을 보조 로고 */
    #header .header_wrap h1.logo .sub_logo {
        display: block;
        width: 130px;
        /* 필요 시 조절 */
        height: 40px;
        background: url("../images/sub_logo.png") center no-repeat;
        background-size: contain;
    }


    #header .header_wrap h1.logo a {
        font-size: 0;
        display: block;
        text-indent: -9999px;
        width: max(calc(64px * var(--base-ratio)), calc(calc(64 / var(--base-size)) * var(--base-percent)));
        height: max(calc(32px * var(--base-ratio)), calc(calc(32 / var(--base-size)) * var(--base-percent)));
        background: url("../svg/logo_white.svg") center no-repeat;
        background-size: 100% 100%;
    }

    #header .header_wrap .gnb_wrap {
        display: none;
        position: absolute;
        left: 0;
        top: max(calc(80px * var(--base-ratio)), calc(calc(80 / var(--base-size)) * var(--base-percent)));
        width: 100%;
        height: calc(100vh - max(calc(60px * var(--base-ratio)), calc(calc(60 / var(--base-size)) * var(--base-percent))));
        text-align: center;
        background-color: #fff;
    }

    #header .header_wrap .gnb_wrap.active {
        display: block;
        border-top: 1px solid #ddd;
    }

    #header .header_wrap .gnb_wrap .gnb_inner {
        overflow-y: auto;
        position: relative;
        width: 100%;
        height: calc(100% - max(calc(100px * var(--base-ratio)), calc(calc(100 / var(--base-size)) * var(--base-percent))));
        padding: 0 max(calc(40px * var(--base-ratio)), calc(calc(40 / var(--base-size)) * var(--base-percent)));
    }

    #header .header_wrap .gnb_wrap .list {
        font-size: 0;
        text-align: left;
        height: auto;
    }

    #header .header_wrap .gnb_wrap .list>li.depth01 {
        display: block;
        height: auto;
        border-top: 1px solid #ddd;
    }

    #header .header_wrap .gnb_wrap .list>li.depth01:first-child {
        border-top: none;
    }

    #header .header_wrap .gnb_wrap .list>li.depth01>a {
        display: block;
        position: relative;
        height: auto;
        padding: max(calc(24px * var(--base-ratio)), calc(calc(24 / var(--base-size)) * var(--base-percent))) 0;
        font-size: max(calc(16px * var(--base-ratio)), calc(calc(16 / var(--base-size)) * var(--base-percent)));
        line-height: 1;
        letter-spacing: -0.02em;
        color: #1c1c1c;
        font-weight: bold;
    }

    #header .header_wrap .gnb_wrap .list>li.depth01.current>a {
        color: #ff6f61;
    }

    #header .header_wrap .gnb_wrap .list>li.depth01:not(.only)>a:after {
        content: "";
        position: absolute;
        right: max(calc(2px * var(--base-ratio)), calc(calc(2 / var(--base-size)) * var(--base-percent)));
        top: 50%;
        transform: translateY(-50%);
        width: max(calc(14px * var(--base-ratio)), calc(calc(14 / var(--base-size)) * var(--base-percent)));
        height: max(calc(9px * var(--base-ratio)), calc(calc(9 / var(--base-size)) * var(--base-percent)));
        transition: 0.3s;
        /*background: url("../svg/m/ico_gnb_arrow.svg") 0 0 no-repeat;*/
        background-size: cover;
    }

    #header .header_wrap .gnb_wrap .list>li.depth01 .snb_wrap {
        display: none;
        position: relative;
        top: 0;
        left: 0;
        z-index: 1;
        width: 100%;
        font-size: 0;
    }

    #header .header_wrap .gnb_wrap .list>li.depth01 .snb_wrap .text_list {
        overflow: hidden;
        font-size: 0;
        padding: max(calc(12px * var(--base-ratio)), calc(calc(12 / var(--base-size)) * var(--base-percent))) max(calc(10px * var(--base-ratio)), calc(calc(10 / var(--base-size)) * var(--base-percent)));
        background-color: #f6f6f6;
    }

    #header .header_wrap .gnb_wrap .list>li.depth01 .snb_wrap .text_list>ul {
        display: block;
    }

    #header .header_wrap .gnb_wrap .list>li.depth01 .snb_wrap .text_list>ul>li>a {
        display: block;
        position: relative;
        padding: max(calc(8px * var(--base-ratio)), calc(calc(8 / var(--base-size)) * var(--base-percent))) max(calc(10px * var(--base-ratio)), calc(calc(10 / var(--base-size)) * var(--base-percent)));
        font-size: max(calc(16px * var(--base-ratio)), calc(calc(16 / var(--base-size)) * var(--base-percent)));
        line-height: 1;
        letter-spacing: -0.02em;
        font-weight: 500;
        color: #1c1c1c;
    }

    #header .header_wrap .gnb_wrap .list>li.depth01 .snb_wrap .depth02.current>a {
        color: #ff6f61;
    }

    #header .header_wrap .gnb_wrap .list>li.depth01.active:not(.only)>a:after,
    #header .header_wrap .gnb_wrap .list>li.depth01.current:not(.only)>a:after {
        margin-top: max(calc(calc(6px * var(--base-ratio)) * -1), calc(calc(calc(6 / var(--base-size)) * var(--base-percent)) * -1));
        transform: rotate(180deg) translateY(-50%);
    }

    #header .header_wrap .link_wrap {
        position: absolute;
        right: max(calc(40px * var(--base-ratio)), calc(calc(40 / var(--base-size)) * var(--base-percent)));
        top: 50%;
        transform: translateY(-50%);
        z-index: 2;
    }

    #header .header_wrap .link_wrap .ham_btn {
        display: inline-block;
        vertical-align: middle;
    }

    #header .header_wrap .link_wrap .ham_btn button {
        width: max(calc(24px * var(--base-ratio)), calc(calc(24 / var(--base-size)) * var(--base-percent)));
        height: max(calc(24px * var(--base-ratio)), calc(calc(24 / var(--base-size)) * var(--base-percent)));
        font-size: 0;
        background: none;
        border: none;
        outline: none;
        /* 포커스 테두리 제거 */
        -webkit-tap-highlight-color: transparent;
        /* 모바일 터치 하이라이트 제거 */
    }

    #header .header_wrap .link_wrap .ham_btn button i {
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        width: max(calc(12px * var(--base-ratio)), calc(calc(12 / var(--base-size)) * var(--base-percent)));
        height: max(calc(2px * var(--base-ratio)), calc(calc(2 / var(--base-size)) * var(--base-percent)));
        background-color: #fff;
        border-radius: 2px;
    }

    #header .header_wrap .link_wrap .ham_btn button i:before {
        content: "";
        position: absolute;
        top: max(calc(calc(6px * var(--base-ratio)) * -1), calc(calc(calc(6 / var(--base-size)) * var(--base-percent)) * -1));
        right: 0;
        width: max(calc(16px * var(--base-ratio)), calc(calc(16 / var(--base-size)) * var(--base-percent)));
        height: max(calc(2px * var(--base-ratio)), calc(calc(2 / var(--base-size)) * var(--base-percent)));
        background: inherit;
        border-radius: 2px;
        transition: 0.3s;
    }

    #header .header_wrap .link_wrap .ham_btn button i:after {
        content: "";
        position: absolute;
        bottom: max(calc(calc(6px * var(--base-ratio)) * -1), calc(calc(calc(6 / var(--base-size)) * var(--base-percent)) * -1));
        right: 0;
        width: max(calc(16px * var(--base-ratio)), calc(calc(16 / var(--base-size)) * var(--base-percent)));
        height: max(calc(2px * var(--base-ratio)), calc(calc(2 / var(--base-size)) * var(--base-percent)));
        background: inherit;
        border-radius: 2px;
        transition: 0.3s;
    }

    #header .header_wrap .link_wrap .ham_btn button.active i {
        width: 0;
    }

    #header .header_wrap .link_wrap .ham_btn button.active i:before {
        transform: translate(3px, -2px) rotate(46deg);
        transform-origin: bottom left;
        width: max(calc(18px * var(--base-ratio)), calc(calc(18 / var(--base-size)) * var(--base-percent)));
    }

    #header .header_wrap .link_wrap .ham_btn button.active i:after {
        transform: translate(4px, -1px) rotate(-45deg);
        transform-origin: bottom left;
        width: max(calc(18px * var(--base-ratio)), calc(calc(18 / var(--base-size)) * var(--base-percent)));
    }

    #header.active .header_wrap {
        background-color: #fff;
    }

    #header.active .header_wrap h1.logo a {
        background: url("../svg/logo.svg") center no-repeat;
        background-size: 100% 100%;
    }

    #header.active .header_wrap .link_wrap .ham_btn button i {
        background-color: #1C1C1C;
    }

    #header.header_color .header_wrap h1.logo a {
        background: url("../svg/logo.svg") center no-repeat;
        background-size: 100% 100%;
    }

    #header.header_color .header_wrap .link_wrap .ham_btn button i {
        background-color: #1C1C1C;
    }
}

@media (max-width: 767px) {
    #header .header_wrap {
        /*height: max(calc(60px * var(--base-ratio)), calc(calc(60 / var(--base-size)) * var(--base-percent)));*/
    }

    #header .header_wrap .inner {
        padding: 0 max(calc(20px * var(--base-ratio)), calc(calc(20 / var(--base-size)) * var(--base-percent)));
    }

    #header .header_wrap h1.logo {
        /*left: max(calc(20px * var(--base-ratio)), calc(calc(20 / var(--base-size)) * var(--base-percent)));*/
    }

    #header .header_wrap h1.logo a {
        width: max(calc(56px * var(--base-ratio)), calc(calc(56 / var(--base-size)) * var(--base-percent)));
        height: max(calc(28px * var(--base-ratio)), calc(calc(28 / var(--base-size)) * var(--base-percent)));
    }

    #header .header_wrap .gnb_wrap {
        top: max(calc(60px * var(--base-ratio)), calc(calc(60 / var(--base-size)) * var(--base-percent)));
    }

    #header .header_wrap .gnb_wrap .gnb_inner {
        padding: 0 max(calc(20px * var(--base-ratio)), calc(calc(20 / var(--base-size)) * var(--base-percent)));
    }

    #header .header_wrap .link_wrap {
        right: max(calc(20px * var(--base-ratio)), calc(calc(20 / var(--base-size)) * var(--base-percent)));
    }
}

@media (min-width: 1025px) or ((min-width:1366px) and (pointer: find)) {
    #header[data-fixed=true][data-color=true] .header_wrap {
        background: #fff;
    }

    @media (min-width: 1025px) or ((min-width:1366px) and pointer: coarse) {
        #header[data-fixed=true][data-color=true] .header_wrap h1.logo a {
            background: url("../svg/logo.svg") center no-repeat;
            background-size: 100% 100%;
        }

        #header[data-fixed=true][data-color=true] .header_wrap .gnb_wrap {
            border-bottom: 1px solid #ddd;
        }

        #header[data-fixed=true][data-color=true] .header_wrap .gnb_wrap .list>li.depth01>a {
            color: #1c1c1c;
        }

        #header[data-fixed=true][data-color=true] .header_wrap .gnb_wrap .list>li.depth01.current>a {
            color: #ff6f61;
        }
    }
}

@media (max-width: 1024px) or ((min-width:1366px) and (pointer: coarse)) {
    #header[data-fixed=true][data-color=true] .header_wrap {
        background-color: #fff;
    }

    #header[data-fixed=true][data-color=true] .header_wrap h1.logo a {
        background: url("../svg/logo.svg") center no-repeat;
        background-size: 100% 100%;
    }

    #header[data-fixed=true][data-color=true] .header_wrap .link_wrap .ham_btn button i {
        background-color: #1C1C1C;
    }
}

@media all and (min-width:1025px) {
    #header .header_wrap h1.logo a {
        width: 120px;
        height: 60px;
        background-size: contain;
        background-repeat: no-repeat;
    }
}

@media all and (max-width:1024px) {
    #header .header_wrap h1.logo a {
        width: 120px;
        height: 60px;
        background-size: contain;
        background-repeat: no-repeat;
    }
}