@charset "utf-8";
/* ==========================================================================
   common.css — 토큰 · 타이포 · 공통 컴포넌트 · GNB · 푸터
   (주)대성케미텍
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. 웹폰트 — Pretendard 로컬 서브셋 (KS X 1001 2,350자)
   -------------------------------------------------------------------------- */
@font-face {
  font-family: 'Pretendard';
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url('/assets/fonts/pretendard/Pretendard-Regular.subset.woff2') format('woff2');
}
@font-face {
  font-family: 'Pretendard';
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  src: url('/assets/fonts/pretendard/Pretendard-Medium.subset.woff2') format('woff2');
}
@font-face {
  font-family: 'Pretendard';
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url('/assets/fonts/pretendard/Pretendard-Bold.subset.woff2') format('woff2');
}

/* --------------------------------------------------------------------------
   2. 디자인 토큰
   -------------------------------------------------------------------------- */
:root {
  /* Color */
  --c-primary:       #2870B8;
  --c-primary-dark:  #1B5488;
  --c-primary-deep:  #123A61;
  --c-footer-bg:     #E4E9EF;   /* 푸터 — 컬러 로고가 읽히는 밝기 (남색 로고 대비 9.5:1) */
  --c-primary-light: #5B9BD5;
  --c-primary-tint:  #E9F2FA;
  --c-accent:        #F5A623;

  --c-gray-900: #111827;
  --c-gray-600: #4B5563;
  --c-gray-300: #D1D5DB;
  --c-gray-50:  #F7F9FB;
  --c-white:    #FFFFFF;

  --grad-primary: linear-gradient(135deg, #2870B8 0%, #123A61 100%);
  --overlay-hero: rgba(18, 58, 97, .55);

  /* Typography */
  --font-base: 'Pretendard', -apple-system, BlinkMacSystemFont,
               'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif;

  --fs-hero:    56px;
  --fs-section: 40px;
  --fs-body:    17px;
  --fs-caption: 14px;

  /* Layout */
  --container:   1320px;
  --gnb-h:      100px;
  --radius-card: 8px;
  --radius-btn:  4px;

  /* Motion */
  --ease: cubic-bezier(.4, 0, .2, 1);

  /* Elevation */
  --shadow-card:  0 2px 12px rgba(17, 24, 39, .06);
  --shadow-hover: 0 12px 32px rgba(18, 58, 97, .14);
  --shadow-gnb:   0 2px 12px rgba(0, 0, 0, .08);
}

@media (max-width: 1023px) {
  :root { --fs-hero: 42px; --fs-section: 32px; --fs-body: 16px; --gnb-h: 72px; }
}
@media (max-width: 767px) {
  :root { --fs-hero: 30px; --fs-section: 26px; --fs-body: 15px; --gnb-h: 56px; }
}

/* --------------------------------------------------------------------------
   3. 기본 타이포 / 레이아웃
   -------------------------------------------------------------------------- */
html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--gnb-h);
}
body {
  font-family: var(--font-base);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.8;
  color: var(--c-gray-600);
  background: var(--c-white);
  word-break: keep-all;
  overflow-wrap: break-word;
  letter-spacing: -.01em;
}
/* 모바일 메뉴 열림 시 배경 스크롤 잠금 */
body.is-locked { overflow: hidden; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 20px;
}

/* 섹션 여백은 이 한 곳에서만 정의 (클래스 간 상쇄 방지) */
section { padding-block: 120px; }
@media (max-width: 1023px) { section { padding-block: 80px; } }
@media (max-width: 767px)  { section { padding-block: 56px; } }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* --------------------------------------------------------------------------
   4. 섹션 헤더 (영문 라벨 + 국문 타이틀 + 리드)
   -------------------------------------------------------------------------- */
.sec-head { margin-bottom: 56px; }
.sec-head.is-center { text-align: center; }

.sec-label {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 700; letter-spacing: .16em;
  color: var(--c-primary);
  margin-bottom: 14px;
}
.sec-label::before {
  content: ''; width: 28px; height: 2px;
  background: var(--c-primary); flex: none;
}
.is-center .sec-label::after {
  content: ''; width: 28px; height: 2px;
  background: var(--c-primary); flex: none;
}

.sec-title {
  font-size: var(--fs-section);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -.03em;
  color: var(--c-gray-900);
}
.sec-title em { color: var(--c-primary); font-style: normal; }

