/* =========================================================
   CAPRO 시안 v2 — 대동기어 레퍼런스 구조 + CAPRO 브랜드
   디자인 토큰은 02_기획 디자인방향 v1 기준
   ========================================================= */
:root {
  --red: #d81f26;        /* Brand Red */
  --ink: #1a1d21;        /* 본문/제목 */
  --steel: #41484f;      /* 보조 텍스트 (가독성 위해 진하게) */
  --surface: #f5f6f8;    /* 배경 */
  --white: #ffffff;
  --line: #e3e6ea;       /* 구분선 */
  --dark: #14181d;       /* 다크 섹션 */

  --maxw: 1520px;        /* 콘텐츠 최대폭 */
  --pad: 60px;           /* 데스크탑 좌우 여백 (헤더 기준 60px) */
  --header-h: 100px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
html, body { overflow-x: clip; }   /* 가로 스크롤 방지 (clip: sticky 안 깨짐) */
/* 가로 스크롤 영역 시스템 스크롤바 숨김 */
.ps-nav { scrollbar-width: none; -ms-overflow-style: none; }
.ps-nav::-webkit-scrollbar { display: none; width: 0; height: 0; }

body {
  margin: 0;
  font-family: 'Pretendard', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 18px;          /* 본문 17~18px (40~50대 가독성) */
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;        /* 한국어: 단어 단위 줄바꿈(어절 안 끊김) */
  overflow-wrap: break-word;   /* 긴 단어/URL은 예외적으로 분리 */
}

a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
/* 버튼/폼 요소는 기본적으로 폰트를 상속하지 않음 → Pretendard 강제 상속 */
button, input, select, textarea { font-family: inherit; }

/* ---------- 공통 컨테이너 ---------- */
.section-head { max-width: var(--maxw); margin: 0 auto 44px; }
.section-head.row {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
}
.section-label {
  display: inline-block;
  font-size: 1rem; font-weight: 500; letter-spacing: 0;
  color: var(--red); margin-bottom: 18px;   /* 2번째(About) 섹션 eyebrow→title 간격과 통일 */
}
.section-label.light { color: rgba(255,255,255,0.7); }

h2 {
  font-size: clamp(1.6rem, 5vw, 2.8rem);
  line-height: 1.18; font-weight: 800; letter-spacing: -0.02em;
}
h3 { font-size: 1.3rem; font-weight: 700; letter-spacing: -0.01em; }

.text-link {
  display: inline-block; font-weight: 700; color: var(--ink);
  border-bottom: 2px solid var(--red); padding-bottom: 2px;
  transition: color .2s ease;
}
.text-link:hover { color: var(--red); }

/* ---------- 버튼 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 26px;
  border-radius: 6px; font-weight: 700; font-size: 1rem;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
  white-space: nowrap;
}
.btn.sm { min-height: 42px; padding: 0 18px; font-size: 0.92rem; }
.btn:hover { transform: translateY(-2px); }
.btn-solid { background: var(--red); color: #fff; }
.btn-solid:hover { background: #b81920; }
.btn-line  { border: 1.5px solid var(--line); color: var(--ink); background: #fff; }
.btn-line:hover { border-color: var(--ink); }
.btn-ghost { border: 1.5px solid rgba(255,255,255,0.45); color: #fff; }
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,0.08); }

/* =========================================================
   SiteHeader
   ========================================================= */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--header-h);
  border-bottom: 1px solid rgba(119,119,119,0.5);
  transition: background .25s ease, border-color .25s ease;
}
.site-header.scrolled {
  background: rgba(0,0,0,0.4);          /* 스크롤 20px↑ 시 배경 */
  border-bottom-color: rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
}
.header-inner {
  max-width: 100%; height: 100%;
  padding: 0 var(--pad);                /* 좌우 60px */
  display: flex; align-items: center; justify-content: space-between;
}
.logo {
  color: #fff; font-weight: 800; font-size: 1.45rem; letter-spacing: -0.03em;
  display: inline-flex; align-items: center;
}
.logo img { height: 34px; width: auto; display: block; transform: translateY(-6px); }/* 로고 시각 무게중심 보정(상단 여백 상쇄) */
.main-nav { align-self: stretch; display: flex; align-items: stretch; gap: 56px; transition: gap .3s ease; }
.nav-item { position: relative; display: flex; align-items: center; }
.nav-item > a {
  color: #fff; font-size: 18px; font-weight: 600; opacity: 0.92;
  transition: color .25s ease, opacity .2s ease;
}

.nav-item:hover > a, .nav-item:focus-within > a { color: var(--red); }

/* 네비바 hover 시 헤더 배경 흰색 + 텍스트 다크로 전환 */
.site-header:hover,
.site-header:focus-within { background: #fff; border-bottom-color: var(--line); backdrop-filter: none; }
.site-header:hover .nav-item > a,
.site-header:focus-within .nav-item > a,
.site-header:hover .lang-btn,
.site-header:focus-within .lang-btn { color: var(--ink); opacity: 1; }
.site-header:hover .nav-item:hover > a,
.site-header:focus-within .nav-item:focus-within > a { color: var(--red); }
/* 밝은 배너(목걸이 랜턴) 노출 중: 투명 헤더의 흰 글자·아이콘이 안 보이므로 어두운 색으로 전환
   (스크롤로 어두운 배경이 깔리면 .scrolled 규칙이 다시 우선) */
.site-header.on-light:not(.scrolled) .nav-item > a,
.site-header.on-light:not(.scrolled) .lang-btn,
.site-header.on-light:not(.scrolled) .search-toggle { color: var(--ink); opacity: 1; }
.site-header.on-light:not(.scrolled) { border-bottom-color: rgba(20,24,29,0.18); }
.site-header.on-light:not(.scrolled) .hamburger span { background: var(--ink); }

/* 2뎁스 드롭다운 (네비 hover 시 하위 메뉴 패널) */
.dropdown {
  position: absolute; top: 100%; left: 50%;
  transform: translateX(-50%) translateY(6px);
  min-width: 168px; padding: 12px 8px;
  background: #fff; border: 1px solid var(--line); border-radius: 0 0 12px 12px;
  box-shadow: 0 10px 26px rgba(0,0,0,0.07);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
  z-index: 120;
}
.nav-item:hover > .dropdown, .nav-item:focus-within > .dropdown {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.dropdown a {
  display: block; padding: 10px 16px; color: var(--steel); text-align: center;
  font-size: 1rem; font-weight: 600; white-space: nowrap;
  border-radius: 8px; transition: color .15s ease, background .15s ease;
}
.dropdown a:hover { color: var(--red); background: var(--surface); }
/* 제품소개(11개) 드롭다운은 2열로 압축 */
.main-nav .nav-item:nth-child(2) .dropdown {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2px 6px; min-width: 312px;
}
.header-actions { display: flex; align-items: center; gap: 14px; }

/* 언어 선택 (지구본 아이콘 + 드롭다운) */
.lang-select { position: relative; }
.lang-btn {
  display: flex; align-items: center; justify-content: center; width: 40px; height: 40px;
  border: none; background: transparent; color: #fff; cursor: pointer; border-radius: 8px;
  transition: color .2s ease, background .2s ease;
}
.lang-btn svg { width: 22px; height: 22px; }
.lang-btn:hover { background: rgba(255,255,255,0.14); }
.lang-menu {
  position: absolute; top: calc(100% + 14px); right: 0; min-width: 148px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 18px 44px rgba(20,24,29,0.18); padding: 7px; z-index: 60;
}
.lang-menu[hidden] { display: none; }
.lang-menu a {
  display: block; padding: 11px 16px; border-radius: 8px;
  font-size: 0.95rem; font-weight: 600; color: var(--ink);
}
.lang-menu a:hover { background: var(--surface); }
.lang-menu a.active { color: var(--red); font-weight: 700; }

/* 햄버거 (≤1024px에서만 노출) */
.hamburger {
  display: none; width: 44px; height: 44px; border: 0; background: transparent;
  cursor: pointer; flex-direction: column; align-items: center; justify-content: center;
  gap: 5px; padding: 0; z-index: 130;
}
.hamburger span {
  display: block; width: 24px; height: 2px; background: #fff; border-radius: 2px;
  transition: transform .22s ease, opacity .18s ease;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* 모바일 슬라이드 패널 */
.mobile-nav {
  position: fixed; top: 0; right: 0; height: 100vh; height: 100dvh; width: min(320px, 82vw);
  background: #fff; z-index: 120; padding: 84px 28px 32px;
  display: flex; flex-direction: column; gap: 6px;
  box-shadow: -12px 0 40px rgba(20,24,29,0.14);
  transform: translateX(100%); display: none;   /* 닫힘: display:none으로 오버플로 차단(JS가 슬라이드용 display 제어) */
  transition: transform .3s cubic-bezier(.2,.9,.2,1);
}
body.nav-open .mobile-nav { transform: translateX(0); }
.mobile-nav { overflow-y: auto; }
/* 2뎁 아코디언 */
.mnav-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; width: 100%; }
.mnav-item { border-bottom: 1px solid var(--line); }
.mnav-top {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  background: none; border: 0; padding: 15px 4px; cursor: pointer; text-align: left;
  font-size: 1.1rem; font-weight: 700; color: var(--ink);
}
.mnav-caret { display: flex; color: var(--steel); transition: transform .25s ease; }
.mnav-caret svg { width: 18px; height: 18px; display: block; }
.mnav-top[aria-expanded="true"] .mnav-caret { transform: rotate(180deg); }
.mnav-sub { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.mnav-item.open .mnav-sub { max-height: 560px; }
.mnav-sub a { display: block; padding: 11px 4px 11px 14px; font-size: 1rem; font-weight: 500; color: var(--steel); }
.mnav-sub a:first-child { padding-top: 2px; }
.mnav-sub a:last-child { padding-bottom: 16px; }
.mnav-sub a:hover { color: var(--red); }
/* 언어 변경 */
.mnav-lang { margin-top: auto; align-self: flex-start; display: inline-flex; padding-top: 24px; }
.mnav-lang-btn { flex: 0 0 auto; padding: 7px 16px; border: 1px solid var(--line); background: #fff; font-size: 0.85rem; font-weight: 600; color: var(--steel); cursor: pointer; transition: border-color .15s ease, color .15s ease, background .15s ease; }
.mnav-lang-btn:first-child { border-radius: 999px 0 0 999px; }
.mnav-lang-btn:last-child { border-radius: 0 999px 999px 0; border-left: 0; }
.mnav-lang-btn.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.mobile-nav-close {
  position: absolute; top: 20px; right: 20px; width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  border: 0; background: none; color: var(--ink); cursor: pointer; border-radius: 8px;
  transition: background .15s ease;
}
.mobile-nav-close:hover { background: rgba(20,24,29,0.06); }
.mobile-nav-close svg { width: 26px; height: 26px; display: block; }
.mobile-nav-actions { display: flex; flex-direction: column; gap: 12px; margin-top: 24px; }
.nav-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 110; }

/* =========================================================
   HeroSection (100vh 풀스크린)
   ========================================================= */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end;
  color: #fff; overflow: hidden; background: var(--ink);
  padding-bottom: 120px;
  /* 기본 배경 = 1번 슬라이드(차량용 LED 등화장치)와 동일 — JS 렌더 전 깜빡임 방지 */
  --hero-img: url('images/hero-truck.jpg');
  --hero-img-m: url('images/hero-truck-m.jpg');
  --hero-pos: center bottom;
}
/* 배경 이미지 레이어 — 느린 켄번스 줌 */
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: 0;
  /* 슬라이드별 크롭 기준(--hero-pos)·사이징(--hero-size)·여백색(--hero-bg):
     목걸이 랜턴은 높이 고정(auto 100%) — 넓은 화면에선 잘림 없이 좌우 여백이 늘어남 */
  background: var(--hero-img) var(--hero-pos, center) / var(--hero-size, cover) no-repeat;
  background-color: var(--hero-bg, transparent);
  transform-origin: center;
  animation: heroKenBurns 20s ease-in-out infinite alternate;
}
/* 초광폭(2000px+)에서는 슬라이드별 확대 사이즈(--hero-size-xl) 적용 */
@media (min-width: 2000px) {
  .hero::before { background-size: var(--hero-size-xl, var(--hero-size, cover)); background-position: var(--hero-pos-xl, var(--hero-pos, center)); }
}
/* 가독성 그라데이션 오버레이 */
.hero::after {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(15,18,22,0.28) 0%, rgba(15,18,22,0.6) 100%);
  display: none; /* 임시 숨김 (요청) */
}
/* 어두운 사진 슬라이드(PC) 본문 가독용 좌측 스크림 — 밝은 슬라이드(hero-s0)는 제외 */
.hero:not(.hero-s0)::after {
  display: block;
  background: linear-gradient(90deg, rgba(10,13,18,0.55) 0%, rgba(10,13,18,0.28) 34%, rgba(10,13,18,0) 62%);
}
.hero:not(.hero-s0) .hero-copy { text-shadow: 0 1px 14px rgba(0,0,0,0.45); }
@keyframes heroKenBurns {
  from { transform: scale(1); }
  to   { transform: scale(1.12); }
}
.hero-content {
  position: relative; z-index: 2;
  max-width: var(--maxw); width: 100%; margin: 0 auto; padding: 0 var(--pad);
  text-align: left;
}
.hero-logo { height: 50px; width: auto; margin-bottom: 30px; }
.hero h1 {
  font-size: clamp(1.9rem, 6.5vw, 4.4rem); line-height: 1.2;
  font-weight: 800; letter-spacing: -0.03em; margin-bottom: 24px;
}
.hero-copy {
  max-width: 560px; font-size: 20px; line-height: 1.6;
  color: rgba(255,255,255,0.9); margin: 0 0 36px;
}
.hero-btn { min-height: 52px; padding: 0 32px; font-size: 1rem; }

