/* ==========================================================
   jjtheme.css v1.7

   ★ 사이트 폭 설정 ★
   --wrap 값 하나만 바꾸면 전체 레이아웃 폭이 바뀝니다.
   현재값: 1200px
   
   ★ 구조 ★
   1. 변수 및 리셋
   2. 공통 컴포넌트
   3. PC 헤더
   4. 모바일 헤더 & 사이드 메뉴
   5. 서브 비주얼 & 레이아웃
   6. 사이드바
   7. 게시판
   8. 메인 슬라이더
   9. 메인 콘텐츠
   10. 푸터
   11. 하단 고정 배너
   12. 반응형 (모바일 스크롤 방지 + 로고 크기 포함)
   13. 헤더 고정 최종 보강 (게시판 2컬럼 레이아웃 대응)
   14. 카카오맵 모바일 대응 (overflow hidden 문제 해결)
   
   ★ 2026-05-17 수정 내역 ★
   - 2차 메뉴 위치: justify-content: flex-start + margin-left: 200px (왼쪽 정렬 후 오른쪽으로 밀기)
   - 2차 메뉴 애니메이션 제거 (오르락내리락 현상 해결)
   - 관리자 톱니바퀴: 알약 → 동그라미 (width:34px, border-radius:50%)
   - 회원명 표시(.util_welcome): 테두리 알약 스타일 적용
   - 모바일 헤더 전환 기준: 768px → 960px (태블릿 대응 강화)
   - PC 헤더 좁은 화면(769px~1150px) 대응: margin-left 200px → 100px로 축소
   - z-index 구조 정리: 헤더(10000), 사이드 본체(10001), 사이드 배경(9999)
   
   ★ 2026-05-20 수정 내역 ★
   - 모바일(960px 이하)에서 .contact-section .inner overflow-x: visible !important 추가
   - 카카오맵 모바일 표시 문제 최종 해결
   
   ★ 2026-05-25 수정 내역 ★
   - 팝업 레이어(#hd_pop) display:none 제거, position:fixed로 변경하여 헤더 밀림 방지
   
   ★ 2026-05-26 수정 내역 ★
   - 하단 고정 배너(.bottom-banner) 추가
   - body 하단 여백 추가 (배너 높이만큼)
   ========================================================== */

/* ══════════════════════════════════════════════════════════
   1. 변수 및 리셋
   ══════════════════════════════════════════════════════════ */
:root {
    --wrap:        1200px;
    --jj-sb-width: 240px;
    --brand:       #1a76fd;      /* 메인 브랜드 컬러 (파랑) */
    --brand-d:     #19459d;      /* 다크 버전 (로고, 띠) */
    --brand-light: #caedf4;      /* 라이트 버전 (배경) */
    --accent:      #ff7b1e;      /* 강조 컬러 (주황) */
    --accent-d:    #ffa669;      /* 강조 다크 */
    --txt:         #222;         /* 기본 텍스트 */
    --txt-s:       #666;         /* 보조 텍스트 */
    --border:      #dbe1ec;      /* 테두리 컬러 (연한 청회색) */
    --bg:          #F6F8FB;      /* 배경 컬러 */
    --white:       #FFF;         /* 흰색 */
    --font:        'SUIT', 'Noto Sans KR', sans-serif;
    --radius:      8px;          /* 기본 둥글기 */
    --shadow:      0 4px 20px rgba(0,0,0,.10);
    --trans:       .22s ease;
    --hd1-h:       70px;
    --hd2-h:       46px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font); color: var(--txt);
    line-height: 1.65; background: var(--white); word-break: keep-all;
}
a { color: inherit; text-decoration: none; transition: color var(--trans); cursor: pointer; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
button { cursor: pointer; background: none; border: none; font-family: inherit; }
.sound_only {
    position: absolute; width: 1px; height: 1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* ══════════════════════════════════════════════════════════
   2. 공통 컴포넌트
   ══════════════════════════════════════════════════════════ */
.inner { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
#hd_login_msg { display: none !important; }


/* 팝업 레이어 - fixed 유지, 개별 팝업의 DB 위치 값 강제 적용 */
#hd_pop > h2,
#hd_pop > p {
    display: none !important;
}
#hd_pop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99999;
    pointer-events: none;  /* 배경 클릭 허용 */
}
/* 개별 팝업 - DB의 top/left 값을 강제로 적용 */
.hd_pops {
    position: fixed !important;
    pointer-events: auto;  /* 팝업 자체는 클릭 가능 */
}

/* ══════════════════════════════════════════════════════════
   3. PC 헤더
   ══════════════════════════════════════════════════════════ */
#jj_header_wrap {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    background: var(--white);
    box-shadow: 0 2px 12px rgba(0,0,0,.09);
}
#hd_row1 { border-bottom: 1px solid var(--border); position: relative; }
.hd_inner {
    max-width: var(--wrap); margin: 0 auto; padding: 0 24px;
    display: flex; align-items: center; height: var(--hd1-h);
}
.logo { flex-shrink: 0; margin-right: 48px; }
.logo img { height: 44px; width: auto; }
#gnb { flex: 1; }
#gnb_1depth { display: flex; height: var(--hd1-h); }
.gnb_1d_li {
    position: relative; display: flex; align-items: center;
}
.gnb_1d_a {
    display: flex; align-items: center; height: 100%; padding: 0 22px;
    font-size: 15px; font-weight: 600; color: var(--txt);
    white-space: nowrap; transition: color var(--trans);
    cursor: pointer;
}
.gnb_1d_li:hover .gnb_1d_a,
.gnb_1d_li.on    .gnb_1d_a { color: var(--brand); }
.gnb_1d_li::after {
    content: ''; position: absolute; bottom: 0; left: 22px; right: 22px;
    height: 3px; background: var(--brand);
    transform: scaleX(0); transform-origin: center;
    transition: transform var(--trans);
}
.gnb_1d_li:hover::after,
.gnb_1d_li.on::after { transform: scaleX(1); }
.hd_util { margin-left: auto; display: flex; gap: 6px; align-items: center; flex-shrink: 0; }
.util_btn {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 7px 14px; border: 1px solid var(--border); border-radius: 20px;
    font-size: 13px; color: var(--txt-s); white-space: nowrap; transition: color var(--trans), border-color var(--trans), background-color var(--trans);
    cursor: pointer;
}
.util_btn:hover { border-color: var(--brand); color: var(--brand); }

