@charset "utf-8";
/*
Designed by Yun Seong-hwan
Modernized: IE6/7 핵 제거, float 레이아웃 → Flexbox, CSS 변수 도입
*/

/* Default Skin - Start */

/* Design Tokens */
:root {
  --site-width: 1680px;
  --font-ui: Pretendard, "Malgun Gothic", "맑은 고딕", "Apple SD Gothic Neo", "Noto Sans KR",
             "돋움", Dotum, "굴림", Gulim, AppleGothic, sans-serif;

  --color-bg: #fff;
  --color-text: #000;
  --color-text-sub: #666;
  --color-text-muted: #999;
  --color-text-faint: #b5b5b5;
  --color-accent: #bc4032;
  --color-highlight: yellow;
  --color-sub-menu: #ffc;
  --color-border: #ddd;
  --color-border-light: #e0e0e0;
}

/* Reset */
#selectLang,
#gnb,
.gnb_sub,
#lnb,
#lnb ul,
#isSearch,
#isSearch ul,
#footer {
  margin: 0;
  padding: 0;
}

/* Site Layout - Body Wrap */
body { background: var(--color-bg); }
#bodyWrap { width: var(--site-width); margin-inline: auto; }

/* Site Layout - Logo */
#top { position: relative; width: var(--site-width); height: 55px; }
#top h1 { position: absolute; margin: 0; top: 10px; left: 0; }
#top .quickmenu { position: absolute; margin: 0; top: 0; right: 0; width: 290px; height: 30px; }
#top .join { position: absolute; margin: 0; top: 17px; right: 0; height: 40px; overflow: hidden; white-space: nowrap; }

/* Site Layout - Header */
#header {
  position: relative;
  z-index: 99;
  width: var(--site-width);
  height: 85px;
  margin-bottom: 10px;
  background: url("../images/default/bgHeader.jpg") repeat-x right bottom;
}
#header .news { position: absolute; top: 35px; right: 10px; width: 300px; height: 20px; text-align: right; }

#it_search_form { position: absolute; top: 8px; right: 10px; }
#it_search_form .input { width: 120px; height: 17px; border: 1px solid var(--color-accent); color: #888; font-size: .9em; }
#it_search_form .submit_button { width: 1px; height: 1px; visibility: hidden; }

/* 상단 주메뉴 (GNB) — <ul id="gnb">
   --gnb-height : 탭 전체 높이. 탭 아래쪽이 2차 메뉴 검은 띠에 닿도록 이 값만 조절
   --gnb-tab-bg : 탭 이미지 아래로 늘어난 부분을 채울 색 (탭 하단 색과 맞춤) */
#gnb {
  --gnb-height: 55px;
  --gnb-tab-bg: #2e3032;

  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  height: var(--gnb-height);
  overflow: hidden;
  white-space: nowrap;
  list-style: none;
}
#gnb li { position: relative; left: -2px; padding-left: 2px; list-style: none; }
#gnb li a {
  display: block;
  width: 90px;
  height: calc(var(--gnb-height) - 13px);
  padding-top: 13px;
  color: var(--color-text-sub);
  text-align: center;
  font-size: 1.12em;
  font-weight: bold;
  text-decoration: none;
}
/* 검은 탭 배경은 마우스를 올린 항목에만 표시 (JS의 li.on 클래스에 의존하지 않음) */
#gnb li:is(:hover, :focus-within) > a {
  color: #fff;
  background: var(--gnb-tab-bg) url("../images/default/bgGnbOn.gif") no-repeat center top;
}

/* 메인 2차메뉴 — <ol class="gnb_sub">
   ※ 표시/숨김을 JS(gnbinToggle)가 인라인 style="display:..."로 제어하므로
     ol에 display:flex를 걸면 인라인 스타일에 덮어써짐 → li를 float로 가로 배치 */
.gnb_sub { position: absolute; top: 55px; left: 30px; height: 24px; overflow: hidden; white-space: nowrap; list-style: none; }
.gnb_sub li {
  float: left;
  position: relative;
  left: -2px;
  padding-left: 2px;
  list-style: none;
  background: url("../images/default/sub_part.gif") no-repeat left center;
}
.gnb_sub li a {
  display: block;
  height: 18px;
  padding: 6px 15px 0;
  color: var(--color-sub-menu);
  font-family: var(--font-ui);
  font-weight: bold;
  text-decoration: none;
}
.gnb_sub li a:is(:hover, :focus-visible) { color: var(--color-highlight); }
.gnb_sub li.on a { color: var(--color-highlight); background: url("../images/default/arrow_3.gif") no-repeat center bottom; }

/* 통합검색 */
#isSearch { position: absolute; top: 8px; right: 10px; width: 216px; text-align: right; }
#isSearch .searchOrder { display: none; }
#isSearch .checked {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: 64px;
  height: 14px;
  padding: 5px 0 0 5px;
  text-align: left;
  background: url("../images/default/bgSearchTerm.gif") no-repeat;
  font: 11px/normal var(--font-ui);
  color: var(--color-text);
}
#isSearch ul {
  display: none;
  position: absolute;
  top: 18px;
  left: 0;
  padding: 2px 0 3px;
  text-align: left;
  border: 1px solid #919898;
  background: var(--color-bg);
}
#isSearch ul li { width: 67px; height: 18px; list-style: none; }
#isSearch ul li input { display: none; }
#isSearch ul li label { display: block; width: 63px; height: 15px; padding: 4px 0 0 4px; font: 11px var(--font-ui); color: var(--color-text); }
#isSearch ul li label:is(.on, :hover, :focus-visible) { background: var(--color-bg); }
#isSearch .inputText {
  position: relative;
  top: 0;
  left: 1px;
  width: 94px;
  height: 13px;
  padding: 3px 3px 1px;
  vertical-align: middle;
  color: var(--color-text);
  border: 1px solid #8e8e8d;
  background-color: var(--color-bg);
}
#isSearch .inputText:is(:hover, :focus) { border-color: #b0b0af; }
#isSearch .submit { vertical-align: middle; }

/* Site Layout - Content Body (float → flex) */
#contentBody {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  width: var(--site-width);
  padding-bottom: 10px;
  overflow: hidden;
  background: url("../images/default/bgContentBody.gif") repeat-y right top;
  border-bottom: 1px solid var(--color-border);
}

/* Site Layout - #columnMain */
#columnMain { position: relative; flex: 0 0 1470px; }
#visualArea { position: relative; left: -10px; width: 1070px; margin-right: -10px; background: #f5f5f5; }
#content { width: 100%; overflow: hidden; }

/* Site Layout - #columnRight */
#columnRight { flex: 0 0 200px; overflow: hidden; }
#columnRight .loginbox { width: 200px; padding-bottom: 5px; background: var(--color-bg); }
#columnRight .rightbox { clear: both; width: 190px; padding: 5px; border-top: 1px solid var(--color-border-light); }
#columnRight .mask { display: block; clear: both; width: 200px; height: 5px; background: var(--color-bg); }

/* Site Layout - Footer */
#footer { padding: 1em 0 2em; list-style: none; text-align: center; color: var(--color-text-faint); border-top: 3px solid #f4f4f4; }
#footer a { text-decoration: none; color: var(--color-text-muted); }
#footer li { color: var(--color-text); line-height: 1.6; }
#footer li a { font: .9em var(--font-ui); }
#footer li.bottom_menu { display: inline; padding: 0 .6em 0 1em; background: url("../images/default/vrType1.gif") no-repeat left center; }

/* Default Skin - End */