/* 슬라이드 인디케이터 (진행 바 동작) */
.hero-pager { display: flex; align-items: center; gap: 16px; margin-top: 56px; }
.hero-pager .hp-item {
  display: flex; align-items: center; gap: 16px; background: none; border: none; cursor: pointer;
  color: rgba(255,255,255,0.45); font-size: 1.05rem; font-weight: 700; letter-spacing: 0.02em;
  padding: 0; transition: color .25s ease;
}
.hero-pager .hp-item.active { color: #fff; }
.hero-pager .hp-line { width: 0; height: 2px; background: rgba(255,255,255,0.28); position: relative; overflow: hidden; transition: width .4s ease; }
.hero-pager .hp-item.active .hp-line { width: 130px; }
.hero-pager .hp-line i {
  position: absolute; inset: 0; background: #fff; transform-origin: left center; transform: scaleX(0);
}
.hero-pager .hp-item.active .hp-line i { animation: hpFill 6s linear forwards; }
@keyframes hpFill { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* 1번 슬라이드(목걸이 랜턴 — 밝은 배경) 전용: 텍스트를 어두운 색으로 전환 */
.hero h1, .hero-copy { transition: color .35s ease; }
.hero.hero-s0 h1 { color: var(--ink); }
.hero.hero-s0 .hero-copy { color: rgba(20, 24, 29, 0.75); }
.hero.hero-s0 .hero-pager .hp-item { color: rgba(20, 24, 29, 0.4); }
.hero.hero-s0 .hero-pager .hp-item.active { color: var(--ink); }
.hero.hero-s0 .hero-pager .hp-line { background: rgba(20, 24, 29, 0.22); }
.hero.hero-s0 .hero-pager .hp-line i { background: var(--ink); }


/* 모바일: 다크 스크림 대신 밝은 스크림 — 텍스트 뒤 제품을 살짝 걷어내 어두운 글자 가독 확보 */
@media (max-width: 1024px) {
  .hero.hero-s0::after {
    background: linear-gradient(to top,
      rgba(244, 246, 248, 0.94) 0%, rgba(244, 246, 248, 0.8) 18%,
      rgba(244, 246, 248, 0.3) 34%, transparent 46%);
  }
}

/* 슬라이드 전환 모션 — 최초 로딩과 동일한 등장(스태거).
   별도 키프레임명(heroReplay)으로 두어 토글 시 확실히 재시작되게 함 */
@keyframes heroReplay { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
.hero .hero-anim { animation: heroReplay .8s cubic-bezier(.2,.7,.2,1) both; }
.hero h1.hero-anim        { animation-delay: 0s; }
.hero .hero-copy.hero-anim { animation-delay: .12s; }
.hero .hero-btn.hero-anim  { animation-delay: .24s; }

/* =========================================================
   TrustStats (신뢰 바)
   ========================================================= */
.trust-bar { background: var(--ink); }
.trust-grid {
  max-width: var(--maxw); margin: 0 auto; padding: 36px var(--pad);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.trust-grid .stat { text-align: center; color: #fff; }
.trust-grid strong { display: block; font-size: clamp(1.35rem, 4.5vw, 1.7rem); font-weight: 800; letter-spacing: -0.02em; }
.trust-grid span { font-size: 0.95rem; color: rgba(255,255,255,0.65); }

/* =========================================================
   Intro
   ========================================================= */
/* About + 신뢰 지표 (좌 텍스트 + 우 풀블리드 벤토) */
.about { background: #fff; }
.about-split { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; }

/* 좌측 텍스트 — 사이트 컨테이너 좌측에 정렬, 세로 중앙 */
.about-text {
  align-self: center;
  padding: 90px clamp(36px, 5vw, 80px) 90px
    max(var(--pad), calc((100vw - var(--maxw)) / 2 + var(--pad)));
}
.about-eyebrow { color: var(--red); font-size: 1.15rem; font-weight: 500; letter-spacing: -0.01em; margin-bottom: 18px; }
.about-text h2 {
  font-size: clamp(2rem, 3.2vw, 2.9rem); font-weight: 900; line-height: 1.28;
  letter-spacing: -0.03em; color: var(--ink); margin-bottom: 22px;
}
.about-sub { color: var(--steel); font-size: 1.2rem; line-height: 1.6; max-width: 460px; }

/* 우측 벤토 — 2칸(상) + 와이드(하), 화면 오른쪽 끝까지 풀블리드 */
.about-panels {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 1fr;
}
.ap { position: relative; overflow: hidden; min-height: 300px; }
.ap-wide { grid-column: span 2; min-height: 360px; }
.ap-light { background: #f1eced; }
.ap-inner { position: relative; z-index: 2; padding: 48px; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; }
/* 와이드(파트너) 카드: 큰 숫자 라인박스가 없어 콘텐츠가 더 붙어 보여 → 하단 여백 상단 카드와 시각적으로 맞춤 */
.ap-wide .ap-inner { padding-bottom: 76px; }
.ap-inner h3 { font-size: clamp(1.3rem, 4vw, 1.64rem); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 14px; }
.ap-inner > p { font-size: 1.1rem; line-height: 1.6; margin: 0; }
.ap-light .ap-inner h3 { color: var(--red); }
.ap-light .ap-inner > p { color: rgba(85,85,85,0.85); }

/* 큰 숫자 */
.ap-figs { margin-top: 22px; }
.ap-figs h4 {
  font-weight: 800; letter-spacing: -0.02em; color: var(--ink); line-height: 1;
  font-size: 1.3rem; display: flex; align-items: baseline;
}
.ap-figs .num { font-size: clamp(2.2rem, 6vw, 5rem); font-variant-numeric: tabular-nums; letter-spacing: -0.03em; }
.ap-figs h4 small { font-size: clamp(1.1rem, 3.5vw, 1.6rem); font-weight: 800; margin-left: 4px; }

/* 다중 지표(파트너·인증) */
.ap-figs-multi { display: flex; flex-wrap: wrap; gap: 26px 44px; align-items: flex-start; }
.ap-figs-multi .fig { display: flex; flex-direction: column; gap: 10px; }
.ap-figs-multi .tit { font-size: 0.9rem; font-weight: 600; letter-spacing: -0.01em; opacity: 0.78; }
.ap-figs-multi .val { display: flex; align-items: baseline; font-weight: 800; line-height: 1; color: #fff; }
.ap-figs-multi .num { font-size: clamp(2.05rem, 5.5vw, 3.7rem); letter-spacing: -0.02em; }
.ap-figs-multi .val small { font-size: 1.45rem; font-weight: 800; margin-left: 4px; }
.ap-figs-multi .val-txt { font-size: clamp(1.9rem, 5vw, 3.5rem); letter-spacing: -0.03em; white-space: nowrap; }

/* 사진 배경(어둡게) 패널 */
.ap-photo { color: #fff; }
.ap-photo::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(160deg, rgba(20,24,29,0.74), rgba(12,14,17,0.9)),
    url('images/trust-cert.jpg') center/cover;
}
.ap-photo .ap-inner h3 { color: #fff; }
.ap-photo .ap-inner > p { color: rgba(237,237,237,0.82); }
.ap-photo .ap-figs h4 { color: #fff; }
.ap-mid::before { background-image:
    linear-gradient(160deg, rgba(150,20,26,0.55), rgba(20,24,29,0.92)),
    url('images/trust-network.jpg'); }

/* PC: 신뢰 영역 화면 높이 100% 채움 (헤더 높이 제외) */
@media (min-width: 901px) {
  .about-split { min-height: calc(100vh - var(--header-h)); min-height: calc(100svh - var(--header-h)); align-content: stretch; }
  .about-panels { height: 100%; }
}

/* 반응형 */
@media (max-width: 900px) {
  .about-split { grid-template-columns: 1fr; }
  .about-text { align-self: auto; padding: 72px var(--pad) 48px; }
  .ap-inner { padding: 40px var(--pad); }
}
@media (max-width: 560px) {
  .about-panels { grid-template-columns: 1fr; }
  .ap-wide { grid-column: auto; }
  .ap-figs-multi { gap: 22px 36px; }
  /* 카드 높이를 콘텐츠에 맞춰 축소(빈 공간 제거) + 본문 폰트 축소 */
  .ap, .ap-wide { min-height: 0; }
  .ap-inner, .ap-wide .ap-inner { padding: 28px var(--pad); }
  .ap-inner h3 { margin-bottom: 8px; }
  .ap-inner > p { font-size: 0.92rem; line-height: 1.55; }
  .ap-figs { margin-top: 16px; }
}

/* =========================================================
   ProductCategories
   ========================================================= */
.products { padding: 120px 0 96px; background: #fff; color: var(--ink); overflow: hidden; position: relative; }
/* 배경 그래픽: 대각선 기하학 텍스처 (피그마 디자인 — 30% 투명) */
.products::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    linear-gradient(rgba(255,255,255,0.7), rgba(255,255,255,0.7)),
    url('images/prod-bg-texture.jpg') center / cover no-repeat;
}
.prod-head, .prod-show, .ps-control { position: relative; z-index: 1; }

/* 헤딩 행: "현장을 밝히는 ——(애니 바)—— 정복전장의 기술" */
.prod-head {
  max-width: var(--maxw); margin: 0 auto 84px; padding: 0 var(--pad);
  display: flex; align-items: center; justify-content: center; gap: 28px;
  font-size: clamp(1.7rem, 3.6vw, 3.2rem); font-weight: 800; letter-spacing: -0.02em;
}
.ph-left, .ph-right { white-space: nowrap; }
.ph-left em { font-style: normal; color: var(--ink); }
.ph-right { color: var(--ink); }
.ph-bar { flex: 0 0 clamp(100px, 14vw, 260px); height: 1px; background: rgba(34,34,34,0.25); position: relative; overflow: hidden; }
.ph-bar i { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: var(--ink); transform: translateX(-100%); will-change: transform; animation: barFill 2.4s linear infinite; }
@keyframes barFill { 0% { transform: translateX(-100%); } 50% { transform: translateX(0); } 100% { transform: translateX(100%); } }
@keyframes barFillV { 0% { transform: translateY(-100%); } 50% { transform: translateY(0); } 100% { transform: translateY(100%); } }

/* 쇼케이스: 밝은 회색 라운드 패널 안에 [제품 이미지] + [흰 카드] */
.prod-show {
  max-width: var(--maxw); margin: 0 auto; padding: 97px 41px 41px;
  background: rgba(255, 255, 255, 0.2); border-radius: 24px;
  backdrop-filter: blur(30px); -webkit-backdrop-filter: blur(30px);
  transform: translateZ(0);
  border: 1px solid rgba(236, 238, 241, 0.2);
  box-shadow: 0 30px 60px -40px rgba(20, 24, 29, 0.18);
  display: grid; grid-template-columns: 1.42fr 1fr; gap: 36px; align-items: stretch;
}
.ps-visual {
  min-height: 600px; background-repeat: no-repeat; background-position: center;
  background-size: contain; transition: opacity .35s ease;
}
.ps-card {
  background: #fff; border-radius: 18px; display: flex; flex-direction: column; justify-content: center;
}
.ps-body {
  padding: 56px 44px; text-align: center; transition: opacity .3s ease;
}
.ps-en { color: var(--red); font-weight: 500; font-size: 1rem; margin-bottom: 10px; }
.ps-title { color: var(--ink); font-size: clamp(1.3rem, 4.5vw, 2rem); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 14px; }
.ps-desc { color: var(--steel); font-size: 1.02rem; line-height: 1.65; margin-bottom: 26px; }

/* 특징 리스트 (센터형 카드에 맞춰 가운데 정렬) */
.prod-show .ps-features { display: none; }
.ps-features { margin-bottom: 30px; }
.ps-feat-label {
  display: inline-block; font-size: 0.95rem; font-weight: 800; color: var(--ink);
  padding-bottom: 6px; border-bottom: 2px solid var(--red); margin-bottom: 18px;
}
.ps-features ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.ps-features li { font-size: 1rem; line-height: 1.5; color: var(--steel); font-weight: 500; }
.ps-features li::before { content: "·"; color: var(--red); font-weight: 800; margin-right: 7px; }
/* Learn more 아웃라인 펄 버튼 (레드 닷) */
.btn-learn {
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  padding: 10px 20px; border: 1.5px solid var(--ink); border-radius: 999px;
  font-size: 14px; font-weight: 700; color: var(--ink); transition: background .2s ease, color .2s ease;
}
.btn-learn:hover { background: var(--ink); color: #fff; }
.btn-learn .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--red); flex: none; }
.ps-fade { opacity: 0; }

/* 제품군별 플레이스홀더 톤 (실제 제품컷으로 교체 예정) */
.media-1 { background: linear-gradient(135deg, #3a4150, #1a1d21); }
.media-2 { background: linear-gradient(135deg, #4a3030, #1a1d21); }
.media-3 { background: linear-gradient(135deg, #2f4040, #1a1d21); }
.media-4 { background: linear-gradient(135deg, #40384a, #1a1d21); }
.media-5 { background: linear-gradient(135deg, #3a3a3a, #1a1d21); }

/* 하단 카테고리 진행 바 (GMB 메인 프로덕트식) + 좌우 이동 */
.ps-control {
  display: flex; align-items: center; gap: 44px;
  max-width: var(--maxw); margin: 56px auto 0; padding: 0 var(--pad);
}
.ps-dots { display: none; position: relative; z-index: 1; }  /* 기본 숨김, 모바일에서만 노출 (텍스처 위로) */
.ps-nav { display: flex; flex: 1; min-width: 0; }
.ps-arrows { display: flex; gap: 12px; flex: none; }
.ps-arrow {
  width: 52px; height: 52px; border-radius: 50%; flex: none;
  border: 0; background: #fff; color: var(--ink); box-shadow: 0 4px 14px rgba(0,0,0,0.08);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  transition: background .25s ease, color .25s ease;
}
.ps-arrow svg { width: 20px; height: 20px; }
.ps-arrow:hover { background: var(--red); color: #fff; }
.ps-nav button {
  flex: 1 1 0; min-width: 0; border: none; background: none; cursor: pointer;
  text-align: left; padding: 0;
}
.ps-nav .ps-lab {
  display: block; font-size: clamp(1rem, 1.2vw, 1.2rem); font-weight: 700;
  letter-spacing: -0.02em; color: rgba(20, 24, 29, 0.34); white-space: nowrap;
  margin-bottom: 18px; transition: color .3s ease;
}
.ps-nav .ps-track { display: block; height: 2px; background: rgba(20, 24, 29, 0.14); position: relative; overflow: hidden; }
.ps-nav .ps-track i {
  position: absolute; inset: 0; background: var(--red);
  transform: scaleX(0); transform-origin: left center; transition: transform .5s ease;
}
.ps-nav button:hover .ps-lab { color: var(--steel); }
.ps-nav button.active .ps-lab { color: var(--ink); }
.ps-nav button.active .ps-track i { transform: scaleX(1); }

/* 서브페이지(제품·자료실 등)에서 쓰는 제품 카드 그리드 */
.product-grid {
  max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.product-card {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 26px; display: flex; flex-direction: column; gap: 10px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
a.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(20,24,29,0.10);
  border-color: transparent;
}
.product-media {
  height: 180px; border-radius: 10px; margin-bottom: 8px;
  background: linear-gradient(135deg, #2a3038, #14181d);
}
.product-en { font-size: 0.82rem; font-weight: 700; letter-spacing: 0; color: var(--steel); }
.product-desc { font-size: 1rem; color: var(--steel); flex-grow: 1; }
.product-card .more { font-weight: 700; color: var(--red); font-size: 0.95rem; }
.cta-card {
  background: var(--ink); color: #fff; justify-content: center; align-items: flex-start; gap: 14px;
}
.cta-card .product-en { color: rgba(255,255,255,0.6); }
.cta-card .product-desc { color: rgba(255,255,255,0.75); flex-grow: 0; }
.cta-card .btn { margin-top: 6px; }

/* =========================================================
   Strength (제조역량)
   ========================================================= */
.strength { background: #fff; color: var(--ink); padding: 110px 0; }
.strength .section-label.light { color: var(--red); }
.strength-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad);
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center;
}
.strength-text h2 { margin-bottom: 22px; }
.strength-text > p:not(.section-label) { color: var(--steel); margin-bottom: 30px; }
.strength-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.s-card {
  position: relative; overflow: hidden;
  background: var(--surface); border: 0;
  border-radius: 8px; padding: 26px 22px;
  transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}
/* 우상단 미세 데코 (호버 시 살짝 드러남) */
.s-card::after {
  content: ''; position: absolute; top: -32px; right: -32px;
  width: 96px; height: 96px; border-radius: 50%;
  background: radial-gradient(circle at center, rgba(216,31,38,0.10), transparent 70%);
  opacity: 0; transition: opacity .3s ease;
}
.s-card:hover { border-color: rgba(216,31,38,0.32); transform: translateY(-3px); box-shadow: 0 14px 28px rgba(20,24,29,0.08); }
.s-card:hover::after { opacity: 1; }
.sc-ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 60px; height: 60px; border-radius: 14px; margin-bottom: 18px;
  background: transparent; color: var(--red);
  transition: background .25s ease, color .25s ease;
}
.sc-ico svg { width: 45px; height: 45px; display: block; }
.s-card:hover .sc-ico { background: var(--red); color: #fff; }
.s-card strong { position: relative; display: block; font-size: 1.5rem; font-weight: 800; margin-bottom: 6px; }
.s-card span { position: relative; font-size: 0.95rem; color: var(--steel); }
/* 피그마: 첫 카드 레드 그라데이션 + 흰 텍스트 */
.s-card:first-child { background: linear-gradient(146deg, #d81f26 13%, #b4242a 87%); border-color: transparent; }
.s-card:first-child .sc-ico { color: #fff; }
.s-card:first-child:hover .sc-ico { background: rgba(255,255,255,0.16); }
.s-card:first-child strong { color: #fff; }
.s-card:first-child span { color: #ffeee2; }
/* 터치 기기(모바일): 카드 탭 시 호버 액티브 모션 잔류 제거 */
@media (hover: none) {
  .s-card:hover { border-color: transparent; transform: none; box-shadow: none; }
  .s-card:hover::after { opacity: 0; }
  .s-card:hover .sc-ico { background: transparent; color: var(--red); }
  .s-card:first-child:hover .sc-ico { background: transparent; color: #fff; }
}

/* =========================================================
   MediaSection (미디어 속 정복전장)
   ========================================================= */
.media { position: relative; overflow: hidden; background: #f1eced; padding: 110px var(--pad); }
/* 배경 그래픽: 점박이 지구본 (피그마 — color-burn 40%) */
.media::before {
  content: ""; position: absolute; top: -40px;
  left: max(var(--pad), calc((100vw - var(--maxw)) / 2 + var(--pad)));
  width: clamp(420px, 46vw, 680px); aspect-ratio: 564 / 567;
  background: url('images/media-globe.jpg') center / contain no-repeat;
  mix-blend-mode: color-burn; opacity: 0.4; pointer-events: none; z-index: 0;
}
.media-head, .media-video { position: relative; z-index: 1; }
.media-head { text-align: center; margin-bottom: 40px; }
.media-eyebrow { color: var(--red); font-weight: 500; font-size: clamp(0.92rem, 1.05vw, 1rem); margin-bottom: 16px; }
.media-head h2 { font-size: clamp(1.6rem, 5vw, 2.8rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.18; color: var(--ink); }
.media-video {
  width: min(912px, 100%); margin: 0 auto; aspect-ratio: 16 / 9;
  border-radius: 10px; overflow: hidden; background: #000;
  box-shadow: 0 30px 60px -34px rgba(20,24,29,0.35);
}
.media-video iframe { width: 100%; height: 100%; border: 0; display: block; }
@media (max-width: 1024px) { .media { padding: 72px var(--pad); } }
@media (max-width: 768px) { .media-video { width: 100%; } .media-head { margin-bottom: 28px; } }

/* =========================================================
   NewsSection
   ========================================================= */
.news { padding: 110px 0; background: var(--white); }
.news-inner { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }

/* 상단: 영상 + 제목/자세히보기 */
.news-top { display: flex; align-items: center; gap: 56px; margin-bottom: 56px; }
.news-video { display: none; width: 52%; flex: none; }
.video-embed {
  position: relative; width: 100%; padding-top: 56.25%; /* 16:9 */
  border-radius: 16px; overflow: hidden; background: #000;
}
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.news-headcol { flex: 1; position: relative; }
.news-headcol h2 { margin: 0; }
.news-headcol-sub { color: var(--steel); font-size: 1.04rem; line-height: 1.7; margin: 16px 0 0; max-width: 420px; }

/* 자세히보기 (+ 사각 버튼) — 우측 상단 정렬 */
.news-more {
  position: absolute; bottom: 0; right: 0;
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 56px; height: 56px; border: 1.5px solid var(--line); border-radius: 10px;
  color: var(--ink); transition: background .2s ease;
}
.news-more svg { width: 22px; height: 22px; }
.news-more:hover { background: rgba(20,24,29,0.05); }

/* 하단: 카드 줄 (doodoorim 미디어룸식) */
.news-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.news-card a { display: block; }
.news-card .nc-thumb {
  display: block; width: 100%; aspect-ratio: 4 / 3; border-radius: 12px;
  background-size: cover; background-position: center; transition: transform .3s ease;
}
.news-card a:hover .nc-thumb { transform: translateY(-4px); }
.news-card .nc-body { padding-top: 18px; }
.news-card .nc-tag {
  display: inline-block; font-size: 0.8rem; font-weight: 700; color: var(--red);
  background: rgba(216,31,38,0.08); padding: 4px 11px; border-radius: 999px; margin-bottom: 12px;
}
.news-card .nc-tit {
  font-size: 1.08rem; font-weight: 700; line-height: 1.45; letter-spacing: -0.01em;
  color: var(--ink); transition: color .2s ease;
  display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.news-card a:hover .nc-tit { color: var(--red); }
@media (min-width: 769px) { .news-card .nc-tit { font-size: 1.3rem; } }
.news-card .nc-date { display: block; margin-top: 12px; font-size: 0.9rem; font-weight: 600; color: var(--steel); }

/* =========================================================
   CtaBand
   ========================================================= */
.cta-band {
  display: none; /* 임시 숨김 (요청) */
  position: relative; overflow: hidden; color: #fff; padding: 92px 0;
  background: linear-gradient(120deg, #c81d24 0%, #d81f26 45%, #a8161c 100%);
}
/* 블루프린트 그리드 그래픽 */
.cta-band::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.08) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 40%);
          mask-image: linear-gradient(90deg, transparent 0%, #000 40%);
}
/* 우측 제품 이미지 */
.cta-prod {
  position: absolute; z-index: 2; right: clamp(20px, 6vw, 120px); bottom: -14px;
  height: 118%; width: auto; max-width: 46%; object-fit: contain;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.3)); pointer-events: none;
}
.cta-inner {
  position: relative; z-index: 3;
  max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad);
}
.cta-eyebrow { font-size: 1rem; font-weight: 500; letter-spacing: 0; color: rgba(255,255,255,0.85); margin-bottom: 18px; }
.cta-text h2 { font-size: clamp(1.8rem, 3.2vw, 2.7rem); font-weight: 800; line-height: 1.32; letter-spacing: -0.02em; margin-bottom: 34px; }
.cta-pill {
  display: inline-flex; align-items: center; height: 56px; padding: 0 32px;
  border-radius: 999px; background: var(--ink); color: #fff; font-weight: 700; font-size: 1rem;
  transition: background .2s ease, transform .2s ease;
}
.cta-pill:hover { background: #000; transform: translateY(-2px); }

/* =========================================================
   대형 라이트 푸터 (좌 정보 / 우 지도)
   ========================================================= */
.site-footer.mega { background: #f3f5f7; color: var(--steel); border-top: 1px solid var(--line); }
.footer-split { display: block; }
.footer-info {
  display: flex; flex-direction: column; gap: 44px;
  padding: 60px max(var(--pad), calc((100vw - var(--maxw)) / 2 + var(--pad))) 40px;
}
.footer-cols { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 40px 72px; }
.footer-cols .fcol { min-width: 0; }
.footer-cols .fcol-cs { flex: 1 1 340px; }
.footer-cols .fcol-loc { flex: 0 1 260px; }
.footer-cols .footer-nav { flex: 0 1 200px; }
/* 모바일: 열을 확실히 세로 스택 + 전 열 full-width (전화번호 우측 쏠림 방지) */
@media (max-width: 768px) {
  .footer-cols { flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 36px; }
  .footer-cols .fcol { flex: 0 0 auto; width: 100%; }
  .f-tel { display: block; text-align: left; }
}
.fcol-label { font-size: clamp(0.78rem, 0.9vw, 0.82rem); font-weight: 700; letter-spacing: 0; text-transform: uppercase; color: var(--red); margin: 0 0 18px; }
.f-tel { display: inline-block; font-size: clamp(1.55rem, 5vw, 2.5rem); font-weight: 800; color: var(--ink); letter-spacing: -0.02em; margin-bottom: 16px; font-variant-numeric: tabular-nums; }
.f-cs { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-direction: column; gap: 0; }
.f-cs li { font-size: clamp(1rem, 1.15vw, 1.1rem); color: var(--ink); font-variant-numeric: tabular-nums; }
.f-cs li span { display: inline-block; min-width: 82px; color: var(--steel); font-size: clamp(1rem, 1.15vw, 1.1rem); font-weight: 700; letter-spacing: 0.02em; }
.f-cs a, .f-cs li a { color: inherit; text-decoration: none; }
.f-cs a:hover { color: var(--red); }
.f-note { font-size: clamp(0.88rem, 1vw, 0.95rem); color: var(--steel); margin: 0; }
.fi-row { display: block; }
.fcol-loc .f-addr { font-size: clamp(0.98rem, 1.1vw, 1.05rem); line-height: 1.6; color: var(--ink); margin: 0; }
.footer-end { margin-top: auto; display: flex; flex-direction: column; gap: 20px; }
.site-footer.mega .footer-nav { display: flex; flex-flow: column; align-items: flex-start; gap: 12px; text-align: left; }
.site-footer.mega .footer-nav a { color: var(--steel); font-size: clamp(0.94rem, 1vw, 1rem); font-weight: 500; transition: color .15s ease; }
.site-footer.mega .footer-nav a:hover { color: var(--ink); }
.site-footer.mega .footer-nav a.ft-priv { color: var(--ink); font-weight: 700; }
.footer-bottombar { display: flex; align-items: center; gap: 10px 24px; flex-wrap: wrap; padding-top: 28px; border-top: 1px solid var(--line); }
.site-footer.mega .footer-logo { margin: 0; }
.site-footer.mega .footer-logo { display: flex; align-items: center; }
.site-footer.mega .footer-logo img { height: 26px; width: auto; display: block; transform: translateY(-6px); }
.site-footer.mega .footer-meta { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 0; padding: 0; flex: 1; }
.site-footer.mega .footer-meta li { font-size: clamp(0.8rem, 0.9vw, 0.84rem); color: var(--steel); position: relative; padding-right: 15px; }
.site-footer.mega .footer-meta li:not(:last-child)::after { content: ""; position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: 1px; height: 11px; background: rgba(20,24,29,0.18); }
.site-footer.mega .footer-meta .fm-name { color: var(--ink); font-weight: 700; }
.site-footer.mega .footer-bottombar small { font-size: clamp(0.76rem, 0.85vw, 0.8rem); color: rgba(20,24,29,0.4); }
.footer-map { position: relative; min-height: 100%; background: #e7eaee; overflow: hidden; }
.footer-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 480px; border: 0; display: block; filter: grayscale(0.18); }
@media (max-width: 900px) {
  .footer-split { grid-template-columns: 1fr; }
  .footer-info { order: 2; padding: 44px var(--pad) 28px; gap: 28px; min-width: 0; }
  .footer-map { order: 1; min-height: 0; min-width: 0; }
  .footer-map iframe { position: static; height: 300px; min-height: 0; max-width: 100%; }
  /* 플렉스 자식 오버플로 방지 → 하단 메뉴가 확실히 줄바꿈되도록 */
  .footer-end { min-width: 0; width: 100%; }
  .site-footer.mega .footer-nav { width: 100%; min-width: 0; }
}
@media (max-width: 560px) {
  .fi-row { grid-template-columns: 1fr; gap: 32px; }
  /* 하단 메뉴: 2줄로 깔끔히 감싸기 */
  .site-footer.mega .footer-nav { gap: 10px 16px; }
  .footer-bottombar { flex-direction: column; align-items: flex-start; gap: 10px; padding-top: 22px; }
}

/* =========================================================
   SiteFooter
   ========================================================= */
.site-footer { background: var(--ink); color: rgba(255,255,255,0.6); }
.footer-inner { max-width: var(--maxw); margin: 0 auto; padding: 64px var(--pad) 40px; }
/* 우측 사이드바(769px↑ 노출)와 겹치지 않도록 우측 여백 확보 */
@media (min-width: 769px) { .footer-inner { padding-right: max(var(--pad), 124px); } }
.footer-head {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  flex-wrap: wrap; padding-bottom: 26px; border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-logo { font-size: 1.5rem; font-weight: 800; color: #fff; }
.footer-logo img { height: 30px; width: auto; display: block; }
.footer-nav { display: flex; align-items: center; gap: 30px; flex-wrap: wrap; }
.footer-nav a { font-size: 0.96rem; font-weight: 600; color: rgba(255,255,255,0.78); transition: color .2s ease; }
.footer-nav a:hover { color: #fff; }
.footer-nav a.ft-priv { color: #fff; font-weight: 700; }
.footer-meta {
  list-style: none; margin: 28px 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 9px 30px; font-size: 0.92rem; color: rgba(255,255,255,0.6);
}
.footer-meta li { position: relative; }
.footer-meta li:not(:last-child)::after {
  content: ''; position: absolute; right: -15px; top: 50%; transform: translateY(-50%);
  width: 1px; height: 11px; background: rgba(255,255,255,0.18);
}
.footer-meta .fm-name { color: #fff; font-weight: 700; }
.footer-bottom { margin-top: 30px; font-size: 0.85rem; color: rgba(255,255,255,0.4); }

/* 밝은 버전 푸터 */
.site-footer.light { background: #ebedf1; color: var(--steel); }
.site-footer.light .footer-head { border-bottom-color: var(--line); }
.site-footer.light .footer-nav a { color: var(--steel); }
.site-footer.light .footer-nav a:hover { color: var(--ink); }
.site-footer.light .footer-nav a.ft-priv { color: var(--ink); }
.site-footer.light .footer-meta { color: var(--steel); }
.site-footer.light .footer-meta li:not(:last-child)::after { background: rgba(20,24,29,0.18); }
.site-footer.light .footer-meta .fm-name { color: var(--ink); }
.site-footer.light .footer-bottom { color: rgba(20,24,29,0.4); }

/* 제품 카테고리(쇼핑몰 구조) */
.cat-desc { max-width: 760px; color: var(--steel); margin-bottom: 22px; }
.subcat-list { list-style: none; margin: 0 0 26px; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.subcat-list li {
  border: 1px solid var(--line); border-radius: 999px; padding: 9px 18px;
  font-size: 0.95rem; font-weight: 600; color: var(--ink); background: var(--surface);
}
.subcat-empty { color: var(--steel); margin-bottom: 26px; }
.btn.sm.cat-shop { min-height: 44px; padding: 0 22px; font-size: 0.92rem; }

/* 제품 상단 카테고리 탭바 (lkmakita 참고) */
.prod-tabs {
  position: sticky; top: var(--header-h); z-index: 30;
  background: #F6F7F9;
  overflow: hidden;   /* 탭바가 페이지 폭을 밀어내지 않게 가둠 */
}
.prod-tabs-inner {
  width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad);
  display: flex; justify-content: space-between; overflow-x: auto;
  scrollbar-width: none; -ms-overflow-style: none;
}
.prod-tabs-inner::-webkit-scrollbar { display: none; }
.prod-tabs a {
  position: relative; flex: 0 1 auto;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  height: 80px; padding: 0 8px; font-size: 18px; font-weight: 600;
  color: var(--steel); white-space: nowrap;
  transition: color .2s ease;
}
.prod-tabs a::before { /* 라디오 원형 */
  content: ''; flex: none; width: 18px; height: 18px;
  border-radius: 50%; border: 1px solid #c2c8cf; box-sizing: border-box;
  transition: border-color .2s ease, background-color .2s ease;
}
.prod-tabs .tab-div { /* 탭 사이 세로 구분선 (독립 요소 → 중앙 배치) */
  flex: none; align-self: center; width: 1px; height: 16px; background: #d7dce1;
}
.prod-tabs a:hover { color: var(--ink); }
.prod-tabs a:hover::before { border-color: var(--steel); }
.prod-tabs a.active { color: var(--red); font-weight: 800; }
.prod-tabs a.active::before {
  border-color: var(--red);
  background-color: var(--red);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='5 13 10 18 19 6'/></svg>");
  background-position: center; background-repeat: no-repeat; background-size: 11px;
}
@media (max-width: 1024px) {
  .prod-tabs a { height: 60px; padding: 0 18px; font-size: 0.94rem; gap: 7px; }
  .prod-tabs a::before { width: 16px; height: 16px; }
}

/* 제품 전체보기 — 카테고리 그리드 */
.pcat-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.pcat-card {
  display: flex; flex-direction: column; gap: 10px;
  border: 1px solid var(--line); background: #fff;
  padding: 32px 30px; min-height: 180px;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.pcat-card:hover {
  border-color: var(--ink);
  box-shadow: 0 14px 34px -22px rgba(20,24,29,0.4);
  transform: translateY(-3px);
}
.pcat-card .pcat-en {
  font-size: 0.82rem; font-weight: 700; letter-spacing: 0.08em;
  color: var(--red); text-transform: uppercase;
}
.pcat-card strong { font-size: 1.5rem; font-weight: 800; color: var(--ink); }
.pcat-card .pcat-desc { font-size: 0.96rem; color: var(--steel); line-height: 1.6; flex: 1; }
.pcat-card .pcat-go {
  font-size: 0.95rem; font-weight: 700; color: var(--ink);
  display: inline-flex; align-items: center; gap: 6px;
}
.pcat-card:hover .pcat-go { color: var(--red); }
@media (max-width: 1024px) { .pcat-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; } }
@media (max-width: 560px) { .pcat-grid { grid-template-columns: 1fr; } }

/* 제품 그리드 (실제 상품) */
.prod-intro { margin-bottom: 26px; }
.prod-intro .cat-desc { margin: 0 0 18px; }
.prod-total { font-size: 1.5rem; font-weight: 800; color: var(--ink); letter-spacing: 0; }
.prod-total b { color: var(--red); }
/* 제품 레이아웃: 좌측 소분류 사이드바 + 우측 그리드 (lkmakita 참고) */
.prod-layout { display: grid; grid-template-columns: 264px 1fr; gap: 120px; align-items: start; }
.prod-layout > * { min-width: 0; }  /* grid 아이템 min-content 넘침 방지(카드 잘림) */
.prod-side { position: sticky; top: calc(var(--header-h) + 100px); }
.ps-search h3 { font-size: 1.1rem; font-weight: 800; color: var(--ink); margin-bottom: 14px; }
.ps-input {
  width: 100%; height: 48px; border: 1px solid var(--line); border-radius: 999px;
  padding: 0 20px; font-size: 0.95rem; color: var(--ink); background: #fff;
}
.ps-input::placeholder { color: #9aa3ac; }
.ps-input:focus { outline: none; border-color: var(--ink); }
.ps-cats { list-style: none; margin: 28px 0 0; padding: 0; border-top: 1px solid var(--line); }
.ps-cats li { border-bottom: 1px solid var(--line); }
.ps-cat {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 22px 6px; background: none; border: none; cursor: pointer;
  font-size: 1.05rem; font-weight: 600; color: var(--ink); text-align: left;
  transition: color .15s ease;
}
.ps-cat span { font-size: 1rem; font-weight: 600; color: var(--steel); }
.ps-cat:hover { color: var(--red); }
.ps-cat.active { color: var(--red); }
.ps-cat.active span { color: var(--red); }
.prod-empty { padding: 60px 0; text-align: center; color: var(--steel); font-size: 1.05rem; }

.prod-grid {
  list-style: none; margin: 0 0 44px; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px 24px;
}
.prod-item { display: flex; flex-direction: column; border-top: 1px solid var(--ink); padding-top: 6px; }
.prod-thumb {
  display: flex; align-items: center; justify-content: center;
  aspect-ratio: 1 / 1; overflow: hidden; padding: 18px 6px;
}
.prod-thumb img { max-width: 100%; max-height: 100%; object-fit: contain; transition: transform .4s ease; }
.prod-item:hover .prod-thumb img { transform: scale(1.04); }
.prod-info { flex: 1; padding: 14px 2px 22px; text-align: center; }
.prod-name { display: block; font-size: 20px; font-weight: 700; color: var(--ink); line-height: 1.45; text-align: center; overflow-wrap: anywhere; }
.prod-sum { display: block; margin-top: 12px; font-size: 0.95rem; color: var(--steel); line-height: 1.55; overflow-wrap: anywhere; }
.prod-new { display: inline-block; margin-top: 14px; padding: 4px 10px; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.04em; color: #fff; background: #f5a623; border-radius: 3px; }
.prod-btn {
  display: block; text-align: center; padding: 13px 14px;
  border: 1px solid #d3d8de; border-radius: 999px;
  font-size: 0.92rem; font-weight: 600; color: var(--steel);
  transition: border-color .2s ease, color .2s ease, background .2s ease;
}
.prod-btn:hover { border-color: var(--red); color: var(--red); }
@media (max-width: 1024px) {
  .prod-layout { grid-template-columns: 1fr; gap: 28px; }
  /* 탭바: 모바일 가로 스크롤(컨테이너가 페이지 폭을 늘리지 않음) */
  .prod-tabs-inner { justify-content: flex-start; }
  .prod-tabs a { flex: 0 0 auto; }
  .prod-side { position: static; }
  .ps-cats { display: flex; flex-wrap: wrap; gap: 8px; border-top: none; margin-top: 16px; }
  .ps-cats li { border-bottom: none; }
  .ps-cat { border: 1px solid var(--line); border-radius: 999px; padding: 9px 16px; font-size: 0.95rem; }
  .ps-cat.active { border-color: var(--red); }
  .prod-grid { grid-template-columns: repeat(3, 1fr); gap: 40px 22px; }
}
@media (max-width: 640px) {
  .prod-grid { grid-template-columns: repeat(2, 1fr); gap: 32px 16px; }
  .prod-name { font-size: 0.96rem; }
  .prod-btn { padding: 9px 12px; font-size: 0.82rem; }
  /* 페이지네이션 축소 */
  .pagination { gap: 5px; margin: 32px 0; }
  .pagination button { min-width: 34px; height: 34px; font-size: 0.85rem; border-radius: 5px; }
  .pagination .pg-arrow { font-size: 0.95rem; }
  /* 검색 하단 카테고리 칩 축소 */
  .ps-cat { padding: 6px 11px; font-size: 0.85rem; }
  .ps-cat span { font-size: 0.85rem; }
  .ps-cats { gap: 6px; }
  .prod-total { font-size: 1.2rem; }
  /* 카테고리 칩 ~ TOTAL 사이 간격 */
  .prod-layout { gap: 40px; }
}

/* 페이지네이션 */
.pagination { display: flex; justify-content: center; align-items: center; gap: 8px; margin: 44px 0; }
.pagination:empty { margin: 0; }
.pagination button {
  min-width: 42px; height: 42px; padding: 0 6px;
  border: 1px solid var(--line); background: #fff; border-radius: 6px;
  font-size: 0.95rem; font-weight: 600; color: var(--steel); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: border-color .2s ease, color .2s ease, background .2s ease;
}
.pagination button:hover:not(:disabled):not(.active) { border-color: var(--steel); color: var(--ink); }
.pagination button.active { background: var(--ink); border-color: var(--ink); color: #fff; cursor: default; }
.pagination button:disabled { opacity: 0.35; cursor: default; }
.pagination .pg-arrow { font-size: 1.1rem; }
.pagination .pg-ellipsis { min-width: 24px; text-align: center; color: var(--steel); font-weight: 700; align-self: flex-end; padding-bottom: 8px; }

/* 제품 상세 (lkmakita 참고) */
.pd-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.pd-gallery { position: sticky; top: calc(var(--header-h) + 30px); }
.pd-main { background: var(--surface); border: 1px solid var(--line); aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.pd-main img { max-width: 100%; max-height: 100%; object-fit: contain; padding: 28px; }
/* .pd-detail 갤러리 썸네일: flex 한 줄 + 좁은 간격 (다른 레이아웃의 grid 규칙 덮어쓰기) */
.pd-detail .pd-thumbs { display: flex; gap: 6px; margin-top: 12px; flex-wrap: wrap; grid-template-columns: none; }
.pd-detail .pd-thumb { width: 84px; height: 84px; aspect-ratio: auto; border: 1px solid var(--line); border-radius: 0; background: #fff; padding: 6px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: border-color .15s ease; }
.pd-thumbs { display: flex; gap: 6px; margin-top: 12px; flex-wrap: wrap; }
.pd-thumb { width: 84px; height: 84px; border: 1px solid var(--line); background: #fff; padding: 6px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: border-color .15s ease; }
.pd-thumb img { max-width: 100%; max-height: 100%; object-fit: contain; }
.pd-thumb.active { border-color: var(--ink); border-width: 2px; }
.pd-thumb:hover { border-color: var(--steel); }

.pd-cat { font-size: 0.95rem; font-weight: 700; color: var(--red); letter-spacing: 0.02em; margin-bottom: 14px; }
.pd-model { font-size: 1rem; font-weight: 600; color: var(--steel); margin-bottom: 6px; }
.pd-name { font-size: 2rem; font-weight: 800; color: var(--ink); line-height: 1.3; }
.pd-divider { border: none; border-top: 1px solid var(--line); margin: 26px 0; }
.pd-desc { font-size: 1.05rem; line-height: 1.7; color: var(--steel); margin-bottom: 30px; white-space: pre-line; }
.pd-spec { width: 100%; border-collapse: collapse; border-top: 2px solid var(--ink); }
.pd-spec th, .pd-spec td { text-align: left; padding: 15px 18px; font-size: 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.pd-spec th { width: 34%; background: var(--surface); color: var(--ink); font-weight: 700; }
.pd-spec td { color: var(--steel); }
.pd-actions { display: flex; gap: 12px; margin-top: 34px; flex-wrap: wrap; }
/* 하단 상세 이미지 영역 (상세 이미지가 있는 제품용) */
.pd-detailimg { margin-top: clamp(48px, 6vw, 84px); border-top: 1px solid var(--line); padding-top: clamp(32px, 4vw, 56px); }
.pd-detailimg h3 { font-size: clamp(1.3rem, 2.4vw, 1.6rem); font-weight: 800; color: var(--ink); letter-spacing: -0.02em; margin-bottom: 22px; }
.pd-detailimg img { display: block; width: 100%; max-width: 900px; margin: 0 auto; height: auto; }
.pd-detailimg img + img { margin-top: clamp(20px, 3vw, 36px); }
.pd-detailimg img.pd-specimg { width: auto; max-width: 100%; }
.pd-detailimg .pd-detail-cap { display: block; text-align: center; font-size: 0.9rem; color: var(--steel); margin: 10px auto 0; }
/* 실서버(어드민 에디터)에서 온 상세 내용은 이미지가 <p> 로 감싸여 온다 →
   기존 하드코딩(img + img)과 같은 간격이 나오도록 문단 간격만 맞춰 준다. */
.pd-detailimg .pd-detail-body > p + p { margin-top: clamp(20px, 3vw, 36px); }
.pd-actions .btn { min-height: 54px; padding: 0 30px; font-size: 1rem; }
.pd-actions .btn-solid { flex: 1; min-width: 200px; }
@media (max-width: 900px) {
  .pd-detail { grid-template-columns: 1fr; gap: 32px; }
  .pd-gallery { position: static; }
  .pd-name { font-size: 1.6rem; }
}

/* 개인정보처리방침 등 약관 본문 */
.legal { max-width: 880px; }
.legal .legal-intro { color: var(--steel); margin-bottom: 36px; }
.legal h3 { margin: 34px 0 12px; font-size: 1.18rem; color: var(--ink); }
.legal p { color: var(--steel); margin-bottom: 8px; }
.legal ul { margin: 0 0 8px; padding-left: 18px; color: var(--steel); }
.legal li { margin-bottom: 6px; line-height: 1.7; }
.legal .spec-note { margin-top: 40px; font-size: 0.92rem; color: var(--steel); border-top: 1px solid var(--line); padding-top: 20px; }

/* =========================================================
   SideRail (PC 우측 고정 사이드바 — 기본 펼침)
   ========================================================= */
.side-rail {
  position: fixed; bottom: 0; right: 0; top: auto; transform: none;
  z-index: 95; display: flex; flex-direction: column; align-items: flex-end; gap: 0;
}
.side-rail .sr-list { display: flex; flex-direction: column; align-items: flex-end; gap: 0; list-style: none; margin: 0; padding: 0; }
/* 사각 블랙 버튼 — 우측 끝 밀착 스택(여백 0), 호버 시 좌측으로 라벨 펼침 */
.side-rail .sr-list a,
.side-rail .sr-top {
  display: flex; flex-direction: row-reverse; align-items: center;
  height: 64px; padding: 0; border: 0; cursor: pointer;
  background: var(--ink); color: #fff; border-radius: 0;
  box-shadow: -6px 0 18px rgba(0,0,0,0.16); overflow: hidden;
  transition: background 0.22s ease, color 0.22s ease;
}
.side-rail .sr-list li + li a,
.side-rail .sr-top { border-top: 0; }
.side-rail .sr-ico,
.side-rail .sr-top span {
  flex: 0 0 64px; width: 64px; height: 64px;
  display: inline-flex; align-items: center; justify-content: center;
}
.side-rail .sr-ico svg,
.side-rail .sr-top span svg { width: 26px; height: 26px; display: block; }
.side-rail em {
  font-style: normal; font-size: 0.9rem; font-weight: 700; letter-spacing: -0.02em;
  white-space: nowrap; max-width: 0; opacity: 0; overflow: hidden;
  transition: max-width 0.3s ease, opacity 0.2s ease, padding 0.3s ease;
}
.side-rail .sr-top { width: 64px; }
.side-rail .sr-list a:hover,
.side-rail .sr-top:hover { background: var(--red); color: #fff; }
.side-rail .sr-list a:hover em { max-width: 180px; opacity: 1; padding-left: 22px; padding-right: 6px; }
/* PC 전용: 플로팅 사이드바 1.2배 확대 + 아이콘 선 굵게(≈0.5px) */
@media (min-width: 769px) {
  .side-rail .sr-list a,
  .side-rail .sr-top { height: 77px; }
  .side-rail .sr-ico,
  .side-rail .sr-top span { flex: 0 0 77px; width: 77px; height: 77px; }
  .side-rail .sr-ico svg,
  .side-rail .sr-top span svg {
    width: 31px; height: 31px;
    stroke: currentColor; stroke-width: 4; stroke-linejoin: round; stroke-linecap: round;
    paint-order: stroke fill;
  }
  .side-rail .sr-top { width: 77px; }
  .side-rail em { font-size: 1rem; }
}

/* =========================================================
   MobileQuickBar (≤768px 노출)
   ========================================================= */
.mobile-quickbar {
  display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 90;
  background: #fff; border-top: 1px solid var(--line);
}
.mobile-quickbar a {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 10px 0; color: var(--ink);
}
.mobile-quickbar span { display: inline-flex; }
.mobile-quickbar span svg { width: 22px; height: 22px; display: block; }
.mobile-quickbar em { font-style: normal; font-size: 0.82rem; font-weight: 600; color: var(--steel); }

/* =========================================================
   반응형
   ========================================================= */
@media (max-width: 1024px) {
  :root { --pad: 24px; --header-h: 80px; }
  /* 헤더 자동숨김과 동기화 — sticky 탭바가 헤더 빈자리에 뜨지 않게 상단(0)에 붙임 */
  .era-tabs, .prod-tabs { transition: top .3s ease; }
  body.header-hidden .era-tabs, body.header-hidden .prod-tabs { top: 0; }
  /* 모바일 탑바 자동 숨김: 아래로 스크롤 시 위로 사라짐 */
  .site-header { transition: background .25s ease, border-color .25s ease, transform .3s ease; }
  .site-header.hide-bar { transform: translateY(-100%); }
  .main-nav, .header-actions { display: none; }
  /* PC 헤더 hover/focus 모션(흰 패널·배경 플립·GNB) 모바일 잔류 제거 */
  .site-header::after { display: none; }
  .site-header:hover, .site-header:focus-within { background: transparent; border-bottom-color: rgba(119,119,119,0.5); backdrop-filter: none; }
  .site-header.scrolled:hover, .site-header.scrolled:focus-within { background: rgba(0,0,0,0.4); border-bottom-color: rgba(255,255,255,0.12); backdrop-filter: blur(8px); }
  .site-header.solid:hover, .site-header.solid:focus-within { background: #fff; border-bottom-color: var(--line); backdrop-filter: none; }
  .site-header:hover .dropdown, .site-header:focus-within .dropdown { opacity: 0; visibility: hidden; pointer-events: none; }
  .hamburger { display: flex; }
  .strength-inner { grid-template-columns: 1fr; gap: 36px; }
  .intro, .products, .strength, .news { padding: 72px 0; }
  .prod-head { gap: 18px; margin-bottom: 56px; padding: 0 var(--pad); }
  .prod-show { grid-template-columns: 1fr; gap: 16px; padding: 20px; margin: 0 var(--pad); }
  .ps-visual { min-height: 260px; }
  .ps-body { padding: 40px 24px; }
  .ps-control { padding: 0 var(--pad); margin-top: 40px; gap: 20px; }
  .ps-nav {
    overflow-x: auto;
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent 100%);
    mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent 100%);
  }
  .ps-nav button { flex: 0 0 auto; min-width: 120px; }
  /* 모바일: 좌우 화살표 제거 → 스와이프로 전환 */
  .ps-arrows { display: none; }
  /* 손가락 가로 스와이프가 리스트 스크롤이 아닌 '제품 전환'으로만 동작하도록
     (세로 스크롤은 허용, 가로 드래그-스크롤은 차단 / 활성 탭은 JS가 자동 가운데 정렬) */
  .products, .ps-nav { touch-action: pan-y; }
}

@media (max-width: 768px) {
  /* 모바일: 우측 사이드바 → 하단 바텀 내비로 전환 (기획서 MobileQuickBar) */
  body { padding-bottom: 68px; }
  .side-rail { display: none; }
  .mobile-quickbar { display: flex; }
  .product-grid { grid-template-columns: 1fr; }
  .news-top { flex-direction: column; align-items: stretch; gap: 28px; }
  /* 모바일: 본문 폭을 줄여 2줄로 감싸고, + 버튼은 우측에 나란히 (겹침 방지 + 공간 절약) */
  .news-headcol-sub { max-width: calc(100% - 72px); }
  .news-more { width: 48px; height: 48px; }
  .news-video { width: 100%; }
  .news-cards { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .prod-head {
    flex-direction: column; align-items: center; text-align: center; gap: 16px;
    font-size: clamp(1.6rem, 5vw, 2.8rem); line-height: 1.18;  /* 다른 섹션 h2와 통일 */
  }
  /* 두 문장 사이 흐르는 라인(세로) */
  .ph-bar { display: block; flex: none; width: 1px; height: clamp(44px, 10vw, 72px); }
  .ph-bar i { left: 0; top: 0; width: 100%; height: 100%; transform: translateY(-100%); animation: barFillV 2.4s linear infinite; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); gap: 28px 16px; }
  .strength-stats { grid-template-columns: repeat(2, 1fr); }
  .section-head.row { flex-direction: column; align-items: flex-start; }
  .footer-head { align-items: flex-start; gap: 18px; }
  .footer-meta { gap: 8px 24px; }
  .cta-prod { opacity: 0.18; right: -10%; max-width: 70%; }
  .cta-band::before { -webkit-mask-image: none; mask-image: none; }
  /* 모바일: 1번째 배너만 위치 보정(cover 유지) → 제품(작업등)이 중앙쯤에 자연 크기로 */
  /* 모바일: 슬라이드별 세로 전용 배너 사용 */
  .hero::before { background-image: var(--hero-img-m, var(--hero-img)); background-position: center bottom; background-size: cover; }
  /* 가로 스와이프는 배너 전환용으로 예약(세로 페이지 스크롤은 유지) */
  .hero { touch-action: pan-y; }
  /* 모바일: 하단 다크 스크림 복원 — 흰색 제품 위 제목 가독성 확보(상단 제품은 노출) */
  .hero::after {
    display: block;
    background: linear-gradient(to top,
      rgba(15,18,22,0.92) 0%, rgba(15,18,22,0.62) 30%,
      rgba(15,18,22,0.2) 55%, transparent 72%);
  }
  /* 모바일 히어로 콘텐츠 콤팩트화 (마끼다 스타일 — 배경 노출 ↑) */
  .hero-logo { height: 42px; margin-bottom: 16px; }
  .hero h1 { font-size: clamp(1.5rem, 6vw, 2rem); line-height: 1.22; margin-bottom: 12px; }
  /* 화면 폭 안으로 강제 — 부모 오버플로로 카피 오른쪽이 잘리던 문제 방지 */
  .hero-copy { font-size: 0.95rem; line-height: 1.55; margin-bottom: 22px; max-width: calc(100vw - (var(--pad) * 2)); }
  .hero-btn { min-height: 40px; padding: 0 20px; font-size: 0.85rem; }
  .hero-pager { margin-top: 20px; gap: 10px; }
  .hero-pager .hp-item { font-size: 0.82rem; gap: 10px; }
  .hero-pager .hp-item.active .hp-line { width: 56px; }
  /* 메인페이지 나머지 섹션 폰트 추가 축소 (서브페이지 영향 X) */
  body:not(.subpage) h2 { font-size: 1.6rem; }
  body:not(.subpage) .lead { font-size: 1.05rem; line-height: 1.7; }
  .about-eyebrow, .media-eyebrow, .cta-eyebrow, .section-label, .ps-en,
  body.subpage .block-head .en, body.subpage .greeting-intro .en { font-size: 0.88rem; }
  /* eyebrow(빨간 텍스트)→타이틀 간격 8px 통일 (메인 + 서브페이지 섹션) */
  .about-eyebrow, .media-eyebrow, .cta-eyebrow, .section-label { margin-bottom: 8px; }
  body.subpage .block-head .en { margin-bottom: 8px; }
  body.subpage .greeting-body p:not(.greeting-lead) { font-size: 1rem; }
  body.subpage .greeting-body .sign { font-size: 1.05rem; margin-top: 22px; }
  .prod-head { font-size: 1.6rem; }
  .media-head h2 { font-size: 1.6rem; }
  .s-card strong { font-size: 1.2rem; }
  .pcat-card strong { font-size: 1.2rem; }
  /* 섹션별 본문 단락 모바일 1rem 통일 */
  .about-sub, .ps-desc, .strength-text > p:not(.section-label),
  .news-headcol-sub, .pcat-card .pcat-desc { font-size: 1rem; line-height: 1.6; }
  .trust-grid strong { font-size: clamp(1.15rem, 4.5vw, 1.7rem); }
  .ap-inner h3 { font-size: clamp(1.12rem, 4vw, 1.64rem); }
  .ap-figs .num { font-size: clamp(1.85rem, 6vw, 5rem); }
  .ap-figs-multi .num { font-size: clamp(1.7rem, 5.5vw, 3.7rem); }
  .ap-figs-multi .val-txt { font-size: clamp(1.55rem, 5vw, 3.5rem); }
  /* 제품 카드 안쪽 여백 축소 — 이미지 크기는 그대로, 설명이 이미지와 함께 한눈에 */
  .ps-body { padding: 24px 22px; }
  .ps-en { margin-bottom: 6px; }
  .ps-title { margin-bottom: 8px; }
  .ps-desc { margin-bottom: 14px; }
  /* 카드 하단 점 인디케이터 (모바일 전용) */
  .ps-dots { display: flex; justify-content: center; gap: 7px; margin: 0; }
  .ps-dot { width: 7px; height: 7px; padding: 0; border: 0; border-radius: 50%; background: rgba(20,24,29,0.22); cursor: pointer; transition: background .25s ease, width .25s ease; }
  .ps-dot.active { background: var(--red); width: 18px; border-radius: 4px; }
}

@media (max-width: 480px) {
  body { font-size: 17px; }
  .trust-grid { grid-template-columns: 1fr 1fr; }
}

/* =========================================================
   서브페이지 공통 (company / product-detail)
   ========================================================= */
body.subpage { padding-top: var(--header-h); }
/* 서브페이지 본문~푸터 사이 여백 (PC 180px, 모바일 축소) */
body.subpage main > .block:last-child { padding-bottom: clamp(70px, 9vw, 120px); }
/* 서브페이지 헤더: 기본 흰색 배경 + 다크 텍스트 */
.site-header.solid { background: #fff; border-bottom-color: var(--line); backdrop-filter: none; }
.site-header.solid .nav-item > a,
.site-header.solid .lang-btn { color: var(--ink); opacity: 1; }
.site-header.solid .hamburger span { background: var(--ink); }
.site-header.solid .lang-btn:hover { background: rgba(20,24,29,0.06); }

/* 페이지 배너 (중앙 타이틀 + 설명문 — doodoorim 스타일) */
.page-banner {
  background: #fff;
  padding: clamp(30px, 3.2vw, 44px) 0 clamp(72px, 8.5vw, 120px);
  border-bottom: 1px solid var(--line);
}
.page-banner-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad);
  text-align: left;
}
/* 브레드크럼: 좌측 정렬, 세로 구분선 */
.breadcrumb {
  display: flex; align-items: center; gap: 12px;
  font-size: 17px; color: var(--steel); margin-bottom: clamp(40px, 5.5vw, 72px);
}
.breadcrumb a { color: var(--steel); display: inline-flex; align-items: center; }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb .home { width: 17px; height: 17px; }
.breadcrumb .sep { width: 1px; height: 12px; background: var(--line); display: inline-block; }
.breadcrumb .cur { color: var(--red); font-weight: 600; }
.page-banner.crumb-only .breadcrumb { margin-bottom: 0; }
.page-banner h1 {
  font-size: clamp(1.85rem, 5.2vw, 3.5rem); font-weight: 800;
  letter-spacing: -0.02em; color: var(--ink); line-height: 1.18;
}
.pb-desc {
  margin: 20px 0 0; max-width: 820px;
  font-size: 1.125rem; line-height: 1.6; color: var(--steel);
}
@media (max-width: 768px) {
  .breadcrumb { font-size: 0.92rem; }
  .pb-desc { font-size: 1.02rem; }
  /* 타이틀 영역 하단 여백 40px */
  .page-banner { padding-bottom: 40px; }
  /* 검색 입력 포커스 시 iOS 자동 확대 방지(폰트 ≥16px) — 명시도 상향으로 기본 정의 덮어쓰기 */
  .board-search .board-search-input, .ps-search .ps-input, .ps-input { font-size: 16px; }
}

/* 브레드크럼 드롭다운 (2뎁스 이동) */
.bc-drop { position: relative; display: inline-flex; align-items: center; }
.bc-cur {
  display: inline-flex; align-items: center; gap: 4px;
  background: none; border: 0; padding: 0;
  font-size: inherit; font-weight: 600; color: var(--red);
  line-height: 1; cursor: pointer;
}
/* 중간(부모) 단계 트리거는 현재 페이지가 아니므로 진회색 */
.bc-cur.parent { color: var(--steel); }
.bc-cur.parent:hover { color: var(--ink); }
/* 브레드크럼: 항상 한 줄 유지 — 현재 제목(리프)이 길면 말줄임(…) */
.breadcrumb { flex-wrap: nowrap; min-width: 0; }
.breadcrumb > a, .breadcrumb > .sep, .breadcrumb > .bc-drop { flex: none; }
.breadcrumb > .bc-cur {
  flex: 0 1 auto; min-width: 0; display: block;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.bc-caret { width: 16px; height: 16px; color: var(--steel); transition: transform .2s ease; flex: none; }
.bc-caret path { stroke: currentColor; stroke-width: 9; stroke-linejoin: round; }
.bc-drop.open .bc-caret { transform: rotate(180deg); }
/* hover 열림은 마우스 기기에서만 — 터치의 sticky hover로 안 닫히는 문제 방지 */
@media (hover: hover) { .bc-drop:hover .bc-caret { transform: rotate(180deg); } }
.bc-menu {
  display: block;
  position: absolute; top: calc(100% + 9px); left: 0;
  transform: translateY(6px);
  min-width: 152px; padding: 8px 6px; text-align: left;
  background: #fff; border: 1px solid var(--line); border-radius: 11px;
  box-shadow: 0 10px 26px rgba(0,0,0,0.07);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .18s ease, transform .18s ease; z-index: 60;
}
.bc-menu::before { content: ''; position: absolute; top: -11px; left: 0; right: 0; height: 11px; }
.bc-drop.open .bc-menu {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateY(0);
}
@media (hover: hover) {
  .bc-drop:hover .bc-menu {
    opacity: 1; visibility: visible; pointer-events: auto;
    transform: translateY(0);
  }
}
.bc-menu a {
  display: block; padding: 9px 16px; font-size: 1rem; font-weight: 600;
  color: var(--steel); white-space: nowrap; border-radius: 7px;
  transition: color .15s ease, background .15s ease;
}
.bc-menu a:hover { color: var(--red); background: var(--surface); }
.bc-menu a.active { color: var(--red); }
/* 항목 많은 메뉴(제품소개)는 2열 */
.bc-menu.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 4px; min-width: 300px; }
/* 모바일: 드롭다운을 브레드크럼 행 기준 전체 폭으로 정렬 → 뷰포트 밖으로 안 넘침(iOS shrink-to-fit 방지) */
@media (max-width: 768px) {
  .breadcrumb { position: relative; }
  .bc-drop { position: static; }
  .bc-menu { left: 0; right: 0; min-width: 0; width: auto; max-width: 100%; }
  .bc-menu.cols { min-width: 0; max-width: 100%; }
}

/* 콘텐츠 블록 공통 */
.block { max-width: var(--maxw); margin: 0 auto; padding: 84px var(--pad); scroll-margin-top: calc(var(--header-h) + 24px); }
.block + .block { border-top: 1px solid var(--line); }
.block-head { margin-bottom: 36px; }
/* 시그니처: 레드 틱 + eyebrow */
.block-head .en {
  font-size: 1rem; font-weight: 500; letter-spacing: 0; color: var(--red);
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 14px;
}
.block-head h2 { font-size: clamp(1.5rem, 4.5vw, 2.3rem); }
.block p { color: var(--steel); }
.lead { font-size: 1.22rem; line-height: 1.8; color: var(--ink) !important; font-weight: 600; letter-spacing: -0.01em; }

/* 모노 유틸 (모델 코드·부품번호 = 제조사 고유 아티팩트) */
.mono { font-family: ui-monospace, 'SF Mono', 'JetBrains Mono', 'Menlo', monospace; font-feature-settings: 'tnum' 1; letter-spacing: -0.01em; }

/* 스크롤 등장 (JS가 .reveal 부여 → no-JS면 항상 보임) */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.is-visible { opacity: 1; transform: none; }

/* 히어로 로드 모션 — 콘텐츠 순차 등장 */
@keyframes heroUp { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
.hero-content > * { animation: heroUp .9s cubic-bezier(.2,.7,.2,1) both; }
.hero-content .hero-logo { animation-delay: .15s; }
.hero-content h1         { animation-delay: .30s; }
.hero-content .hero-copy { animation-delay: .46s; }
.hero-content .hero-btn  { animation-delay: .60s; }
.hero-content .hero-pager { animation-delay: .74s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-content > *, .hero .hero-anim, .hero::before { animation: none; }
  html { scroll-behavior: auto; }
}

/* 인사말 */
/* 인사말 (asinsam 스타일: 중앙 헤드라인 + 사진/본문 2열) */
.block:has(.greeting-intro) { padding-top: clamp(72px, 8.5vw, 120px); padding-bottom: 130px; }
.block:has(.biz-grid) {
  padding-bottom: 130px;
  background: var(--surface);
  border-top: 0;
  border-bottom: 0;
  max-width: none;
  margin-inline: calc(50% - 50vw);
  padding-inline: max(var(--pad), calc(50vw - var(--maxw) / 2 + var(--pad)));
}
.block:has(.biz-grid) .block-head { text-align: center; }
.block:has(.biz-grid) .block-head .en { justify-content: center; }
.greeting-intro { text-align: center; max-width: 980px; margin: 0 auto 120px; }
.greeting-intro .en {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0; color: var(--red);
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 20px;
}
.gh-mbr { display: none; }  /* greeting 헤드라인 모바일 전용 줄바꿈 */
@media (max-width: 768px) { .gh-mbr { display: inline; } }
.greeting-headline {
  font-size: clamp(1.55rem, 5vw, 2.75rem); font-weight: 800;
  line-height: 1.4; letter-spacing: -0.02em; color: var(--ink);
}
.greeting-headline .hl-red { color: var(--red); }
.greeting-body p { color: var(--steel); line-height: 1.85; margin-bottom: 18px; }
.greeting-body .greeting-lead { font-size: clamp(1.25rem, 3.5vw, 1.875rem); font-weight: 700; color: var(--ink); line-height: 1.5; margin-bottom: 28px; letter-spacing: -0.02em; }
.greeting-body p:last-child { margin-bottom: 0; }
.greeting-body .sign { margin-top: 30px; font-weight: 700; font-size: 1.25rem; line-height: 1.2; color: var(--ink); }
.greeting { display: grid; grid-template-columns: 1.5fr 1fr; gap: 100px; align-items: stretch; }
.greeting-photo { background: #14181d; position: relative; overflow: hidden; min-height: 420px; border-radius: 8px; }
.greeting-photo img {
  position: absolute; inset: 0;
  /* 가로는 왼쪽 고정: 본관 건물이 원본 왼쪽 끝에 붙어 있어 center 크롭 시 건물 왼편이 잘림 */
  width: 100%; height: 100%; object-fit: cover; object-position: left 88%; display: block;
  transition: transform 2s ease;  /* doodoorim 메인배너 로딩 모션과 동일: 줌아웃 */
  will-change: transform;
}
/* 진입 전 scale(1.1) → 진입 시 scale(1) 로 2초간 줌아웃 (JS reveal 활성 시에만) */
.greeting.reveal .greeting-photo img { transform: scale(1.1); }
.greeting.reveal.is-visible .greeting-photo img { transform: scale(1); }
/* 인사말 등장 순서: 헤드라인 먼저 → 사진·텍스트 나중 (블록 자체는 통째 페이드 안 함) */
.block:has(.greeting-intro).reveal { opacity: 1; transform: none; transition: none; }
.block:has(.proc2).reveal { opacity: 1; transform: none; transition: none; }
/* 생산공정 카드 — 각 카드가 화면 진입 시 또렷이 아래→위로 등장 */
.proc2-step.reveal { transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1); }
.proc2-step.reveal:not(.is-visible) { opacity: 0; transform: translateY(48px); }
.greeting.reveal { transition-delay: 380ms !important; }
@media (prefers-reduced-motion: reduce) {
  .greeting-photo img { transition: none; transform: none; }
}
.greeting strong { color: var(--ink); font-weight: 700; }

/* 사업분야 카드 */
.biz-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
/* 사업분야: 큰 카드 1 + 작은 카드 3 (daedonggear 스타일) */
.biz-grid-4 { grid-template-columns: 1.8fr 1fr 1fr 1fr; }
.biz-card { border: 1px solid var(--line); border-radius: 14px; padding: 30px; background: var(--surface); transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease; }
.biz-card:hover { transform: translateY(-3px); box-shadow: 0 16px 32px rgba(20,24,29,0.07); border-color: transparent; }
.biz-card strong { display: block; font-size: 1.22rem; margin-bottom: 10px; color: var(--ink); padding-top: 14px; border-top: 2px solid var(--red); }

/* 사업분야 — 이미지 배경 카드 (spacepro 스타일) */
.biz-card.media {
  position: relative; display: flex; align-items: flex-end;
  padding: 0; border: 0; border-radius: 8px; overflow: hidden; isolation: isolate;
  min-height: 420px; background: #14181d; color: #fff; text-decoration: none;
}
.biz-card.media:hover { transform: translateY(-4px); box-shadow: 0 26px 52px rgba(20,24,29,0.22); border-color: transparent; }
.biz-card.media .biz-card-image {
  position: absolute; inset: 0; z-index: -2;
  background-size: cover; background-position: center;
  transition: transform .7s cubic-bezier(.2,.7,.2,1);
}
.biz-card.media::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(20,24,29,0) 30%, rgba(20,24,29,0.82) 100%);
  transition: background .45s ease;
}
.biz-card.media:hover .biz-card-image { transform: scale(1.08); }
.biz-card.media:hover::after { background: linear-gradient(180deg, rgba(20,24,29,0.25) 0%, rgba(20,24,29,0.9) 100%); }
.biz-card-body { position: relative; width: 100%; padding: 30px; }
.biz-en { display: block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0; color: rgba(255,255,255,0.7); margin-bottom: 8px; }
.biz-card.media strong { display: block; font-size: 1.4rem; color: #fff; border: 0; padding: 0; margin: 0; letter-spacing: -0.01em; }
.biz-card.media p {
  color: rgba(255,255,255,0.85); margin: 0;
  max-height: 0; opacity: 0; overflow: hidden;
  transition: max-height .5s ease, opacity .4s ease, margin .5s ease;
}
.biz-card.media:hover p { max-height: 140px; opacity: 1; margin: 12px 0 14px; }
.biz-more {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.85rem; font-weight: 700; letter-spacing: 0; color: #fff;
  margin-top: 14px; opacity: 0.9;
}
.biz-card.media:hover .biz-more { margin-top: 0; }
.biz-more i { font-style: normal; transition: transform .3s ease; }
.biz-card.media:hover .biz-more i { transform: translateX(6px); }
/* 모바일: 사업분야 카드 등장 모션을 '올라옴' 대신 부드러운 페이드인으로(이미지 카드 transform 리페인트 끊김 방지) */
@media (max-width: 768px) {
  .biz-card.reveal { transform: none; transition: opacity .5s ease; }
  .biz-card.reveal.is-visible { transform: none; }
}
/* 터치 기기: 설명 항상 노출 + hover 효과 전부 무효화(탭 시 떨림/두둑 방지) */
@media (hover: none) {
  .biz-card.media p { max-height: 160px; opacity: 1; margin: 12px 0 14px; }
  .biz-card:hover, .biz-card.media:hover { transform: none; box-shadow: none; }
  .biz-card.media:hover .biz-card-image { transform: none; }
  .biz-card.media:hover::after { background: linear-gradient(180deg, rgba(20,24,29,0) 30%, rgba(20,24,29,0.82) 100%); }
  .biz-card.media:hover p { max-height: 160px; margin: 12px 0 14px; }
  .biz-card.media:hover .biz-more { margin-top: 14px; }
  .biz-card.media:hover .biz-more i { transform: none; }
}

/* 연혁 타임라인 */
.timeline { border-left: 2px solid var(--line); margin-left: 8px; }
.timeline li { list-style: none; position: relative; padding: 0 0 38px 36px; }
.timeline li::before {
  content: ''; position: absolute; left: -8px; top: 8px; width: 14px; height: 14px;
  border-radius: 50%; background: #fff; border: 3px solid var(--red);
}
.timeline li:first-child::before { background: var(--red); box-shadow: 0 0 0 5px rgba(216,31,38,0.14); }
.timeline .year { font-size: 1.45rem; font-weight: 800; color: var(--ink); letter-spacing: -0.02em; font-feature-settings: 'tnum' 1; }
.timeline li:first-child .year { color: var(--red); }
.timeline .desc { color: var(--steel); margin-top: 2px; }
.timeline em { font-style: normal; color: #9aa3ac; font-size: 0.92rem; }

/* 연혁 (asinsam 스타일: 배너 + 시대 탭 + 세로 타임라인) */
.hist-banner { border-radius: 16px; overflow: hidden; }
.hist-banner img { width: 100%; height: clamp(220px, 26vw, 380px); object-fit: cover; object-position: center; display: block; }
.era-tabs {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
  position: sticky; top: var(--header-h); z-index: 30;
  background: #fff; padding: 8px 0; margin-top: clamp(24px, 3.5vw, 50px);
}
.era-tab {
  padding: 14px 34px; border: 0; border-radius: 999px; background: transparent;
  color: #b0b7bf; font-family: inherit; font-size: 1.35rem; font-weight: 700; letter-spacing: -0.01em;
  cursor: pointer; transition: background .2s ease, color .2s ease;
}
.era-tab:hover { color: var(--ink); }
.era-tab.active { background: var(--ink); color: #fff; }
.era-tabs + .hist-tl-wrap { margin-top: clamp(24px, 2.5vw, 36px); }
.hist-tl-wrap { padding-bottom: clamp(80px, 10vh, 140px); }
.hist-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(48px, 8.5vw, 120px); align-items: start; }
/* 좌측 단일 라벨 — 스크롤 시 텍스트가 바뀌며 고정 */
.hist-era-label {
  font-size: clamp(1.7rem, 5vw, 3.2rem); font-weight: 800; color: var(--ink);
  letter-spacing: -0.02em; text-align: right;
  position: sticky; top: calc(var(--header-h) + 144px); /* 스티키 상태: 위로 살짝 올림(잘림 방지 유지) */
  transform: translateY(calc(26px - 50%)); /* 디폴트 상태: 첫 원보다 살짝 아래로 */
}
/* 연도 텍스트만 페이드(배경 박스는 고정) */
.hist-era-inner { display: inline-block; transition: opacity .25s ease, transform .25s ease; }
.hist-era-inner.era-fade { opacity: 0; transform: translateY(10px); }
/* 전 구간을 잇는 단일 레일 (JS가 위치·높이 계산) */
.hist-tl-col { position: relative; }
.tl-rail { position: absolute; width: 2px; background: var(--line); z-index: 0; }
.tl-rail-fill { position: absolute; width: 2px; height: 0; background: var(--red); z-index: 0; }
.tl { list-style: none; margin: 0; padding: 0; position: relative; }
.tl-item { position: relative; padding: 0 0 clamp(40px, 5vw, 64px) 40px; scroll-margin-top: calc(var(--header-h) + 120px); }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ''; position: absolute; left: -6px; top: 6px; width: 14px; height: 14px; z-index: 1;
  border-radius: 50%; background: #cfd5db; transition: background .25s ease, box-shadow .25s ease;
}
.tl-item.passed::before { background: var(--red); box-shadow: 0 0 0 4px rgba(216,31,38,0.14); }
.tl-year { font-size: 1.7rem; font-weight: 800; color: var(--ink); letter-spacing: -0.02em; line-height: 1; }
.tl-events { list-style: none; margin: 16px 0 0; padding: 0; }
.tl-events li { position: relative; padding-left: 15px; color: var(--steel); line-height: 1.75; }
.tl-events li::before { content: '·'; position: absolute; left: 2px; color: var(--steel); font-weight: 800; }
@media (max-width: 768px) {
  /* 1열 grid → block: 라벨이 타임라인 전체 높이 안에서 sticky 되도록(grid 셀 갇힘 방지) */
  .hist-grid { display: block; }
  /* 연도 타이틀: era-tabs 아래 sticky로 남아 스크롤 시 텍스트 변화(asinsam식) */
  .hist-era-label {
    position: sticky; top: calc(var(--header-h) + 54px); z-index: 20;
    text-align: left; transform: none;
    background: #fff; margin: 0 0 8px; padding: 14px 0 12px;
    margin-left: calc(-1 * var(--pad)); margin-right: calc(-1 * var(--pad));
    padding-left: var(--pad); padding-right: var(--pad);
    transition: top .3s ease;
  }
  body.header-hidden .hist-era-label { top: 54px; }
  /* 연도 칩 한 줄에 모두 표기 */
  /* sticky 탭바 배경을 화면 끝까지(풀블리드) — 스크롤 시 좌우 잘림 방지 */
  /* 전체 서브페이지: 본문 첫 블록 상단 여백 24px (배너/탭바 아래 간격 통일) */
  body.subpage main > .block:first-child { padding-top: 40px; }
  /* 좌측 정렬 + 가로 스크롤(넘침 허용) — 측면 여백 최소화 + 텍스트 키움 */
  .era-tabs { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; gap: 8px; margin-left: calc(-1 * var(--pad)); margin-right: calc(-1 * var(--pad)); padding-left: 14px; padding-right: 14px; scrollbar-width: none; transition: top .3s ease; }
  /* 헤더가 숨겨지면 탭바도 상단(0)에 붙어 빈 공간(뜬 것처럼 보임) 제거 */
  body.header-hidden .era-tabs { top: 0; }
  .era-tabs::-webkit-scrollbar { display: none; }
  .era-tab { padding: 11px 17px; font-size: 1.08rem; white-space: nowrap; }
  .tl-year { font-size: 1.45rem; }
}

/* 조직도 */
.org { text-align: center; --org-line: var(--line); }
.org-top {
  display: inline-block; color: #fff;
  background: linear-gradient(70deg, rgb(164,23,0) 4%, rgb(239,64,35) 49%, rgb(164,23,0) 93%);
  padding: 16px 56px; border-radius: 0; font-weight: 800; font-size: 1.05rem; letter-spacing: 0.02em;
  position: relative;
}
.org-top::after { content: ''; position: absolute; left: 50%; transform: translateX(-50%); top: 100%; width: 2px; height: 40px; background: var(--org-line); }
/* 팀 분기 커넥터 (팀 균등 분할 → 중심이 정확히 25%/75%) */
.org-teams { display: flex; justify-content: center; gap: 32px; flex-wrap: wrap; position: relative; max-width: 860px; margin: 40px auto 0; padding-top: 40px; }
.org-teams::before { content: ''; position: absolute; top: 0; left: calc(25% - 8px); right: calc(25% - 8px); height: 2px; background: var(--org-line); }
.org-team {
  flex: 1 1 0; min-width: 240px; position: relative;
  border: 1px solid var(--line); border-radius: 0; padding: 28px 24px; background: #fff;
  box-shadow: 0 14px 34px rgba(20,24,29,0.06);
}
.org-team::before { content: ''; position: absolute; top: -40px; left: 50%; transform: translateX(-50%); width: 2px; height: 40px; background: var(--org-line); }
.org-head { display: inline-block; background: var(--ink); color: #fff; font-weight: 700; padding: 12px 34px; border-radius: 0; margin-bottom: 22px; }
.org-subs { display: flex; flex-direction: column; gap: 10px; }
.org-subs span {
  display: block; border: 1px solid var(--line); border-radius: 8px; padding: 14px;
  font-weight: 600; background: var(--surface); color: var(--ink);
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}
.org-subs span:hover { background: #fff; border-color: rgba(216,31,38,0.5); transform: translateY(-2px); }
@media (max-width: 768px) {
  .org-teams { flex-direction: column; align-items: stretch; gap: 22px; margin-top: 24px; padding-top: 0; max-width: none; }
  .org-teams::before, .org-team::before { display: none; }
  .org-top::after { height: 24px; }
}

/* BI */
.bi { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.bi-card { border-radius: 14px; padding: 40px; color: #fff; }
.bi-card.red { background: var(--red); }
.bi-card.ink { background: var(--ink); }
.bi-card .mark { font-size: clamp(1.8rem, 5vw, 2.4rem); font-weight: 800; letter-spacing: -0.03em; }
.bi-card p { color: rgba(255,255,255,0.85); margin-top: 12px; }
.bi-color { list-style: none; margin: 22px 0 0; padding: 18px 0 0; border-top: 1px solid rgba(255,255,255,0.14); display: flex; flex-direction: column; gap: 9px; font-size: 0.92rem; color: rgba(255,255,255,0.92); }
.bi-color li { display: flex; align-items: center; }
.bi-color .sw { width: 18px; height: 18px; border-radius: 5px; background: #EF413D; margin-right: 10px; box-shadow: 0 0 0 1px rgba(255,255,255,0.25); }
/* BI — 풀폭 섹션 적층 (doosanrobotics 스타일) */
.bi-sec { display: grid; grid-template-columns: 260px 1fr; gap: 60px; align-items: start; padding: clamp(44px, 5vw, 64px) 0; border-top: 1px solid var(--line); }
.bi-sec:first-of-type { border-top: 0; padding-top: 4px; }
.bi-sec-title { font-size: clamp(1.4rem, 2.4vw, 1.9rem); font-weight: 800; color: var(--ink); letter-spacing: -0.01em; margin: 0; }
.bi-sec-content { min-width: 0; }
.bi-logo-box {
  border: 1px solid var(--line); border-radius: 0; background: var(--surface);
  padding: clamp(44px, 7vw, 88px) 24px; display: flex; align-items: center; justify-content: center;
}
.bi-logo-box img { width: min(476px, 78%); height: auto; display: block; transform: translateY(-16px); }  /* 시각 무게중심(하단 쏠림) 광학 보정 */
.bi-sec-desc { color: var(--steel); line-height: 1.85; margin-top: 24px; max-width: 1100px; }
.bi-color-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 36px; align-items: stretch; }
.bi-color-text .bi-lead { font-size: 1.18rem; font-weight: 800; color: var(--ink); margin-bottom: 14px; }
.bi-color-text .bi-strong { font-weight: 700; color: var(--ink); line-height: 1.55; margin-bottom: 18px; }
.bi-color-text p { color: var(--steel); line-height: 1.85; }
.bi-color-card {
  background: #EF413D; color: #fff; border-radius: 0; padding: 30px;
  display: flex; flex-direction: column; min-height: 220px;
}
.bi-cc-name { font-size: 1.35rem; font-weight: 800; font-style: italic; margin-bottom: 16px; }
.bi-cc-spec { font-size: 0.95rem; line-height: 1.75; color: rgba(255,255,255,0.94); margin-top: auto; }
@media (max-width: 900px) { .bi-sec { grid-template-columns: 1fr; gap: 22px; } }
@media (max-width: 768px) {
  .bi-color-grid { grid-template-columns: 1fr; gap: 22px; }
  .bi-color-card { min-height: 180px; }
}

/* 인증서 갤러리 */
.cert-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 44px 28px; }
.cert-item { margin: 0; }
.cert-thumb {
  display: block; width: 100%; padding: 0; border: 1px solid var(--line); border-radius: 6px; background: #fff;
  aspect-ratio: 3/4; overflow: hidden; cursor: zoom-in;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.cert-item:hover .cert-thumb { border-color: var(--red); transform: translateY(-3px); box-shadow: 0 14px 30px rgba(20,24,29,0.10); }
.cert-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cert-item figcaption { margin-top: 12px; font-weight: 600; color: var(--ink); font-size: clamp(0.95rem, 1.1vw, 1.1rem); text-align: center; line-height: 1.45; }
/* 인증서 라이트박스 */
.cert-lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(20,24,29,0.86); display: none; align-items: center; justify-content: center; padding: 5vh 24px; }
.cert-lightbox.open { display: flex; }
.cert-lightbox img { max-width: min(92vw, 560px); max-height: 90vh; box-shadow: 0 24px 64px rgba(0,0,0,0.5); }
.cl-close { position: absolute; top: 22px; right: 26px; width: 46px; height: 46px; border: 0; border-radius: 50%; background: rgba(255,255,255,0.14); color: #fff; font-size: 1.9rem; line-height: 1; cursor: pointer; transition: background .2s ease; }
.cl-close:hover { background: rgba(255,255,255,0.28); }

/* 오시는 길 */
.map-wrap { display: grid; grid-template-columns: 1.5fr 1fr; gap: 24px; align-items: stretch; }
.map-box { border-radius: 14px; min-height: 320px; background: linear-gradient(135deg, #e3e6ea, #f5f6f8); display: grid; place-items: center; color: var(--steel); font-weight: 600; }
.map-info { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 28px; }
.map-info dt { font-weight: 700; color: var(--ink); margin-top: 16px; }
.map-info dt:first-child { margin-top: 0; }
.map-info dd { margin: 4px 0 0; color: var(--steel); }

/* 오시는 길 (doodoorim 스타일) */
.block .loc-addr { display: flex; align-items: center; gap: 12px; font-size: 2.5rem; font-weight: 800; color: var(--ink); letter-spacing: -0.02em; margin-bottom: 22px; }
.loc-addr svg { width: 34px; height: 34px; color: var(--red); flex: none; }
.loc-maps { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.loc-maps a { display: inline-flex; align-items: center; gap: 9px; padding: 11px 22px; border: 1px solid var(--line); border-radius: 999px; font-weight: 600; color: var(--ink); transition: border-color .2s ease, color .2s ease; }
.loc-maps a:hover { border-color: var(--red); color: var(--red); }
.map-logo { width: 20px; height: 20px; flex: none; }
.loc-map { border: 1px solid var(--line); overflow: hidden; }
.loc-map iframe { width: 100%; height: clamp(320px, 42vw, 520px); border: 0; display: block; }
.loc-detail { margin: 32px 0 0; border-top: 1px solid var(--line); }
.ld-row { display: flex; gap: 24px; padding: 16px 4px; border-bottom: 1px solid var(--line); }
.ld-row dt { flex: 0 0 96px; font-weight: 700; color: var(--ink); }
.ld-row dd { margin: 0; color: var(--ink); font-weight: 500; }
.ld-row dd a { color: inherit; }
.ld-row dd a:hover { color: var(--red); }
@media (max-width: 768px) {
  .loc-maps a { padding: 10px 16px; }
  .block .loc-addr { flex-direction: column; align-items: flex-start; gap: 8px; font-size: 1.5rem; }
  .loc-addr svg { width: 26px; height: 26px; }
  .ld-row dt { flex-basis: 64px; }
}
/* 좁은 화면: 지도 버튼 3개 한 줄 유지 (균등 분할) */
@media (max-width: 560px) {
  .loc-maps { flex-wrap: nowrap; gap: 7px; }
  .loc-maps a { flex: 1 1 0; min-width: 0; justify-content: center; padding: 10px 6px; font-size: 0.86rem; gap: 6px; }
  .map-logo { width: 17px; height: 17px; }
}
@media (max-width: 400px) {
  .loc-map-sfx { display: none; }        /* 초소형: '지도' 접미사 숨김 */
  .loc-maps a { font-size: 0.82rem; gap: 5px; }
}

/* =========================================================
   제품 상세 (전환 핵심 템플릿)
   ========================================================= */
.pd-top { max-width: var(--maxw); margin: 0 auto; padding: 56px var(--pad); display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.pd-gallery { display: flex; flex-direction: column; gap: 14px; }
.pd-main-img { aspect-ratio: 4/3; border-radius: 14px; background: linear-gradient(135deg, #2a3038, #14181d); }
.pd-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.pd-thumb { aspect-ratio: 1; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); cursor: pointer; transition: border-color .15s ease; }
.pd-thumb:hover { border-color: var(--steel); }
.pd-thumb.active { border-color: var(--red); border-width: 2px; }
/* 핵심정보 컬럼은 데스크탑에서 스티키 (스크롤해도 CTA 유지) */
.pd-info { position: sticky; top: calc(var(--header-h) + 24px); }
.pd-info .cat { font-size: 0.85rem; font-weight: 700; letter-spacing: 0; color: var(--red); }
.pd-info h1 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); font-weight: 800; margin: 8px 0 8px; letter-spacing: -0.02em; }
.pd-info .model { color: var(--steel); font-size: 1.02rem; }
.pd-info .model b { color: var(--ink); font-weight: 700; }
.pd-summary { list-style: none; padding: 0; margin: 26px 0; border-top: 1px solid var(--line); }
.pd-summary li { display: flex; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.pd-summary li.key { background: #fbe9ea; margin: 0 -12px; padding: 14px 12px; border-bottom-color: #f3d2d4; border-radius: 6px; }
.pd-summary .k { width: 96px; flex: none; color: var(--steel); font-weight: 600; }
.pd-summary li.key .k { color: var(--red); }
.pd-summary .v { color: var(--ink); font-weight: 700; font-feature-settings: 'tnum' 1; }
.pd-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 4px; }
/* 신뢰 배지 (CTA 하단) */
.pd-trust { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.pd-trust span { font-size: 0.85rem; font-weight: 600; color: var(--steel); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; }

/* 스펙 테이블 (텍스트 HTML — 진단문서 핵심 개선사항 / 데이터시트 감성) */
.spec-section { background: var(--surface); }
.spec-section .block { padding-top: 64px; padding-bottom: 64px; scroll-margin-top: calc(var(--header-h) + 12px); }
.spec-caption { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.spec-caption .unit { font-size: 0.85rem; color: var(--steel); font-weight: 600; }
.spec-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; font-size: 1.04rem; }
.spec-table th, .spec-table td { text-align: left; padding: 16px 22px; border-bottom: 1px solid var(--line); }
.spec-table th { width: 220px; background: var(--surface); color: var(--ink); font-weight: 700; }
.spec-table td { color: var(--ink); font-variant-numeric: tabular-nums; font-feature-settings: 'tnum' 1; }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }
.spec-table tr.key th { background: #fbe9ea; color: var(--red); }
.spec-table tr.key td { font-weight: 800; }
.spec-table .todo { color: #b0b7bf; font-style: normal; }
.spec-note { margin-top: 14px; font-size: 0.92rem; color: var(--steel); }
.spec-note strong { color: var(--ink); }

/* 생산설비 — 사진 갤러리 */
.equip-gallery { margin-bottom: 120px; }
.eq-main { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: #111; }
.eq-main img { width: 100%; height: 100%; object-fit: cover; display: block; }
.eq-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 54px; height: 54px; border: 0; border-radius: 50%; background: rgba(0,0,0,.42); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background .15s ease; }
.eq-nav:hover { background: rgba(0,0,0,.72); }
.eq-nav svg { width: 26px; height: 26px; }
.eq-prev { left: 18px; }
.eq-next { right: 18px; }
.eq-count { position: absolute; right: 16px; bottom: 14px; padding: 5px 13px; border-radius: 999px; background: rgba(0,0,0,.5); color: #fff; font-size: 0.9rem; font-weight: 500; font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }
.eq-count b { font-weight: 700; }
.eq-thumbs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-top: 12px; }
.eq-thumb { padding: 0; background: none; cursor: pointer; aspect-ratio: 16 / 9; overflow: hidden; border: 2px solid transparent; transition: border-color .15s ease, opacity .15s ease; }
.eq-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.eq-thumb { opacity: .72; }
.eq-thumb:hover { opacity: 1; }
.eq-thumb.active { border-color: var(--red); opacity: 1; }
@media (max-width: 640px) {
  .eq-thumbs { grid-template-columns: repeat(3, 1fr); }
  .equip-gallery { margin-bottom: 52px; }
  .eq-nav { width: 42px; height: 42px; }
  .eq-nav svg { width: 22px; height: 22px; }
  .eq-prev { left: 10px; }
  .eq-next { right: 10px; }
}

/* 생산설비 — 보유 설비 표 */
.equip-group { margin-top: 56px; }
.equip-group:first-of-type { margin-top: 0; }
.equip-title { display: flex; align-items: baseline; gap: 12px; margin: 0 0 40px; font-size: clamp(1.4rem, 4.5vw, 2rem); font-weight: 800; color: var(--ink); letter-spacing: -0.2px; }
.equip-title .no { color: var(--red); font-weight: 800; font-variant-numeric: tabular-nums; }
.equip-table { width: 100%; border-collapse: collapse; font-size: 1.04rem; border-top: 2px solid var(--ink); }
.equip-table th, .equip-table td { padding: 16px 22px; border-bottom: 1px solid var(--line); text-align: left; }
.equip-table thead th { background: var(--surface); color: var(--ink); font-weight: 700; }
.equip-table tbody td { color: var(--ink); font-variant-numeric: tabular-nums; font-feature-settings: 'tnum' 1; }
.equip-table tbody tr:hover td { background: #fafbfc; }
.equip-table .c { text-align: center; }
@media (max-width: 640px) {
  .equip-table { font-size: 0.95rem; }
  .equip-table th, .equip-table td { padding: 13px 12px; }
  .equip-group { margin-top: 44px; }
}

/* 태블릿: 인사말 2열 → 1열(사진 가로 풀폭), 강조 텍스트 줄바꿈 해제 */
@media (max-width: 1180px) {
  .greeting { grid-template-columns: 1fr; gap: 40px; }
  .greeting-photo { aspect-ratio: auto; width: 100%; height: clamp(300px, 36vw, 440px); min-height: 0; }
  .lead-br { display: none; }
}
@media (max-width: 1024px) {
  .bi, .map-wrap, .pd-top { grid-template-columns: 1fr; }
  .greeting-intro { margin-bottom: 48px; }
  .greeting-body .greeting-lead { font-size: 23px; }
  .pd-info { position: static; }
  .biz-grid { grid-template-columns: 1fr 1fr; }
  .cert-grid { grid-template-columns: repeat(3, 1fr); }
  /* 인사말 하단 ~ 사업분야 제목 상단 패딩 */
  .block:has(.greeting-intro) { padding-bottom: 56px; }
  .block:has(.biz-grid) { padding-top: 56px; }
}
@media (max-width: 640px) {
  .biz-grid { grid-template-columns: 1fr; }
  .cert-grid { grid-template-columns: repeat(2, 1fr); }
  .spec-table th { width: 130px; padding: 14px; }
  .spec-table td { padding: 14px; }
}

/* =========================================================
   설비현황 · 자료실 · 커뮤니티 페이지 컴포넌트
   ========================================================= */
/* 안내/주의 노트 */
.note-box { background: #fbe9ea; border: 1px solid #f3d2d4; color: #8a1c22; border-radius: 12px; padding: 16px 18px; font-size: 0.95rem; margin-bottom: 28px; }

/* 생산공정 스텝 (실제 순서 → 번호 사용) */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.process .step { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 26px 20px; }
.process .step .no { font-size: 0.85rem; font-weight: 800; color: var(--red); font-variant-numeric: tabular-nums; }
.process .step strong { display: block; margin-top: 8px; font-size: 1.1rem; color: var(--ink); }
.process .step p { font-size: 0.94rem; margin-top: 6px; }

/* 생산공정 — 아이콘 플로우 + 모션 */
/* 생산공정 — 피그마(node 50:613) 수치 기준 */
.proc2 { display: flex; flex-direction: column; gap: 62px; margin-top: 10px; }
.proc2-step {
  position: relative; display: flex; align-items: center; gap: 69px;
  background: #f3f5f8; border: 0; border-radius: 0;
  height: 259px; padding: 0 60px 0 69px;
}
/* 카드 사이 ▼ 화살표 (gap 22px 위·아래) */
.proc2-step:not(:last-child)::after {
  content: ''; position: absolute; left: 50%; bottom: -35px; transform: translateX(-50%);
  width: 0; height: 0; border-left: 9px solid transparent; border-right: 9px solid transparent;
  border-top: 13px solid #b8bdc4;
}
.proc2-circle {
  flex: none; width: 116px; height: 116px; border-radius: 50%;
  background: #fff; border: 1px solid #d9d9d9;
  display: flex; align-items: center; justify-content: center;
}
.proc2-circle img { width: 62px; height: 62px; object-fit: contain; }
.proc2-step:first-child .proc2-circle img { width: 44px; height: 44px; }
.proc2-text { width: 458px; max-width: 458px; min-width: 0; }
.proc2-no { display: flex; align-items: center; gap: 6px; margin-bottom: 12px; color: #d81f26; font-size: 16px; font-weight: 700; letter-spacing: -0.2px; }
.proc2-step h3 { margin: 0 0 8px; font-size: 32px; font-weight: 800; color: #1a1d21; letter-spacing: -0.2px; line-height: 34px; }
.proc2-step p { margin: 0; font-size: 15.5px; font-weight: 400; line-height: 25.61px; color: #41484f; }
@media (max-width: 880px) {
  .proc2-step { padding: 0 40px 0 48px; gap: 44px; }
  .proc2-text { width: auto; max-width: none; }
}
@media (max-width: 640px) {
  .proc2 { gap: 48px; }
  .proc2-step { flex-direction: column; align-items: center; text-align: center; height: auto; gap: 22px; padding: 38px 26px; }
  .proc2-text { width: 100%; }
  .proc2-no { justify-content: center; }
  .proc2-step h3 { font-size: 26px; }
  .proc2-circle { width: 104px; height: 104px; }
  .proc2-circle img { width: 54px; height: 54px; }
  .proc2-step:first-child .proc2-circle img { width: 40px; height: 40px; }
  .proc2-step:not(:last-child)::after { bottom: -31px; }
}


/* 제품자료 다운로드 리스트 */
.doc-list { display: flex; flex-direction: column; border-top: 2px solid var(--ink); }
.doc-list a { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 4px; border-bottom: 1px solid var(--line); }
.doc-list .t { font-weight: 700; color: var(--ink); }
.doc-list .meta { color: var(--steel); font-size: 0.9rem; margin-left: 12px; font-weight: 500; }
.doc-list .dl { color: var(--red); font-weight: 700; white-space: nowrap; }
.doc-list a:hover .t { color: var(--red); }

/* 공지/보도 리스트 */
.notice-list { border-top: 2px solid var(--ink); }
.notice-list a { display: flex; align-items: center; gap: 20px; padding: 20px 6px; border-bottom: 1px solid var(--line); }
.notice-list time { color: var(--steel); font-size: 0.92rem; width: 110px; flex: none; font-variant-numeric: tabular-nums; }
.notice-list .t { font-weight: 600; color: var(--ink); }
.notice-list a:hover .t { color: var(--red); }

/* 공지사항 게시판 (sghitech 참고) */
.board-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.board-count { font-size: clamp(0.98rem, 1.1vw, 1.05rem); font-weight: 700; color: var(--ink); }
.board-count b { color: var(--red); }
.board-search { display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 4px 6px 4px 20px; min-width: 300px; }
.board-search-input { border: 0; background: transparent; outline: none; font-size: clamp(0.88rem, 1vw, 0.95rem); color: var(--ink); flex: 1; min-width: 0; height: 38px; }
.board-search-input::placeholder { color: #9aa3ac; }
.board-search-btn { flex: none; width: 38px; height: 38px; border: 0; border-radius: 50%; background: var(--ink); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.board-search-btn svg { width: 18px; height: 18px; }
.board-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.board-list li { border-bottom: 1px solid var(--line); }
.board-list a:not(.doc-dl) { display: grid; grid-template-columns: 80px 1fr auto; align-items: center; gap: 24px; padding: 36px 12px; color: inherit; }
.board-list .board-no { text-align: center; color: var(--steel); font-size: clamp(0.85rem, 1vw, 0.95rem); font-weight: 600; font-variant-numeric: tabular-nums; }
.board-list .board-title { font-size: clamp(1.05rem, 1.4vw, 1.25rem); font-weight: 700; color: var(--ink); line-height: 1.5; }
.board-list .board-date { color: var(--steel); font-size: clamp(0.9rem, 1vw, 1rem); font-weight: 400; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.board-list a:hover .board-title { text-decoration: underline; text-underline-offset: 4px; }
.board-empty { padding: 60px 0; text-align: center; color: var(--steel); }

/* 제품자료 — 게시판 리스트 + 다운로드 버튼 */
.board-list.docs .board-row { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 24px; padding: 26px 12px; }
.board-list.docs .board-title { font-weight: 700; color: var(--ink); }
.doc-dl { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 10px 22px; background: transparent; color: var(--ink); border: 1px solid var(--ink); border-radius: 6px; font-size: 0.92rem; font-weight: 600; white-space: nowrap; cursor: pointer; transition: background .15s ease, color .15s ease; }
.doc-dl:hover { background: var(--ink); color: #fff; }
/* 자료 준비중 안내 토스트 */
.dl-toast { position: fixed; left: 50%; bottom: 40px; transform: translateX(-50%) translateY(12px); background: rgba(20,24,29,0.92); color: #fff; padding: 13px 22px; border-radius: 999px; font-size: 0.95rem; font-weight: 600; box-shadow: 0 12px 30px -10px rgba(0,0,0,0.4); opacity: 0; pointer-events: none; transition: opacity .25s ease, transform .25s ease; z-index: 300; }
.dl-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.doc-dl svg { width: 16px; height: 16px; }
@media (max-width: 720px) {
  .board-list.docs .board-row { grid-template-columns: 1fr auto; gap: 8px 14px; padding: 18px 8px; }
  .board-list.docs .board-date { grid-column: 1; }
}

/* 영상자료 — 게시판 리스트 변형(썸네일 + 재생) */
.board-list.video .board-row a { display: flex; gap: 28px; align-items: center; padding: 36px 8px; }
.video-thumb { position: relative; flex: none; width: 340px; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: #14181d; }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.board-row a:hover .video-thumb img { transform: scale(1.05); }
.vt-play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.vt-play svg { width: 56px; height: 56px; transition: transform .2s ease; }
.board-row a:hover .vt-play svg { transform: scale(1.12); }
.video-info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.video-cat { font-size: 1rem; font-weight: 500; color: var(--red); letter-spacing: 0; }
.board-list.video .board-title { font-size: clamp(1.2rem, 1.8vw, 1.5rem); }
.board-list.video .board-date { color: var(--steel); font-weight: 400; }
@media (max-width: 640px) {
  .board-list.video .board-row a { flex-direction: column; align-items: stretch; gap: 14px; padding: 18px 8px; }
  .video-thumb { width: 100%; }
}
/* 영상 라이트박스 */
.video-lb { position: fixed; inset: 0; background: rgba(0,0,0,0.82); display: none; align-items: center; justify-content: center; z-index: 200; padding: 24px; }
.video-lb.open { display: flex; }
.video-lb-inner { width: min(980px, 100%); }
.video-lb-frame { position: relative; aspect-ratio: 16 / 9; background: #000; display: flex; align-items: center; justify-content: center; overflow: hidden; border-radius: 8px; }
.video-lb-frame iframe { width: 100%; height: 100%; border: 0; }
.video-lb-frame img { width: 100%; height: 100%; object-fit: cover; opacity: 0.5; }
.video-lb-note { position: absolute; color: #fff; font-size: 1.05rem; font-weight: 600; background: rgba(0,0,0,0.5); padding: 12px 20px; border-radius: 8px; }
.video-lb-close { position: absolute; top: 18px; right: 22px; width: 46px; height: 46px; border: 0; background: rgba(255,255,255,0.14); color: #fff; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.video-lb-close svg { width: 20px; height: 20px; }

/* 공지사항 상세 */
.notice-view { max-width: none; margin: 0; }
.nv-head { border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line); padding: 28px 4px; }
.nv-title { font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 800; color: var(--ink); line-height: 1.35; }
.nv-meta { margin-top: 14px; color: var(--steel); font-size: 0.95rem; }
.nv-body { padding: 44px 4px 52px; border-bottom: 1px solid var(--line); color: var(--steel); line-height: 1.9; font-size: 1.05rem; white-space: pre-line; min-height: 160px; }
.nv-nav { margin-top: 0; }
.nv-nav a, .nv-nav span.disabled { display: flex; gap: 18px; align-items: center; padding: 18px 6px; border-bottom: 1px solid var(--line); }
.nv-nav .nv-rel { flex: none; width: 64px; color: var(--steel); font-weight: 700; font-size: 0.95rem; }
.nv-nav .nv-rel-title { color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nv-nav span.disabled .nv-rel-title { color: #aab0b7; }
.nv-nav a:hover .nv-rel-title { text-decoration: underline; text-underline-offset: 3px; }
.nv-actions { display: flex; justify-content: center; margin-top: 40px; }
.nv-actions .btn { min-width: 180px; }

/* 검색 입력 지우기(X) 버튼 — 공지·제품 공용 */
.search-field { position: relative; flex: 1 1 auto; min-width: 0; display: block; }
.search-field input { width: 100%; padding-right: 36px; }
/* 브라우저 기본 검색 취소(X) 버튼 숨김 — 커스텀 X와 중복 방지 */
.board-search-input::-webkit-search-cancel-button, .ps-input::-webkit-search-cancel-button,
.board-search-input::-webkit-search-decoration, .ps-input::-webkit-search-decoration { -webkit-appearance: none; appearance: none; display: none; }
.search-clear { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; padding: 0; border: 0; background: transparent; color: #9aa3ac; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; transition: color .15s ease, background .15s ease; }
.search-clear:hover { color: var(--ink); background: rgba(20,24,29,0.06); }
.search-clear svg { width: 16px; height: 16px; }
.search-clear[hidden] { display: none; }
@media (max-width: 640px) {
  .board-search { min-width: 0; width: 100%; }
  .board-list a:not(.doc-dl) { grid-template-columns: 48px 1fr; gap: 6px 14px; padding: 16px 8px; }
  .board-list .board-title { font-size: 1rem; }
  .board-list .board-no { grid-row: 1 / 3; align-self: center; font-size: 0.78rem; }
  .board-list .board-date { grid-column: 2; text-align: left; font-size: 0.78rem; }
}

/* 영상 카드 재생 배지 */
.video-card .product-media { position: relative; }
.video-card .play { position: absolute; inset: 0; margin: auto; width: 56px; height: 56px; border-radius: 50%; background: rgba(216,31,38,0.92); display: grid; place-items: center; color: #fff; font-size: 1.1rem; }

/* 갤러리 */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.gallery-grid .g { aspect-ratio: 4/3; border-radius: 12px; background: linear-gradient(135deg, #2a3038, #14181d); display: grid; place-items: center; color: rgba(255,255,255,0.5); font-size: 0.9rem; }

/* 온라인 문의 폼 */
.form { display: grid; gap: 22px; max-width: none; width: 100%; margin: 0 auto; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.field { display: flex; flex-direction: column; gap: 11px; }
.field label { font-weight: 600; font-size: 1rem; }
.field > label::after { content: '*'; color: var(--red); margin-left: 5px; font-weight: 700; }
.field.optional > label::after { content: '(선택)'; color: var(--steel); font-weight: 500; font-size: 0.82em; margin-left: 6px; }
html[lang="en"] .field.optional > label::after { content: '(Optional)'; }   /* 영문 페이지 — CSS 생성 텍스트라 생성기가 못 잡는 지점 */
.field input, .field textarea, .field select { font: inherit; font-size: 1.05rem; min-height: 58px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); }
.field input:focus, .field textarea:focus, .field select:focus { outline: 1px solid var(--ink); outline-offset: -1px; }
.field textarea { min-height: 200px; resize: vertical; }
/* 커스텀 파일 업로드 필드 */
.file-field { display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.file-native { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); border: 0; }
.file-btn { flex: none; display: inline-flex; align-items: center; height: 34px; font-size: 0.88rem; font-weight: 600; padding: 0 18px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--ink); cursor: pointer; transition: border-color .15s ease, background .15s ease; }
.file-btn:hover { background: #e6e9ed; }
.file-name { flex: 1; min-width: 0; color: var(--steel); font-size: 0.95rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-name.has { color: var(--ink); }
.file-clear { flex: none; width: 30px; height: 30px; padding: 0; border: 0; background: transparent; color: #9aa3ac; cursor: pointer; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; transition: color .15s ease, background .15s ease; }
.file-clear:hover { color: var(--ink); background: rgba(20,24,29,0.06); }
.file-clear svg { width: 16px; height: 16px; }
.file-clear[hidden] { display: none; }
.file-native:focus-visible + .file-btn { outline: 2px solid var(--ink); outline-offset: 2px; }
/* 사업자등록증 칸 아래 작은 안내(파일명만 접수됨) */
.file-hint { margin: 6px 0 0; font-size: 0.85rem; color: var(--steel); line-height: 1.5; }

/* ============ 스팸 방지용 미끼(허니팟) 칸 ============
   사람에게는 보이지 않고 봇만 채우게 두는 칸입니다.
   ⚠️ display:none 대신 화면 밖으로 밀어냅니다 — 일부 봇은 display:none 칸을 건너뛰기 때문에
      "보이지만 화면 밖" 상태로 두어야 미끼가 제대로 동작합니다. */
.hp-field { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* ============ 문의 접수 결과 안내 ============
   제출 후 app.js 가 문구를 채우고 hidden 을 풀어 줍니다.
   ok=성공(초록) / err=오류(빨강) / demo=데모 안내(회색) 세 가지 상태. */
.form-result { margin: 16px 0 0; padding: 14px 18px; border-radius: 10px; font-size: 0.98rem; line-height: 1.7; text-align: center; border: 1px solid var(--line); background: var(--surface); color: var(--steel); }
.form-result[hidden] { display: none; }
.form-result.ok { border-color: #b7e0c4; background: #f1faf4; color: #1a7f42; }
.form-result.err { border-color: #f2c2c4; background: #fdf3f3; color: var(--red); }
.form-result a { color: inherit; font-weight: 700; text-decoration: underline; }

/* 유효성 검사 오류 */
.field-error { display: none; color: var(--red); font-size: 0.88rem; margin-top: 2px; }
.field.invalid .field-error { display: block; }
.field.invalid input, .field.invalid select, .field.invalid textarea { outline: 1px solid var(--red); outline-offset: -1px; }
.field.invalid .file-field { border-color: var(--red); }
.form .agree-error { display: none; text-align: center; color: var(--red); font-size: 0.92rem; }
.form .agree-error.show { display: block; }
/* 개인정보 수집·이용 동의 — 스크롤 약관 박스 */
.agree-terms { max-height: 150px; overflow-y: auto; border: 1px solid var(--line); border-radius: 8px; padding: 18px 22px; background: var(--surface); font-size: 0.92rem; line-height: 1.75; color: var(--steel); outline: none; }
.agree-terms:focus, .agree-terms:focus-visible { outline: none; }
.agree-terms h4 { margin: 0 0 12px; font-size: 1rem; font-weight: 700; color: var(--ink); }
.agree-terms p { margin: 0 0 8px; }
.agree-terms p:last-child { margin-bottom: 0; }
.agree-terms strong { color: var(--ink); }
/* 개인정보 동의 체크박스 (커스텀) */
.form .agree { display: flex; align-items: center; justify-content: center; gap: 12px; font-size: 1.05rem; color: var(--steel); cursor: pointer; user-select: none; }
.form .agree input { appearance: none; -webkit-appearance: none; flex: none; width: 24px; height: 24px; margin: 0; border: 1.5px solid #cfd5db; border-radius: 6px; background: #fff; cursor: pointer; position: relative; transition: background .15s ease, border-color .15s ease; }
.form .agree input:checked { background: var(--red); border-color: var(--red); }
.form .agree input:checked::after { content: ''; position: absolute; left: 50%; top: 45%; width: 6px; height: 11px; border: solid #fff; border-width: 0 2px 2px 0; transform: translate(-50%, -50%) rotate(45deg); }
.form .agree input:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.form .submit { justify-self: center; min-height: 58px; padding: 0 64px; font-size: 1.1rem; font-weight: 700; margin-top: 8px; background: var(--ink); border-color: var(--ink); color: #fff; }
.form .submit:hover { background: #000; border-color: #000; }

@media (max-width: 900px) { .process { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) {
  .process { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .form .row { grid-template-columns: 1fr; }
  .notice-list a, .doc-list a { flex-direction: column; align-items: flex-start; gap: 6px; }
  .notice-list time { width: auto; }
}

/* ============ 팝업 배너 (슬라이더형) ============ */
.site-popup {
  position: fixed; inset: 0; z-index: 1200; display: flex; align-items: center; justify-content: center;
  padding: 20px; background: rgba(12, 15, 19, 0.6);
  opacity: 0; transition: opacity .3s ease;
}
.site-popup[hidden] { display: none; }
.site-popup.open { opacity: 1; }
.popup-card {
  position: relative; width: 100%; max-width: 780px; background: #fff;
  box-shadow: 0 36px 80px -24px rgba(12, 15, 19, 0.55);
  transform: translateY(16px) scale(.98); transition: transform .35s cubic-bezier(.2,.7,.2,1);
  touch-action: manipulation;
}
.site-popup.open .popup-card { transform: none; }
.popup-slider { position: relative; }
.popup-viewport { overflow: hidden; touch-action: manipulation; }
.popup-track { display: flex; transition: transform .45s cubic-bezier(.2,.7,.2,1); }
.popup-slide { flex: 0 0 100%; display: block; touch-action: manipulation; }
.popup-slide img { display: block; width: 100%; height: auto; touch-action: manipulation; }
.popup-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 42px; height: 42px; border: 0; border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, 0.14); color: #fff; transition: background .2s ease;
}
.popup-arrow:hover { background: rgba(255, 255, 255, 0.28); }
.popup-arrow svg { width: 20px; height: 20px; }
.popup-arrow.prev { left: -54px; }
.popup-arrow.next { right: -54px; }
.popup-dots { position: absolute; left: 0; right: 0; bottom: 16px; z-index: 3; display: flex; justify-content: center; gap: 7px; }
.popup-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,0.45); cursor: pointer; transition: width .25s ease, background .25s ease; }
.popup-dots button.active { width: 22px; border-radius: 4px; background: #fff; }
.popup-foot { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); padding-left: 18px; }
.popup-hide { display: flex; align-items: center; gap: 9px; border: 0; background: transparent; padding: 15px 0; font-family: inherit; font-size: 0.9rem; color: var(--steel); cursor: pointer; }
.pf-dot { width: 17px; height: 17px; border-radius: 50%; border: 1.6px solid #c4c9cf; flex: none; transition: background .2s ease, border-color .2s ease; }
.popup-hide.checked .pf-dot { background: var(--red); border-color: var(--red); }
.popup-close { border: 0; background: transparent; padding: 14px 16px; color: var(--steel); cursor: pointer; display: flex; transition: color .2s ease; }
.popup-close:hover { color: var(--ink); }
.popup-close svg { width: 18px; height: 18px; }
@media (max-width: 560px) {
  .popup-card { max-width: 90vw; }
  .popup-arrow { background: rgba(20, 24, 29, 0.42); }
  .popup-arrow.prev { left: 8px; }
  .popup-arrow.next { right: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .site-popup, .popup-card, .popup-track { transition: none; }
}

/* ============ QA: 전역 키보드 포커스 가시성 ============ */
a:focus-visible, button:focus-visible, [tabindex]:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible,
.pd-thumb:focus-visible, .ps-input:focus-visible {
  outline: 2px solid var(--red); outline-offset: 2px; border-radius: 3px;
}
/* 검색바: 알약형(999px)에 맞춰 포커스 링을 원형으로, 게시판 검색은 바 전체(래퍼)에 표시 */
.ps-input:focus-visible { border-radius: 999px; }
.board-search:focus-within { outline: 2px solid var(--red); outline-offset: 2px; border-radius: 999px; }
.board-search-input:focus, .board-search-input:focus-visible { outline: none; }
/* 문의 폼 입력칸: 포커스 시에도 기본 R값(8px) 유지 */
.field input:focus-visible, .field textarea:focus-visible, .field select:focus-visible { border-radius: 8px; }
/* 파일 선택 버튼 모바일 터치 타깃 44px */
@media (max-width: 768px) {
  .file-btn { height: 44px; padding: 0 20px; }
}

/* =========================================================
   전역 검색 (GNB 아이콘 + 시트) — 이노션 레퍼런스 감성 + CAPRO 토큰
   ========================================================= */
/* GNB 검색 버튼 — 햄버거(.hamburger)와 동일 규칙:
   자체 호버 색/배경 반응 없음, 색은 헤더 상태(투명=#fff / solid=--ink)만 따름 */
.search-toggle {
  display: flex; align-items: center; justify-content: center; width: 40px; height: 40px;
  border: none; background: transparent; color: #fff; cursor: pointer; border-radius: 8px;
  transition: color .25s ease;
}
.search-toggle svg { width: 22px; height: 22px; }
.site-header.solid .search-toggle { color: var(--ink); }
/* PC 전용: 헤더 hover 시 헤더 배경이 흰색으로 플립되는 상태 규칙 —
   GNB 링크·lang-btn과 동일하게 아이콘도 ink로 전환(흰 배경 위 흰 아이콘 방지).
   모바일(≤1024)은 헤더 플립이 없으므로 미적용 → 햄버거처럼 색 고정 */
@media (min-width: 1025px) {
  .site-header:hover .search-toggle,
  .site-header:focus-within .search-toggle { color: var(--ink); }
}

/* 시트 오버레이 */
.search-sheet { position: fixed; inset: 0; z-index: 300; }
.search-sheet[hidden] { display: none; }
.search-backdrop {
  position: absolute; inset: 0; background: rgba(20,24,29,0.5);
  opacity: 0; transition: opacity .32s ease;
}
.search-sheet.open .search-backdrop { opacity: 1; }

/* 위에서 내려오는 전폭 패널 */
.search-panel {
  position: relative; width: 100%; background: #fff;
  max-height: 100vh; max-height: 100dvh; overflow-y: auto;
  padding: clamp(40px, 6vw, 76px) var(--pad) clamp(40px, 5vw, 60px);
  box-shadow: 0 24px 60px rgba(20,24,29,0.18);
  transform: translateY(-100%);
  transition: transform .38s cubic-bezier(.2,.9,.2,1);
}
.search-sheet.open .search-panel { transform: translateY(0); }

.search-close {
  position: absolute; top: clamp(18px, 2.4vw, 30px); right: clamp(18px, 2.4vw, 40px);
  width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
  border: none; background: transparent; color: var(--ink); cursor: pointer; border-radius: 8px;
  transition: background .15s ease, color .15s ease;
}
.search-close svg { width: 26px; height: 26px; }
.search-close:hover { background: var(--surface); color: var(--red); }

.search-inner { max-width: 960px; margin: 0 auto; }

/* 중앙 대형 언더라인 입력창 */
.search-form {
  display: flex; align-items: center; gap: 14px;
  border-bottom: 2px solid var(--ink); padding-bottom: 12px;
  transition: border-color .2s ease;
}
/* 포커스 표현: 사각 아웃라인 대신 언더라인 --ink → --red 전환 (전역 QA 규칙 오버라이드, 접근성 유지) */
.search-form:focus-within { border-bottom-color: var(--red); }
.gs-field:focus, .gs-field:focus-visible { outline: none; }
.gs-field {
  flex: 1 1 auto; min-width: 0;
  border: none; outline: none; background: transparent; color: var(--ink);
  font-size: clamp(1.5rem, 3.4vw, 2.2rem); font-weight: 700; letter-spacing: -0.01em;
  line-height: 1.3; padding: 4px 0;
}
.gs-field::placeholder { color: #b3b9c0; font-weight: 600; }
/* 네이티브 검색 취소(X) 버튼 숨김 — 이노션 레퍼런스처럼 돋보기만 노출 */
.gs-field::-webkit-search-cancel-button, .gs-field::-webkit-search-decoration { -webkit-appearance: none; appearance: none; display: none; }
.search-submit {
  flex: none; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
  border: none; background: transparent; color: var(--ink); cursor: pointer; border-radius: 8px;
  transition: color .15s ease;
}
.search-submit svg { width: 26px; height: 26px; }
.search-submit:hover { color: var(--red); }

/* 추천 검색어 */
.search-suggest { margin-top: 22px; display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; }
.search-suggest[hidden] { display: none; }
.search-suggest-label { font-size: 0.95rem; font-weight: 700; color: var(--steel); }
.search-chips { display: inline-flex; flex-wrap: wrap; gap: 8px; }
.search-chip {
  border: 1px solid var(--line); background: #fff; color: var(--steel);
  border-radius: 999px; padding: 8px 16px; font-size: 0.95rem; font-weight: 600; cursor: pointer;
  transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.search-chip:hover { border-color: var(--red); color: var(--red); background: #fdeeef; }

/* 결과 */
.search-results { margin-top: 30px; }
/* 그룹 간 분리 여백 — 제품 그룹 뒤에는 .search-all(전체보기)이 끼므로 두 경우 모두 커버 */
.search-group + .search-group,
.search-all + .search-group { margin-top: 32px; }
.search-group-tit {
  font-size: 0.85rem; font-weight: 800; letter-spacing: 0.02em; color: var(--ink);
  text-transform: uppercase; margin-bottom: 6px;
}
.search-list { list-style: none; margin: 0; padding: 0; }
.search-list li { border-bottom: 1px solid var(--line); }
.search-hit {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  padding: 13px 6px; transition: background .15s ease, color .15s ease;
}
.search-hit:hover { background: var(--surface); }
/* 항목 제목: 호버 시에도 잉크 유지(행 배경 변화로 피드백) — 레드 남발 정리 */
.search-hit-name { font-size: 1.05rem; font-weight: 600; color: var(--ink); }
.search-hit-meta { flex: none; font-size: 0.85rem; color: var(--steel); white-space: nowrap; }
/* 제품 행 썸네일 — 흰 배경 제품컷이라 contain + 흰 배경 + line 테두리 (cover는 크롭 발생) */
.search-hit--prod { align-items: center; }
.search-thumb {
  flex: none; width: 48px; height: 48px; padding: 3px;
  display: flex; align-items: center; justify-content: center;
  background: #fff; border: 1px solid var(--line); border-radius: 8px; overflow: hidden;
}
.search-thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.search-thumb.noimg { background: var(--surface); color: #c2c8cf; }
.search-thumb.noimg svg { width: 20px; height: 20px; }
.search-hit-body {
  flex: 1 1 auto; min-width: 0;
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
}
.search-all {
  display: inline-block; margin-top: 12px; font-size: 0.98rem; font-weight: 700; color: var(--ink);
  border-bottom: 2px solid var(--ink); padding-bottom: 2px;
}
.search-all:hover { color: var(--steel); border-color: var(--steel); }
.search-empty { color: var(--steel); font-size: 1.05rem; margin: 8px 0 0; }

/* body 스크롤 잠금 */
body.search-open { overflow: hidden; }

/* 모바일: 사실상 풀스크린 + 입력 16px↑ (iOS 확대 방지) */
@media (max-width: 1024px) {
  /* 헤더 액션바를 다시 노출하되 검색 버튼만(언어 전환은 모바일 내비에 존재)
     space-between 3자식 중앙 배치 방지: margin-left:auto로 햄버거 바로 왼쪽에 밀착 */
  .header-actions { display: flex; margin-left: auto; margin-right: 6px; }
  .header-actions .lang-select { display: none; }
}
@media (max-width: 768px) {
  .search-panel { min-height: 100vh; min-height: 100dvh; padding-top: 72px; }
  .gs-field { font-size: 1.25rem; }        /* 20px — iOS 자동 확대 방지 */
  .search-hit { flex-direction: column; align-items: flex-start; gap: 2px; }
  .search-hit-meta { white-space: normal; }
  /* 제품 행: 썸네일은 좌측 유지, 텍스트만 세로 스택 */
  .search-hit--prod { flex-direction: row; align-items: center; gap: 12px; }
  .search-hit--prod .search-hit-body { flex-direction: column; align-items: flex-start; gap: 2px; }
  .search-all { font-size: 0.82rem; }      /* 15.68px → 13.12px (모바일 한 단계 축소) */
}

/* 상세 대표 이미지 준비 중(신규 등록 제품) */
.pd-main.pd-noimg { display:flex; align-items:center; justify-content:center; aspect-ratio:1/1; background:#eef1f4; border:1px solid var(--line); border-radius:8px; }
.pd-main.pd-noimg span { color:#9aa3ac; font-size:1rem; font-weight:600; }

/* ── 제품 탭바 "더보기(∨)" — 라벨이 한 줄을 넘치면 오른쪽에 펼침 버튼 표시(app.js 가 자동 부착).
   누르면 전체 카테고리가 여러 줄로 펼쳐진다. 넘치지 않는 화면(국문 PC 등)에선 버튼 자체가 없다. ── */
/* (참고) .prod-tabs 는 원래 sticky — sticky 도 positioned 라 ∨ 버튼(absolute) 기준이 되므로 별도 relative 불필요.
   relative 로 덮었다가 sticky 의 top 이 오프셋으로 작동해 탭바가 100px 밀리는 사고가 있었음(2026-08-27 수정). */
/* 버튼이 떠 있는 동안엔 탭 스크롤 영역 자체를 버튼 안쪽까지로 줄여,
   버튼 오른쪽으로 글자가 비져 나가지 않게 한다(양쪽 대칭 축소로 중앙 유지). */
.prod-tabs.has-more .prod-tabs-inner { max-width: min(var(--maxw), calc(100% - 188px)); padding-right: 72px; }
/* 잘림 힌트: 스크롤 위치에 따라 좌·우 가장자리 페이드 (지그재그 카테고리 바 방식)
   — 오른쪽 페이드는 (∨) 버튼 앞까지 넓게 깔려 텍스트가 버튼과 겹쳐 보이지 않게 한다. */
.prod-tabs::before, .prod-tabs::after {
  content: ''; position: absolute; top: 0; height: 80px; pointer-events: none;
  opacity: 0; transition: opacity .15s ease; z-index: 1;
}
.prod-tabs::before { left: 0; width: 72px;
  background: linear-gradient(to right, #F6F7F9 30%, rgba(246,247,249,0)); }
.prod-tabs::after { right: calc(var(--tabclip, 0px) - 8px); width: 210px;
  background: linear-gradient(to left, #F6F7F9 52%, rgba(246,247,249,0)); }
.prod-tabs.fade-left::before { opacity: 1; }
.prod-tabs.fade-right::after { opacity: 1; }
.tabs-more {
  position: absolute; z-index: 2; top: 40px; transform: translateY(-50%);
  /* 오른쪽 기준은 JS(--tabclip)가 실측한 '탭 스크롤 영역의 오른쪽 끝' — 버튼·페이드·클립이 항상 일치 */
  right: var(--tabclip, 94px);
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid #d7dce1; background: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: transform .2s ease; color: var(--steel);
}
.tabs-more svg { width: 16px; height: 16px; transition: transform .2s ease; }
.prod-tabs.tabs-open .tabs-more svg { transform: rotate(180deg); }
.prod-tabs.tabs-open .prod-tabs-inner {
  flex-wrap: wrap; overflow: visible; row-gap: 0;
  justify-content: flex-start;            /* 펼친 줄들은 왼쪽 정렬(벌어짐 방지) */
  padding-right: 110px;                   /* 접기(∧) 버튼 자리 확보 — 탭이 버튼에 안 가리게 */
}
.prod-tabs.tabs-open::after { display: none; }   /* 펼치면 페이드 숨김 */