/* ★ 수정: head 부분 로그인 사용자 표시 (2026-05-17: 알약 스타일로 변경) ★ */
.util_welcome {
    font-size: 13px;
    color: var(--txt);
    white-space: nowrap;
    background: var(--white);
    padding: 6px 12px;
    border-radius: 30px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    border: 1px solid var(--border);
}
.util_welcome i {
    color: var(--brand);
    font-size: 15px;
}
.util_welcome:hover {
    background: var(--brand-light);
    border-color: var(--brand);
}

/* ★ 수정: 관리자 톱니바퀴 버튼 - 알약모양 제거, 동그라미로 변경 (2026-05-17) ★ */
.util_admin { 
    border-color: #aaa; 
    color: #555; 
    background: #f5f5f5;
    width: 34px;
    height: 34px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}
.util_admin i { 
    font-size: 16px; 
    margin: 0;
}
.util_admin:hover { 
    background: #333; 
    border-color: #333; 
    color: var(--white); 
}
.util_admin:hover i { 
    color: var(--white); 
}

/* 또는 톱니만 살짝 크게 하는 대체 스타일 (주석 해제 후 util_admin 주석 처리) */
/*
.util_admin {
    border: none !important;
    background: transparent !important;
    padding: 0 6px;
    width: auto;
    height: auto;
    border-radius: 0;
}
.util_admin i {
    font-size: 20px !important;
    color: #555;
}
.util_admin:hover i {
    color: var(--brand);
}
*/

.util_contact {
    background: var(--brand); border-color: var(--brand);
    color: var(--white) !important; font-weight: 600;
}
.util_contact:hover { background: var(--brand-d); border-color: var(--brand-d); }
#hd_row2 { min-height: 0; overflow: hidden; }

/* ── PC GNB 드롭다운 ── */
.gnb_sub_band {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--brand);
    height: 48px !important;
    min-height: 48px !important;
    max-height: 48px !important;
    padding: 0 !important;
    margin: 0 !important;
    z-index: 800;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    line-height: 1 !important;
}
/* #jj_header_wrap { position: relative; } 주석을 지우면 상단 메뉴가 고정이 안됨 */
.gnb_sub_band.active {
    /* display 제어는 jjtheme.js 단독 담당.
       초기 로드 시 PHP active 클래스 판별 → JS가 해당 밴드만 show() */
}
/* @keyframes slideDown 제거 — 2차메뉴 애니메이션 제거(2026-05-17)로 미사용 */
.gnb_sub_band .hd_inner {
    padding: 0 !important;
    margin: 0 auto !important;
    max-width: var(--wrap);
    height: 48px !important;
    line-height: 1 !important;
    text-align: center !important;
}
/* ★ 수정: 2차 메뉴 위치 조절 (2026-05-17: 왼쪽 정렬 후 오른쪽으로 밀기) ★ */
.gnb_2depth_list {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;  /* center → flex-start (왼쪽 정렬) */
    height: 48px !important;
    min-height: 48px !important;
    max-height: 48px !important;
    margin: 0 auto !important;
    margin-left: 200px !important;  /* 오른쪽으로 밀어내는 값 (숫자 조절 가능) */
    padding: 0 !important;
    list-style: none !important;
    width: fit-content !important;
    position: relative !important;
}
.gnb_2depth_list li {
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    height: 48px !important;
}
.gnb_2depth_list li a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 48px !important;
    line-height: 48px !important;
    padding: 0 24px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: rgba(255,255,255,.85) !important;
    white-space: nowrap !important;
    letter-spacing: -0.2px !important;
    transition: color 0.2s ease, background-color 0.2s ease !important;
    border: none !important;
    background: transparent !important;
    margin: 0 !important;
    cursor: pointer !important;
}
/* 호버 효과 - 자연스럽게 한 번만 적용되도록 수정 */
.gnb_2depth_list li a:hover {
    background: rgba(255,255,255,.12) !important;
    color: var(--white) !important;
}
/* 활성화된 메뉴 스타일 - 호버와 별도로 유지 */
.gnb_2depth_list li a.on {
    background: rgba(255,255,255,.15) !important;
    color: var(--white) !important;
    font-weight: 600 !important;
}

