:root {
  --pri: #0ea5e9;
  --txt: #111;
  --mut: #666;
  --bg: #fafafa;
  --bd: #e5e7eb;
}

:root {
  --header-h: 0px;
} /* fixed 헤더 높이 넣기 예: 64px */
.has-fixed-header .hero {
  height: calc(100dvh - var(--header-h));
  height: calc((var(--vh, 1vh) * 100) - var(--header-h));
  padding-top: max(16px, env(safe-area-inset-top)); /* 노치 대응 */
}

* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;

  font-family:
    "Montserrat",
    "Noto Sans KR",
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;

  color: var(--txt);
}

.site-main section {
  margin-bottom: 32px; /* 섹션 간 간격 */
}

.wrap {
  width: 100%;
  max-width: 1500px; /* 최대 폭 */
  margin: 0 auto;
  padding-left: 20px; /* 좌우 여백 */
  padding-right: 20px;
  color: #000000;
}

/* Header */
.site-header {
  position: flex; /* 이미 fixed면 생략 가능 */
  top: 0;
  left: 0;
  right: 0;
  background: transparent;
  border-bottom: 2px solid rgba(255, 255, 255, 0.2); /* 밝은 배경 위에서 보이는 얇은 라인 */
  z-index: 100;
}
@media (max-width: 768px) {
  #gnb {
    background: #fff;
  }

  #gnb ul {
    background: #fff;
  }

  #gnb ul li a {
    color: #111 !important;
  }

  .site-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  }
}

@media (max-width: 768px) {
  body.home #siteHeader,
  body.home #gnb,
  body.home #gnb ul {
    background: #fff !important;
  }

  body.home #gnb a {
    color: #111 !important;
  }
}

.hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* 언어 선택 */
.lang-select {
  margin-left: 16px;
}

.lang-select select {
  padding: 4px 8px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
}

/* 헤더가 fixed일 때 본문 시작 여백 */
/* 메인: 헤더 아래에서 시작 + 푸터를 밀어내기 */
.below-header {
  padding-top: var(--header-h);
  min-height: calc(100vh - var(--header-h)); /* 화면 높이 꽉 채우기 */
  padding-bottom: calc(
    var(--footer-h, 0px) + 16px
  ); /* ✅ 푸터 만큼 아래 여백 */
}
/* 데스크톱(넓은 화면)에서는 햄버거 숨김 */
@media (min-width: 1025px) {
  .nav-toggle {
    display: none;
  }
}

@media (max-width: 768px) {
  .below-header {
    padding-left: 12px; /* 원하는 값 (예: 12~16px) */
    padding-right: 12px;
    box-sizing: border-box; /* 내용이 잘리지 않도록 안전하게 */
  }
}

/* 푸터는 고정시키지 않음(기본 static) — 스크롤해야 나타남 */
.site-footer {
  background: #111;
  color: #fff;
  margin-top: 40px;
}

/* 페이지 히어로(상단 밴드) */
.page-hero {
  background: #0b1020; /* 취향대로 */
  color: #fff;
  padding: 32px 0; /* 상하 여백 */
}

/* 고정 헤더 + 앵커 점프 대비 */
:target {
  scroll-margin-top: var(--header-h);
}

.wrap.hdr {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px; /* 메뉴 사이 여백도 조금 더 넉넉하게 */
  padding: 5px 28px; /* ← 헤더 높이 커짐 */
}

.gnb {
  flex: 1;

  display: flex;

  justify-content: center;
}
.nav-toggle {
  font-size: 26px;
  line-height: 1;
  border: 0;
  background: transparent;
  cursor: pointer;
  color: #fff;
  transition:
    color 0.2s ease,
    transform 0.15s ease;
}

.nav-toggle:hover {
  transform: scale(1.1);
}

.gnb ul {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* 메뉴: 버튼 느낌 완전 제거 */
.gnb a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;

  padding: 0;
  margin: 0;

  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;

  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  line-height: 1;

  text-decoration: none;
  color: inherit;

  transition: color 0.2s ease;
}

/* 일반 메뉴 underline */
.gnb a::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease;
  opacity: 0.9;
}

/* 드롭다운 있는 메뉴만 화살표 표시 */

.gnb li.has-dropdown {
  position: relative; /* ★ 핵심 */
}

.gnb li.has-dropdown > a::after {
  content: "";

  display: inline-block;

  margin-left: 8px;

  width: 0;
  height: 0;

  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid currentColor;

  transform-origin: center;
  transition: transform 0.2s ease;
}

/* 일반 메뉴 hover */
.gnb a:hover {
  color: #e11d48;
}

.gnb a:hover::before {
  transform: scaleX(1);
}

/* 드롭다운 hover 시 화살표 방향 변경 */
.gnb li.has-dropdown:hover > a::after {
  transform: rotate(180deg);
}

/* 회사명 */
.company-name {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
}

.gnb li.lang-select {
  list-style: none;
}

.gnb li.lang-select select {
  padding: 4px 6px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
}

/* ===== 헤더 hover/스크롤/히어로 없는 상세페이지: 흰색 테마 ===== */
.site-header:hover,
.site-header.scrolled,
body.no-hero .site-header {
  background: #fff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

/* 흰 배경일 때도 텍스트 메뉴 유지 */
.site-header:hover .gnb a,
.site-header.scrolled .gnb a,
body.no-hero .site-header .gnb a {
  background: transparent;
  color: #111;
  border-color: transparent;
  box-shadow: none;
}

/* 흰 배경 상태 hover */
.site-header:hover .gnb a:hover,
.site-header.scrolled .gnb a:hover,
body.no-hero .site-header .gnb a:hover {
  color: #e11d48;
}

/* underline도 흰 배경에서 정상 작동 */
.site-header:hover .gnb a:hover::before,
.site-header.scrolled .gnb a:hover::before,
body.no-hero .site-header .gnb a:hover::before {
  transform: scaleX(1);
}

/* 흰 배경일 때 모바일 토글 */
.site-header:hover .nav-toggle,
.site-header.scrolled .nav-toggle,
body.no-hero .site-header .nav-toggle {
  color: #111;
}

/* Main */
.site-main {
  min-height: 50vh;
}

.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  min-height: 100vh;
  min-height: 100dvh;

  display: grid;
  place-items: center;
  padding: 0;
  overflow: hidden;
}

.hero-rotator {
  height: 100vh;
  height: 100dvh;
  min-height: 100vh;
  min-height: 100dvh;
  color: #fff;
}

