/* ============================================
   경영시스템 인증서 페이지 (환경 / 품질 / 안전보건)
   theme/basic/css/management.css
   좌측 LNB·상단 배너는 default.css 의 .sub_con 스타일을 그대로 사용합니다.
   ============================================ */

.cert_page { padding: 20px 0 100px; }

/* 상단 문구 : 기존 사업분야 페이지와 동일한 명조 헤드라인 */
.cert_top { margin-bottom: 70px; }
.cert_headline {
    font-family: "Nanum Myeongjo", "NanumMyeongjo", serif;
    font-size: 2.125rem;
    line-height: 1.5;
    color: #2c2c2c;
    font-weight: 400;
    letter-spacing: -0.02em;
    word-break: keep-all;
}
.cert_desc {
    font-size: 1rem;
    line-height: 1.8;
    color: #555;
    margin-top: 40px;
    word-break: keep-all;
}

/* 본문 : 인증서 + 정보 */
.cert_body {
    display: flex;
    align-items: flex-start;
    gap: 60px;
}

/* 인증서 이미지 */
.cert_img_box { width: 460px; flex-shrink: 0; }
.cert_img_link {
    display: block;
    position: relative;
    border: 1px solid #ddd;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    overflow: hidden;
}
.cert_img_link img { width: 100%; display: block; transition: transform .4s; }
.cert_img_link:hover img { transform: scale(1.03); }
.cert_zoom {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: 14px 0;
    background: rgba(115,21,27,0.85);
    color: #fff;
    font-size: 0.9375rem;
    text-align: center;
    opacity: 0;
    transform: translateY(100%);
    transition: all .3s;
}
.cert_img_link:hover .cert_zoom { opacity: 1; transform: translateY(0); }