/* ══════════════════════════════════════════════════════════
   4. 모바일 헤더 & 사이드 메뉴
   ★ 수정: PC→모바일 전환 기준 960px로 변경 (2026-05-17: 768px → 960px) ★
   ══════════════════════════════════════════════════════════ */
#jj_mobile_header {
    display: none;
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    background: var(--white);
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
}
.mo_hd_inner {
    max-width: var(--wrap); margin: 0 auto; padding: 0 16px;
    display: flex; align-items: center; justify-content: space-between; height: 56px;
}
.mo_logo img { height: 34px; width: auto; }
#mo_menu_open {
    font-size: 22px; color: var(--txt); padding: 12px 16px;
    cursor: pointer; background: transparent; border: none;
    display: flex; align-items: center; justify-content: center;
    -webkit-tap-highlight-color: transparent;
}
/* ★ 수정: z-index 구조 정리 (2026-05-17: 헤더10000, 사이드10001, 배경9999) ★ */
#side_menu {
    position: fixed; top: 0; right: -300px; width: 300px; height: 100%;
    background: #16213e; z-index: 10001; overflow-y: auto; transition: right .3s ease;
}
#side_menu.open { right: 0; }
.side_head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px; background: var(--brand-d); color: var(--white);
}
.side_title { font-size: 15px; font-weight: 700; }
#mo_menu_close {
    font-size: 20px; color: var(--white); cursor: pointer;
    background: transparent; border: none; padding: 8px;
}
.side_login_area { padding: 14px 18px; border-bottom: 1px solid rgba(255,255,255,.08); }
.side_member_name { color: #ccc; font-size: 13px; margin-bottom: 8px; }
.side_login_btn { display: flex; gap: 8px; }
.side_login_btn a {
    flex: 1; text-align: center; padding: 9px 4px;
    background: rgba(255,255,255,.07); color: #ddd; border-radius: 6px; font-size: 13px;
    text-decoration: none;
}
.side_login_btn a:hover { background: var(--brand); color: var(--white); }
.side_1d_li { border-bottom: 1px solid rgba(255,255,255,.06); }
.side_1d_wrap { display: flex; align-items: center; }
.side_1d_a {
    flex: 1; display: block; padding: 15px 18px; color: #ddd; font-size: 14px;
    text-decoration: none;
}
.side_1d_li.active > .side_1d_wrap .side_1d_a { color: var(--white); font-weight: 700; }
.side_sub_toggle {
    padding: 15px 16px; color: #888; font-size: 14px;
    cursor: pointer; background: transparent; border: none;
}
.side_sub_toggle i { display: inline-block; transition: transform .25s ease; }
.side_1d_li.open .side_sub_toggle i { transform: rotate(180deg); }
.side_2depth { display: none; background: rgba(0,0,0,.25); }
.side_2depth li a {
    display: block; padding: 11px 18px 11px 32px; color: #999; font-size: 13px;
    text-decoration: none;
}
.side_2depth li a:hover { color: var(--white); }
.side_2depth li a.on { color: #7eb8e4; font-weight: 600; }
/* ★ 수정: 사이드 메뉴 배경 z-index (2026-05-17: 헤더 아래로 내림) ★ */
#side_menu_bg {
    display: none; position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 9999;
}
#side_menu_bg.open { display: block; }
body.side_open { overflow: hidden; }

/* ══════════════════════════════════════════════════════════
   5. 서브 비주얼 & 레이아웃
   ══════════════════════════════════════════════════════════ */
#jj_sub_visual { position: relative; height: 230px; overflow: hidden; }
.sub_visual_bg {
    position: absolute; inset: 0;
    background-size: cover; background-position: center; filter: brightness(.5);
}
.sub_visual_txt {
    position: relative; z-index: 2; height: 100%;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    color: var(--white); text-align: center; gap: 12px;
}
.sub_visual_txt h2 { font-size: 30px; font-weight: 700; }
.breadcrumb { display: flex; align-items: center; gap: 6px; font-size: 13px; opacity: .85; }
.breadcrumb a { color: var(--white); }
.bc_sep { opacity: .6; }
.sub_contents { padding: 40px 24px 80px; max-width: var(--wrap); margin: 0 auto; }

/* ── 서브페이지 사이드바 ── */
.jj_layout_wrap {
    display: grid;
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 24px;
    gap: 32px;
    align-items: start;
}
.jj_layout_wrap.jj_sb_left { grid-template-columns: var(--jj-sb-width) minmax(0, 1fr); }
.jj_layout_wrap.jj_sb_right { grid-template-columns: minmax(0, 1fr) var(--jj-sb-width); }
.jj_sb_content { 
    padding: 0; 
    min-width: 0; 
    width: 100%;
    /* ★ 중요: 콘텐츠 영역이 사이드바 영향을 받지 않도록 */
    grid-column: 2 / -1;
}
.jj_layout_wrap.jj_sb_left .jj_sb_content {
    grid-column: 2 / -1;
}
.jj_layout_wrap.jj_sb_right .jj_sb_content {
    grid-column: 1 / -2;
}

/* 하이브리드 사이드바 */
.jj_sidebar {
    position: relative;
    padding-top: 40px;
    padding-bottom: 40px;
    transition: all 0.2s ease;
    /* ★ 중요: 그리드 내에서 자신의 위치 유지 */
    grid-column: 1 / 2;
}

/* JS로 고정 클래스가 추가되면 fixed 전환 */
/* ★ 수정(버그#2): top:0px → 헤더 전체 높이(hd1+hd2) + 여백 반영 */
.jj_sidebar.is-fixed {
    position: fixed;
    /* 그리드 위치는 무시하고 원하는 위치에 고정 */
    top: calc(var(--hd1-h) + var(--hd2-h) - 70px);  /* 스크롤시에도 상단에 붙어 있도록 수정 calc(var(--hd1-h) + var(--hd2-h) + 12px); */
    transition: none;
    z-index: 900;
    width: var(--jj-sb-width);
    left: auto;
}

/* ★ 중요: fixed 상태일 때 빈 공간을 유지하기 위한 더미 요소 */
.jj_sidebar-placeholder {
    display: none;
    grid-column: 1 / 2;
}

.jj_layout_wrap.jj_sb_left .jj_sidebar-placeholder {
    display: none;
}

.jj_sidebar.is-fixed + .jj_sidebar-placeholder {
    display: block;
}

.jj_sb_title {
    font-size: 15px; font-weight: 700;
    color: var(--white);
    background: var(--brand);
    padding: 14px 18px;
    border-radius: var(--radius) var(--radius) 0 0;
    letter-spacing: .5px;
}
.jj_sb_nav {
    border: 1px solid var(--border);
    border-top: none;
    border-radius: 0 0 var(--radius) var(--radius);
    overflow: hidden;
}
.jj_sb_nav li { border-bottom: 1px solid var(--border); }
.jj_sb_nav li:last-child { border-bottom: none; }
.jj_sb_nav li a {
    display: block;
    padding: 11px 18px;
    font-size: 14px;
    color: var(--txt-s);
    transition: background var(--trans), color var(--trans), padding-left var(--trans);
}
.jj_sb_nav li a:hover,
.jj_sb_nav li a.on {
    background: var(--brand-light);
    color: var(--brand);
    padding-left: 22px;
    font-weight: 600;
}
.jj_sb_nav li a.on::before {
    content: '›';
    margin-right: 6px;
    color: var(--brand);
}

/* ── 사이드바 3차 메뉴 ── */
.jj_sb_li {
    position: relative;
    border-bottom: 1px solid var(--border);
    transition: background-color var(--trans);
}
.jj_sb_li:last-child { border-bottom: none; }
.jj_sb_li:hover { background: var(--brand-light); }
.jj_sb_li.active { background: var(--brand-light); }
.jj_sb_link_wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-right: 12px;
}
.jj_sb_link_wrap a {
    flex: 1;
    padding: 11px 18px;
    font-size: 14px;
    color: var(--txt-s);
    transition: color var(--trans), background-color var(--trans), padding-left var(--trans);
    border-radius: 0;
}
.jj_sb_link_wrap a:hover { color: var(--brand); }
.jj_sb_link_wrap a.on {
    color: var(--brand);
    font-weight: 600;
}
.jj_sb_toggle {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #aaa;
    background: transparent;
    border: none;
    font-size: 14px;
    transition: color 0.2s ease, background-color 0.2s ease;
    border-radius: 4px;
}
.jj_sb_toggle:hover {
    background: rgba(0,0,0,0.08);
    color: var(--brand);
}
.jj_sb_li.open .jj_sb_toggle i { transform: rotate(180deg); }
.jj_sb_3depth {
    list-style: none;
    margin: 0;
    padding: 0;
    background: #f9fafb;
    border-left: 3px solid var(--brand);
    margin-left: 15px;
    display: none;
}
.jj_sb_3depth li a {
    display: block;
    padding: 10px 15px 10px 30px;
    font-size: 13px;
    color: #888;
    transition: color var(--trans), background-color var(--trans);
}
.jj_sb_3depth li a:hover {
    background: #eef2f5;
    color: var(--brand);
}
.jj_sb_3depth li a.on {
    background: #eef2f5;
    color: var(--brand);
}

