/* ===============================
   sub01.css (기업소개 서브페이지)
   =============================== */

/* 기본 여백 제거 + 고정 헤더 가림 방지 */
html,
body {
  margin: 0;
  padding: 0;
}
:root {
  --full: 1920px;
  --container: 1300px;
  --header-h: 72px;

  /* Palette */
  --text: #212529;
  --white: #fff;
  --green: #348413;
  --green-2: #dfece0;
  --green-3: #e9f1e9;
  --muted: #6b7280;
  --line: #e6e6e6;
  --tt-yellow: #ffd400;
}
h3 {
  font-size: 30px;
  margin-bottom: 50px;
  color: #212529;
}
/* 서브페이지는 헤더가 fixed라 본문이 가리지 않도록 위 패딩 */
body {
  padding-top: var(--header-h);
}

/* ===== Layout ===== */
.full-wrap {
  width: 100%;
  max-width: var(--full);
  margin: 0 auto;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== Header ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #fff;
  border-bottom: 1px solid #eaeaea;
  z-index: 1000;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

/* 메인 메뉴 */
.nav-list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-link {
  display: block;
  padding: 8px 4px;
  font-size: 15px;
  font-weight: 600;
  color: #348413;
  position: relative;
  text-decoration: none;
}
.nav-link:hover {
  color: #348413;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: #348413;
  transform: translateX(-50%);
  transition: width 0.25s ease;
}
.nav-link:hover::after {
  width: 70%;
}

/* ===========================
   전체 드롭다운 컨테이너
   =========================== */

/* 전체 배경 */
.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  top: 72px;
  width: 100%;
  height: 0;
  background: #348413;
  border-top: 1px solid #e5e5e5;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
  transition: height 0.3s ease;
  z-index: 1;
}

/* hover 시 전체 내려옴 */
.site-header:hover::after {
  height: 250px;
}

/* ===========================
   모든 서브메뉴 줄맞춤
   =========================== */

.has-sub {
  position: relative;
}

/* 모든 mega-sub를 가로 정렬된 라인으로 */
.nav-item.has-sub .mega-sub {
  position: absolute;
  top: 72px;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 60px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 2;
}

/* 헤더 전체 hover 시, 모든 서브메뉴 한 줄로 표시 */
.site-header:hover .nav-item.has-sub .mega-sub {
  opacity: 1;
  pointer-events: auto;
}

/* 각 서브리스트: 자기 메인메뉴 밑으로 */
.nav-item.has-sub .sub-list {
  list-style: none;
  margin: 0;
  padding: 10px 0 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 160px;
  text-align: center;
}

/* 서브링크 */
.sub-link {
  display: block;
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  text-decoration: none;
  padding: 4px 8px;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s; /* ← 문법만 정상화 */
}
.sub-link:hover {
  color: #999999;
}
/* ===============================
   기업소개 메인 이미지 영역
   =============================== */
.sub-hero {
  position: relative;
  width: 100%;
  height: 300px;
  background: url("../img/sub_customers.jpg") no-repeat center/cover;
  display: flex;
  align-items: center; /* 세로 가운데 정렬 */
}

/* 1300px 기준 왼쪽 정렬 */
.sub-hero .container {
  max-width: var(--container);
  width: 100%;
  margin: 0 auto;
  padding: 0 20px; /* 좌우 여백 */
  box-sizing: border-box;
}

/* 텍스트 스타일 */
.sub-title {
  font-size: 50px;
  font-weight: 800;
  color: #fff;
  text-align: left;
  line-height: 1;
}
/* ===== Section Common ===== */
.section {
  padding: 72px 0;
}
.section-title {
  font-size: 30px;
  font-weight: 800;
  color: var(--text);
}
.section-head {
  text-align: center;
}
.p-desc {
  text-align: center;
}
.p-eyebrow {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

/* ===============================
   사업영역 이미지 리스트
   =============================== */
.item-list {
  padding: 60px 0 80px;
}

/* 각 이미지 블록 */
.item {
  width: 100%;
  margin-bottom: 100px;
  overflow: hidden;
  background: #ffffff;
  scroll-margin-top: 110px; /* 앵커 이동 시 헤더에 안 가려지게 */
}
.customer-list{
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px 40px;
}
.customer-list ul{

}
.customer-list li{

}
.customer-list img{
  max-width:100%;
}
.item img {
  display: block;
  width: 100%;
  height: auto;
}
.item table{width:100%;text-align:center;border-collapse:collapse;}
.item table thead{}
.item table thead tr{}
.item table thead th{border:1px solid #c2c2c2;background:#f6f6f6}
.item table tbody{}
.item table tbody tr{}
.item table tbody th{width: 208px;background: #dfebe1;border:1px solid #c2c2c2;}
.item table tbody td{border:1px solid #c2c2c2;}
.item table tbody td:nth-child(2){padding-left:80px;text-align:left;}
.item table tbody td:nth-child(3){padding-left:30px;text-align:left;}
.item table tr{height:56px;}

/* 빨간 글씨 링크 */
.biz-link {
  text-align: center;
  margin-top: 10px;
}
.biz-link a {
  color: red;
  font-size: 26px;
  font-weight: 700;
}

@media all and (max-width:1300px) {

  :root {
    --header-h: 50px;
  }
  .sub-hero{height:200px;}
  .sub-title{font-size:26px;}

  h3{font-size:20px;margin-bottom:20px;}

  .customer-list{
    grid-template-columns: repeat(2, 1fr);
    gap: 10px 20px;
  }
  .item table thead th{
    font-size:12px;
  }
  .item table tbody th{
    width:70px;font-size:12px;font-weight:500;
  }
  .item table tbody td{
    padding:5px !important;font-size:12px;text-align:center !important;word-break:keep-all;
  }
  .item table tr{height:50px;text-align:center;}
}