/* 전 페이지 공통 */
.hide {display: none;}
.container {width: 73.9%; margin: 0 auto;}
html {
    scroll-behavior: smooth;
}


/* header */
header {
    width: 100%;
    height: 90px;
    position: fixed;
    top: 0;
    left: 0;
    color: var(--color-gray-0);
    font-weight: var(--font-weight-M);
    transition: 0.3s;
    z-index: 997;
    background-color: var(--color-white);
}
.header-wrap {
    width: 74%;
    height: 100%;
    align-items: center;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
}
.logo {
    width: 118.75px;
    height: 50px;
}
.header-right {
    display: flex;
    align-items: center;
}
.header-wrap nav ul {
    display: flex;
    gap: 70px;
    margin-right: 62px;
}
.header-wrap nav ul li {position: relative;}
.header-wrap nav ul li::before {
    content: '';
    width: 0%;
    height: 2px;
    background-color: var(--color-primary-1);
    position: absolute;
    top: -5px;
    left: 0;
    transition: 0.3s;
}
.header-wrap nav ul li:hover {
    color: var(--color-primary-1);
}
.header-wrap nav ul li:hover::before{
    width: 30%;
}
.header-right > nav > ul > li > a {
    font-size: var(--font-size-body3);
}
.lang {
    position: relative;
}
.lang p {
    font-size: var(--font-size-sub3);
    cursor: pointer;
}
.lang p span img{ vertical-align: middle;}
.lang ul {
    width: 200%;
    height: 70px;
    margin: 0 auto;
    border: 1px solid #eee;
    position: absolute;
    left: -50%;
    text-align: center;
    line-height: 35px;
    background-color: var(--color-white);
    color: var(--color-gray-0);
    display: none;
    z-index: 9;
}
.ham-btn {
    width: 30px;
    height: 23px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    margin-left: 29px;
    padding: 5px 0 7px;
    position: relative;
}
.ham-btn span {
    width: 100%;
    height: 3px;
    border-radius: 10px;
    background-color: var(--color-gray-0);
    display: block;
    transition: 0.5s;
    transform-origin: center;
}
.ham-btn span:first-child {
    position: relative;
    top: 50%;
}
.ham-btn span:last-child{
    position: relative;
    top: 50%;   
}
.li-hover {
    width: 100%;
    height: 318px;
    color: var(--color-gray-0);
    background-color: var(--color-white);
    position: absolute;
    top: 90px;
    left: 0;
    display: flex;
    display: none;
    overflow: hidden;
    box-shadow:  0 3px 6px #00000015;
}
.li-hover .imgarea {
    width: 36.5%;
    height: 100%;
    position: relative;
    overflow: hidden;
    background-position: center;
    background-size: cover;
}

/* 이미지 설정 */
.li-hover.li1 .imgarea {background-image: url(../images/headerimg.jpg);}
.li-hover.li2 .imgarea {background-image: url(../images/headerimg1.jpg);}
.li-hover.li3 .imgarea {background-image: url(../images/headerimg2.jpg);}
.li-hover.li4 .imgarea {background-image: url(../images/headerimg3.jpg);}
.li-hover.li5 .imgarea {background-image: url(../images/headerimg4.jpg);}
/* //이미지 설정 */

.li-hover .imgarea p {
    text-transform: uppercase;
    font-weight: var(--font-weight-B);
    font-size: 9.375rem;
    color: #ffffff30;
    position: absolute;
    bottom: -52px;
    left: -12px;
    line-height: var(--line-height-140);
}
.li-hover .menu {margin: 24px 0 0 7.5%;}
.li-hover .menu > ul {display: flex; gap: 65px;}
.li-hover .menu > ul > li {
    font-size: var(--font-size-body3);
    font-weight: var(--font-weight-M);
}
.li-hover .menu > ul > li ul {font-weight: var(--font-weight-R); font-size: var(--font-size-cap1); color: var(--color-gray-40);}
.li-hover .menu > ul > li ul li {margin-top: 20px;}
.li-hover.li2 ul:last-child,
.li-hover.li5 ul:last-child{
    margin-top: 30px;
}


