/* 모바일용 보조 버튼 (브랜드홈, 전화문의) */
.m_header_btns { display: none; }

/* 햄버거 버튼 (모바일 전용) */
.m_menu_btn {
    display: none;
    position: absolute;
    top: 20px;
    right: 20px;
    width: 32px;
    height: 24px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 110;
    padding: 0;
}
.m_menu_btn span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: #333;
    border-radius: 9px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: .4s ease-in-out;
}
.m_menu_btn span:nth-child(1) { top: 0px; }
.m_menu_btn span:nth-child(2) { top: 10px; }
.m_menu_btn span:nth-child(3) { top: 20px; }

/* 햄버거 버튼 활성화 상태 (X자) */
.m_menu_btn.open span:nth-child(1) {
    top: 10px;
    transform: rotate(135deg);
}
.m_menu_btn.open span:nth-child(2) {
    opacity: 0;
    transform: rotate(325deg);
    transition: .1s ease-in-out;
    /* left: -60px; */
}
.m_menu_btn.open span:nth-child(3) {
    top: 10px;
    transform: rotate(-135deg);
}

/* 사이트맵 기본 스타일 (PC) */
.sitemap_wrap{display:none;position:fixed;z-index:2000;top:0;left:0;width:100%;height:100%;background-color:rgba(127,194,65,0.95);overflow-y:auto}
.sitemap{position:relative;top:50%;width:1260px;margin:0 auto;transform:translateY(-50%)}
.stm_logo{margin-bottom:60px}
.stm_depth1_ul{font-size:0;text-align:center}
.stm_depth1_li{display:inline-block;vertical-align:top;width:183px;margin-left:20px;text-align:center}
.stm_depth1_li:first-child{margin-left:0}
.stm_depth1_a{display:inline-block;position:relative;margin-bottom:20px;font-family:'NotoSansKR';font-weight:600;font-size:20px;letter-spacing:0.1em;color:#fff}
.stm_depth2_ul{padding-top:25px;border-top:1px solid rgba(255,255,255,0.3)}
.stm_depth2_li{margin-bottom:20px}
.stm_depth2_li:last-child{margin-bottom:0}
.stm_depth2_a{font-size:17px;font-weight:600;letter-spacing:-0.025em;color:#d8e8c9}
.stm_depth2_li.on .stm_depth2_a, .stm_depth2_a:hover{color:#fff;font-weight:600}
.stm_close{position:absolute;right:90px;top:100px;width:30px;height:30px;background:url('../img/common/stm_close.png') no-repeat center;background-size:contain;font-size:0;line-height:0}
.pc_only_hide { display: none; }

/* 1024px 이하 반응형 설정 (모바일/태블릿) */
@media screen and (max-width: 1024px) {
    .header_wrap { background: #f9f7f2; }
    /* PC 전용 유틸리티 버튼 및 GNB 숨김 */
    .btn_inq, .btn-open-modal, .btn_inq_job, .btn_inq_so, #navigation, #gnbBg, .modal { display: none !important; }

    /* 모바일 햄버거 버튼 노출 */
    .m_menu_btn { display: block; }

    /* 모바일 보조 버튼 노출 */
    .m_header_btns {
        display: flex;
        position: absolute;
        right: 80px;
        top: 50%;
        transform: translateY(-50%);
        align-items: center;
        gap: 15px;
        z-index: 105;
    }
    .m_header_btns a {
        display: block;
        width: 60px;
        height: 60px;
        overflow: hidden;
        text-indent: -9999px;
        background-position: center;
        background-repeat: no-repeat;
        background-size: contain; /* 이미지 꽉 차게 */
    }
    .m_header_btns .btn_home_b { background-image: url('../img/common/hd_home_b.png'); }
    .m_header_btns .btn_tel { background-image: url('../img/common/hd_tel.gif'); }

    /* 헤더 영역 모바일 최적화 */
    .header_bot { height: 64px; background-color: rgba(0, 0, 0, 0.85); }
    .logo { left: 20px; top: 17px; width: 140px; height: 30px; }
    .logo a { background: url('../img/common/bi_black.png') no-repeat center; background-size: contain; }

    /* 모바일 사이트맵 스타일 */
    .sitemap_wrap { 
        top: 64px; 
        height: calc(100% - 64px);
        background-color: #7fc241; 
        display: none; 
    }
    .sitemap { 
        position: relative;
        top: 0; 
        left: 0;
        width: 100%; 
        margin: 0; 
        transform: none; 
        padding: 30px 30px 60px; 
        box-sizing: border-box; 
    }
    .stm_logo { 
        text-align: center; 
        margin-bottom: 30px; 
    }
    .stm_logo img { 
        width: 150px; 
        display: inline-block;
    }

    /* 해외사업 다운로드 섹션 - 카드형 */
    .pc_only_hide { display: block; }
    .stm_modal_body {
        text-align: center;
        margin-bottom: 30px;
        color: #fff;
        background: rgba(255, 255, 255, 0.1); /* 카드 느낌의 반투명 배경 */
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 20px;
        padding: 30px 20px;
    }
    .stm_modal_body .stm_title_modal p:first-child {
        font-family: 'GmarketSans';
        font-size: 20px;
        font-weight: 700;
        margin-bottom: 8px;
        letter-spacing: 0.05em;
    }
    .stm_modal_body .stm_title_modal p span {
        font-size: 15px;
        opacity: 0.8;
    }
    .stm_modal_body .stm_btn_modal {
        margin-top: 25px;
    }
    .stm_modal_body .stm_btn_box {
        display: flex;
        flex-direction: row; /* 세로에서 가로 한 줄 배정으로 변경 */
        justify-content: center;
        align-items: center;
        gap: 10px;
        list-style: none;
        padding: 0;
    }
    .stm_modal_body .stm_btn_box li {
        flex: 1;
        max-width: 140px; /* 한 줄에 두 개가 들어가도록 너비 조정 */
    }
    .stm_modal_body .stm_btn_box li a {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 12px;
        height: 48px;
        background: rgba(255, 255, 255, 0.2);
        border: 1px solid #fff;
        border-radius: 30px;
        color: #fff;
        font-size: 16px;
        font-weight: 600; /* 기존 700에서 600으로 변경 */
        text-decoration: none;
        transition: all 0.3s;
    }
    .stm_modal_body .stm_btn_box li a i {
        display: block;
        width: 28px;
        height: 28px;
        background: #fff;
        border-radius: 50%;
        overflow: hidden;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .stm_modal_body .stm_btn_box li a i img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    .stm_modal_body .stm_btn_box li a:active {
        background: rgba(255, 255, 255, 0.4);
        transform: scale(0.98);
    }
    .stm_depth1_li { 
        display: block; 
        width: 100%; 
        margin-left: 0; 
        margin-bottom: 40px; 
        text-align: left; 
    }
    .stm_depth1_a { 
        display: block;
        margin-bottom: 10px; 
        font-family: 'GmarketSans';
        font-size: 24px; 
        font-weight: 600; /* 600 추가 */
        color: #fff;
        padding-bottom: 15px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    }
    .stm_depth2_ul { 
        padding-top: 5px; 
        border-top: none; 
        text-align: left;
    }
    .stm_depth2_li { 
        margin-bottom: 12px; 
    }
    .stm_depth2_a { 
        font-family: 'NotoSansKR';
        font-size: 18px; 
        font-weight: 600; /* 600 추가 */
        color: #e2f5d1; /* 이미지 참고: 밝은 연두색 계열 */
    }
    .stm_close { 
        display: none !important; /* 사이트맵 내부의 기존 X 버튼 숨김 */
    }
}

/* 모바일 기기(767px 이하)에서만 헤더 고정 및 본문 겹침 방지 */
@media screen and (max-width: 767px) {
    .header_wrap {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 9999;
        /* background: #fff; */
        height: 60px;
        border-bottom: 1px solid #eee;
        display: flex;
        align-items: center;
        box-sizing: border-box;
        padding: 0 15px;
        background: #f9f7f2;
        box-shadow: 0 2px 5px rgba(0,0,0,0.05);
        z-index: 3000;
    }
    .sitemap_wrap {
        top: 60px;
        height: calc(100% - 60px);
    }
    .header_wrap .logo {top: 0px; height: 60px; margin: 0; display: flex; align-items: center; position: absolute; left: 15px; }
    .header_wrap .logo a { display: block; width: 140px; height: 30px; background: url('../img/common/bi_black.png') no-repeat center; background-size: contain; font-size: 0; }
    .header_wrap .logo img { display: none; } /* CSS에서 배경으로 제어하므로 기존 img 태그는 숨김 */
    .header_wrap .m_menu_btn { 
        position: absolute;
        right: 15px;
        top: 50%; 
        transform: translateY(-50%); 
        margin-top: 0; 
    }
    .m_header_btns {
        right: 80px;
        top: 50%;
        transform: translateY(-50%);
    }
    
    body {
        padding-top: 60px;
    }
}