/* 모바일에서는 사이드바 하이브리드 기능 비활성화 */
@media (max-width: 960px) {
    .jj_sidebar {
        position: relative !important;
        top: auto !important;
        bottom: auto !important;
        width: 100% !important;
    }
    .jj_sidebar.is-fixed,
    .jj_sidebar.is-bottom {
        position: relative !important;
    }
    .jj_sidebar-placeholder {
        display: none !important;
    }
    .jj_sb_content {
        grid-column: 1 / -1 !important;
    }
}

/* ══════════════════════════════════════════════════════════
   6. 게시판
   ══════════════════════════════════════════════════════════ */
#wrapper { min-height: 60vh; }
#container {
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 24px 80px;
}
#container_title {
    font-size: 22px; font-weight: 700; padding: 28px 0 18px;
    border-bottom: 2px solid var(--brand); margin-bottom: 28px;
}

/* 게시판 스킨 100% 보장 */
.jj_sb_content #bo_w,
.jj_sb_content #bo_v,
.jj_sb_content #bo_list,
.jj_sb_content .skin-write,
.jj_sb_content .skin-view,
.jj_sb_content .skin-list {
    width: 100% !important;
    max-width: none !important;
    box-sizing: border-box !important;
}

/* ══════════════════════════════════════════════════════════
   7. 메인 슬라이더
   ══════════════════════════════════════════════════════════ */
