/* ==========================================================================
   주식회사 브록스(BLOCX INC.) 기업 홈페이지 공통 스타일
   - 순수 CSS (프레임워크 없음)
   - 컬러/타이포/여백은 CSS 커스텀 프로퍼티로 관리
   - [미확인-플레이스홀더] 실제 CI/로고 컬러 확인 시 :root 변수만 교체하면 됨
   ========================================================================== */

/* ---------- 1. 디자인 토큰 ---------- */
:root {
  /* 컬러 팔레트 (공조·환기·청정 이미지) — [로고 컬러 미확인, CI 확보 시 교체] */
  --c-primary: #0B4DA2;        /* 딥 블루 */
  --c-primary-dark: #083A7A;
  --c-secondary: #2E9BD6;      /* 스카이/청정 블루 */
  --c-accent: #3BAF5A;         /* 에너지 그린 */
  --c-dark: #1F2937;
  --c-gray: #6B7280;
  --c-line: #E5E7EB;
  --c-bg-light: #F5F7FA;
  --c-white: #FFFFFF;
  --c-danger: #DC2626;

  /* 타이포 스케일 */
  --fs-body: 16px;
  --fs-h1: 40px;
  --fs-h2: 30px;
  --fs-h3: 22px;
  --lh-body: 1.7;

  /* 여백 시스템 (8px 그리드) */
  --sp-1: 8px;
  --sp-2: 16px;
  --sp-3: 24px;
  --sp-4: 32px;
  --sp-6: 48px;
  --sp-8: 64px;

  --container: 1200px;
  --radius: 8px;
  --radius-sm: 6px;
  --shadow: 0 2px 8px rgba(15, 23, 42, .08);
  --shadow-lg: 0 8px 24px rgba(15, 23, 42, .12);
  --header-h: 72px;
}

/* ---------- 2. 리셋 / 베이스 ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Pretendard Variable', Pretendard, 'Noto Sans KR', system-ui, sans-serif;
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--c-dark);
  background: var(--c-white);
  word-break: keep-all;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; }
table { border-collapse: collapse; width: 100%; }

h1 { font-size: var(--fs-h1); line-height: 1.3; }
h2 { font-size: var(--fs-h2); line-height: 1.35; }
h3 { font-size: var(--fs-h3); line-height: 1.4; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--sp-3); }

/* 스크린리더 전용 (SEO 보완용 숨김 h1 포함) */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* 본문 바로가기 (접근성) */
.skip-link {
  position: absolute; top: -48px; left: var(--sp-2); z-index: 1000;
  background: var(--c-primary); color: #fff; padding: 10px 18px;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm); transition: top .2s;
}
.skip-link:focus { top: 0; }

:focus-visible { outline: 3px solid var(--c-secondary); outline-offset: 2px; }

/* ---------- 3. 헤더 / GNB ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--header-h);
  background: var(--c-white);
  box-shadow: var(--shadow);
  transition: background .3s, box-shadow .3s;
}
.site-header .header-inner {
  max-width: var(--container); margin: 0 auto; padding: 0 var(--sp-3);
  height: 100%; display: flex; align-items: center; justify-content: space-between;
}
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 22px; color: var(--c-primary); }
.logo img { height: 36px; width: auto; }

.gnb { display: flex; align-items: center; }
.gnb > li { position: relative; }
.gnb > li > a {
  display: flex; align-items: center; height: var(--header-h);
  padding: 0 22px; font-weight: 600; font-size: 17px;
}
.gnb > li > a:hover, .gnb > li > a:focus, .gnb > li.active > a { color: var(--c-secondary); }

/* GNB 드롭다운 (데스크톱) */
.gnb .dropdown {
  position: absolute; top: var(--header-h); left: 50%; transform: translateX(-50%) translateY(8px);
  min-width: 190px; background: var(--c-white); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg); padding: var(--sp-1) 0;
  opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s;
}
.gnb > li:hover .dropdown, .gnb > li:focus-within .dropdown {
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
}
.gnb .dropdown a { display: block; padding: 10px 20px; font-size: 15px; color: var(--c-dark); }
.gnb .dropdown a:hover, .gnb .dropdown a:focus { background: var(--c-bg-light); color: var(--c-primary); }