.hero-bg,
.hero-video,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-bg {
  background-size: cover;
  background-position: center;
  opacity: 0; /* JS에서 .show로 1 */
  transform: scale(1);
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0; /* JS에서 .show로 1 */
  transform: scale(1);
}

.hero-overlay {
  background: rgba(0, 0, 0, 0); /* 밝은 배경 대비 향상 */
  pointer-events: none;
  z-index: 1;
}

.hero-bg.show,
.hero-video.show {
  opacity: 1;
}

.hero-inner {
  position: relative;
  z-index: 2; /* 오버레이 위 */
  color: #fff;
  text-align: center;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}

#heroBg,
#heroVideo {
  will-change: transform, opacity;
}

.hero-dots {
  position: absolute;
  bottom: 24px; /* 조금 더 위로 띄워서 공간 확보 */
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px; /* 도트 사이 간격 */
  z-index: 2;
}

.hero-bg::after,
.hero-video::after {
  content: "";
  position: absolute;
  inset: 0; /* 위/아래/좌/우 전부 꽉 채우기 */
  background: rgba(0, 0, 0, 0.4); /* 검은색 40% 불투명 */
  pointer-events: none; /* 클릭 막지 않게 */
}

.hero-dots button {
  width: 14px; /* 도트 크기 */
  height: 14px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition:
    background 0.3s,
    transform 0.3s;
}

.hero-dots button:hover {
  background: rgba(255, 255, 255, 0.85);
  transform: scale(1.2);
}

.hero-dots button.active {
  background: #fff;
  transform: scale(1.3);
}

.hero-dots button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.hero h1 {
  margin: 0 0 10px;
}

.cta {
  margin-top: 16px;
  display: flex;
  gap: 10px;
  justify-content: center;
}
.btn {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--pri);
  color: #fff;
  text-decoration: none;
}
.btn.ghost {
  background: #fff;
  color: #333;
  border: 1px solid var(--bd);
}
.grid3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.card {
  border: 1px solid var(--bd);
  border-radius: 12px;
  padding: 20px; /* 기존 16px → 20px */
  background: #fff;
  text-decoration: none;
  color: var(--txt);
}
.card h3 {
  margin: 0 0 6px;
}

/* Page hero & content */
.page-hero {
  background: var(--bg);
  border-bottom: 1px solid var(--bd);
  padding: 24px 0;
}
.content {
  padding: 20px 0;
}
.def {
  padding: 0;
  list-style: none;
}
.def li {
  margin: 6px 0;
}
.def strong {
  display: inline-block;
  min-width: 120px;
  color: #333;
}

/* 로고 */
.logo {
  display: flex;
  align-items: center;
  gap: 10px; /* 로고와 사명 사이 간격 */
  text-decoration: none; /* 링크 밑줄 제거 */
}

.logo img {
  height: 45px; /* 로고 크기 */
  display: block;
}

.company-name {
  font-size: 1.7rem; /* 사명 글자 크기 */
  font-weight: 700;
  color: #fff; /* 초기 투명 헤더 상태에서는 흰색 */
  white-space: nowrap; /* 줄바꿈 방지 */
  transition: color 0.25s ease;
}

/* 회사명도 흰 배경 테마일 때는 검정색 */
.site-header:hover .company-name,
.site-header.scrolled .company-name,
body.no-hero .site-header .company-name {
  color: #111;
}

/* 헤더가 위에, 메뉴 패널은 그 아래 */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
}

/* 데스크톱 기본 유지 */
.gnb ul {
  display: flex;

  align-items: center;

  justify-content: center;

  gap: clamp(18px, 2.5vw, 42px);

  list-style: none;

  margin: 0;
  padding: 0;
}

/* Footer: 항상 흰글씨로 고정 + address 기본값 리셋 */
.site-footer {
  background: #111;
  color: #fff;
  margin-top: 40px;
}

.site-footer .foot {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px 20px;
}

/* 링크도 흰색 고정 */
.site-footer a {
  color: #fff;
  text-decoration: none;
}
.site-footer a:hover {
  color: #e11d48;
}

/* ✅ 핵심: address가 연하게/기울임 되는 문제 방지 */
.site-footer address {
  color: #fff !important; /* 전역 규칙 덮어쓰기 */
  font-style: normal; /* 기본 기울임 해제 */
  opacity: 1; /* 혹시 전역에서 낮춰뒀다면 복구 */
  line-height: 1.6;
}

/* address 내부 텍스트도 흰색 유지 */
.site-footer address * {
  color: #fff !important;
}

/* 회사명 강조 */
.site-footer address strong {
  font-weight: 700;
}

/* 필요 시 아주 확실하게: 푸터 전체 후손 흰색 고정 (문제 지속 시만) */
/* .site-footer, .site-footer * { color:#fff !important; } */

.site-footer .foot,
.site-footer .foot-links,
.site-footer address {
  white-space: normal; /* 줄바꿈 허용 */
  word-wrap: break-word; /* 긴 단어가 있으면 강제 줄바꿈 */
  overflow-wrap: break-word; /* 최신 브라우저용 */
}

/* 모바일: 사이드메뉴를 헤더 높이만큼 아래에서 시작 */
@media (max-width: 920px) {
  /* 데스크톱용 가로 메뉴 숨김 */
  .gnb ul {
    display: none;
  }

  /* 패널 컨테이너: 헤더 높이만큼 아래에서 슬라이드 */
  .gnb {
    position: fixed;
    top: var(--hdrH, 64px); /* 헤더 높이 변수(폴백 64px) */
    right: -105vw; /* 처음엔 화면 밖 */
    width: 100vw;
    height: calc(100% - var(--hdrH, 64px));
    background: #fff;
    box-shadow: -2px 0 12px rgba(0, 0, 0, 0.12);
    transition: right 0.3s ease;
    z-index: 90; /* 헤더(100)보다 낮게 → 토글 버튼 항상 클릭 가능 */
    display: flex;
    flex-direction: column;
    padding: 16px 16px 24px;
    overflow-y: auto;
  }
  .gnb.open {
    right: 0;
  }

  /* 메뉴 항목: 수직 배열 */
  .gnb.open ul {
    display: flex;
    flex-direction: column;
    gap: 14px;
  }
  .gnb.open li {
    list-style: none;
    width: 90%;
  }
  .gnb.open a {
    display: block;
    padding: 12px 10px;
    font-size: 1.12rem;
    font-weight: 700;
    color: #111;
    border-radius: 8px;
    transition:
      background 0.2s,
      color 0.2s;
  }
  .gnb.open a:hover {
    color: #e11d48;
    background: rgba(0, 0, 0, 0.05);
  }

  /* 모바일에서 헤더는 흰색 고정 + 토글/사명 색상 */
  .site-header {
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  }
  .company-name {
    color: #111;
  }
  .nav-toggle {
    display: block;
    color: #111;
    font-size: 26px;
    line-height: 1;
    background: transparent;
    border: 0;
    cursor: pointer;
  }
}

