/*************************************************************
 * lang_common.css — 한국어 외 언어(en/ja/zh)에서만 로드
 * 한글이 박힌 이미지(스프라이트)를 실제 텍스트로 대체한다.
 * (한국어 화면에는 영향 없음)
 *************************************************************/

/* 상단 메인 메뉴: 스프라이트 → 주황색 바 + 텍스트 */
body #header .gnb_group {
  background: #ef7124 none !important;
  height: 34px;
}
body #header .gnb_group ul li a {
  text-indent: 0 !important;
  font-size: 14px !important;
  line-height: 34px !important;
  height: 34px !important;
  color: #fff !important;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  background-image: none !important;
  font-family: "Noto Sans", "Malgun Gothic", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Microsoft YaHei", Arial, sans-serif;
}
body #header .gnb_group ul li a:hover,
body #header .gnb_group ul li a[class$="_on"] {
  background-color: #d95f10 !important;
}

/* 로그인/로그아웃 버튼: 스프라이트 → 텍스트 버튼 */
body #header .util_area ul.util_right li a.btn_login,
body #header .util_area ul.util_right li a.btn_logout {
  background: #b5121b none !important;
  color: #fff !important;
  text-indent: 0 !important;
  font-size: 11px !important;
  line-height: 18px !important;
  width: auto !important;
  min-width: 50px;
  padding: 0 8px;
  text-align: center;
  border-radius: 2px;
}

/* 언어 선택 */
#header .util_area ul.util_left li.fn_link a { color: #ffe6de; }
#header .util_area ul.util_left li.lang_on a { font-weight: bold; text-decoration: underline; }
#header .util_area ul.util_left li { padding-right: 10px; }