.sec-lead {
  margin-top: 20px;
  max-width: 780px;
  color: var(--c-gray-600);
}
.is-center .sec-lead { margin-inline: auto; }

/* 다크 배경용 */
.is-dark .sec-label,
.is-dark .sec-label::before,
.is-dark .sec-label::after { color: var(--c-primary-light); background-color: var(--c-primary-light); }
.is-dark .sec-label { background: none; }
.is-dark .sec-title { color: var(--c-white); }
.is-dark .sec-lead  { color: rgba(255,255,255,.8); }

@media (max-width: 767px) { .sec-head { margin-bottom: 36px; } }

/* --------------------------------------------------------------------------
   5. 버튼
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 30px;
  font-size: 16px; font-weight: 500; line-height: 1;
  border-radius: var(--radius-btn);
  border: 1px solid transparent;
  transition: background-color .25s var(--ease), color .25s var(--ease),
              border-color .25s var(--ease), transform .25s var(--ease);
}
.btn svg { width: 16px; height: 16px; flex: none; }

.btn-primary { background: var(--c-primary); color: var(--c-white); }
.btn-primary:hover { background: var(--c-primary-dark); }

.btn-ghost { border-color: rgba(255,255,255,.6); color: var(--c-white); }
.btn-ghost:hover { background: var(--c-white); color: var(--c-primary-deep); border-color: var(--c-white); }

.btn-line { border-color: var(--c-gray-300); color: var(--c-gray-900); background: var(--c-white); }
.btn-line:hover { border-color: var(--c-primary); color: var(--c-primary); }

.btn-lg { min-height: 60px; padding: 0 40px; font-size: 18px; }

@media (max-width: 767px) {
  .btn { min-height: 48px; padding: 0 22px; font-size: 15px; }
  .btn-lg { min-height: 52px; padding: 0 28px; font-size: 17px; }
}

/* 텍스트 링크 */
.link-more {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 15px; font-weight: 500; color: var(--c-primary);
  border-bottom: 1px solid currentColor; padding-bottom: 2px;
  transition: gap .25s var(--ease);
}
.link-more:hover { gap: 14px; }

/* --------------------------------------------------------------------------
   6. GNB
   -------------------------------------------------------------------------- */
.gnb {
  position: fixed; inset: 0 0 auto; z-index: 100;
  height: var(--gnb-h);
  background: transparent;
  transition: background-color .3s var(--ease), box-shadow .3s var(--ease);
}
/* 히어로 위에서 로고·메뉴 가독 확보용 미세 딤 */
.gnb::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(0,0,0,.28), rgba(0,0,0,0));
  transition: opacity .3s var(--ease);
}

.gnb-inner {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: space-between;
  height: 100%;
}

.gnb-logo { display: block; flex: none; position: relative; z-index: 2; }
/* 원본이 229x103 이라 레티나(2배) 기준 51.5px 이 상한 — 52px 는 거의 경계값 */
.gnb-logo img { height: 52px; width: auto; }
.gnb .logo-color { display: none; }
@media (max-width: 767px) { .gnb-logo img { height: 36px; } }

/* --- 대메뉴 --- */
.gnb-menu { display: flex; align-items: center; }
.gnb-item { position: relative; width: 180px; }

.gnb-link {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: var(--gnb-h);
  font-size: 20px; font-weight: 500; letter-spacing: -.03em; color: var(--c-white);
  transition: color .25s var(--ease);
}
.gnb-item:hover > .gnb-link,
.gnb-item:focus-within > .gnb-link { color: var(--c-primary); }

/* --- 드롭다운 (AJFF 방식: 헤더 hover 시 전체 컬럼 동시 오픈) --- */
.gnb-mega {
  position: absolute; left: 0; top: 100%;
  width: 100%; height: var(--drop-h, 250px);
  padding-top: 10px;
  border-top: 2px solid transparent;
  opacity: 0; visibility: hidden;
  transition: opacity .22s var(--ease), visibility .22s, border-color .22s var(--ease);
}
.gnb-item:hover > .gnb-mega { border-top-color: var(--c-primary); }

