/* ==============================================
   BASE.CSS
   SeeChart Homepage 공통 기반 CSS
   (reset + font + body/wrap + header + footer + 공통 컴포넌트)
   ============================================== */

/* =============================================
   @import (구글 폰트 — @import는 반드시 최상단)
   ============================================= */
@import url('//fonts.googleapis.com/css2?family=Noto+Sans&family=Noto+Sans+KR:wght@300&display=swap');

/* ==============================================
   FONT-FACE (단일 정의 — 각 subXX.css 중복 제거)
   ============================================== */

@font-face {
  font-family: 'S-CoreDream-5Medium';
  src: url('../font/S-CoreDream-5Medium.otf');
  src: url('../font/S-CoreDream-5Medium.eot'),
       url('../font/S-CoreDream-5Medium.eot?#iefix') format('embedded-opentype'),
       url('../font/S-CoreDream-5Medium.svg#S-CoreDream-5Medium') format('svg'),
       url('../font/S-CoreDream-5Medium.ttf') format('truetype'),
       url('../font/S-CoreDream-5Medium.woff') format('woff'),
       url('../font/S-CoreDream-5Medium.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'NotoSansKR-Regular';
  src: url('../font/NotoSansKR-Regular.eot');
  src: url('../font/NotoSansKR-Regular.otf'),
       url('../font/NotoSansKR-Regular.eot?#iefix') format('embedded-opentype'),
       url('../font/NotoSans-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Pretendard-Regular';
  src: url('//cdn.jsdelivr.net/gh/Project-Noonnu/noonfonts_2107@1.1/Pretendard-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'Play-Regular';
  src: url('../font/Play-Regular.ttf');
}

@font-face {
  font-family: 'LeferiPoint-SpecialItalicA';
  src: url('//cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2201-2@1.0/LeferiPoint-SpecialItalicA.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

/* ==============================================
   CSS RESET (Meyer v2.0)
   ============================================== */

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}

article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
  display: block;
}

ol, ul { list-style: none; }

blockquote, q { quotes: none; }
blockquote:before, blockquote:after,
q:before, q:after { content: ''; content: none; }

table { border-collapse: collapse; border-spacing: 0; }

select { -webkit-appearance: none; }

input:focus, select:focus, option:focus, textarea:focus, button:focus { outline: none; }

/* ==============================================
   BODY / WRAP
   ============================================== */

body {
  font-family: 'NotoSansKR-Regular', sans-serif;
  margin: 0 auto;
  padding: 0;
  position: relative;
}

#wrap {
  margin: 0 auto;
  font-family: 'NotoSansKR-Regular', sans-serif;
  font-size: 15px;
  text-align: center;
  position: relative;
}

/* ==============================================
   SKIP NAVIGATION
   ============================================== */

.skip-navigation {
  position: absolute;
  left: 0;
  top: -50px;
  text-indent: -9999px;
  width: 100%;
  z-index: 999;
}

.skip-navigation ul { overflow: hidden; }

.skip-navigation ul li:active,
.skip-navigation ul li:focus {
  position: absolute;
  left: 0;
  top: 50px;
  display: block;
  width: 100%;
  padding: 5px 0;
  text-align: center;
  text-indent: 0;
  font-size: 12px;
  font-weight: 600;
}

/* ==============================================
   HEADER LINE / 햄버거 버튼
   ============================================== */

.header_line {
  position: absolute;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  width: 100%;
  top: 100px;
  z-index: 4;
}

/* 데스크톱에서 햄버거 버튼 숨김 (responsive.css에서 모바일만 표시) */
.btn_menu {
  display: none; /* JS append 이후에도 데스크톱에서는 hidden */
}

/* ==============================================
   HEADER (투명 오버레이 GNB)
   ============================================== */

header {
  position: absolute;
  width: 100%;
  overflow: hidden;
  z-index: 5;
}

header .header_inner {
  width: 1400px;
  margin: 0 auto;
  position: relative;
}

header .header_inner .logo_area {
  margin: 30px 0;
  float: left;
  overflow: hidden;
}

header .header_inner .logo_area > h1 {
  float: left;
  display: inline;
  margin-right: 20px;
}

header .header_inner .logo_area > .title_number {
  display: inline;
  font-family: 'Pretendard-Regular';
  font-size: 20px;
  font-weight: 600;
  color: #fff;
  background: url(../img/bar2.png) no-repeat 0 center;
  padding-left: 20px;
  line-height: 1.5em;
}

header .header_inner nav > ul {
  float: right;
  font-size: 18px;
  margin-top: 33px;
}

header .header_inner nav > ul > li {
  float: left;
  margin-left: 80px;
}

header .header_inner nav > ul > li > a {
  text-decoration: none;
  color: #fff;
}

header .header_inner nav > ul > li > ul {
  overflow: hidden;
  width: 130px;
  height: 490px;
  margin-left: -20px;
  border-top: 1px solid #fff;
  border-bottom: 1px solid #fff;
  margin-top: 40px;
  padding-top: 10px;
  display: none;
}

header .header_inner nav > ul > li > ul > li {
  font-size: 15px;
  margin: 0;
  line-height: 2em;
  color: #fff;
  cursor: pointer;
}

header .header_inner nav > ul > li > ul > li:hover {
  text-decoration: underline;
}

/* ==============================================
   WHITE HEADER (호버 시 펼쳐지는 메가메뉴)
   ============================================== */

#white_header {
  position: absolute;
  width: 100%;
  height: 485px;
  overflow: hidden;
  z-index: 10;
  background: url(../img/sub_bg.png) no-repeat 110% 200px;
  background-size: 400px;
  background-color: #fff;
}

#white_header .header_line2 {
  position: absolute;
  top: 100px;
  width: 100%;
  border-bottom: 1px solid #ddd;
}

