/* =====================================================================
   홍간판 공통 상단·하단 (메인 리뉴얼 디자인)
   inc/site_nav.jsp, inc/site_footer.jsp 전용. 메인과 서브페이지가 함께 쓴다.
   기존 서브페이지 CSS(layout.css, menu.css)가 header/footer/a/ul 같은 요소 전체와
   html 글자 크기(50%)를 바꿔 두었기 때문에, 요소 선택자를 쓰지 않고 #hsNav, #hsFoot 아래로만,
   크기는 px 로만 지정한다.
   ===================================================================== */
#hsNav, #hsMobileMenu, #hsFoot, #hsBottomBar {
    --hs-ink: #101114;
    --hs-mist: #f5f5f3;
    --hs-line: #e6e6e2;
    --hs-hong: #e8330f;
    --hs-glow: #ffe9c4;
    --hs-body: 'Pretendard Variable', Pretendard, -apple-system, sans-serif;
    --hs-mono: 'IBM Plex Mono', monospace;
    font-family: var(--hs-body);
    font-size: 14px;
    line-height: 1.65;
    letter-spacing: normal;
    -webkit-font-smoothing: antialiased;
    box-sizing: border-box;
}
#hsNav *, #hsMobileMenu *, #hsFoot *, #hsBottomBar * { box-sizing: border-box; margin: 0; padding: 0; }
#hsNav a, #hsMobileMenu a, #hsFoot a, #hsBottomBar a { text-decoration: none !important; transition: color .2s, opacity .2s, box-shadow .15s, transform .15s; }
#hsNav img, #hsFoot img { display: block; max-width: none; vertical-align: top; }

/* ---------- 상단 바 ---------- */
#hsNav { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; background: rgba(10, 11, 16, .9); color: #fff; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(255, 255, 255, .08); }
#hsNav .hs-nav-in { max-width: 1160px; margin: 0 auto; padding: 0 24px; height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
#hsNav .hs-logo { display: flex; align-items: center; gap: 10px; flex-shrink: 1; min-width: 0; }
#hsNav .hs-logo .hs-l-logo { height: 36px; width: auto; flex-shrink: 0; }
#hsNav .hs-logo .hs-l-gif { height: 28px; width: auto; min-width: 0; }
#hsNav .hs-links { display: flex; align-items: center; gap: 28px; font-size: 14.5px; font-weight: 600; }
#hsNav .hs-links > a, #hsNav .hs-sns > button { color: #fff; opacity: .8; padding: 4px 0; border-bottom: 2px solid transparent; white-space: nowrap; }
#hsNav .hs-links > a:hover, #hsNav .hs-sns > button:hover, #hsNav .hs-sns.open > button { opacity: 1; color: var(--hs-hong); }
#hsNav .hs-links > a.active { opacity: 1; color: var(--hs-hong); border-bottom-color: var(--hs-hong); }
#hsNav.on-dark .hs-links > a:hover, #hsNav.on-dark .hs-sns > button:hover { color: var(--hs-glow); }
#hsNav.on-dark .hs-links > a.active { color: var(--hs-glow); border-bottom-color: var(--hs-glow); }

/* SNS 펼침 메뉴 */
#hsNav .hs-sns { position: relative; }
#hsNav .hs-sns > button { background: none; border: 0; border-bottom: 2px solid transparent; font: inherit; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; }
#hsNav .hs-sns > button::after { content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .2s; }
#hsNav .hs-sns.open > button::after { transform: translateY(1px) rotate(-135deg); }
#hsNav .hs-sns-list { position: absolute; top: calc(100% + 12px); left: 50%; min-width: 200px; padding: 8px; background: #fff; border-radius: 12px; box-shadow: 0 16px 40px rgba(0, 0, 0, .22); opacity: 0; visibility: hidden; transform: translate(-50%, -6px); transition: opacity .18s, transform .18s, visibility .18s; }
#hsNav .hs-sns-list::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
#hsNav .hs-sns.open .hs-sns-list { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
#hsNav .hs-sns-list a { display: block; padding: 10px 14px; border-radius: 8px; color: var(--hs-ink); font-size: 14.5px; font-weight: 600; white-space: nowrap; }
#hsNav .hs-sns-list a:hover { background: var(--hs-mist); color: var(--hs-hong); }

#hsNav .hs-cta { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
#hsNav .hs-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 700; font-size: 14px; border-radius: 10px; padding: 9px 18px; cursor: pointer; border: none; font-family: var(--hs-body); line-height: 1.5; white-space: nowrap; }
#hsNav .hs-btn:active { transform: scale(.97); }
#hsNav .hs-btn-red { background: var(--hs-hong); color: #fff !important; box-shadow: 0 4px 14px rgba(232, 51, 15, .28); }
#hsNav .hs-btn-red:hover { box-shadow: 0 6px 20px rgba(232, 51, 15, .4); }
#hsNav .hs-btn-ghost { background: transparent; border: 1.5px solid currentColor; color: #fff !important; }

