/* ㈜페스 홈페이지 - 공통 스타일 */

@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.css");
@import url("https://fonts.googleapis.com/css2?family=Nanum+Brush+Script&family=Roboto:wght@400;500;700;900&family=Space+Grotesk:wght@400;500;600;700&display=swap");

:root {
  --red: #E1251B;
  --red-light: #FF6A5E;
  --bg-dark: #0E1319;
  --bg-darker: #0A0F16;
  --bg-panel: #12161C;
  --bg-card: #141A22;
  --border-dark: #1E2731;
  --text-white: #ffffff;
  --text-dim: #8A96A2;
  --text-body-light: #C4CBD3;

  /* 라이트/다크 공용 테마 토큰 (기본값 = 다크) */
  --text-heading: #ffffff;
  --chip-bg: rgba(255, 255, 255, 0.08);
  --chip-text: #ffffff;
  --surface-tint: rgba(255, 255, 255, 0.03);
  --outline-border: rgba(255, 255, 255, 0.5);
  --footer-text: #B4BAC1;
  --footer-text-quiet: #5C636B;
  --footer-divider: #3A4048;
  --hover-tint: rgba(255, 255, 255, 0.06);
  --neu-shadow-dark: rgba(0, 0, 0, 0.5);
  --neu-shadow-light: rgba(255, 255, 255, 0.035);
  --glass-bg: rgba(20, 26, 34, 0.72);
  --glass-border: rgba(255, 255, 255, 0.08);
}

:root[data-theme="light"] {
  --bg-dark: #F5F6F8;
  --bg-darker: #ECEDF1;
  --bg-panel: #FFFFFF;
  --bg-card: #ffffff;
  --border-dark: #E4E6EA;
  --text-dim: #767B82;
  --text-body-light: #363A40;
  --text-heading: #14171B;
  --chip-bg: rgba(20, 23, 30, 0.055);
  --chip-text: #14171B;
  --surface-tint: rgba(20, 23, 30, 0.03);
  --outline-border: rgba(20, 23, 30, 0.28);
  --footer-text: #6B7078;
  --footer-text-quiet: #AEB2B8;
  --footer-divider: #E4E6EA;
  --hover-tint: rgba(20, 23, 30, 0.045);
  --neu-shadow-dark: rgba(160, 163, 170, 0.5);
  --neu-shadow-light: rgba(255, 255, 255, 0.95);
  --glass-bg: rgba(255, 255, 255, 0.72);
  --glass-border: rgba(20, 23, 30, 0.08);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Roboto', 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
  background: var(--bg-panel);
  color: var(--text-body-light);
  line-height: 1.6;
}

#page-fade {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

#page-fade.page-loaded {
  opacity: 1;
  transform: translateY(0);
}

#page-fade.page-leaving {
  opacity: 0 !important;
  transform: translateY(-28px) !important;
}

img { display: block; max-width: 100%; }

.eyebrow {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--red);
  text-transform: uppercase;
}

/* ===== NAV (라이트/다크 테마 반응형 — 히어로/보드 상단바와 함께 전환) ===== */
.site-header {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 52px 40px 26px;
}

.nav-left {
  display: contents;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-name {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
  font-size: 26px;
  letter-spacing: 0.01em;
  color: var(--text-heading);
}

.brand-sub {
  font-family: inherit;
  font-size: 22px;
  font-weight: 600;
  line-height: 1;
  color: var(--text-body-light);
}

.main-nav {
  display: contents;
  font-size: 22px;
  font-weight: 600;
}

.nav-item {
  position: relative;
}

.main-nav > .nav-item > a {
  color: var(--text-body-light);
  text-decoration: none;
  padding-bottom: 4px;
}

.main-nav > .nav-item > a.active {
  color: var(--text-heading);
  border-bottom: 2px solid var(--red);
}

/* 상단 메뉴 호버 드롭다운 — 헤더의 흰색 배경이 소메뉴 높이만큼 함께 확장 */
.hero .site-header::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 0;
  background: #fff;
  box-shadow: 0 18px 28px rgba(21,24,31,0.08);
  opacity: 0;
  transition: height 0.22s ease, opacity 0.16s ease;
  pointer-events: none;
  z-index: 0;
}

.hero .site-header:has(.nav-item:hover)::after,
.hero .site-header:has(.nav-item:focus-within)::after {
  height: 220px;
  opacity: 1;
}

.brand,
.nav-item,
.nav-right {
  position: relative;
  z-index: 1;
}

.nav-dropdown {
  position: absolute;
  top: 100%;
  left: -16px;
  margin-top: 6px;
  display: flex;
  flex-direction: column;
  min-width: 184px;
  padding: 4px 0;
  background: none;
  border: none;
  box-shadow: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  z-index: 2;
}
.nav-item:hover .nav-dropdown,
.nav-item:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown a {
  position: relative;
  display: flex;
  align-items: center;
  padding: 6px 20px 6px 24px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text-body-light);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s ease, background 0.15s ease;
}
.nav-dropdown a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 3px;
  border-radius: 0 2px 2px 0;
  background: var(--red);
  transform: scaleY(0);
  transition: transform 0.15s ease;
}
.nav-dropdown a:hover { background: var(--hover-tint); color: var(--text-heading); }
.nav-dropdown a:hover::before { transform: scaleY(1); }

.nav-cta {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: #151A20;
  color: #fff;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.nav-cta .dl-icon {
  width: 16px;
  height: 16px;
  background: var(--red);
  border-radius: 3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
}

/* 카달로그 바로가기 버튼 */
.catalog-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--chip-bg);
  color: var(--chip-text);
  border-radius: 7px;
  font-size: 13px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
}
.catalog-link-icon { font-size: 14px; line-height: 1; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 30px;
  height: 30px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-heading);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== RIGHT SECTION RAIL ===== */
.section-rail {
  position: fixed;
  right: 28px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-end;
  z-index: 30;
}

.section-rail a {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.section-rail .label {
  font-family: 'Roboto', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.82);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9), 0 0 10px rgba(0, 0, 0, 0.65);
  transition: color 0.2s ease, transform 0.2s ease;
}

.section-rail .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.9);
  background: rgba(10, 15, 22, 0.5);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.75);
  transition: transform 0.2s ease, background 0.2s ease;
}