/* ===== 더 작은 화면(≤768px) 세부 튜닝 ===== */
@media (max-width: 768px) {
  .wrap {
    padding: 0 16px;
  }
  .hero-inner {
    padding: 40px 16px;
  }
  .site-main section {
    margin-bottom: 24px;
  }
  .card {
    padding: 16px;
  }
  body {
    font-size: 15px;
  }
  h1,
  h2,
  h3 {
    line-height: 1.3;
  }
  .logo img {
    height: 50px;
  } /* 모바일 로고 살짝 축소 */
  .company-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: #000;
    white-space: nowrap;
    transition: color 0.25s ease;
  }
  .grid3 {
    grid-template-columns: 1fr;
  } /* 3단 → 1단 */
}

@media (max-width: 768px) {
  /* 세로 리스트 */
  .gnb ul {
    display: flex;
    flex-direction: column;
  }

  .gnb ul li a {
    display: block;
    width: 100%; /* 버튼 전체폭 사용 */
    text-align: center; /* 텍스트를 가운데 정렬 */
    padding: 10px 12px; /* 여백 균형 맞추기 */
    box-sizing: border-box;
  }

  /* 내정보 li: 한 줄 전체 차지하면서 내부 콘텐츠를 가운데 정렬 */
  .gnb li.user-item {
    display: flex;
    width: 100%;
    justify-content: center; /* ← 핵심 */
    order: -1; /* 제일 위로 올림 */
  }

  /* 점검용: 불필요한 좌/우 여백 제거 */
  .gnb li.user-item .user-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 8px 0; /* 필요시 조절 */
  }
}

/* ===== 오버레이 & 스크롤락 (모바일 전용 가정) ===== */
.nav-overlay {
  padding-top: 80px;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 1000;
}
.nav-overlay.show {
  opacity: 1;
  pointer-events: auto;
}
body.nav-open {
  overflow: hidden;
}

/* ---------- Page hero (상단 밴드) ---------- */
.page-hero {
  background: white;
  color: #fff;
  padding: 48px 0;
}
.page-hero h1 {
  margin: 0;
  font-size: clamp(24px, 3vw, 36px);
}

/* ---------- Contact form 카드 ---------- */
.content.wrap {
  padding: 28px 0 60px;
}

/* 메인 버튼 래퍼: 내부 요소를 중앙 정렬 */
.MainBtnwrap {
  display: flex;
  justify-content: center; /* 수평 중앙 */
  align-items: center; /* 수직 중앙 (필요시) */
  margin: 20px 0; /* 위아래 여백 */
  text-align: center; /* fallback */
}

/* 버튼 스타일 */
.MainBtnwrap .Mainbtn {
  display: inline-block;
  padding: 12px 18px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 9999px;
  border: 1px solid #1f2937;
  background: #111827;
  color: #fff;
  cursor: pointer;
}
.MainBtnwrap .Mainbtn:hover {
  background: #367edb;
}

.form {
  max-width: 1200px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  padding: 28px;

  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

/* 라벨/필드 공통 */
.form p {
  margin: 0;
}
.form label {
  display: block;
  font-weight: 600;
  color: #111;
}
.form input,
.form textarea {
  width: 100%;
  margin-top: 8px;
  padding: 12px 14px;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  background: #fff;
  color: #111;
  font-size: 15px;
  line-height: 1.4;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

/* 포커스/호버 */
.form input:hover,
.form textarea:hover {
  border-color: #b6c0cc;
}
.form input:focus,
.form textarea:focus {
  border-color: #e11d48; /* 포인트 컬러 */
  box-shadow: 0 0 0 4px rgba(225, 29, 72, 0.15);
}

/* textarea 높이 */
.form textarea {
  min-height: 180px;
  resize: vertical;
}

/* 버튼 줄 */
.form .btn {
  margin-right: 10px;
}
.form .btn.ghost {
  border-color: #d1d5db;
}

/* 필수 표시(라벨에 required가 있을 때 별표 표시) */
.form label:has([required])::after {
  content: " *";
  color: #e11d48;
  font-weight: 700;
}

/* 도움 텍스트/에러용 (필요 시 추가로 쓰세요) */
.form .help {
  color: #6b7280;
  font-size: 13px;
  margin-top: 6px;
}
.form .error {
  color: #dc2626;
  font-size: 13px;
  margin-top: 6px;
}

/* ---------- 2열 반응형 레이아웃 ---------- */
@media (min-width: 820px) {
  .form {
    grid-template-columns: 1fr 1fr;
    gap: 18px 20px;
  }
  /* 1열 아이템들 순서대로 배치하되, 내용/버튼은 2열 전체를 차지 */
  .form p:nth-child(5),    /* 내용 */
  .form p:nth-child(6) {
    /* 버튼들 */
    grid-column: 1 / -1;
  }
}

/* ---------- 접근성/앵커 점프 보정 ---------- */
:target {
  scroll-margin-top: var(--header-h);
}

/* ---------- 제품 소개 스타일 ---------- */

/* ---------- 제품 카드: 툴바 ---------- */
.product-toolbar {
  padding: 20px 0 8px;
}
.product-toolbar .tool-row {
  display: none;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}
.product-toolbar input[type="search"],
.product-toolbar select {
  border: 1px solid #d1d5db;
  border-radius: 12px;
  padding: 10px 12px;
  background: #fff;
  color: #111;
  min-width: 220px;
}
.product-toolbar input[type="search"]:focus,
.product-toolbar select:focus {
  border-color: #e11d48;
  outline: none;
  box-shadow: 0 0 0 4px rgba(225, 29, 72, 0.12);
}

/* ---------- 제품 카드: 그리드 ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 18px;
  align-items: stretch;
}

/* ---------- 카드 ---------- */
.p-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}
.p-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.08);
  border-color: #d9dde6;
}