#white_header .white_header_inner {
  width: 1400px;
  margin: 0 auto;
}

#white_header .white_header_inner .white_logo_area {
  margin: 30px 0;
  float: left;
  overflow: hidden;
}

#white_header .white_header_inner .white_logo_area > h1 {
  float: left;
  display: inline;
  margin-right: 20px;
}

#white_header .white_header_inner .white_logo_area > .logo {
  float: left;
  display: inline;
  margin-right: 20px;
}

#white_header .white_header_inner .white_logo_area > .title_number {
  display: inline;
  font-family: 'Pretendard-Regular';
  font-size: 20px;
  font-weight: 600;
  color: #bc1225;
  background: url(../img/bar3.png) no-repeat 0 center;
  padding-left: 20px;
  line-height: 1.5em;
}

#white_header .white_header_inner nav > ul {
  float: right;
  font-size: 18px;
  margin-top: 33px;
}

#white_header .white_header_inner nav > ul > li {
  float: left;
  margin-left: 79px;
}

#white_header .white_header_inner nav > ul > li > a {
  display: block;
  text-decoration: none;
  font-weight: 600;
  height: 67px;
  color: #333333;
}

#white_header .white_header_inner nav > ul > li > a:hover {
  color: #bc1225;
  height: 63px;
  border-bottom: 4px solid #bc1225;
}

#white_header .white_header_inner nav > ul > li > ul {
  overflow: hidden;
  border-top: 1px solid #fff;
  border-bottom: 1px solid #fff;
  padding-top: 10px;
}

#white_header .white_header_inner nav > ul > li > ul > li {
  font-size: 15px;
  margin: 5px 0;
  line-height: 2em;
  color: #666666;
  cursor: pointer;
}

#white_header .white_header_inner nav > ul > li > ul > li a {
  display: inline-block;
  position: relative;
  text-decoration: none;
  color: #666666;
}

#white_header .white_header_inner nav > ul > li > ul > li a:hover {
  color: #bc1225;
}

#white_header .white_header_inner nav > ul > li > ul > li a:after,
#white_header .white_header_inner nav > ul > li > ul > li a:before {
  content: "";
  position: absolute;
  bottom: 0;
  width: 0;
  height: 2px;
  background-color: #bc1225;
  transition: all .5s;
}

#white_header .white_header_inner nav > ul > li > ul > li a:after { left: 50%; }
#white_header .white_header_inner nav > ul > li > ul > li a:before { right: 50%; }

#white_header .white_header_inner nav > ul > li > ul > li a:hover:after,
#white_header .white_header_inner nav > ul > li > ul > li a:hover:before {
  width: 50%;
}

/* 검은 딤 배경 */
.black_bg {
  position: fixed;
  top: 0;
  width: 100%;
  height: 2000px;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
  display: none;
}

/* ==============================================
   CONTAINER (공통 레이아웃)
   ============================================== */

.container {
  width: 1400px;
  margin: 0 auto;
}

.null_box {
  width: 100%;
  height: 650px;
}

.content_line {
  width: 100%;
  height: 1px;
  position: relative;
  top: 135px;
  border-top: 1px solid #ddd;
}

/* ==============================================
   BG_CONTENT (서브 페이지 히어로)
   ============================================== */

.bg_content {
  width: 100%;
  height: 600px;
  position: relative;
  overflow: hidden;
  z-index: 0;
}

