@charset "utf-8";
/* =====================================================================
   틀 — 머리글 · 주 메뉴 · 전체 메뉴(휴대폰) · 서브 상단 · 본문 틀 · 꼬리말
   ===================================================================== */

.container {
    width: 100%;
    max-width: calc(var(--container) + var(--gutter) * 2);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.skip-link {
    position: absolute;
    top: -100px;
    left: var(--sp-4);
    z-index: 1000;
    padding: var(--sp-3) var(--sp-4);
    border-radius: var(--radius-sm);
    background: var(--c-bg-dark);
    color: #fff;
}
.skip-link:focus { top: var(--sp-3); color: #fff; }

/* ---------- 머리글 ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--c-line);
    background: rgba(255, 255, 255, .97);
    -webkit-backdrop-filter: saturate(180%) blur(8px);
    backdrop-filter: saturate(180%) blur(8px);
}

.site-header__inner {
    display: flex;
    align-items: center;
    gap: var(--sp-5);
    height: var(--header-h);
}

.site-logo { flex: 0 0 auto; margin: 0; }
.site-logo a { display: block; }
.site-logo img { display: block; width: 190px; height: auto; }

/* 주 메뉴 */
.gnb {
    flex: 1 1 auto;
    align-self: stretch;
    min-width: 0;
}

.gnb__list {
    display: flex;
    justify-content: center;
    height: 100%;
}

.gnb__item {
    position: relative;
    display: flex;
}

.gnb__link {
    position: relative;
    display: flex;
    align-items: center;
    padding: 0 clamp(10px, 1.3vw, 20px);
    color: var(--c-text);
    font-size: var(--fs-md);
    font-weight: 600;
    white-space: nowrap;
}

.gnb__link::after {
    content: "";
    position: absolute;
    right: 50%;
    bottom: -1px;
    left: 50%;
    height: 3px;
    border-radius: 0;
    background: var(--c-primary);
    transition: left .2s var(--ease), right .2s var(--ease);
}

.gnb__item:hover > .gnb__link::after,
.gnb__item:focus-within > .gnb__link::after,
.gnb__item.is-current > .gnb__link::after {
    right: 12px;
    left: 12px;
}

.gnb__item.is-current > .gnb__link { color: var(--c-primary-strong); }

.gnb__sub {
    position: absolute;
    top: 100%;
    left: 50%;
    min-width: 172px;
    padding: var(--sp-2) 0;
    border: 1px solid var(--c-line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, 6px);
    transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s;
}

.gnb__item:hover > .gnb__sub,
.gnb__item:focus-within > .gnb__sub {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

.gnb__sub a {
    display: block;
    padding: 10px 20px;
    color: var(--c-text-sub);
    white-space: nowrap;
}

.gnb__sub a:hover,
.gnb__sub a:focus-visible {
    background: var(--c-primary-soft);
    color: var(--c-primary-strong);
}

.gnb__sub a[aria-current="page"] {
    color: var(--c-primary-strong);
    font-weight: 700;
}

/* 로그인 · 회원가입 */
.site-util {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 2px;
}

.site-util__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: var(--radius-pill);
    color: var(--c-text-muted);
    font-size: var(--fs-sm);
    white-space: nowrap;
}

.site-util__link:hover {
    background: var(--c-bg-soft);
    color: var(--c-text);
}

/* 사이트관리 (담당자 메뉴) — 마우스를 올리거나 누르면 작은 레이어로 팝업관리 · 사이버자원봉사 (js initUtilMenus) */
.util-menu { position: relative; }

.util-menu__toggle {
    border: 0;
    background: transparent;
    font-family: inherit;
    line-height: inherit;
    cursor: pointer;
}

.util-menu__caret {
    font-size: 12px;
    transition: transform .18s var(--ease);
}

.util-menu:hover > .util-menu__toggle,
.util-menu.is-open > .util-menu__toggle {
    background: var(--c-bg-soft);
    color: var(--c-text);
}

.util-menu:hover > .util-menu__toggle .util-menu__caret,
.util-menu.is-open > .util-menu__toggle .util-menu__caret { transform: rotate(180deg); }

.util-menu__list {
    position: absolute;
    top: 100%;
    left: 50%;
    z-index: 10;
    min-width: 136px;
    margin: 0;
    padding: 4px 0;
    border: 1px solid var(--c-line);
    background: #fff;
    box-shadow: var(--shadow-lg);
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, 4px);
    transition: opacity .15s var(--ease), transform .15s var(--ease), visibility .15s;
}

.util-menu:hover > .util-menu__list,
.util-menu.is-open > .util-menu__list {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

/* Esc 로 닫으면 마우스가 올라가 있어도 닫아 둔다 (마우스가 나가면 풀림) */
.util-menu.is-dismissed > .util-menu__list {
    opacity: 0;
    visibility: hidden;
}

.util-menu__list a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    color: var(--c-text-sub);
    font-size: var(--fs-sm);
    white-space: nowrap;
}

.util-menu__list .fa {
    width: 14px;
    color: var(--c-text-muted);
    text-align: center;
}

.util-menu__list a:hover,
.util-menu__list a:focus-visible {
    background: var(--c-primary-soft);
    color: var(--c-primary-strong);
}

.util-menu__list a:hover .fa,
.util-menu__list a:focus-visible .fa { color: inherit; }

/* 관리자(그누보드 관리 화면)는 담당자 메뉴와 가는 선으로 나눔 */
.util-menu__list li + .util-menu__item--admin {
    margin-top: 4px;
    padding-top: 4px;
    border-top: 1px solid var(--c-line);
}

.menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-right: -8px;
    border: 0;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--c-text);
    font-size: 24px;
}

