@font-face {
  font-family: 'Nanum Gothic';
  src: url('/assets/fonts/NanumGothic-Regular.ttf') format('truetype');
  font-weight: 400;
}

@font-face {
  font-family: 'Nanum Gothic';
  src: url('/assets/fonts/NanumGothic-Bold.ttf') format('truetype');
  font-weight: 700;
}

/* ==================================================
   COMMON BASE
================================================== */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Noto Sans KR', Arial, sans-serif;
  color: #333;
  background: #fff;
}

a {
  text-decoration: none;
  color: inherit;
}

ul, li {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* ==================================================
   HEADER
================================================== */

.header {
  width: 100%;
  background: #ffffff;
  position: relative;
  z-index: 1000;
}

.logo a {
  font-size: 20px;
  font-weight: 700;
  color: #1f4e79;
}

/* ==================================================
   GNB (TOP NAV) – 단일 정의
================================================== */

.main-nav {
  width: 100%;
  height: 56px;
  background: #1f4e79;
}

.gnb {
  max-width: 1200px;
  height: 56px;
  margin: 0 auto;
  display: flex;
}

/* 1차 메뉴 */
.gnb > li {
  position: relative;
}

.gnb > li > a {
  display: block;
  height: 56px;
  line-height: 56px;
  padding: 0 40px;

  color: #ffffff;
  font-size: 15px;
  font-weight: 500;

  position: relative;
}

/* hover / active 배경 */
.gnb > li:hover > a,
.gnb > li.active > a {
  background: #163b5c;
}

/* underline (active만) */
.gnb > li.active > a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;

  width: 100%;
  height: 3px;
  background: #ffcc33;
}

/* ===============================
   GNB SUBMENU (최종 단일 정의)
=============================== */

.gnb > li {
  position: relative;
}

.gnb-submenu {
  display: none;
  position: absolute;
  top: 100%;          /* 부모 메뉴 바로 아래 */
  left: 0;
  min-width: 200px;
  background: #2f2f2f;
  z-index: 100;       /* nav-dim(90) 위 */
}

.gnb-submenu li a {
  display: block;
  padding: 12px 16px;
  color: #ffffff;
  font-size: 14px;
  white-space: nowrap;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}

.gnb-submenu li a:hover {
  background: #1f1f1f;
}

/* ===============================
   DIM BACKGROUND (핵심)
=============================== */
.nav-dim {
  position: fixed;
  top: 126px; /* header-inner(70) + main-nav(56) */
  left: 0;
  width: 100vw;
  height: calc(100vh - 126px);
  background: rgba(0, 0, 0, 0.45);
  z-index: 90;
  display: none;
}

/* ==================================================
   SUB PAGE LAYOUT
================================================== */

.sub-wrap {
  max-width: 1200px;
  margin: 60px auto;
  display: flex;
  gap: 40px;
}

/* ==================================================
   SIDEBAR (서브페이지 전용)
================================================== */

.sub-sidebar {
  width: 240px;
}

.sub-sidebar h2 {
  font-size: 20px;
  margin-bottom: 20px;
}

.sub-sidebar ul {
  border-top: 2px solid #1f4e79;
}

.sub-sidebar li {
  border-bottom: 1px solid #ddd;
}

.sub-sidebar li a {
  display: block;
  padding: 14px 12px;
  color: #333;
}

.sub-sidebar li.active a {
  background: #1f4e79;
  color: #ffffff;
  font-weight: 600;
}

/* ==================================================
   SUB CONTENT
================================================== */

.sub-content {
  flex: 1;
}

.page-title {
  font-size: 26px;
  margin-bottom: 30px;
  padding-bottom: 10px;
  border-bottom: 2px solid #1f4e79;
}

/* ==================================================
   FOOTER
================================================== */

.footer {
  background: #3a3a3a;
  color: #cccccc;
  padding: 40px 0;
  margin-top: 80px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  font-size: 14px;
  line-height: 1.6;
}

.footer strong {
  color: #ffffff;
}


/* ===== CI LOGO ===== */

.ci-logo {
  display: flex;
  font-family: 'Nanum Gothic', 'Noto Sans KR', Arial, sans-serif !important;
  font-weight: 700;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}

.ci-mark-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ci-mark {
  height: 25px;
}

.ci-eng {
  position: relative;
  top: -1px;
  margin-top: 0px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0em;
  color: #c58a2b;
}

.ci-ko {
  font-family: 'Nanum Gothic' !important;
  font-weight: 700;
  font-size: 23px;
  color: #111;
  line-height: 1;
  position: relative;
  top: -2px;
}


.board-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 30px;
}