.gnb-mega a {
  display: flex; align-items: center; justify-content: center;
  height: 52px; padding-inline: 12px;
  font-size: 16px; letter-spacing: -.03em; color: var(--c-gray-600); text-align: center;
  transition: color .2s var(--ease), background-color .2s var(--ease);
}
.gnb-mega a:hover { color: var(--c-primary); background: var(--c-primary-tint); font-weight: 500; }

/* 드롭다운 배경판 — 전체 폭 */
.gnb-drop-bg {
  position: absolute; inset: 100% 0 auto; height: 0;
  background: var(--c-white);
  box-shadow: 0 14px 26px rgba(17, 24, 39, .1);
  transition: height .28s var(--ease);
  overflow: hidden;
}

@media (min-width: 1024px) {
  /* is-hoverable : 페이지 로드 직후 커서가 헤더 위에 남아 있어도 드롭다운이
     저절로 열리지 않도록, 실제로 마우스를 움직인 뒤에만 hover 를 허용한다.
     (메뉴를 눌러 이동하면 새 문서에서 :hover 가 즉시 걸리는 문제) */
  .gnb.is-hoverable:hover .gnb-mega,
  .gnb:focus-within .gnb-mega { opacity: 1; visibility: visible; }

  .gnb.is-hoverable:hover .gnb-drop-bg,
  .gnb:focus-within .gnb-drop-bg { height: var(--drop-h, 250px); }

  /* 드롭다운이 열리면 헤더도 흰 배경으로 (히어로 위 투명 상태일 때) */
  .gnb.is-hoverable:hover, .gnb:focus-within { background: var(--c-white); box-shadow: var(--shadow-gnb); }
  .gnb.is-hoverable:hover::before, .gnb:focus-within::before { opacity: 0; }
  .gnb.is-hoverable:hover .logo-white, .gnb:focus-within .logo-white { display: none; }
  .gnb.is-hoverable:hover .logo-color, .gnb:focus-within .logo-color { display: block; }
  .gnb.is-hoverable:hover .gnb-link,  .gnb:focus-within .gnb-link  { color: var(--c-gray-900); }
  .gnb.is-hoverable:hover .gnb-item:hover > .gnb-link,
  .gnb:focus-within .gnb-item:focus-within > .gnb-link { color: var(--c-primary); }
}

/* --- 스크롤 후 고정 상태 --- */
.gnb.is-fixed { background: var(--c-white); box-shadow: var(--shadow-gnb); }
.gnb.is-fixed::before { opacity: 0; }
.gnb.is-fixed .logo-white { display: none; }
.gnb.is-fixed .logo-color { display: block; }
.gnb.is-fixed .gnb-link  { color: var(--c-gray-900); }
.gnb.is-fixed .gnb-item:hover > .gnb-link,
.gnb.is-fixed .gnb-item:focus-within > .gnb-link { color: var(--c-primary); }
.gnb.is-fixed .gnb-toggle span,
.gnb.is-fixed .gnb-toggle span::before,
.gnb.is-fixed .gnb-toggle span::after { background: var(--c-gray-900); }

/* --- 햄버거 --- */
.gnb-toggle {
  display: none; position: relative; z-index: 2;
  width: 44px; height: 44px; margin-right: -10px;
}
.gnb-toggle span,
.gnb-toggle span::before,
.gnb-toggle span::after {
  position: absolute; left: 11px; width: 22px; height: 2px;
  background: var(--c-white); border-radius: 2px;
  transition: background-color .25s var(--ease), transform .3s var(--ease), opacity .2s;
}
.gnb-toggle span { top: 21px; }
.gnb-toggle span::before { content: ''; left: 0; top: -7px; }
.gnb-toggle span::after  { content: ''; left: 0; top:  7px; }

.gnb-toggle.is-open span { background: transparent !important; }
.gnb-toggle.is-open span::before { transform: translateY(7px) rotate(45deg);  background: var(--c-gray-900); }
.gnb-toggle.is-open span::after  { transform: translateY(-7px) rotate(-45deg); background: var(--c-gray-900); }

/* --------------------------------------------------------------------------
   7. GNB — 태블릿 / 모바일
   -------------------------------------------------------------------------- */
