/* =========================================
   RESET & BASE
========================================= */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo",
    "Noto Sans KR", "Segoe UI", Roboto, Arial, sans-serif;
  color: #2b2b2b;
  background: #ffffff;
  display: flex;
  flex-direction: column;
}

a {
  text-decoration: none;
  color: inherit;
}

.contact-v a[href^="tel:"] {
  color: inherit;
  text-decoration: none;
}

@media (max-width: 720px) {
  .contact-v a[href^="tel:"] {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
  }
}


/* =========================================
   HEADER
========================================= */
.menu-toggle {
      display: none;
    }

    .site-header {
      background: #ffffff;
      border-bottom: 1px solid #eee;
      position: sticky;
      top: 0;
      z-index: 1000;
    }

    .site-header::after {
      content: "";
      position: absolute;
      left: 0;
      top: 86px;
      width: 100%;
      height: 0;
      background: #ffffff;
      border-bottom: 1px solid #eee;
      box-shadow: 0 12px 24px rgba(0,0,0,0.06);
      transition: height 0.2s ease;
      z-index: 1000;
    }

    .site-header:has(.main-nav:hover)::after {
      height: 150px;
    }

    .header-inner {
      max-width: 1200px;
      min-height: 86px;
      margin: 0 auto;
      padding: 0 24px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 40px;
      position: relative;
      z-index: 1002;
    }

    .logo {
      display: flex;
      align-items: center;
      gap: 10px;
      white-space: nowrap;
    }

    .logo-text {
      font-size: 26px;
      font-weight: 800;
      color: #333333;
      letter-spacing: -1px;
    }

    .logo-sub {
      font-size: 14px;
      color: #666;
      font-weight: 600;
    }

    .main-nav {
      display: flex;
      align-items: center;
      gap: 64px;
      position: relative;
    }

    .nav-item {
      position: relative;
      padding: 34px 0;
    }

    .nav-item > a {
      display: block;
      text-decoration: none;
      color: #111;
      font-size: 15px;
      font-weight: 700;
    }

    .sub-menu {
      position: absolute;
      top: 100%;
      left: 0;

      display: flex;
      flex-direction: column;
      gap: 14px;

      min-width: 140px;
      padding: 22px 0;

      opacity: 0;
      visibility: hidden;
      pointer-events: none;

      transition: 0.2s ease;
      z-index: 1001;
    }

    .main-nav:hover .sub-menu {
      opacity: 1;
      visibility: visible;
      pointer-events: auto;
    }

    .sub-menu a {
      text-decoration: none;
      color: #333;
      font-size: 13px;
      white-space: nowrap;
    }

    .sub-menu a:hover {
      color: #1f3a5f;
    }

    .nav-item:hover > a {
      font-weight: 900;
    }

.main-nav a:hover {
  color: #0b4ea2;
}

.logo-img {
  height: 56px;
}

/* Keep every page header aligned with index.html, even when page-local
   styles define older header colors or spacing. */
.site-header {
  background: #ffffff !important;
  border-bottom: 1px solid #eee !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 1000 !important;
}

.site-header .header-inner {
  max-width: 1200px !important;
  min-height: 86px !important;
  margin: 0 auto !important;
  padding: 0 24px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 40px !important;
  position: relative !important;
  z-index: 1002 !important;
}

.site-header .logo {
  align-items: center !important;
  gap: 10px !important;
  position: absolute !important;
  left: 24px !important;
}

.site-header .logo-img {
  height: 66px !important;
  width: auto !important;
  display: block !important;
}

.site-header .logo-text {
  font-size: 30px !important;
  font-weight: 800 !important;
  color: #333333 !important;
  letter-spacing: -1px !important;
}

.site-header .main-nav {
  display: flex !important;
  align-items: center !important;
  gap: 64px !important;
  margin-left: 72px !important;
  position: relative !important;
  flex-wrap: nowrap !important;
  justify-content: center !important;
}

.site-header .nav-item {
  position: relative !important;
  padding: 34px 0 !important;
}

.site-header .nav-item > a {
  display: block !important;
  text-decoration: none !important;
  color: #111 !important;
  font-size: 18px !important;
  font-weight: 700 !important;
}

.site-header .sub-menu a {
  text-decoration: none !important;
  color: #333 !important;
  font-size: 15px !important;
  white-space: nowrap !important;
}

.site-header .sub-menu a:hover {
  color: #1f3a5f !important;
}

@media (max-width: 1180px) and (min-width: 1067px) {
  .site-header .main-nav {
    gap: 40px !important;
  }

  .site-header .nav-item > a {
    font-size: 16px !important;
  }
}


/* =========================================
   FOOTER
========================================= */
.site-footer {
  background: #0f172a;
  color: #cbd5e1;
  margin-top: auto;
  padding: 56px 24px 22px;
  position: relative;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 28px;
  /* border-bottom: 1px solid rgba(255, 255, 255, 0.1); */
}

.footer-logo {
  font-size: 20px;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.3px;
}

.footer-desc {
  margin-top: 8px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
}

.footer-nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.footer-nav a {
  color: #cbd5e1;
  font-weight: 600;
  font-size: 14px;
  opacity: 0.9;
}

.footer-nav a:hover {
  opacity: 1;
  color: #ffffff;
}