.section-rail a:hover .label,
.section-rail a.active .label {
  color: #fff;
  transform: translateX(-2px);
}
.section-rail a.active .dot {
  background: var(--red);
  border-color: #fff;
  transform: scale(1.35);
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  padding: 13px 14px 13px 26px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  text-decoration: none;
  border: none;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}
.btn:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

.btn-primary { background: var(--red); color: #fff; }
.btn-primary .arrow { background: rgba(255, 255, 255, 0.25); }

.btn-outline {
  background: transparent;
  color: var(--text-heading);
  border: 1.4px solid var(--outline-border);
}
.btn-outline .arrow { border: 1px solid var(--outline-border); }

.arrow {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ===== HERO (main page, 라이트/다크 테마 반응형) ===== */
.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(120% 90% at 78% 0%, rgba(225,37,27,0.18) 0%, rgba(225,37,27,0) 55%),
    linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-panel) 55%, var(--bg-darker) 100%);
}

.hero-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #f5f7f9;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background: #f3f4f5;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}

.hero-slide:nth-child(1) { background: #eef3f7; }
.hero-slide:nth-child(2) { background: #f2f3f3; }
.hero-slide:nth-child(3) { background: #f1f1ef; }
.hero-slide:nth-child(4) { background: #d8c4ad; }

.hero-slide.is-active { opacity: 1; }

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transform: scale(1.01);
  transition: transform 7s ease-out;
}

.hero-slide.is-active img { transform: scale(1); }

/* 메인 슬라이드 모션 미리보기: ?motion-preview=1 에서만 활성화 */
html.hero-motion-preview .hero-slide {
  transition-duration: 0.8s;
}

html.hero-motion-preview .hero-slide img {
  width: calc(100% + 20px);
  max-width: none;
  margin-left: -10px;
  transform: translateX(8px);
  transition: transform 3s ease-out;
}

html.hero-motion-preview .hero-slide:nth-child(even) img {
  transform: translateX(-8px);
}

html.hero-motion-preview .hero-slide.is-active:nth-child(odd) img {
  transform: translateX(-8px);
}

html.hero-motion-preview .hero-slide.is-active:nth-child(even) img {
  transform: translateX(8px);
}

.hero-image-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.16) 0%, rgba(255,255,255,0.04) 46%, rgba(255,255,255,0) 72%),
    linear-gradient(180deg, rgba(255,255,255,0.12) 0%, rgba(255,255,255,0) 24%);
}

.hero .site-header {
  z-index: 3;
}

.hero .hero-content {
  z-index: 2;
}

.hero .site-header {
  background: #fff;
  box-shadow: 0 1px 0 rgba(21,24,31,0.10), 0 8px 24px rgba(21,24,31,0.05);
}

.hero .main-nav > .nav-item > a.active,
.hero .brand-name,
.hero .hero-content h1 { color: #15181f; }

.hero .brand-sub,
.hero .main-nav > .nav-item > a,
.hero .nav-dropdown a,
.hero .hero-content p { color: #505861; }

.hero .btn-outline {
  color: #15181f;
  border-color: rgba(21,24,31,0.42);
  background: rgba(255,255,255,0.36);
}

.hero .btn-outline .arrow { border-color: rgba(21,24,31,0.42); }

.hero .nav-toggle span { background: #15181f; }

.hero .catalog-link {
  background: #f1f3f5;
  color: #20252b;
}

.hero-content {
  position: relative;
  margin-top: auto;
  padding: 0 40px 150px;
  max-width: 640px;
}

.hero-content h1 {
  font-family: inherit;
  font-weight: 700;
  font-size: 64px;
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--text-heading);
}

.hero-content h1 .fes-letter {
  color: var(--red);
  font-weight: 800;
}

.hero-content p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-body-light);
  margin-top: 22px;
  max-width: 560px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 30px;
}

/* ===== generic full-bleed section (index.html — 라이트/다크 테마 반응형) ===== */
.section {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 100px 40px;
  overflow: hidden;
  background: var(--bg-panel);
}

.section-heading {
  position: relative;
  text-align: center;
}

.section-heading h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 46px;
  letter-spacing: 0.04em;
  color: var(--text-heading);
}

.section-heading p {
  font-size: 15px;
  color: var(--text-dim);
  margin-top: 12px;
}

/* ===== PRODUCTS grid (index.html, 라이트/다크 테마 반응형) ===== */
.product-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 36px;
  margin-top: 60px;
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}

.product-card { text-align: center; }

.product-icon {
  height: 60px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  color: var(--text-heading);
}

.product-card h3 {
  font-size: 19px;
  font-weight: 700;
  color: var(--text-heading);
  margin-top: 20px;
}

.product-card p {
  font-size: 13px;
  line-height: 1.65;
  color: var(--text-dim);
  margin-top: 12px;
}

/* ===== BUSINESS (index.html, 사진 배경 섹션 내부 — 항상 고정) ===== */
.business-body {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin: 44px auto 0;
  align-items: center;
  max-width: 1060px;
  width: 100%;
}

.business-card {
  background: var(--red);
  padding: 26px 42px;
  border-radius: 6px;
  box-shadow: 0 30px 60px -25px rgba(225, 37, 27, 0.5);
  z-index: 2;
  margin-right: -40px;
}