.bg_content .bg_area {
  position: absolute;
  width: 100%;
  height: 600px;
  background-size: cover;
  transition: all 4.7s ease;
  transform: scale(1.1) rotate(0deg);
  z-index: -1;
}

.bg_content .title_area {
  position: absolute;
  width: 100%;
  height: 100px;
  transform: translate(0%, 275%);
}

.bg_content .title_area span {
  font-size: 55px;
  font-weight: 600;
  color: #fff;
  text-shadow: 0px 0px 3px #555;
  margin-bottom: 30px;
}

.bg_content .title_area img {
  margin: 0 5px;
  vertical-align: middle;
}

.bg_content .title_area b {
  font-size: 15px;
  color: #fff;
  text-shadow: 0px 0px 3px #333;
}

/* sub01 전용 히어로 (title_area가 bg_area 안에 있음) */
.bg_content .bg_area .title_area {
  position: absolute;
  width: 100%;
  height: 100px;
  transform: translate(0%, 250%);
}

.bg_content .bg_area .title_area h1 {
  font-size: 55px;
  font-weight: 600;
  color: #fff;
  text-shadow: 0px 0px 3px #555;
  margin-bottom: 30px;
}

.bg_content .bg_area .title_area span {
  font-size: 15px;
  color: #fff;
  text-shadow: 0px 0px 3px #333;
}

/* ==============================================
   FOOTER
   ============================================== */

footer {
  width: 100%;
  height: 100%;
  background-color: #333333;
}

.footer_black {
  width: 1400px;
  height: 100%;
  margin: 0 auto;
  background-color: #333333;
}

.footer_black .footer_area01 {
  border-bottom: 1px solid #444;
  padding-bottom: 50px;
  overflow: hidden;
}

.footer_black .footer_area01 ul {
  padding-top: 3px;
  overflow: hidden;
}

.footer_black .footer_area01 ul li {
  float: right;
  font-size: 16px;
  color: #fff;
  margin-left: 40px;
  cursor: pointer;
}

.footer_black .footer_area01 .logo_area2 {
  margin-top: 50px;
}

.footer_black .footer_area01 .logo_area2 img {
  float: left;
}

.footer_black .footer_area02 {
  padding: 50px 0;
  overflow: hidden;
}

.footer_black .footer_area02 address {
  float: left;
  text-align: left;
  font-size: 14px;
  color: #999999;
}

.footer_black .footer_area02 .family_site_bt {
  float: right;
}

.footer_black .footer_area02 .family_site_bt select {
  width: 180px;
  height: 40px;
  font-size: 14px;
  padding-left: 10px;
  border: 1px solid #ffffff;
  background: url("../img/plus.png") no-repeat 90% center;
  appearance: none;
  color: #ffffff;
}

.footer_black .footer_area02 .family_site_bt select option {
  color: #333;
}

/* ==============================================
   POPUP (레이어 팝업)
   ============================================== */

.layerPop {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 999;
  background: #fff;
  transform: translate(-50%, -50%);
  padding-bottom: 10px;
}

.black_bg2 {
  top: 0;
  width: 100%;
  height: 5000px;
  position: fixed;
  background: rgba(0, 0, 0, 0.3);
  z-index: 998;
}

.layerPop .btn-popup-close {
  color: #333;
  cursor: pointer;
  float: left;
}

.layerPop .btn-x-close {
  color: #333;
  margin-right: 5px;
  float: right;
  cursor: pointer;
}

.layerPop span {
  margin-top: 5px;
  display: block;
  cursor: pointer;
}

.x_btn {
  width: 25px;
  height: 25px;
  vertical-align: middle;
  opacity: 0.8;
}

.btn-x-close2 {
  top: -55px;
  left: 413px;
  width: 100%;
  height: 1000px;
  position: fixed;
  z-index: 998;
}

.btn-x-close2 img {
  width: 50px;
  height: 50px;
  filter: invert(1);
  cursor: pointer;
}

.inform-box {
  cursor: pointer;
}

/* ==============================================
   개인정보 팝업 (gain_popup)
   ============================================== */

.gain_popup {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}

.gain_inner {
  width: 62%;
  height: 81vh;
  background: #fff;
  transform: translate(25%, 1.5%);
  padding: 30px 40px;
  position: fixed;
  z-index: 999;
  overflow: hidden;
  top: 5%;
}

.gain_inner h2 {
  font-size: 25px;
  font-weight: 600;
  color: #bc1225;
  padding-bottom: 15px;
  border-bottom: 2px solid #bc1225;
}