#main_visual { overflow: hidden; }
.jj_main_swiper { width: 100%; height: 580px; }
.swiper-slide { position: relative; overflow: hidden; }
.slide_bg {
    position: absolute; inset: -20px;
    background-size: cover; background-position: center; transition: transform 8s ease;
}
.jj_main_swiper .swiper-slide-active .slide_bg { transform: scale(1.06); }
.slide_inner {
    position: relative; z-index: 2; height: 100%;
    display: flex; align-items: center;
    background: linear-gradient(90deg, rgba(0,0,0,.62) 0%, rgba(0,0,0,.22) 55%, transparent 100%);
}
.slide_text_wrap {
    width: 100%; max-width: var(--wrap);
    margin: 0 auto; padding: 0 24px;
}
.slide_text { max-width: 560px; color: var(--white); }
.slide_label { font-size: 12px; letter-spacing: 3px; opacity: .75; margin-bottom: 12px; }
.slide_title {
    font-size: 42px; font-weight: 700; line-height: 1.25;
    margin-bottom: 16px; text-shadow: 0 2px 8px rgba(0,0,0,.3);
}
.slide_sub { font-size: 17px; line-height: 1.75; margin-bottom: 30px; opacity: .92; }
.slide_btn {
    display: inline-block; padding: 13px 30px;
    background: var(--brand); color: var(--white);
    border-radius: 4px; font-size: 15px; font-weight: 600; transition: background var(--trans);
}
.slide_btn:hover { background: var(--brand-d); color: var(--white); }
.swiper-button-next, .swiper-button-prev { color: rgba(255,255,255,.8) !important; }
.swiper-button-next::after, .swiper-button-prev::after { font-size: 24px !important; }
.swiper-pagination-bullet-active { background: var(--white) !important; }

/* ══════════════════════════════════════════════════════════
   8. 메인 콘텐츠 (배너, 회사소개, 갤러리, 공지, 문의)
   ══════════════════════════════════════════════════════════ */
#m_bnr { padding: 70px 0; text-align: center; }
.m_tit { font-size: 30px; font-weight: 700; margin-bottom: 10px; }
.m_desc { font-size: 15px; color: var(--txt-s); margin-bottom: 40px; margin-top: 16px; }
#m_bnr ul { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.bnr_img { overflow: hidden; border-radius: var(--radius); aspect-ratio: 1/1; }
.bnr_img img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
#m_bnr li:hover .bnr_img img { transform: scale(1.09); }
.bnr_txt { margin-top: 10px; }
.bnr_txt p { font-size: 14px; font-weight: 600; }

#company_txt { background: var(--brand); color: var(--white); padding: 80px 0; }
#company_txt .inner { display: flex; align-items: center; gap: 80px; }
.con_label { font-size: 12px; letter-spacing: 3px; opacity: .7; margin-bottom: 14px; }
#company_txt .con_left strong { font-size: 28px; font-weight: 700; line-height: 1.5; }
#company_txt .con_right p { font-size: 15px; line-height: 2; opacity: .9; margin-bottom: 26px; }
.btn_more {
    display: inline-block; padding: 12px 28px;
    border: 1px solid rgba(255,255,255,.55); color: var(--white);
    border-radius: 4px; font-size: 14px; transition: color var(--trans), background-color var(--trans), border-color var(--trans);
}
.btn_more:hover { background: rgba(255,255,255,.15); color: var(--white); }