/* 푸터 */
footer {
    height: 307px;
    background-color: var(--color-gray-0);
    color: var(--color-white);
}
footer .container .foot_top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 38px 0 14px;
}
footer .container .foot_top ul {
    display: flex;
    font-size: var(--font-size-body3);
    gap: 70px;
}
footer .container .br {
    width: 100%;
    height: 1px;
    background-color: var(--color-gray-40);
}
footer .container .icon_area {
    display: flex;
    gap: 13px;
    margin: 14px 0 73px;
}
footer .container .foot_bottom ul {
    display: flex;
    gap: 10px;
    font-size: var(--font-size-cap2);
    color: var(--color-gray-40);
}
footer .container .copyright {
    margin-top: 5px;
    font-size: var(--font-size-cap2);
    color: var(--color-gray-40);
    display: flex;
    justify-content: space-between;
}
footer .container .copyright div {
    display: flex;
    font-size: var(--font-size-cap2);
    color: var(--color-gray-80);
    gap: 10px;
}
footer .container .copyright div address {font-style:inherit;}


/* 햄버거 영역 */
.ham-area::before {
    content: '';
    width: 100%;
    height: 90px;
    background-color: var(--color-gray-0);
    position: absolute;
    top: -90px;
    left: 0;
    z-index: 998;
}
.ham-area {
    width: 100%;
    height: calc(100vh - 90px);
    background-color: var(--color-gray-0);
    position: fixed;
    left: 0;
    top: -100%;
    z-index: 990;
    transition: 0.5s;
    color: var(--color-white);
}
.ham-area .hamBG {
    width: 100%;
    height: 100%;
    background-image: url(../images/hambg.png);
    background-position: center;
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: center;
}
.ham-area .hamBG .container {display: flex; justify-content: space-between;}
.ham-area .hamBG .container > ul {
    display: flex;
    width: 100%;
    justify-content: space-between;
    font-size:45px;
    /* font-size: var(--font-size-h2); */
    line-height: var(--line-height-140);
    font-weight: var(--font-weight-M);
}
.ham-area .hamBG .container .onedh > ul {margin-top: 30px;}
.ham-area .hamBG .container .onedh > ul .twodh {
    font-size: var(--font-size-body1);
    font-weight: var(--font-weight-M);
    line-height: var(--line-height-150);
    margin-bottom: 30px;
}
.ham-area .hamBG .container .onedh > ul .twodh > ul {margin-top: 20px;}
.ham-area .hamBG .container .onedh > ul .twodh > ul .thrdh {
    font-size: var(--font-size-body3);
    font-weight: var(--font-weight-M);
    line-height: var(--line-height-150);
    margin-bottom: 15px;
    color: var(--color-gray-70);
}
.ham-area .twodh:hover > a,
.ham-area .thrdh:hover a {
    color: var(--color-primary-1);
}
/* 햄버거 영역 */





/* 서브 공통 부분 */
section:nth-of-type(1) {padding-top: 90px;}
section:nth-of-type(1) .top_header {
    margin-top: 135px;
    display: flex;
    align-items: end;
    margin-bottom: 82px;
}
section:nth-of-type(1) .top_header h3 {
    font-size: var(--font-size-h1);
    margin-right: 50px;
    position: relative;
    z-index: -1;
}
section:nth-of-type(1) .top_header h4 {
    font-size: var(--font-size-h2);
    color: var(--color-gray-40);
    position: relative;
    z-index: -1;
}
section:nth-of-type(1) .top_header h4::after {
    content: '';
    width: 18px;
    height: 6px;
    position: absolute;
    background-color: var(--color-primary-1);
    top: -3px;
    left: 0;
}
.top_header_img_area {
    width: 100%;
    height: 367px;
    margin-bottom: 110px;
    overflow: hidden;
}
.top_header_img {
    width: 100%;
    height: 500px;
    background-position: center;
    background-size: cover;
    margin-top: -133px;
    transition: 0.1s;
}

/* 서브페이지 메뉴 */
#sub-menu {
    display: flex;
    gap: 83px;
}
#sub-menu li {
    position: relative;
    font-size: var(--font-size-h2);
    font-weight: var(--font-weight-B);
    line-height: var(--line-height-140);
    margin-bottom: 147px;
    color: var(--color-gray-80);
    transition: 0.3s;
    transform: translateY(-100px);
    opacity: 0;
}
#sub-menu li span {
    font-size: var(--font-size-body3);
    font-weight: var(--font-weight-M);
    line-height: var(--line-height-150);
    position: absolute;
    bottom: -12px;
    transform: translateY(100%);
    left: 0;
    transition: 0.3s;
}
#sub-menu li.on {
    color: var(--color-gray-0);
}
#sub-menu li.on span {
    color: var(--color-primary-1);
}