/* 썸네일 */
.p-thumb {
  display: flex;
  justify-content: center; /* 가로 중앙 */
  align-items: center; /* 세로 중앙 */
  overflow: hidden; /* 넘치는 부분 숨김 */
  background: #f8f9fa; /* 이미지가 작을 때 배경 */
}

.p-thumb img {
  object-fit: contain; /* 이미지 전체 표시 */
  width: 100%;
  height: 100%;
}

.p-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  background: #111;
  color: #fff;
  font-size: 12px;
  padding: 6px 8px;
  border-radius: 999px;
  opacity: 0.9;
}

/* 본문 */
.p-body {
  padding: 16px 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.p-title {
  margin: 0;
  font-size: 18px;
  line-height: 1.3;
}
.p-title a {
  color: #111;
  text-decoration: none;
}
.p-title a:hover {
  color: #e11d48;
}

.p-desc {
  margin: 0;
  color: #374151;
  min-height: 44px;
  white-space: pre-line;
}

.p-spec {
  font-family:
    ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
    monospace;
  font-size: 13px;
  color: #6b7280;
}

.p-cta {
  margin-top: auto;
  display: flex;
  gap: 8px;
}

/* 빈 상태 */
.empty-state {
  text-align: center;
  color: #6b7280;
  padding: 40px 0 60px;
}

/* 반응형 */
@media (max-width: 640px) {
  .product-toolbar .tool-row {
    flex-direction: column;
    align-items: stretch;
  }
  .product-toolbar input[type="search"],
  .product-toolbar select {
    width: 100%;
    min-width: 0;
  }
}

/* 기본 숨김 */
.p-modal.is-hidden {
  display: none;
}

/* 모달 영역 */
.p-modal {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pm-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(3px);
}
.pm-content {
  position: relative;
  z-index: 1;
  width: 90vw;
  height: 90vh; /* ✅ 화면의 90% 차지 */
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.pm-close {
  position: absolute;
  right: 16px;
  top: 12px;
  font-size: 28px;
  background: none;
  border: none;
  color: #333;
  cursor: pointer;
}

/* 본문 레이아웃 */
.pm-body {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding: 24px;
  overflow: auto;
}
.pm-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #f9fafb;
}
.pm-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pm-spec {
  font-family: ui-monospace, monospace;
  color: #444;
  font-size: 14px;
}

/* 모바일 대응 */
@media (max-width: 768px) {
  .pm-body {
    grid-template-columns: 1fr;
  }
}

/* ---------- 제품 소개 스타일 ---------- */

/* ---------- 설치사례 소개 스타일 ---------- */
/* 설치사례 툴바 */
.case-toolbar {
  padding: 20px 0 8px;
}
.case-toolbar .tool-row {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
.case-toolbar input[type="search"],
.case-toolbar select {
  border: 1px solid #d1d5db;
  border-radius: 12px;
  padding: 10px 12px;
  background: #fff;
  color: #111;
  min-width: 220px;
}
.case-toolbar input[type="search"]:focus,
.case-toolbar select:focus {
  border-color: #e11d48;
  outline: none;
  box-shadow: 0 0 0 4px rgba(225, 29, 72, 0.12);
}

/* 설치사례 그리드: 제품 카드 그리드와 동일 스펙 */
.case-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
  align-items: stretch;
}

/* 메타 라인 */
.case-card .case-meta {
  margin: 0;
  color: #6b7280;
  font-size: 13px;
}
/* ---------- 설치사례 소개 스타일 ---------- */

/* ---------- 설치사례 상세 팝업 스타일 ---------- */
/* Zoom Modal */
.zm.is-hidden {
  display: none;
}
.zm {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.zm-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(2px);
}
.zm-content {
  position: relative;
  z-index: 1;
  width: 95vw; /* ✅ 화면 가로의 90% */
  height: 95vh; /* ✅ 화면 세로의 90% */
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr;
  animation: zmIn 0.18s ease-out both;
  padding: 15px;
}
@keyframes zmIn {
  from {
    transform: scale(0.97);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
.zm-hero {
  position: relative;
  background: #ffffff;

  display: flex;
  justify-content: center; /* 가로 가운데 */
  align-items: flex-start; /* 세로 가운데 */

  overflow: auto;
}

.zm-hero img {
  max-width: 95%;

  object-fit: contain;
  display: block;
  background: #ffffff;
}

.zm-hero .p-badge {
  position: absolute;
  left: 12px;
  top: 12px;
}

.zm-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: auto; /* ✅ 내용이 길면 내부 스크롤 */
}
.zm-close {
  position: absolute;
  right: 10px;
  top: 8px;
  z-index: 2;
  border: none;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  color: #111;
}
@media (min-width: 860px) {
  .zm-content {
    grid-template-columns: 1fr 1fr;
  }
  .zm-hero {
    aspect-ratio: auto;
    height: 100%;
  }
  .zm-body {
    padding: 22px;
  }
}

/* 본 페이지 카드 스타일 재사용 */
.case-meta {
  color: #6b7280;
  font-size: 13px;
  margin: 0;
}

/* ---------- 설치사례 상세 팝업 스타일 ---------- */

/* ---------- 회사 소개용 스타일 ---------- */
.cert-section {
  margin: 40px auto 60px;
}

.cert-full {
  max-width: 1200px; /* 너무 넓으면 값 줄여도 됨 */
  margin: 0 auto;
}

.cert-full-img {
  display: block;
  width: 100%; /* 영역 가득 채우기 */
  height: auto;
  border-radius: 8px; /* 필요 없으면 삭제 */
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15); /* 필요 없으면 삭제 */
}

.cert-section h2 {
  margin-bottom: 20px;
  font-size: 20px;
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(680px, 1fr));
  gap: 20px;
}

.cert-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

.cert-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.cert-card img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

/* 라이트박스 모달 */
.cert-modal.is-hidden {
  display: none;
}
.cert-modal {
  position: fixed;
  inset: 0;
  z-index: 4000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cm-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(2px);
}
.cm-content {
  position: relative;
  z-index: 1;
  width: min(70vw, 90vh / 1.414); /* 세로 기준으로 맞춤 */
  aspect-ratio: 210 / 297; /* A4 비율 유지 */
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cm-content img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
  display: block;
}
.cm-close {
  position: absolute;
  top: 8px;
  right: 12px;
  z-index: 2;
  font-size: 28px;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  line-height: 1;
}

