/* 공통 뼈대 — 색·글꼴·머리글·바닥글·버튼 (2026-11-05 · 자리 표시용) */

:root {
  --navy: #123f80;
  --navy-deep: #0b2a5c;
  --navy-soft: #2a5ea8;
  --accent: #0f57a6;
  --accent-dark: #0a3f7d;
  --ink: #1c2530;
  --ink-soft: #5b6b7d;
  --paper: #f4f6f9;
  --card: #ffffff;
  --line: #dde3ea;
  --radius: 10px;
  --shadow: 0 2px 10px rgba(14, 42, 71, .06);
  --shadow-lg: 0 10px 28px rgba(14, 42, 71, .12);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
p { margin: 0 0 14px; }

.wrap { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }

.sr-only, .skip-link {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

.skip-link:focus {
  position: fixed; top: 12px; left: 12px; width: auto; height: auto;
  clip: auto; padding: 10px 16px; background: var(--navy); color: #fff; z-index: 200;
}

/* ── 머리글 ── */
.site-header {
  background: var(--card);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 100;
}

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px; padding: 12px 0;
}

.logo { display: flex; align-items: center; gap: 12px; }
.logo-img { height: 48px; width: auto; }

/* 머리글 로고 글자 — 실제 엠블럼(2026-10-30) 옆에 회사명을 붙인다 */
.brand-text { display: flex; flex-direction: column; line-height: 1.22; }
.brand-name { font-size: 18px; font-weight: 700; color: var(--navy, #123f80); letter-spacing: -.03em; }
/* 회사 이름 자리에 넣는 텍스트 로고 (2026-11-07)
   어두운 바탕에서는 글자만 흰색인 그림(light)으로 바꿔 끼운다 — CS 색은 그대로 */
.brand-wordmark { display: block; height: 19.5px; width: auto; }
.brand-wordmark-light { display: none; }
.brand-sub { font-size: 10px; font-weight: 600; color: var(--ink-soft, #65736b); letter-spacing: .13em; text-transform: uppercase; }

/* 머리글 로고 — 두 회사를 나란히 (누리안전 · 중앙안전 · 2026-11-12) */
.brand-company { display: flex; align-items: center; gap: 10px; }
.brand-company + .brand-company { padding-left: 16px; margin-left: 2px; border-left: 1px solid var(--line); }
.logo-img-light { display: none; }

.nav-toggle {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: 8px; padding: 9px 12px; font: inherit; font-size: 14px;
  color: var(--navy); cursor: pointer;
}

.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  display: block; width: 16px; height: 2px; background: var(--navy); content: "";
}

.nav-toggle-bar { position: relative; }
.nav-toggle-bar::before { position: absolute; top: -5px; left: 0; }
.nav-toggle-bar::after { position: absolute; top: 5px; left: 0; }

.main-nav {
  display: none; width: 100%; flex-direction: column;
  padding: 8px 0 4px; border-top: 1px solid var(--line);
}

.main-nav.open { display: flex; }

.main-nav > a,
.nav-group-btn {
  display: block; width: 100%; text-align: left;
  padding: 11px 4px; font-size: 16px; font-weight: 500;
  background: none; border: 0; border-bottom: 1px solid var(--line);
  color: var(--ink); font-family: inherit; cursor: pointer;
}

.main-nav > a.active,
.nav-group-btn[aria-expanded="true"] { color: var(--accent); }

.caret {
  display: inline-block; width: 0; height: 0; margin-left: 8px;
  border-left: 4px solid transparent; border-right: 4px solid transparent;
  border-top: 5px solid currentColor; vertical-align: middle;
}

.nav-drop { display: none; padding: 4px 0 8px 10px; }
.nav-group.open .nav-drop { display: block; }

.nav-drop a {
  display: block; padding: 9px 4px; font-size: 15px; color: var(--ink-soft);
  border-bottom: 1px dashed var(--line);
}

.nav-cta {
  margin-top: 10px; text-align: center;
  background: var(--accent); color: #fff !important;
  border-radius: 8px; padding: 12px 16px !important;
  border-bottom: 0 !important; font-weight: 700;
}

/* ── 버튼 ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 8px; font-weight: 700; font-size: 16px;
  border: 1px solid transparent; cursor: pointer;
}

.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-ghost { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .5); }
.btn-ghost:hover { background: rgba(255, 255, 255, .18); }
.btn-block { width: 100%; }

/* ── 첫 화면 ── */
.hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #fff; padding: 56px 0 44px;
}

.hero-badge {
  display: inline-block; margin: 0 0 16px;
  padding: 6px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  font-size: 13px; letter-spacing: .04em;
}

.hero h1 {
  margin: 0 0 16px; font-size: 30px; line-height: 1.35; font-weight: 900;
  word-break: keep-all;
}

.hero-lead { color: rgba(255, 255, 255, .86); max-width: 44em; margin-bottom: 24px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.hero-certs {
  list-style: none; margin: 26px 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 8px;
}

.hero-certs li {
  font-size: 13px; padding: 6px 12px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .3); color: rgba(255, 255, 255, .92);
}

/* ── 구역 ── */
.section { padding: 44px 0; }
.section-alt { background: #fff; }

.section-title {
  margin: 0 0 10px; font-size: 24px; font-weight: 900; color: var(--navy);
  word-break: keep-all;
}

.section-lead { color: var(--ink-soft); margin-bottom: 24px; }
.muted { color: var(--ink-soft); font-size: 14px; }

/* ── 카드 묶음 ── */
.area-grid, .cert-grid, .strength-grid, .service-grid {
  display: grid; gap: 14px; grid-template-columns: 1fr;
}

.area-card, .cert-card, .strength-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; box-shadow: var(--shadow);
}

.area-no {
  margin: 0 0 6px; font-size: 13px; font-weight: 700; letter-spacing: .08em;
  color: var(--accent);
}

.area-card h3, .cert-card h3, .strength-card h3 {
  margin: 0 0 8px; font-size: 18px; color: var(--navy); word-break: keep-all;
}

.area-summary, .cert-card p, .strength-card p {
  margin: 0; color: var(--ink-soft); font-size: 15px;
}

.area-items { list-style: none; margin: 12px 0 0; padding: 0; }
.area-items li { border-top: 1px solid var(--line); }
.area-items a { display: block; padding: 10px 0; font-size: 15px; }
.area-items a:hover { color: var(--accent); }

/* ── 문의 구역 ── */
.section-contact { background: var(--navy); color: #fff; }
.contact-inner { display: grid; gap: 18px; }
.section-contact h2 { margin: 0 0 8px; font-size: 22px; }
.section-contact p { color: rgba(255, 255, 255, .86); margin: 0 0 6px; }
.section-contact .muted { color: rgba(255, 255, 255, .62); }
.btn-mail { word-break: break-all; }

/* ── 화면 머리 ── */
.page-head {
  background: #fff; border-bottom: 1px solid var(--line); padding: 34px 0 30px;
}

.page-badge {
  margin: 0 0 8px; font-size: 13px; font-weight: 700; letter-spacing: .1em;
  color: var(--accent); text-transform: uppercase;
}

.page-head h1 {
  margin: 0 0 10px; font-size: 26px; font-weight: 900; color: var(--navy);
  word-break: keep-all;
}

.page-head-en { font-size: 15px; font-weight: 700; color: var(--ink-soft); }
.page-lead { margin: 0; color: var(--ink-soft); max-width: 48em; word-break: keep-all; }

.breadcrumb { font-size: 13px; color: var(--ink-soft); margin-bottom: 12px; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { margin: 0 6px; }

/* ── 사업분야 화면 ── */
.area-block { margin-bottom: 34px; }

.area-block-head {
  background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--accent);
  border-radius: var(--radius); padding: 18px 20px; margin-bottom: 14px;
}

.area-block-head h2 {
  margin: 0 0 8px; font-size: 21px; color: var(--navy); word-break: keep-all;
}

.area-lead { margin: 8px 0 0; color: var(--ink-soft); font-size: 15px; }

.service-card {
  display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; box-shadow: var(--shadow);
}

.service-card:hover { border-color: var(--accent); box-shadow: var(--shadow-lg); }
.service-card h3 { margin: 0 0 8px; font-size: 17px; color: var(--navy); word-break: keep-all; }
.service-card p { margin: 0 0 12px; color: var(--ink-soft); font-size: 15px; }
.service-more { margin-top: auto; color: var(--accent); font-size: 14px; font-weight: 700; }

/* ── 사업 상세 화면 ── */
.detail-grid { display: grid; gap: 22px; grid-template-columns: 1fr; }

.detail-lead {
  font-size: 17px; color: var(--ink); border-left: 3px solid var(--accent);
  padding-left: 14px; margin-bottom: 22px; word-break: keep-all;
}

.check-list { list-style: none; margin: 0 0 26px; padding: 0; }
.check-list li {
  position: relative; padding: 10px 0 10px 26px; border-bottom: 1px solid var(--line);
  font-size: 15px;
}

.check-list li::before {
  content: "✓"; position: absolute; left: 2px; top: 10px;
  color: var(--accent); font-weight: 700;
}

.detail-section { margin-bottom: 26px; }
.detail-section h2 {
  margin: 0 0 12px; font-size: 19px; color: var(--navy); word-break: keep-all;
}

.detail-section p { color: #33414f; }

.side-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; margin-bottom: 14px;
}

.side-card h3 {
  margin: 0 0 12px; font-size: 16px; color: var(--navy);
  padding-bottom: 8px; border-bottom: 1px solid var(--line);
}

.step-list { margin: 0; padding-left: 20px; color: #33414f; font-size: 15px; }
.step-list li { margin-bottom: 6px; }

.plain-list { list-style: none; margin: 0; padding: 0; color: #33414f; font-size: 15px; }
.plain-list li { padding: 6px 0 6px 14px; position: relative; }
.plain-list li::before { content: "·"; position: absolute; left: 2px; color: var(--accent); font-weight: 700; }

.law-note {
  font-size: 13px; color: var(--ink-soft); background: #eef2f7;
  border-radius: 8px; padding: 12px 14px; margin: 0 0 14px; word-break: keep-all;
}

/* ── 회사소개 화면 ── */
.about-grid { display: grid; gap: 24px; grid-template-columns: 1fr; }
.about-text p { color: #33414f; word-break: keep-all; }

.about-side {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; height: fit-content;
}

.about-side h3 { margin: 0 0 14px; font-size: 17px; color: var(--navy); }

.info-list { margin: 0; }
.info-list dt {
  font-size: 13px; font-weight: 700; color: var(--accent); margin-top: 12px;
}
.info-list dd { margin: 2px 0 0; font-size: 15px; color: #33414f; word-break: keep-all; }
.info-list dd a { color: var(--navy); text-decoration: underline; }

/* ── 바닥글 ── */
.site-footer {
  background: var(--navy-deep); color: rgba(255, 255, 255, .85);
  padding: 34px 0 22px;
}

.footer-grid { display: grid; gap: 22px; grid-template-columns: 1fr; }
.footer-logo { margin: 0 0 6px; font-size: 18px; font-weight: 900; color: #fff; }
.footer-note { margin: 0 0 6px; font-size: 14px; color: rgba(255, 255, 255, .74); word-break: keep-all; }

.footer-label {
  margin: 0 0 10px; font-size: 13px; font-weight: 700; letter-spacing: .06em;
  color: var(--accent);
}

.footer-list { list-style: none; margin: 0; padding: 0; font-size: 14px; }
.footer-list li { margin-bottom: 6px; color: rgba(255, 255, 255, .78); }
.footer-list a:hover, .footer-mail:hover { color: #fff; text-decoration: underline; }
.footer-mail { color: #fff; font-weight: 700; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .14); margin-top: 24px; padding-top: 16px;
  display: grid; gap: 6px;
}

.footer-bottom .footer-note { margin: 0; }
.copyright { margin: 0; font-size: 13px; color: rgba(255, 255, 255, .55); }

/* ── 오른쪽 아래 문의 단추 ── */
.mail-dock {
  position: fixed; right: 16px; bottom: 16px; z-index: 120;
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent); color: #fff; padding: 13px 18px;
  border-radius: 999px; font-weight: 700; font-size: 15px;
  box-shadow: var(--shadow-lg);
}

.mail-dock:hover { background: var(--accent-dark); }

/* ── 넓은 화면 ── */
@media (min-width: 700px) {
  .area-grid, .cert-grid, .strength-grid, .service-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-inner { grid-template-columns: 1fr auto; align-items: center; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
  .footer-bottom { grid-template-columns: 1fr auto; }
  .hero { padding: 76px 0 62px; }
  .hero h1 { font-size: 40px; }
}

@media (min-width: 1000px) {
  .header-inner { flex-wrap: nowrap; }
  .nav-toggle { display: none; }

  .main-nav {
    display: flex; width: auto; flex-direction: row; align-items: center;
    gap: 2px; border-top: 0; padding: 0;
  }

  .main-nav > a { width: auto; border-bottom: 0; padding: 10px 12px; font-size: 15px; }

  .nav-group { position: relative; }
  .nav-group-btn { width: auto; border-bottom: 0; padding: 10px 12px; font-size: 15px; }

  /* 메뉴 이름이 길어 두 줄로 접히지 않게 한다 (2026-10-30 지도사 업무 이름 그대로 사용) */
  .main-nav > a, .nav-group-btn { white-space: nowrap; }

  .nav-drop {
    display: none; position: absolute; top: 100%; left: 0; min-width: 270px;
    background: #fff; border: 1px solid var(--line); border-radius: 10px;
    box-shadow: var(--shadow-lg); padding: 8px;
  }

  .nav-group:hover .nav-drop,
  .nav-group:focus-within .nav-drop,
  .nav-group.open .nav-drop { display: block; }

  .nav-drop a { border-bottom: 0; padding: 10px 12px; border-radius: 6px; }
  .nav-drop a:hover { background: var(--paper); color: var(--accent); }

  .nav-cta { margin: 0 0 0 8px; padding: 10px 18px !important; }

  .area-grid, .cert-grid, .strength-grid { grid-template-columns: repeat(4, 1fr); }
  .service-grid { grid-template-columns: repeat(3, 1fr); }
  .detail-grid { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; }
  .detail-side { position: sticky; top: 92px; }
  .about-grid { grid-template-columns: minmax(0, 1fr) 320px; }
}

/* ── 휴대폰 (360~430px) ── */
@media (max-width: 640px) {
  body { font-size: 15px; }
  .wrap { width: calc(100% - 24px); }
  .logo-img { height: 38px; }
  .brand-name { font-size: 16px; }
  .brand-sub { font-size: 9px; letter-spacing: .1em; }

  .hero { padding: 40px 0 34px; }
  .hero h1 { font-size: 25px; }
  .hero-actions .btn { width: 100%; }

  .section { padding: 32px 0; }
  .section-title { font-size: 21px; }
  .page-head { padding: 26px 0 22px; }
  .page-head h1 { font-size: 22px; }

  .area-card, .cert-card, .strength-card, .service-card, .side-card, .about-side { padding: 16px; }
  .btn { width: 100%; }
  .btn-mail { font-size: 15px; }

  .mail-dock { padding: 14px; }
  .mail-dock-text { display: none; }

  .footer-grid { gap: 18px; }
}

/* ── 회사소개: 조직도 · 장비보유현황 (2026-11-12 추가 · 조직도는 2026-11-12 코드 그림으로 교체) ── */
.org-grid { display:grid; grid-template-columns:1fr; gap:30px; }
.org-card {
  margin:0; padding:30px 26px 34px;
  background:linear-gradient(180deg,#fff 0%,#fafcff 100%);
  border:1px solid #e6ecf4; border-radius:16px;
  box-shadow:0 16px 36px rgba(14,42,71,.07), 0 2px 6px rgba(14,42,71,.04);
}
.org-card-head { position:relative; text-align:center; margin:0 0 30px; padding-bottom:18px; border-bottom:1px solid #eef2f8; }
.org-card-head::after {
  content:""; position:absolute; left:50%; bottom:-1px; transform:translateX(-50%);
  width:46px; height:2px; border-radius:2px;
  background:linear-gradient(90deg,var(--navy-soft),var(--navy-deep));
}
.org-card-head strong { display:block; font-size:18px; font-weight:700; color:var(--navy-deep); letter-spacing:-.02em; }
.org-card-head span { display:block; margin-top:5px; font-size:12.5px; letter-spacing:.02em; color:var(--ink-soft); }

.org-chart { display:flex; flex-direction:column; align-items:center; }
.org-lead-node {
  display:inline-block; min-width:142px; padding:13px 26px; text-align:center;
  background:linear-gradient(180deg,#3369b0 0%, #1f4d8f 52%, var(--navy-deep) 100%);
  color:#fff; border-radius:10px; font-weight:700; font-size:15px; letter-spacing:.08em;
  box-shadow:0 12px 24px rgba(18,63,128,.30), inset 0 1px 0 rgba(255,255,255,.28);
}
.org-trunk { position:relative; width:2px; height:56px; background:linear-gradient(180deg,#c6d4e6,#dbe4ef); }
.org-audit-node {
  position:absolute; top:50%; right:100%; margin-right:28px; transform:translateY(-50%);
  padding:8px 18px; border:1px solid #dce5f0; border-radius:999px;
  background:#f6f9fd; color:#5b6b7d; font-weight:600; font-size:12.5px; letter-spacing:.06em; white-space:nowrap;
  box-shadow:0 1px 2px rgba(14,42,71,.04);
}
.org-audit-node::after { content:""; position:absolute; top:50%; left:100%; width:28px; height:2px; margin-top:-1px; background:#d5dfec; }
.org-branches { position:relative; display:grid; grid-template-columns:repeat(4,1fr); gap:12px; width:100%; margin:0; padding:32px 0 0; list-style:none; }
.org-branches::before { content:""; position:absolute; top:0; left:12.5%; right:12.5%; height:2px; background:#d5dfec; }
.org-branches li { position:relative; }
.org-branches li::before { content:""; position:absolute; top:-32px; left:50%; width:2px; height:32px; margin-left:-1px; background:#d5dfec; }
.org-branches li span {
  position:relative; display:block; overflow:hidden; padding:15px 8px 13px;
  background:#fff; border:1px solid #e6ecf4; border-radius:10px;
  font-size:13.5px; font-weight:600; color:#26374a; text-align:center; word-break:keep-all;
  box-shadow:0 2px 6px rgba(14,42,71,.05);
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.org-branches li span::before {
  content:""; position:absolute; top:0; left:0; right:0; height:3px;
  background:linear-gradient(90deg,#8fb9ea,#2a5ea8);
}
.org-branches li span:hover { transform:translateY(-2px); border-color:#c3d3e8; box-shadow:0 10px 20px rgba(18,63,128,.13); }
@media (min-width:900px) { .org-grid { grid-template-columns:repeat(2,1fr); } }
@media (prefers-reduced-motion: reduce) {
  .org-branches li span { transition:none; }
  .org-branches li span:hover { transform:none; }
}

.table-scroll { overflow-x:auto; -webkit-overflow-scrolling:touch; }
.equip-table { width:100%; min-width:620px; border-collapse:collapse; background:#fff; border:1px solid #e2e2e6; border-radius:14px; overflow:hidden; }
.equip-table th, .equip-table td { border:1px solid #e9e9ee; padding:12px 14px; text-align:center; font-size:.95rem; }
.equip-table thead th { background:#f4f5f8; font-weight:700; }
.equip-table tbody th[scope="rowgroup"] { background:#fafafc; font-weight:700; }
@media (max-width:640px) {
  .org-grid { grid-template-columns:1fr; gap:22px; }
  .org-card { padding:22px 14px 26px; border-radius:14px; }
  .org-card-head { margin-bottom:22px; padding-bottom:14px; }
  .org-card-head strong { font-size:16.5px; }
  .org-lead-node { min-width:120px; padding:11px 20px; font-size:14px; letter-spacing:.06em; }
  .org-audit-node { margin-right:16px; padding:7px 13px; font-size:12px; }
  .org-audit-node::after { width:16px; }
  .org-branches { gap:6px; padding-top:26px; }
  .org-branches li::before { top:-26px; height:26px; }
  .org-branches li span { padding:12px 3px 10px; font-size:11.5px; border-radius:8px; }
  .equip-table { min-width:520px; }
}

/* ── 게시판 4종 (2026-11-12) ── */
.board-tabs { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:18px; }
.board-tabs a { padding:10px 18px; border:1px solid #e2e2e6; border-radius:10px; color:#44566b; font-weight:600; text-decoration:none; }
.board-tabs a.on { background:#123a63; color:#fff; border-color:#123a63; }
.board-total { color:#7d8ea3; font-size:14px; margin:0 0 10px; }
.board-tbl .board-writer { width:110px; white-space:nowrap; color:#7d8ea3; }
.board-summary { display:block; color:#8a97a6; font-size:13px; margin-top:2px; }
@media (max-width:640px){
  .board-tbl .board-writer { display:none; }
  .board-tabs a { padding:8px 12px; font-size:14px; }
}