#gallery_wrap { padding: 70px 0; background: var(--bg); text-align: center; }
.gallery_slider { margin-top: 36px; }
.jj_gallery_swiper .swiper-slide { position: relative; }
.jj_gallery_swiper .swiper-slide a { display: block; border-radius: var(--radius); overflow: hidden; }
.jj_gallery_swiper .swiper-slide img {
    width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform .4s ease;
}
.jj_gallery_swiper .swiper-slide:hover img { transform: scale(1.05); }
.jj_gallery_pagination { margin-top: 20px; position: relative !important; bottom: auto !important; }
.pic_slide_txt {
    position: absolute; bottom: 0; left: 0; right: 0; padding: 10px 14px;
    background: linear-gradient(transparent, rgba(0,0,0,.6));
    color: #fff; font-size: 13px;
    border-radius: 0 0 var(--radius) var(--radius);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

#comm_wrap { padding: 70px 0; }
.comm_area { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.notice_tab_head {
    display: flex; align-items: center; justify-content: space-between;
    padding-bottom: 12px; border-bottom: 2px solid var(--brand); margin-bottom: 4px;
}
.notice_tab_title { font-size: 18px; font-weight: 700; color: var(--brand); }
.notice_more {
    font-size: 12px; color: var(--txt-s);
    padding: 4px 10px; border: 1px solid var(--border); border-radius: 12px;
}
.notice_more:hover { color: var(--brand); border-color: var(--brand); }
.notice_list_ul li { border-bottom: 1px solid var(--border); }
.notice_list_ul li a {
    display: flex; justify-content: space-between; align-items: center;
    padding: 13px 4px; font-size: 14px; color: var(--txt); transition: color var(--trans);
}
.notice_list_ul li a:hover { color: var(--brand); }
.nt_tit { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-right: 12px; }
.nt_date { font-size: 12px; color: #aaa; flex-shrink: 0; }

#inquiry_wrap { padding: 70px 0; background: var(--bg); }
#inquiry_wrap .inner { display: grid; grid-template-columns: 1fr 1.5fr; gap: 80px; align-items: start; }
#inquiry_wrap .con_label { color: var(--brand); }
#inquiry_wrap .con_left strong { display: block; font-size: 28px; font-weight: 700; margin: 12px 0 16px; }
#inquiry_wrap .con_left p { font-size: 14px; color: var(--txt-s); line-height: 1.9; margin-bottom: 20px; }
.contact_info { margin-bottom: 24px; }
.contact_info li { display: flex; align-items: center; gap: 10px; padding: 7px 0; font-size: 14px; color: var(--txt-s); }
.contact_info li i { color: var(--brand); width: 16px; text-align: center; }
#inquiry_wrap .btn_more { background: var(--brand); border-color: var(--brand); color: var(--white) !important; }
#inquiry_wrap .btn_more:hover { background: var(--brand-d); }
#inquiry_wrap .con_right dt { font-size: 15px; font-weight: 600; color: var(--txt-s); margin-bottom: 12px; }
.map_placeholder {
    width: 100%; height: 300px; background: #dde3ea; border-radius: var(--radius);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 8px; color: #888; font-size: 14px;
}
.map_placeholder i { font-size: 28px; color: #aaa; }
.map_placeholder small { font-size: 12px; color: #bbb; }

/* ══════════════════════════════════════════════════════════
   9. 푸터
   ══════════════════════════════════════════════════════════ */
#footer { background: var(--brand-d); color: #9ca3af; padding: 48px 0 38px; }
.footer_inner { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.footer_menu {
    display: flex; flex-wrap: wrap; gap: 4px 16px;
    padding-bottom: 20px; margin-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer_menu a { font-size: 13px; color: #d1d5db; }
.footer_menu a:hover, .footer_menu a.active { color: var(--white); font-weight: 700; }
.footer_info p { font-size: 12px; line-height: 2.2; }
.ft_company_name { font-weight: 700; font-size: 15px; color: var(--white); }
.ft_sep { color: rgba(255,255,255,.2); margin: 0 4px; }

.jj_quick_menu { position: fixed; right: 22px; bottom: 76px; z-index: 800; }
.jj_quick_menu nav { display: flex; flex-direction: column; gap: 8px; }
.jj_quick_menu a {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    width: 52px; height: 52px; background: var(--brand); color: var(--white);
    border-radius: 50%; font-size: 11px; box-shadow: var(--shadow); transition: background var(--trans);
}
.jj_quick_menu a i { font-size: 18px; margin-bottom: 2px; }
.jj_quick_menu a:hover { background: var(--brand-d); color: var(--white); }

#top_btn {
    position: fixed; right: 22px; bottom: 22px; z-index: 800;
    width: 46px; height: 46px; background: var(--brand); color: var(--white);
    border-radius: 50%; font-size: 17px; box-shadow: var(--shadow);
    opacity: 0; pointer-events: none;
    transition: opacity var(--trans), background var(--trans);
}
#top_btn.visible { opacity: 1; pointer-events: auto; }
#top_btn:hover { background: var(--brand-d); }

/* ══════════════════════════════════════════════════════════
   10. 하단 고정 배너
   ══════════════════════════════════════════════════════════ */
.bottom-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #2b2b2b;
    color: #fff;
    text-align: center;
    font-family: var(--font);
    font-size: 14px;
    padding: 12px 16px;
    z-index: 900;
    box-shadow: 0 -1px 5px rgba(0, 0, 0, 0.2);
    line-height: 1.5;
    box-sizing: border-box;
}

.bottom-banner a {
    color: #fff;
    text-decoration: none;
}

.bottom-banner a:hover {
    text-decoration: none;
}

.bottom-banner a span[lang="ko"] {
    font-size: 12.5px;
}

/* body 하단 여백 (배너 높이만큼) */
body {
    padding-bottom: 44px;
}

/* ══════════════════════════════════════════════════════════
   11. 반응형 (모바일 스크롤 방지 + 로고 크기 포함)
   
   ★ 반응형 분기점 설명 (2026-05-17) ★
   - 1150px 미만: 1차 메뉴 간격 축소 (padding 22px→16px)
   - 1024px 미만: 1차 메뉴 간격 추가 축소 (padding 16px→12px), 메인 배너 6열→3열
   - 960px 미만: PC 헤더 숨김, 모바일 헤더 표시 (768px에서 상향 조정)
   - 769px~1150px: PC 헤더 좁은 화면 대응 (2차 메뉴 margin-left 200px→100px)
   - 480px 미만: 메인 배너 3열→2열, 슬라이더 높이 축소
   ══════════════════════════════════════════════════════════ */
@media (max-width: 1150px) {
    .gnb_1d_a { padding: 0 16px; font-size: 14px; }
    .gnb_2depth_list li a { padding: 0 16px; font-size: 13px; }
    .logo { margin-right: 28px; }
}
@media (max-width: 1024px) {
    .gnb_1d_a { padding: 0 12px; }
    #m_bnr ul { grid-template-columns: repeat(3, 1fr); }
    .comm_area { gap: 30px; }
    #inquiry_wrap .inner { gap: 40px; }
}

/* ★ 수정: PC 헤더 영역 좁은 화면 대응 (769px ~ 1150px 구간)
   ★ 변경 이유: 960px~1150px 구간에서 2차 메뉴 margin-left:200px이 너무 커서
     화면을 벗어나는 현상 발생. 100px로 줄여서 해결 ★ */
@media (min-width: 769px) and (max-width: 1150px) {
    .gnb_2depth_list {
        margin-left: 100px !important;  /* 좁은 화면에서는 여백 줄이기 */
    }
}

/* 하단 배너 모바일 대응 */
@media (max-width: 960px) {
    .bottom-banner {
        font-size: 13px;
        padding: 10px 16px;
    }
    .bottom-banner a span[lang="ko"] {
        font-size: 12px;
    }
    body {
        padding-bottom: 40px;
    }
}

/* ★ 수정: 960px 이하에서 모바일 헤더로 전환
   ★ 변경 이유: 768px~960px 구간(태블릿 세로/가로)에서 PC 헤더가 너무 좁아
     메뉴가 깨지는 현상 발생. 960px로 상향 조정하여 태블릿 대응 강화 ★ */
@media (max-width: 960px) {
    #jj_header_wrap { display: none; }
    #jj_mobile_header { display: block; }
    
    /* 모바일 슬라이더 높이 */
    .jj_main_swiper { height: 320px; }
    
    /* 슬라이드 텍스트 영역 확장 및 오른쪽 정렬 */
    .slide_text_wrap {
        width: 100%;
        max-width: 100%;
        padding: 0 20px !important;
    }
    .slide_text {
        max-width: 100% !important;
        text-align: right !important;
    }
    
    /* 슬라이드 텍스트 크기 조정 */
    .slide_label {
        font-size: 11px;
        letter-spacing: 2px;
        margin-bottom: 8px;
        display: block !important;
    }
    .slide_title {
        font-size: 22px;
        margin-bottom: 10px;
        line-height: 1.3;
    }
    .slide_sub {
        font-size: 13px;
        line-height: 1.5;
        margin-bottom: 20px;
    }
    .slide_btn {
        padding: 10px 24px;
        font-size: 14px;
    }
    
    /* 모바일 슬라이더 화살표 숨김 */
    .swiper-button-next,
    .swiper-button-prev {
        display: none !important;
    }
    
    /* 기존 모바일 스타일 유지 */
    #m_bnr ul { grid-template-columns: repeat(3, 1fr); gap: 12px; }
    .m_tit { font-size: 22px; }
    .m_tit_divider {
        margin: 12px auto 20px;
    }
    #company_txt .inner { flex-direction: column; gap: 28px; }
    #company_txt .con_left strong { font-size: 22px; }
    .comm_area { grid-template-columns: 1fr; gap: 32px; }
    #inquiry_wrap .inner { grid-template-columns: 1fr; gap: 32px; }
    #jj_sub_visual { height: 160px; }
    .sub_visual_txt h2 { font-size: 20px; }
    .sub_contents { padding: 24px 16px 48px; }
    #container { padding: 0 16px 48px; }
    
    /* 모바일 헤더 로고 크기 제어 */
    #jj_mobile_header .mo_logo {
        display: flex;
        align-items: center;
        justify-content: center;
        height: 56px;
    }
    #jj_mobile_header .mo_logo img {
        max-height: 34px;
        width: auto;
        height: auto;
    }
    
    /* 메인 슬라이더 텍스트 컨테이너 오버플로 방지 */
    #main_visual .slide_text_wrap {
        width: 100%;
        max-width: 100%;
        padding: 0 16px;
        overflow: hidden;
    }
    #main_visual .slide_text {
        max-width: 100%;
        overflow: hidden;
        word-break: keep-all;
        text-align: right !important;
    }
    
    /* 모든 콘텐츠 영역 오버플로 방지 */
    .inner,
    #m_bnr .inner,
    #company_txt .inner,
    #gallery_wrap .inner,
    #comm_wrap .inner,
    #inquiry_wrap .inner {
        overflow-x: hidden;
        padding-left: 16px;
        padding-right: 16px;
    }
    
    /* ★ 중요: contact-section의 inner는 overflow-x hidden 해제 (지도 문제 해결) ★ */
    .contact-section .inner {
        overflow-x: visible !important;
    }

    /* 이미지 오버플로 방지 */
    img:not(#kakao-map img) {
        max-width: 100% !important;
        height: auto !important;
    }
    
    /* 서브 비주얼 오버플로 방지 */
    #jj_sub_visual { overflow: hidden; }
    
    /* body 전체 스크롤 방지 */
    body {
        overflow-x: hidden;
        width: 100%;
        max-width: 100%;
        position: relative;
    }
    
    /* 모든 컨테이너 오버플로 방지 */
    .sub_wrap,
    .scontents,
    .jj_layout_wrap,
    .sub_contents {
        overflow-x: hidden;
        width: 100%;
        max-width: 100%;
    }
    
    .jj_layout_wrap,
    .jj_layout_wrap.jj_sb_left,
    .jj_layout_wrap.jj_sb_right {
        display: block;
        padding: 0 16px;
    }
    .jj_sidebar { display: none; }
    .jj_sb_content { padding: 0; }
    
    /* 게시판 페이지에서 헤더 아래 콘텐츠 보호 */
    #container,
    .sub_contents,
    .jj_sb_content,
    #bo_list,
    #bo_v,
    .skin-write,
    .skin-view,
    .skin-list {
        position: relative;
        z-index: 1;
    }
}

/* ==============================================
   사파리 모바일 hover 잔류 및 터치 문제 방지 (수정본)
   ============================================== */
@media (hover: none) and (pointer: coarse) {
    .gnb_1d_li:hover .gnb_1d_a,
    .gnb_1d_li.on .gnb_1d_a {
        color: var(--txt);
    }
    .gnb_1d_li:hover::after,
    .gnb_1d_li.on::after {
        transform: scaleX(0);
    }
    
    /* ⚠️ display: none !important; 제거 - JS 제어 방해하지 않도록 */
    .gnb_sub_band {
        /* JS 제어에 방해되지 않도록 !important 제거 */
        box-shadow: none;
    }
    
    /* 2차 메뉴 안의 링크들이 터치를 즉각 인식하도록 강제 */
    .gnb_2depth_list li a {
        position: relative;
        z-index: 1010;
        pointer-events: auto !important;
    }
    
    .gnb_1d_a:active {
        color: var(--brand);
    }
    .util_btn:active {
        border-color: var(--brand);
        color: var(--brand);
    }
}

/* 사파리 모바일에서 링크 클릭 가능하도록 */
@media (max-width: 960px) {
    .gnb_1d_a,
    .gnb_2depth_list li a,
    .util_btn,
    .side_1d_a,
    .side_sub_toggle,
    #mo_menu_open,
    #mo_menu_close {
        cursor: pointer;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }
}

