@charset "utf-8";
/* 공통 요소 */

/* 헤더 */
#quick_Index {
  height: 0;
  z-index: 99999;
}
#quick_Index a {
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  left: 0;
  top: -100px;
  width: 100%;
  height: 1px;
}
#quick_Index a:focus, #quick_Index a:active {
  top: 0;
  z-index: 101;
  height: 40px;
  font-size: clamp(16px, 1.8rem, 18px);
  font-weight: 500;
  color: #fff;
  background: var(--main);
}
header{
    position: fixed;
    left: 0;
    top: 0;
    z-index: 100;
    width:100%;
    height: 90px;
    background: #fff;
    border-bottom: 1px solid transparent;
    transition:  border-color 0s .4s, background-color .3s, box-shadow .3s;
}
header.shadow{
    box-shadow: 0 3px 8px rgba(0, 0, 0, .06);
}
header:has(ul.depth1 > li:not(.no-depth2):hover), header:has(ul.depth1 > li:not(.no-depth2):focus), header:has(nav.on){
    border-color: #E5E5E5;
    transition: border-color 0s 0s;
}
header nav{
    height: 100%;
}
header nav .wrap{
    height: 100%;
    display:flex;
    justify-content:space-between;
    align-items:center;
}
header h1 a{
    display: block;
    width:160px;
    height:57px;
    background: url(../img/comm/logo.svg) no-repeat;
    background-size: contain;
    transition: .3s;
}
header h1 a:hover{
    opacity: .75;
}
header ul.depth1{
    width: 56%;
    max-width: 645px;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
header ul.depth1 > li{
    position: relative;
    height: 100%;
}
header ul.depth1 > li::after{
    content: '';
    display: flex;
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 0;
    height: 3px;
    transform: translateX(-50%);
    background: var(--main);
    transition: width .3s;
}
header ul.depth1 > li:hover::after, header ul.depth1 > li:has(a:focus)::after{
    width: 18rem;
}
header ul.depth1 > li > a{
    display: flex;
    align-items: center;
    height: 100%;
    font-weight: 500;
    font-size: 2rem;
    color: var(--font);
    transition: .3s;
}
header ul.depth1 > li:hover > a, header ul.depth1 > li:has(a:focus) > a{
    font-weight: 600;
    color: var(--main);
}
.depth2-bg{
    position: absolute;
    left: 0;
    top: 90px;
    width: 200vw;
    transform: translateX(-100vw);
    height: 0;
    background: #fff;
    transition: height .4s, box-shadow 0s .4s;
}
ul.depth1 > li:hover .depth2-bg, ul.depth1 > li:has(a:focus) .depth2-bg{
    height: 65px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, .06);
    transition: height .4s, box-shadow .4s 0s;
}
header ul.depth2{
    position: absolute;
    left: 0;
    bottom: 20px;
    align-items: center;
    gap: 4rem;
    padding: 20px 0;
    display: flex;
    opacity: 0;
    pointer-events: none;
    transition: opacity .4s, bottom .4s;
    transform: translate(0, 100%);
}
/* 시각적 중앙정렬 */
header .depth1 > li:nth-child(1) ul.depth2{
    left: -8%;
}
header .depth1 > li:nth-child(3) ul.depth2{
    left: 2%;
}
header ul.depth1 > li:hover > ul.depth2, header ul.depth1 > li:has(a:focus) > ul.depth2{
    opacity: 1;
    pointer-events: all;
    bottom: 0;
}
header ul.depth2 li a{
    display: block;
    font-size: clamp(17px, 1.8rem, 18px);
    text-wrap: nowrap;
    transition: .3s;
}
header ul.depth2 li a:hover, header ul.depth2 li a:focus{
    font-weight: 600;
    color: var(--main);
}
header .open_alllmenu{
    width: 36px;
    aspect-ratio: 1 / 1;
    transition: opacity .3s;
    background: url(../img/comm/icon_hamburger.svg) no-repeat;
    background-size: contain;
}
header .open_alllmenu:hover{
    opacity: .6;
}
header:has(nav.on) .open_alllmenu{
    background-image: url(../img/comm/icon_close.svg);
}

/* 헤더 투명 스타일 */
header.transparent{
    background: transparent;
}
header.transparent h1 a{
    background-image: url(../img/comm/logo_w.svg);
}
header.transparent ul.depth1 > li > a{
    color: #fff;
}
header.transparent ul.depth1 > li > a:hover{
    opacity: .75;
}
header.transparent .open_alllmenu{
    filter: brightness(30);
}
header.transparent .open_alllmenu:hover{
    opacity: .75;
}


/* pc 전체메뉴 */
nav::before{
    content: '';
    position: absolute;
    left: 0;
    top: 90px;
    width: 100%;
    height: 0;
    background: #fff;
    z-index: -1;
    transition: height .4s;
    box-shadow: 0 3px 8px rgba(0, 0, 0, .06);
}
nav.on::before{
    height: 155px;
}
nav.on .depth2-bg{
    display: none;
}
nav.on ul.depth2{
    position: absolute;
    left: 50%;
    bottom: 0;
    flex-direction: column;
    gap: 10px;
    padding: 30px 0;
    opacity: 1;
    pointer-events: all;
    transform: translate(-50%, 100%);
}
nav.on .depth1 > li:nth-child(1) ul.depth2, nav.on .depth1 > li:nth-child(3) ul.depth2{
    left: 50%;
}
nav.on ul.depth1 > li:hover > ul.depth2, nav.on ul.depth1 > li a:focus > ul.depth2{
    transform: translate(-50%, 100%);
}