/* 언어별 글꼴 */
:lang(ja) body, :lang(ja) { font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif; }
:lang(zh-CN) body, :lang(zh-CN) { font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", sans-serif; }

/* ---- 이미지 버튼 → 텍스트 대체 (메인 로그인/공지/퀵메뉴) ---- */
/* 스프라이트 배경 위에 라벨을 얹던 빈 링크: 배경 제거 후 텍스트 타일로 표시 */
a:has(> .i18n-txt) {
  background: #f6f6f6 none !important;
  border: 1px solid #ddd;
  border-radius: 3px;
  color: #333 !important;
  text-indent: 0 !important;
  font-size: 12px !important;
  line-height: 1.25 !important;
  font-weight: bold;
  text-align: center;
  text-decoration: none !important;
  box-sizing: border-box;
  display: flex !important;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 2px;
  word-break: keep-all;
}
a:has(> .i18n-txt):hover { background: #ffe9d9 !important; }

/* 이미지 대신 들어가는 작은 텍스트 버튼 */
.i18n-btn {
  display: inline-block;
  padding: 1px 7px;
  background: #b5121b;
  color: #fff;
  font-size: 11px;
  line-height: 16px;
  border-radius: 2px;
  cursor: pointer;
  vertical-align: middle;
  white-space: nowrap;
}

/* 메인 좌측 큰 퀵메뉴 3개 (이미지맵 대체) */
.i18n-tiles { height: auto !important; }
.i18n-tiles a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 222px;
  height: 72px;
  margin: 10px 0 0 10px;
  background: #ef7124;
  color: #fff;
  font-size: 15px;
  font-weight: bold;
  text-decoration: none;
  border-radius: 4px;
  text-align: center;
}
.i18n-tiles a:hover { background: #d95f10; }

/* 페이지 제목/배너 이미지 대체 */
.i18n-title {
  margin: 0; padding: 6px 0 8px; font-size: 20px; font-weight: bold; color: #333;
  border-bottom: 2px solid #ef7124;
}
.i18n-banner {
  margin: 8px auto; padding: 22px 16px; max-width: 636px; background: #fff6ef;
  border: 1px solid #f3c9a8; border-radius: 4px; color: #444; font-size: 14px; line-height: 1.6; text-align: center;
}

/* 회원제 선택 카드 (이미지 본문 대체) */
.i18n-cards { display: flex; flex-wrap: wrap; gap: 14px; margin: 18px 0; }
.i18n-card {
  flex: 1 1 150px; min-width: 150px; padding: 22px 14px; text-align: center; text-decoration: none;
  background: #fff6ef; border: 1px solid #f3c9a8; border-radius: 6px; color: #333;
}
.i18n-card b { display: block; font-size: 16px; margin-bottom: 10px; }
.i18n-card span { display: inline-block; padding: 4px 12px; background: #ef7124; color: #fff; border-radius: 3px; font-size: 12px; }
.i18n-card:hover { background: #ffe9d9; }
.i18n-note { color: #777; font-size: 12px; }

/* 회원전환 탭 (이미지 대체 시 선택 상태) */
.i18n-btn.i18n-on { background: #ef7124; }
#img_ok.i18n-btn, #img_reg.i18n-btn { padding: 6px 14px; font-size: 13px; background: #999; }
#img_ok.i18n-btn.i18n-on, #img_reg.i18n-btn.i18n-on { background: #ef7124; }


/*************************************************************
 * 서브페이지 (한국어 서브 헤더와 같은 흰색 바 스타일)
 *************************************************************/
.hdr-sub #header .gnb_group { background: none !important; }
.hdr-sub #header .gnb_group ul li a {
  color: #222 !important; background: none !important; font-style: normal !important; font-weight: bold;
  font-size: 14px !important; height: 56px !important; line-height: 56px !important; width: 115px !important;
  text-align: center; letter-spacing: -0.2px; padding: 0 !important; overflow: hidden; text-overflow: ellipsis;
}
.hdr-sub #header .gnb_group ul li a:hover,
.hdr-sub #header .gnb_group ul li a.i18n-cur { color: #e4002b !important; background: none !important; }
/* 서브 헤더 일반 메뉴 7개: 한국어와 같은 115px (UDR 상단 메뉴는 제거됨) */

/* 왼쪽 메뉴: 긴 문구가 줄바꿈되어도 겹치지 않게 */
.sub_left .gnb_major ul li { height: auto !important; min-height: 32px; float: none !important; clear: both; }
.sub_left .gnb_major ul li a { 
  box-sizing: border-box !important; 
  width: 143px !important; 
  max-width: 143px !important; 
  height: auto !important; 
  min-height: 32px; 
  line-height: 16px !important; 
  padding: 8px 0 7px !important; 
  display: block; 
  white-space: normal; 
  word-break: normal; 
  overflow-wrap: anywhere; 
  letter-spacing: -1px !important; 
}
.sub_left .gnb_major ul li a.selected { 
  line-height: 16px !important; 
  padding-left: 11px !important; 
}

/* 계층형 왼쪽 메뉴 (.gnb_major2) */
.sub_left .gnb_major2 ul li { height: auto !important; float: none !important; clear: both; }
.sub_left .gnb_major2 ul li a { 
  box-sizing: border-box !important; 
  width: 143px !important; 
  max-width: 143px !important; 
  height: auto !important; 
  display: block; 
  white-space: normal; 
  word-break: normal; 
  overflow-wrap: anywhere; 
  letter-spacing: -1px !important; 
}
.sub_left .gnb_major2 ul li.btn_service1 a,
.sub_left .gnb_major2 ul li.btn_service3 a { 
  min-height: 27px; 
  line-height: 16px !important; 
  padding: 6px 0 5px !important; 
}
.sub_left .gnb_major2 ul li.btn_service1_on a,
.sub_left .gnb_major2 ul li a.selected { 
  line-height: 16px !important; 
  padding-left: 11px !important; 
}
.sub_left .gnb_major2 ul li.btn_service2 a { 
  min-height: 24px; 
  line-height: 15px !important; 
  padding: 5px 0 4px 10px !important; 
  text-indent: 0 !important; 
}
.sub_left .gnb_major2 ul li.btn_service2_on a { 
  min-height: 24px; 
  line-height: 15px !important; 
  padding: 5px 0 4px 18px !important; 
  text-indent: 0 !important; 
}

/* 제목 이미지 → 텍스트 제목 (왼쪽 메뉴 제목 / 페이지 제목) */
.sub_left .title_img_box .i18n-title,
.sub_left .title_img_box .i18n-btn { display: block; border: 0; background: none; color: #444; font-size: 17px; font-weight: bold; text-align: center; padding: 26px 6px 0; margin: 0; }
.text_tit .i18n-title { display: block; border: 0; padding: 0; margin: 0; font-size: 22px; line-height: 38px; font-weight: bold; color: #222; }
span.i18n-title { display: inline-block; }


/*************************************************************
 * 상단 공통 메뉴 보정 (4-B) — 한국어에는 로드되지 않음, 메뉴 영역(#header)에만 적용
 * 메뉴 문구는 짧은 키(menu.*)로 해결하고, 아래는 만일의 넘침이 겹침으로 번지지 않게 하는 안전망.
 * 높이·폭·스프라이트·열 정렬은 건드리지 않는다.
 *************************************************************/
/* 메인 메뉴: 항목 폭(메인 123px / 서브 123px)은 그대로, 넘치면 말줄임 */
body #header .gnb_group ul li a {
  box-sizing: border-box;
  padding-left: 3px !important;
  padding-right: 3px !important;
  text-overflow: ellipsis;
}
/* 드롭다운: li 높이 24px 고정이므로 줄바꿈 대신 한 줄 말줄임 (아래 항목과 겹침 방지) */
#header .gnb_sub ul li a {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-sizing: border-box;
  padding-right: 3px;
}
