header {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    z-index: 1000;
    overflow: visible;
    background: transparent;
    transition: background 0.35s ease, color 0.35s ease, box-shadow 0.35s ease,
    border-radius 0.35s ease, width 0.35s ease, top 0.35s ease;
    box-shadow: none;
    font-family: "Pretendard Variable";
    font-weight: 500;
    font-size: 20px;
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

header.on {
    box-shadow: 0 4px 10px 0 rgba(0, 0, 0, 0.03);
    background: #fff;
    color: var(--color-logo-black);
    /* border-radius: 20px;
    width: 98%;
    top: 1%; */
}

header.on .header_in_wrap {
    height: 120px;
}

.header_in_wrap {
    height: 120px;
    margin: 0 auto;
    width: 98%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.5s ease-in-out;
}

.header_in_wrap .h_logo {
    width: 100%;
    max-width: 175px;
    height: auto;
    object-fit: contain;
}

.header_in_wrap nav {
    display: flex;
    align-items: center;
    gap: 80px;
    position: relative;
}

.header_in_wrap .gnb {
    display: flex;
    height: 100%;
    font-size: 20px;
    gap: 80px;
    --gnb-menu-gap: 80px;
}

.header_in_wrap .gnb li {
    position: relative;
}

header:not(.on) .h_logo img {
    filter: brightness(0) invert(1);
    transition: filter 0.35s ease;
}

header.on .h_logo img {
    filter: none;
}

header:not(.on) .header_link_top_btn_text_title {
    color: #fff;
}

header.on .header_link_top_btn_text {
    border-color: #989898;
}

header.on .header_link_top_btn_text_title {
    color: #989898;
}

header.on .header_link_top_btn svg path {
    stroke: #989898;
}

.header_in_wrap .gnb > li > a {
    color: inherit;
    transition: color 0.25s ease;
    position: relative;
    cursor: pointer;
}

.header_in_wrap .gnb > li > a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 100%;
    height: 2px;
    background: #fff;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.25s ease;
}

header.on .header_in_wrap .gnb > li > a::after {
    background: var(--color-logo-lightBlue);
}

.header_in_wrap .gnb > li:hover > a::after,
.header_in_wrap .gnb > li.active > a::after {
    transform: scaleX(1);
}

.header_in_wrap .gnb > li.active > a {
    position: relative;
}

/* 수풀로 GNB 아코디언 — 클릭 시 펼침/접힘 */
.gnb-dropdown--accordion .drop_btn {
    cursor: pointer;
}

.gnb-dropdown--accordion .drop_cont {
    max-height: 0;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
    box-sizing: border-box;
    transition: max-height 0.42s ease;
}

.gnb-dropdown--accordion .dropdown.open .drop_cont {
    max-height: 160px;
}