/* Hero intro 스타일 */
.hero-intro {
  color: #fff;
  text-align: center;
}
.hero-intro .hero-title {
  margin: 0 0 20px;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 700;
}
.hero-intro .hero-sub {
  margin: 0 auto;
  max-width: 1200px;
  line-height: 1.6;
  font-size: 18px;
  color: #030303;
}

/* ---------- 회사 소개용 스타일 ---------- */

/* ----------  R&D 소개용 스타일 ---------- */
/* R&D Hero 스타일 */
.hero-rnd {
  background: linear-gradient(180deg, #0b1020 0%, #111827 100%);
  color: #fff;
  padding: 80px 0 60px;
  text-align: center;
}

.hero-rnd .hero-title {
  margin: 0 0 20px;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 700;
  color: #fff;
}

.hero-rnd .hero-sub {
  margin: 0 auto;
  max-width: 720px;
  line-height: 1.6;
  font-size: 18px;
  color: #e5e7eb;
}

/* 인증서 카드 (회사소개 페이지와 동일 스타일 재사용) */
.cert-section {
  padding: 40px 0;
}
.cert-section h2 {
  margin-bottom: 20px;
  font-size: 20px;
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}
.cert-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}
.cert-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}
.cert-card img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* 메인화면 하단 카드 섬네일 리스트용 스타일 */

.thumb-card {
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.2s;
}
.thumb-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* 카드 레이아웃은 그대로 수평 3열 */
.grid3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

/* hover 시 나타나는 리스트 */
.thumb-list {
  opacity: 1;
  max-height: 1500px;
  overflow: hidden;
  transition:
    max-height 0.4s ease,
    opacity 0.4s ease;
}
.thumb-list.open {
  opacity: 1;
  max-height: 1500px; /* 충분히 크게 */
}

.thumb-card:hover .thumb-list {
  opacity: 1;
  max-height: 1500px; /* 충분히 늘릴 수 있음 */
}

/* 리스트 아이템 */
.thumb-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 6px 10px;
  cursor: pointer;
  transition: background 0.2s;
}
.thumb-row:hover {
  background: #f3f4f6;
}

.thumb-list .thumb-row {
  margin-bottom: 12px; /* 항목 사이 간격 */
}
.thumb-list .thumb-row:last-child {
  margin-bottom: 0; /* 마지막은 간격 제거 */
}

.thumb-img {
  flex: 0 0 80px;
  height: 60px;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid #ddd;
  background: #fff;
}
.thumb-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.thumb-img video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 4px;
}

.thumb-text {
  flex: 1;
  font-size: 14px;
  color: #333;
}

.thumb-icon {
  flex: 0 0 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 2px solid #e5e7eb;
  border-radius: 50%;
  color: #e11d48; /* SVG fill 색상 */
}

/* 비디오 팝업 스타일 */
.video-modal.is-hidden {
  display: none;
}
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vm-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(2px);
}

#vmTitle {
  padding: 8px 12px;
  color: #fff;
  font-size: 16px;
  background: rgba(0, 0, 0, 0.6);
}

.vm-content {
  position: relative;
  z-index: 1;
  width: 90vw;
  height: 90vh;
  background: #000;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.vm-close {
  position: absolute;
  top: 5px;
  right: 14px;
  background: none;
  border: none;
  font-size: 28px;
  color: #fff;
  cursor: pointer;
  z-index: 2;
}

.thumb-row.active {
  background: #fee2e2; /* 연한 빨강 배경 */
  border-color: #f87171; /* 진한 빨강 테두리 */
}

/* 공통 */
.video-modal,
.p-modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: auto;
}
.is-hidden {
  display: none !important;
  pointer-events: none;
}

/* 스택 순서: 제품 > 비디오 (원하는 대로 바꿔도 됩니다) */
.video-modal {
  z-index: 1000;
}
.p-modal {
  z-index: 1001;
}

/* 백드롭은 컨텐츠 뒤 클릭 방지 */
.vm-backdrop,
.pm-backdrop {
  position: absolute;
  inset: 0;
}

/* 컨텐츠는 자체 클릭 처리 */
.vm-content,
.pm-content {
  position: relative;
  pointer-events: auto;
}