.board-table th {
  background: #f3f3f3;
  border-top: 2px solid #555;
  padding: 12px;
  font-weight: 600;
}

.board-table td {
  border-bottom: 1px solid #ddd;
  padding: 12px;
  text-align: center;
}

.board-table td:nth-child(2) {
  text-align: left;
}

.board-search {
  margin-top: 20px;
  text-align: center;
}

.board-search input {
  padding: 6px;
  width: 200px;
}

.board-search button {
  padding: 7px 16px;
  background: #333;
  color: #fff;
  border: none;
  cursor: pointer;
}


/* ==================================================
   HERO
================================================== */

.hero {
  position: relative;
  width: 100%;
  height: 480px;
  overflow: hidden;
}

.hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.06) saturate(1.05);
}

/* ✅ 하단 5cm만 음영 처리 (최종본) */
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 50px; /* 약 5cm */
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.55),
    rgba(0,0,0,0)
  );
  pointer-events: none;
  z-index: 1;
}

/* 히어로 텍스트 */
.hero-text {
  position: absolute;
  left: 80px;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  z-index: 2;

  max-width: 520px;
  background: rgba(0,0,0,0.35);
  padding: 24px 28px;
  border-left: 4px solid #4fc3f7;
}

.hero-sub {
  font-family: 'Roboto Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  opacity: 0.8;
  color: #f0c36d;
  margin-bottom: 12px;
}

.hero-text h1 {
  font-size: 34px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.02em;
}

/* ==================================================
   HERO SLIDER
================================================== */

.hero-slider {
  position: relative;
  overflow: hidden;
}

.hero-slides {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease;
}

.hero-slide.active {
  opacity: 1;
}

/* 화살표 */
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  background: rgba(255,255,255,0.15);
  border: none;
  color: #fff;
  font-size: 40px;
  cursor: pointer;
  z-index: 3;
}

.hero-arrow.prev { left: 20px; }
.hero-arrow.next { right: 20px; }

.hero-arrow:hover {
  background: rgba(255,255,255,0.3);
}

/* 인사말 레이아웃 */
.greeting-layout {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
}

/* 왼쪽 텍스트 */
.greeting-text {
  flex: 5;
}

/* 오른쪽 이미지 */
.greeting-image {
  width: 400px;
  flex-shrink: 0;
}

.greeting-image img {
  width: 100%;
  display: block;
  border-radius: 10px;
}


.organization-image {
  margin-top: 30px;
  text-align: center;
}

.organization-image img {
  max-width: 100%;
  height: auto;
  border: 1px solid #ddd;
}


.service-icon-img {
  width: 48px;
  height: 48px;
  margin-bottom: 12px;
}

/* 헤더 가로 정렬 */
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 70px;

  display: flex;                /* 🔥 핵심 */
  align-items: center;
  justify-content: space-between; /* 🔥 핵심 */
}

/* 오른쪽 상단 HOME / CONTACT */

.top-link:hover {
  color: #000;
}

.content-title {
  font-size: 20px;
  margin: 40px 0 15px;
  color: #1f4e79;
}

.depth-box {
  margin-left: 10px;
  margin-bottom: 20px;
}

.depth-list {
  margin: 10px 0 15px 20px;
  line-height: 1.7;
}

.range-list {
  margin-left: 20px;
  line-height: 1.8;
}

h4 {
  margin-top: 25px;
  font-size: 17px;
}

h5 {
  margin: 10px 0;
  font-size: 15px;
}

.capability-layout {
  display: flex;
  gap: 30px;
  align-items: flex-start;
}

.capability-text {
  flex: 1.2;
}

.capability-image-box {
  flex: 1;
  margin-top: 100px; /* 약 5cm ≒ 50px */
}