#hsNav .hs-toggle { display: none; background: none; border: none; cursor: pointer; width: 40px; height: 40px; position: relative; color: #fff; }
#hsNav .hs-toggle span { position: absolute; left: 9px; right: 9px; height: 2px; background: currentColor; transition: .25s; }
#hsNav .hs-toggle span:nth-child(1) { top: 14px; }
#hsNav .hs-toggle span:nth-child(2) { top: 20px; }
#hsNav .hs-toggle span:nth-child(3) { top: 26px; }

/* 모바일 메뉴 */
#hsMobileMenu { display: none; }

/* 기존 서브페이지의 상단 자리(고정 상단 높이만큼 비워 두는 칸)를 새 상단 높이에 맞춘다 */
.header_empty_space { height: 64px !important; }

@media (max-width: 1100px) {
    #hsNav .hs-logo .hs-l-gif { height: 22px; }
    #hsNav .hs-links { gap: 20px; }
}
@media (max-width: 960px) {
    #hsNav .hs-links, #hsNav .hs-cta .hs-btn { display: none; }
    #hsNav .hs-toggle { display: block; }
    #hsMobileMenu { display: block; position: fixed; top: 64px; left: 0; right: 0; max-height: calc(100vh - 64px); overflow-y: auto; background: #fff; border-bottom: 1px solid var(--hs-line); padding: 10px 24px 18px; z-index: 999; transform: translateY(-120%); transition: transform .28s; box-shadow: 0 20px 40px rgba(0, 0, 0, .08); }
    #hsMobileMenu.open { transform: none; }
    #hsMobileMenu a { display: block; padding: 13px 0; font-weight: 700; font-size: 16px; border-bottom: 1px solid var(--hs-mist); color: var(--hs-ink); }
    #hsMobileMenu a.active { color: var(--hs-hong); }
    #hsMobileMenu .hs-m-sns { padding: 13px 0 4px; font-size: 12px; font-weight: 700; letter-spacing: .1em; color: #75787f; font-family: var(--hs-mono); }
    #hsMobileMenu .hs-m-sns-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 16px; }
    #hsMobileMenu .hs-m-sns-list a { font-size: 15px; font-weight: 600; }
}
@media (max-width: 680px) {
    #hsNav .hs-logo { gap: 8px; }
    #hsNav .hs-logo .hs-l-logo { height: 30px; }
    #hsNav .hs-logo .hs-l-gif { height: auto; max-width: calc(100vw - 150px); }
}

/* ---------- 하단 ---------- */
#hsFoot { background: #0a0b10; color: rgba(255, 255, 255, .6); padding: 56px 0 40px; font-size: 14px; border-top: 1px solid rgba(255, 255, 255, .07); }
#hsFoot .hs-foot-in { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
#hsFoot .hs-foot-grid { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
#hsFoot .hs-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
#hsFoot .hs-logo .hs-l-logo { height: 34px; width: auto; }
#hsFoot .hs-logo .hs-l-gif { height: 26px; width: auto; max-width: calc(100vw - 120px); }
#hsFoot .hs-foot-info p { margin-bottom: 4px; color: rgba(255, 255, 255, .6); }
#hsFoot .hs-foot-links { display: flex; gap: 22px; font-weight: 600; flex-wrap: wrap; }
#hsFoot a { color: rgba(255, 255, 255, .6); }
#hsFoot a:hover { color: #fff; }
#hsFoot .hs-foot-sns { margin-top: 18px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: 12px; display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; }
#hsFoot .hs-foot-sns span { color: rgba(255, 255, 255, .35); font-weight: 700; margin-right: 4px; }
#hsFoot .hs-foot-sns a { color: rgba(255, 255, 255, .45); }
#hsFoot .hs-foot-copy { margin-top: 36px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .08); font-family: var(--hs-mono); font-size: 11.5px; color: rgba(255, 255, 255, .35); }

/* ---------- 하단 고정 상담 바 ---------- */
#hsBottomBar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 995; display: grid; grid-template-columns: 1fr 1fr; box-shadow: 0 -6px 24px rgba(0, 0, 0, .14); }
#hsBottomBar a { padding: 15px 10px; text-align: center; font-weight: 800; font-size: 15.5px; letter-spacing: .01em; line-height: 1.5; color: #fff; }
#hsBottomBar .hs-bb-tel { background: var(--hs-ink); }
#hsBottomBar .hs-bb-consult { background: var(--hs-hong); }
body.hs-has-bar { padding-bottom: 54px; }