.business-card .kicker { font-size: 14px; color: #FFCFC9; margin-top: 6px; }
.business-card h3 { font-size: 22px; font-weight: 800; color: #fff; }
.business-card p { font-size: 14px; line-height: 1.75; color: rgba(255,255,255,0.92); margin-top: 20px; max-width: 470px; }

.business-media {
  height: 360px;
  border-radius: 6px;
  overflow: hidden;
  background: #D8DADD;
}
.business-media img { width: 100%; height: 100%; object-fit: cover; }

.pill-link {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  margin-top: 26px;
  padding: 11px 12px 11px 24px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}
.pill-link .arrow { background: #fff; color: var(--red); }

/* ===== NEWS (index.html, 고유 배색 — 항상 고정) ===== */
.news-section {
  background: linear-gradient(180deg, #8F7052 0%, #C29B6C 100%);
  padding-bottom: 90px;
}

.news-card {
  position: relative;
  background: #fff;
  border-radius: 4px;
  padding: 56px 52px;
  max-width: 860px;
  margin: 0 auto;
  box-shadow: 0 30px 70px -30px rgba(10, 16, 24, 0.5);
}

.news-grid {
  display: grid;
  grid-template-columns: 0.5fr 1fr 1fr 1fr;
  gap: 34px;
}

.news-heading { display: flex; flex-direction: column; align-items: flex-start; }

.news-grid h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 44px;
  color: #1E2225;
  letter-spacing: -0.01em;
}

.news-more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 16px;
  font-size: 13px;
  font-weight: 700;
  color: var(--red);
}
.news-more .arrow { width: 18px; height: 18px; border: 1px solid var(--red); }

.news-item {
  border-top: 2px solid #E6E7E9;
  padding-top: 16px;
}
.news-item.first { border-top-color: #1E2225; }

.news-item h4 { font-size: 15px; font-weight: 700; color: #1E2225; line-height: 1.4; }
.news-item h4 a { color: inherit; text-decoration: none; }
.news-item h4 a:hover { color: var(--red); }
.news-item p { font-size: 12.5px; line-height: 1.65; color: #6E747A; margin-top: 12px; }
.news-item time {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px;
  color: #A6ABB0;
  margin-top: 18px;
}

/* ===== FOOTER (사이트 전체, 콘텐츠 영역 — 테마 전환 대상) ===== */
.site-footer {
  background: var(--bg-darker);
  padding: 36px 40px;
  text-align: center;
}

.site-footer .links {
  display: flex;
  gap: 24px;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--footer-text);
  margin-bottom: 16px;
}

.site-footer .links span:nth-child(2n) { color: var(--footer-divider); }
.site-footer .links a { color: inherit; text-decoration: none; }
.site-footer a.admin-link { color: var(--footer-text-quiet); text-decoration: none; margin-left: 6px; }
.site-footer a.admin-link:hover { color: var(--footer-text); }
.site-footer .links a:hover { color: var(--text-heading); }

.site-footer .info {
  font-size: 12.5px;
  color: var(--text-dim);
  line-height: 1.8;
}

.site-footer .copyright {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 14px;
  letter-spacing: 0.06em;
}

/* ===== ABOUT PAGE ===== */
/* page-hero: 타이틀 밴드 — 라이트/다크 테마 반응형 */
.page-hero {
  position: relative;
  height: 340px;
  overflow: hidden;
  background:
    radial-gradient(60% 120% at 85% 0%, rgba(225,37,27,0.14) 0%, rgba(225,37,27,0) 60%),
    linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-panel) 60%, var(--bg-darker) 100%);
}

/* 모바일 메뉴가 열렸을 때는 고정 높이(340px)를 넘어서는 메뉴 목록이 잘리지 않도록 overflow 제한을 해제 */
.page-hero:has(.main-nav.open),
.hero:has(.main-nav.open) {
  overflow: visible;
}

.page-hero-title {
  position: absolute;
  left: 40px;
  bottom: 56px;
}

.page-hero-title h1 {
  font-size: 52px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-heading);
  margin-top: 14px;
  line-height: 1.1;
}

.page-hero-title p {
  font-size: 16px;
  color: var(--text-body-light);
  margin-top: 14px;
}

.breadcrumb {
  position: absolute;
  right: 40px;
  bottom: 60px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--text-dim);
}

/* 인사말 — 콘텐츠 영역, 테마 전환 대상 */
.greeting {
  background: var(--bg-dark);
  padding: 88px 40px;
}
.greeting-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 56px;
  align-items: center;
}

.greeting h2 {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-heading);
  margin-top: 12px;
  line-height: 1.3;
}

.greeting-photo {
  max-width: 240px;
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  margin: 0 auto;
}
.greeting-photo img { width: 100%; height: 100%; object-fit: contain; object-position: center; }

.greeting-body p {
  font-size: 17px;
  line-height: 2.0;
  color: var(--text-body-light);
  margin-top: 18px;
  text-wrap: balance;
}
.greeting-body p:first-child { margin-top: 0; }
.greeting-body b { color: var(--text-heading); }

.signature {
  margin-top: 36px;
  padding-top: 26px;
  border-top: 1px solid var(--border-dark);
  display: flex;
  align-items: baseline;
  gap: 14px;
}
.signature .role { font-size: 15px; color: var(--text-dim); }
.signature .name {
  font-family: 'Nanum Brush Script', cursive;
  font-size: 46px;
  color: var(--text-heading);
  line-height: 1;
}

.overview {
  background: var(--bg-dark);
  padding: 80px 40px;
}
.overview h2 { font-size: 34px; font-weight: 800; letter-spacing: -0.02em; color: var(--text-heading); margin-top: 12px; }

.overview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 64px;
  margin-top: 36px;
}

.overview-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 4px;
  border-top: 1px solid var(--border-dark);
}
.overview-row dt { font-size: 15px; font-weight: 700; color: var(--text-dim); }
.overview-row dd { font-size: 16px; font-weight: 600; color: var(--text-heading); text-align: right; }

/* 핵심가치 — 콘텐츠 영역, 테마 전환 대상 */
.values {
  background: var(--bg-dark);
  padding: 84px 40px;
}
.values-inner { max-width: 1200px; margin: 0 auto; }
.values .section-heading { text-align: center; }

.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 52px;
}

.value-card {
  background: var(--bg-card);
  border: 1px solid var(--border-dark);
  border-radius: 12px;
  padding: 38px 30px;
}
.value-card .num { font-family: 'Space Grotesk', sans-serif; font-size: 14px; color: var(--red); font-weight: 700; }
.value-card .value-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 10px;
  background: linear-gradient(160deg, rgba(225, 37, 27, 0.14) 0%, rgba(225, 37, 27, 0.03) 100%);
  border: 1px solid var(--border-dark);
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.value-card .value-image img { width: 100%; height: 100%; object-fit: cover; }
.value-card .value-image--photo { position: relative; background: #e0e0e0; }
.value-card .value-image--photo .photo-backdrop {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(20px) saturate(1.05);
  transform: scale(1.25);
}
.value-card .value-image--photo img { position: relative; z-index: 1; object-fit: contain; }
.value-visual {
  position: relative;
  width: 78px;
  height: 96px;
}

/* 환경: 잎 모양 */
.value-visual--eco .shape {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, var(--red-light) 0%, var(--red) 100%);
  border-radius: 0 100% 0 100%;
  box-shadow: 0 10px 26px -8px rgba(225, 37, 27, 0.55);
}
.value-visual--eco .vein {
  position: absolute;
  top: 14%;
  left: 50%;
  width: 2px;
  height: 74%;
  background: rgba(255, 255, 255, 0.4);
  transform: translateX(-50%) rotate(28deg);
  transform-origin: top center;
}