.capability-image-box img {
  width: 100%;
  height: auto;
  border: 1px solid #ddd;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* ===============================
   PROCEDURE LAYOUT
================================ */

.procedure-wrap {
  display: flex;
  gap: 40px;
  margin-top: 30px;
  align-items: flex-start;
}

/* 왼쪽 텍스트 */
.procedure-text {
  flex: 1;
}

/* 오른쪽 이미지 */
.procedure-image {
  width: 480px;
  flex-shrink: 0;
  margin-top: 20px; /* 🔹 이미지 아래로 내리기 */
}

.procedure-image img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

/* 모바일 대응 */
@media (max-width: 900px) {
  .procedure-wrap {
    flex-direction: column;
  }

  .procedure-image {
    width: 100%;
    margin-top: 30px;
  }
}

/* ===============================
   EQUIPMENT LAYOUT
================================ */

.equipment-wrap {
  display: flex;
  gap: 40px;
  margin-top: 30px;
  align-items: flex-start;
}

/* 왼쪽 텍스트 */
.equipment-text {
  flex: 1;
}

/* 장비 리스트 */
.equipment-list {
  margin: 15px 0 30px;
  padding-left: 20px;
  line-height: 1.8;
}

/* 오른쪽 이미지 */
.equipment-image {
  width: 480px;      /* 🔹 크게 강조 */
  flex-shrink: 0;
  margin-top: 20px;
}

.equipment-image img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* 모바일 대응 */
@media (max-width: 900px) {
  .equipment-wrap {
    flex-direction: column;
  }

  .equipment-image {
    width: 100%;
    margin-top: 30px;
  }
}

/* ===============================
   TOP UTIL – FORCE RIGHT
================================ */

.header {
  position: relative; /* 기준점 */
}

.top-util {
  position: absolute;
  top: 18px;          /* 헤더 상단 여백 */
  right: 40px;        /* 🔴 무조건 오른쪽 */
  display: flex;
  gap: 18px;
}

.top-link {
  font-size: 13px;
  color: #333;
  text-decoration: none;
}

.top-link:hover {
  color: #0d47a1;
}

/* ===== 더보기 버튼 박스화 ===== */

.more-btn {
  margin-top: 8px;
  padding: 6px 16px;
  display: inline-block;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  color: #fff;
  text-decoration: none;
  background: #01a029;
  transition: all 0.25s ease;
}

.more-btn.red {
  background: #e53935;
}

.more-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.25);
  opacity: 0.95;
}

/* ===============================
   HERO SLIDER (MINIMAL)
================================ */

.hero-slider {
  position: relative;
  overflow: hidden;
}

.hero-slides {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease;
}

.hero-slide.active {
  opacity: 1;
}

/* 어두운 오버레이 유지 */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
}

/* 화살표 */
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  background: rgba(255,255,255,0.15);
  border: none;
  color: #fff;
  font-size: 40px;
  cursor: pointer;
  z-index: 3;
}

.hero-arrow.prev { left: 20px; }
.hero-arrow.next { right: 20px; }

.hero-arrow:hover {
  background: rgba(255,255,255,0.3);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  z-index: 1;
}


.feature-box:hover,
.card:hover {
  box-shadow: 0 0 20px rgba(31,78,121,0.35);
  transform: translateY(-4px);
}

/* ===== ICT IMAGE TONE (SAFE) ===== */
.hero img {
  filter: contrast(1.06) saturate(1.05);
}

/* ===== ICT TYPOGRAPHY ===== */
.hero-text h1 {
  letter-spacing: -0.02em;
}

/* ===== ICT UI BUTTON ===== */
.more-btn {
  border-radius: 6px;        /* 기존 20px보다 ICT */
  letter-spacing: 0.06em;
}

/* ===== ICT HOVER (SAFE) ===== */
.feature-box:hover,
.card:hover {
  transform: translateY(-3px);
}

/* ===== ICT HEADING ===== */
h2, h3 {
  letter-spacing: -0.01em;
}

/* ===== SYSTEM LABEL FEEL ===== */
.hero-sub,
.eng,
.label {
  letter-spacing: 0.12em;
  font-size: 12px;
}

/* ===== ICT SYSTEM OVERLAY ===== */
.hero {
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(0,0,0,0.65) 0%,
      rgba(0,0,0,0.35) 45%,
      rgba(0,0,0,0.15) 100%
    );
  pointer-events: none;
}


.hero-text {
  max-width: 520px;
}

.hero-sub {
  font-family: 'Roboto Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  opacity: 0.8;
}

.hero-text h1 {
  font-weight: 600;
}

.feature-box,
.feature-item {
  position: relative;
}

.feature-box::before,
.feature-item::before {
  content: "MODULE";
  position: absolute;
  top: 12px;
  left: 14px;
  font-size: 10px;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.6);
}

.stat,
.highlight {
  font-family: 'Roboto Mono', monospace;
  font-weight: 700;
}

/* ===== BUILDING MANAGEMENT ICT FEEL ===== */
.hero-text {
  max-width: 520px;
  background: rgba(0,0,0,0.35);
  padding: 24px 28px;
  border-left: 4px solid #4fc3f7;
}

.feature-item strong::before {
  content: "■ ";
  color: #4fc3f7;
}

.feature-box::after {
  content: "INSPECTION LOG · UPDATED";
  position: absolute;
  bottom: 12px;
  right: 14px;
  font-size: 10px;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.5);
}

.more-btn {
  font-size: 12px;
  border-radius: 4px;
  background: #263238;
  letter-spacing: 0.08em;
}
