/* 새 사이트에서 덧댄 것만 (#8719). 화면 모양은 old.css(예전 사이트 그대로)가 정하고,
   여기는 ① 글꼴 ② 정적 페이지로 바꾸며 필요한 것(슬라이드 · 탭 · 버튼 초기화) ③ 언어 · 화면 밝기
   ④ 소식 표 제목 왼쪽 정렬 ⑤ 다크 화면 만 둔다. 색 · 크기 · 사진은 예전 것을 바꾸지 않는다. */

/* ---------- 글꼴 : 예전과 같은 Pretendard (예전 300 은 파일이 없어 Light 로 그려졌음 → 그대로) ---------- */
@font-face { font-family: Pretendard; src: url(/font/Pretendard-Thin.woff2) format("woff2"); font-weight: 100; font-display: swap; }
@font-face { font-family: Pretendard; src: url(/font/Pretendard-Light.woff2) format("woff2"); font-weight: 200 300; font-display: swap; }
@font-face { font-family: Pretendard; src: url(/font/Pretendard-Regular.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: Pretendard; src: url(/font/Pretendard-Medium.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: Pretendard; src: url(/font/Pretendard-Bold.woff2) format("woff2"); font-weight: 600 700; font-display: swap; }
@font-face { font-family: Pretendard; src: url(/font/Pretendard-Black.woff2) format("woff2"); font-weight: 800 900; font-display: swap; }

:root { --dk-bg: #0f1622; --dk-surface: #172131; --dk-surface2: #1d2a3d; --dk-text: #e6ebf2; --dk-muted: #a3adbb; --dk-line: #2a3647; --dk-primary: #4b95f5; --dk-panel: #e9eef4; }
body { background: #fff; }
.skip { position: absolute; left: -9999px; top: 0; z-index: 1000; padding: 12px 16px; background: #106ede; color: #fff !important; font-size: 1.6rem; }
.skip:focus { left: 12px; top: 12px; }
:focus-visible { outline: 2px solid #106ede; outline-offset: 2px; }

/* 정적 페이지로 바꾸며 div → button 으로 바꾼 곳 : 모양은 예전 그대로 */
.swiper-prev, .swiper-next, .recruitment-btn, .hamburger-btn, .v-tab, .theme-switch {
  appearance: none; -webkit-appearance: none; background: none; border: 0; padding: 0; margin: 0; font: inherit; color: inherit; cursor: pointer;
}
.hamburger-btn { padding: 0; }
.v-tabs-bar .v-tab { height: 100%; }

/* 그림 (예전 v-img 는 배경 그림이었음 → img 로, 비율 자리는 미리 잡아 출렁임 없음) */
.v-image img.v-image__image { display: block; object-fit: cover; object-position: center; }
.v-image img.v-image__image--contain { object-fit: contain; }
.footer-logo { display: block; width: 100%; max-width: 216px; height: auto; }
.footer-divider { border-color: #363b49 !important; }
.footer a { color: inherit; }

/* ---------- 머리 : 메뉴 오른쪽에 언어 · 화면 밝기 ---------- */
.header__util { position: absolute; top: 50%; right: var(--header-body); z-index: 7; transform: translateY(-50%); display: flex; align-items: center; gap: 4px; }
.lang-select { display: flex; align-items: center; }
.lang-select a { display: inline-flex; align-items: center; justify-content: center; min-width: 30px; height: 36px; padding: 0 4px; font-size: 1.3rem; font-weight: 600; color: #999; }
.lang-select a + a::before { content: ""; width: 1px; height: 10px; margin-right: 6px; background: rgba(0, 0, 0, .15); position: relative; left: -4px; }
.lang-select a[aria-current] { color: var(--v-primary-base); }
.lang-select a:hover { color: #222; }
/* 화면 밝기 스위치 (콘솔 상단바 토글과 같은 결) : 52×28 알약 + 24 손잡이, 왼쪽 해(라이트) ↔ 오른쪽 달(다크)
   움직임은 누른 뒤에만 200ms (처음 그릴 때 미끄러지지 않게), 움직임 줄이기 설정이면 즉시 - 아래 reduce 규칙 */
.theme-switch { display: inline-flex; align-items: center; gap: 12px; flex-shrink: 0; padding: 6px 0; }
.theme-switch__track { position: relative; display: block; flex-shrink: 0; width: 52px; height: 28px; border-radius: 14px; background: rgba(0, 0, 0, .06); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); transition: background-color .2s ease; }
.theme-switch__knob { position: absolute; top: 2px; left: 2px; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #3f434c; color: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .18); }
.theme-switch__knob svg { grid-area: 1 / 1; display: block; width: 14px; height: 14px; }
.theme-switch__moon { opacity: 0; transform: rotate(-60deg) scale(.6); }
.theme-switch.is-interacted .theme-switch__knob { transition: transform .2s cubic-bezier(.16, 1, .3, 1), background-color .2s ease, color .2s ease; }
.theme-switch.is-interacted .theme-switch__knob svg { transition: opacity .2s ease, transform .2s ease; }
.theme-switch:hover .theme-switch__track { background-color: rgba(0, 0, 0, .1); }
.theme-switch:focus-visible { outline: none; }
.theme-switch:focus-visible .theme-switch__track { outline: 2px solid #106ede; outline-offset: 2px; }
[data-theme="dark"] .theme-switch__track { background-color: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); }
[data-theme="dark"] .theme-switch:hover .theme-switch__track { background-color: rgba(255, 255, 255, .14); }
[data-theme="dark"] .theme-switch__knob { transform: translateX(24px); background: #fff; color: #2b2f36; }
[data-theme="dark"] .theme-switch__sun { opacity: 0; transform: rotate(60deg) scale(.6); }
[data-theme="dark"] .theme-switch__moon { opacity: 1; transform: none; }
.theme-switch--bar { display: none; }
.header__util--panel { position: static; transform: none; margin-top: 20px; padding: 10px 0 24px; border-top: 1px solid var(--border-color); }
.theme-switch--panel { display: flex; justify-content: space-between; width: 100%; padding: 8px 0; font-size: 1.6rem; color: #555; text-align: left; }
[data-theme="dark"] .theme-switch--panel { color: var(--dk-text); }
.gnb__li--current > .gnb__link { color: var(--v-primary-base) !important; }
@media (max-width: 1199px) {
  .header__contents { padding-bottom: 24px; }
  html.menu-open { overflow: hidden; }
}
@media (min-width: 1200px) {
  .header__util { right: 12px; }
  .theme-switch--bar { display: inline-flex; }
  .header__util--panel { display: none; }
  .header__gnb { padding-right: 150px; }
  /* 펼침 메뉴 : 기본 height 0(모바일 접힘용)이 PC 에서도 남아 마우스를 올려도 안 펼쳐졌음 → 올림 · 포커스 때 높이 풀기 */
  .gnb__li:hover .gnb__sub, .gnb__li:focus-within .gnb__sub { height: auto; opacity: 1; visibility: visible; }
  .gnb__li--current > .gnb__link { color: var(--v-primary-base) !important; }
}
@media (min-width: 1200px) and (max-width: 1599px) {
  :root { --gnb-padding-x: 26px; }
}

/* ---------- 슬라이드 (예전 Swiper 자리) : 겹쳐 두고 투명도만 바꿈 → 높이 그대로 ---------- */
[data-slider="hero"] .swiper-wrapper, [data-slider="recruit"] .swiper-wrapper { display: grid; transform: none; }
[data-slider="hero"] .swiper-slide, [data-slider="recruit"] .swiper-slide { grid-area: 1 / 1; width: 100%; opacity: 0; visibility: hidden; transition: opacity .8s ease, visibility 0s linear .8s; }
[data-slider="hero"] .swiper-slide-active, [data-slider="recruit"] .swiper-slide-active { opacity: 1; visibility: visible; transition: opacity .8s ease; z-index: 1; }
[data-slider="hero"] .main-visual__img { transform: scale(1.04); transition: transform 6s ease-out; }
[data-slider="hero"] .swiper-slide-active .main-visual__img { transform: none; }
.main-visual .swiper-control { z-index: 2; }
.main-news-slide .swiper-wrapper { display: flex; column-gap: 20px; transition: transform .5s ease; }
.main-news-slide .swiper-slide { flex: 0 0 100%; width: auto; height: auto; }
.main-news-slide__con { display: block; height: 100%; color: inherit; text-decoration: none; }
.main-news-slide__con .border { height: 100%; }
@media (min-width: 576px) {
  .main-news-slide .swiper-wrapper { column-gap: 30px; }
  .main-news-slide .swiper-slide { flex-basis: calc((100% - 30px) / 2); }
}
@media (min-width: 1024px) {
  .main-news-slide .swiper-wrapper { column-gap: 36px; }
  .main-news-slide .swiper-slide { flex-basis: calc((100% - 72px) / 3); }
  .main-news-slide__con:focus-visible .border { border-color: var(--v-primary-base) !important; }
  .main-news-slide__con:focus-visible .v-btn { opacity: 1; }
}

/* ---------- 연혁 탭 : 예전 v-tabs-slider 자리 (좁으면 밑줄, 넓으면 파란 알약) ---------- */
.tab--wrap .v-tab--active { color: var(--v-primary-base); box-shadow: inset 0 -2px 0 var(--v-primary-base); }
@media (min-width: 576px) {
  .tab--wrap .v-tab--active { background-color: var(--v-primary-base); box-shadow: none; }
  .tab--wrap .v-tab:first-child { border-radius: 24px 0 0 24px; }
  .tab--wrap .v-tab:last-child { border-radius: 0 24px 24px 0; }
}
.v-window-item[hidden] { display: none !important; }

/* ---------- 소식 표 : 제목만 왼쪽 정렬 (가운데면 줄마다 시작이 달라 들여쓰기처럼 보임) ---------- */
.board-list .board-list__tit { text-align: left !important; }
.board-list td.board-list__tit .ellip { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: inherit; }
.board-list td a { color: inherit; }
.board-list td a:hover { color: var(--v-primary-base); }
.board-list tbody tr:hover { background: #fafbfc; }
.pagination a[href] { cursor: pointer; }
.pagination a[aria-disabled] { opacity: .4; pointer-events: none; }

/* ---------- 스크롤 때 살짝 떠오름 (예전 AOS 자리, 움직임 줄이기 설정이면 없음) ---------- */
html.js-reveal [data-aos] { opacity: 0; transform: translate3d(0, 24px, 0); transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1); animation: aos-failsafe 0s linear 3s forwards; }
html.js-reveal [data-aos="fade-left"] { transform: translate3d(24px, 0, 0); }
html.js-reveal [data-aos="fade"] { transform: none; }
html.js-reveal [data-aos-delay="100"] { transition-delay: .1s; }
html.js-reveal [data-aos-delay="200"] { transition-delay: .2s; }
html.js-reveal [data-aos-delay="300"] { transition-delay: .3s; }
html.js-reveal [data-aos].aos-in { opacity: 1; transform: none; animation: none; }
@keyframes aos-failsafe { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- 다크 화면 (기본은 라이트, 사용자가 고를 때만) ---------- */
[data-theme="dark"] { color-scheme: dark; --border-color: var(--dk-line); --shadow: rgba(0, 0, 0, .5); }
[data-theme="dark"] body,
[data-theme="dark"] .theme--light.v-application { background: var(--dk-bg); color: var(--dk-text); }
/* 머리는 어느 상태(스크롤 · 마우스 올림 · 펼친 메뉴)든 한 색 : 자동 짝(dark.css)의 .header--fixed:hover 가 더 진한 선택자라
   머리 바탕만 밝은 남색(--dk-surface)으로 바뀌고 가운데 메뉴 칸은 --dk-bg 로 남아 오른쪽 끝이 다른 색 판처럼 보였음 */
[data-theme="dark"] .header, [data-theme="dark"] .header--fixed.scroll-active, [data-theme="dark"] .header--fixed:hover, [data-theme="dark"] .header__contents,
[data-theme="dark"] .mobile-menu-on .header__contents::before { background-color: var(--dk-bg); }
@media (min-width: 1200px) {
  [data-theme="dark"] .header__contents { background-color: transparent; }
  [data-theme="dark"] .header:not(.header--menu-all) .gnb__sub { background-color: var(--dk-bg); box-shadow: 0 0 0 1px var(--dk-line), 0 8px 20px rgba(0, 0, 0, .45); }
}
[data-theme="dark"] .header__body { border-color: var(--dk-line); }
[data-theme="dark"] .header__logo a { background-image: url(/images/logo-white.svg); }
[data-theme="dark"] .gnb__link { color: var(--dk-text) !important; }
[data-theme="dark"] .gnb__li:hover .gnb__link, [data-theme="dark"] .gnb__li.active .gnb__link,
[data-theme="dark"] .gnb__li--current > .gnb__link { color: var(--dk-primary) !important; }
[data-theme="dark"] .gnb__link--toggle::after { border-color: var(--dk-text); }
[data-theme="dark"] .gnb__sub > li > a { color: var(--dk-muted); }
[data-theme="dark"] .gnb__sub > li > a:hover { color: var(--dk-primary); }
[data-theme="dark"] .lang-select a { color: var(--dk-muted); }
[data-theme="dark"] .lang-select a[aria-current] { color: var(--dk-primary); }
[data-theme="dark"] .lang-select a + a::before { background: var(--dk-line); }
[data-theme="dark"] .primary--text, [data-theme="dark"] .color-point { color: var(--dk-primary) !important; caret-color: var(--dk-primary) !important; }
[data-theme="dark"] .grey-7--text, [data-theme="dark"] .color-gray, [data-theme="dark"] .grey-a--text { color: var(--dk-muted) !important; }
[data-theme="dark"] .bg-white, [data-theme="dark"] .white:not(.scroll-top):not(.v-divider) { background-color: var(--dk-surface) !important; }
[data-theme="dark"] .bg-grey { background-color: var(--dk-surface) !important; }
[data-theme="dark"] .border, [data-theme="dark"] .border-bottom, [data-theme="dark"] .border-light { border-color: var(--dk-line) !important; }
[data-theme="dark"] .theme--light.v-tabs > .v-tabs-bar { background: transparent; }
[data-theme="dark"] .theme--light.v-tabs > .v-tabs-bar .v-tab:not(.v-tab--active) { color: var(--dk-muted); }
[data-theme="dark"] .tab--wrap .v-tab--active { color: #fff; }
[data-theme="dark"] .tab__btn { color: var(--dk-muted); }
[data-theme="dark"] .tab__li.active .tab__btn { color: var(--dk-primary); }
[data-theme="dark"] .board-list { background: transparent; }
[data-theme="dark"] .board-list thead tr { background-color: var(--dk-surface); }
[data-theme="dark"] .board-list tr th { color: var(--dk-text); }
[data-theme="dark"] .board-list tr td { color: var(--dk-muted); }
[data-theme="dark"] .board-list tbody tr:hover { background: var(--dk-surface); }
[data-theme="dark"] .board-list .v-icon { color: var(--dk-muted) !important; }
[data-theme="dark"] .pagination a { color: var(--dk-muted); }
[data-theme="dark"] .pagination a.pagination__current { color: var(--dk-primary); }
[data-theme="dark"] .v-chip--outlined.primary { background: transparent !important; }
[data-theme="dark"] .scroll-top.white { background-color: var(--dk-surface2) !important; }
[data-theme="dark"] .scroll-top .icon-arrow-up { filter: invert(1); }
[data-theme="dark"] .icon-arrow-left, [data-theme="dark"] .icon-arrow-right { filter: invert(1) brightness(.85); }
[data-theme="dark"] .main-section--business .icon { filter: none; }
/* 사진 · 그림 : 빼거나 바꾸지 않음. 사진은 아주 살짝 어둡게, 흰 바탕 · 투명 그림은 밝은 둥근 판 위에 */
[data-theme="dark"] #contents img { filter: brightness(.92); }
[data-theme="dark"] #contents .v-image, [data-theme="dark"] #contents .page-img { background-color: var(--dk-panel); border-radius: 12px; }
[data-theme="dark"] .main-visual__img, [data-theme="dark"] .sub-visual-bg { filter: brightness(.88); }
/* 첫 화면 큰 그림 : 그림 파일 왼쪽이 흰 바탕이라 다크에서 밝은 판처럼 보임 → 사진(둥근 부분)은 그대로 두고
   흰 바탕만 가림(v-mask.svg, 그림과 같은 1920×860 · 같은 cover 배치), 장식 동그라미는 옅게 남김. 바탕은 머리와 같은 색 */
[data-theme="dark"] .main-visual .swiper-slide { background-color: var(--dk-bg); }
[data-theme="dark"] .main-visual__img { -webkit-mask: url(/images/main/v-mask.svg) center / cover no-repeat; mask: url(/images/main/v-mask.svg) center / cover no-repeat; }
[data-theme="dark"] .main-visual .tit, [data-theme="dark"] .main-visual .font-weight-light { color: var(--dk-text); }

/* 이전 개인정보 처리방침 (예전엔 hwp 파일) - 지금 방침과 같은 글자 */
.policy-text h2 { font-size: inherit; font-weight: 700; margin: 1.6em 0 .4em; }
.policy-text p { margin-bottom: .4em; }
/* 자동 다크 짝(dark.css)에서 빼야 할 곳 : 파란 · 사진 바탕 위 흰 선, 투명했던 화살표 */
[data-theme="dark"] .v-application .v-divider.white { background-color: #fff !important; border-color: #fff !important; }
[data-theme="dark"] .main-visual .swiper-prev, [data-theme="dark"] .main-visual .swiper-next,
[data-theme="dark"] .main-section--news .swiper-prev, [data-theme="dark"] .main-section--news .swiper-next { background: none; }
[data-theme="dark"] .main-business-con .v-btn { background-color: transparent !important; }
[data-theme="dark"] .v-btn.primary { background-color: var(--v-primary-base) !important; }
/* 밝은 사진 바탕 위 글자는 원래 색 그대로 */
[data-theme="dark"] .bg-img, [data-theme="dark"] .dep2-process2 { color: #222; }
[data-theme="dark"] .bg-img .color-grey-57, [data-theme="dark"] .dep2-process2 .color-grey-57 { color: #575757 !important; }
[data-theme="dark"] .bg-img .color-gray, [data-theme="dark"] .dep2-process2 .color-gray { color: #777 !important; }
/* 일본어 : Pretendard 에 가나가 없어 한국어 글꼴로 넘어가면 자간이 벌어짐 → 일본어 글꼴을 먼저 */
html[lang="ja"], html[lang="ja"] .v-application { font-family: Pretendard, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif; }
/* 일본어는 띄어쓰기가 없어 keep-all 이면 줄이 안 바뀌고 넘침 → 일반 줄바꿈 + 금칙 */
html[lang="ja"], html[lang="ja"] .v-application, html[lang="ja"] .v-application * { word-break: normal !important; line-break: strict; }