/* 안전: 방패 + 체크 */
.value-visual--safety .shape {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, var(--red-light) 0%, var(--red) 100%);
  clip-path: polygon(50% 0%, 100% 18%, 100% 58%, 50% 100%, 0% 58%, 0% 18%);
  box-shadow: 0 10px 26px -8px rgba(225, 37, 27, 0.55);
}
.value-visual--safety .check {
  position: absolute;
  top: 40%;
  left: 27%;
  width: 30px;
  height: 16px;
  border-left: 4px solid #fff;
  border-bottom: 4px solid #fff;
  transform: rotate(-45deg);
}

/* 혁신: 전구 + 광선 */
.value-visual--innovation .shape {
  position: absolute;
  top: 0;
  left: 50%;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, var(--red-light) 0%, var(--red) 75%);
  box-shadow: 0 0 30px 6px rgba(225, 37, 27, 0.4);
  transform: translateX(-50%);
}
.value-visual--innovation .filament {
  position: absolute;
  top: 26px;
  left: 50%;
  width: 20px;
  height: 12px;
  border: 2px solid rgba(255, 255, 255, 0.55);
  border-top: none;
  transform: translateX(-50%);
}
.value-visual--innovation .base {
  position: absolute;
  top: 64px;
  left: 50%;
  width: 24px;
  height: 16px;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 3px;
  transform: translateX(-50%);
}
.value-visual--innovation .ray {
  position: absolute;
  top: 28px;
  left: 50%;
  width: 2px;
  height: 14px;
  background: var(--red-light);
  transform-origin: bottom center;
}
.value-visual--innovation .ray-1 { transform: translateX(-40px) rotate(-35deg); }
.value-visual--innovation .ray-2 { transform: translateX(-16px) rotate(-65deg); }
.value-visual--innovation .ray-3 { transform: translateX(12px) rotate(65deg); }
.value-visual--innovation .ray-4 { transform: translateX(36px) rotate(35deg); }
.value-card h3 { font-size: 21px; font-weight: 800; color: var(--text-heading); margin-top: 20px; }
.value-card p { font-size: 14.5px; line-height: 1.75; color: var(--text-dim); margin-top: 10px; }

/* 연혁 — 콘텐츠 영역, 테마 전환 대상 */
.history { background: var(--bg-panel); padding: 84px 40px; }
.history-inner { max-width: 1200px; margin: 0 auto; }
.history h2 { font-size: 34px; font-weight: 800; letter-spacing: -0.02em; color: var(--text-heading); margin-top: 12px; }

.history-list { margin-top: 44px; display: flex; flex-direction: column; }
.history-row {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 28px;
  padding: 24px 0;
  border-top: 1px solid var(--border-dark);
}
.history-list .history-row:last-child { border-bottom: 1px solid var(--border-dark); }
.history-row .year { font-family: 'Space Grotesk', sans-serif; font-size: 26px; font-weight: 700; color: var(--text-heading); }
.history-row.highlight .year { color: var(--red); }
.history-row h4 { font-size: 17px; font-weight: 700; color: var(--text-heading); }
.history-row p { font-size: 14.5px; color: var(--text-dim); margin-top: 6px; }
.history-note { font-size: 12.5px; color: var(--text-dim); margin-top: 16px; }
.history-row ul { list-style: none; }
.history-row ul li {
  font-size: 14.5px;
  color: var(--text-dim);
  padding-left: 16px;
  position: relative;
  margin-top: 8px;
}
.history-row ul li:first-child { margin-top: 0; }
.history-row ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
}

/* ===== HISTORY TIMELINE (desktop infographic) ===== */
.history-timeline { display: block; margin-top: 64px; }
.history-list { display: none; }

.timeline-row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 12px;
}
.timeline-row.row-above { align-items: end; }
.timeline-row.row-below { align-items: start; }

.timeline-cell { display: flex; justify-content: center; min-height: 12px; min-width: 0; }

.timeline-card {
  background: var(--bg-card);
  border: 1px solid var(--border-dark);
  border-radius: 10px;
  padding: 14px 12px;
  width: 100%;
  min-width: 0;
}
.row-above .timeline-card { margin-bottom: 22px; }
.row-below .timeline-card { margin-top: 22px; }

.timeline-card-year {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--red);
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border-dark);
}

.timeline-card ul { list-style: none; }
.timeline-card ul li {
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--text-dim);
  padding-left: 12px;
  position: relative;
  margin-top: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.timeline-card ul li:first-child { margin-top: 0; }
.timeline-card ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--red);
}

.row-line {
  position: relative;
  padding: 10px 0;
}
.row-line::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 2px;
  background: var(--border-dark);
  transform: translateY(-1px);
}
.row-line .timeline-cell {
  position: relative;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.timeline-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg-panel);
  border: 2px solid var(--red);
  position: relative;
  z-index: 2;
}
.timeline-dot.highlight { background: var(--red); box-shadow: 0 0 0 5px rgba(255, 90, 74, 0.2); }

/* 오시는길 — 콘텐츠 영역, 테마 전환 대상 */
.location-section { background: var(--bg-dark); padding: 84px 40px; }
.location-inner { max-width: 1200px; margin: 0 auto; }
.location-grid {
  margin-top: 44px;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 32px;
  align-items: start;
}
.location-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  border: 1px solid var(--border-dark);
  border-radius: 8px;
  overflow: hidden;
}
.location-table th, .location-table td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border-dark);
  font-size: 14.5px;
  color: var(--text-body-light);
}
.location-table th { width: 160px; color: var(--text-heading); font-weight: 700; background: var(--surface-tint); }
.location-table tr:last-child th, .location-table tr:last-child td { border-bottom: none; }
.location-map {
  border-radius: 8px;
  overflow: hidden;
  min-height: 320px;
  background: #fff;
}