@media (max-width: 1023px) {
  .gnb-toggle { display: block; }
  .gnb-drop-bg { display: none; }

  .gnb-nav {
    position: fixed; inset: 0 0 0 auto;
    width: min(400px, 88vw);
    padding: calc(var(--gnb-h) + 20px) 0 40px;
    background: var(--c-white);
    transform: translateX(100%);
    transition: transform .35s var(--ease);
    overflow-y: auto;
    overscroll-behavior: contain;
    box-shadow: -8px 0 40px rgba(0,0,0,.12);
  }
  .gnb-nav.is-open { transform: translateX(0); }

  .gnb-dim {
    position: fixed; inset: 0; background: rgba(17,24,39,.5);
    opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility .35s;
  }
  .gnb-dim.is-open { opacity: 1; visibility: visible; }

  .gnb-menu { display: block; }
  .gnb-item { width: auto; border-bottom: 1px solid var(--c-gray-300); }

  .gnb-link {
    width: 100%; height: auto; min-height: 60px; padding: 0 24px;
    font-size: 18px; font-weight: 700; color: var(--c-gray-900);
    justify-content: space-between;
  }
  .gnb.is-fixed .gnb-link { color: var(--c-gray-900); }

  /* 아코디언 화살표 */
  .gnb-item.has-sub > .gnb-link::after {
    content: ''; width: 9px; height: 9px; flex: none;
    border-right: 2px solid var(--c-gray-600);
    border-bottom: 2px solid var(--c-gray-600);
    transform: rotate(45deg) translate(-2px, -2px);
    transition: transform .3s var(--ease);
  }
  .gnb-item.is-open > .gnb-link::after { transform: rotate(-135deg) translate(-2px, -2px); }

  .gnb-mega {
    position: static; width: auto; height: auto;
    opacity: 1; visibility: visible;
    padding: 0; border-top: 0;
    max-height: 0; overflow: hidden;
    background: var(--c-gray-50);
    transition: max-height .35s var(--ease);
  }
  .gnb-item.is-open > .gnb-mega { max-height: 400px; }
  .gnb-mega a {
    height: auto; min-height: 48px; padding: 13px 24px;
    justify-content: flex-start; text-align: left; font-size: 16px;
  }
}

/* --------------------------------------------------------------------------
   8. 푸터
   -------------------------------------------------------------------------- */
.footer {
  background: var(--c-footer-bg);
  color: var(--c-gray-600);
  font-size: 15px;
  line-height: 1.9;
}
.footer a { transition: color .2s var(--ease); }
.footer a:hover { color: var(--c-primary); }

.footer-top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px; flex-wrap: wrap;
  padding-block: 40px;
  border-bottom: 1px solid #C9D2DC;
}
/* 상단 GNB 로고와 같은 크기 */
.footer-logo img { height: 48px; width: auto; }
@media (max-width: 767px) { .footer-logo img { height: 36px; } }