/* 임팩트 있는 히어로 타이포 */
.hero-inner {
  position: relative;
  z-index: 2;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

/* 헤드라인: 데스크톱에서 크게 보이도록 */
.hero-inner h1 {
  font-family:
    "Pretendard",
    "Noto Sans KR",
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.01em;
  /* 기존: clamp(2.2rem, 2rem + 3vw, 5.2rem) */
  font-size: clamp(2rem, 1.7rem + 2.4vw, 4.6rem);
  margin: 0 0 0.4em 0;
}
@media (max-width: 768px) {
  .hero-inner h1 {
    font-size: clamp(1.4rem, 1.2rem + 2vw, 3rem);
    white-space: pre-line; /* 줄바꿈/공백 해석 */
    word-break: keep-all; /* 단어 단위 줄바꿈 */
  }
}

/* 서브텍스트 */
.hero-inner p {
  font-size: clamp(1.05rem, 0.9rem + 0.6vw, 1.5rem);
  line-height: 1.6;
  opacity: 0.95;
  margin: 0 0 1.2em 0;
}

/* 데스크톱에서 한 단계 더 키우기 (필요 시 값 조정) */
@media (min-width: 1200px) {
  .hero-inner h1 {
    font-size: clamp(3.2rem, 1.5rem + 4.2vw, 6rem);
  }
  .hero-inner p {
    font-size: 1.25rem;
  }
}

/* === 텍스트 등장 애니메이션 === */
.hero-inner.anim h1,
.hero-inner.anim p {
  animation: heroTextIn var(--text-anim-dur, 1100ms) ease-out both;
}
.hero-inner.anim p {
  animation-delay: 600ms; /* 문구는 헤드라인보다 약간 늦게 */
}

@keyframes heroTextIn {
  0% {
    opacity: 0;
    transform: translateY(40px);
    filter: blur(6px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

/* 모션 민감 사용자 배려 */
@media (prefers-reduced-motion: reduce) {
  .hero-inner.anim h1,
  .hero-inner.anim p {
    animation: none;
  }
}

/* 헤더 래퍼 */
.site-header .wrap.hdr {
  width: 100%;
  max-width: 1650px;

  margin: 0 auto;

  padding: 18px clamp(20px, 4vw, 48px);

  display: flex;

  align-items: center;

  justify-content: space-between; /* 핵심 */

  gap: clamp(20px, 3vw, 48px);
}

/* 메인 높이 확보 + 상단 여백 */

/* 내부 컨테이너 */
.wrap.narrow {
  max-width: 520px;
  margin: 32px auto;
}

.auth-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
  padding: clamp(16px, 2.5vw, 28px);
}

.auth-title {
  font-size: clamp(1.25rem, 1rem + 0.8vw, 1.6rem);
  font-weight: 700;
  margin: 0 0 0.8em;
}

/* 폼 요소 */
.form-grid {
  display: grid;
  gap: 12px;
}

.form-row label {
  display: block;
  font-size: 0.92rem;
  color: #374151;
  margin-bottom: 6px;
}

.input {
  width: 100%;
  font-size: 16px;
  padding: 12px 14px;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  outline: none;
}
.input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

/* 버튼: 헤더 메뉴의 ‘필’ 느낌 맞춤 */
.btn {
  display: inline-block;
  padding: 12px 18px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 9999px;
  border: 1px solid #1f2937;
  background: #111827;
  color: #fff;
  cursor: pointer;
}

.btn:hover {
  filter: brightness(1.04);
}

.btn-outline {
  background: #fff;
  color: #111827;
  border-color: #d1d5db;
}

/* 메시지 */
.alert {
  padding: 10px 12px;
  border-radius: 10px;
  margin: 10px 0 14px;
  font-size: 0.95rem;
}
.alert.err {
  background: #fff1f2;
  border: 1px solid #fecdd3;
  color: #991b1b;
}
.alert.ok {
  background: #ecfdf5;
  border: 1px solid #bbf7d0;
  color: #065f46;
}

/* 하단 보조 링크 */
.auth-help {
  margin-top: 12px;
  font-size: 0.95rem;
  color: #4b5563;
}
.auth-help a {
  color: #2563eb;
  text-decoration: underline;
}

#zmBenefit {
  white-space: pre-line;
}

.product-groups {
  display: flex;
  gap: 16px;
  position: relative;
}

/* ============================
   제품 그룹 카드 – 공통 설정
   ============================ */

/* 카드 리스트 컨테이너 */
.cta.product-groups {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  display: none !important;
}

/* 카드 하나 */
.pg-item {
  position: relative;
  width: 350px;
  height: 300px;
}
.pg-item1 {
  position: relative;
  width: 350px;
  height: 300px;
}

/* 카드 본체 */
.pg-btn {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 300px;
  padding: 0;
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid #e1e4ff;
  overflow: hidden;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  transition: 0.25s ease;
}

.pg-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.12);
}

/* 타이틀 */
.pg-title {
  padding: 10px 12px;
  text-align: center;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  background: #0b0ff3;
}

/* 이미지 영역 */
.pg-image {
  flex: 1;
  padding: 10px 16px;
  background: #f7f8fe;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.25s ease;
}

.pg-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

/* ============================
   드롭다운 메뉴 – 아래로 펼쳐짐
   ============================ */
.pg-dropdown-inline {
  list-style: none;
  margin: 0;
  padding: 0 14px;

  position: absolute;
  left: 0;
  right: 0;
  top: 55px;

  background: #ffffff;
  border: 1px solid #dce0ff;
  border-radius: 0 0 12px 12px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.1);
  box-sizing: border-box;

  max-height: 0;
  opacity: 0;
  visibility: hidden;
  overflow: hidden;

  transition:
    max-height 0.25s ease,
    opacity 0.25s ease,
    visibility 0.25s ease,
    padding 0.25s ease;
}

/* hover 시 메뉴 펼침 */
.pg-item:hover .pg-dropdown-inline {
  max-height: 160px; /* 항목 개수에 따라 조절 */
  opacity: 1;
  visibility: visible;
  padding: 10px 14px;
}

/* 목록 항목 스타일 */
.pg-dropdown-inline li a {
  display: block;
  padding: 6px 4px;
  font-size: 16px;
  font-weight: bold;
  color: #000000;
  border-radius: 4px;
  gap: "5px";
  background: #52525236;
  margin-top: 5px;
  text-decoration: none;
}

.pg-dropdown-inline li a:hover {
  background: #eef1ff;
  color: #1a2aff;
}

/* ============================
   이미지 페이드 아웃만 적용 (숨기지 않음)
   ============================ */
.pg-item:hover .pg-image {
  opacity: 0.1; /* 완전 숨김이면 0, 살짝 보이게 하려면 0.1~0.2 */
}

/* =============================== */
/* 상단 비주얼 배너 */
/* =============================== */

.case-hero-banner {
  position: relative;
  width: 100%;
  height: 260px;
  overflow: hidden;
}

.case-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-hero-title {
  position: absolute;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%);
  color: #fff;
  font-size: 42px;
  font-weight: 700;
  letter-spacing: 2px;
}

/* =============================== */
/* 메인 2-컬럼 레이아웃 */
/* =============================== */

.case-wrapper {
  padding: 40px 0;
}

.case-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 30px;
}

/* =============================== */
/* 사이드바 */
/* =============================== */

.case-sidebar {
  background: #fafafa;
  padding: 20px;
  border: 1px solid #ddd;
}

.sb-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
  padding-left: 10px;
  border-left: 6px solid #d50000;
}

.sb-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sb-menu li {
  margin: 8px 0;
}

.sb-menu li.depth-title {
  font-weight: 700;
  margin-top: 18px;
}

.sb-menu a {
  color: #333;
  text-decoration: none;
}

.sb-menu a:hover {
  color: #d50000;
}

/* =============================== */
/* 상세 콘텐츠 영역 */
/* =============================== */

/* ============================
   Business / Case 상세 공통
   ============================ */

/* 상단 비주얼 배너 */
.case-hero-banner {
  position: relative;
  width: 100%;
  height: 350px;
  background-size: cover;
  background-position: 50% 50%; /* ← 아래쪽 강조 */
  background-repeat: no-repeat;
  overflow: hidden;
}

.case-hero-inner {
  position: absolute;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%);
  text-align: center;
  color: #fff;
}

.case-hero-section {
  margin: 0 0 4px;
  font-size: 16px;
  letter-spacing: 2px;
}

.case-hero-title {
  margin: 0;
  font-size: 36px;
  font-weight: 700;
  letter-spacing: 2px;
  white-space: nowrap;
}

/* 메인 레이아웃 */
.case-detail-main {
  padding: 40px 0 60px;
}

.case-detail-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 32px;
}

