@charset "UTF-8";
/* ============================================================
   (주)동남이앤에스 (dnens/*.html)
   공통 프레임: ../assets/css/synergy-frame.css 위에 덮어쓰는 전용 스타일
   .dn-* 부품은 dneni/css/dneni-main.css 와 같은 구조입니다.
   (나중에 assets/css/affiliate.css 로 분리할 때 그대로 옮길 수 있게 이름을 맞춤)
   ============================================================ */

/* 회사 색상: 로고의 네이비 + 오렌지. 아래 변수만 바꾸면 전체 색이 바뀝니다. */
:root {
  --dn-navy: #1c2a6e;
  --dn-blue: #2a63b8;
  --dn-teal: #f26b21;            /* 강조색 (dneni의 청록 자리) */
  --dn-accent: #f26b21;
  --dn-grad: linear-gradient(135deg, #2a63b8 0%, #1c2a6e 100%);
  --dn-grad-accent: linear-gradient(135deg, #f7913a 0%, #f26b21 100%);
}

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Header logo (흰 칩 위에 컬러 로고) ---------- */
.dn-logo-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 4px 12px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
}
.dn-logo-chip img { height: 30px; width: auto; max-width: none; }
#headerWrap.scrolled .dn-logo-chip { box-shadow: none; border: 1px solid var(--border-color); }
.header-logo .dn-logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.header-logo .dn-logo-text small {
  font-family: var(--font-en);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.6px;
  opacity: 0.75;
}
.gnbDepth01 > a.is-current { color: var(--accent-color); }
#headerWrap.scrolled .gnbDepth01 > a.is-current { color: var(--dn-accent); }

.btn-ssg-home {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.5);
}
.btn-ssg-home:hover { background: rgba(255, 255, 255, 0.15); }
#headerWrap.scrolled .btn-ssg-home { color: var(--primary-color); border-color: var(--primary-color); }
#headerWrap.scrolled .btn-ssg-home:hover { background: var(--primary-color); color: #fff; }

/* ---------- Hero ---------- */
.dn-hero .hero-overlay {
  background: linear-gradient(120deg, rgba(10, 16, 52, 0.92) 0%, rgba(28, 42, 110, 0.78) 50%, rgba(42, 99, 184, 0.55) 100%);
}
.dn-hero .hero-content {
  max-width: 1240px;           /* .container 폭 유지 (프레임의 820px 제한만 풂) */
  padding-left: 90px;          /* 좌우 화살표(52px)와 겹치지 않게 */
  padding-right: 90px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 56px;
  align-items: center;
}
.dn-hero .hero-content h1 { font-size: clamp(2.1rem, 4.2vw, 3.2rem); }
.dn-hero .hero-content .hero-line { background: var(--dn-accent); }
.dn-hero .hero-sub {
  color: #fff;
  font-size: 1.25rem;
  font-weight: 700;
  display: block;
  margin-bottom: 8px;
}
.ns-hero-card {
  margin: 0;
  padding: 10px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  opacity: 0;
  transform: translateY(24px) scale(0.98);
  transition: opacity 0.8s ease 0.35s, transform 0.8s ease 0.35s;
}
.ns-hero-card img { width: 100%; border-radius: 8px; }
.hero-slide.active .ns-hero-card { opacity: 1; transform: none; }

/* 슬라이드 불릿이 아래 facts 카드에 가려지지 않도록 위로 */
.dn-hero .hero-pagination { bottom: 100px; }

/* ---------- Key facts strip ---------- */
.dn-facts { position: relative; z-index: 5; margin-top: -70px; }
.dn-facts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #fff;
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.dn-fact {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 28px 26px;
  border-right: 1px solid var(--border-color);
}
.dn-fact:last-child { border-right: 0; }
.dn-fact i {
  flex: 0 0 52px;
  height: 52px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  color: #fff;
  background: var(--dn-grad);
}
.dn-fact:nth-child(even) i { background: var(--dn-grad-accent); }
.dn-fact strong { display: block; color: var(--text-dark); font-size: 1.05rem; }
.dn-fact span { font-size: 0.88rem; color: var(--text-body); }

/* ---------- Common section ---------- */
.dn-section { padding: 110px 0; scroll-margin-top: 72px; }
.dn-section.bg-light { background: var(--bg-light); }
.section-title-wrap .line { background: var(--dn-accent); }
.ns-block-title {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 24px;
}
.ns-text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  font-weight: 700;
  color: var(--dn-blue);
}
.ns-text-link:hover { color: var(--dn-accent); gap: 12px; }
.ns-center { text-align: center; }
.ns-note { margin-top: 10px; font-size: 0.85rem; color: var(--text-muted); }
.ns-eyebrow {
  display: inline-block;
  font-family: var(--font-en);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--dn-accent);
  margin-bottom: 8px;
}