/* CTA — 빨간 배경 고유색, 항상 흰 텍스트 고정 */
.cta-band {
  background: var(--red);
  padding: 72px 40px;
}
.cta-band-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}
.cta-band .eyebrow { color: #FFCFC9; }
.cta-band h2 { font-size: 36px; font-weight: 800; letter-spacing: -0.03em; color: #fff; margin-top: 12px; line-height: 1.12; }
.cta-band .contact { text-align: right; }
.cta-band .phone { font-family: 'Space Grotesk', sans-serif; font-size: 34px; font-weight: 700; color: #fff; }
.cta-band .email { font-size: 14px; color: #FFCFC9; margin-top: 6px; }
.cta-band .contact-btn {
  display: inline-block;
  margin-top: 18px;
  padding: 13px 30px;
  background: #fff;
  color: var(--red);
  border-radius: 100px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
}

/* ===== BOARD ===== */
/* 상단바/타이틀 밴드는 헤더·히어로와 동일하게 라이트/다크 테마 반응형 */
.board-topbar {
  background: var(--bg-panel);
  padding: 26px 40px;
}

.board-title-band {
  background: var(--bg-dark);
  padding: 64px 40px;
}
.board-title-band .eyebrow { color: var(--red-light); }
.board-title-band h1 {
  font-size: 52px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-heading);
  margin-top: 14px;
  line-height: 1.1;
}

/* 게시판 콘텐츠 영역 — 테마 전환 대상 */
.board-wrap {
  background: var(--bg-panel);
  padding: 60px 40px 100px;
  min-height: 50vh;
}

.board-inner {
  max-width: 960px;
  margin: 0 auto;
}

.board-toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 16px;
}

.btn-board {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  background: var(--red);
  color: #fff;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
}
.btn-board.secondary {
  background: var(--bg-card);
  color: var(--text-heading);
  border: 1px solid var(--border-dark);
}

.board-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 20px 50px -30px rgba(20,23,30,0.3);
}
.board-table th, .board-table td {
  padding: 16px 18px;
  text-align: left;
  border-bottom: 1px solid var(--border-dark);
  font-size: 14.5px;
  color: var(--text-body-light);
}
.board-table th {
  background: #1E2225;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}
.board-table tr:last-child td { border-bottom: none; }
.board-table td.num, .board-table th.num { width: 60px; color: var(--text-dim); }
.board-table td.date, .board-table th.date, .board-table td.views, .board-table th.views { width: 110px; color: var(--text-dim); font-size: 13px; }
.board-table td.author, .board-table th.author { width: 90px; color: var(--text-dim); font-size: 13px; }
.board-table td.title a { color: var(--text-heading); text-decoration: none; font-weight: 600; }
.board-table td.title a:hover { color: var(--red); }
.board-table td.empty { text-align: center; padding: 60px 0; color: var(--text-dim); }

.board-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 28px;
}
.board-pagination a, .board-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  border-radius: 6px;
  font-size: 13px;
  color: var(--text-dim);
  text-decoration: none;
}
.board-pagination a:hover { background: var(--hover-tint); }
.board-pagination .current { background: var(--red); color: #fff; font-weight: 700; }

.board-view {
  background: var(--bg-card);
  border-radius: 8px;
  padding: 44px 48px;
  box-shadow: 0 20px 50px -30px rgba(20,23,30,0.3);
}
.board-view h2 { font-size: 26px; font-weight: 800; color: var(--text-heading); }
.board-view .meta {
  display: flex;
  gap: 16px;
  margin-top: 14px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-dark);
  font-size: 13px;
  color: var(--text-dim);
}
.board-view .content {
  padding: 32px 0;
  font-size: 15.5px;
  line-height: 1.9;
  color: var(--text-body-light);
  white-space: pre-wrap;
  min-height: 120px;
}
.board-view .board-actions {
  display: flex;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--border-dark);
}
.board-view .board-actions .right { display: flex; gap: 8px; }

.board-form label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 8px;
}
.board-form input[type="text"],
.board-form input[type="password"],
.board-form select,
.board-form textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--border-dark);
  border-radius: 6px;
  font-size: 14.5px;
  font-family: inherit;
  margin-bottom: 20px;
  background: var(--bg-card);
  color: var(--text-heading);
}
.board-form textarea { min-height: 280px; resize: vertical; line-height: 1.7; }
.board-form .form-actions { display: flex; justify-content: flex-end; gap: 8px; }

.login-box {
  max-width: 380px;
  margin: 0 auto;
  background: var(--bg-card);
  border-radius: 8px;
  padding: 44px 40px;
  box-shadow: 0 20px 50px -30px rgba(20,23,30,0.3);
  text-align: center;
}
.login-box h2 { font-size: 22px; font-weight: 800; color: var(--text-heading); margin-bottom: 24px; }
.login-box .error { color: var(--red); font-size: 13px; margin-bottom: 16px; }

.attach-icon { margin-left: 6px; font-size: 12px; text-decoration: none; }

.board-view-image {
  display: block;
  max-width: 100%;
  border-radius: 8px;
  margin-top: 24px;
}

.board-attachment {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding: 12px 18px;
  background: var(--bg-panel);
  border: 1px solid var(--border-dark);
  border-radius: 8px;
  color: var(--text-heading);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}
.board-attachment:hover { background: var(--hover-tint); }
.board-attachment .size { color: var(--text-dim); font-weight: 400; font-size: 12.5px; }

.board-form input[type="file"] {
  display: block;
  width: 100%;
  padding: 12px 14px;
  border: 1px dashed var(--border-dark);
  border-radius: 6px;
  font-size: 13.5px;
  margin-bottom: 20px;
  background: var(--bg-card);
  color: var(--text-dim);
}

.board-form .current-file {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  font-size: 13.5px;
  color: var(--text-dim);
}
.board-form .current-file img { width: 60px; height: 60px; object-fit: cover; border-radius: 6px; }
.board-form .remove-check { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 400; color: var(--red); margin: 0; }

.board-category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.board-category-tabs a {
  padding: 9px 18px;
  border-radius: 100px;
  background: var(--bg-card);
  border: 1px solid var(--border-dark);
  color: var(--text-dim);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}