@media (max-width: 1279px) {
    .site-logo img { width: 170px; }
    .gnb__link { font-size: var(--fs-base); }
    .site-util__link .fa { display: none; }
    .site-util__link .util-menu__caret { display: inline-block; }

    /* 담당자 메뉴를 가운데 맞추면 1024~1279px 에서 화면 오른쪽 끝을 1px 넘어 가로 스크롤이 생긴다 → 오른쪽 끝에 맞춤 */
    .util-menu__list { left: auto; right: 0; transform: translate(0, 4px); }
    .util-menu:hover > .util-menu__list,
    .util-menu.is-open > .util-menu__list { transform: translate(0, 0); }
}

@media (max-width: 1023px) {
    .gnb,
    .util-menu,
    .site-util__link { display: none; }
    .site-header__inner { justify-content: space-between; }
    .site-logo img { width: 150px; }
    .menu-toggle { display: inline-flex; }
}

/* ---------- 전체 메뉴 (휴대폰 · 태블릿) ---------- */
.drawer {
    position: fixed;
    inset: 0;
    z-index: 200;
}
.drawer[hidden] { display: none; }

.drawer__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(17, 24, 39, .5);
}

.drawer__panel {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    width: min(360px, 88vw);
    background: #fff;
    box-shadow: var(--shadow-lg);
    animation: drawer-in .22s var(--ease);
}

@keyframes drawer-in {
    from { transform: translateX(100%); }
    to { transform: none; }
}

.drawer__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 12px 12px var(--sp-5);
    border-bottom: 1px solid var(--c-line);
}

.drawer__title { font-size: var(--fs-md); }

.drawer__close {
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: var(--radius-sm);
    background: transparent;
    font-size: 22px;
}

.drawer__member {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--sp-2);
    padding: var(--sp-4) var(--sp-5);
    background: var(--c-bg-soft);
}

.drawer__hello { margin-right: auto; }

.drawer__nav {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.drawer__group { border-bottom: 1px solid var(--c-line); }

.drawer__toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 16px var(--sp-5);
    border: 0;
    background: none;
    color: var(--c-text);
    font-size: var(--fs-md);
    font-weight: 600;
    text-align: left;
}

.drawer__toggle .fa { color: var(--c-text-muted); transition: transform .2s; }
.drawer__toggle[aria-expanded="true"] { color: var(--c-primary-strong); }
.drawer__toggle[aria-expanded="true"] .fa { transform: rotate(180deg); }

.drawer__sub {
    padding: 0 0 var(--sp-3);
    background: var(--c-bg-soft);
}
.drawer__sub[hidden] { display: none; }

.drawer__sub a {
    display: block;
    padding: 10px var(--sp-6);
    color: var(--c-text-sub);
}

.drawer__sub a[aria-current="page"] {
    color: var(--c-primary-strong);
    font-weight: 700;
}

body.is-drawer-open { overflow: hidden; }

/* ---------- 서브 상단 ---------- */
.site-main { display: block; }

.sub-hero {
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--c-line);
    background:
        radial-gradient(circle at 85% 15%, rgba(255, 255, 255, .9) 0, rgba(255, 255, 255, 0) 45%),
        linear-gradient(120deg, #f4f4f4 0%, #e9e9e9 100%);
}