.footer-bottom { padding-block: 36px 48px; }
.footer-info { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 14px; }
.footer-info dt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.footer-info dd { display: flex; align-items: center; gap: 8px; }
.footer-info dd b { font-weight: 500; color: #7C8697; }

.footer-policy { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; font-size: 15px; }
/* 개인정보보호법 시행령상 '개인정보처리방침' 은 다른 항목과 구분되게 표시해야 한다 */
.footer-policy .is-strong { font-weight: 700; color: var(--c-gray-900); }

.footer-copy {
  margin-top: 22px; font-size: 13px; letter-spacing: .02em;
  color: #7C8697;
}
.footer .is-todo { color: #B07A08; }

@media (max-width: 767px) {
  .footer-top { padding-block: 32px; gap: 20px; }
  .footer-bottom { padding-block: 26px 40px; }
  .footer-policy { gap: 8px 20px; font-size: 14px; }
  .footer-info { flex-direction: column; gap: 2px; }
}

/* --------------------------------------------------------------------------
   9. TOP 버튼 / 모바일 고정 바
   -------------------------------------------------------------------------- */
.btn-top {
  position: fixed; right: 28px; bottom: 28px; z-index: 90;
  width: 52px; height: 52px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--c-primary-deep); color: var(--c-white);
  font-size: 11px; font-weight: 700; letter-spacing: .06em;
  box-shadow: 0 6px 20px rgba(18,58,97,.3);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .3s var(--ease), transform .3s var(--ease),
              visibility .3s, background-color .25s var(--ease);
}
.btn-top.is-show { opacity: 1; visibility: visible; transform: translateY(0); }
.btn-top:hover { background: var(--c-primary); }

@media (max-width: 767px) {
  .btn-top { right: 16px; bottom: 76px; width: 46px; height: 46px; }
}

/* 모바일 하단 고정 바 */
.m-bar { display: none; }
@media (max-width: 767px) {
  .m-bar {
    position: fixed; inset: auto 0 0; z-index: 95;
    display: grid; grid-template-columns: repeat(3, 1fr);
    background: var(--c-white);
    box-shadow: 0 -2px 14px rgba(0,0,0,.1);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .m-bar a {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 4px; min-height: 58px;
    font-size: 12px; font-weight: 500; color: var(--c-gray-900);
  }
  .m-bar a + a { border-left: 1px solid var(--c-gray-300); }
  .m-bar svg { width: 19px; height: 19px; stroke: var(--c-primary); }
}

/* --------------------------------------------------------------------------
   10. 스크롤 진입 모션
   -------------------------------------------------------------------------- */
/* .js 스코프 — 스크립트가 막히거나 실패해도 콘텐츠는 항상 보인다 */
.js [data-reveal] {
  opacity: 0; transform: translateY(30px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }
[data-reveal-stagger] > * { transition-delay: calc(var(--i, 0) * .12s); }

/* --------------------------------------------------------------------------
   11. 모션 최소화 환경
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   12. 정책 레이어 모달
   -------------------------------------------------------------------------- */
.modal {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.modal-dim {
  position: absolute; inset: 0;
  background: rgba(17, 24, 39, .6);
  opacity: 0; transition: opacity .22s var(--ease);
}
.modal.is-open .modal-dim { opacity: 1; }

.modal-box {
  position: relative;
  width: 100%; max-width: 860px;
  max-height: min(86vh, 860px);
  display: flex; flex-direction: column;
  background: var(--c-white);
  border-radius: 10px;
  box-shadow: 0 24px 70px rgba(17, 24, 39, .28);
  opacity: 0; transform: translateY(16px) scale(.98);
  transition: opacity .22s var(--ease), transform .22s var(--ease);
}
.modal.is-open .modal-box { opacity: 1; transform: none; }

.modal-head {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px 26px; flex: none;
  border-bottom: 1px solid var(--c-gray-300);
}
.modal-head h2 {
  font-size: 21px; font-weight: 700; letter-spacing: -.03em;
  color: var(--c-gray-900);
}
.modal-close {
  width: 44px; height: 44px; margin-right: -10px; flex: none;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; color: var(--c-gray-600);
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.modal-close svg { width: 22px; height: 22px; }
.modal-close:hover { background: var(--c-gray-50); color: var(--c-gray-900); }

.modal-body {
  padding: 30px 26px 36px;
  overflow-y: auto; overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.modal-body:focus { outline: none; }
/* 모달 안에서는 첫 조항 위 여백을 줄인다 */
.modal-body .legal-intro { margin-bottom: 34px; }
.modal-body .legal-art:first-of-type { padding-top: 0; }

@media (max-width: 767px) {
  .modal { padding: 0; }
  .modal-box { max-width: none; max-height: 100%; height: 100%; border-radius: 0; }
  .modal-head { padding: 16px 18px; }
  .modal-head h2 { font-size: 18px; }
  .modal-body { padding: 22px 18px 40px; }
}

@media (prefers-reduced-motion: reduce) {
  .modal-dim, .modal-box { transition: none; }
}

/* --------------------------------------------------------------------------
   찾아오시는 길 — 랜딩 섹션과 서브페이지가 함께 쓴다
   -------------------------------------------------------------------------- */
.loc-heading {
  position: relative;
  padding-left: 16px; margin-bottom: 24px;
  font-size: 22px; font-weight: 700; letter-spacing: -.02em;
  color: var(--c-gray-900);
}
.loc-heading::before {
  content: ''; position: absolute; left: 0; top: 4px; bottom: 4px;
  width: 4px; border-radius: 2px; background: var(--c-primary);
}

/* --- 지도 --- */
.map-area {
  width: 100%; height: 480px;
  border: 1px solid var(--c-gray-300);
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--c-gray-50);
}
.map-area.is-fallback {
  display: flex; align-items: center; justify-content: center;
  background:
    repeating-linear-gradient(45deg, #F7F9FB 0 14px, #F1F4F8 14px 28px);
}
.map-fallback { text-align: center; padding: 24px; }
.map-fallback svg { width: 46px; height: 46px; margin: 0 auto 18px; color: var(--c-primary-light); }
.map-fallback-addr { font-size: 18px; font-weight: 700; color: var(--c-gray-900); letter-spacing: -.02em; }
.map-fallback-note { margin-top: 10px; font-size: 14px; color: #9AA3AF; }

/* --- 정보 패널 --- */
.loc-panel {
  display: grid; grid-template-columns: 300px 1fr;
  margin-top: -1px;
  border: 1px solid var(--c-gray-300);
  border-radius: 0 0 var(--radius-card) var(--radius-card);
  overflow: hidden;
}
.loc-side {
  padding: 34px 30px;
  background: var(--c-gray-50);
  border-right: 1px solid var(--c-gray-300);
}
.loc-side-label {
  font-size: 12px; font-weight: 700; letter-spacing: .18em;
  color: var(--c-primary); margin-bottom: 8px;
}
.loc-side-title {
  font-size: 24px; font-weight: 700; letter-spacing: -.03em;
  color: var(--c-gray-900); margin-bottom: 24px;
}
.loc-btns { display: flex; flex-direction: column; gap: 10px; }   /* 버튼이 2개 이상이어도 눌리지 않게 */
.loc-btns .btn { width: 100%; gap: 10px; min-height: 50px; padding: 0 18px; font-size: 15px; }
.loc-btns .btn svg { width: 17px; height: 17px; flex: none; }

/* 항목 수가 적어 왼쪽 패널보다 짧아지면 아래쪽에만 빈 공간이 생긴다.
   세로 가운데 정렬로 위·아래 여백을 같게 맞춘다. */
.loc-info {
  display: flex; flex-direction: column; justify-content: center;
  padding: 12px 34px; background: var(--c-white);
}
.loc-info > div {
  display: flex; align-items: flex-start; gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid #EDF0F4;
}
.loc-info > div:last-child { border-bottom: 0; }
.loc-info dt {
  flex: none; width: 96px;
  font-size: 15px; font-weight: 700; color: var(--c-gray-900);
}
.loc-info dd { font-size: 16px; line-height: 1.7; color: var(--c-gray-600); }
.loc-info dd a { color: var(--c-primary); font-weight: 500; }
.loc-info dd a:hover { text-decoration: underline; }
/* 전화번호는 링크지만 정보로 읽히는 편이 자연스러워 본문 색으로 둔다 */
.loc-info dd a[href^="tel:"] { color: var(--c-gray-900); }
.loc-zip { font-size: 14px; color: #9AA3AF; }
.loc-info .is-todo { color: #C2870B; font-weight: 500; }

/* --- 랜딩 요약 패널 — 두 항목이 정보 열을 정확히 반씩 나눠 갖고 각자 세로 가운데 정렬 --- */
.location .loc-info > div { flex: 1 1 0; align-items: center; }

@media (max-width: 1023px) {
  .map-area { height: 380px; }
  .loc-panel { grid-template-columns: 1fr; }
  .loc-side { border-right: 0; border-bottom: 1px solid var(--c-gray-300); }
  .loc-btns .btn { max-width: 320px; }
}
@media (max-width: 767px) {
  .loc-heading { font-size: 18px; margin-bottom: 16px; }
  .map-area { height: 280px; }
  .loc-side { padding: 24px 20px; }
  .loc-side-title { font-size: 20px; margin-bottom: 18px; }
  .loc-btns .btn { max-width: none; }
  .loc-info { padding: 6px 20px; }
  .loc-info > div { flex-direction: column; gap: 4px; padding: 14px 0; }
  /* 모바일은 세로 배치라 반반 분할·가운데 정렬을 해제한다 */
  .location .loc-info > div { flex: none; align-items: flex-start; }
  .loc-info dt { width: auto; font-size: 13px; color: var(--c-primary); }
  .loc-info dd { font-size: 15px; }
}

/* --------------------------------------------------------------------------
   부품 위치 도면 — 랜딩 «주요 생산 품목» 과 제품소개 페이지가 함께 쓴다

   도면 이미지에는 지시선·연결점·글자가 모두 그려져 있다. 아무것도 덧그리지 않고
   글자 위에 «보이지 않는» 클릭 영역만 얹는다.
   -------------------------------------------------------------------------- */
.prd-map { container-type: inline-size; }
.pm-hots { position: absolute; inset: 0; }

/* 투명 클릭 영역 — 도면 위 글자를 덮기만 하고 아무것도 그리지 않는다.
   커서만 손가락으로 바뀌어 누를 수 있다는 걸 알린다. */
.pm-hot {
  position: absolute; display: block;
  background: transparent; cursor: pointer;
}
.pm-hot span {                      /* 글자는 이미지에 있다 — 여긴 스크린리더용 */
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
/* 키보드로 이동할 때는 어디에 있는지 보여야 한다 (마우스 호버에는 안 뜬다) */
.pm-hot:focus-visible {
  outline: 2px solid var(--c-primary); outline-offset: 2px;
}
/* 랜딩 «주요 생산 품목» 의 도면은 안내용 — 이동은 아래 «자세히 보기» 버튼이 맡는다 */
.pm-hot.is-static { pointer-events: none; }


/* --------------------------------------------------------------------------
   12-2. 이미지 확대 모달 (lightbox.js)
   .modal 의 딤·전환을 그대로 쓰고, 상자만 «이미지 한 장»에 맞게 둔다.
   -------------------------------------------------------------------------- */
.lb-box {
  position: relative;
  max-width: min(1100px, 92vw);
  max-height: 88vh;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  opacity: 0; transform: scale(.97);
  transition: opacity .22s var(--ease), transform .22s var(--ease);
}
.modal.is-open .lb-box { opacity: 1; transform: none; }
.lb-box img {
  display: block; max-width: 100%; max-height: 80vh;
  width: auto; height: auto;
  border-radius: 8px; background: var(--c-white);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .45);
}
.lb-cap {
  font-size: 15px; color: rgba(255, 255, 255, .92); text-align: center;
}
.lb-close {
  position: absolute; top: -46px; right: -6px;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; color: var(--c-white);
  background: rgba(255, 255, 255, .14);
  transition: background-color .2s var(--ease);
}
.lb-close:hover { background: rgba(255, 255, 255, .28); }
.lb-close svg { width: 20px; height: 20px; }
.lb-close:focus-visible { outline: 2px solid var(--c-white); outline-offset: 2px; }

@media (max-width: 767px) {
  .lb-box { max-width: 94vw; }
  .lb-close { top: -44px; right: 0; }
  .lb-cap { font-size: 14px; }
}

/* 확대 모달 — 이미지가 아직 없을 때의 안내 */
.lb-empty { display: none; }
.modal.is-empty .lb-img { display: none; }
.modal.is-empty .lb-empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; width: min(720px, 88vw); aspect-ratio: 4 / 3;
  border: 2px dashed rgba(255, 255, 255, .38); border-radius: 10px;
  /* 뒤 페이지가 비쳐 보이면 글자가 읽히지 않는다 — 불투명하게 채운다 */
  background: #1B2129;
}
.modal.is-empty .lb-empty span {
  font-size: 20px; font-weight: 700; color: rgba(255, 255, 255, .92);
}
.modal.is-empty .lb-empty em {
  font-style: normal; font-size: 15px; color: rgba(255, 255, 255, .62);
}

/* --------------------------------------------------------------------------
   도면 부위 호버 강조 (2026-09-10)

   부위마다 «투명 배경 PNG» 를 도면 위 같은 자리에 겹쳐 두고, 라벨에 마우스를
   올리면 그 한 장만 켠다. 이미지라서 도면에 그려진 외곽선과 경계가 정확히 맞다.
   좌표는 % 라 화면 크기와 무관하며, pointer-events 를 꺼서 링크를 가리지 않는다.
   -------------------------------------------------------------------------- */
.pm-marks { position: absolute; inset: 0; pointer-events: none; }
.pm-mark {
  position: absolute; display: block;
  opacity: 0; transition: opacity .18s var(--ease);
  will-change: opacity;
}
.pm-mark.is-on { opacity: 1; }


/* 라벨 자체에는 아무것도 그리지 않는다 — 도면에 이미 글자가 있고,
   배경을 깔면 «글자 위에 상자» 가 덧씌워진 것처럼 보인다 (사용자 요청). */

/* 모션을 줄이도록 설정한 사용자에게는 전환을 없앤다 */
@media (prefers-reduced-motion: reduce) {
  .pm-mark { transition: none; }
}