.board-category-tabs a.active { background: var(--red); border-color: var(--red); color: #fff; }

.board-category-tabs--board,
.board-category-tabs--support {
  display: grid;
  gap: 12px;
}

.board-category-tabs--board { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.board-category-tabs--support { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.board-category-tabs--board a,
.board-category-tabs--support a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 42px;
  padding: 9px 12px;
  text-align: center;
}

@media (max-width: 520px) {
  .board-category-tabs--board {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .board-category-tabs--support {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
}

.category-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 100px;
  background: var(--hover-tint);
  color: var(--text-dim);
  font-size: 11.5px;
  font-weight: 700;
  margin-right: 8px;
  vertical-align: middle;
}
.board-view .category-tag { margin-bottom: 10px; }

.board-file-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.board-file-actions .board-attachment { margin-top: 0; }

.board-file-preview { margin-top: 24px; }
.board-file-preview iframe {
  display: block;
  width: 100%;
  height: 720px;
  border: 1px solid var(--border-dark);
  border-radius: 8px;
  background: var(--bg-card);
}
.board-file-preview-mobile-open {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 18px;
  border: 1px solid var(--border-dark);
  border-radius: 8px;
  background: var(--bg-card);
  color: var(--text-heading);
  font-weight: 700;
  font-size: 14.5px;
  text-decoration: none;
}
@media (max-width: 700px) {
  .board-file-preview iframe { height: 480px; }
}

/* ===== PRODUCTS CATEGORY LIST PAGE ===== */
.category-section {
  background: var(--bg-panel);
  padding: 90px 40px 110px;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
}

.category-card {
  background: var(--bg-card);
  border: 1px solid var(--border-dark);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.category-card:hover {
  transform: translateY(-6px);
  border-color: var(--red);
  box-shadow: 0 24px 50px -30px rgba(225, 37, 27, 0.35);
}
.category-card:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

.category-card .thumb {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: linear-gradient(160deg, #e6e6e6 0%, #9c9c9c 100%);
}
.category-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.category-card .thumb img.photo-contain { object-fit: contain; }
.category-card .thumb.thumb-contain { background: linear-gradient(160deg, #e6e6e6 0%, #9c9c9c 100%); }
.category-card .badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--red);
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 13px;
  border-radius: 100px;
  letter-spacing: 0.04em;
  z-index: 1;
}

.category-card .body { padding: 26px 26px 28px; }

.category-card .label-en {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  text-transform: uppercase;
}

.category-card h3 {
  font-size: 21px;
  font-weight: 800;
  color: var(--text-heading);
  margin-top: 8px;
}

.category-card ul {
  list-style: none;
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.category-card li {
  position: relative;
  padding-left: 14px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text-body-light);
}
.category-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--red-light);
}

.category-card .view-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  padding: 9px 18px;
  border-radius: 100px;
  background: var(--chip-bg);
  color: var(--chip-text);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: background 0.25s ease;
}
.category-card:hover .view-pill { background: var(--red); color: #fff; }

/* ===== PRODUCT DETAIL PAGE ===== */
.product-detail-wrap {
  background: var(--bg-panel);
  padding: 70px 40px 110px;
}

.product-detail-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.product-model-name {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-heading);
}

.product-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: 32px;
  align-items: stretch;
}

.product-photo {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: linear-gradient(160deg, #e6e6e6 0%, #9c9c9c 100%);
}
.product-photo.thumb-contain { background: linear-gradient(160deg, #e6e6e6 0%, #9c9c9c 100%); }
.product-photo img { width: 100%; height: 100%; object-fit: cover; }
.product-photo img.photo-contain { object-fit: contain; }

.product-info-card {
  background: var(--bg-card);
  border: 1px solid var(--border-dark);
  border-radius: 10px;
  padding: 38px 40px;
  display: flex;
  flex-direction: column;
}

.product-info-card .kicker {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--red-light);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.product-info-card .desc {
  margin-top: 16px;
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--text-body-light);
}

.product-info-mini-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 24px;
}
.product-info-mini-table th,
.product-info-mini-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-dark);
  border-right: 1px solid var(--border-dark);
  font-size: 13.5px;
  text-align: center;
  color: var(--text-body-light);
}
.product-info-mini-table th {
  width: 130px;
  color: var(--text-dim);
  font-weight: 700;
  background: var(--surface-tint);
}
.product-info-mini-table tr:last-child th,
.product-info-mini-table tr:last-child td { border-bottom: none; }
.product-info-mini-table tr th:last-child,
.product-info-mini-table tr td:last-child { border-right: none; }

.product-info-actions {
  margin-top: auto;
  padding-top: 24px;
  display: flex;
  gap: 10px;
}

/* ===== 제품문의 모달 ===== */
.inquiry-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 13, 18, 0.65);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 24px;
}
.inquiry-modal-overlay.open { display: flex; }

.inquiry-modal {
  position: relative;
  width: 100%;
  max-width: 460px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--bg-card);
  border: 1px solid var(--border-dark);
  border-radius: 14px;
  padding: 40px 36px;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.6);
}

.inquiry-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--hover-tint);
  color: var(--text-dim);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.inquiry-modal-close:hover { color: var(--text-heading); }

.inquiry-modal h2 { font-size: 22px; font-weight: 800; color: var(--text-heading); }
.inquiry-modal-sub { font-size: 13.5px; color: var(--text-dim); margin-top: 8px; margin-bottom: 24px; line-height: 1.6; }

.inquiry-modal label {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 6px;
}
.inquiry-modal label .required { color: var(--red); }

.inquiry-modal input[type="text"],
.inquiry-modal input[type="email"],
.inquiry-modal select,
.inquiry-modal textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border-dark);
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  margin-bottom: 16px;
  background: var(--bg-panel);
  color: var(--text-heading);
}
.inquiry-modal input[readonly] { color: var(--text-dim); background: var(--surface-tint); }
.inquiry-modal select { cursor: pointer; }
.inquiry-modal select:invalid { color: var(--text-dim); }
.inquiry-modal textarea { min-height: 110px; resize: vertical; line-height: 1.6; }
.inquiry-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.inquiry-modal-actions { margin-top: 8px; }
.inquiry-modal-actions .btn { width: 100%; justify-content: center; }

.inquiry-modal-status { margin-top: 14px; font-size: 13.5px; text-align: center; min-height: 1em; }
.inquiry-modal-status.success { color: #1f9e57; }
.inquiry-modal-status.error { color: var(--red); }

.product-section-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-heading);
  margin-top: 72px;
}