/* 사이드바 */
.case-detail-sidebar {
  border: 1px solid #e5e7eb;
  background: #fafafa;
  padding: 20px 18px 24px;
  font-size: 14px;

  position: sticky;
  top: 120px; /* header 높이에 따라 조정 */
  align-self: flex-start;
}

html {
  scroll-behavior: smooth;
}

.case-all-item {
  scroll-margin-top: 140px;
}

.case-detail-sidebar a.active {
  color: #0b5cab;
  font-weight: 700;
}

.case-detail-sidebar li.active > a {
  color: #0b5cab;
  font-weight: 700;
}

.case-strong-title {
  font-size: 20px;
  font-weight: 700;
  display: block;
}
.cd-sb-title {
  margin: 0 0 16px;
  padding-left: 10px;
  border-left: 6px solid #d50000;
  font-size: 20px;
  font-weight: 700;
}

.cd-sb-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.cd-sb-menu li {
  margin: 6px 0;
}

.cd-sb-menu li.depth-title {
  font-weight: 700;
  margin-top: 14px;
}

.cd-sb-menu a {
  color: #333;
  text-decoration: none;
}

.cd-sb-menu a:hover {
  color: #d50000;
}

.cd-sb-contact {
  margin-top: 20px;
  font-size: 13px;
  line-height: 1.5;
}

.cd-sb-contact p {
  margin: 2px 0;
}

/* 우측 콘텐츠 */
.case-detail-content .case-breadcrumb {
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 12px;
}

.case-detail-content .case-breadcrumb a {
  color: #6b7280;
  text-decoration: none;
}

.case-detail-content .case-breadcrumb a:hover {
  text-decoration: underline;
}

.case-title {
  margin: 0 0 16px;
  font-size: 26px;
  font-weight: 700;
  text-align: center;
}

.case-all-title {
  font-size: 32px; /* 글씨 크기 */
  font-weight: 700; /* 굵게 */
}

.case-all-item {
  border-bottom: 1px solid #ddd;
  padding-bottom: 50px;
  margin-bottom: 50px;
}

.case-meta {
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
  font-size: 14px;
  color: #4b5563;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
}

.case-meta li strong {
  margin-right: 4px;
}

/* 본문: 이미지 + 텍스트 */
.case-detail-body {
  display: flex;
  flex-wrap: wrap;
  gap: 50px;
}

.case-inline-image {
  margin: 36px 0;
}

.case-inline-image img {
  width: auto;
  max-width: 60%;
  max-height: 500px;

  height: auto;

  border-radius: 10px;

  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

@media (max-width: 768px) {
  .case-inline-image img {
    width: 100%;
    max-width: 100%;

    height: auto;
    max-height: none;
  }
}

@media (max-width: 768px) {
  body.home #siteHeader .gnb li.has-dropdown > .dropdown-menu.grouped-menu {
    background: #ffffff !important;

    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;

    border: 1px solid #e5e7eb;

    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  }
}

.case-image {
  flex: 0 0 auto;
  max-width: 380px;
}

.case-image img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

.case-text {
  flex: 1 1 260px;
  font-size: 15px;
  line-height: 1.7;
  text-align: center;
}

/* 하단 버튼 */
.case-detail-actions {
  text-align: center;
  margin-top: 40px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center; /* 가로 가운데 정렬 */
  align-items: center;
}

.case-detail-actions .btn-outline,
.case-detail-actions .btn-primary {
  display: inline-block;
  padding: 10px 20px;
  font-size: 14px;
  text-decoration: none;
  border-radius: 4px;
}

.case-detail-actions .btn-outline {
  border: 1px solid #374151;
  color: #111827;
  background: #fff;
}

.case-detail-actions .btn-primary {
  border: 1px solid #001f60;
  background: #001f60;
  color: #fff;
}

/* 목록으로 돌아가기 */
.btn-back {
  display: inline-block;
  margin-top: 10px;
  font-size: 14px;
  text-decoration: none;
  color: #111827;
}

.btn-back:hover {
  text-decoration: underline;
}

/* 반응형 */
@media (max-width: 960px) {
  .case-detail-layout {
    grid-template-columns: 1fr;
  }
  .case-detail-sidebar {
    order: 2;
  }
  .case-detail-content {
    order: 1;
  }
  .case-hero-banner {
    height: 200px;
  }
}

/* =========================================
   Case Detail Page – 모바일 최적화
   ========================================= */

/* =========================================
   Case Detail Page – 모바일 좌우 패딩 추가
   ========================================= */
@media (max-width: 960px) {
  /* 전체 레이아웃 좌우 여백 */
  .case-detail-main .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  /* 본문 영역 */
  .case-detail-content {
    padding-left: 4px;
    padding-right: 4px;
  }

  /* 사이드바도 좌우 여백 보강 */
  .case-detail-sidebar {
    margin-top: 20px;
    padding-left: 12px;
    padding-right: 12px;
  }
}

@media (max-width: 960px) {
  /* 전체 여백 조금 줄이기 */
  .case-detail-main {
    padding: 24px 0 40px;
  }

  /* 제목 / 메타 정보 폰트 & 줄바꿈 조정 */
  .case-title {
    font-size: 22px;
    line-height: 1.4;
  }

  .case-meta {
    flex-direction: column;
    gap: 4px;
    font-size: 13px;
  }

  /* 본문: 이미지 + 텍스트를 세로로 쌓기 */
  .case-detail-body {
    flex-direction: column;
    gap: 24px;
  }

  .case-image {
    max-width: 100%;
  }

  .case-image img {
    width: 100%;
    height: auto;
    display: block;
  }

  /* 사이드바를 전체폭 박스로, 터치하기 좋게 */
  .case-detail-sidebar {
    width: 100%;
    padding: 16px 14px 18px;
    font-size: 13px;
  }

  .cd-sb-title {
    font-size: 16px;
    margin-bottom: 10px;
    padding-left: 8px;
    border-left-width: 4px; /* 모바일에서는 살짝 얇게 */
  }

  .cd-sb-menu {
    margin: 0 0 12px;
    padding: 0;
  }

  .cd-sb-menu li {
    margin-bottom: 2px;
  }

  .cd-sb-menu li a {
    display: block;
    padding: 8px 10px;
    line-height: 1.4;
  }

  /* 하단 버튼: 한 줄씩 꽉 차게 */
  .case-detail-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .case-detail-actions .btn-outline,
  .case-detail-actions .btn-primary {
    width: 100%;
    text-align: center;
  }
}

.case-detail-sidebar li.active > a,
.case-detail-sidebar li.active {
  color: #007bff;
  font-weight: 700;
}

