@charset "utf-8";

/* 헤더 ***********************************************/
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 11;
    border-bottom: 1px solid rgba(234, 234, 234, 0.2);
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    -webkit-transition: all .1s;
    transition: all .1s;
}

.header.white {
    background: #fff;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.05)
}

.header .inner {
    position: relative;
    height: 80px;
    margin: 0 60px;
}

.header .inner .hd-logo {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.header .inner .hd-logo .logo {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    width: auto;
    overflow: hidden;
    flex-shrink: 0
}

.header .inner .hd-logo .logo h2 {
    height: 31px;
    display: block;
    overflow: hidden;
}

.header .inner .hd-logo .hd-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #333;
}

.header .inner .hd-logo .hd-info .ico img {
    width: 24px;
    height: 24px;
    display: block;
}

.header:not(.white) .hd-logo .hd-info .txt {
    font-size: 1.1rem;
}

/* 투명 헤더: 주소·아이콘 가독성 */
.header:not(.white) .hd-logo .hd-info {
    color: rgba(255, 255, 255, 0.92);
}

.header:not(.white) .hd-logo .hd-info .ico img {
    filter: brightness(0) invert(1);
    opacity: 0.95;
}

.header.white .hd-logo .hd-info {
    color: #333;
}

.header.white .hd-logo .hd-info .ico img {
    filter: none;
    opacity: 1;
}

@media (max-width: 768px) {
    .header .inner .hd-logo .hd-info {
        display: none;
    }
}

.header .inner .logo a {
    position: relative;
    display: inline-block;
    width: 105px;
    height: 31px;
    z-index: 2;
}

.header .inner .logo a:after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url(/images/logo-w.svg) center center no-repeat;
    display: block;
    z-index: 11;
}

.header.white .logo a:after {
    background: url(/images/logo-c.svg) center center no-repeat;
}

.header .inner .menu_btn {
    position: absolute;
    top: 50%;
    z-index: 1;
    transform: translateY(-50%);
}

.header .header_gnb {
    width: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
}

.header .header_gnb .gnb_depth_1 {
    display: flex;
    justify-content: center;
}

.header .header_gnb .depth_1 {
    position: relative;
}

.header .header_gnb .depth_1 > a {
    display: flex;
    align-items: center;
    height: 80px;
    padding: 0 20px;
}

.header .header_gnb .depth_1 > a > span {
    position: relative;
    display: block;
    line-height: normal;
    font-weight: 500;
    color: #fff;
    font-size: 1.1rem;
}

.header.white .header_gnb .depth_1 > a > span {
    color: #111;
}

.header .header_gnb .depth_1 .depth_item {
    background-color: var(--primary);
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 0;
    overflow: hidden;
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s;
}

.header .header_gnb .depth_1.current .depth_item {
    visibility: visible;
    opacity: 1;
    transition: all 0.5s;
}

.header .header_gnb .depth_1 .depth_item .gnb_depth_2 {
    padding: 10px 0;
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s;
}

.header .header_gnb .depth_1.current .depth_item .gnb_depth_2 {
    visibility: visible;
    opacity: 1;
    transition: all 0.5s;
}

.header .header_gnb .depth_2 > a {
    display: block;
    padding: 8px 0;
    font-size: 16px;
    color: #fff;
    transition: color 0.1s;
}

.mob-header {
    position: relative;
}

.mob-header .dimmed {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 50;
    transition: opacity 0.3s ease;
}

.mob-header .dimmed.show {
    display: block;
}

/* ✅ 햄버거는 z-index 올림 */
.mob-header .mobBtn {
    position: relative;
    z-index: 1001;
}

/* 햄버거 */
.header .mobBtn {
    width: 24px;
    height: 18px;
    position: absolute;
    cursor: pointer;
    z-index: 1001;
    top: 50%;
    transform: translateY(-50%);
    right: 0;
}

.header .mobBtn span,
.header .mobBtn::before,
.header .mobBtn::after {
    content: '';
    position: absolute;
    height: 2px;
    width: 100%;
    background: #fff;
    left: 0;
    transition: 0.3s ease;
}

.header .mobBtn span {
    top: 8px;
}

.header .mobBtn::before {
    top: 0;
}

.header .mobBtn::after {
    bottom: 0;
}

.header.white .mobBtn span,
.header.white .mobBtn::before,
.header.white .mobBtn::after {
    background: #111;
}

/* 메뉴 레이어 */
.mob-header .mob-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 360px;
    height: 100%;
    background: #fff;
    z-index: 51;
    padding: 20px;
    box-shadow: -4px 0 10px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    overflow-y: auto;
}

.mob-header .mob-nav.open {
    right: 0;
}

/* 닫기 버튼 */
.mob-header .nav-close {
    background: none;
    border: none;
    cursor: pointer;
}

/* nav-top */
.mob-header .nav-top {
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
}

.mob-header .nav-top img {
    width: 130px;
}

/* 메뉴 항목 */
.mob-header .nav-list {
    margin-top: 20px;
}

.mob-header .nav-item {
    border-bottom: 1px solid #eee;
}

.mob-header .nav-link {
    width: 100%;
    background: none;
    border: none;
    padding: 14px 0;
    font-size: 16px;
    font-weight: 600;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    text-transform: uppercase;
}

/* 공통 화살표 스타일 */
.mob-header .nav-link .arrow {
    margin-left: auto;
    transition: transform 0.3s ease;
}

/* ▼ 아래 방향 기본 화살표 */
.mob-header .nav-item:not(.no-sub) .arrow {
    transform: rotate(0deg);
    /* ▼ */
}

.mob-header .nav-item.open .arrow {
    transform: rotate(180deg);
    /* ▲ */
}

/* 👉 오른쪽 방향 화살표는 회전 없음 */
.mob-header .nav-item.no-sub .arrow.right {
    transform: rotate(0deg);
    /* → */
}

.mob-header .sub-menu {
    display: none;
    padding: 10px 0 14px 12px;
    background: #f9f9f9;
}

.mob-header .nav-item.open .sub-menu {
    display: block;
}

.mob-header .sub-menu li {
    padding: 6px 0;
    font-size: 14px;
    color: #555;
}

/* 카피라이트 */
.mob-header .copyright {
    margin-top: 20px;
    font-size: 12px;
    color: #999;
}

.mob-header .cs-wrap {
    margin-top: 40px;
}

.mob-header .cs-wrap .info h2 {
    font-size: 14px;
    margin-bottom: 20px;
}

.mob-header .cs-wrap .info ul li {
    display: flex;
}

.mob-header .cs-wrap .info ul li:not(:last-child) {
    margin-bottom: 8px;
}

.mob-header .cs-wrap .info ul li .hd {
    width: 80px;
    color: #888;
    font-size: 12px;
}

.mob-header .cs-wrap .info ul li .ds {
    flex: 1;
    color: #888;
    text-align: right;
    font-size: 12px;
}

@media (max-width:1200px) {
    .header .inner .header_gnb {
        display: none;
    }
}

@media (min-width:1201px) {
    .header .mobBtn {
        display: none;
    }
}

@media (max-width:768px) {
    .header .inner {
        margin: 0 20px;
    }

    .header nav {
        display: none;
    }
}