/* GNB 드롭다운 — 호버한 li의 메뉴만 표시 (데스크톱) */
@media (min-width: 1080px) {
    .header_in_wrap .gnb > li.gnb-item--dropdown {
        --gnb-dropdown-gap: 49px;
    }
    
    .header_in_wrap {
        overflow: visible;
    }
    
    .header_in_wrap nav {
        overflow: visible;
    }
    
    /* 메뉴 ↔ 드롭다운 사이 호버 끊김 방지 */
    .header_in_wrap .gnb > li.gnb-item--dropdown::after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        height: calc(var(--gnb-dropdown-gap) + 24px);
        z-index: 1099;
    }
    
    .gnb-dropdown {
        position: absolute;
        top: calc(100% + var(--gnb-dropdown-gap));
        left: 0;
        z-index: 1100;
        width: 100%;
        min-width: 0;
        padding: 18px 16px;
        background: #fff;
        box-shadow: 0 12px 32px rgba(12, 44, 72, 0.16);
        box-sizing: border-box;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(6px);
        transition:
        opacity 0.22s ease,
        visibility 0.22s ease,
        transform 0.22s ease;
        transition-delay: 0.12s;
        border-radius: 0 0 10px 10px;
    }
    
    /* GNB gap(80px)의 절반(40px)씩 양옆 — 단순·아코디언 드롭다운 공통 */
    .gnb > li.gnb-item--dropdown > .gnb-dropdown {
        left: 50%;
        width: calc(100% + var(--gnb-menu-gap, 80px));
        min-width: calc(100% + var(--gnb-menu-gap, 80px));
        max-width: none;
        transform: translateX(-50%) translateY(6px);
        box-sizing: border-box;
    }
    
    /* 좌우 40px는 패널 너비 확장으로 처리 — 가로 padding 시 콘텐츠가 li 너비로 줄어 2줄 됨 */
    .gnb > li.gnb-item--dropdown > .gnb-dropdown:not(.gnb-dropdown--accordion) {
        padding: 6px 0;
    }
    
    .gnb > li.gnb-item--dropdown > .gnb-dropdown--accordion {
        padding: 0;
        overflow: hidden;
        container-type: inline-size;
    }
    
    .gnb-dropdown::before {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        bottom: 100%;
        height: 16px;
    }
    
    /* 수풀로 체험 — 한강 GNB 아코디언 (layout.css 동일) */
    .gnb-dropdown--accordion .subnav,
    .gnb-dropdown--accordion .subnav > ul,
    .gnb-dropdown--accordion .subnav > ul > li.dropdown {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        max-width: none;
    }
    
    .gnb-dropdown--accordion .subnav {
        padding: 0;
    }
    
    .gnb-dropdown--accordion .subnav > ul > li + li {
        margin-top: 0;
    }
    
    /* 수풀로 체험(accordion) 구조에서 '드롭다운 아코디언 버튼이 아닌' 단일 링크(예: 공고/공지) */
    .header_in_wrap .gnb-dropdown--accordion .subnav > ul > li:not(.dropdown) > a{
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        padding: 15px 0;
        box-sizing: border-box;
        font-size: 15px;
        font-weight: 400;
        line-height: 1.5;
        color: var(--black, #242424);
        white-space: nowrap;
        text-align: center;
        text-decoration: none;
    }

    .header_in_wrap .gnb-dropdown--accordion .subnav > ul > li:not(.dropdown) > a:hover,
    .header_in_wrap .gnb-dropdown--accordion .subnav > ul > li:not(.dropdown) > a:focus-visible{
        color: #1BACE4;
        font-weight: 600;
    }

    .gnb-dropdown--accordion .drop_btn {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        max-width: none;
        height: auto;
        min-height: 0;
        padding: 15px 0;
        box-sizing: border-box;
        font-size: 15px;
        font-weight: 400;
        line-height: 1.5;
        color: var(--black, #242424);
        white-space: nowrap;
        text-align: center;
    }
    
    .gnb-dropdown--accordion .dropdown .drop_btn::after {
        content: "";
        display: block;
        width: 10px;
        height: 10px;
        background: url(../img/nav_arrow.png) no-repeat center / contain;
        margin-left: 4px;
        flex-shrink: 0;
        transform: none;
        transform-origin: center;
        transition: transform 0.42s ease-in-out;
    }
    
    .gnb-dropdown--accordion .dropdown.open .drop_btn {
        font-weight: 600 !important;
    }
    
    .gnb-dropdown--accordion .dropdown.open .drop_btn::after {
        transform: rotate(180deg);
    }
    
    .gnb-dropdown--accordion .dropdown.open .drop_cont {
        position: relative;
        overflow: visible;
        background: transparent;
    }
    
    /* 흰 드롭다운 패널 양옆까지 #E8EFF2 배경 (콘텐츠보다 넓게) */
    .gnb-dropdown--accordion .dropdown.open .drop_cont::before {
        content: "";
        position: absolute;
        top: 0;
        bottom: 0;
        left: 50%;
        z-index: 0;
        width: 100cqw;
        transform: translateX(-50%);
        background: #e8eff2;
        pointer-events: none;
    }
    
    .gnb-dropdown--accordion .subnav2 {
        width: 100%;
        max-width: none;
        margin: 0;
        background: transparent;
        box-sizing: border-box;
    }
    
    .gnb-dropdown--accordion .subnav2 > ul {
        position: relative;
        z-index: 1;
        width: 100%;
        margin: 0;
        padding: 10px 0;
    }
    
    .gnb-dropdown--accordion .subnav2 > ul > li > a {
        display: flex;
        width: 100%;
        max-width: none;
        justify-content: center;
        align-items: center;
        min-height: 31px;
        height: auto;
        padding: 4px 0;
        font-size: 14px;
        font-weight: 400;
        line-height: 1.4;
        color: #242424;
        white-space: nowrap;
        text-align: center;
    }
    
    .gnb-dropdown--accordion .subnav2 > ul > li > a:hover,
    .gnb-dropdown--accordion .subnav2 > ul > li > a:focus-visible {
        color: var(--color-logo-lightBlue);
        text-decoration: underline;
        font-weight: 400;
    }
    
    .gnb-dropdown ul {
        margin: 0;
        padding: 0;
        list-style: none;
    }
    
    .gnb-dropdown:not(.gnb-dropdown--accordion) ul {
        text-align: center;
    }
    
    .gnb-dropdown:not(.gnb-dropdown--accordion) ul > li {
        display: block;
        width: 100%;
        text-align: center;
    }
    
    .gnb-dropdown--accordion .subnav2 > ul > li {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
    }
    .header_in_wrap .gnb-dropdown:not(.gnb-dropdown--accordion) ul > li > a {
        display: block;
        width: 100%;
        height: auto;
        padding: 8px 0;
        white-space: nowrap;
        text-align: center;
        text-decoration: none;
        color: var(--black, #242424);
        font-size: 15px;
        font-weight: 400;
        line-height: 1.5;
        box-sizing: border-box;
        transition: color 0.2s ease;
    }
    
    .gnb-dropdown:not(.gnb-dropdown--accordion) ul > li > a::after {
        display: none;
    }
    
    .gnb-dropdown:not(.gnb-dropdown--accordion) ul > li > a:hover,
    .gnb-dropdown:not(.gnb-dropdown--accordion) ul > li > a:focus-visible {
        font-weight: 600;
        color: var(--color-logo-lightBlue);
    }
    .header_in_wrap .gnb .second a:hover{
        font-weight: 600;
        color: var(--color-logo-lightBlue);
    }
    .header_in_wrap .gnb a:hover{
        font-weight: 600;
    }
    .gnb > li.gnb-item--dropdown:hover > .gnb-dropdown,
    .gnb > li.gnb-item--dropdown.gnb-dropdown-active > .gnb-dropdown {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transition-delay: 0s;
    }
    
    .gnb > li.gnb-item--dropdown:hover > .gnb-dropdown,
    .gnb > li.gnb-item--dropdown.gnb-dropdown-active > .gnb-dropdown {
        transform: translateX(-50%) translateY(0);
    }
    
    header:not(.on) .gnb > li.gnb-item--dropdown:hover > .gnb-dropdown,
    header:not(.on) .gnb > li.gnb-item--dropdown.gnb-dropdown-active > .gnb-dropdown {
        border-radius: 0 0 10px 10px;
        box-shadow: 0 4px 20px 0 rgba(30, 37, 11, 0.30);
    }
}

@keyframes gnbAllPanelIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 전체 메뉴 패널 — PC·모바일 공통 콘텐츠 */
.gnb-all-panel {
    --gnb-all-accent: #1bace4;
    --gnb-all-title: #242424;
    --gnb-all-link: #555;
    --gnb-all-link-muted: #999;
    --gnb-all-divider: rgba(36, 36, 36, 0.2);
    --header-mobile-h: 80px;
    display: none;
    z-index: 9999;
    background: #fff;
    border-top: 1px solid var(--gnb-all-divider);
    box-shadow: none;
    overflow-x: hidden;
    overflow-y: auto;
    box-sizing: border-box;
    -webkit-overflow-scrolling: touch;
}

header.gnb-all-open .gnb-all-panel {
    display: flex;
    flex-direction: column;
    animation: gnbAllPanelIn 0.28s ease;
}

.gnb-all-panel__inner {
    display: flex;
    flex: 1;
    flex-direction: column;
    width: min(1720px, 100%);
    min-height: 100%;
    height: 100%;
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
}

.gnb-all-panel .gnb {
    display: grid;
    gap: 0;
    flex: 1;
    width: 100%;
    min-height: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    align-items: stretch;
    list-style: none;
}

.gnb-all-panel .gnb > li {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    align-self: stretch;
    min-height: 100%;
    height: 100%;
    padding: 30px;
    border-left: 1px solid rgba(36, 36, 36, 0.2);
    box-sizing: border-box;
}

.gnb-all-panel .gnb > li:last-child {
    border-right: 1px solid rgba(36, 36, 36, 0.2);
}

.gnb-all-panel .gnb a {
    display: block;
    position: relative;
    width: 100%;
    max-width: 100%;
    height: auto;
    text-align: left;
    white-space: normal;
    box-sizing: border-box;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.5;
    color: #242424;
}

.gnb-all-panel .gnb > li > a {
    padding: 0;
    margin: 0 0 20px;
    font-size: var(--font-22);
    line-height: var(--line-height-15);
    letter-spacing: var(--letter-spacing-normal);
    font-weight: var(--font-weight-bold);
    color: var(--gnb-all-title);
    pointer-events: auto;
    cursor: pointer;
}

.gnb-all-panel .gnb > li > a::before {
    content: "";
    display: block;
    width: 20px;
    height: 4px;
    background: var(--Light-blue, #1BACE4);
    margin-bottom: 5px;
    border-radius: 10px;
}

.gnb-all-panel .gnb > li > a::after {
    display: none;
}

.gnb-all-panel .gnb-dropdown,
.gnb-all-panel .gnb > li.gnb-item--dropdown > .gnb-dropdown,
.gnb-all-panel .gnb > li.gnb-item--dropdown:hover > .gnb-dropdown,
.gnb-all-panel .gnb > li.gnb-item--dropdown.gnb-dropdown-active > .gnb-dropdown {
    position: static;
    top: auto;
    left: auto;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none !important;
    width: 100%;
    min-width: 0;
    max-width: none;
    /* padding: 0px 10px 20px 10px; */
    margin: 0;
    background: transparent;
    box-shadow: none !important;
    transition: none;
}
.gnb-all-panel .gnb-dropdown, .gnb-all-panel .gnb > li.gnb-item--dropdown > .gnb-dropdown{
    padding: 0;
}
.gnb-all-panel .gnb-dropdown::before {
    display: none;
}

.gnb-all-panel .gnb-dropdown:not(.gnb-dropdown--accordion) {
    left: auto;
    width: 100%;
    min-width: 0;
    padding: 0;
}

.gnb-all-panel .gnb-dropdown:not(.gnb-dropdown--accordion) > ul {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
    text-align: left;
}

.gnb-all-panel .gnb-dropdown:not(.gnb-dropdown--accordion) ul > li {
    display: block;
    width: 100%;
    text-align: left;
}

.gnb-all-panel .gnb-dropdown:not(.gnb-dropdown--accordion) ul > li + li {
    margin-top: 2px;
}

.gnb-all-panel .gnb > li.gnb-item--dropdown > .gnb-dropdown:not(.gnb-dropdown--accordion) ul > li > a,
.gnb-all-panel .gnb-dropdown:not(.gnb-dropdown--accordion) ul > li > a {
    display: block;
    width: 100%;
    max-width: 100%;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.5;
    color: #242424;
    text-align: left;
    text-decoration: none;
    white-space: normal;
    box-sizing: border-box;
}

.gnb-all-panel .gnb > li.gnb-item--dropdown > .gnb-dropdown:not(.gnb-dropdown--accordion) ul > li > a:hover,
.gnb-all-panel .gnb > li.gnb-item--dropdown > .gnb-dropdown:not(.gnb-dropdown--accordion) ul > li > a:focus-visible,
.gnb-all-panel .gnb-dropdown:not(.gnb-dropdown--accordion) ul > li > a:hover,
.gnb-all-panel .gnb-dropdown:not(.gnb-dropdown--accordion) ul > li > a:focus-visible {
    color: var(--gnb-all-accent);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: var(--gnb-all-accent);
    text-underline-offset: 2px;
}

.gnb-all-panel .gnb-dropdown--accordion .subnav,
.gnb-all-panel .gnb-dropdown--accordion .subnav > ul {
    width: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
    list-style: none;
    text-align: left;
}

.gnb-all-panel .gnb-dropdown--accordion .subnav > ul > li.dropdown {
    display: block;
    width: 100%;
    margin: 0 0 12px;
    padding: 0;
}

.gnb-all-panel .gnb-dropdown--accordion .subnav > ul > li.dropdown.mg-bot-none{
    margin-bottom: 0;
}

.gnb-all-panel .gnb-dropdown--accordion .subnav > ul > li.dropdown:last-child {
    margin-bottom: 0;
}

.gnb-all-panel .gnb-dropdown--accordion .drop_btn {
    display: block;
    width: 100%;
    height: auto;
    min-height: 0;
    margin: 0 0 4px;
    padding: 0;
    justify-content: flex-start;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.5;
    color: #242424;
    text-align: left;
    white-space: normal;
    background: transparent;
    cursor: default;
    pointer-events: none;
}

.gnb-all-panel .gnb-dropdown--accordion .drop_btn::after {
    display: none;
}

.gnb-all-panel .gnb-dropdown--accordion .drop_cont,
.gnb-all-panel .gnb-dropdown--accordion .dropdown .drop_cont {
    display: block !important;
    max-height: none !important;
    overflow: visible;
    margin: 0;
    padding: 0;
    background: transparent;
}

.gnb-all-panel .gnb-dropdown--accordion .drop_cont::before {
    display: none;
}

.gnb-all-panel .gnb-dropdown--accordion .subnav2 {
    width: 100%;
    margin: 0;
    padding: 0;
    background: transparent;
}

.gnb-all-panel .gnb-dropdown--accordion .subnav2 > ul {
    display: flex;
    /* flex-wrap: wrap; */
    align-items: center;
    gap: 4px 10px;
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
}

.gnb-all-panel .gnb-dropdown--accordion .subnav2 > ul > li {
    display: inline-flex;
    width: auto;
    margin: 0;
    padding: 0;
}

.gnb-all-panel .gnb-dropdown--accordion .subnav2 > ul > li > a {
    display: inline;
    width: auto;
    height: auto;
    padding: 0;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
    color: var(--gnb-all-link-muted);
    text-decoration: none;
    white-space: nowrap;
}

.gnb-all-panel .gnb-dropdown--accordion .subnav2 > ul > li > a:hover,
.gnb-all-panel .gnb-dropdown--accordion .subnav2 > ul > li > a:focus-visible {
    color: var(--gnb-all-accent);
    font-weight: 400;
    text-decoration: underline;
    text-decoration-color: var(--gnb-all-accent);
    text-underline-offset: 2px;
}

.gnb-all-panel .gnb-dropdown--accordion .subnav > ul > li:not(.dropdown) > a {
    display: block;
    width: 100%;
    max-width: 100%;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.5;
    color: #242424;
    text-align: left;
    text-decoration: none;
    white-space: normal;
    box-sizing: border-box;
}

.gnb-all-panel .gnb-dropdown--accordion .subnav > ul > li:not(.dropdown) > a:hover,
.gnb-all-panel .gnb-dropdown--accordion .subnav > ul > li:not(.dropdown) > a:focus-visible {
    color: var(--gnb-all-accent);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: var(--gnb-all-accent);
    text-underline-offset: 2px;
}

header.gnb-all-open .header_in_wrap .gnb > li.gnb-item--dropdown > .gnb-dropdown {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    box-shadow: none !important;
}

header.gnb-all-open .header_in_wrap .gnb > li.gnb-item--dropdown::after {
    display: none;
}

/* PC — 햄버거(X) 버튼 + 헤더 아래 드롭 메뉴 (한강 사이트 방식) */
@media (min-width: 1280px) {
    /* 1280px+: nav·햄버거 원래 위치 (모바일 max-width 규칙과 분리) */
    .header_in_wrap nav {
        position: relative;
        display: flex;
        align-items: center;
        width: auto;
        height: auto;
        overflow: visible;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        background: transparent;
        backdrop-filter: none;
        top: auto;
        left: auto;
    }
    
    .header_link_wrap {
        display: flex;
    }
    
    /* 전체 메뉴 열림 — 헤더 배경을 패널과 동일 화이트 */
    header.gnb-all-open {
        background: #fff;
        color: var(--color-logo-black, #242424);
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
        border-bottom: 1px solid rgba(36, 36, 36, 0.2);
    }
    
    header.gnb-all-open .h_logo img {
        filter: none;
    }
    
    header.gnb-all-open .header_link_top_btn_text {
        border-color: #989898;
    }
    
    header.gnb-all-open .header_link_top_btn_text_title {
        color: #989898;
    }
    
    header.gnb-all-open .header_link_top_btn svg path {
        stroke: #989898;
    }
    
    header.gnb-all-open .header_in_wrap .gnb > li > a {
        color: var(--color-logo-black, #242424);
    }
    
    header.gnb-all-open .header_in_wrap .gnb > li > a::after {
        background: var(--color-logo-lightBlue);
    }
    
    header.gnb-all-open:not(.on) .header_in_wrap .gnb > li.active > a {
        color: var(--color-logo-lightBlue);
    }
    
    .header_in_wrap .header_link {
        position: static;
        top: auto;
        right: auto;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        width: auto;
        height: auto;
        margin: 0;
        padding: 0;
        border: 0;
        background: transparent;
        cursor: pointer;
        z-index: auto;
        opacity: 1;
        pointer-events: auto;
    }
    
    .header_link__icon {
        display: block;
        flex-shrink: 0;
    }
    
    .header_link__icon--close {
        display: none;
    }
    
    .header_link.is-open .header_link__icon--menu {
        display: none;
    }
    
    .header_link.is-open .header_link__icon--close {
        display: block;
    }
    
    .gnb-all-panel {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        max-height: min(640px, calc(100vh - 140px));
    }
    
    .gnb-all-panel .gnb {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
}

.header_link_top_btn_text {
    border-radius: 100px;
    border: 1px solid var(--white, #fff);
    display: flex;
    gap: 10px;
    padding: 1px 15px;
    align-items: center;
    transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.header_link_top_btn a {
    display: inline-flex;
    width: auto;
    height: auto;
    max-width: 100%;
}

.header_link_top_btn .header_link_top_btn_text_title,
.header_link_top_btn svg path {
    transition: color 0.25s ease, stroke 0.25s ease;
}

.header_link_top_btn a:hover .header_link_top_btn_text {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.07);
}

header:not(.on) .header_link_top_btn a:hover .header_link_top_btn_text {
    border-color: var(--color-logo-lightBlue);
    background: rgba(255, 255, 255, 0.14);
}

header:not(.on) .header_link_top_btn a:hover .header_link_top_btn_text_title {
    color: var(--color-logo-lightBlue);
}

header:not(.on) .header_link_top_btn a:hover svg path {
    stroke: var(--color-logo-lightBlue);
}

header.on .header_link_top_btn a:hover .header_link_top_btn_text {
    border-color: var(--color-logo-lightBlue);
    background: rgba(27, 172, 228, 0.1);
}

header.on .header_link_top_btn a:hover .header_link_top_btn_text_title {
    color: var(--color-logo-lightBlue);
}

header.on .header_link_top_btn a:hover svg path {
    stroke: var(--color-logo-lightBlue);
}

.header_sns_wrap ul {
    display: flex;
    gap: 5px;
}

.header_sns_wrap li a {
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    background: #d5d5d5;
    width: 30px;
    height: 30px;
    transition:
    background 0.25s ease,
    transform 0.2s ease;
}

.header_sns_wrap li a svg path {
    fill: #fff;
    transition: fill 0.25s ease;
}

/* 호버 (해당 li에만 적용) */
.header_sns_wrap li:nth-child(1):hover a svg path {
    fill: #0866ff;
}

.header_sns_wrap li:nth-child(2):hover a svg path {
    fill: #03c75a;
}

.header_sns_wrap li:nth-child(3):hover a {
    background: linear-gradient(45deg, #833ab4, #fd1d1d, #f77737, #fcaf45);
}

.header_sns_wrap li:nth-child(3):hover a svg path {
    fill: #fff;
}

.header_sns_wrap li:nth-child(4):hover a svg path {
    fill: #f00;
}

.header_sns_wrap li:hover a {
    transform: translateY(-1px);
}

.header_link_wrap {
    display: flex;
    gap: 10px;
    flex-direction: column;
    align-items: flex-start;
    
}

.header_in_wrap .gnb a {
    display: flex;
    position: relative;
    line-height: 1.2;
    gap: 3px;
}


@media (max-width: 1550px) {
    .header_in_wrap .gnb li {
        padding: 0 1.2rem;
    }
}

@media (max-width: 1400px) {
    .header_in_wrap .h_logo {
        max-width: 200px;
    }
    
    .header_in_wrap .gnb li {
        padding: 0 1.7rem;
    }
    
    .header_in_wrap .gnb {
        font-size: 17px;
    }
    
    .header_in_wrap {
        width: 95%;
    }
}

/* 1280px 미만 — 로고·햄버거 중앙정렬 + PC형 상단 드롭 패널 */
@media (max-width: 1279px) {
    body.nav-menu-open {
        overflow: hidden;
    }
    
    header {
        z-index: 10001;
    }
    
    header .header_in_wrap,
    header.on .header_in_wrap {
        height: var(--header-mobile-h, 80px);
        min-height: var(--header-mobile-h, 80px);
        width: 100%;
        max-width: none;
        padding: 0 clamp(16px, 4vw, 28px);
        justify-content: space-between;
        align-items: center;
        box-sizing: border-box;
    }
    
    .header_in_wrap .h_logo {
        display: flex;
        align-items: center;
        align-self: center;
        max-width: min(140px, 38vw);
        margin: 0;
    }
    
    .header_in_wrap .h_logo a,
    .header_in_wrap .h_logo img {
        display: block;
        width: 100%;
        height: auto;
        line-height: 0;
    }
    
    .header_link_wrap {
        display: none;
    }
    
    .header_in_wrap nav {
        position: static;
        display: flex;
        align-items: center;
        align-self: center;
        flex-shrink: 0;
        width: auto;
        height: auto;
        overflow: visible;
        background: transparent;
        pointer-events: auto;
    }
    
    .header_in_wrap nav > .gnb {
        display: none !important;
    }
    
    .header_in_wrap nav .header_link {
        position: static;
        top: auto;
        right: auto;
        z-index: auto;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        margin: 0;
        padding: 0;
        border: 0;
        background: transparent;
        cursor: pointer;
    }
    
    .header_link__icon {
        display: block;
        flex-shrink: 0;
        width: 36px;
        height: 36px;
    }
    
    .header_link__icon--close {
        display: none;
    }
    
    .header_link.is-open .header_link__icon--menu {
        display: none;
    }
    
    .header_link.is-open .header_link__icon--close {
        display: block;
    }
    
    header.gnb-all-open {
        background: #fff;
        color: var(--color-logo-black, #242424);
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
        border-bottom: 1px solid rgba(36, 36, 36, 0.2);
    }
    
    header.gnb-all-open .h_logo img {
        filter: none;
    }
    
    /* 모바일 — 헤더 아래 전체 너비 + 아코디언 */
    body.nav-menu-open::before {
        content: "";
        position: fixed;
        top: var(--header-mobile-h, 80px);
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 9998;
        background: rgba(0, 0, 0, 0.8);
        pointer-events: auto;
    }
    
    header.gnb-all-open .gnb-all-panel {
        animation: gnbAllPanelIn 0.28s ease;
    }
    
    .gnb-all-panel {
        display: flex;
        flex-direction: column;
        position: fixed;
        right: 0;
        left: 0;
        z-index: 9999;
        width: 100%;
        max-width: none;
        min-width: 0;
        height: 100vh;
        padding: 10px 20px;
        border-top: 1px solid var(--gnb-all-divider);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    }
    
    header:not(.gnb-all-open) .gnb-all-panel {
        display: none;
    }
    
    .gnb-all-panel__inner {
        width: 100%;
        min-height: 0;
        height: auto;
        flex: 1;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .gnb-all-panel .gnb {
        display: flex;
        flex-direction: column;
        min-height: 0;
        height: auto;
    }
    
    .gnb-all-panel .gnb > li {
        flex: 0 0 auto;
        align-self: stretch;
        min-height: 0;
        height: auto;
        padding: 0;
        border-left: none;
        border-right: none;
        border-bottom: 1px solid rgba(36, 36, 36, 0.20);
    }
    
    .gnb-all-panel .gnb > li:last-child {
        border-right: none;
        border-bottom: none;
    }
    
    .gnb-all-panel .gnb > li > a {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        margin: 0;
        padding: 20px 10px;
        font-size: clamp(17px, 4.4vw, 22px);
        font-weight: 600;
        line-height: 1.35;
        cursor: pointer;
    }
    
    .gnb-all-panel .gnb > li > a::before {
        display: none;
    }
    
    .gnb-all-panel .gnb > li > a::after {
        content: "";
        display: block;
        flex-shrink: 0;
        width: 8px;
        height: 8px;
        margin-left: auto;
        border-right: 2px solid var(--gnb-all-accent);
        border-bottom: 2px solid var(--gnb-all-accent);
        transform: rotate(45deg);
        transform-origin: center;
        transition: transform 0.28s ease;
    }
    
    .gnb-all-panel .gnb > li > a.on {
        color: var(--gnb-all-accent);
    }
    
    .gnb-all-panel .gnb > li > a.on::after {
        transform: rotate(-135deg);
    }
    
    .gnb-all-panel .gnb > li > .gnb-dropdown {
        display: none;
        padding: 14px 16px 18px;
        background: #f8f8f8;
    }
    
    /* 일반 메뉴 — 수풀로 체험과 동일: 회색 카드 + pill 버튼 */
    .gnb-all-panel .gnb-dropdown:not(.gnb-dropdown--accordion) > ul {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
        gap: 4px;
        margin-bottom: 20px;
        padding: 13px 15px;
        list-style: none;
        background: #e8eff2;
        border-radius: 10px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    
    .gnb-all-panel .gnb-dropdown:not(.gnb-dropdown--accordion) > ul::-webkit-scrollbar {
        display: none;
    }
    
    /* 4개 이상일 때만 줄바꿈 */
    .gnb-all-panel .gnb-dropdown:not(.gnb-dropdown--accordion) > ul:has(> li:nth-child(4)) {
        flex-wrap: wrap;
        overflow-x: visible;
    }
    
    .gnb-all-panel .gnb-dropdown:not(.gnb-dropdown--accordion) ul > li {
        display: inline-flex;
        flex: 0 0 auto;
        width: auto;
        margin: 0;
        padding: 0;
    }
    
    .gnb-all-panel .gnb > li.gnb-item--dropdown > .gnb-dropdown:not(.gnb-dropdown--accordion) ul > li > a,
    .gnb-all-panel .gnb-dropdown:not(.gnb-dropdown--accordion) ul > li > a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: auto;
        min-height: 36px;
        padding: 8px 14px;
        font-size: 14px;
        font-weight: 500;
        line-height: 1.3;
        color: var(--gnb-all-title);
        white-space: nowrap;
        text-align: center;
        text-decoration: none;
        background: #fff;
        border: 1px solid rgba(36, 36, 36, 0.12);
        border-radius: 999px;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
    }
    
    .gnb-all-panel .gnb > li.gnb-item--dropdown > .gnb-dropdown:not(.gnb-dropdown--accordion) ul > li > a:hover,
    .gnb-all-panel .gnb > li.gnb-item--dropdown > .gnb-dropdown:not(.gnb-dropdown--accordion) ul > li > a:focus-visible,
    .gnb-all-panel .gnb-dropdown:not(.gnb-dropdown--accordion) ul > li > a:hover,
    .gnb-all-panel .gnb-dropdown:not(.gnb-dropdown--accordion) ul > li > a:focus-visible {
        color: var(--gnb-all-accent);
        font-weight: 600;
        border-color: rgba(27, 172, 228, 0.35);
        text-decoration: none;
    }
    
    /* 수풀로 체험 — 회색 카드 + pill 버튼 */
    .gnb-all-panel .gnb-dropdown--accordion .subnav > ul {
        display: flex;
        flex-direction: column;
        gap: 10px;
        margin: 0;
        padding: 0;
        list-style: none;
        margin-bottom: 20px;
    }
    
    .gnb-all-panel .gnb-dropdown--accordion .subnav > ul > li.dropdown {
        margin: 0;
        padding: 14px 16px;
        background: #e8eff2;
        border-radius: 10px;
    }

    .gnb-all-panel .gnb-dropdown--accordion .subnav > ul > li:not(.dropdown) {
        margin: 0;
        padding: 13px 15px;
        background: #e8eff2;
        border-radius: 10px;
    }

    .gnb-all-panel .gnb-dropdown--accordion .subnav > ul > li:not(.dropdown) > a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: auto;
        min-height: 36px;
        padding: 8px 14px;
        font-size: 14px;
        font-weight: 500;
        line-height: 1.3;
        color: var(--gnb-all-title);
        white-space: nowrap;
        text-decoration: none;
        background: #fff;
        border: 1px solid rgba(36, 36, 36, 0.12);
        border-radius: 999px;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
    }

    .gnb-all-panel .gnb-dropdown--accordion .subnav > ul > li:not(.dropdown) > a:hover,
    .gnb-all-panel .gnb-dropdown--accordion .subnav > ul > li:not(.dropdown) > a:focus-visible {
        color: var(--gnb-all-accent);
        font-weight: 600;
        border-color: rgba(27, 172, 228, 0.35);
        text-decoration: underline;
        text-decoration-color: var(--gnb-all-accent);
        text-underline-offset: 2px;
    }
    
    .gnb-all-panel .gnb-dropdown--accordion .drop_btn {
        display: block;
        width: 100%;
        margin: 0 0 10px;
        padding: 0;
        font-size: 15px;
        font-weight: 700;
        line-height: 1.35;
        color: var(--gnb-all-title);
        pointer-events: none;
        cursor: default;
    }
    
    .gnb-all-panel .gnb-dropdown--accordion .drop_btn::after {
        display: none;
    }
    
    .gnb-all-panel .gnb-dropdown--accordion .drop_cont,
    .gnb-all-panel .gnb-dropdown--accordion .dropdown .drop_cont {
        display: block !important;
        max-height: none !important;
        overflow: visible !important;
    }
    
    .gnb-all-panel .gnb-dropdown--accordion .subnav2 > ul {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
        gap: 4px;
        margin: 0;
        padding: 0;
        list-style: none;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    
    .gnb-all-panel .gnb-dropdown--accordion .subnav2 > ul::-webkit-scrollbar {
        display: none;
    }
    
    /* 4개 이상일 때만 줄바꿈 */
    .gnb-all-panel .gnb-dropdown--accordion .subnav2 > ul:has(> li:nth-child(4)) {
        flex-wrap: wrap;
        overflow-x: visible;
    }
    
    .gnb-all-panel .gnb-dropdown--accordion .subnav2 > ul > li {
        display: inline-flex;
        flex: 0 0 auto;
        width: auto;
        margin: 0;
        padding: 0;
    }
    
    .gnb-all-panel .gnb-dropdown--accordion .subnav2 > ul > li > a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: auto;
        min-height: 36px;
        padding: 8px 14px;
        font-size: 14px;
        font-weight: 500;
        line-height: 1.3;
        color: var(--gnb-all-title);
        white-space: nowrap;
        text-decoration: none;
        background: #fff;
        border: 1px solid rgba(36, 36, 36, 0.12);
        border-radius: 999px;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
    }
    
    .gnb-all-panel .gnb-dropdown--accordion .subnav2 > ul > li > a:hover,
    .gnb-all-panel .gnb-dropdown--accordion .subnav2 > ul > li > a:focus-visible {
        color: var(--gnb-all-accent);
        font-weight: 600;
        border-color: rgba(27, 172, 228, 0.35);
        text-decoration: none;
    }
    
    /* 소통/알림 아래 — SNS 4개 + 한강유역환경청 (1280px 이하만) */
    .gnb-item--mo-only {
        display: none;
    }
    
    .gnb-all-panel .gnb-item--mo-only {
        display: block;
        width: 100%;
        padding: 0;
        border-bottom: none;
    }
    
    .gnb-all-panel .gnb-mo-links {
        display: flex;
        flex-direction: row;
        align-items: stretch;
        gap: 10px;
        width: 100%;
        padding: 30px 0px;
        box-sizing: border-box;
    }
    
    .gnb-all-panel .gnb-mo-links__sns {
        display: flex;
        align-items: stretch;
        flex: 1;
    }
    
    .gnb-all-panel .gnb-mo-links__sns ul {
        display: flex;
        flex: 1;
        flex-direction: row;
        align-items: center;
        gap: 6px;
        width: 100%;
        height: 100%;
        min-height: 72px;
        margin: 0;
        padding: 10px 8px;
        list-style: none;
        border-radius: 10px;
        background: #e8eff2;
        box-sizing: border-box;
        justify-content: space-around;
    }
    
    .gnb-all-panel .gnb-mo-links__sns li {
        display: flex;
        min-width: 0;
        align-items: stretch;
        justify-content: stretch;
    }
    
    .gnb-all-panel .gnb-mo-links__sns li a {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 30px;
        height: 30px;
        min-height: 0;
        aspect-ratio: auto;
        border-radius: 50%;
        background: #fff;
        box-sizing: border-box;
    }
    
    .gnb-all-panel .gnb-mo-links__sns li a svg {
        width: 50%;
        height: auto;
        max-width: 28px;
        max-height: 50%;
    }
    
    .gnb-all-panel .gnb-mo-links__sns li:nth-child(1) a svg path {
        fill: #0866ff;
    }
    
    .gnb-all-panel .gnb-mo-links__sns li:nth-child(2) a svg path {
        fill: #03c75a;
    }
    
    .gnb-all-panel .gnb-mo-links__sns li:nth-child(3) a svg path {
        fill: #de02d6;
    }
    
    .gnb-all-panel .gnb-mo-links__sns li:nth-child(4) a svg path {
        fill: #ff0133;
    }
    
    .gnb-all-panel .gnb-mo-links__hg {
        display: flex;
        align-items: stretch;
        min-height: 72px;
        border-radius: 10px;
        background: #e8eff2;
        padding: 10px 8px;
        box-sizing: border-box;
        flex: 1;
        justify-content: center;
    }
    
    .gnb-all-panel .gnb-mo-links__hg a {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 100%;
        min-height: 0;
    }
    
    .gnb-all-panel .gnb-mo-links__hg a > svg {
        display: block;
        width: 100%;
        height: 100%;
        max-width: 130px;
        width: 100%;
        max-height: 100%;
        object-fit: contain;
    }
}

@media (min-width: 1280px) {
    .header_in_wrap .gnb-item--mo-only,
    .gnb-all-panel .gnb-item--mo-only {
        display: none !important;
    }
}

/* 390px 이하 — 모바일 전체 메뉴 inner 공간 축소 (390 목업 기준 vw) */
@media (max-width: 390px) {
    .gnb-all-panel .gnb > li > a {
        gap: clamp(8px, 2.05vw, 12px);
        padding: clamp(14px, 4.1vw, 20px) clamp(8px, 2.56vw, 10px);
        font-size: clamp(15px, 4.1vw, 17px);
    }
    
    .gnb-all-panel .gnb > li > a::after {
        width: 9px;
        height: 9px;
    }
    
    .gnb-all-panel .gnb > li > .gnb-dropdown {
        padding: clamp(10px, 2.56vw, 14px) clamp(10px, 2.56vw, 16px)
        clamp(12px, 3.08vw, 18px);
    }
    
    .gnb-all-panel .gnb-dropdown:not(.gnb-dropdown--accordion) > ul {
        gap: 6.5px;
        padding: 13px 15px;
        border-radius: clamp(8px, 2.05vw, 10px);
        margin-bottom: 15px;
    }
    
    .gnb-all-panel .gnb > li.gnb-item--dropdown > .gnb-dropdown:not(.gnb-dropdown--accordion) ul > li > a,
    .gnb-all-panel .gnb-dropdown:not(.gnb-dropdown--accordion) ul > li > a {
        min-height: clamp(30px, 7.69vw, 34px);
        padding: 6.5px 14px;
        font-size: clamp(14px, 2.82vw, 14px);
        border-radius: clamp(16px, 4.1vw, 999px);
    }
    
    .gnb-all-panel .gnb-dropdown--accordion .subnav > ul {
        gap: clamp(8px, 2.05vw, 10px);
        margin-bottom: 15px;
    }
    
    .gnb-all-panel .gnb-dropdown--accordion .subnav > ul > li.dropdown {
        padding: 10px 15px;
        border-radius: clamp(8px, 2.05vw, 10px);
    }

    .gnb-all-panel .gnb-dropdown--accordion .subnav > ul > li:not(.dropdown) {
        padding: 10px 15px;
        border-radius: clamp(8px, 2.05vw, 10px);
    }

    .gnb-all-panel .gnb-dropdown--accordion .subnav > ul > li:not(.dropdown) > a {
        min-height: clamp(30px, 7.69vw, 34px);
        padding: 6.5px 14px;
        font-size: 14px;
        border-radius: clamp(16px, 4.1vw, 999px);
    }
    
    .gnb-all-panel .gnb-dropdown--accordion .drop_btn {
        margin-bottom: clamp(6px, 1.54vw, 10px);
        font-size: 15px;
    }
    
    .gnb-all-panel .gnb-dropdown--accordion .subnav2 > ul {
        gap: 6.5px;
    }
    
    .gnb-all-panel .gnb-dropdown--accordion .subnav2 > ul > li > a {
        min-height: clamp(30px, 7.69vw, 34px);
        padding: 6.5px 14px;
        font-size: 14px;
        border-radius: clamp(16px, 4.1vw, 999px);
    }
    
    
}