@media (max-width: 480px) {
    #m_bnr ul { grid-template-columns: repeat(2, 1fr); }
    .jj_main_swiper { height: 240px; }
    .slide_title { font-size: 18px; }
    .slide_sub { display: none; }
    .slide_label { font-size: 10px; }
}

/* ══════════════════════════════════════════════════════════
   12. 헤더 고정 최종 보강 (게시판 2컬럼 레이아웃 대응)
   
   ★ z-index 구조 (2026-05-17 정리) ★
   - 헤더(PC/모바일): 10000 (콘텐츠 위 기준)
   - 사이드 메뉴 본체: 10001 (헤더 위)
   - 사이드 메뉴 배경: 9999 (헤더 아래)
   - 사이드 내부 메뉴들은 별도 z-index 불필요 (부모 상속)
   ══════════════════════════════════════════════════════════ */
/* 게시판 2컬럼 레이아웃이 헤더를 침범하지 않도록 */
.jj_layout_wrap,
.jj_sb_content,
#jj_sub_wrapper,
.sub_contents {
    position: relative;
    z-index: 1;
}

/* 모바일에서 fixed로 강제 전환 — 모바일 전환 기준(960px)과 일치 */
@media (max-width: 960px) {
    #jj_mobile_header {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        z-index: 10000 !important;
    }

    /* 헤더 높이만큼 body 패딩 */
    body {
        padding-top: 56px !important;
    }

    /* 게시판 2컬럼 레이아웃 헤더 간섭 방지 */
    .jj_layout_wrap {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }

    /* write 페이지: overflow 속성이 있는 컨테이너가
     * sticky/fixed 헤더를 가두지 못하도록 해제
     * (에디터 내부 overflow는 에디터 자체 CSS가 관리) */
    #bo_w,
    .skin-write {
        overflow: visible !important;
    }
}