.cert_btns { display: flex; gap: 8px; margin-top: 16px; }
.cert_btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 46px;
    padding: 0 14px;
    font-size: 0.9375rem;
    border: 1px solid #73151b;
    color: #73151b;
    background: #fff;
    cursor: pointer;
    transition: all .2s;
    white-space: nowrap;
}
.cert_btn:hover { background: #73151b; color: #fff; }
.cert_btn_pdf { background: #73151b; color: #fff; }
.cert_btn_pdf:hover { background: #5f1116; }
.cert_btn i { font-size: 1.125rem; }

/* 인증 정보 */
.cert_info_box { flex: 1; padding-top: 10px; }
.cert_info_title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c2c2c;
    padding-bottom: 18px;
    margin-bottom: 10px;
    border-bottom: 2px solid #73151b;
    letter-spacing: -0.03em;
}
.cert_info { display: flex; flex-wrap: wrap; }
.cert_info dt,
.cert_info dd {
    padding: 20px 10px;
    border-bottom: 1px solid #e5e5e5;
    font-size: 1.0625rem;
    line-height: 1.7;
    word-break: keep-all;
}
.cert_info dt {
    width: 140px;
    font-weight: 700;
    color: #73151b;
}
.cert_info dd {
    width: calc(100% - 140px);
    color: #333;
}

/* 확대보기 레이어 */
.cert_layer {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
}
.cert_layer.on { display: block; }
.cert_layer_bg { position: absolute; inset: 0; background: rgba(0,0,0,0.85); }
.cert_layer_inner {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%,-50%);
    max-width: 90vw;
    text-align: center;
}
.cert_layer_inner img {
    max-width: 90vw;
    max-height: 82vh;
    display: block;
    margin: 0 auto;
    background: #fff;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.cert_layer_btns { display: flex; justify-content: center; gap: 8px; margin-top: 14px; }
.cert_layer_btns .cert_btn { flex: none; min-width: 160px; border-color: #fff; color: #fff; background: transparent; }
.cert_layer_btns .cert_btn:hover { background: #fff; color: #73151b; }
.cert_layer_btns .cert_btn_pdf { background: #73151b; border-color: #73151b; }
.cert_layer_btns .cert_btn_pdf:hover { background: #fff; color: #73151b; }
.cert_layer_close {
    position: fixed;
    top: 20px; right: 24px;
    width: 48px; height: 48px;
    font-size: 2rem;
    color: #fff;
    background: transparent;
    border: 0;
    cursor: pointer;
}
html.lock { overflow: hidden; }

/* 반응형 */
@media (max-width: 1200px) {
    .cert_body { gap: 40px; }
    .cert_img_box { width: 380px; }
}
@media (max-width: 900px) {
    .cert_headline { font-size: 1.625rem; }
    .cert_desc { margin-top: 24px; }
    .cert_top { margin-bottom: 40px; }
    .cert_body { flex-direction: column; gap: 40px; }
    .cert_img_box { width: 100%; max-width: 460px; margin: 0 auto; }
    .cert_info_box { width: 100%; }
    .cert_info dt { width: 110px; }
    .cert_info dd { width: calc(100% - 110px); }
    .cert_info dt, .cert_info dd { padding: 14px 6px; font-size: 0.9375rem; }
    .cert_btns { flex-wrap: wrap; }
    .cert_btn { font-size: 0.875rem; padding: 0 10px; }
}


/* ============================================
   윤리경영 — 윤리헌장
   ============================================ */
.ethics_page { padding: 20px 0 100px; }
.ethics_top { margin-bottom: 60px; }
.ethics_headline {
    font-family: "Nanum Myeongjo", "NanumMyeongjo", serif;
    font-size: 2.125rem;
    color: #2c2c2c;
    font-weight: 400;
    letter-spacing: -0.02em;
    padding-bottom: 24px;
    margin-bottom: 30px;
    position: relative;
}
.ethics_headline::after {
    content: "";
    display: block;
    width: 50px;
    height: 3px;
    background: #73151b;
    position: absolute;
    left: 0;
    bottom: 0;
}
.ethics_preamble {
    font-family: "Nanum Myeongjo", "NanumMyeongjo", serif;
    font-size: 1.25rem;
    line-height: 1.9;
    color: #333;
    word-break: keep-all;
}

.charter_list { counter-reset: charter; }
.charter_list li {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    padding: 34px 20px;
    border-bottom: 1px solid #e5e5e5;
}
.charter_list li:first-child { border-top: 2px solid #73151b; }
.charter_list .num {
    font-family: "Gotham", sans-serif;
    font-size: 2rem;
    line-height: 1;
    color: #73151b;
    flex-shrink: 0;
    width: 60px;
    padding-top: 4px;
}
.charter_list p {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #333;
    word-break: keep-all;
}

.charter_sign {
    margin-top: 60px;
    text-align: right;
    font-family: "Nanum Myeongjo", "NanumMyeongjo", serif;
    font-size: 1.25rem;
    color: #2c2c2c;
}

@media (max-width: 900px) {
    .ethics_headline { font-size: 1.625rem; }
    .ethics_preamble { font-size: 1.0625rem; }
    .charter_list li { gap: 16px; padding: 24px 6px; }
    .charter_list .num { font-size: 1.5rem; width: 40px; }
    .charter_list p { font-size: 1rem; }
    .charter_sign { font-size: 1.0625rem; }
}


/* ============================================
   윤리경영 — 윤리행동강령 및 실천지침
   ============================================ */
.guide_pdf { display: flex; gap: 8px; margin-top: 30px; flex-wrap: wrap; }
.guide_pdf .cert_btn { flex: none; padding: 0 24px; }

.guide_sec { margin-top: 70px; }
.guide_sec_head { display: flex; justify-content: space-between; align-items: flex-end; }
.guide_sec_title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c2c2c;
    letter-spacing: -0.03em;
    padding-left: 16px;
    border-left: 4px solid #73151b;
    margin-bottom: 24px;
    line-height: 1.2;
}
.guide_sec_head .guide_sec_title { margin-bottom: 0; }
.acc_all {
    background: none;
    border: 1px solid #ccc;
    padding: 8px 14px;
    font-size: 0.875rem;
    color: #555;
    cursor: pointer;
}
.acc_all:hover { border-color: #73151b; color: #73151b; }

/* 행동강령 요약 카드 */
.code_box { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.code_item {
    background: #f8f6f6;
    border-top: 3px solid #73151b;
    padding: 28px 26px;
}
.code_item h5 { font-size: 1.125rem; font-weight: 700; color: #73151b; margin-bottom: 16px; word-break: keep-all; }
.code_item li {
    position: relative;
    padding-left: 14px;
    font-size: 0.9375rem;
    line-height: 1.7;
    color: #444;
    word-break: keep-all;
}
.code_item li + li { margin-top: 8px; }
.code_item li::before { content: ""; position: absolute; left: 0; top: 11px; width: 5px; height: 5px; background: #73151b; border-radius: 50%; }

/* 대표이사 인사말 */
.ceo_box {
    border: 1px solid #e5e5e5;
    padding: 40px 44px;
    background: #fff;
}
.ceo_box p { font-size: 1.0625rem; line-height: 1.9; color: #444; word-break: keep-all; }
.ceo_box p + p { margin-top: 18px; }
.ceo_box .ceo_sign {
    text-align: right;
    margin-top: 30px;
    font-family: "Nanum Myeongjo", "NanumMyeongjo", serif;
    font-size: 1.125rem;
    color: #2c2c2c;
}
.ceo_box .ceo_sign strong { font-size: 1.375rem; margin-left: 8px; }

/* 아코디언 */
.acc { border-top: 2px solid #73151b; }
.acc_item { border-bottom: 1px solid #ddd; }
.acc_head {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 22px 16px;
    background: none;
    border: 0;
    text-align: left;
    font-size: 1.25rem;
    font-weight: 700;
    color: #2c2c2c;
    cursor: pointer;
}
.acc_head .ch {
    font-family: "Gotham", sans-serif;
    font-size: 0.875rem;
    color: #fff;
    background: #73151b;
    padding: 5px 10px;
    flex-shrink: 0;
}
.acc_head i { margin-left: auto; color: #999; transition: transform .3s; }
.acc_item.on .acc_head i { transform: rotate(180deg); color: #73151b; }
.acc_body { display: none; padding: 10px 20px 40px; background: #fafafa; }
.acc_item.on .acc_body { display: block; }

.art + .art { margin-top: 34px; }
.art h5 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #73151b;
    margin-bottom: 12px;
}
.art p { font-size: 1rem; line-height: 1.8; color: #444; word-break: keep-all; }
.art p + p { margin-top: 10px; }
.art .principle {
    background: #fff;
    border-left: 3px solid #c9a0a3;
    padding: 14px 18px;
    margin-bottom: 14px;
    color: #333;
}
.art ul li {
    position: relative;
    padding-left: 14px;
    font-size: 1rem;
    line-height: 1.8;
    color: #444;
    word-break: keep-all;
}
.art ul li + li { margin-top: 6px; }
.art ul li::before { content: ""; position: absolute; left: 0; top: 13px; width: 5px; height: 1px; background: #73151b; }
.art ul ul { margin-top: 6px; margin-left: 4px; }
.art ul ul li { font-size: 0.9375rem; color: #666; }
.art ul ul li::before { width: 4px; height: 4px; border-radius: 50%; top: 11px; }
.art .note { margin-top: 16px; padding: 16px 20px; background: #fff; border: 1px dashed #ccc; }
.art .note strong { display: block; margin-bottom: 8px; color: #2c2c2c; }
.art .ref { margin-top: 12px; font-size: 0.9375rem; color: #888; }

.term { display: grid; grid-template-columns: 120px 1fr; }
.term dt, .term dd { padding: 12px 10px; border-bottom: 1px solid #e5e5e5; font-size: 1rem; line-height: 1.7; word-break: keep-all; }
.term dt { font-weight: 700; color: #73151b; }
.term dd { color: #444; }

/* 제보 채널 */
.report_box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    background: #73151b;
    color: #fff;
    padding: 36px 44px;
}
.report_box dl { display: grid; grid-template-columns: auto 1fr; column-gap: 20px; row-gap: 10px; }
.report_box dt { font-weight: 700; display: flex; align-items: center; gap: 6px; opacity: .85; }
.report_box dd { font-size: 1.0625rem; }
.report_box dd a { color: #fff; text-decoration: underline; }
.report_box .report_btn { flex: none; background: #fff; color: #73151b; border-color: #fff; padding: 0 28px; height: 54px; font-weight: 700; }
.report_box .report_btn:hover { background: #f3e6e7; }

@media (max-width: 1200px) {
    .code_box { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
    .guide_sec { margin-top: 50px; }
    .guide_sec_title { font-size: 1.25rem; }
    .guide_sec_head { flex-direction: column; align-items: flex-start; gap: 12px; }
    .ceo_box { padding: 24px 20px; }
    .ceo_box p { font-size: 0.9375rem; }
    .acc_head { font-size: 1.0625rem; padding: 18px 8px; gap: 10px; }
    .acc_body { padding: 6px 10px 30px; }
    .art h5 { font-size: 1.0625rem; }
    .art p, .art ul li { font-size: 0.9375rem; }
    .term { grid-template-columns: 90px 1fr; }
    .report_box { flex-direction: column; align-items: stretch; padding: 24px 20px; }
    .report_box dl { grid-template-columns: 1fr; row-gap: 4px; }
    .report_box dd { margin-bottom: 8px; }
}


/* ============================================
   윤리경영 — 윤리경영제보 (작성 / 목록 / 상세)
   ============================================ */
.report_admin { display: flex; gap: 8px; margin-top: 24px; flex-wrap: wrap; }
.report_admin .cert_btn { flex: none; padding: 0 22px; }
.admin_tag { font-family: "Pretendard-Regular", sans-serif; font-size: 0.75rem; color: #fff; background: #2c2c2c; padding: 3px 8px; vertical-align: middle; margin-left: 8px; }

.report_guide { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 60px; }
.rg_item { background: #f8f6f6; padding: 26px 24px; display: flex; flex-direction: column; gap: 8px; }
.rg_item i { font-size: 1.75rem; color: #73151b; }
.rg_item strong { font-size: 1.0625rem; color: #2c2c2c; }
.rg_item span { font-size: 0.9375rem; line-height: 1.6; color: #666; word-break: keep-all; }

.report_page .guide_sec_title { margin-top: 40px; }
.report_page .guide_sec_title small { font-size: 0.875rem; font-weight: 400; color: #888; margin-left: 10px; }

.report_form { border-top: 2px solid #73151b; }
.rf_row { display: flex; border-bottom: 1px solid #e5e5e5; }
.rf_row > label { width: 170px; flex-shrink: 0; padding: 18px 20px; background: #fafafa; font-weight: 700; color: #2c2c2c; font-size: 1rem; display: flex; align-items: center; }
.rf_row > label em { color: #d9534f; margin-left: 4px; font-style: normal; }
.rf_field { flex: 1; padding: 12px 20px; }
.rf_field input[type=text], .rf_field input[type=email], .rf_field select, .rf_field textarea {
    width: 100%; border: 1px solid #ccc; padding: 10px 12px; font-size: 1rem; font-family: inherit; background: #fff; color: #333;
}
.rf_field input[type=text], .rf_field input[type=email], .rf_field select { height: 44px; max-width: 480px; }
.rf_field select { max-width: 320px; }
.rf_field textarea { resize: vertical; line-height: 1.7; }
.rf_field input:focus, .rf_field select:focus, .rf_field textarea:focus { border-color: #73151b; outline: none; }
.rf_field input[type=file] { padding: 8px 0; font-size: 0.9375rem; }
.rf_help { font-size: 0.8125rem; color: #888; margin-top: 6px; }
.rf_radio { display: flex; gap: 30px; align-items: center; padding: 18px 20px; }
.rf_radio label { display: flex; align-items: center; gap: 6px; cursor: pointer; font-size: 1rem; }

.report_agree { margin-top: 40px; }
.report_agree h5 { font-size: 1.0625rem; font-weight: 700; margin-bottom: 12px; color: #2c2c2c; }
.agree_box { border: 1px solid #e5e5e5; background: #fafafa; padding: 18px 20px; font-size: 0.9375rem; line-height: 1.8; color: #555; }
.agree_chk { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 1rem; cursor: pointer; }

.report_captcha { margin-top: 30px; }
.report_captcha #captcha { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.report_captcha #captcha legend { position: absolute; left: -9999px; }
.report_captcha #captcha_key { height: 44px; border: 1px solid #ccc; padding: 0 10px; width: 120px; }
.report_captcha #captcha_info { width: 100%; font-size: 0.8125rem; color: #888; }

.report_submit { margin-top: 40px; text-align: center; }
.report_submit .cert_btn { flex: none; display: inline-flex; height: 56px; padding: 0 60px; font-size: 1.125rem; font-weight: 700; }

/* 목록 */
.report_search { display: flex; align-items: center; gap: 8px; margin-bottom: 20px; }
.report_search input { height: 44px; border: 1px solid #ccc; padding: 0 12px; width: 300px; font-size: 1rem; }
.report_search .cert_btn { flex: none; height: 44px; padding: 0 18px; }
.report_search .total { margin-left: auto; color: #666; }
.report_search .total strong { color: #73151b; }

.report_tbl_wrap { overflow-x: auto; }
.report_tbl { width: 100%; border-collapse: collapse; border-top: 2px solid #73151b; }
.report_tbl th, .report_tbl td { padding: 14px 10px; border-bottom: 1px solid #e5e5e5; font-size: 0.9375rem; text-align: center; white-space: nowrap; }
.report_tbl th { background: #fafafa; font-weight: 700; color: #2c2c2c; }
.report_tbl td.subj { text-align: left; white-space: normal; }
.report_tbl td.subj a { color: #2c2c2c; }
.report_tbl td.subj a:hover { color: #73151b; text-decoration: underline; }
.report_tbl td.subj i { color: #999; margin-left: 4px; }
.report_tbl .w_no { width: 60px; } .report_tbl .w_type { width: 170px; } .report_tbl .w_name { width: 120px; } .report_tbl .w_date { width: 110px; } .report_tbl .w_stat { width: 90px; }
.report_tbl td.empty { padding: 60px 0; color: #888; }
.report_tbl tbody tr:hover td { background: #fdf8f8; }
.stat { display: inline-block; padding: 4px 10px; font-size: 0.8125rem; border-radius: 3px; border: 1px solid #ccc; color: #666; }
.stat.st_new  { border-color: #d9534f; color: #d9534f; }
.stat.st_ing  { border-color: #e8a33d; color: #c97f0f; }
.stat.st_done { border-color: #5cb85c; color: #3d8b3d; }
.report_paging { display: flex; justify-content: center; gap: 4px; margin-top: 30px; }
.report_paging a { min-width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid #ddd; color: #555; }
.report_paging a.on { background: #73151b; border-color: #73151b; color: #fff; }

/* 상세 */
.rv_head { border-top: 2px solid #73151b; border-bottom: 1px solid #e5e5e5; padding: 24px 10px; }
.rv_type { display: inline-block; font-size: 0.8125rem; color: #73151b; border: 1px solid #73151b; padding: 3px 10px; margin-bottom: 10px; }
.rv_head h4 { font-size: 1.5rem; font-weight: 700; color: #2c2c2c; word-break: keep-all; }
.rv_meta { display: flex; flex-wrap: wrap; gap: 6px 24px; margin-top: 14px; font-size: 0.9375rem; color: #666; }
.rv_meta i { margin-right: 4px; color: #999; }
.rv_meta a { color: #73151b; text-decoration: underline; }
.rv_status { display: flex; align-items: center; gap: 8px; padding: 16px 10px; background: #fafafa; border-bottom: 1px solid #e5e5e5; }
.rv_status strong { margin-right: 10px; }
.rv_status .stat { cursor: pointer; }
.rv_status .stat.on { background: #73151b; border-color: #73151b; color: #fff; }
.rv_content { padding: 40px 10px; font-size: 1.0625rem; line-height: 1.9; color: #333; word-break: break-word; min-height: 200px; }
.rv_file { padding: 16px 10px; border-top: 1px solid #e5e5e5; border-bottom: 1px solid #e5e5e5; font-size: 0.9375rem; }
.rv_file i { color: #999; margin-right: 6px; }
.rv_file a { color: #73151b; text-decoration: underline; }
.rv_file small { color: #999; margin-left: 6px; }
.rv_btns { display: flex; justify-content: space-between; margin-top: 30px; }
.rv_btns .cert_btn { flex: none; padding: 0 24px; }
.rv_btns .rv_del { border-color: #999; color: #999; }
.rv_btns .rv_del:hover { background: #999; color: #fff; }

@media (max-width: 900px) {
    .report_guide { grid-template-columns: 1fr; gap: 10px; margin-bottom: 40px; }
    .rf_row { flex-direction: column; }
    .rf_row > label { width: 100%; padding: 12px 14px; font-size: 0.9375rem; }
    .rf_field { padding: 12px 14px; }
    .rf_field input[type=text], .rf_field input[type=email], .rf_field select { max-width: 100%; }
    .rf_radio { padding: 12px 14px; gap: 20px; }
    .report_submit .cert_btn { width: 100%; padding: 0; }
    .report_search { flex-wrap: wrap; }
    .report_search input { width: 100%; }
    .report_search .total { margin-left: 0; width: 100%; }
    .rv_head h4 { font-size: 1.25rem; }
    .rv_content { font-size: 1rem; padding: 24px 6px; }
}


/* ---- 윤리경영제보 : 참고 디자인 적용 ---- */
.report_intro { background: #f5f5f5; border: 1px solid #e5e5e5; padding: 40px 44px; margin-bottom: 50px; }
.report_intro h4 { font-size: 1.5rem; font-weight: 700; color: #2c2c2c; margin-bottom: 20px; }
.report_intro h4 span { color: #73151b; }
.report_intro .intro_txt { font-size: 1.0625rem; font-weight: 700; line-height: 1.8; color: #333; word-break: keep-all; margin-bottom: 22px; }
.report_intro .intro_ch { font-weight: 700; color: #2c2c2c; margin-bottom: 8px; }
.intro_list li { display: flex; gap: 14px; font-size: 1rem; line-height: 1.8; color: #444; }
.intro_list li strong { width: 60px; flex-shrink: 0; color: #2c2c2c; }
.intro_list li strong::before { content: "- "; }
.intro_list li.note span { color: #777; font-size: 0.9375rem; word-break: keep-all; }
.intro_list a { color: #444; }

.rf_field input.w_s { max-width: 320px; }
.agree_scroll { height: 150px; overflow-y: auto; resize: vertical; }
.agree_scroll p + p { margin-top: 8px; }
.report_agree .agree_chk { justify-content: center; font-weight: 700; }
.report_agree { border: 1px solid #ddd; padding: 28px 30px; }
.rf_field.report_captcha { margin-top: 0; }

@media (max-width: 900px) {
    .report_intro { padding: 24px 20px; }
    .report_intro h4 { font-size: 1.25rem; }
    .report_intro .intro_txt { font-size: 0.9375rem; }
    .intro_list li { font-size: 0.9375rem; gap: 10px; }
    .intro_list li strong { width: 52px; }
    .report_agree { padding: 20px 16px; }
    .rf_field input.w_s { max-width: 100%; }
}


/* ============================================
   경영시스템 — ESG경영 (탭)
   ============================================ */
.esg_tabs { display: flex; margin-bottom: 50px; }
.esg_tabs li { flex: 1; }
.esg_tabs li a {
    display: flex; align-items: center; justify-content: center;
    height: 54px; border: 1px solid #ccc; margin-left: -1px;
    font-size: 1.0625rem; color: #555; background: #fff; transition: all .2s;
}
.esg_tabs li:first-child a { margin-left: 0; }
.esg_tabs li a:hover { color: #73151b; }
.esg_tabs li.on a { background: #73151b; border-color: #73151b; color: #fff; font-weight: 700; position: relative; z-index: 1; }

.esg_mission { font-size: 1.25rem; color: #333; margin-bottom: 36px; word-break: keep-all; }

.esg_cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.esg_card { border: 1px solid #e5e5e5; background: #fff; }
.esg_img { aspect-ratio: 714 / 724; overflow: hidden; background: #f0f0f0; }
.esg_img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s; }
.esg_card:hover .esg_img img { transform: scale(1.05); }
.esg_txt { padding: 28px 26px 30px; }
.esg_txt h5 { font-family: "Gotham", sans-serif; font-size: 1.625rem; font-weight: 700; margin-bottom: 18px; padding-bottom: 14px; position: relative; }
.esg_txt h5::after { content: ""; position: absolute; left: 0; bottom: 0; width: 36px; height: 3px; }
.esg_card.env h5 { color: #7cb342; } .esg_card.env h5::after { background: #7cb342; }
.esg_card.soc h5 { color: #1a9e8a; } .esg_card.soc h5::after { background: #1a9e8a; }
.esg_card.gov h5 { color: #1f5fa8; } .esg_card.gov h5::after { background: #1f5fa8; }
.esg_txt ol { list-style: none; margin: 0; padding: 0; }
.esg_txt li { display: flex; align-items: flex-start; gap: 12px; padding: 11px 0; margin: 0; border-bottom: 1px dashed #e3e3e3; font-size: 1rem; line-height: 1.5; color: #444; word-break: keep-all; }
.esg_txt li:last-child { border-bottom: 0; }
.esg_txt li span {
    width: 22px; height: 22px; border-radius: 4px; flex-shrink: 0; margin-top: 1px;
    display: inline-flex; align-items: center; justify-content: center;
    color: #fff; font-size: 0.75rem; font-weight: 700; font-family: "Gotham", sans-serif;
}
.esg_card.env li span { background: #7cb342; }
.esg_card.soc li span { background: #1a9e8a; }
.esg_card.gov li span { background: #1f5fa8; }

/* 선언문 */
.decl_lead { font-size: 1.0625rem; line-height: 1.8; color: #333; word-break: keep-all; margin-bottom: 30px; }
.decl_boxes { display: flex; flex-direction: column; gap: 16px; }
.decl_box { display: flex; align-items: center; gap: 40px; background: #f8f8f8; border-left: 6px solid #ccc; padding: 34px 44px; position: relative; overflow: hidden; }
.decl_box::after { content: ""; position: absolute; right: -40px; top: -40px; width: 180px; height: 180px; border-radius: 50%; opacity: .07; }
.decl_box.env { border-color: #7cb342; } .decl_box.env::after { background: #7cb342; }
.decl_box.soc { border-color: #1a9e8a; } .decl_box.soc::after { background: #1a9e8a; }
.decl_box.gov { border-color: #1f5fa8; } .decl_box.gov::after { background: #1f5fa8; }
.decl_icon { width: 88px; height: 88px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 2.75rem; }
.decl_box.env .decl_icon { background: #7cb342; }
.decl_box.soc .decl_icon { background: #1a9e8a; }
.decl_box.gov .decl_icon { background: #1f5fa8; }
.decl_txt { position: relative; z-index: 1; }
.decl_txt h5 { font-family: "Gotham", sans-serif; font-size: 1.625rem; font-weight: 700; margin-bottom: 10px; display: flex; align-items: baseline; gap: 10px; }
.decl_txt h5 em { font-style: normal; font-size: 0.875rem; font-weight: 400; color: #999; letter-spacing: 0.1em; }
.decl_txt h5 small { font-family: "Pretendard-Regular", sans-serif; font-size: 1rem; font-weight: 700; color: #555; }
.decl_box.env h5 { color: #7cb342; }
.decl_box.soc h5 { color: #1a9e8a; }
.decl_box.gov h5 { color: #1f5fa8; }
.decl_txt p { font-size: 1.0625rem; line-height: 1.8; color: #444; word-break: keep-all; }
.decl_sign { margin-top: 40px; text-align: right; font-size: 1.0625rem; color: #444; }
.decl_sign strong { font-family: "Nanum Myeongjo", "NanumMyeongjo", serif; font-size: 1.75rem; letter-spacing: 0.25em; color: #2c2c2c; margin-left: 10px; }

/* 사회공헌 */
.esg_subtabs { display: flex; gap: 8px; margin-bottom: 40px; }
.esg_subtabs li a { display: inline-flex; align-items: center; height: 42px; padding: 0 28px; border: 1px solid #ccc; border-radius: 21px; color: #555; font-size: 1rem; }
.esg_subtabs li.on a { background: #2c2c2c; border-color: #2c2c2c; color: #fff; font-weight: 700; }
.esg_gal_head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 24px; }
.esg_gal_head .guide_sec_title { margin-bottom: 0; }
.esg_gal_head .cert_btn { flex: none; height: 40px; padding: 0 16px; font-size: 0.875rem; }
.esg_gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.esg_gallery li a { display: block; border: 1px solid #e5e5e5; background: #fff; }
.esg_gallery .gal_img { aspect-ratio: 10 / 7; overflow: hidden; background: #f0f0f0; display: flex; align-items: center; justify-content: center; }
.esg_gallery .gal_img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s; }
.esg_gallery li a:hover .gal_img img { transform: scale(1.05); }
.esg_gallery .noimg { font-size: 2.5rem; color: #ccc; }
.esg_gallery .gal_txt { padding: 18px 20px; }
.esg_gallery .gal_txt strong { display: block; font-size: 1.0625rem; color: #2c2c2c; margin-bottom: 6px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.esg_gallery .gal_txt span { font-size: 0.875rem; color: #888; }
.esg_gallery li a:hover .gal_txt strong { color: #73151b; }
.esg_empty { padding: 80px 0; text-align: center; color: #888; border: 1px dashed #ccc; }

@media (max-width: 1200px) {
    .esg_cards, .esg_gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
    .esg_tabs { margin-bottom: 30px; }
    .esg_tabs li a { height: 46px; font-size: 0.9375rem; }
    .esg_mission { font-size: 1.0625rem; }
    .esg_cards { grid-template-columns: 1fr; gap: 16px; }
    .esg_txt { padding: 20px 18px 22px; }
    .esg_txt h5 { font-size: 1.375rem; }
    .esg_txt li { font-size: 0.9375rem; }
    .decl_lead { font-size: 1rem; }
    .decl_box { gap: 18px; padding: 22px 18px; }
    .decl_icon { width: 60px; height: 60px; font-size: 1.875rem; }
    .decl_txt h5 { font-size: 1.25rem; flex-wrap: wrap; gap: 6px; }
    .decl_txt p { font-size: 0.9375rem; }
    .decl_sign { font-size: 0.9375rem; }
    .decl_sign strong { font-size: 1.375rem; }
    .esg_subtabs li a { padding: 0 20px; height: 38px; font-size: 0.9375rem; }
    .esg_gal_head { flex-direction: column; align-items: flex-start; gap: 10px; }
    .esg_gallery { grid-template-columns: 1fr; gap: 16px; }
}

/* ESG 사회의 약속 */
.esg_promise_title { margin-top: 70px; }
.esg_promise { display: flex; border: 1px solid #e5e5e5; background: #fff; position: relative; }
.promise_txt { flex: 1; padding: 60px 50px 60px 60px; }
.promise_txt .hana { font-size: 1.25rem; font-weight: 700; color: #73151b; margin-bottom: 10px; }
.promise_txt p + .hana { margin-top: 44px; }
.promise_txt p { font-size: 1.0625rem; line-height: 1.9; color: #333; word-break: keep-all; }
.promise_sign { margin-top: 40px; font-size: 1.125rem !important; }
.promise_sign small { font-size: 0.9375rem; color: #666; margin-right: 10px; }
.promise_sign strong { font-family: "Nanum Myeongjo", "NanumMyeongjo", serif; font-size: 1.75rem; letter-spacing: 0.25em; color: #2c2c2c; }
.promise_img { width: 440px; flex-shrink: 0; position: relative; margin: 40px 40px -50px 0; }
.promise_img::before { content: ""; position: absolute; left: -28px; bottom: -28px; width: 100%; height: 100%; background: #1a9e8a; z-index: 0; }
.promise_img img { position: relative; z-index: 1; width: 100%; height: 100%; min-height: 380px; object-fit: cover; display: block; }
.esg_page .esg_body { padding-bottom: 60px; }

@media (max-width: 1200px) {
    .promise_img { width: 340px; }
    .promise_txt { padding: 40px 30px; }
}
@media (max-width: 900px) {
    .esg_promise_title { margin-top: 50px; }
    .esg_promise { flex-direction: column; }
    .promise_txt { padding: 30px 20px; }
    .promise_txt p { font-size: 1rem; }
    .promise_txt p br { display: none; }
    .promise_sign strong { font-size: 1.5rem; }
    .promise_img { width: calc(100% - 50px); margin: 10px 30px 40px 20px; }
    .promise_img img { min-height: 240px; }
    .promise_img::before { left: -16px; bottom: -16px; }
}

/* 대표이사 서명 이미지 */
.sign_img { height: 80px; vertical-align: middle; margin-left: 10px; }
.decl_sign, .ceo_box .ceo_sign { display: flex; align-items: center; justify-content: flex-end; gap: 4px; flex-wrap: wrap; }
.promise_sign .co { display: block; font-size: 1.125rem; color: #333; margin-bottom: 6px; }
.promise_sign .ceo { display: flex; align-items: center; gap: 6px; }
@media (max-width: 900px) { .sign_img { height: 56px; } }

/* 사회공헌 하위탭 활성 (우선순위 강화) / 관리자 버튼 */
.esg_page .esg_subtabs li a { background: #fff; color: #555; border: 1px solid #ccc; }
.esg_page .esg_subtabs li a:hover { border-color: #73151b; color: #73151b; }
.esg_page .esg_subtabs li.on a,
.esg_page .esg_subtabs li.on a:hover { background: #73151b !important; border-color: #73151b !important; color: #fff !important; font-weight: 700; }
.esg_gal_head .cert_btn { height: 42px; }
.esg_gallery li { position: relative; }
.gal_admin { position: absolute; top: 10px; right: 10px; z-index: 2; display: flex; gap: 4px; }
.gal_admin a { width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; background: rgba(0,0,0,0.6); color: #fff; border-radius: 4px; font-size: 0.9375rem; }
.gal_admin a:hover { background: #73151b; }
.esg_cur_file { display: flex; align-items: center; gap: 12px; margin-top: 10px; font-size: 0.875rem; color: #666; }
.esg_cur_file img { width: 80px; height: 60px; object-fit: cover; border: 1px solid #ddd; }
.esg_cur_file label { display: flex; align-items: center; gap: 4px; cursor: pointer; color: #d9534f; }
.esg_submit { display: flex; justify-content: center; gap: 8px; }
.esg_submit .cert_btn { flex: none; display: inline-flex; height: 52px; padding: 0 40px; font-size: 1rem; }
.rf_field input[type=date] { height: 44px; border: 1px solid #ccc; padding: 0 12px; font-family: inherit; font-size: 1rem; }


/* ============================================
   사회공헌 — 제목 + 사진 목록 (봉사활동 / 환경캠페인)
   ============================================ */
.esg_post { margin-bottom: 50px; }
.esg_post_head { display: flex; align-items: center; gap: 14px; padding-bottom: 12px; border-bottom: 2px solid #73151b; margin-bottom: 18px; }
.esg_post_head h5 { font-size: 1.25rem; font-weight: 700; color: #2c2c2c; word-break: keep-all; }
.esg_post_head .date { font-size: 0.9375rem; color: #888; }
.esg_post_head .gal_admin { position: static; margin-left: auto; }
.esg_post_head .gal_admin a { background: #eee; color: #555; width: 28px; height: 28px; font-size: 0.875rem; }
.esg_post_head .gal_admin a:hover { background: #73151b; color: #fff; }
.esg_post_txt { font-size: 1rem; line-height: 1.8; color: #555; margin-bottom: 16px; word-break: keep-all; }
.esg_photos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.esg_photos li a { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #f0f0f0; border: 1px solid #e5e5e5; }
.esg_photos li img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.esg_photos li a:hover img { transform: scale(1.06); }

/* 확대보기 (사진 넘기기) */
.esg_layer .cert_layer_inner img { max-height: 85vh; }
.esg_nav { position: fixed; top: 50%; transform: translateY(-50%); width: 56px; height: 56px; border: 0; background: rgba(255,255,255,0.15); color: #fff; font-size: 2rem; cursor: pointer; border-radius: 50%; z-index: 2; }
.esg_nav:hover { background: rgba(255,255,255,0.35); }
.esg_nav.prev { left: 24px; } .esg_nav.next { right: 24px; }
.esg_counter { color: #fff; margin-top: 12px; font-size: 0.9375rem; opacity: .8; }

/* 글쓰기: 사진 목록/미리보기 */
.esg_cur_list { display: flex; flex-wrap: wrap; gap: 10px; }
.esg_cur_list li { width: 110px; text-align: center; font-size: 0.8125rem; }
.esg_cur_list img { width: 110px; height: 82px; object-fit: cover; border: 1px solid #ddd; display: block; margin-bottom: 4px; }
.esg_cur_list label { color: #d9534f; cursor: pointer; display: inline-flex; align-items: center; gap: 3px; }
.esg_preview { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.esg_preview img { width: 90px; height: 68px; object-fit: cover; border: 1px solid #ddd; }

@media (max-width: 1200px) { .esg_photos { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px) {
    .esg_post { margin-bottom: 36px; }
    .esg_post_head { flex-wrap: wrap; gap: 8px; }
    .esg_post_head h5 { font-size: 1.0625rem; width: 100%; }
    .esg_photos { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .esg_nav { width: 40px; height: 40px; font-size: 1.5rem; }
    .esg_nav.prev { left: 8px; } .esg_nav.next { right: 8px; }
}

/* 테마 기본 목록 들여쓰기 제거 (모바일 포함 전체) */
.ethics_page ul, .ethics_page ol, .cert_page ul, .cert_page ol,
.charter_list, .decl_list, .intro_list, .esg_photos, .esg_tabs, .esg_subtabs, .esg_cur_list { padding-left: 0; margin-left: 0; list-style: none; }
.art ul ul { margin-left: 4px; }

/* 제보 완료 레이어 팝업 */
.report_done .done_box {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
    width: 520px; max-width: 92vw; background: #fff; padding: 50px 40px 40px; text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.report_done .done_box > i { font-size: 4rem; color: #73151b; display: block; margin-bottom: 16px; }
.report_done h4 { font-size: 1.5rem; font-weight: 700; color: #2c2c2c; margin-bottom: 16px; }
.report_done p { font-size: 1rem; line-height: 1.8; color: #555; word-break: keep-all; }
.report_done .done_f { margin-top: 10px; color: #d9534f; font-size: 0.9375rem; }
.done_contact { margin: 26px 0 30px; padding: 18px; background: #f8f6f6; display: flex; flex-direction: column; gap: 6px; font-size: 1rem; color: #333; }
.done_contact strong { color: #73151b; margin-bottom: 4px; }
.done_contact i { color: #73151b; margin-right: 6px; }
.report_done .done_close { flex: none; display: inline-flex; height: 50px; padding: 0 50px; font-size: 1.0625rem; font-weight: 700; }
@media (max-width: 900px) {
    .report_done .done_box { padding: 36px 20px 28px; }
    .report_done h4 { font-size: 1.25rem; }
    .report_done p { font-size: 0.9375rem; }
}

/* 모바일: 대표이사 이름·서명 한 줄 유지 */
.promise_sign .ceo, .decl_sign, .ceo_box .ceo_sign { white-space: nowrap; flex-wrap: nowrap; }
.promise_sign .ceo small, .promise_sign .ceo strong { white-space: nowrap; }
@media (max-width: 900px) {
    .promise_sign .ceo small { font-size: 0.875rem; }
    .promise_sign .ceo strong, .decl_sign strong, .ceo_box .ceo_sign strong { font-size: 1.25rem; letter-spacing: 0.12em; }
    .sign_img { height: 44px; margin-left: 6px; }
}
@media (max-width: 400px) {
    .promise_sign .ceo strong, .decl_sign strong, .ceo_box .ceo_sign strong { font-size: 1.125rem; letter-spacing: 0.08em; }
    .sign_img { height: 38px; }
    .decl_sign, .ceo_box .ceo_sign { font-size: 0.875rem; }
}

/* 사회공헌 제목/날짜: 날짜 한 줄 고정, 제목은 <br> 위치에서만 줄바꿈 */
.esg_post_head { align-items: flex-start; }
.esg_post_head h5 { flex: 1; min-width: 0; line-height: 1.5; }
.esg_post_head .date { white-space: nowrap; flex-shrink: 0; padding-top: 5px; }
.esg_post_head .gal_admin { flex-shrink: 0; }
@media (max-width: 900px) {
    .esg_post_head h5 { width: auto; }
    .esg_post_head .date { padding-top: 3px; }
}

/* 글수정: 사진 순서 변경 */
.esg_cur_list li { position: relative; cursor: grab; border: 2px solid transparent; padding: 4px; }
.esg_cur_list li.dragging { opacity: .4; }
.esg_cur_list li.over { border-color: #73151b; }
.esg_cur_list .ord { position: absolute; top: 6px; left: 6px; background: #73151b; color: #fff; font-size: 0.75rem; width: 20px; height: 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center; z-index: 1; }
.esg_cur_list .mv { display: flex; justify-content: center; gap: 4px; margin: 4px 0; }
.esg_cur_list .mv button { width: 28px; height: 24px; border: 1px solid #ccc; background: #fff; cursor: pointer; font-size: 0.6875rem; color: #555; }
.esg_cur_list .mv button:hover { border-color: #73151b; color: #73151b; }