.gain_txt {
  margin-top: 25px;
  overflow-y: scroll;
  height: 65vh;
  padding-right: 10px;
  border-bottom: 1px solid #ddd;
}

.gain_txt::-webkit-scrollbar { width: 10px; }
.gain_txt::-webkit-scrollbar-thumb { background-color: #cccccc; border-radius: 50px; }
.gain_txt::-webkit-scrollbar-track { background-color: #f3f3f3; }

.ok_bt {
  border: 1px solid #bc1225;
  color: #fff;
  background: #bc1225;
  padding: 10px 60px;
  font-size: 17px;
  display: block;
  text-align: center;
  margin: 2.5vh auto;
  cursor: pointer;
}

.gain_check { text-decoration: underline; }

/* ==============================================
   공통 커스텀 체크박스 (info_chk)
   ============================================== */

.info_chk[type='checkbox'] {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.info_chk[type='checkbox'] + label {
  display: inline-block;
  position: relative;
  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  color: #666;
  margin-bottom: 5px;
}

.info_chk[type='checkbox'] + label:before {
  content: ' ';
  display: inline-block;
  width: 16px;
  height: 16px;
  line-height: 21px;
  margin: -1px 5px 0 0;
  text-align: center;
  vertical-align: middle;
  background: none;
  border: 1px solid #666;
  border-radius: 3px;
}

.info_chk[type='checkbox']:checked + label:before {
  content: "\2713";
  font-size: 14px;
  font-weight: 800;
  color: #bc1225;
  text-align: center;
  line-height: 15px;
  border: 1px solid #bc1225;
}

.info_label span { color: #333; }
.info_label span b { color: #bc1225; }

/* ==============================================
   공통 애니메이션 (fadeInUp, slideUpsss)
   ============================================== */

@keyframes fadeInUp {
  0% { top: 40px; opacity: 0; transform: translate3d(0, 100%, 0); }
  to { top: 0px; opacity: 1; transform: translateZ(0); }
}
@keyframes fadeInUp2 {
  0% { top: 42.5px; opacity: 0; transform: translate3d(0, 100%, 0); }
  to { top: 0px; opacity: 1; transform: translateZ(0); }
}
@keyframes fadeInUp3 {
  0% { top: 44px; opacity: 0; transform: translate3d(0, 100%, 0); }
  to { top: 0px; opacity: 1; transform: translateZ(0); }
}
@keyframes fadeInUp4 {
  0% { top: 46px; opacity: 0; transform: translate3d(0, 100%, 0); }
  to { top: 0px; opacity: 1; transform: translateZ(0); }
}
@keyframes fadeInUp5 {
  0% { top: 48px; opacity: 0; transform: translate3d(0, 100%, 0); }
  to { top: 0px; opacity: 1; transform: translateZ(0); }
}
@keyframes fadeInUp6 {
  0% { top: 50px; opacity: 0; transform: translate3d(0, 100%, 0); }
  to { top: 0px; opacity: 1; transform: translateZ(0); }
}

.a { position: relative; animation: fadeInUp 1s; }
.b { position: relative; animation: fadeInUp2 1.3s; }
.c { position: relative; animation: fadeInUp3 1.5s; }
.d { position: relative; animation: fadeInUp4 1.7s; }
.e { position: relative; animation: fadeInUp5 1.8s; }
.f { position: relative; animation: fadeInUp6 2.1s; }

@keyframes slideUpsss {
  0% { opacity: 0; transform: translateY(100%); }
  100% { opacity: 1; transform: translateY(0%); }
}

.slideUpsss  { animation: slideUpsss 0.8s ease both; visibility: visible !important; }
.slideUpsss2 { animation: slideUpsss 1.0s ease both; visibility: visible !important; }
.slideUpsss3 { animation: slideUpsss 1.2s ease both; visibility: visible !important; }
.slideUpsss4 { animation: slideUpsss 1.4s ease both; visibility: visible !important; }
.slideUpsss5 { animation: slideUpsss 1.6s ease both; visibility: visible !important; }
.slideUpsss6 { animation: slideUpsss 1.8s ease both; visibility: visible !important; }

/* 서비스 모니터 이미지 확대 뷰어 */
#img_viewer {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  padding: 48px 16px 24px;
  box-sizing: border-box;
}

#img_viewer.open {
  display: flex;
}

#img_viewer img {
  max-width: 100%;
  max-height: 88vh;
  object-fit: contain;
}

#img_viewer .img_viewer_close {
  position: absolute;
  top: 12px;
  right: 16px;
  width: 40px;
  height: 40px;
  border: none;
  background: none;
  color: #fff;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
}

body.viewer-open { overflow: hidden; }