/* Safari 모바일에서 헤더 고정 깨짐 방지 */
@supports (padding-top: env(safe-area-inset-top)) {
    #jj_mobile_header {
        padding-top: env(safe-area-inset-top);
    }
}

/* 헤더 아래 콘텐츠와의 간섭 방지 */
#jj_header_wrap + *,
#jj_mobile_header + * {
    margin-top: 0;
    padding-top: 0;
}

/* ══════════════════════════════════════════════════════════
   13. 카카오맵 모바일 대응 (overflow hidden 문제 해결)
   ══════════════════════════════════════════════════════════ */

/* 모든 해상도에서 지도 컨테이너 기본 높이 보장 */
#kakao-map {
    min-height: 280px;
    height: 320px;
}

/* 모바일(960px 이하) 전용 */
@media (max-width: 960px) {
    #kakao-map {
        display: block !important;
        min-height: 280px !important;
        height: 280px !important;
        width: 100% !important;
        position: relative !important;
        overflow: hidden !important;
    }
    
    /* 내부 div 강제 설정 */
    #kakao-map > div:first-child {
        position: absolute !important;
        left: 0 !important;
        top: 0 !important;
        width: 100% !important;
        height: 100% !important;
    }
    
    /* 지도 섹션 overflow 해제 */
    .contact-section .inner {
        overflow: visible !important;
    }
}

/* 지도 로딩 완료 시 배경색 (깜박임 방지) */
.kakao-map-loaded #kakao-map {
    background: #e8eef4;
}