/* ---------- About ---------- */
.dn-about {
  display: grid;
  grid-template-columns: minmax(260px, 380px) 1fr;
  gap: 60px;
  align-items: center;
}
.dn-about-visual {
  position: relative;
  padding: 48px 32px;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 18px;
  box-shadow: var(--shadow-md);
  text-align: center;
}
.dn-about-visual::before {
  content: '';
  position: absolute;
  inset: -10px -10px auto auto;
  width: 90px;
  height: 90px;
  border-radius: 18px;
  background: var(--dn-grad-accent);
  opacity: 0.18;
  z-index: -1;
}
.dn-about-visual img { margin: 0 auto; }
.dn-about-visual .ns-about-logo { width: 100%; max-width: 260px; image-rendering: auto; }
.dn-about-visual p {
  margin-top: 18px;
  font-size: 0.92rem;
  color: var(--text-body);
  word-break: keep-all;
}
.dn-about-visual .ns-slogan {
  margin-top: 26px;
  font-family: var(--font-en);
  font-weight: 600;
  font-style: italic;
  color: var(--dn-navy);
  line-height: 1.6;
}
.dn-info { width: 100%; border-collapse: collapse; font-size: 1rem; }
.dn-info th, .dn-info td {
  padding: 16px 14px;
  border-bottom: 1px solid var(--border-color);
  text-align: left;
  vertical-align: top;
}
.dn-info tr:first-child th, .dn-info tr:first-child td { border-top: 2px solid var(--dn-navy); }
.dn-info th { width: 140px; color: var(--dn-navy); font-weight: 700; white-space: nowrap; }
.dn-info th i { width: 18px; margin-right: 6px; color: var(--dn-accent); }
.dn-info td { color: var(--text-dark); word-break: keep-all; }
.dn-info td small { display: block; margin-top: 4px; color: var(--text-muted); font-size: 0.86rem; }
.dn-info td a { color: var(--primary-light); font-weight: 600; }
.dn-info td a:hover { text-decoration: underline; }

/* CEO 인사말 요약 */
.ns-greeting {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 40px;
  align-items: center;
  margin-top: 80px;
  padding: 48px 50px;
  border-radius: 18px;
  background: var(--bg-light);
  border-left: 5px solid var(--dn-accent);
}
.ns-greeting h3 { font-size: 1.6rem; line-height: 1.4; color: var(--text-dark); margin-bottom: 16px; word-break: keep-all; }
.ns-greeting p { word-break: keep-all; }
.ns-greeting-sign { text-align: center; }
.ns-greeting-sign img { width: 220px; margin: 0 auto 8px; }
.ns-greeting-sign span { color: var(--text-body); }
.ns-greeting-sign strong { color: var(--text-dark); font-size: 1.15rem; margin-left: 4px; }

/* 브랜드 스토리 타임라인 */
.ns-brand { margin-top: 80px; }
.ns-timeline {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0;
  position: relative;
}
.ns-timeline::before {
  content: '';
  position: absolute;
  left: 0; right: 0;
  top: 31px;
  height: 2px;
  background: linear-gradient(90deg, var(--dn-blue), var(--dn-accent));
}
.ns-timeline li { position: relative; padding: 0 10px; text-align: center; word-break: keep-all; }
.ns-timeline .date {
  display: block;
  font-family: var(--font-en);
  font-weight: 700;
  color: var(--dn-blue);
  font-size: 0.9rem;
  margin-bottom: 18px;
}
.ns-timeline li::before {
  content: '';
  position: absolute;
  top: 25px;
  left: 50%;
  width: 14px;
  height: 14px;
  margin-left: -7px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--dn-accent);
}
.ns-timeline strong { display: block; color: var(--text-dark); font-size: 0.98rem; margin-top: 8px; }
.ns-timeline span:not(.date) { display: block; font-size: 0.85rem; margin-top: 6px; line-height: 1.5; }

/* ---------- Business cards ---------- */
.dn-biz-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.dn-biz-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 38px 32px 30px;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  overflow: hidden;
}
.dn-biz-card::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 4px;
  background: var(--dn-grad-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}
.dn-biz-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.dn-biz-card:hover::after { transform: scaleX(1); }
.dn-biz-card .num {
  position: absolute;
  top: 22px;
  right: 26px;
  font-family: var(--font-en);
  font-size: 2.4rem;
  font-weight: 800;
  color: rgba(28, 42, 110, 0.07);
}
.dn-biz-card .icon {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  color: #fff;
  background: var(--dn-grad);
  margin-bottom: 22px;
}
.dn-biz-card h3 { font-size: 1.25rem; color: var(--text-dark); margin-bottom: 4px; word-break: keep-all; }
.dn-biz-card .en {
  display: block;
  font-family: var(--font-en);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.4px;
  color: var(--dn-accent);
  margin-bottom: 14px;
}
.dn-biz-card p { font-size: 0.94rem; word-break: keep-all; }
.ns-card-link {
  margin-top: auto;
  padding-top: 18px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--dn-blue);
}
.ns-card-link i { margin-left: 4px; transition: transform 0.3s ease; }
.dn-biz-card:hover .ns-card-link { color: var(--dn-accent); }
.dn-biz-card:hover .ns-card-link i { transform: translateX(4px); }