.footer-mid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 26px;
  /* padding: 26px 0; */
  /* border-bottom: 1px solid rgba(255, 255, 255, 0.1); */
}

.footer-info {
  display: grid;
  gap: 10px;
}

.info-row {
  display: flex;
  gap: 12px;
  align-items: baseline;
  line-height: 1.7;
}

.info-row >span {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
}

.info-label {
  min-width: 72px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.75);
}

.info-value {
  color: #cbd5e1;
}

.footer-cta {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 18px;
}

.cta-title {
  font-size: 16px;
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 6px;
}

.cta-desc {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.7;
  margin-bottom: 14px;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 14px;
  border-radius: 8px;
  background: #2563eb;
  color: #ffffff;
  font-weight: 800;
  font-size: 14px;
}

.cta-btn:hover {
  filter: brightness(1.05);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 18px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.65);
}

.footer-legal {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.75);
  font-weight: 700;
}

.footer-legal a:hover {
  color: #ffffff;
}

.dot {
  opacity: 0.6;
}

/* 위로가기 버튼 */
.to-top {
  position: absolute;
  right: 24px;
  top: 18px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  cursor: pointer;
  font-size: 16px;
  font-weight: 900;
}

.to-top:hover {
  background: rgba(255, 255, 255, 0.14);
}

.sub-visual {
  position: relative;

  width: 100%;
  height: 340px;

  background:
    url("./images/sub-visual-company.jpg")
    center center / cover no-repeat;

  display: flex;
  align-items: center;

  overflow: hidden;
}

.sub-visual-overlay {
  position: absolute;
  inset: 0;

  background: rgba(0, 0, 0, 0.38);
}

.sub-visual-content {
  position: relative;
  z-index: 1;

  max-width: 1200px;
  width: 100%;

  margin: 0 auto;
  padding: 0 24px;

  color: #ffffff;
  text-align: center;
}

.sub-visual-content h1 {
  margin: 0 0 14px 0;

  font-size: 52px;
  font-weight: 900;
  letter-spacing: -1.4px;
}

.sub-visual-content p {
  margin: 0;

  font-size: 18px;
  line-height: 1.7;

  opacity: 0.92;
}

/* =========================================
  화면별 배경 이미지
========================================= */
.sub-visual-main {
  background:
    url("../images/main.jpeg")
    center center / cover no-repeat;
}

.sub-visual-company {
  background:
    url("../images/company.png")
    center center / cover no-repeat;
}

/* ceo */
.sub-visual-ceo {
  background:
    url("../images/ceo.png")
    center center / cover no-repeat;
}

/* 경영 이념 */
.sub-visual-philosophy {
  background:
    url("../images/philosophy.png")
    center center / cover no-repeat;
}

/* 연혁 */
.sub-visual-year {
  background:
    url("../images/year.png")
    center center / cover no-repeat;
}

/*  */
.sub-visual-product {
  background:
    url("../images/product.png")
    center center / cover no-repeat;
}

/* esg */
.sub-visual-esg {
  background:
    url("../images/esg.png")
    center center / cover no-repeat;
}

/* 인재 채용 */
.sub-visual-recruit {
  background:
    url("../images/recruit.png")
    center center / cover no-repeat;
}

.factory-map-section {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

.factory-map-section h2 {
  margin: 0 0 10px;
  font-size: 28px;
  font-weight: 900;
  color: #111;
  letter-spacing: -0.4px;
}

.factory-map-section p {
  margin: 0 0 20px;
  font-size: 16px;
  line-height: 1.7;
  color: #555;
}

.factory-map-section #map {
  width: 100%;
  height: 400px;
  border: 1px solid #e9e9e9;
}

.map-info-window {
  display: table;
  min-width: 0;
  width: auto;
  max-width: 320px;
  padding: 8px 12px;
  color: #000;
  background: #fff;
  border: 1px solid #8a8a8a;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.14);
  white-space: nowrap;
  word-break: keep-all;
}

/* =========================================
   RESPONSIVE
========================================= */
@media (max-width: 1066px) {
  .site-header::after,
  .site-header:has(.main-nav:hover)::after {
    display: none;
  }

  .site-header .menu-toggle {
    display: block !important;
    appearance: none;
    border: 0;
    background: transparent;
    color: #111;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
  }

  .site-header .header-inner {
    flex-direction: row !important;
    flex-wrap: wrap;
    align-items: center !important;
    justify-content: space-between !important;
    min-height: 86px !important;
  }

  .site-header .logo {
    position: static !important;
  }

  .site-header .main-nav {
    display: none !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    width: 100% !important;
    gap: 0 !important;
    margin-left: 0 !important;
    margin-top: 0 !important;
    padding: 0 !important;
    border-top: 1px solid #eee;
    background: #ffffff !important;
  }

  .site-header .main-nav.active {
    display: flex !important;
  }

  .site-header .nav-item {
    width: 100%;
    padding: 0 !important;
    border-bottom: 1px solid #f1f1f1;
  }

  .site-header .nav-item > a {
    padding: 18px 0 !important;
  }

  .site-header .sub-menu {
    position: static !important;
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    padding: 0 0 18px 14px !important;
    gap: 10px !important;
  }
}

@media (max-width: 980px) {
  .footer-mid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .to-top {
    right: 18px;
    top: 14px;
  }
}