/* 모바일 전체메뉴 */
.tamo_all_menu{
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100svh;
    background: #fff;
    transform: translateX(10%);
    opacity: 0;
    transition: opacity .5s, transform .5s, visibility 0s .5s;
    visibility: hidden;
    overflow-y: scroll;
    overscroll-behavior: contain;
}
body.tapwater-menu-open{
    overflow: hidden;
}
.tamo_all_menu.on{
    opacity: 1;
    transform: translateX(0);
    visibility: visible;
    transition: opacity .5s, transform .5s, visibility 0s 0s;
}
.tamo_all_menu .top-bar{
    width: 100%;
    height: 90px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 4%;
    border-bottom: 1px solid #EAEAEA;
}
.tamo_all_menu .top-bar a img{
    width: 160px;
    object-fit: contain;
}
.tamo_all_menu .top-bar button img{
    width: 36px;
    object-fit: contain;
}
.tamo_depth1{
    margin-top: 20px;
    width: 100%;
    padding: 0 4%;
}
.tamo_depth1 > li button, .tamo_depth1 > li > a{
    display: block;
    width: 100%;
    height: 64px;
    font-weight: 500;
    font-size: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #EBEEF3;
    transition: border-color 0s .3s;
}
.tamo_depth1 > li.on > button {
    border-color: transparent;
    transition: border-color .3s;
}
.tamo_depth1 > li:has(.tamo_depth2) > button::after{
    content: '';
    display: flex;
    width: 22px;
    height: 22px;
    background: url(../img/comm/icon_toggle_arrow.svg) no-repeat;
    background-size: contain;
}
.tamo_depth1 > li.on > button::after {
    transform: rotate(180deg);
}
.tamo_depth2{
    width: 100%;
    padding: 24px 20px;
    background: #F2F4F6;
    border-radius: 8px;
    display: none;
}
.tamo_depth2 li a{
    margin-top: 10px;
    display: flex;
    font-size: 16px;
    color: #333;
}
.tamo_depth2 li a:hover, .tamo_depth2 li a:focus{
    color: #222;
    font-weight: 500;
    text-decoration: underline;
}
.tamo_depth2 li:first-child a{
    margin-top: 0;
}



/* top 버튼 */
.btn_go_top{
    position: fixed;
    z-index: 4;
    right: 4rem;
    bottom: 4rem;
    width: 6rem;
    aspect-ratio: 1 / 1;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 1rem 2rem rgba(0, 5, 18, .1);
}
.btn_go_top img{
    width: 2rem;
    object-fit: contain;
}

/* 풋터 */
footer{
    width: 100%;
    background: #F2F2F2;
    padding: 30px 0;
}
footer .wrap{
    position: relative;
}
footer .footer-info{
    font-size: 15px;
    line-height: 1.5;
    color: #444;
}
footer .footer-info > img{
    height: 6rem;
    object-fit: contain;
}
footer .footer-info > ul{
    margin-top: 3rem;
    display: flex;
    align-items: center;
    gap: 12px;
}
footer .footer-info > ul li{
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
}
footer .footer-info > ul li::after{
    content: '';
    display: block;
    width: 2px;
    height: 12px;
    background: #d8d8d8;
}
footer .footer-info > ul li:last-child:after{
    display: none;
}
footer .footer-info .copy{
    margin-top: 4px;
}
footer .footer-links{
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
footer .footer-links img{
    width: 40px;
    object-fit: contain;
    transition: .3s;
}
footer .footer-links img:hover{
    filter: brightness(.85);
}

@media only screen and (max-width: 1440px) {
    /* 시각적 중앙정렬 */
    header .depth1 > li:nth-child(1) ul.depth2{
        left: -10%;
    }
}
@media only screen and (max-width: 1024px) {
    header nav ul.depth1{
        display: none;
    }
}
@media only screen and (max-width: 768px) {
    header {
        height: 80px;
    }
    header h1 a {
        width: 140px;
        height: 50px;
    }
    .tamo_all_menu .top-bar{
        height: 80px;
        padding: 0 20px;
    }
    .tamo_all_menu .top-bar a img{
        width: 140px;
    }
    .tamo_all_menu .top-bar button img{
        width: 32px;
    }
    .tamo_depth1{
        padding: 0 20px;
    }
    .btn_go_top {
        right: 20px;
        bottom: 20px;
    }
    footer .footer-info > ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
    }
    footer .footer-info > ul li::after {
        display: none;
    }
    footer .footer-info .copy {
        margin-top: 10px;
    }
    footer .footer-links {
        position: absolute;
        right: 20px;
    }
    footer .footer-links img {
        width: 36px;
    }
}
@media only screen and (max-width: 480px) {}
