/* 페이지 길이와 무관하게 세로 스크롤 영역을 항상 확보
   → 짧은 페이지 ↔ 긴 페이지 이동 시 화면이 좌우로 흔들리는 현상 방지 */
html { overflow-y: scroll; }

/* Wharfedale Pro 공개 사이트 — 기업형 라이트 스타일
   팔레트: 텍스트 #222529 / 배경 #FFFFFF / 연회색 #F7F8F9 / 선 #E4E6E9 / 보조 #767B83 / 브랜드 레드 #C8102E(절제 사용) */
:root {
  --text: #222529;
  --bg: #FFFFFF;
  --gray-bg: #F7F8F9;
  --line: #E4E6E9;
  --dim: #767B83;
  --red: #C8102E;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 90px; }
body {
  margin: 0; font-family: "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  color: var(--text); background: var(--bg); font-size: 16px; line-height: 1.65;
  -webkit-font-smoothing: antialiased; word-break: keep-all;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* ---------- 헤더 (블랙) ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: #000000; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 28px; }
.logo img { height: 40px; width: auto; display: block; }
.logo-text { font-weight: 700; font-size: 20px; letter-spacing: -0.01em; color: #fff; }
.logo-text em { font-style: normal; color: var(--red); }
.main-nav { display: flex; align-items: center; gap: 4px; }
.nav-item { position: relative; padding: 24px 15px; font-weight: 500; font-size: 15.5px; color: #E6E6E6; }
.nav-item > a { color: inherit; }
.nav-item:hover { color: #fff; }
.sub-menu {
  display: none; position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  min-width: 170px; background: #fff; border: 1px solid var(--line); border-radius: 6px;
  box-shadow: 0 6px 20px rgba(34, 37, 41, .08); padding: 8px 0;
}
.nav-item.has-sub:hover .sub-menu, .nav-item.has-sub:focus-within .sub-menu { display: block; }
.sub-menu a { display: block; padding: 9px 18px; font-size: 14.5px; color: var(--text); }
.sub-menu a:hover { background: var(--gray-bg); }
.nav-family {
  margin-left: 10px; padding: 8px 14px; border: 1px solid #4A4A4A; border-radius: 4px;
  font-size: 13.5px; color: #CFCFCF;
}
.nav-family:hover { border-color: #888; color: #fff; }
.nav-toggle { display: none; background: none; border: 0; color: #fff; font-size: 24px; }

/* ---------- 메인 배너 ---------- */
.hero-slider { position: relative; overflow: hidden; }
.hero-slide { display: none; position: relative; }
.hero-slide.active { display: block; }
.hero-slide img {
  display: block; width: 100%; height: auto;
  aspect-ratio: 12 / 5;            /* 권장 1920×800 비율 — 같은 비율로 올리면 전혀 잘리지 않음 */
  max-height: 800px; object-fit: cover;
}
@media (max-width: 700px) {
  .hero-slide img { aspect-ratio: 5 / 6; max-height: none; }  /* 모바일 권장 750×900 비율 */
}
.hero-copy {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 60px 0 44px; color: #fff;
  background: linear-gradient(transparent, rgba(0, 0, 0, .55));
}
/* 2026-10-30: .hero-copy는 .wrap(최대 1180px)도 함께 받아 그라데이션이 가운데 1180px에만 깔려 좌우에 세로 경계선이 생겼음
   → 막은 배너 전체 폭, 글자는 가운데 1180px 안(넓은 화면은 전과 같은 자리).
   화면이 1220px보다 좁으면 다른 페이지 본문(.wrap)처럼 좌우 20px(전에는 위 padding이 .wrap의 20px을 0으로 덮어 왼쪽 끝에 붙었음) */
.hero-slider .hero-copy {
  max-width: none;
  padding-left: max(20px, calc((100% - 1180px) / 2));
  padding-right: max(20px, calc((100% - 1180px) / 2));
}
.hero-copy h2, .hero-copy h1 { font-size: clamp(28px, 4.3vw, 48px); font-weight: 700; margin: 0 0 8px; line-height: 1.3; }
.hero-copy p { margin: 0; font-size: clamp(14px, 1.6vw, 17px); opacity: .92; }
.hero-link { display: block; }
.hero-dots { position: absolute; left: 0; right: 0; bottom: 148px; pointer-events: none; }
.hero-dots .wrap { display: flex; gap: 6px; pointer-events: auto; padding: 0; }  /* 제목(hero-copy)과 동일한 좌측선 */
@media (max-width: 760px) { .hero-dots { bottom: 112px; } }
/* 2026-10-30: 휴대폰에서 제목이 두 줄이면 점(제목 위 112px 고정)과 겹침 → 휴대폰은 글자 아래 여백(44px) 안으로 */
@media (max-width: 760px) { .hero-dots { bottom: 20px; } }
/* 2026-10-30: 점도 제목과 같은 왼쪽 선(가운데 1180px 안, 좁으면 20px) */
.hero-dots .wrap { max-width: none; padding: 0 max(20px, calc((100% - 1180px) / 2)); }
.hero-dots button { width: 5px; height: 5px; border-radius: 50%; border: 0; background: rgba(255,255,255,.5); padding: 0; }
.hero-dots button.active { background: #fff; }
.hero-empty { background: var(--gray-bg); border-bottom: 1px solid var(--line); padding: 64px 0; }
.hero-title { font-size: clamp(24px, 3.4vw, 34px); font-weight: 700; margin: 0 0 10px; line-height: 1.4; }
.hero-empty p { color: var(--dim); margin: 0; max-width: 620px; }

/* ---------- 섹션 공통 ---------- */
.section { padding: 64px 0; }
.section-alt { background: var(--gray-bg); }
.section-title { font-size: 30px; font-weight: 700; margin: 0 0 6px; letter-spacing: -0.01em; }
.section-title + .section-sub, .section-sub { color: var(--dim); font-size: 15px; margin: 0 0 32px; }
.section-title:not(:has(+ .section-sub)) { margin-bottom: 32px; }
.page-head { border-bottom: 1px solid var(--line); padding: 44px 0 0; }
.page-head h1 { font-size: 28px; font-weight: 700; margin: 0 0 8px; }
.page-head p { color: var(--dim); margin: 0 0 26px; font-size: 15px; }
.page-head h1:last-child { margin-bottom: 36px; }
.empty-note { color: var(--dim); text-align: center; padding: 56px 0; }

/* ---------- 카테고리 ---------- */
.category-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.category-card {
  background: #fff; border: 1px solid transparent; border-radius: 12px; padding: 26px 24px;
  min-height: 118px; display: flex; flex-direction: column; justify-content: space-between;
  box-shadow: 0 1px 3px rgba(23, 25, 30, .05), 0 6px 18px rgba(23, 25, 30, .05);
  transition: box-shadow .25s ease;
}
.category-card:hover { box-shadow: 0 2px 6px rgba(23, 25, 30, .06), 0 14px 30px rgba(23, 25, 30, .11); }
.category-img { display: flex; align-items: center; justify-content: center; height: 112px; margin: -4px 0 14px; overflow: hidden; }
.category-img img { max-width: 100%; max-height: 100%; object-fit: contain; transition: transform .3s ease; }
.category-card:hover .category-img img { transform: scale(1.05); }
.category-name { font-size: 18px; font-weight: 700; }
.category-more { font-size: 13.5px; color: var(--dim); }
.section-alt .category-card { border-color: transparent; }

/* ---------- 제품 카드 ---------- */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.product-card {
  background: #fff; border: 1px solid transparent; border-radius: 12px; overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: 0 1px 3px rgba(23, 25, 30, .05), 0 6px 18px rgba(23, 25, 30, .05);
  transition: box-shadow .25s ease;
}
.product-card:hover { box-shadow: 0 2px 6px rgba(23, 25, 30, .06), 0 14px 30px rgba(23, 25, 30, .11); }
.product-thumb { position: relative; aspect-ratio: 1; background: #F2F3F5; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.product-thumb img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: contain; padding: 24px; transition: transform .3s ease; }
.product-card:hover .product-thumb img { transform: scale(1.05); }
.no-image { position: relative; z-index: 1; }
.badge { z-index: 2; }
@media (prefers-reduced-motion: reduce) {
  .product-card, .product-thumb img, .category-card, .category-img img, .case-card, .case-thumb img { transition: none; }
  .product-card:hover .product-thumb img, .category-card:hover .category-img img, .case-card:hover .case-thumb img { transform: none; }
}
.no-image { color: #C2C6CB; font-size: 13px; }
.badge { position: absolute; top: 10px; left: 10px; font-size: 11.5px; font-weight: 700; padding: 3px 8px; border-radius: 3px; color: #fff; }
.badge-new { background: var(--red); }
.badge-disc { background: #8B9096; }
.badge-eol { background: #D97706; }
.badge-prep { background: #2E6FD8; }
.product-info { padding: 16px 18px 20px; }
.product-series { font-size: 12.5px; color: var(--dim); display: block; margin-bottom: 1px; }
.product-info strong { font-size: 16px; font-weight: 700; display: block; }
.product-info p { margin: 5px 0 0; font-size: 13.5px; color: var(--dim); min-height: 1.3em;
  overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.product-price { display: block; margin-top: auto; padding-top: 10px; font-weight: 700; font-size: 15.5px; }
/* 목록 카드 VAT 표시: 제품 상세 .price-meta 와 같은 글씨(13px, 회색) */
.product-price .price-meta { font-weight: 400; margin-left: 4px; white-space: nowrap; }
/* 정렬 안정화: 문구 길이·시리즈 유무와 무관하게 가격을 카드 하단에 정렬 */
.product-info { flex: 1; display: flex; flex-direction: column; }

/* ---------- 메인 브랜드 소개 ---------- */
.intro-section { background: var(--gray-bg); }
.intro-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px;
  max-width: 1040px; margin: 44px auto 0; text-align: center;
}
.intro-item .intro-icon {
  display: flex; justify-content: center; align-items: flex-end;
  height: 64px; margin-bottom: 20px;
}
.intro-item h3 { font-size: 18px; font-weight: 700; margin: 0 0 12px; }
.intro-item p {
  font-size: 14.5px; line-height: 1.85; color: var(--dim); margin: 0 auto; max-width: 320px;
}
@media (max-width: 760px) {
  .intro-grid { grid-template-columns: 1fr; gap: 36px; margin-top: 32px; }
}

/* ---------- 서브 페이지 배너 ---------- */
.sub-hero {
  background: #1B1D22 center / cover no-repeat; color: #fff;
  /* 높이·제목 위치 완전 고정: 설명 유무와 무관하게 영문/국문 제목이 항상 같은 자리 */
  height: 230px; padding: 0; overflow: hidden;
}
.sub-hero .wrap { width: 100%; padding-top: 76px; }
@media (max-width: 760px) {
  /* 설명이 두 줄로 넘어가면 아래 탭 줄에 잘리지 않도록 높이만 늘어남(제목 위치는 그대로) */
  .sub-hero { height: auto; min-height: 176px; padding-bottom: 22px; }
  .sub-hero .wrap { padding-top: 52px; }
  .sub-hero h1 { font-size: 26px; }
}
.sub-hero-en { margin: 0 0 6px; font-size: 13px; font-weight: 600; letter-spacing: 0.18em;
  text-transform: uppercase; color: rgba(255, 255, 255, .62); }
.sub-hero h1 { margin: 0; font-size: 32px; font-weight: 700; letter-spacing: -0.01em; }
.sub-hero-desc { margin: 10px 0 0; font-size: 14.5px; color: rgba(255, 255, 255, .78); }
.page-head-tabs { padding: 22px 0 0; }

/* ---------- 공지사항 ---------- */
.notice-table { width: 100%; border-collapse: collapse; border-top: 2px solid var(--text); }
.notice-table th { font-size: 13.5px; color: var(--dim); font-weight: 500; padding: 13px 10px;
  border-bottom: 1px solid var(--line); }
.notice-table td { padding: 14px 10px; border-bottom: 1px solid var(--line); font-size: 15px; }
.notice-table .nt-no { width: 80px; text-align: center; color: var(--dim); }
.notice-table .nt-date { width: 120px; text-align: center; color: var(--dim); font-size: 13.5px; }
.notice-table .nt-views { width: 80px; text-align: center; color: var(--dim); font-size: 13.5px; }
.notice-table tbody tr { transition: background-color .15s ease; }
.notice-table tbody tr:hover { background: #F6F7F9; }
.notice-table tbody tr:hover .nt-title a { color: var(--red); }
.notice-table .nt-title a:hover { text-decoration: underline; }
.tag { display: inline-block; font-size: 12px; font-weight: 700; line-height: 1;
  padding: 5px 9px 4px; border-radius: 3px; vertical-align: middle; }
.tag-red { background: var(--red); color: #fff; }
.paging { display: flex; gap: 6px; justify-content: center; margin-top: 26px; }
.paging a { min-width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: 6px; font-size: 14px; color: var(--dim); }
.paging a.active { background: #222222; border-color: #222222; color: #fff; }
.notice-view header { border-top: 2px solid var(--text); border-bottom: 1px solid var(--line); padding: 18px 6px; }
.notice-view h2 { margin: 0 0 8px; font-size: 22px; }
.notice-meta { margin: 0; font-size: 13.5px; color: var(--dim); }
.notice-body { padding: 26px 6px 10px; min-height: 160px; }
.notice-home { list-style: none; margin: 24px 0 0; padding: 0; border-top: 2px solid var(--text); }
.notice-home li a { display: flex; justify-content: space-between; gap: 18px; padding: 15px 6px;
  border-bottom: 1px solid var(--line); }
.notice-home li a { transition: background-color .15s ease; }
.notice-home li a:hover { background: #F6F7F9; }
.notice-home li a:hover .nh-title { color: var(--red); }
.notice-home li a:hover .nh-title { text-decoration: underline; }
.nh-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; }
.nh-date { color: var(--dim); font-size: 13.5px; flex: none; }
.notice-home .empty-note { padding: 28px 6px; border-bottom: 1px solid var(--line); }
@media (max-width: 760px) {
  .sub-hero { min-height: 160px; padding: 24px 0; }
  .sub-hero h1 { font-size: 25px; }
  .notice-table .nt-views { display: none; }
}

/* ---------- 카테고리 탭 (목록 상단) ---------- */
.cat-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.cat-tabs a {
  padding: 9px 18px; font-size: 14.5px; font-weight: 500;
  border: 1px solid var(--line); border-radius: 100px; color: var(--dim); background: #fff;
}
.cat-tabs a:hover { border-color: #C9CDD2; color: var(--text); }
.cat-tabs a.active { background: #222222; border-color: #222222; color: #fff; font-weight: 700; }
.list-back { margin: 10px 0 0; }

/* ---------- 시리즈 탭 ---------- */
.series-tabs { display: flex; gap: 22px; flex-wrap: wrap; }
.series-tabs a { padding: 12px 2px; font-size: 15px; color: var(--dim); border-bottom: 2px solid transparent; }
.series-tabs a.active { color: var(--text); font-weight: 700; border-bottom-color: var(--text); }
.series-tabs a:hover { color: var(--text); }

/* ---------- 제품 목록: 왼쪽 2차 사이드바 ---------- */
.products-layout { display: flex; gap: 40px; align-items: flex-start; }
.pside { width: 215px; flex: 0 0 215px; position: sticky; top: 86px; }
.pside-nav { border-top: 2px solid var(--text); }
.pside-nav a { display: block; padding: 11px 4px; font-size: 14.5px; color: var(--dim);
  border-bottom: 1px solid var(--line); line-height: 1.45; }
.pside-nav a:hover { color: var(--text); }
.pside-nav a.active { color: var(--red); font-weight: 700; }
.pside-nav a.sub { padding-left: 22px; font-size: 13.5px; background: #FAFAFB; position: relative; }
.pside-nav a.sub::before { content: '\2514'; position: absolute; left: 8px; color: #B9BCC2; font-size: 11px; }
.plist { flex: 1; min-width: 0; }
.plist .product-grid { grid-template-columns: repeat(3, 1fr); }

/* ---------- 제품 상세 ---------- */
.preview-bar { background: #FFF4DE; color: #8a5a00; border-bottom: 1px solid #F0DCAD; text-align: center; padding: 9px; font-size: 13.5px; }
.breadcrumb { font-size: 13px; color: var(--dim); margin-bottom: 28px; }
.breadcrumb a:hover { text-decoration: underline; }
.detail-top { display: grid; grid-template-columns: 1.05fr 1fr; gap: 52px; margin-bottom: 56px; }
.gallery-main { aspect-ratio: 1; background: #fff; border: 1px solid var(--line); border-radius: 8px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; padding: 26px; }
.gallery-thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.gallery-thumbs button { width: 66px; height: 66px; padding: 4px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.gallery-thumbs button.active { border-color: var(--text); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: contain; }
.detail-summary h1 { font-size: 30px; font-weight: 700; margin: 8px 0 4px; }
.detail-summary .tagline { color: var(--dim); font-size: 16.5px; margin: 0 0 24px; }
.detail-summary .badge { position: static; display: inline-block; }
.price-box { border-top: 2px solid var(--text); border-bottom: 1px solid var(--line); padding: 18px 2px; margin-bottom: 24px; display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.price-label { font-size: 14px; color: var(--dim); }
.price-value { font-size: 26px; font-weight: 700; }
.price-meta { font-size: 13px; color: var(--dim); }
.feature-list { margin: 0 0 28px; padding: 0; list-style: none; }
.feature-list li { padding: 8px 0 8px 16px; position: relative; font-size: 15px; border-bottom: 1px solid var(--gray-bg); }
.feature-list li::before { content: "·"; position: absolute; left: 2px; font-weight: 700; color: var(--dim); }
.btn-primary {
  display: inline-block; background: var(--red); color: #fff; font-weight: 700;
  padding: 13px 30px; border: 0; border-radius: 4px; font-size: 15px;
}
.btn-primary:hover { background: #AC0E27; }
.btn-ghost { display: inline-block; border: 1px solid #C9CDD2; border-radius: 4px; padding: 8px 18px; font-size: 13.5px; color: var(--text); white-space: nowrap; }
.btn-ghost:hover { border-color: var(--text); }

.detail-tabs { display: flex; gap: 0; border-bottom: 1px solid var(--line); margin-bottom: 30px; }
.tab-btn { background: none; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; padding: 13px 22px; font-size: 15.5px; color: var(--dim); }
.tab-btn.active { color: var(--text); font-weight: 700; border-bottom-color: var(--text); }
.tab-panel { display: none; margin-bottom: 52px; }
.tab-panel.active { display: block; }
.rich-content { max-width: 840px; }
.rich-content img { margin: 16px 0; border-radius: 6px; max-width: 100%; height: auto; }
.rich-content iframe { max-width: 100%; }
.rich-content table { border-collapse: collapse; width: 100%; }
.rich-content td, .rich-content th { border: 1px solid var(--line); padding: 8px 12px; }
.spec-table-wrap { overflow-x: auto; }
.spec-table { border-collapse: collapse; width: 100%; font-size: 15px; border-top: 2px solid var(--text); }
.spec-table .spec-group-row th { background: #1B1D22; color: #fff; font-size: 14px;
  padding: 10px 14px; letter-spacing: .01em; }
.spec-table th { text-align: left; width: 210px; background: var(--gray-bg); font-weight: 500; border-bottom: 1px solid var(--line); padding: 11px 16px; vertical-align: top; }
.spec-table td { border-bottom: 1px solid var(--line); padding: 11px 16px; }
.related-title { margin-top: 14px; }

/* ---------- 자료실 ---------- */
.dl-filter { display: flex; gap: 8px; margin-bottom: 26px; flex-wrap: wrap; }
.dl-filter select, .dl-filter input {
  padding: 11px 14px; border: 1px solid var(--line); border-radius: 4px; font-size: 14.5px; font-family: inherit; background: #fff;
}
.dl-filter input[type=search] { flex: 1; min-width: 220px; }
.download-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--text); }
.download-list li { display: flex; align-items: center; gap: 16px; padding: 15px 10px; border-bottom: 1px solid var(--line); font-size: 14.5px;
  transition: background-color .15s ease; }
.download-list li:hover { background: #F6F7F9; }
.download-list li:hover .dl-title { color: var(--red); }
.dl-type { flex: 0 0 auto; font-size: 12.5px; color: var(--dim); background: var(--gray-bg); border: 1px solid var(--line); border-radius: 3px; padding: 2px 9px; }
.dl-title { flex: 1; font-weight: 500; }
.dl-models { display: block; font-weight: 400; color: var(--dim); font-size: 12.5px; margin-top: 2px; }
.dl-meta { color: var(--dim); font-size: 13px; white-space: nowrap; }

/* ---------- 본문 페이지 ---------- */
.page-content h3 { font-size: 19px; margin: 32px 0 10px; }
.page-content ul { padding-left: 20px; }

/* ---------- 푸터 (블랙, Info/문의/SNS 3단) ---------- */
.site-footer { background: #000000; color: #ABABAB; margin-top: 56px; }
.footer-inner { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 36px; padding: 48px 20px 40px; }
.footer-col h4 { color: #fff; font-size: 16px; font-weight: 700; margin: 0 0 16px; }
.footer-col dl { margin: 0; font-size: 13.5px; }
.footer-col dt { color: #7E7E7E; margin-bottom: 2px; }
.footer-col dd { margin: 0 0 12px; color: #CFCFCF; line-height: 1.6; }
.footer-tel { font-size: 17px; font-weight: 700; color: #fff; }
.footer-links-col { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.footer-family {
  display: inline-block; border: 1px solid #4A4A4A; border-radius: 4px;
  padding: 10px 18px; font-size: 13.5px; color: #CFCFCF; min-width: 180px;
}
.footer-family:hover { border-color: #888; color: #fff; }
.footer-sns { display: flex; gap: 14px; flex-wrap: wrap; }
.footer-sns a { font-size: 13.5px; color: #ABABAB; }
.footer-sns a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid #333; padding: 18px 0; font-size: 12.5px; color: #7E7E7E; }
.footer-bottom .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ---------- 시공사례 ---------- */
.section-head-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.case-card {
  background: #fff; border: 1px solid transparent; border-radius: 12px; overflow: hidden;
  box-shadow: 0 1px 3px rgba(23, 25, 30, .05), 0 6px 18px rgba(23, 25, 30, .05);
  transition: box-shadow .25s ease;
}
.case-card:hover { box-shadow: 0 2px 6px rgba(23, 25, 30, .06), 0 14px 30px rgba(23, 25, 30, .11); }
.case-thumb { position: relative; aspect-ratio: 16 / 10; background: var(--gray-bg); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.case-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.case-card:hover .case-thumb img { transform: scale(1.05); }
.case-cat {
  position: absolute; top: 10px; left: 10px; background: rgba(34, 34, 34, .82); color: #fff;
  font-size: 12px; padding: 3px 10px; border-radius: 3px;
}
.case-info { padding: 14px 16px 17px; }
.case-info strong { font-size: 16px; display: block; }
.case-info p { margin: 4px 0 0; font-size: 13px; color: var(--dim);
  overflow: hidden; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; }
.case-head h1 { font-size: 28px; font-weight: 700; margin: 0 0 12px; }
.case-meta { display: flex; gap: 8px 28px; flex-wrap: wrap; margin: 0 0 26px; padding: 14px 2px;
  border-top: 2px solid var(--text); border-bottom: 1px solid var(--line); font-size: 14.5px; }
.case-meta dt { color: var(--dim); margin-right: 8px; }
.case-meta dd { margin: 0; font-weight: 500; }
.case-meta dt, .case-meta dd { display: inline; }
.case-gallery { margin-bottom: 34px; }
.case-gallery-main { aspect-ratio: 16 / 9; background: var(--gray-bg); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.case-gallery-main img { width: 100%; height: 100%; object-fit: contain; }  /* 원본 사진 전체가 보이게(빈 곳은 회색 배경) */
.case-desc { margin-bottom: 36px; }
.case-back { margin: 0; }

/* ---------- 문의 스트립 ---------- */
.inquiry-strip { background: var(--gray-bg); border-top: 1px solid var(--line); padding: 44px 0; }
.inquiry-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.inquiry-inner h2 { font-size: 26px; font-weight: 700; margin: 0 0 4px; }
.inquiry-inner p { margin: 0; color: var(--dim); }
.inquiry-inner p strong { color: var(--text); font-size: 18px; margin-left: 6px; }

/* ---------- 접근성 ---------- */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 2px solid var(--text); outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* ---------- 반응형 ---------- */
@media (max-width: 960px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .plist .product-grid { grid-template-columns: repeat(2, 1fr); }
  .case-grid { grid-template-columns: repeat(2, 1fr); }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .detail-top { grid-template-columns: 1fr; gap: 30px; }
}
@media (max-width: 1080px) {
  .header-inner { height: 60px; }
  .nav-toggle { display: block; }
  .main-nav {
    display: none; position: absolute; top: 60px; left: 0; right: 0;
    background: #000000; flex-direction: column; align-items: stretch; padding: 6px 0 16px;
    box-shadow: 0 12px 22px rgba(0, 0, 0, .3);
  }
  .main-nav.open { display: flex; }
  .nav-item { padding: 13px 20px; }
  /* 하위 메뉴: 기본 접힘, 메인 항목 탭 시 펼침 (아코디언) */
  .main-nav .has-sub { padding: 0; }
  .main-nav .has-sub > a {
    display: flex; align-items: center; justify-content: space-between;
    padding: 13px 20px;
  }
  .main-nav .has-sub > a::after {
    content: ''; width: 8px; height: 8px; flex: none; margin-left: 12px;
    border-right: 2px solid #ABAFB5; border-bottom: 2px solid #ABAFB5;
    transform: rotate(45deg); transition: transform .15s;
  }
  .main-nav .has-sub.open > a::after { transform: rotate(225deg); }
  .sub-menu { position: static; transform: none; display: none; border: 0; box-shadow: none;
    background: rgba(255, 255, 255, .04); padding: 4px 0; }
  /* 모바일은 터치 기준: 마우스 호버·포커스로는 절대 열리거나 닫히지 않음 */
  .main-nav .nav-item.has-sub:hover .sub-menu,
  .main-nav .nav-item.has-sub:focus-within .sub-menu { display: none; }
  .main-nav .nav-item.has-sub.open .sub-menu,
  .main-nav .nav-item.has-sub.open:hover .sub-menu,
  .main-nav .nav-item.has-sub.open:focus-within .sub-menu { display: block; }
  .sub-menu a { color: #CFCFCF; padding: 11px 20px 11px 36px; }
  .sub-menu a:hover { background: transparent; color: #fff; }
  .nav-family { margin: 10px 20px 0; text-align: center; }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .products-layout { flex-direction: column; gap: 18px; }
  .pside { width: 100%; flex: none; position: static; }
  .pside-nav { display: flex; overflow-x: auto; border-top: 0; border-bottom: 1px solid var(--line);
    padding-bottom: 2px; -webkit-overflow-scrolling: touch; }
  .pside-nav a { white-space: nowrap; border-bottom: 2px solid transparent; padding: 9px 11px; }
  .pside-nav a.active { border-bottom-color: var(--red); }
  .pside-nav a.sub { background: none; padding-left: 11px; }
  .pside-nav a.sub::before { content: ''; }
  .plist .product-grid { grid-template-columns: repeat(2, 1fr); }
  .case-grid { grid-template-columns: 1fr; }
  .download-list li { flex-wrap: wrap; gap: 6px 12px; }
  .dl-title { flex-basis: 100%; order: -1; }
}


/* ---------- 반응형 안전장치: 관리자 입력 콘텐츠 넘침 방지 ---------- */
.rich-content { overflow-wrap: break-word; word-break: keep-all; }
.rich-content img, .rich-content video { max-width: 100%; height: auto; }
.rich-content iframe { max-width: 100%; }
.rich-content iframe[src*="youtube"], .rich-content iframe[src*="youtu.be"], .rich-content iframe[src*="vimeo"] {
  width: 100%; aspect-ratio: 16 / 9; height: auto;
}
.rich-content table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; }
.rich-content pre { max-width: 100%; overflow-x: auto; }
.spec-table-wrap, .notice-table-wrap { overflow-x: auto; }
.notice-table { min-width: 560px; }


/* ---------- 팝업 안내문 ---------- */
.popup-overlay {
  position: fixed; inset: 0; z-index: 1000; background: rgba(16, 17, 20, .48);
  display: flex; align-items: center; justify-content: center; gap: 18px;
  flex-wrap: wrap; padding: 24px; overflow-y: auto;
}
.popup-overlay.hidden { display: none; }
.popup-card {
  position: relative; background: #fff; border-radius: 10px; width: 100%;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .3); overflow: hidden;
  display: flex; flex-direction: column; max-height: calc(100vh - 60px);
}
.popup-card.hidden { display: none; }
.popup-x {
  position: absolute; top: 8px; right: 8px; z-index: 2; width: 34px; height: 34px;
  border: 0; border-radius: 50%; background: rgba(16, 17, 20, .55); color: #fff;
  font-size: 20px; line-height: 1; cursor: pointer;
}
.popup-x:hover { background: rgba(16, 17, 20, .8); }
.popup-link { display: block; color: inherit; }
.popup-img { display: block; width: 100%; height: auto; }
.popup-body { padding: 26px 24px 20px; font-size: 14.5px; line-height: 1.8; overflow-y: auto; }
.popup-body h3 { margin: 0 0 10px; font-size: 18px; }
.popup-foot {
  display: flex; border-top: 1px solid var(--line); margin-top: auto;
}
.popup-foot button {
  flex: 1; padding: 13px 10px; border: 0; background: #fff; cursor: pointer;
  font-size: 13.5px; color: var(--dim); font-family: inherit;
}
.popup-foot button:hover { background: var(--gray-bg); color: var(--text); }
.popup-foot .popup-close { border-left: 1px solid var(--line); font-weight: 500; color: var(--text); }
@media (max-width: 760px) {
  .popup-overlay { align-items: flex-start; padding: 16px; }
  .popup-card { max-width: 100% !important; }
}

/* 추천 제품: 카테고리 칩 */
.feat-tabs { display: flex; gap: 8px; justify-content: flex-start; flex-wrap: wrap; margin: -6px 0 26px; }
.feat-tabs button { border: 1px solid var(--line); background: #fff; border-radius: 999px;
  padding: 9px 20px; font-size: 14px; color: var(--dim); cursor: pointer; font-family: inherit; }
.feat-tabs button:hover { border-color: var(--text); color: var(--text); }
.feat-tabs button.active { background: var(--text); border-color: var(--text); color: #fff; }
.feat-empty { text-align: center; padding: 26px 0 6px; }
@media (max-width: 760px) {
  .feat-tabs { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; }
  .feat-tabs button { white-space: nowrap; }
}

/* 자료실: 검색창 */
.dl-search { display: flex; gap: 8px; align-items: center; margin: 4px 0 26px; max-width: 520px; }
.dl-search input[type="search"] { flex: 1; padding: 11px 14px; border: 1px solid var(--line); border-radius: 8px; font-size: 14.5px; }
.dl-clear { font-size: 13px; color: var(--dim); text-decoration: underline; white-space: nowrap; }

/* 기본 페이지: 스크롤 페이드 인 */
.fx-fade { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; will-change: opacity, transform; }
.fx-fade.fx-on { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .fx-fade { opacity: 1; transform: none; transition: none; } }

/* 메뉴 7항목이 중간 폭에서 잘리지 않도록 단계적 축소 */
.main-nav { flex-wrap: nowrap; }
.nav-item { white-space: nowrap; }
@media (max-width: 1280px) {
  .nav-item { padding: 24px 8px; font-size: 14px; }
  .header-inner { gap: 16px; }
}

/* 히어로: 영상·외부영상 배너 */
.hero-slide video.hero-media { display: block; width: 100%; aspect-ratio: 12 / 5; object-fit: cover; background: #000; }
.hero-embed { position: relative; aspect-ratio: 12 / 5; overflow: hidden; background: #000; }
.hero-embed iframe { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 100%; height: 56.25vw; min-height: 100%; border: 0; }
.hero-link .hero-embed iframe { pointer-events: none; }  /* 링크 배너는 클릭=이동 */
@media (max-width: 700px) {
  .hero-slide video.hero-media { aspect-ratio: 5 / 6; }
  .hero-embed { aspect-ratio: 5 / 6; }
  .hero-embed iframe { width: 214%; height: 100%; }
}

.intro-icon img { height: 56px; width: auto; max-width: 110px; object-fit: contain; display: inline-block; }

/* 서브 배너 글자: 진입 시 1회 순차 페이드 인 (위치 고정 유지 — transform만 사용) */
@keyframes subHeroFade {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}
.sub-hero .sub-hero-en { opacity: 0; animation: subHeroFade .6s ease .05s forwards; }
.sub-hero h1           { opacity: 0; animation: subHeroFade .6s ease .17s forwards; }
.sub-hero .sub-hero-desc { opacity: 0; animation: subHeroFade .6s ease .29s forwards; }
@media (prefers-reduced-motion: reduce) {
  .sub-hero .sub-hero-en, .sub-hero h1, .sub-hero .sub-hero-desc { opacity: 1; animation: none; }
}

/* 헤더: 내리면 숨고 올리면 나타남 — 투명도를 함께 전환해 부드럽게 */
.site-header { transition: transform .32s ease, opacity .32s ease, background-color .25s ease, box-shadow .25s ease; }
.site-header.nav-hidden { transform: translateY(-100%); opacity: 0; }
/* 스크롤 중 재등장한 헤더: 반투명 + 블러 */
.site-header.nav-float { background: rgba(0, 0, 0, .84);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 1px 14px rgba(0, 0, 0, .18); }
@media (prefers-reduced-motion: reduce) { .site-header { transition: none; } }

/* 메인 스크롤 페이드(fx) 종료 후, 카드의 그림자 전환을 내부 페이지와 동일하게 복원 */
.product-card.fx-fade.fx-on, .category-card.fx-fade.fx-on, .case-card.fx-fade.fx-on {
  transition: box-shadow .25s ease;
}
@media (prefers-reduced-motion: reduce) {
  .product-card.fx-fade.fx-on, .category-card.fx-fade.fx-on, .case-card.fx-fade.fx-on { transition: none; }
}

/* 메인 배너 글자: 슬라이드마다 왼쪽에서 오른쪽으로 진입 */
@keyframes heroTextIn {
  from { opacity: 0; transform: translateX(-30px); }
  to   { opacity: 1; transform: none; }
}
.hero-slide.active .hero-copy h2, .hero-slide.active .hero-copy h1 { animation: heroTextIn .65s ease .12s both; }
.hero-slide.active .hero-copy p  { animation: heroTextIn .65s ease .27s both; }

/* 메인 배너 우측 하단: 스크롤 다운 안내 */
.hero-scroll {
  position: absolute; right: 30px; bottom: 44px; z-index: 5;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  background: none; border: 0; padding: 0; cursor: pointer;
  color: #fff; text-shadow: 0 1px 6px rgba(0, 0, 0, .45);
}
.hero-scroll span { writing-mode: vertical-rl; font-size: 11.5px; letter-spacing: .22em; font-weight: 600; }
.hero-scroll i {
  display: block; width: 1px; height: 44px; background: rgba(255, 255, 255, .38);
  position: relative; overflow: hidden; box-shadow: 0 1px 4px rgba(0, 0, 0, .3);
}
.hero-scroll i::after {
  content: ''; position: absolute; left: 0; top: -40%; width: 100%; height: 40%;
  background: #fff; animation: heroScrollHint 1.6s ease-in-out infinite;
}
@keyframes heroScrollHint {
  0%   { top: -40%; }
  70%  { top: 100%; }
  100% { top: 100%; }
}
@media (max-width: 760px) { .hero-scroll { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .hero-slide.active .hero-copy h2, .hero-slide.active .hero-copy h1, .hero-slide.active .hero-copy p { animation: none; }
  .hero-scroll i::after { animation: none; top: 30%; }
}

/* 메인 배너 미등록 시 기본 슬라이드 배경 (배너 이미지와 같은 비율) */
.hero-default-bg {
  display: block; width: 100%; aspect-ratio: 12 / 5; max-height: 800px;
  background:
    radial-gradient(ellipse 60% 70% at 78% 35%, rgba(214, 40, 40, .30), transparent 60%),
    radial-gradient(ellipse 50% 60% at 15% 90%, rgba(255, 255, 255, .07), transparent 60%),
    #0B0B0C;
}
@media (max-width: 700px) { .hero-default-bg { aspect-ratio: 5 / 6; max-height: none; } }

/* 404 안내 페이지 (404.php) */
.notfound { text-align: center; padding: 96px 0 104px; }
.notfound-code { margin: 0 0 6px; font-size: 64px; font-weight: 700; line-height: 1; letter-spacing: -0.02em; color: var(--red); }
.notfound h1 { margin: 0 0 14px; font-size: 26px; font-weight: 700; }
.notfound-desc { margin: 0 0 32px; color: var(--dim); font-size: 15px; }
.notfound-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.notfound-actions .btn-ghost { padding: 12px 22px; font-size: 15px; }
@media (max-width: 760px) {
  .notfound { padding: 64px 0 72px; }
  .notfound-code { font-size: 52px; }
  .notfound h1 { font-size: 22px; }
}

/* 개인정보처리방침 (privacy.php) */
.policy { max-width: 860px; font-size: 15px; }
.policy h3 { font-size: 17px; }
.policy table { margin: 10px 0 18px; font-size: 14.5px; }
.policy th { background: var(--gray-bg); font-weight: 500; text-align: left; }
.policy-blank { color: var(--red); font-weight: 500; }

/* 헤더 검색 아이콘·검색창 (partials/header.php) */
.header-inner > .logo { margin-right: auto; }   /* 메뉴·검색 아이콘을 오른쪽에 모음 */
.nav-search-btn {
  flex: none; display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%; color: #E6E6E6;
}
.nav-search-btn:hover, .nav-search-btn[aria-expanded="true"] { color: #fff; background: rgba(255, 255, 255, .1); }
.header-search {
  position: absolute; top: 100%; left: 0; right: 0; padding: 16px 0;
  background: #000000; border-top: 1px solid #1E1E1E; box-shadow: 0 12px 22px rgba(0, 0, 0, .3);
}
.header-search[hidden] { display: none; }
.header-search-form { display: flex; gap: 8px; align-items: center; max-width: 760px; }
.header-search-form input[type="search"] {
  flex: 1; min-width: 0; padding: 11px 14px; border: 1px solid #3A3A3A; border-radius: 8px;
  font-family: inherit; font-size: 15px; color: var(--text); background: #fff;
}
.header-search-form .btn-primary { flex: none; padding: 11px 24px; }
.header-search-close { flex: none; width: 40px; height: 40px; background: none; border: 0; color: #ABAFB5; font-size: 18px; }
.header-search-close:hover { color: #fff; }
@media (max-width: 1080px) {
  .header-inner { gap: 4px; }
  .nav-search-btn { order: 2; }
  .nav-toggle { order: 3; padding: 0 0 0 8px; }
  .header-search { padding: 12px 0; }
  .header-search-form input[type="search"] { font-size: 16px; }  /* iOS 입력 시 화면 확대 방지 */
  .header-search-form .btn-primary { padding: 11px 16px; }
  .header-search-close { width: 32px; }
}

/* 제품 검색 결과 (search.php) — 카드는 제품 목록·시공사례와 같은 것 사용 */
.search-form { max-width: 640px; }
.search-form input[type="search"] { font-family: inherit; }
.search-summary { margin: 0 0 30px; font-size: 15px; color: var(--dim); }
.search-summary strong, .search-empty-title strong { color: var(--text); }
.search-group-title { margin: 0 0 18px; font-size: 20px; font-weight: 700; }
.search-group-title span { margin-left: 4px; color: var(--red); }
.search-group-cases { margin-top: 56px; }
.search-more-note, .search-note-inline { margin: 22px 0 0; font-size: 14px; color: var(--dim); }
.search-note-inline a { color: var(--text); text-decoration: underline; }
.search-empty { text-align: center; padding: 40px 0 8px; }
.search-empty-title { margin: 0 0 12px; font-size: 18px; font-weight: 500; }
.search-empty-sub { margin: 0; font-size: 14.5px; color: var(--dim); }
.search-empty em, .search-tips em { font-style: normal; color: var(--text); font-weight: 500; }
.search-tips { display: inline-block; margin: 4px 0 28px; padding: 0; list-style: none; text-align: left; font-size: 14.5px; color: var(--dim); }
.search-tips li { padding: 3px 0 3px 14px; position: relative; }
.search-tips li::before { content: "·"; position: absolute; left: 2px; font-weight: 700; }
.search-suggest { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--line); text-align: center; }
.search-suggest p { margin: 0 0 14px; font-size: 14.5px; color: var(--dim); }
.search-suggest .cat-tabs { justify-content: center; margin-bottom: 0; }
@media (max-width: 760px) {
  .search-summary { margin-bottom: 22px; }
  .search-group-cases { margin-top: 44px; }
  .search-empty { padding-top: 24px; }
}
@media (max-width: 760px) {
  .search-form input[type="search"] { font-size: 16px; }   /* iOS 입력 시 화면 확대 방지 */
}

/* 8. 푸터 "구매·견적 문의" 제목을 구매·견적 문의 페이지 링크로 (2026-10-30) */
.footer-col dt a.footer-purchase-link { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.footer-col dt a.footer-purchase-link:hover { color: #fff; }

/* 푸터 맨 아래 줄: 개인정보처리방침 링크(2026-10-30). 법정 안내라 다른 글자와 구분되게 굵은 흰색 */
.footer-bottom a.footer-privacy { color: #fff; font-weight: 700; margin-right: 14px; }
.footer-bottom a.footer-privacy:hover { text-decoration: underline; text-underline-offset: 3px; }