/* 홈(메인) 전용: 비디오 위 투명 헤더 */
body.home .site-header { background: rgba(15, 23, 42, .35); box-shadow: none; backdrop-filter: blur(6px); }
body.home .site-header .logo, body.home .gnb > li > a { color: #fff; }
body.home .gnb > li > a:hover, body.home .gnb > li > a:focus { color: var(--c-secondary); }

/* 언어 전환 (우측 상단 국기 드롭다운) */
.header-right { display: flex; align-items: center; gap: var(--sp-2); }
.lang-switcher { position: relative; }
.lang-switcher > button {
  display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 12px;
  border: 1px solid var(--c-line); border-radius: var(--radius-sm); font-weight: 600; font-size: 14px;
}
body.home .lang-switcher > button { border-color: rgba(255,255,255,.5); color: #fff; }
.lang-switcher .flag { width: 24px; height: 16px; border-radius: 2px; object-fit: cover; box-shadow: 0 0 0 1px rgba(0,0,0,.08); }
.lang-switcher .caret { font-size: 10px; }
.lang-menu {
  position: absolute; top: calc(100% + 8px); right: 0; min-width: 160px; z-index: 220;
  background: var(--c-white); border-radius: var(--radius-sm); box-shadow: var(--shadow-lg);
  padding: 6px 0; display: none;
}
.lang-switcher.open .lang-menu { display: block; }
.lang-menu button {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 16px;
  font-size: 14px; color: var(--c-dark); min-height: 44px;
}
.lang-menu button:hover, .lang-menu button:focus { background: var(--c-bg-light); }
.lang-menu button.active { color: var(--c-primary); font-weight: 700; }

/* 모바일 햄버거 */
.nav-toggle { display: none; width: 44px; height: 44px; position: relative; z-index: 210; }
.nav-toggle span {
  display: block; width: 24px; height: 2px; background: var(--c-dark);
  margin: 5px auto; transition: transform .3s, opacity .3s;
}
body.home .nav-toggle span { background: #fff; }
body.nav-open .nav-toggle span { background: var(--c-dark); }
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 4. 메인: 풀스크린 배경 비디오 ---------- */
body.home { overflow: hidden; height: 100vh; height: 100dvh; display: flex; flex-direction: column; }

.hero-video {
  position: fixed; top: 0; left: 0; width: 100vw;
  height: 100vh; height: 100dvh;
  object-fit: cover; z-index: -1;
  background: url('../img/main-poster.jpg') center / cover no-repeat;
}
.hero-fallback {
  position: fixed; top: 0; left: 0; width: 100vw;
  height: 100vh; height: 100dvh; z-index: -2;
  background: url('../img/main-poster.jpg') center / cover no-repeat;
}
.hero-dim {
  position: fixed; inset: 0; z-index: 0;
  background: linear-gradient(180deg, rgba(8, 20, 40, .45) 0%, rgba(8, 20, 40, .55) 100%);
}
.hero-content {
  position: relative; z-index: 1; flex: 1 1 auto; min-height: 0;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center; color: #fff; padding: 0 var(--sp-3);
}
.hero-content .hero-title { font-size: clamp(30px, 4.5vw, 52px); font-weight: 800; text-shadow: 0 2px 12px rgba(0,0,0,.35); }
.hero-content .hero-sub { margin-top: var(--sp-2); font-size: clamp(16px, 1.6vw, 20px); opacity: .92; }
.hero-cta { margin-top: var(--sp-6); display: flex; gap: var(--sp-2); flex-wrap: wrap; justify-content: center; }

.video-toggle {
  position: absolute; right: var(--sp-3); bottom: var(--sp-3); z-index: 5;
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255, 255, 255, .18); border: 1px solid rgba(255, 255, 255, .5);
  color: #fff; font-size: 18px; display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(4px);
}
.video-toggle:hover { background: rgba(255, 255, 255, .32); }


/* 모션 최소화 선호 시: 비디오 숨기고 poster 폴백 노출 */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-video, .video-toggle { display: none; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---------- 5. 버튼 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 28px; border-radius: var(--radius-sm);
  font-weight: 700; font-size: 16px; transition: background .2s, color .2s, border-color .2s;
  border: 2px solid transparent;
}
.btn-primary { background: var(--c-primary); color: #fff; }
.btn-primary:hover { background: var(--c-primary-dark); }
.btn-outline-light { border-color: rgba(255,255,255,.85); color: #fff; }
.btn-outline-light:hover { background: rgba(255,255,255,.15); }
.btn-outline { border-color: var(--c-primary); color: var(--c-primary); }
.btn-outline:hover { background: var(--c-primary); color: #fff; }

/* ---------- 6. 서브페이지 공통 ---------- */
body.sub { padding-top: var(--header-h); }

.page-hero {
  height: 260px; display: flex; align-items: center; justify-content: center;
  text-align: center; color: #fff; position: relative;
  background: linear-gradient(120deg, var(--c-primary-dark) 0%, var(--c-primary) 55%, var(--c-secondary) 100%);
}
.page-hero::after {
  /* 은은한 공기 흐름 패턴 (이미지 없이 CSS만) */
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 120% at 85% 20%, rgba(255,255,255,.10), transparent 60%),
    radial-gradient(ellipse 50% 100% at 15% 90%, rgba(255,255,255,.07), transparent 60%);
}
.page-hero h1 { font-size: clamp(28px, 3.4vw, 40px); position: relative; z-index: 1; }
.page-hero p { margin-top: var(--sp-1); opacity: .9; position: relative; z-index: 1; }

.breadcrumb {
  border-bottom: 1px solid var(--c-line); background: var(--c-white);
}
.breadcrumb ol {
  max-width: var(--container); margin: 0 auto; padding: 12px var(--sp-3);
  display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--c-gray);
  overflow-x: auto; white-space: nowrap;
}
.breadcrumb li:not(:last-child)::after { content: '›'; margin-left: 8px; color: #C3C9D2; }
.breadcrumb li:last-child { color: var(--c-primary); font-weight: 600; }

/* 2단 레이아웃: LNB + 콘텐츠 */
.sub-layout {
  max-width: var(--container); margin: 0 auto; padding: var(--sp-6) var(--sp-3) var(--sp-8);
  display: grid; grid-template-columns: 220px 1fr; gap: var(--sp-6); align-items: start;
}

.lnb { position: sticky; top: calc(var(--header-h) + var(--sp-3)); }
.lnb h2 {
  font-size: 20px; color: var(--c-primary); padding-bottom: var(--sp-2);
  border-bottom: 2px solid var(--c-primary); margin-bottom: var(--sp-1);
}
.lnb a {
  display: block; padding: 12px 10px; font-size: 15px; color: var(--c-gray);
  border-bottom: 1px solid var(--c-line); transition: color .2s, padding-left .2s;
}
.lnb a:hover, .lnb a:focus { color: var(--c-primary); padding-left: 16px; }
.lnb a.active { color: var(--c-primary); font-weight: 700; }
.lnb a.active::before { content: '· '; }

.sub-layout.single { grid-template-columns: 1fr; }

.sub-content { min-width: 0; }
.sub-content > h2.content-title {
  font-size: var(--fs-h2); margin-bottom: var(--sp-4); padding-bottom: var(--sp-2);
  border-bottom: 2px solid var(--c-dark);
}
.sub-content h3 { margin: var(--sp-6) 0 var(--sp-2); color: var(--c-primary); }
.sub-content h3:first-of-type { margin-top: 0; }
.sub-content p + p { margin-top: var(--sp-2); }

/* ---------- 7. 콘텐츠 컴포넌트 ---------- */
/* 표 (회사개요, 제품 스펙 등) */
.data-table { box-shadow: var(--shadow); border-radius: var(--radius-sm); overflow: hidden; font-size: 15px; }
.data-table th, .data-table td { padding: 14px 18px; border-bottom: 1px solid var(--c-line); text-align: left; }
.data-table thead th { background: var(--c-primary); color: #fff; font-weight: 700; }
.data-table tbody th { background: var(--c-bg-light); width: 180px; font-weight: 600; }
.table-wrap { overflow-x: auto; }

/* 카드 그리드 */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--sp-3); }
.card {
  background: var(--c-white); border: 1px solid var(--c-line); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden; transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card .card-thumb {
  height: 170px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--c-bg-light), #E2ECF6); color: var(--c-secondary); font-size: 40px;
}
.card .card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.card .card-body { padding: var(--sp-3); }
.card .card-body h4 { font-size: 18px; margin-bottom: var(--sp-1); }
.card .card-body p { font-size: 14px; color: var(--c-gray); }

/* 연혁 타임라인 */
.timeline { border-left: 3px solid var(--c-primary); padding-left: var(--sp-4); }
.timeline li { position: relative; padding-bottom: var(--sp-4); }
.timeline li::before {
  content: ''; position: absolute; left: calc(-1 * var(--sp-4) - 8.5px); top: 8px;
  width: 14px; height: 14px; border-radius: 50%; background: var(--c-white);
  border: 3px solid var(--c-secondary);
}
.timeline .year { font-size: 20px; font-weight: 800; color: var(--c-primary); }
.timeline p { color: var(--c-gray); margin-top: 4px; }

/* FAQ / 아코디언 */
.accordion { border-top: 2px solid var(--c-dark); }
.accordion-item { border-bottom: 1px solid var(--c-line); }
.accordion-item > button {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: var(--sp-2);
  padding: 18px 8px; text-align: left; font-weight: 600; font-size: 16px; min-height: 44px;
}
.accordion-item > button::after { content: '+'; font-size: 22px; color: var(--c-secondary); flex-shrink: 0; }
.accordion-item > button[aria-expanded="true"]::after { content: '–'; }
.accordion-panel { display: none; padding: 4px 8px 20px; color: var(--c-gray); }
.accordion-item > button[aria-expanded="true"] + .accordion-panel { display: block; }

/* 공지사항 목록 */
.board-list { border-top: 2px solid var(--c-dark); font-size: 15px; }
.board-list li { border-bottom: 1px solid var(--c-line); }
.board-list a { display: flex; justify-content: space-between; gap: var(--sp-2); padding: 16px 8px; }
.board-list a:hover .board-title { color: var(--c-primary); text-decoration: underline; }
.board-list .board-title { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board-list .board-date { color: var(--c-gray); flex-shrink: 0; }
.badge {
  display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 700;
  background: #E8F1FB; color: var(--c-primary); margin-right: 8px; flex-shrink: 0;
}

/* 자료실 다운로드 */
.download-item {
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2);
  padding: var(--sp-3); border: 1px solid var(--c-line); border-radius: var(--radius-sm);
  box-shadow: var(--shadow); margin-bottom: var(--sp-2); flex-wrap: wrap;
}
.download-item .doc-name { font-weight: 600; }
.download-item .doc-meta { font-size: 13px; color: var(--c-gray); margin-top: 2px; }

/* CEO 인사말 프로필 카드 */
.ceo-card { display: flex; gap: var(--sp-4); align-items: flex-start; margin-bottom: var(--sp-4); }
.ceo-card .ceo-photo { flex: 0 0 220px; margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.ceo-card .ceo-photo img { width: 100%; display: block; }
.ceo-card .ceo-body { min-width: 0; }
.ceo-card .ceo-body h3 { margin-top: 0; }
@media (max-width: 767px) {
  .ceo-card { flex-direction: column; align-items: center; }
  .ceo-card .ceo-photo { flex-basis: auto; width: 200px; }
  .ceo-card .ceo-body { text-align: left; }
}

/* 본문 콘텐츠 이미지 */
.content-img { margin: var(--sp-3) 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.content-img img { width: 100%; display: block; }

/* 안내/주의 박스 */
.notice-box {
  background: var(--c-bg-light); border-left: 4px solid var(--c-secondary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: var(--sp-3); font-size: 15px; color: var(--c-gray); margin: var(--sp-3) 0;
}
.notice-box strong { color: var(--c-dark); }

/* 오시는길 지도 플레이스홀더 */
.map-placeholder {
  height: 400px; border-radius: var(--radius); background: var(--c-bg-light);
  border: 1px dashed #C3C9D2; display: flex; align-items: center; justify-content: center;
  color: var(--c-gray); text-align: center; padding: var(--sp-3);
}

/* ---------- 8. 폼 ---------- */
.form { max-width: 720px; }
.form-row { margin-bottom: var(--sp-3); }
.form-row label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 15px; }
.form-row .req { color: var(--c-danger); }
.form-row input[type="text"], .form-row input[type="tel"], .form-row input[type="email"],
.form-row select, .form-row textarea, .form-row input[type="file"] {
  width: 100%; padding: 12px 14px; border: 1px solid #C9D2DD; border-radius: var(--radius-sm);
  font: inherit; font-size: 15px; background: var(--c-white); min-height: 48px;
}
.form-row textarea { min-height: 160px; resize: vertical; }
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  border-color: var(--c-secondary); outline: 2px solid rgba(46, 155, 214, .25);
}
.form-error { display: none; color: var(--c-danger); font-size: 13px; margin-top: 4px; }
.form-row.invalid input, .form-row.invalid select, .form-row.invalid textarea { border-color: var(--c-danger); }
.form-row.invalid .form-error { display: block; }

/* 개인정보 동의 박스 */
.privacy-consent {
  background: var(--c-bg-light); border: 1px solid var(--c-line); border-radius: var(--radius-sm);
  padding: var(--sp-3); font-size: 14px; color: var(--c-gray); margin-bottom: var(--sp-3);
}
.privacy-consent h4 { color: var(--c-dark); margin-bottom: var(--sp-1); font-size: 15px; }
.privacy-consent ol { list-style: decimal; padding-left: 20px; }
.privacy-consent ol li { margin-bottom: 4px; }
.consent-check { display: flex; align-items: center; gap: 10px; margin-top: var(--sp-2); color: var(--c-dark); font-weight: 600; }
.consent-check input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--c-primary); }

/* 온라인 견적서 빌더 */
.quote-builder { border: 1px solid var(--c-line); border-radius: var(--radius); box-shadow: var(--shadow); padding: var(--sp-3); margin-bottom: var(--sp-6); }
.quote-builder .data-table input[type="number"] { width: 90px; padding: 8px 10px; border: 1px solid #C9D2DD; border-radius: var(--radius-sm); font: inherit; }
.quote-builder .data-table input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--c-primary); }
.quote-error { display: none; color: var(--c-danger); font-size: 14px; margin-top: var(--sp-1); }

/* PDF 캡처용 견적서 문서 (화면 밖 렌더) */
#quote-doc {
  position: absolute; left: -10000px; top: 0; width: 794px; background: #fff; color: #1F2937;
  padding: 48px 56px; font-size: 14px; line-height: 1.6;
}
#quote-doc h1 { font-size: 26px; letter-spacing: 8px; text-align: center; margin-bottom: 8px; }
#quote-doc .qd-line { border-top: 2px solid #1F2937; margin: 16px 0 20px; }
#quote-doc table { width: 100%; border-collapse: collapse; font-size: 13px; }
#quote-doc th, #quote-doc td { border: 1px solid #9AA4B2; padding: 8px 10px; text-align: left; }
#quote-doc thead th { background: #EEF2F7; }
#quote-doc .qd-meta { display: flex; justify-content: space-between; gap: 24px; margin-bottom: 16px; font-size: 13px; }
#quote-doc .qd-foot { margin-top: 24px; font-size: 12px; color: #4B5563; }