.case-detail-sidebar li.active a {
  color: #007bff;
}

.case-detail-sidebar li.active {
  background: #eef5ff;
  padding-left: 8px;
  border-left: 3px solid #007bff;
}

/* ==========================
   메인 상단 제품 그룹 – 모바일 최적화
   ========================== */
@media (max-width: 768px) {
  /* 카드 전체 1열 + 전체폭 */
  .cta.product-groups {
    flex-direction: column;
    align-items: stretch;

    padding: 0 16px;
    justify-content: center;
    align-items: center;
  }

  .pg-item,
  .pg-item1 {
    width: 90%;
    height: auto;
  }

  /* 카드 높이 자동 (텍스트 길어져도 잘림 방지) */
  .pg-btn {
    height: auto;
    min-height: 0;
  }

  /* 드롭다운은 모바일에서 항상 펼쳐진 상태로 */
  .pg-dropdown-inline {
    position: static;
    max-height: none;
    opacity: 1;
    visibility: visible;
    padding: 8px 14px 12px;
    border-radius: 0 0 12px 12px;
    box-shadow: none;
    border-top: 1px solid #dce0ff;
  }

  /* hover 효과 무력화 (항상 열려 있으니까) */
  .pg-item:hover .pg-dropdown-inline {
    max-height: none;
    opacity: 1;
    visibility: visible;
    padding: 8px 14px 12px;
  }
}

/* 이미지가 사라지는 효과 제거 */
@media (max-width: 768px) {
  .pg-item:hover .pg-image {
    opacity: 1 !important;
  }

  /* 텍스트/박스 hover 이동 효과도 제거 */
  .pg-btn:hover {
    transform: none !important;
  }

  /* 혹시 다른 hover 스타일이 있다면 모두 안정화 */
  .pg-item:hover,
  .pg-item1:hover {
    background-color: inherit !important;
  }
}

/* =========================================
   Case Hero Title – 모바일 최적화
   ========================================= */
@media (max-width: 768px) {
  .case-hero-banner {
    height: 200px; /* 필요시 배너 높이도 살짝 줄이기 */
    background-position: center;
    background-size: cover;
  }

  .case-hero-inner {
    bottom: 20px; /* 타이틀 위치 조금 위로 */
    padding: 0 16px;
    text-align: center; /* 모바일에서는 중앙정렬이 더 안정적 */
  }

  .case-hero-title {
    font-size: 20px; /* 모바일용 텍스트 크기 ↓ */
    line-height: 1.35;
    letter-spacing: -0.3px;
    font-weight: 700;

    word-break: keep-all; /* 한국어 단어 단위로 줄바꿈 */
  }
}

/* 대문(hero 위) */

/* 메인(hero 위) */

body.home #siteHeader {
  background: transparent;
  border-bottom: none;
  box-shadow: none;
}

/* 메뉴 글자 흰색 */

body.home #siteHeader .gnb a {
  color: #fff;
}

/* 로고 밝게 */

.hero-copy {
  position: absolute;
  inset: 0;

  display: flex;

  align-items: center;
  justify-content: flex-start;

  padding-left: clamp(24px, 5vw, 60px);

  z-index: 2;
}

/* 큰 타이틀 */

.hero-title {
  font-family: "Montserrat", sans-serif;
  font-size: clamp(28px, 2vw, 52px) !important;
  font-weight: 200;
  letter-spacing: 0.04em;
  line-height: 1.1;
  text-align: left;
  min-height: calc(1.1em); /* 2줄 기준 자리 확보 */
  margin: 0 0 5px 0;

  opacity: 0;
  transform: translateY(48px);
}

.hero-desc {
  margin: 0;
  max-width: 900px;

  min-height: calc(1.5em * 3); /* 서브 3줄 정도 자리 확보 */
  text-align: left;
  font-size: clamp(14px, 1.4vw, 18px) !important;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.92);
  white-space: normal;
  word-break: keep-all;

  opacity: 0;
  transform: translateY(36px);
}

.hero-text {
  width: min(920px, calc(100vw - 120px));
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

/* 애니메이션 트리거 */

.hero-title.fade {
  animation: heroTitleRise 1.1s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

.hero-desc.fade {
  animation: heroDescRise 1s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

/* 타이틀 애니메이션 */

@keyframes heroTitleRise {
  from {
    opacity: 0;
    transform: translateY(48px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 설명 애니메이션 */

@keyframes heroDescRise {
  from {
    opacity: 0;
    transform: translateY(36px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideUpFade {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.auth-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.auth-title {
  margin: 0;
}

.auth-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid #ddd;
  border-radius: 50%;
  text-decoration: none;
  color: #111;
  font-size: 24px;
  line-height: 1;
  background: #fff;
}

.auth-close:hover {
  background: #f5f7fa;
}

.login-box .close-btn,
.register-box .close-btn {
  position: absolute;
  top: 8px;
  right: 10px;
  background: transparent;
  border: none;
  font-size: 24px;
  font-weight: bold;
  color: #666;
  cursor: pointer;
  line-height: 1;
  z-index: 10;
}
.login-box .close-btn:hover,
.register-box .close-btn:hover {
  color: #000;
}
.case-inline-image img.case-zoomable {
  cursor: zoom-in;
}

.case-image-modal.is-hidden {
  display: none;
}

.case-image-modal {
  position: fixed;
  inset: 0;
  z-index: 6000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.case-image-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(2px);
}

.case-image-viewer {
  position: relative;
  z-index: 1;
  width: 94vw;
  height: 92vh;
  background: rgba(20, 20, 20, 0.96);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

.case-image-close {
  position: absolute;
  top: 10px;
  right: 14px;
  z-index: 3;
  border: none;
  background: transparent;
  color: #fff;
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
}

.case-image-toolbar {
  position: absolute;
  top: 12px;
  left: 14px;
  z-index: 3;
  display: flex;
  gap: 8px;
}

.case-image-btn {
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-radius: 10px;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 14px;
}

.case-image-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.case-image-stage {
  width: 100%;
  height: 100%;
  overflow: hidden;
  cursor: grab;
  display: flex;
  align-items: center;
  justify-content: center;
}

.case-image-stage.dragging {
  cursor: grabbing;
}

#caseImageZoomTarget {
  max-width: none;
  max-height: none;
  transform-origin: center center;
  user-select: none;
  -webkit-user-drag: none;
  will-change: transform;
}