.dn-biz-card--wide {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: center;
  gap: 28px;
  background: linear-gradient(120deg, #ffffff 0%, #fff4ec 100%);
  border-color: rgba(242, 107, 33, 0.25);
}
.dn-biz-card--wide .icon { flex: 0 0 60px; margin-bottom: 0; background: var(--dn-grad-accent); }
.dn-biz-wide-body { flex: 1; }
.dn-biz-more {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 30px;
  background: var(--dn-navy);
  color: #fff;
  font-weight: 700;
  font-size: 0.92rem;
}
.dn-biz-more:hover { background: var(--dn-accent); }

/* ---------- Projects ---------- */
.ns-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 50px;
}
.ns-stats li {
  padding: 30px 24px;
  border-radius: 14px;
  background: var(--dn-grad);
  color: #fff;
  text-align: center;
  box-shadow: var(--shadow-md);
}
.ns-stats li:nth-child(even) { background: var(--dn-grad-accent); }
.ns-stats strong {
  display: block;
  font-family: var(--font-en);
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1.1;
}
.ns-stats small { font-family: var(--font-base); font-size: 1rem; font-weight: 700; margin-left: 2px; }
.ns-stats span { display: block; margin-top: 8px; font-size: 0.95rem; opacity: 0.92; word-break: keep-all; }

.ns-tab-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 60px;
}
.ns-tab-gallery a {
  position: relative;
  display: block;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  background: #f1f4f8;
  transition: var(--transition);
}
.ns-tab-gallery a:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--dn-accent); }
.ns-tab-gallery img { width: 100%; aspect-ratio: 359 / 98; object-fit: cover; }
.ns-tab-gallery span {
  display: block;
  padding: 10px 14px;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text-dark);
  background: #fff;
}
.ns-tab-gallery .ns-tab-more {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  background: var(--dn-grad);
  border: 0;
}
.ns-tab-gallery .ns-tab-more i { font-size: 2rem; color: #fff; }
.ns-tab-gallery .ns-tab-more span { background: transparent; color: #fff; }

.ns-table { width: 100%; border-collapse: collapse; font-size: 0.96rem; }
.ns-table th, .ns-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-color);
  text-align: left;
  vertical-align: top;
  word-break: keep-all;
}
.ns-table thead th {
  background: var(--dn-navy);
  color: #fff;
  font-weight: 700;
  white-space: nowrap;
}
.ns-table tbody tr:hover { background: #fff7f1; }
.ns-table td:first-child { color: var(--text-dark); font-weight: 500; }
.ns-table td:last-child { white-space: nowrap; font-family: var(--font-en); font-size: 0.9rem; }

/* ---------- Certificates ---------- */
.ns-cert-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 22px;
}
.ns-cert {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 14px 18px;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  text-align: center;
  transition: var(--transition);
}
.ns-cert:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--dn-accent); }
.ns-cert img { width: 100%; max-width: 180px; aspect-ratio: 240 / 339; object-fit: contain; border: 1px solid var(--border-color); margin-bottom: 14px; }
.ns-cert strong { display: block; font-size: 0.92rem; color: var(--text-dark); word-break: keep-all; line-height: 1.4; }
.ns-cert span { display: block; margin-top: 4px; font-family: var(--font-en); font-size: 0.74rem; color: var(--text-muted); }

/* ---------- Lightbox ---------- */
.ns-lightbox {
  margin: auto;                 /* 프레임의 * { margin: 0 } 초기화로 사라진 가운데 정렬 복구 */
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: #fff;
  max-width: min(92vw, 900px);
  max-height: 92vh;
  overflow: auto;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}
.ns-lightbox::backdrop { background: rgba(6, 12, 32, 0.8); }
.ns-lightbox img { display: block; max-width: 100%; max-height: calc(92vh - 60px); margin: 0 auto; }
.ns-lightbox-caption { padding: 12px 20px 16px; text-align: center; font-weight: 700; color: var(--text-dark); }
.ns-lightbox-close {
  position: sticky;
  top: 10px;
  float: right;
  margin: 10px 10px -50px 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 0;
  background: var(--dn-navy);
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 2;
}
.ns-lightbox-close:hover { background: var(--dn-accent); }