/* honeypot (봇 유인용 숨김 필드) — display:none 대신 시각적 숨김 */
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* ---------- 9. 푸터 ---------- */
.site-footer { background: var(--c-dark); color: #B7BEC9; font-size: 14px; margin-top: auto; }
.site-footer .footer-inner { max-width: var(--container); margin: 0 auto; padding: var(--sp-6) var(--sp-3); }
.site-footer .footer-links { display: flex; gap: var(--sp-3); flex-wrap: wrap; margin-bottom: var(--sp-3); }
.site-footer .footer-links a:hover { color: #fff; text-decoration: underline; }
.site-footer .footer-links a.privacy-link { color: #fff; font-weight: 700; }
.site-footer address { font-style: normal; line-height: 1.9; }
.site-footer .copyright { margin-top: var(--sp-3); padding-top: var(--sp-3); border-top: 1px solid #374151; color: #8B93A1; }
/* 메인: 스크롤 없이 하단에 기업정보 푸터 상시 노출 (반투명 오버레이, 컴팩트) */
body.home .site-footer {
  position: relative; z-index: 2; background: rgba(15, 23, 42, .78); font-size: 13px;
}
body.home .site-footer .footer-inner { padding: 12px var(--sp-3); }
body.home .site-footer .footer-links { margin-bottom: 6px; gap: var(--sp-2); }
body.home .site-footer .copyright { margin-top: 6px; padding-top: 6px; border-top-color: rgba(255, 255, 255, .12); }

/* ---------- 10. 반응형 ---------- */
@media (max-width: 1023px) {
  :root { --fs-h1: 34px; --fs-h2: 26px; --fs-h3: 20px; }
  .sub-layout { grid-template-columns: 1fr; gap: var(--sp-4); }

  /* 태블릿/모바일: LNB → 가로 스크롤 탭 */
  .lnb { position: static; }
  .lnb h2 { display: none; }
  .lnb ul { display: flex; overflow-x: auto; gap: 4px; border-bottom: 2px solid var(--c-line); padding-bottom: 0; }
  .lnb a { border-bottom: 3px solid transparent; white-space: nowrap; padding: 12px 16px; }
  .lnb a:hover, .lnb a:focus { padding-left: 16px; }
  .lnb a.active { border-bottom-color: var(--c-primary); }
  .lnb a.active::before { content: ''; }
}

@media (max-width: 767px) {
  :root { --fs-h1: 28px; --fs-h2: 23px; --fs-h3: 19px; --header-h: 60px; }

  /* backdrop-filter가 있는 조상은 fixed 자손(.gnb-wrap)의 기준 박스가 되어
     모바일 전체화면 메뉴가 헤더 높이로 잘리는 버그 발생 → 모바일에선 블러 제거 */
  body.home .site-header { backdrop-filter: none; }

  .nav-toggle { display: block; }

  /* 모바일 전체화면 슬라이드 메뉴 + 아코디언 */
  .gnb-wrap {
    position: fixed; inset: 0; z-index: 200; background: var(--c-white);
    transform: translateX(100%); transition: transform .3s ease;
    overflow-y: auto; padding: calc(var(--header-h) + var(--sp-2)) var(--sp-3) var(--sp-6);
  }
  body.nav-open .gnb-wrap { transform: translateX(0); }
  body.nav-open { overflow: hidden; }

  .gnb { display: block; }
  .gnb > li { border-bottom: 1px solid var(--c-line); }
  .gnb > li > a {
    height: auto; min-height: 56px; padding: 14px 4px;
    font-size: 18px; color: var(--c-dark) !important; justify-content: space-between;
  }
  .gnb > li.has-sub > a::after { content: '+'; font-size: 20px; color: var(--c-secondary); }
  .gnb > li.has-sub.open > a::after { content: '–'; }

  .gnb .dropdown {
    position: static; transform: none; opacity: 1; visibility: visible;
    box-shadow: none; background: var(--c-bg-light); border-radius: var(--radius-sm);
    display: none; margin-bottom: var(--sp-2);
  }
  .gnb > li.open .dropdown { display: block; }
  .gnb > li:hover .dropdown { transform: none; }
  .gnb .dropdown a { padding: 12px 16px; min-height: 44px; display: flex; align-items: center; }

  .page-hero { height: 200px; }
  .hero-cta .btn { width: 100%; }
  .data-table tbody th { width: 120px; }

  /* 모바일 메인 푸터 컴팩트 */
  body.home .site-footer { font-size: 11px; }
  body.home .site-footer .footer-inner { padding: 8px var(--sp-2); }
  body.home .site-footer address { line-height: 1.6; }
  body.home .site-footer .copyright { display: none; }
}