.sub-hero__inner {
    padding-top: clamp(32px, 5vw, 64px);
    padding-bottom: clamp(24px, 3.5vw, 40px);
}

.sub-hero__title {
    margin: 0;
    color: var(--c-text);
    font-size: clamp(1.75rem, 3.2vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-top: var(--sp-3);
    color: var(--c-text-muted);
    font-size: var(--fs-sm);
}

.breadcrumb li + li::before {
    content: "\203A";
    margin-right: 6px;
    color: #9aa1ad;
}

.breadcrumb a { color: inherit; }
.breadcrumb a:hover { color: var(--c-text); }
.breadcrumb [aria-current="page"] { color: var(--c-text); font-weight: 600; }

/* 하위 메뉴 줄 */
.local-nav {
    position: sticky;
    top: var(--header-h);
    z-index: 50;
    border-bottom: 1px solid var(--c-line);
    background: #fff;
}

.local-nav__list {
    display: flex;
    gap: var(--sp-1);
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.local-nav__list::-webkit-scrollbar { display: none; }

.local-nav__list a {
    display: block;
    padding: 15px 16px 13px;
    border-bottom: 3px solid transparent;
    color: var(--c-text-sub);
    font-weight: 500;
    white-space: nowrap;
}

.local-nav__list a:hover { color: var(--c-text); }

.local-nav__list a[aria-current="page"] {
    border-color: var(--c-primary);
    color: var(--c-primary-strong);
    font-weight: 700;
}

/* ---------- 본문 틀 ---------- */
.site-content {
    padding-top: clamp(32px, 5vw, 56px);
    padding-bottom: clamp(56px, 8vw, 96px);
}

.content-head {
    margin-bottom: clamp(24px, 4vw, 40px);
    padding-bottom: var(--sp-4);
    border-bottom: 2px solid var(--c-text);
}

.content-title {
    font-size: clamp(1.5rem, 2.6vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.02em;
}

/* ---------- 꼬리말 ---------- */
.site-footer {
    background: var(--c-bg-dark);
    color: #c9ced6;
    font-size: var(--fs-sm);
}

.site-footer a { color: inherit; }
.site-footer a:hover { color: #fff; }

.site-footer__top { border-bottom: 1px solid rgba(255, 255, 255, .08); }

.site-footer__policy {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 24px;
    padding: var(--sp-4) 0;
}

.site-footer__policy a { color: #e5e7eb; }
.site-footer__policy .is-strong a { color: #fff; font-weight: 700; }

.site-footer__body {
    padding-top: var(--sp-6);
    padding-bottom: var(--sp-7);
}

.site-footer__brand {
    margin-bottom: var(--sp-3);
    color: #fff;
    font-size: var(--fs-md);
    font-weight: 700;
}

.site-footer__info { line-height: 1.9; }
.site-footer__info span { display: inline-block; margin-right: var(--sp-4); }
.site-footer__copy { margin-top: var(--sp-3); color: #8b93a1; }

/* 맨 위로 */
.to-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 90;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 50%;
    background: var(--c-primary);
    color: #fff;
    font-size: 18px;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity .2s, transform .2s, visibility .2s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--c-primary-strong); }

/* ---------- 팝업레이어 (관리자 > 팝업레이어관리) ---------- */
#hd_pop {
    position: relative;
    z-index: 1000;
    max-width: var(--container);
    height: 0;
    margin: 0 auto;
}
#hd_pop h2 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.hd_pops {
    position: absolute;
    overflow: hidden;
    border: 1px solid var(--c-line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow-lg);
}
.hd_pops img { max-width: 100%; height: auto; }

.hd_pops_footer {
    position: relative;
    display: flex;
    background: var(--c-bg-dark);
    color: #fff;
}
.hd_pops_footer button {
    padding: 12px 14px;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: var(--fs-sm);
}
.hd_pops_footer .hd_pops_reject { flex: 1; text-align: left; }
.hd_pops_footer .hd_pops_close { position: static; background: rgba(255, 255, 255, .12); }

@media (max-width: 767px) {
    .hd_pops {
        position: fixed;
        top: 76px !important;
        left: 4% !important;
        width: 92% !important;
    }
    .hd_pops_con {
        width: auto !important;
        height: auto !important;
        max-height: 65vh;
        overflow-y: auto;
    }
}