/* ---------- Contact ---------- */
.dn-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  align-items: start;
}
.dn-office {
  display: flex;
  flex-direction: column;
  padding: 36px 34px;
  background: #fff;
  border-radius: 14px;
  border-top: 4px solid var(--dn-navy);
  box-shadow: var(--shadow-md);
}
.dn-office .tag {
  align-self: flex-start;
  font-family: var(--font-en);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--dn-accent);
  margin-bottom: 6px;
}
.dn-office h3 { font-size: 1.4rem; color: var(--text-dark); margin-bottom: 14px; }
.dn-office p { color: var(--text-dark); word-break: keep-all; }
.dn-office p.en { margin-top: 6px; font-size: 0.88rem; color: var(--text-muted); }
.dn-office .map-link {
  margin-top: 24px;
  align-self: flex-start;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--primary-light);
}
.dn-office .map-link:hover { color: var(--dn-accent); }
.ns-transit { margin-top: 24px; display: grid; gap: 14px; }
.ns-transit li { display: flex; gap: 14px; align-items: flex-start; font-size: 0.93rem; word-break: keep-all; }
.ns-transit li > span {
  flex: 0 0 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  font-family: var(--font-en);
}
.ns-transit .line2 { background: #00a84d; }
.ns-transit .line7 { background: #747f00; }
.ns-transit .car { background: var(--dn-navy); font-size: 0.8rem; }
.ns-transit strong { display: block; color: var(--text-dark); }
.ns-map { margin: 0; background: #fff; padding: 14px; border-radius: 14px; box-shadow: var(--shadow-md); }
.ns-map img { width: 100%; border-radius: 8px; }
.ns-map figcaption { margin-top: 10px; text-align: center; font-size: 0.85rem; color: var(--text-muted); }
.dn-contact-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 34px;
}
.dn-contact-bar a,
.dn-contact-bar span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 40px;
  background: #fff;
  border: 1px solid var(--border-color);
  font-weight: 700;
  color: var(--text-dark);
  box-shadow: var(--shadow-sm);
}
.dn-contact-bar a:hover { border-color: var(--dn-accent); color: var(--dn-accent); }
.dn-contact-bar i { color: var(--dn-accent); }

/* ---------- CTA ---------- */
.dn-cta {
  background: linear-gradient(135deg, rgba(10, 16, 52, 0.93) 0%, rgba(28, 42, 110, 0.86) 100%),
              url('../../images/pic08.jpg') center/cover no-repeat;
}
.dn-cta h2, .dn-cta p { word-break: keep-all; }
.dn-cta .btn-primary-custom { background: var(--dn-accent); box-shadow: 0 6px 20px rgba(242, 107, 33, 0.4); }
.dn-cta .btn-primary-custom:hover { background: #d95a14; }

/* ---------- Floating quick menu ---------- */
.sideSupport a.btn-quick-inquiry { background: var(--dn-navy); }
.sideSupport a.btn-quick-tel { background: var(--dn-accent); }

/* ---------- Footer ---------- */
.ns-sitemap {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 24px;
  padding-top: 40px;
  padding-bottom: 10px;
}
.ns-sitemap h4 { color: #fff; font-size: 0.95rem; margin-bottom: 12px; }
.ns-sitemap li { margin-bottom: 6px; }
.ns-sitemap a { font-size: 0.86rem; color: rgba(255, 255, 255, 0.65); }
.ns-sitemap a:hover { color: #fff; }
.footer-company .dn-footer-logo {
  display: inline-block;
  background: #fff;
  border-radius: 8px;
  padding: 8px 14px;
  margin-bottom: 16px;
}
.footer-company .dn-footer-logo img { height: 30px; width: auto; }

/* ---------- Scroll reveal (IntersectionObserver) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  transition-delay: var(--reveal-delay, 0s);
}
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .ns-hero-card { opacity: 1; transform: none; transition: none; }
  .hero-slides-track { transition: none; }
  .dn-biz-card, .ns-cert, .ns-tab-gallery a { transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
  .gnbDepth01 > a { padding: 0 10px; font-size: 0.88rem; }
  .ns-cert-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 1024px) {
  .dn-facts-grid { grid-template-columns: repeat(2, 1fr); }
  .dn-fact:nth-child(2) { border-right: 0; }
  .dn-fact:nth-child(-n+2) { border-bottom: 1px solid var(--border-color); }
  .dn-about { grid-template-columns: 1fr; gap: 40px; }
  .dn-about-visual { max-width: 420px; margin: 0 auto; }
  .dn-biz-grid { grid-template-columns: repeat(2, 1fr); }
  .dn-hero .hero-content { grid-template-columns: 1fr; gap: 28px; }
  .ns-hero-card { max-width: 520px; }
  .ns-timeline { grid-template-columns: 1fr; gap: 18px; padding-left: 28px; }
  .ns-timeline::before { left: 6px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; background: linear-gradient(180deg, var(--dn-blue), var(--dn-accent)); }
  .ns-timeline li { text-align: left; padding: 0; }
  .ns-timeline li::before { left: -29px; top: 3px; margin-left: 0; }
  .ns-timeline .date { margin-bottom: 0; }
  .ns-timeline strong { margin-top: 2px; }
  .ns-stats, .ns-tab-gallery { grid-template-columns: repeat(2, 1fr); }
  .ns-cert-grid { grid-template-columns: repeat(3, 1fr); }
  .ns-sitemap { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 860px) {
  .header-logo .dn-logo-text { display: none; }
  .btn-ssg-home { display: none; }
  .dn-section { padding: 80px 0; }
  .dn-facts { margin-top: -50px; }
  .dn-contact-grid { grid-template-columns: 1fr; }
  .ns-greeting { grid-template-columns: 1fr; padding: 36px 28px; }
  .ns-greeting-sign { text-align: left; }
  .ns-greeting-sign img { margin: 0 0 8px; width: 180px; }
  /* 모바일: 화살표가 본문을 가리므로 숨기고 스와이프/불릿으로 이동 */
  .dn-hero .hero-arrow { display: none; }
  .dn-hero .hero-pagination { bottom: 80px; }
  .dn-hero .hero-content { padding-left: 20px; padding-right: 20px; }
  /* 모바일 히어로: 카드는 숨기고 글만 */
  .ns-hero-card { display: none; }
}
@media (max-width: 600px) {
  .dn-facts-grid, .dn-biz-grid { grid-template-columns: 1fr; }
  .dn-fact { border-right: 0; border-bottom: 1px solid var(--border-color); }
  .dn-fact:last-child { border-bottom: 0; }
  .dn-info th { width: 92px; padding-right: 6px; }
  .dn-info th i { display: none; }
  .dn-contact-bar a, .dn-contact-bar span { width: 100%; justify-content: center; }
  .dn-hero .hero-sub { font-size: 1.1rem; }
  .dn-biz-card--wide { flex-direction: column; align-items: flex-start; gap: 16px; }
  .ns-stats strong { font-size: 2rem; }
  .ns-tab-gallery { grid-template-columns: 1fr 1fr; gap: 10px; }
  .ns-tab-gallery span { font-size: 0.82rem; padding: 8px 10px; }
  .ns-cert-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .ns-table thead { display: none; }
  .ns-table, .ns-table tbody, .ns-table tr, .ns-table td { display: block; width: 100%; }
  .ns-table tr { padding: 14px 0; border-bottom: 1px solid var(--border-color); }
  .ns-table td { border: 0; padding: 2px 4px; }
  .ns-table td:last-child { color: var(--text-muted); }
  .ns-sitemap { grid-template-columns: repeat(2, 1fr); }
  .ns-greeting h3 { font-size: 1.35rem; }
}

/* ============================================================
   서브페이지 (company, clients, business, projects, certificates)
   ============================================================ */
.ns-sub-hero {
  background-color: #0b1640;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.ns-sub-hero .sub-hero-content h1 { word-break: keep-all; }
.ns-sub-hero .sub-hero-content p { word-break: keep-all; }
.breadcrumb-list .current { color: var(--dn-accent); }
.sub-tab-nav a:hover,
.sub-tab-nav a.active { background: var(--dn-navy); border-color: var(--dn-navy); box-shadow: 0 4px 12px rgba(28, 42, 110, 0.25); }
.sub-tab-nav a { padding: 10px 22px; font-size: 0.92rem; }

.dn-sub-block { margin-bottom: 100px; scroll-margin-top: 90px; }
.dn-sub-block:last-child { margin-bottom: 0; }
.ns-sub-title { margin-bottom: 34px; }
.ns-sub-title .ns-eyebrow { margin-bottom: 4px; }
.ns-sub-title h2 { font-size: 2rem; color: var(--text-dark); line-height: 1.3; word-break: keep-all; }
.ns-sub-title p { margin-top: 12px; max-width: 860px; word-break: keep-all; }
.ns-prose p { margin-bottom: 14px; word-break: keep-all; line-height: 1.85; }
.ns-prose p:last-child { margin-bottom: 0; }

/* 원본 보기 · 원문 */
.ns-source {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
}
.ns-source:hover { color: var(--dn-accent); }
.ns-original {
  margin-top: 22px;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  background: #fff;
}
.ns-original summary {
  cursor: pointer;
  padding: 14px 18px;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--dn-blue);
}
.ns-original[open] summary { border-bottom: 1px solid var(--border-color); }
.ns-original .ns-original-body { padding: 18px 22px; font-size: 0.93rem; }
.ns-original .ns-original-body p { margin-bottom: 10px; }

/* CEO 인사말 전문 */
.ns-ceo {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 50px;
  align-items: start;
}
.ns-ceo-lead { font-size: 1.35rem; font-weight: 700; color: var(--text-dark); margin-bottom: 20px; }
.ns-ceo-side {
  position: sticky;
  top: 100px;
  padding: 32px 26px;
  border-radius: 16px;
  background: var(--bg-light);
  border-top: 4px solid var(--dn-accent);
  text-align: center;
}
.ns-ceo-side img.logo { width: 173px; margin: 0 auto 22px; }
.ns-ceo-side img.sign { width: 200px; margin: 10px auto; }
.ns-ceo-side span { display: block; color: var(--text-body); }
.ns-ceo-side strong { font-size: 1.2rem; color: var(--text-dark); }

/* 연혁 */
.ns-history { display: grid; gap: 34px; }
.ns-history-era { display: grid; grid-template-columns: 160px 1fr; gap: 30px; }
.ns-history-era > h3 {
  font-family: var(--font-en);
  font-size: 2.6rem;
  font-weight: 300;
  color: var(--dn-blue);
  line-height: 1;
  border-top: 3px solid var(--dn-accent);
  padding-top: 12px;
}
.ns-history-era ul { border-top: 1px solid var(--border-color); }
.ns-history-era li {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 16px;
  padding: 13px 4px;
  border-bottom: 1px solid var(--border-color);
  word-break: keep-all;
}
.ns-history-era li .d { font-family: var(--font-en); font-weight: 700; color: var(--dn-navy); }
.ns-history-era li small { display: block; color: var(--text-muted); font-size: 0.84rem; margin-top: 2px; }

/* 조직도 */
.ns-org { text-align: center; }
.ns-org-box {
  display: inline-block;
  min-width: 220px;
  padding: 14px 20px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  font-weight: 700;
  color: var(--text-dark);
  word-break: keep-all;
}
.ns-org-box small { display: block; font-family: var(--font-en); font-size: 0.75rem; font-weight: 600; color: var(--text-muted); margin-top: 2px; }
.ns-org-box.top { background: var(--dn-navy); color: #fff; border: 0; min-width: 240px; }
.ns-org-box.top small { color: rgba(255, 255, 255, 0.75); }
.ns-org-box.group { background: var(--dn-grad-accent); color: #fff; border: 0; }
.ns-org-box.group small { color: rgba(255, 255, 255, 0.85); }
.ns-org-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 18px; }
.ns-org-row .ns-org-box { display: block; min-width: 0; }
.ns-org-line { width: 2px; height: 28px; margin: 0 auto; background: var(--border-color); }
.ns-org-sub { margin-top: 18px; padding: 26px; border-radius: 16px; background: var(--bg-light); }

/* 표 공통 */
.ns-table-wrap { overflow-x: auto; }
.ns-table.ns-table-compact th, .ns-table.ns-table-compact td { padding: 11px 12px; font-size: 0.9rem; }
.ns-table td.num, .ns-table th.num { text-align: center; font-family: var(--font-en); }
.ns-table tfoot td { font-weight: 700; background: #fff7f1; color: var(--text-dark); }
.ns-table .ns-col-no { width: 52px; text-align: center; color: var(--text-muted); font-family: var(--font-en); }
.ns-table td.period { white-space: nowrap; font-family: var(--font-en); font-size: 0.86rem; }
.ns-table-group { margin-top: 40px; }
.ns-table-group:first-child { margin-top: 0; }
.ns-table-group h3 { font-size: 1.2rem; color: var(--text-dark); margin-bottom: 14px; }
.ns-table-group h3 small { font-family: var(--font-en); font-size: 0.85rem; font-weight: 600; color: var(--dn-accent); margin-left: 8px; }

/* 목록 (특허, 소프트웨어 등) */
.ns-numlist { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 26px; counter-reset: n; }
.ns-numlist li {
  position: relative;
  padding: 14px 16px 14px 56px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--border-color);
  word-break: keep-all;
  color: var(--text-dark);
}
.ns-numlist li::before {
  counter-increment: n;
  content: counter(n, decimal-leading-zero);
  position: absolute;
  left: 16px;
  top: 14px;
  font-family: var(--font-en);
  font-weight: 800;
  color: var(--dn-accent);
}

/* 고객사 · 협력사 */
.ns-client-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.ns-client-grid li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 18px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--border-color);
  font-weight: 600;
  color: var(--text-dark);
  word-break: keep-all;
}
.ns-client-grid li i { color: var(--dn-blue); }
.ns-client-grid li small { display: block; font-weight: 400; font-size: 0.8rem; color: var(--text-muted); }
.ns-logo-figure { margin: 30px 0 0; padding: 18px; border-radius: 14px; background: #fff; border: 1px solid var(--border-color); text-align: center; }
.ns-logo-figure img { margin: 0 auto; }
.ns-logo-figure figcaption { margin-top: 10px; font-size: 0.85rem; color: var(--text-muted); }
.ns-partner-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.ns-partner {
  padding: 30px 30px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--border-color);
  border-top: 4px solid var(--dn-navy);
  box-shadow: var(--shadow-sm);
}
.ns-partner h3 { font-size: 1.25rem; color: var(--text-dark); }
.ns-partner .en { font-family: var(--font-en); font-size: 0.8rem; font-weight: 700; color: var(--dn-accent); }
.ns-partner p { margin-top: 10px; word-break: keep-all; }

/* 사업분야 상세 */
.ns-biz-head { display: flex; align-items: center; gap: 18px; margin-bottom: 22px; }
.ns-biz-head .icon {
  flex: 0 0 64px;
  height: 64px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  color: #fff;
  background: var(--dn-grad);
}
.ns-biz-head .num { font-family: var(--font-en); font-weight: 800; color: var(--dn-accent); font-size: 0.9rem; }
.ns-biz-head h2 { font-size: 1.9rem; color: var(--text-dark); line-height: 1.25; word-break: keep-all; }
.ns-biz-head h2 small { display: block; font-family: var(--font-en); font-size: 0.85rem; font-weight: 600; color: var(--text-muted); }
.ns-scope { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 6px; }
.ns-scope li {
  padding: 6px 14px;
  border-radius: 20px;
  background: #eef2fb;
  color: var(--dn-navy);
  font-size: 0.86rem;
  font-weight: 700;
}
.ns-plate { margin: 34px 0 0; }
.ns-plate > a { display: block; border: 1px solid var(--border-color); border-radius: 12px; overflow: hidden; background: #fff; }
.ns-plate > a:hover { border-color: var(--dn-accent); box-shadow: var(--shadow-md); }
.ns-plate img { width: 100%; }
.ns-plate figcaption { margin-top: 12px; font-weight: 700; color: var(--text-dark); }
.ns-plate figcaption small { font-family: var(--font-en); color: var(--text-muted); font-weight: 600; margin-left: 6px; }
.ns-flow {
  display: grid;
  grid-template-columns: 0.8fr 1fr 1.3fr;
  gap: 14px;
  margin-top: 14px;
}
.ns-flow > div { padding: 18px 20px; border-radius: 12px; background: var(--bg-light); border: 1px solid var(--border-color); }
.ns-flow > div:nth-child(2) { background: #eef2fb; }
.ns-flow > div:nth-child(3) { background: #fff4ec; border-color: rgba(242, 107, 33, 0.25); }
.ns-flow h4 { font-size: 0.82rem; font-family: var(--font-en); letter-spacing: 1px; text-transform: uppercase; color: var(--dn-blue); margin-bottom: 8px; }
.ns-flow > div:nth-child(3) h4 { color: var(--dn-accent); }
.ns-flow li { position: relative; padding-left: 14px; font-size: 0.92rem; word-break: keep-all; color: var(--text-dark); }
.ns-flow li::before { content: ''; position: absolute; left: 0; top: 0.65em; width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: 0.5; }
.ns-photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 26px; }
.ns-photo-grid figure { margin: 0; }
.ns-photo-grid a { display: block; border-radius: 10px; overflow: hidden; border: 1px solid var(--border-color); background: #fff; }
.ns-photo-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: #fff; }
.ns-photo-grid figcaption { margin-top: 8px; font-size: 0.86rem; color: var(--text-body); word-break: keep-all; }
.ns-photo-grid.cover img { object-fit: cover; }
.ns-overview-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.ns-overview-card { border-radius: 14px; overflow: hidden; background: #fff; border: 1px solid var(--border-color); box-shadow: var(--shadow-sm); }
.ns-overview-card img { width: 100%; aspect-ratio: 164 / 209; object-fit: cover; }
.ns-overview-card div { padding: 16px 16px 18px; }
.ns-overview-card h3 { font-size: 1.02rem; color: var(--text-dark); word-break: keep-all; }
.ns-overview-card h3 small { display: block; font-family: var(--font-en); font-size: 0.72rem; color: var(--dn-accent); font-weight: 600; }
.ns-overview-card li { font-size: 0.86rem; padding: 3px 0 3px 12px; position: relative; word-break: keep-all; }
.ns-overview-card li::before { content: ''; position: absolute; left: 0; top: 0.8em; width: 4px; height: 4px; border-radius: 50%; background: var(--dn-blue); }
.ns-field-chips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 26px; counter-reset: f; }
.ns-field-chips a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--border-color);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dark);
}
.ns-field-chips a::before {
  counter-increment: f;
  content: counter(f, decimal-leading-zero);
  font-family: var(--font-en);
  font-weight: 800;
  color: var(--dn-accent);
}
.ns-field-chips a:hover { border-color: var(--dn-accent); color: var(--dn-accent); }
.ns-field-chips small { font-family: var(--font-en); font-weight: 500; color: var(--text-muted); font-size: 0.74rem; display: block; }

/* 실적 사진 */
.ns-record-photos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 14px; }
.ns-record-photos figure { margin: 0; }
.ns-record-photos a { display: block; border: 1px solid var(--border-color); border-radius: 8px; overflow: hidden; background: #fff; }
.ns-record-photos img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; }
.ns-record-photos figcaption { margin-top: 6px; font-size: 0.82rem; word-break: keep-all; }
.ns-project-card {
  padding: 28px 30px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--border-color);
  border-left: 5px solid var(--dn-navy);
  box-shadow: var(--shadow-sm);
  margin-bottom: 22px;
}
.ns-project-card h3 { font-size: 1.15rem; color: var(--text-dark); word-break: keep-all; }
.ns-project-card dl { display: grid; grid-template-columns: 110px 1fr; gap: 6px 16px; margin-top: 14px; font-size: 0.93rem; }
.ns-project-card dt { font-weight: 700; color: var(--dn-navy); }
.ns-project-card dd { word-break: keep-all; }
.ns-country-list { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.ns-country {
  padding: 24px 26px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}
.ns-country h3 { font-size: 1.15rem; color: var(--text-dark); }
.ns-country h3 small { font-family: var(--font-en); font-size: 0.8rem; color: var(--dn-accent); margin-left: 6px; }
.ns-country li { margin-top: 8px; padding-left: 14px; position: relative; font-size: 0.92rem; word-break: keep-all; }
.ns-country li::before { content: ''; position: absolute; left: 0; top: 0.65em; width: 5px; height: 5px; border-radius: 50%; background: var(--dn-accent); }

/* 인증서 상세 */
.ns-cert-detail { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.ns-cert-detail article {
  display: flex;
  flex-direction: column;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.ns-cert-detail a.img { display: block; padding: 18px; background: var(--bg-light); border-bottom: 1px solid var(--border-color); }
.ns-cert-detail a.img img { width: 100%; max-width: 220px; margin: 0 auto; border: 1px solid var(--border-color); }
.ns-cert-detail .body { padding: 20px 22px 24px; }
.ns-cert-detail h3 { font-size: 1.08rem; color: var(--text-dark); word-break: keep-all; }
.ns-cert-detail h3 small { display: block; font-family: var(--font-en); font-size: 0.76rem; color: var(--dn-accent); font-weight: 600; }
.ns-cert-detail dl { display: grid; grid-template-columns: 76px 1fr; gap: 4px 10px; margin-top: 12px; font-size: 0.88rem; }
.ns-cert-detail dt { color: var(--text-muted); }
.ns-cert-detail dd { color: var(--text-dark); word-break: keep-all; }

@media (max-width: 1024px) {
  .ns-ceo { grid-template-columns: 1fr; }
  .ns-ceo-side { position: static; }
  .ns-client-grid { grid-template-columns: repeat(3, 1fr); }
  .ns-overview-grid { grid-template-columns: repeat(3, 1fr); }
  .ns-field-chips { grid-template-columns: repeat(2, 1fr); }
  .ns-cert-detail { grid-template-columns: repeat(2, 1fr); }
  .ns-record-photos { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 860px) {
  .ns-history-era { grid-template-columns: 1fr; gap: 12px; }
  .ns-flow { grid-template-columns: 1fr; }
  .ns-photo-grid { grid-template-columns: repeat(2, 1fr); }
  .ns-org-row { grid-template-columns: 1fr 1fr; }
  .ns-numlist, .ns-partner-grid, .ns-country-list { grid-template-columns: 1fr; }
  .sub-tab-nav { gap: 6px; margin: 28px 0 40px; }
  .sub-tab-nav a { padding: 8px 14px; font-size: 0.84rem; }
}
@media (max-width: 600px) {
  .ns-sub-title h2, .ns-biz-head h2 { font-size: 1.5rem; }
  .ns-client-grid, .ns-overview-grid { grid-template-columns: repeat(2, 1fr); }
  .ns-field-chips, .ns-cert-detail, .ns-org-row { grid-template-columns: 1fr; }
  .ns-photo-grid { grid-template-columns: 1fr; }
  .ns-record-photos { grid-template-columns: repeat(2, 1fr); }
  .ns-history-era li { grid-template-columns: 74px 1fr; gap: 10px; }
  .ns-project-card dl { grid-template-columns: 1fr; }
  .ns-project-card dt { margin-top: 6px; }
  .dn-sub-block { margin-bottom: 70px; }
  .ns-table.ns-records thead { display: none; }
  .ns-table.ns-records, .ns-table.ns-records tbody, .ns-table.ns-records tr, .ns-table.ns-records td { display: block; width: 100%; }
  .ns-table.ns-records tr { padding: 12px 0; border-bottom: 1px solid var(--border-color); }
  .ns-table.ns-records td { border: 0; padding: 2px 4px; }
  .ns-table.ns-records td.ns-col-no { display: none; }
  .ns-table.ns-records td[data-label]::before { content: attr(data-label) ' · '; font-weight: 700; color: var(--dn-navy); font-family: var(--font-base); }
}
.ns-sitemap-source { display: inline-block; margin-top: 14px; font-size: 0.78rem; color: rgba(255, 255, 255, 0.45); text-decoration: underline; }
.ns-sitemap-source:hover { color: #fff; }
/* 실적표: 메인 대표실적 표의 마지막 칸 규칙(줄바꿈 금지)을 되돌리고 칸 너비 지정 */
.ns-table.ns-records { table-layout: fixed; }
.ns-table.ns-records td:last-child { white-space: normal; font-family: var(--font-base); font-size: 0.86rem; }
.ns-table.ns-records th:nth-child(2) { width: 34%; }
.ns-table.ns-records th:nth-child(3) { width: 17%; }
.ns-table.ns-records th:nth-child(4) { width: 112px; }
.ns-table.ns-records td.period { white-space: normal; }
.ns-table.ns-records th.ns-col-no { width: 52px; }