/* 탑 버튼 */
#gotop {
    width: 55px;
    height: 55px;
    position: fixed;
    bottom: 60px;
    right: 0;
    display: block;
    right: 3%;
    z-index: 888;
    transform: 1s;
}
#gotop div {
    width: 55px;
    height: 55px;
    border-radius: 100%;
    line-height: 55px;
    text-align: center;
    background-color: var(--color-gray-90);
    font-size: var(--font-size-cap1);
    color: var(--color-gray-40);
    cursor: pointer;
}
#gotop div a {display: block;}

/* 미디어 쿼리 */

/* 태블릿 */
@media screen and (max-width: 1300px) {
    /* 컨테이너, 헤더 */
    .container, .header-wrap {width: 86.5%;}
    .header-wrap nav ul {display: none;}
    header .lang {display: none;}

    /* 푸터 */
    footer {height: 422px;}
    footer .container .foot_top ul {display: none;}
    footer .container .icon_area {
        margin: 14px 0 201px;
    }
    footer .container .copyright {position: relative;}
    footer .container .copyright div {
        position: absolute;
        bottom: 65px;
        left: 0;
        flex-direction: column;
    }

    /* 햄버거 */
    .ham-area .hamBG {
        background-color: #191919;
        background-image: none;
        display: flex;
        align-items: flex-start;
        justify-content: center;
    }
    .ham-area .hamBG .container > ul {
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        font-size: var(--font-size-sub2);
    }
    .ham-area .hamBG .container .onedh {
        margin-left: 1.4%;
        padding-top: 20px;
        width: 100%;
    }
    .ham-area .hamBG .container .onedh.open {
        color: var(--color-primary-1);
    }
    .ham-area .hamBG .container .onedh > ul {
        margin-top: 8.6px;
        width: 100%;
        margin-left: -1.4%;
        background-color: var(--color-gray-20);
        padding: 20px 0 0 1.4%;
        display: none;
        overflow: hidden;
    }
    .ham-area .hamBG .container .onedh > ul .twodh {
        margin-bottom: 20px;
        font-size: var(--font-size-body3);
        color: var(--color-white);
    }
    .ham-area .hamBG .container .onedh > ul .twodh > ul {margin-top: 10px;}
    .ham-area .hamBG .container .onedh > ul .twodh > ul .thrdh {
        font-size: var(--font-size-cap1);
        margin-bottom: 10px;
    }

    /* 타이틀 */
    .top_header_img_area {
        height: 191px;
        margin-bottom: 40px;
    }
    section:nth-of-type(1) .top_header {
        margin: 30px 0 22px;
    }
    section:nth-of-type(1) .top_header h3 {
        font-size: var(--font-size-h2);
        margin-right: 20px;
    }
    section:nth-of-type(1) .top_header h4 {
        font-size: var(--font-size-sub1);
    }
    #sub-menu {gap: 20px;}
    #sub-menu li {
        font-size: var(--font-size-body1);
        margin-bottom: 60px;
    }
    #sub-menu li span {display: none;}
}

/* 모바일 */
@media screen and (max-width: 667px) {
    /* 컨테이너 */
    .container {width: 89.7%;}
    h1 img {
        width: 80%;
    }
    footer .foot_top img {
        width: 80%;
    }

    /* 타이틀 */
    .top_header_img_area {height: 161px;}
    section:nth-of-type(1) .top_header {
        flex-direction: column;
        align-items: flex-start;
        margin: 25px 0;
    }
    section:nth-of-type(1) .top_header h3 {
        font-size: var(--font-size-sub1);
        margin-bottom: 10px;
        margin-right: 0;
    }
    section:nth-of-type(1) .top_header h4 {
        font-size: var(--font-size-sub2);
    }

    #sub-menu {
        overflow-x: scroll; 
        touch-action: auto;
    }

    #gotop {
        display: none;
    }
    
    /* Webkit (Chrome, Safari) 스크롤바 스타일 */
    #sub-menu::-webkit-scrollbar {
        height: 5px;
    }
    
    #sub-menu::-webkit-scrollbar-track {
        background-color: var(--color-gray-90);
    }
    
    #sub-menu::-webkit-scrollbar-thumb {
        background-color: var(--color-gray-70);
        border-radius: 6px;
    }
    
    #sub-menu li {
        white-space: nowrap;
        margin-bottom: 10px;
    }

    /* 햄버거 */
    .ham-area .hamBG .container > ul {
        font-size: var(--font-size-body1);
    }
    .ham-area .hamBG .container .onedh > ul .twodh {
        font-size: var(--font-size-body3);
    }
    .ham-area .hamBG .container .onedh > ul .twodh > ul .thrdh {
        font-size: var(--font-size-cap1);
    }
}