/* =========================================================
   노아시스템 홈페이지 스타일
   기존 홈페이지의 색상·글꼴 크기·배치 값을 기준으로 맞췄습니다.
   ========================================================= */

@font-face {
  font-family: "Raleway";
  src: url("../fonts/raleway-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212;
}

@font-face {
  font-family: "Lato";
  src: url("../fonts/lato-400-latin.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212;
}
@font-face {
  font-family: "Lato";
  src: url("../fonts/lato-400italic-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212;
}
@font-face {
  font-family: "Lato";
  src: url("../fonts/lato-700-latin.woff2") format("woff2");
  font-weight: 600 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212;
}

:root {
  --primary: #da291c;        /* 기존 primary-color */
  --dark: #001d29;           /* 기존 secondary-color */
  --text: #777;              /* 기존 본문 글자색 */
  --title: #202020;
  --line: #f2f2f2;
  --bg-soft: #f7f7f7;
  --white: #fff;
  --header-h: 80px;
  /* 기존 홈페이지와 같은 글꼴: 영문 Lato(본문)·Raleway(제목), 한글은 PC에 설치된 글꼴.
     기존 사이트는 한글 글꼴을 따로 지정하지 않아(lang="en"), Windows 11 에서는 내장된 Noto Sans KR,
     Windows 10 에서는 맑은 고딕, Mac 에서는 Apple SD Gothic Neo 로 보였습니다. 같은 결과가 나오도록 이 순서로 둡니다. */
  --font-ko: "Noto Sans KR", "Malgun Gothic", "맑은 고딕", "Apple SD Gothic Neo", sans-serif;
  --font: "Lato", var(--font-ko);
  --font-display: "Raleway", var(--font-ko);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html { overflow-x: clip; }   /* 2026-11-09: 오시는길 지도(100vw)가 PC 스크롤바 폭만큼 넘쳐 가로 스크롤이 생기던 것 방지 */
body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 27px;
  color: var(--text);
  background: var(--white);
  /* 기존 사이트처럼 한글은 글자 단위로 줄바꿈 (keep-all, break-word 쓰지 않음) */
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.5; margin: 0 0 .6em; color: var(--dark); }
p { margin: 0 0 10px; }
ul, ol { padding: 0; margin: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }
.icon { flex: none; }
svg.icon { width: 1em; height: 1em; }
i.icon.fa { line-height: 1; }
.accent { color: var(--primary); }
.br { display: inline-block; width: 15px; height: 1px; }
@media (max-width: 1100px) { .br { display: block; width: 100%; height: 0; } }   /* 기존: 1100px 이하에서 줄바꿈 */

.container { margin-right: auto; margin-left: auto; padding-right: 15px; padding-left: 15px; }
.container::before, .container::after { content: " "; display: table; }
.container::after { clear: both; }
/* 기존 사이트(Bootstrap 3)와 같은 고정 폭 */
@media (min-width: 768px) { .container { width: 750px; } }
@media (min-width: 992px) { .container { width: 970px; } }
@media (min-width: 1200px) { .container { width: 1170px; } }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 1000;
  background: var(--dark); color: #fff; padding: 10px 16px; border-radius: 4px;
}
.skip-link:focus { top: 12px; }

/* ---------- buttons (기존: 각진 모서리, 13px 굵게) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-width: 162px; padding: 15px 40px; border-radius: 3px; border: 1px solid #fff;
  font-size: 13px; font-weight: 700; line-height: 1.42857143; text-transform: uppercase;
  background: transparent; color: #fff;
  transition: background .25s, color .25s, border-color .25s;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--dark); border-color: var(--dark); opacity: .9; }
.btn-ghost { border-color: #fff; color: #fff; background: rgba(255, 255, 255, .1); }
.btn-ghost:hover { background: var(--dark); border-color: var(--dark); color: #fff; }
.btn-outline { border-color: #ddd; color: var(--dark); background: #fff; min-width: 0; padding: 12px 24px; text-transform: none; }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn .icon { width: .9em; height: .9em; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 0; }

/* ---------- header (기존: 투명 → 스크롤 시 빨간 바) ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100;
  height: var(--header-h);
  color: #fff;
  transition: background .35s, box-shadow .35s, height .35s;
}
.site-header.is-solid {
  --header-h: 50px;
  background: var(--primary);
  box-shadow: 0 0 10px rgba(0, 0, 0, .1);
}
.header-inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.header-inner::before, .header-inner::after { display: none; }
.brand { display: block; margin-right: auto; margin-left: -5px; }
.brand img { height: 50px; width: auto; transition: height .35s; }
.logo-solid { display: none !important; }
.site-header.is-solid .logo-top { display: none !important; }
.site-header.is-solid .logo-solid { display: block !important; }

.site-nav { display: flex; align-items: center; gap: 0; margin-right: -15px; }
.nav-list { display: flex; align-items: center; gap: 0; }
.nav-list > li, .lang-item { margin: 0 15px; }
@media (min-width: 768px) and (max-width: 991px) { .nav-list > li, .lang-item { margin: 0 10px; } }
.nav-link {
  position: relative; display: block;
  padding: 15px 0 10px; color: inherit; font-weight: 700; font-size: 13px; letter-spacing: 1px; line-height: 22px;
  text-transform: uppercase;
}
a.nav-link::after {
  content: ""; position: absolute; left: 0; top: 52px; width: 0; height: 2px;
  background: var(--primary); transition: all .5s ease-out;
}
.site-header.is-solid a.nav-link::after { background: #fff; }
.nav-link:hover { text-decoration: none; }
a.nav-link:hover::after { width: 100%; }
.sub-toggle .icon { font-size: 13px; }
.has-sub { position: relative; }
.sub-menu {
  position: absolute; top: 100%; left: 0; min-width: 200px; margin-top: 2px;
  background: var(--dark); border-top: 2px solid var(--primary); border-radius: 0 0 4px 4px; box-shadow: 0 6px 12px rgba(0, 0, 0, .175);
  padding: 5px 0; transform: scale(1, 0); transform-origin: top;
  visibility: hidden; transition: transform .2s linear, visibility .2s linear;
}
.site-header.is-solid .sub-menu { margin-top: 3px; }
.site-header.is-solid .sub-menu { border-top-color: #fff; }
.sub-menu a { display: block; padding: 10px; color: #fff; font-size: 12px; font-weight: 600; line-height: 1.42857143; text-transform: uppercase; }
.sub-menu a:hover, .sub-menu a:focus-visible { color: var(--primary); border-left: 2px solid var(--primary); text-decoration: none; background: transparent; }
.has-sub.is-open > .sub-menu { visibility: visible; transform: none; }
@media (hover: hover) and (min-width: 768px) {
  .has-sub:hover > .sub-menu, .has-sub:focus-within > .sub-menu { visibility: visible; transform: none; }
}

/* 언어 선택 (기존: 회청색 상자, 선택된 언어는 흰 칸) */
.lang-switch { display: inline-block; margin: 12px 0; padding: 0 5px 1px; border-radius: 5px; background: #42565e; font-size: 12px; line-height: 27px; }
.lang-switch li { display: inline-block; }
.lang-switch a { padding: 0 2px; color: #fff; }
.lang-switch a[aria-current="true"] { padding: 2px 4px; border-radius: 3px; background: #fff; color: var(--dark); font-weight: bolder; }
.lang-switch a:hover { text-decoration: underline; }
.lang-switch a[aria-current="true"]:hover { text-decoration: none; }

/* 휴대폰 메뉴 버튼 (기존: 진한 빨강 테두리와 세 줄) */
.nav-toggle { display: none; width: 44px; height: 34px; padding: 9px 10px; border: 1px solid #a4241b; border-radius: 4px; background: transparent; flex-direction: column; justify-content: center; gap: 4px; }
.nav-toggle:hover, .nav-toggle:focus { background: #fff; }
.nav-toggle .icon-bar { display: block; width: 22px; height: 2px; border-radius: 1px; background: #a4241b; }

/* 휴대폰 메뉴 (기존: 헤더 아래 빨간 판, 흰 글자, 최대 높이 340px) */
@media (max-width: 767px) {
  :root { --header-h: 80px; }
  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute; top: 65px; left: 0; right: 0; margin: 0;
    display: block; max-height: 340px; overflow-x: hidden; overflow-y: auto;
    padding: 7.5px 0; background: var(--primary); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1);
    visibility: hidden; clip-path: inset(0 0 100% 0); transition: clip-path .35s ease, visibility .35s;
  }
  .site-header.is-solid .site-nav { top: 50px; }
  .site-header.is-open .site-nav { visibility: visible; clip-path: inset(0 0 0 0); }
  .nav-list { display: block; }
  .nav-list > li, .lang-item { margin: 0 10px; }
  .nav-link { width: 100%; text-align: left; color: #fff; }
  .sub-menu {
    position: static; transform: none; box-shadow: none; border: 0; border-radius: 0; margin: 0; padding: 5px 0;
    visibility: visible; display: none; min-width: 0; background: transparent;
  }
  .has-sub.is-open > .sub-menu { display: block; }
  .sub-menu a { padding: 5px 15px 5px 25px; line-height: 20px; }
  .sub-menu a:hover, .sub-menu a:focus-visible { color: var(--dark); border-left: 1px solid var(--dark); }
}

/* ---------- home slides ---------- */
/* 기존 홈 화면처럼 스크롤 막대를 보이지 않게 함 (마우스 휠·키보드·터치 스크롤은 그대로) */
html.is-home { scrollbar-width: none; }
html.is-home::-webkit-scrollbar { display: none; }
@media (min-width: 992px) and (pointer: fine) {
  html.is-home { scroll-snap-type: y mandatory; }
  html.is-home .slide { scroll-snap-align: start; }
  html.is-home .site-footer { scroll-snap-align: end; }
}
.slide {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  display: grid; place-items: center;
  padding: calc(var(--header-h) + 40px) 20px 80px;
  color: #fff; text-align: center;
  background: #202020;   /* 기존 슬라이드 바탕색 */
}
.slide-bg {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover;
}
/* 화면 전환 효과 (기존 slides.css 값): 화면이 보이면 배경이 1.08배 → 원래 크기(5초), 흐림 20% → 선명(1초).
   글은 2~4번째 화면에서 위쪽 50px 에서 내려오며 0.8초 동안 나타나고, 순서마다 0.15초씩 늦게 시작.
   기존처럼 마우스를 쓰는 PC 에서만 적용하고, 휴대폰·터치 화면과 '동작 줄이기' 설정에서는 효과 없음. */
.fx-on .slide-bg { transform: scale(1.08) rotate(-.02deg); opacity: .2; transition: transform 5s cubic-bezier(.3, 0, .7, 1), opacity 1s ease; }
.fx-on .slide.is-active .slide-bg { transform: none; opacity: 1; }
.fx-on .whiteSlide:not(.ae-done) [data-ae] { opacity: 0; visibility: hidden; transform: translate3d(0, -50px, 0); }
.fx-on .whiteSlide [data-ae] { transition: opacity .8s, transform .8s, visibility .8s; }
.fx-on .whiteSlide.is-active [data-ae] { opacity: 1; visibility: visible; transform: none; }
.fx-on .whiteSlide [data-ae="1"] { transition-delay: 10ms; }
.fx-on .whiteSlide [data-ae="2"] { transition-delay: 160ms; }
.fx-on .whiteSlide [data-ae="3"] { transition-delay: 310ms; }
.fx-on .whiteSlide [data-ae="4"] { transition-delay: 460ms; }
.fx-on .whiteSlide [data-ae="5"] { transition-delay: 610ms; }
.slide-content { width: 100%; max-width: 1000px; }

/* 첫 화면: 기존처럼 배경 사진을 어둡게 덮지 않음.
   글 위치도 기존 값: 화면 높이의 20%(1100px 이하는 10%) + 120px 여백, 좌우 여백 8%+15px */
.slide-hero { align-items: start; padding: calc(20vh + 120px) calc(8% + 15px) 120px; }
@media (max-width: 1100px) { .slide-hero { padding-top: calc(10vh + 120px); } }
.slide-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(0, 0, 0, .08); }
.slide-hero h1 { color: #fff; }
.slide-hero .slide-content { max-width: none; }

/* 기존 값: 제목 36px, 아래 줄 36px(강조 글자 40px 굵게), 그림자 없음 */
.hero-title {
  font-family: var(--font-display); font-weight: 600;
  font-size: 36px; line-height: 1.5; letter-spacing: 0;
  margin: 20px 0 10px;
  animation: rise .9s .1s both;
}
.hero-typed {
  font-family: var(--font-display);
  font-size: 36px; font-weight: 600; line-height: 1.5;
  margin: 20px 0 10px;
  animation: rise .9s .35s both;
}
.hero-typed .accent, .hero-typed .typed { font-size: 40px; font-weight: 700; line-height: 1; }
@media (max-width: 480px) { .hero-typed .accent, .hero-typed .typed { font-size: 23px; letter-spacing: -.03em; } }
@media (max-width: 320px) { .hero-typed .accent, .hero-typed .typed { font-size: 19px; } }
@media (min-width: 500px) and (max-width: 599px) { .hero-typed .accent, .hero-typed .typed { font-size: 25px; } }
@media (min-width: 600px) and (max-width: 699px) { .hero-typed .accent, .hero-typed .typed { font-size: 30px; } }
@media (min-width: 700px) and (max-width: 767px) { .hero-typed .accent, .hero-typed .typed { font-size: 35px; } }
.slide-hero .btn-row { gap: 10px; margin: 0 0 10px; animation: rise .9s .6s both; }
.typed::after { content: "|"; font-size: .9em; font-weight: 600; }   /* 기존: 깜빡이지 않는 | 표시 */
@keyframes blink { 50% { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* 2~4번째 화면: 기존 사이트 구조·값 그대로 (main1/style.css, slides.css).
   흰 화면(whiteSlide)은 사진 위에 막을 씌우지 않고, 글은 화면 위에서 6vh + 120px 지점부터 시작합니다. */
.slide.whiteSlide { display: block; place-items: normal; padding: 0; color: #202020; background: #fff; text-align: center; }
.main-slide-about { position: relative; padding: 120px calc(5% + 15px); text-align: center; }
.main-slide-about::after { content: ""; display: table; clear: both; }
@media (min-width: 1101px) { .main-slide-about { margin-top: 6vh; } }
@media (max-width: 450px) { .main-slide-about { padding-top: 80px; } }
.whiteSlide h2, .whiteSlide h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.5; color: inherit; }
.whiteSlide h2 { font-size: 30px; margin: 20px 0 10px; }
.whiteSlide h4 { font-size: 18px; margin: 10px 0; }
.whiteSlide p { margin: 0 0 10px; }
.whiteSlide .sec-heading { margin-bottom: 50px; }
.whiteSlide .sec-heading.sec-heading-tight { margin-bottom: 20px; }
.whiteSlide .sec-heading h2 { margin-bottom: 0; font-weight: 700; text-transform: uppercase; letter-spacing: -.03em; color: var(--dark); }
.whiteSlide .sec-heading h2::after { content: ""; display: block; width: 40px; border-top: 2px solid var(--primary); margin: 15px auto; }
.whiteSlide .sec-heading p { max-width: 800px; color: #333; font-size: 20px; margin-left: auto; margin-right: auto; }
.whiteSlide p.details { font-size: 1em; letter-spacing: -.03em; }
.secondary-color { color: var(--dark); }
/* 3번째 화면 영상 (기존: 720×405, 회색 5px 테두리) */
.whiteSlide .video.youtube { display: inline-block; vertical-align: top; width: 720px; height: 405px; max-width: none; aspect-ratio: auto; margin: 0 auto; border: 5px solid #777; background: #000; }
@media (max-width: 810px) { .whiteSlide .video.youtube { width: 95%; height: 48vw; } }
/* 4번째 화면 숫자 (기존: 아이콘 75px, 숫자 Lato 45px 굵게, 설명 17px 굵게) */
.col-xs-6, .col-sm-3, .col-md-3 { position: relative; min-height: 1px; padding-right: 15px; padding-left: 15px; }
.col-xs-6 { float: left; width: 50%; }
@media (min-width: 768px) { .col-sm-3 { float: left; width: 25%; } }
@media (min-width: 992px) { .col-md-3 { float: left; width: 25%; } }
.count .fa { line-height: 1; }
span.counter { display: block; margin-top: 30px; color: var(--dark); font-size: 45px; font-weight: bold; }
.count p { font-size: 17px; margin-top: 20px; font-weight: bold; letter-spacing: -.03em; }
/* 기존 홈은 마지막 화면 안에서 하단 정보가 '화면 높이의 65% + 30px' 지점부터 보였습니다 (측정값) */
#features.whiteSlide { min-height: 0; height: calc(65vh + 30px); }
@media (max-width: 767px) { #features.whiteSlide { height: auto; min-height: calc(65vh + 30px); } }

/* 오른쪽 세로 막대 내비게이션 (기존 모양) */
.dot-nav { position: fixed; right: 50px; top: 50%; transform: translateY(-50%); z-index: 50; display: flex; flex-direction: column; gap: 10px; }
.dot-nav a { display: block; width: 4px; height: 20px; border-radius: 1px; background: #fff; opacity: .5; transition: height .5s, opacity .25s; box-shadow: 0 0 1px #303030; }
.dot-nav a:hover { opacity: 1; }
.dot-nav a[aria-current="true"] { opacity: 1; height: 60px; }
.dot-nav.on-light a { background: #202020; box-shadow: 0 0 1px #fff; }
@media (max-width: 991px) { .dot-nav { right: 16px; } }

/* ---------- video facade ---------- */
.video { position: relative; max-width: 720px; margin: 0 auto; aspect-ratio: 16 / 9; overflow: hidden; background: #000; }
.video-poster { position: absolute; inset: 0; width: 100%; height: 100%; }
.video-poster img { width: 100%; height: 100%; object-fit: cover; transition: opacity .3s; opacity: .9; }
.video-poster:hover img { opacity: 1; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.play-btn {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 68px; height: 48px; border-radius: 12px;
  display: grid; place-items: center; font-size: 24px;
  background: rgba(218, 41, 28, .92); color: #fff;
  transition: background .2s;
}
.video-poster:hover .play-btn, .tile:hover .play-btn { background: var(--primary); }
.video-notice { font-size: 12px; color: #555; margin: 10px 0 0; }

/* ---------- sub page banner (기존: 높이 400px, 제목 아래 빨간 줄, 오른쪽 아래 흰 위치표시) ---------- */
.page-banner { position: relative; isolation: isolate; height: 400px; color: #fff; background: #555; }
.banner-clip { position: absolute; inset: 0; overflow: hidden; clip-path: inset(0); z-index: -2; }
/* 기존 사이트처럼 사진을 화면 높이에 맞춰 가운데 정렬하고 위쪽을 보여줌 */
.banner-bg { position: absolute; top: 0; left: 50%; height: 100vh; min-height: 400px; width: auto; min-width: 100%; max-width: none; transform: translateX(-50%); object-fit: cover; }
/* 기존 사이트처럼 PC에서는 사진이 화면에 고정되고 글만 스크롤됨 (background-attachment: fixed 와 같은 효과) */
@media (hover: hover) and (pointer: fine) {
  .banner-bg { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; min-width: 0; min-height: 0; transform: none; object-position: center; }
}
/* 기존: 사진 위에 검정 30% */
.page-banner::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(0, 0, 0, .3); }
.banner-inner { height: 100%; position: relative; text-align: center; }
.page-banner h1 {
  margin: 215px 0 0; color: #fff;
  font-size: 47px; font-weight: 600; line-height: 1.5; text-transform: uppercase;
}
/* 기존: break-all (휴대폰에서 "KNIGHT ONLIN / E" 처럼 단어 중간이 잘림). 2026-11-09 사용자 승인으로 단어 단위 줄바꿈으로 변경 */
@media (max-width: 479px) { .page-banner h1 { word-break: keep-all; overflow-wrap: anywhere; } }
.page-banner h1::after { content: ""; display: block; width: 80px; border-top: 3px solid var(--primary); margin: 10px auto; }
.breadcrumb {
  position: absolute; right: 15px; bottom: -24px; z-index: 2;
  display: block; padding: 8px 15px;
  background: #fff; border: 1px solid #f5f5f5; border-radius: 20px; font-size: 15px; line-height: 27px;
}
.breadcrumb li, .breadcrumb a { color: #777; }
.breadcrumb li { display: inline-block; }
.breadcrumb li + li::before { content: ">"; padding: 0 5px; color: #ccc; }
.breadcrumb [aria-current="page"] { color: var(--primary); }

/* ---------- sub page content ----------
   기업소개·연혁·CEO·오시는길·나이트 온라인 본문은 기존 사이트 HTML 구조를 그대로 옮겼고,
   아래 값은 기존 사이트의 Bootstrap 3 + style.css 값을 그대로 옮긴 것입니다. */
.page-body.is-ported { padding: 0; }
.page-body.is-ported section { padding: 30px 0; }
.page-body h1, .page-body h2, .page-body h3, .page-body h4, .page-body h5, .page-body h6 {
  font-family: var(--font-display); font-weight: 600; line-height: 1.5; color: inherit; margin: 10px 0;
}
.page-body h1, .page-body h2, .page-body h3 { margin: 20px 0 10px; }
.page-body h1 { font-size: 36px; }
.page-body h2 { font-size: 30px; }
.page-body h3 { font-size: 24px; }
.page-body h4 { font-size: 18px; }
.page-body h5 { font-size: 14px; }
.page-body h6 { font-size: 12px; }
.page-body strong { font-weight: 700; }
.center { text-align: center; }
.primary-color { color: var(--primary); }
.emphasize { font-weight: bold; }
.space_PT20 { clear: both; padding-top: 20px; }

/* Bootstrap 3 격자 (기존 사이트와 같은 칸 나눔). 기존 사이트는 .row 여백을 -15px 가 아닌 15px 로 고쳐 썼습니다. */
.row { margin-right: 15px; margin-left: 15px; }
.row::before, .row::after { content: " "; display: table; }
.row::after { clear: both; }
.col-xs-12, .col-sm-4, .col-sm-6, .col-md-4, .col-md-6, .col-md-8 { position: relative; min-height: 1px; padding-right: 15px; padding-left: 15px; }
.col-xs-12 { float: left; width: 100%; }
@media (min-width: 768px) {
  .col-sm-4 { float: left; width: 33.33333333%; }
  .col-sm-6 { float: left; width: 50%; }
}
@media (min-width: 992px) {
  .col-md-4 { float: left; width: 33.33333333%; }
  .col-md-6 { float: left; width: 50%; }
  .col-md-8 { float: left; width: 66.66666667%; }
  .col-md-offset-2 { margin-left: 16.66666667%; }
}
.pull-right { float: right !important; }
.pull-left { float: left !important; }
.img-responsive { display: block; max-width: 100%; height: auto; }

/* 제목 (가운데, 아래 빨간 줄) */
.sec-heading { margin-bottom: 50px; }
.sec-heading h2 { margin-bottom: 0; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--dark); }
.sec-heading h2::after { content: ""; display: block; width: 40px; border-top: 2px solid var(--primary); margin: 15px auto; }
.sec-heading p { max-width: 800px; color: #333; font-size: 20px; margin-left: auto; margin-right: auto; }

/* 기업소개: 빨간 마름모 아이콘 + 글 */
.service-style2 .service-block-icon {
  float: left; margin: 10px 0; width: 75px; height: 75px;
  background: var(--primary); border: 2px solid var(--primary); border-radius: 1px;
  display: block; text-align: center; overflow: hidden; transform: rotate(-45deg);
  transition: all .2s;
}
.service-style2 .service-block-icon i { font-size: 30px; line-height: 75px; color: #fff; transform: rotate(45deg); }
.service-style2 .service-block-content { margin-left: 110px; }
.service-style2 .service-block-content h2 { text-transform: uppercase; font-size: 18px; color: var(--primary); }
.service-style2:hover .service-block-icon { border-color: var(--dark); background-color: var(--dark); }

/* 기업연혁: 빨간 원 안의 연도, 세로 빨간 선 */
.service-item { position: relative; margin-bottom: 0; }
.service-item:first-child { margin-top: 20px; }
.service-item > i {
  display: inline-block; width: 60px; height: 60px; border-radius: 50%; padding: 6px;
  font-size: 28px; font-weight: bold; font-style: normal; line-height: .85em !important;
  background-color: var(--primary); color: #fff; text-align: center; transition: all .2s;
}
.service-item > i::after { position: absolute; top: 60px; bottom: -60px; border-left: 2px solid var(--primary); content: ""; }
.service-item:last-child > i::after { display: none; }
.service-item:hover > i { background-color: var(--dark); }
.service-item.service-right > i { float: left; }
.service-item.service-right > i::after { left: 29px; }
.history-detail { display: inline-block; width: calc(90% - 30px); margin-left: 70px; padding-top: 10px; vertical-align: top; position: relative; top: -25px; }
.service-item .history-detail:nth-of-type(1) { top: -65px; margin-bottom: -65px; }
.history-detail em { display: inline-block; margin-right: 5px; font-size: 1.5em; font-weight: 700; font-style: normal; color: var(--primary); }
.history-detail span { display: block; margin-bottom: 10px; vertical-align: top; line-height: 1.5em; }
.history-detail:hover em, .history-detail:hover span { color: var(--dark); }

/* 오시는길: 빨간 마름모 아이콘 */
.contact-details { text-align: center; }
.contact-details .icon {
  width: 60px; height: 60px; display: inline-block; margin: 0 0 30px; padding: 8px 15px;
  background: var(--primary); color: #fff; font-size: 20px; text-align: center;
  transition: transform .7s; transform: rotate(45deg);
}
.contact-details .icon i { width: 60px; height: 60px; transform: rotate(-45deg); }
.contact-details .icon:hover { background: var(--dark); transform: scale(1.3, 1.3) rotate(45deg); }

/* 나이트 온라인 */
.text-heading { font-size: 17px; font-weight: bold; margin-top: 20px; color: var(--primary); }
.page-body h4.text-heading { font-size: 17px; font-weight: bold; margin-top: 20px; color: var(--primary); }
.related-post { display: block; overflow: hidden; }
.area-title { display: block; overflow: hidden; margin-bottom: 20px; }
.page-body .area-title h5 { font-size: 17px; color: var(--dark); text-transform: uppercase; }
.area-title h5::after { content: ""; width: 100%; margin-right: -100%; position: relative; border-top: 1px solid var(--line); display: inline-block; }
.carousel { position: relative; }
.carousel-inner { position: relative; width: 100%; overflow: hidden; }
.portfolio-itme { margin-bottom: 20px; }

.portfolio-itme a { display: block; }
.portfolio-itme a:hover { text-decoration: none; }
.portfolio-itme img { width: 100%; display: block; transition: all .3s linear; }
.portfolio-overlay {
  position: absolute; width: 87%; height: 90%; top: 5%; left: 6.5%;
  border: 2px solid #fff; background-color: rgba(0, 0, 0, .2); opacity: 0; transition: all .2s linear;
}
.portfolio-itme:hover .portfolio-overlay, .portfolio-itme a:focus-visible .portfolio-overlay { opacity: 1; }
.page-body .portfolio-overlay h3, .portfolio-overlay p {
  position: absolute; left: 10px; bottom: 20px; margin: 0 0 10px; font-weight: bold; font-size: 18px; z-index: 3;
  opacity: 0; transition: all .3s linear;
}
.portfolio-overlay p { font-size: 12px; bottom: 0; }
.portfolio-overlay .portfolio-view {
  position: absolute; right: 10px; bottom: 20px; font-weight: bold; font-size: 25px; z-index: 3;
  opacity: 0; transition: all .3s linear;
}
.portfolio-overlay:hover .portfolio-view, a:focus-visible .portfolio-overlay .portfolio-view { right: 20px; opacity: 1; color: #fff; }
.page-body .portfolio-overlay:hover h3, .portfolio-overlay:hover p,
.page-body a:focus-visible .portfolio-overlay h3, a:focus-visible .portfolio-overlay p { left: 20px; opacity: 1; color: #fff; }
.page-body .video-notice { clear: both; text-align: center; color: #999; }


/* 오시는길 지도 */
.map { position: relative; margin: 0 calc(50% - 50vw); width: 100vw; }
.map picture { display: block; }
.map img { width: 100%; height: 500px; object-fit: cover; }
.map figcaption { position: absolute; right: 0; bottom: 0; font-size: 11px; color: #555; padding: 0 8px; background: rgba(255, 255, 255, .8); line-height: 1.8; }
.map-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 30px 0 30px; }
@media (max-width: 991px) { .map img { height: auto; } }   /* 휴대폰·태블릿은 세로형 지도를 잘림 없이 */

/* 약관 탭 (개인정보 처리방침: Global / Korea) — 기존 Bootstrap 탭 값 */
.tab-list { display: flex; border-bottom: 1px solid #ddd; margin: 0; }
.tab-list [role="tab"] { margin: 0 2px -1px 0; padding: 10px 15px; line-height: 1.42857143; color: var(--primary); border: 1px solid transparent; border-radius: 4px 4px 0 0; }
.tab-list [role="tab"]:hover { background: #eee; border-color: #eee #eee #ddd; }
.tab-list [role="tab"][aria-selected="true"] { color: #555; background: #fff; border-color: #ddd #ddd transparent; cursor: default; }
.tab-panel[hidden] { display: none; }

/* 약관 본문: 기존 값 (Bootstrap 기본 제목 크기·여백, 글자색은 본문과 같은 회색) */
.section-policy.page-body { padding: 30px 0; }
/* 기존 구조: container > row(좌우 15px) > col(좌우 15px). 개인정보 처리방침 탭만 container 바로 안에 있음 */
.section-policy .tab-list { margin: 0 -30px; }
.section-policy .tab-panel { padding-top: 27px; }   /* 기존: 탭 아래 <br> 한 줄 */
.page-body .policy-date { margin: 0; }
.section-policy ul { list-style: disc; margin: 0 0 10px; padding-left: 40px; }
.section-policy ol { list-style: decimal; margin: 0 0 10px; padding-left: 40px; }
.section-policy ul ul, .section-policy ol ol, .section-policy ul ol, .section-policy ol ul { margin-bottom: 0; }
.section-policy ul ul { list-style: circle; }
.section-policy ol.plain, .section-policy ol.plain ol { list-style: none; }  /* 번호가 본문에 글자로 들어 있는 목록 */
.section-policy a { overflow-wrap: anywhere; }   /* 2026-11-09: 긴 주소(https://policies.google.com/privacy)가 좁은 휴대폰(320px)에서 화면 밖으로 나가던 것 방지 */
.table-wrap { overflow-x: auto; }
.table-wrap:has(> .table) { margin-bottom: 20px; }   /* 표 아래 여백이 다음 제목 여백과 겹치도록 (기존과 같은 간격) */
.section-policy .table-wrap > .table { margin-bottom: 0; }
.section-policy table { border-collapse: collapse; border-spacing: 0; background: transparent; }
.section-policy th { text-align: left; }
.section-policy .table { width: 100%; max-width: 100%; margin-bottom: 20px; }
.section-policy .table th, .section-policy .table td { padding: 8px; line-height: 1.42857143; vertical-align: top; border-top: 1px solid #ddd; }
.section-policy .table > thead > tr > th { vertical-align: bottom; border-bottom: 2px solid #ddd; }
.section-policy .table > thead:first-child > tr:first-child > th { border-top: 0; }
.section-policy .table-striped > tbody > tr:nth-of-type(odd) { background-color: #f9f9f9; }

/* ---------- footer (기존 사이트 구조·값 그대로: 왼쪽 사업자 정보, 오른쪽 링크·SNS, 가운데 로고) ---------- */
.site-footer { background: var(--dark); color: #777; font-size: 12px; line-height: 27px; padding: 15px 0; }
.site-footer a { color: #777; }
.site-footer a:hover { color: var(--primary); text-decoration: none; }
.footer-col, .footer-bottom { position: relative; min-height: 1px; padding: 0 15px; }
@media (min-width: 992px) {
  .footer-col { float: left; width: 50%; }
  .footer-bottom { float: left; width: 100%; }
}
.footer-biz { margin: 0 0 10px; }
.footer-widget { display: block; overflow: hidden; margin-top: 10px; text-align: center; }
.footer-links { margin: 0 0 10px -5px; padding: 0; }
.footer-links li { display: inline-block; padding: 5px; }
.footer-links .is-strong a { font-weight: bold; color: #aaa; }   /* 홈페이지 개인정보 처리방침 (2026-11-05): 굵게 + 조금 밝게. 원래대로: color 줄 삭제 */
.footer-links .is-strong a:hover { color: var(--primary); }
.social { margin: 0 0 10px; padding: 0 0 0 10px; }
.social li {
  display: inline-block; width: 30px; height: 30px; margin: 0 5px; padding: 0 3px 8px;
  text-align: center; transform: rotate(45deg); transition: transform .7s;
}
.social li:hover { transform: scale(1.3, 1.3) rotate(45deg); }
.social a { display: block; width: 30px; height: 30px; color: #fff; text-align: center; transform: rotate(-45deg); }
.site-footer .social a, .site-footer .social a:hover { color: #fff; }
.social .social-facebook { background: #4862a3; }
.social .social-youtube { background: #fff; }
.site-footer .social .social-youtube a, .site-footer .social .social-youtube a:hover { color: red; }
.social .social-img img { width: 50px; max-width: none; height: auto; margin: -5px 0 0 -14px; }
.footer-bottom { text-align: center; }
.footer-logo { display: inline-block; overflow: hidden; margin-bottom: 20px; }
.copyright { margin: 0 0 10px; }

/* 기존 홈 화면에만 있던 하단 글자 설정 */
@media (max-width: 530px) { .is-home .site-footer { font-size: 11px; line-height: 1.5em; } }
@media (max-width: 360px) { .is-home .site-footer { line-height: 1.8em; } }

/* back to top */
.to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  width: 44px; height: 44px; display: grid; place-items: center;
  background: var(--primary); color: #fff; font-size: 30px;
  opacity: 0; visibility: hidden; transform: translateY(10px); transition: .25s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--dark); text-decoration: none; }

/* ---------- media dialog (video / lightbox) ---------- */
.media-dialog { border: 0; padding: 0; background: transparent; max-width: min(1100px, 94vw); width: 100%; overflow: visible; }
.media-dialog::backdrop { background: rgba(0, 0, 0, .85); }
body.nav-locked { overflow: hidden; }   /* 영상·사진 창이 열려 있는 동안 */
.media-dialog .frame { position: relative; aspect-ratio: 16 / 9; background: #000; overflow: hidden; }
.media-dialog .frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.media-dialog .frame.is-image { aspect-ratio: auto; background: transparent; display: grid; place-items: center; }
.media-dialog .frame.is-image img { max-height: 80vh; width: auto; margin: 0 auto; }
.media-dialog .dlg-btn { position: absolute; display: grid; place-items: center; width: 44px; height: 44px; background: rgba(255, 255, 255, .12); color: #fff; font-size: 24px; transition: background .2s; }
.media-dialog .dlg-btn:hover { background: var(--primary); }
.media-dialog .dlg-close { top: 10px; right: 10px; z-index: 2; background: rgba(0, 0, 0, .55); }
.media-dialog .dlg-prev { left: -60px; top: 50%; transform: translateY(-50%); }
.media-dialog .dlg-next { right: -60px; top: 50%; transform: translateY(-50%); }
.media-dialog .dlg-caption { color: #fff; text-align: center; margin: 12px 0 0; font-size: 14px; }
@media (max-width: 1240px) {
  .media-dialog .dlg-prev { left: 8px; }
  .media-dialog .dlg-next { right: 8px; }
}

/* ---------- reveal on scroll ---------- */
.reveal-pending { opacity: 0; transform: translateY(28px); }
.reveal-in { opacity: 1; transform: none; transition: opacity .8s ease, transform .8s ease; }

/* 404 */
.slide-404::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(0, 0, 0, .35); }
.slide-404 h1 { font-family: var(--font-display); font-size: clamp(80px, 14vw, 160px); font-weight: 700; margin-bottom: .1em; color: #fff; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