.product-variant-photos {
  display: flex;
  gap: 20px;
  margin-top: 26px;
}
.product-variant-photos figure {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border-dark);
  border-radius: 8px;
  padding: 20px;
  text-align: center;
}
.product-variant-photos img {
  width: 100%;
  height: 340px;
  object-fit: contain;
}
.product-variant-photos figcaption {
  margin-top: 10px;
  font-size: 13px;
  color: var(--text-dim);
  font-weight: 600;
}

.product-feature-list {
  list-style: none;
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.product-feature-list li {
  position: relative;
  padding-left: 22px;
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--text-body-light);
}
.product-feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
}

.related-parts-title {
  margin-top: 56px;
  font-size: 19px;
}

.related-parts-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.related-part-card {
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border-dark);
  border-radius: 10px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.related-part-card:hover {
  transform: translateY(-4px);
  border-color: rgba(228, 0, 18, 0.42);
  box-shadow: 0 18px 36px -28px rgba(0, 0, 0, 0.65);
}

.related-part-photo {
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  background: #f4f4f4;
  border-bottom: 1px solid var(--border-dark);
}

.related-part-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.related-part-copy {
  min-height: 148px;
  padding: 20px 20px 22px;
}

.related-part-copy h4 {
  margin-bottom: 13px;
  color: var(--text-heading);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.related-part-copy p {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 8px;
  color: var(--text-body-light);
  font-size: 13px;
  line-height: 1.65;
}

.related-part-copy p + p { margin-top: 3px; }
.related-part-copy p span { color: var(--text-dim); }

.product-spec-wrap { margin-top: 24px; }

.product-spec-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  border: 1px solid var(--border-dark);
  border-radius: 8px;
  overflow: hidden;
}
.product-spec-table th,
.product-spec-table td {
  padding: 14px 18px;
  text-align: center;
  border-bottom: 1px solid var(--border-dark);
  border-right: 1px solid var(--border-dark);
  font-size: 14px;
  color: var(--text-body-light);
}
.product-spec-table th {
  width: 180px;
  background: var(--surface-tint);
  color: var(--text-heading);
  font-weight: 700;
}
.product-spec-table tr:last-child th,
.product-spec-table tr:last-child td { border-bottom: none; }
.product-spec-table tr th:last-child,
.product-spec-table tr td:last-child { border-right: none; }

/* ===== ACTUATOR CABINET INTERACTIVE DEMO ===== */
.demo-desc { font-size: 14px; color: var(--text-dim); margin-top: -8px; }

.actuator-demo {
  margin-top: 24px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 32px;
  align-items: stretch;
}

.demo-photo-wrap {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border-dark);
  display: flex;
  align-items: center;
  justify-content: center;
}
.demo-photo-wrap img { width: 100%; display: block; }

/* 클릭 가능한 실제 버튼: Single Type / Dual Type */
.demo-hotspot {
  position: absolute;
  width: 11.5%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: transparent;
  border: 2px solid transparent;
  padding: 0;
  cursor: pointer;
  transition: box-shadow 0.2s ease, border-color 0.2s ease, background 0.15s ease;
}
.demo-hotspot:hover { border-color: rgba(255, 255, 255, 0.75); box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.15); }
.demo-hotspot.pressed { border-color: var(--red-light); box-shadow: 0 0 0 10px rgba(255, 90, 74, 0.35); }

.demo-hotspot.lit,
.demo-hotspot.blink {
  background: radial-gradient(circle at 35% 30%, #d4ffe4 0%, #4ee08a 40%, #1f9e57 78%, #157a41 100%);
  box-shadow: 0 0 6px 1px rgba(46, 204, 113, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.55);
}
.demo-hotspot.blink { animation: demoBlink 0.6s steps(1) infinite; }

/* 표시 전용(클릭 불가) 용기표시등: CYL.1 / CYL.2 — 신호등 색상은 테마와 무관하게 고정 */
.demo-light {
  position: absolute;
  width: 11.5%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease;
}
.demo-light.green-steady,
.demo-light.green-blink {
  opacity: 1;
  background: radial-gradient(circle at 35% 30%, #d4ffe4 0%, #4ee08a 40%, #1f9e57 78%, #157a41 100%);
  box-shadow: 0 0 6px 1px rgba(46, 204, 113, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.55);
}
.demo-light.green-blink { animation: demoBlink 0.6s steps(1) infinite; }
.demo-light.red-blink {
  opacity: 1;
  background: radial-gradient(circle at 35% 30%, #ffd9d5 0%, #ff6b60 40%, #d92c2c 78%, #a31c1c 100%);
  box-shadow: 0 0 6px 1px rgba(255, 60, 60, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.55);
  animation: demoBlink 0.5s steps(1) infinite;
}

@keyframes demoBlink { 50% { opacity: 0.12; } }

.hotspot-cyl1 { left: 30.7%; top: 42.0%; }
.hotspot-cyl2 { left: 70.0%; top: 41.8%; }
.hotspot-single { left: 31.2%; top: 71.8%; }
.hotspot-dual { left: 70.0%; top: 71.8%; }

.demo-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-dark);
  border-radius: 10px;
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
}

.demo-mode {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-dark);
}
.demo-mode-label { font-size: 13px; color: var(--text-dim); }
.demo-mode-value { font-size: 15px; font-weight: 700; color: var(--text-heading); }
.demo-mode-value.set { color: var(--red-light); }

.demo-status-text { margin-top: 18px; font-size: 13.5px; line-height: 1.7; color: var(--text-dim); min-height: 66px; }

.demo-controls-group {
  margin-top: auto;
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.demo-controls { display: flex; gap: 12px; }

/* 뉴모피즘(소프트 UI) 스타일 — 패널과 같은 재질에서 은은한 명암으로 도드라져 보임(라이트/다크 공용) */
.btn-demo {
  flex: 1;
  padding: 14px 18px;
  border-radius: 100px;
  font-size: 12.5px;
  font-weight: 700;
  font-family: inherit;
  background: var(--bg-card);
  color: var(--text-body-light);
  border: none;
  cursor: pointer;
  box-shadow: 5px 5px 10px var(--neu-shadow-dark), -4px -4px 10px var(--neu-shadow-light);
  transition: box-shadow 0.15s ease, transform 0.1s ease, color 0.15s ease;
}
.btn-demo:hover { color: var(--text-heading); }
.btn-demo:active {
  box-shadow: inset 3px 3px 6px var(--neu-shadow-dark), inset -3px -3px 6px var(--neu-shadow-light);
  transform: translateY(1px);
}
.btn-demo.primary { color: #1f9e57; }
.btn-demo.warn { color: var(--red); }

@media (max-width: 900px) {
  .actuator-demo { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .product-hero-grid { grid-template-columns: 1fr; }
  .product-variant-photos { flex-direction: column; }
  .related-parts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  .product-detail-wrap { padding: 54px 20px 80px; }
  .related-parts-grid { grid-template-columns: 1fr; }
  .related-part-card { display: grid; grid-template-columns: 42% 1fr; }
  .related-part-photo { border-bottom: 0; border-right: 1px solid var(--border-dark); }
  .related-part-copy { min-height: 0; padding: 18px 16px; }
  .related-part-copy p { grid-template-columns: 72px minmax(0, 1fr); }
}

@media (max-width: 1100px) {
  .category-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .section-rail { display: none; }

  /* 서브페이지 공통 타이틀 밴드(page-hero) — 데스크톱은 absolute 위치의 타이틀+브레드크럼을 배경 위에 겹쳐서 보여주지만,
     모바일 폭에서는 텍스트가 길어지며 서로 겹치는 문제가 있어 일반 흐름(static)으로 세로로 쌓이게 전환 */
  .page-hero { height: auto; overflow: visible; padding-bottom: 28px; }
  .page-hero-title { position: static; left: auto; bottom: auto; padding: 28px 20px 0; }
  .page-hero-title h1 { font-size: 30px; margin-top: 8px; }
  .page-hero-title p { font-size: 13.5px; margin-top: 8px; }
  .breadcrumb { position: static; left: auto; right: auto; bottom: auto; padding: 12px 20px 0; text-align: left; }

  /* 게시판(공지사항/자료실/FAQ/문의) 목록 테이블 — 좁은 화면에서 "작성자" 열이 내용에 밀려
     한 글자씩 세로로 줄바꿈되는 문제가 있어 열을 정리하고 폭을 고정폭 기반으로 재분배 */
  .board-wrap { padding: 40px 20px 70px; }
  .board-table { table-layout: fixed; }
  .board-table th, .board-table td { padding: 12px 10px; font-size: 13.5px; }
  .board-table th.author, .board-table td.author { display: none; }
  .board-table td.num, .board-table th.num { width: 40px; padding-left: 6px; padding-right: 6px; }
  .board-table td.views, .board-table th.views { width: 44px; font-size: 12px; padding-left: 6px; padding-right: 6px; }
  .board-table td.title { word-break: keep-all; overflow-wrap: anywhere; }
  .board-table td.title .category-tag { display: block; width: fit-content; margin-right: 0; margin-bottom: 6px; }
  .board-table td.title a { font-size: 13.5px; }
  .board-view { padding: 28px 20px; }
  .board-view h2 { font-size: 21px; }

  /* 자료실 PDF 미리보기 — 모바일 브라우저는 iframe 안에 PDF를 안정적으로 렌더링하지 못해(안드로이드 크롬 등에서 빈 화면) 흰 박스만 보이는 문제가 있음.
     모바일에서는 iframe 대신, 브라우저 기본 PDF 뷰어가 확실히 동작하는 "새 창에서 열기" 버튼으로 대체 */
  .board-file-preview iframe { display: none; }
  .board-file-preview-mobile-open { display: flex; }

  /* 히어로 사진: 모바일에서는 화면을 꽉 채우는 배경(cover)이 아니라, 사진 전체가 다 보이게(contain, 상단 정렬) 처리하고, 문구는 사진 아래쪽 여백에 배치 — 문구가 제품 사진을 가리지 않도록 사진 영역과 문구 영역을 분리 */
  .hero { min-height: auto; position: relative; }
  .hero .site-header { order: -1; }
  .hero-slides { position: relative; inset: auto; width: 100%; height: 430px; overflow: hidden; background: #fff; }
  .hero-slide img { object-fit: contain; object-position: center top; }
  .hero-image-shade { display: none; }
  .hero-content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    margin-top: 0;
    padding: 18px 20px 16px;
    max-width: none;
    text-align: left;
    background: #ffffff;
  }
  .hero-content h1 { font-size: 19px; line-height: 1.1; }
  .hero-content p { font-size: 11.5px; line-height: 1.45; margin-top: 6px; }
  .hero-actions { margin-top: 8px; }
  html.hero-motion-preview .hero-slide img,
  html.hero-motion-preview .hero-slide.is-active img {
    width: 100%;
    margin-left: 0;
    transform: none;
  }
  .product-grid, .overview-grid, .value-grid, .news-grid, .business-body, .category-grid { grid-template-columns: 1fr; }
  .business-card { margin-right: 0; }
  .board-table th.date, .board-table td.date { display: none; }
  .greeting-inner { grid-template-columns: 1fr; }
  .cta-band-inner { justify-content: flex-start; }
  .cta-band .contact { text-align: left; }
  .location-grid { grid-template-columns: 1fr; }
  .history-timeline { display: none; }
  .history-list { display: flex; }

  .nav-toggle { display: flex; }
  .nav-cta, .catalog-link-label { display: none; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 10;
    flex-direction: column;
    gap: 0;
    background: var(--bg-card);
    border-top: 1px solid var(--border-dark);
    padding: 8px 0;
    box-shadow: 0 24px 48px -20px rgba(0, 0, 0, 0.6);
    font-size: 17px;
  }
  .main-nav.open { display: flex; }
  .nav-item { border-bottom: 1px solid var(--border-dark); }
  .nav-item:last-child { border-bottom: none; }
  .main-nav > .nav-item > a { display: block; padding: 14px 24px; color: var(--text-body-light); }
  .main-nav > .nav-item > a.active { color: var(--red-light); }
  .nav-dropdown {
    position: static;
    margin-top: 0;
    transform: none;
    display: flex;
    opacity: 1;
    visibility: visible;
    min-width: 0;
    padding: 0 0 10px;
    background: transparent;
    border: none;
    box-shadow: none;
    transition: none;
  }
  .nav-dropdown a { padding: 8px 24px 8px 40px; font-size: 14px; color: var(--text-dim); }
  .nav-dropdown a::before { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide { transition-duration: 0.01ms; }
  .hero-slide img { transition: none; transform: none; }
}
