@charset "utf-8";

/* ============================================================
   PK KOREA (파워텍코리아) — 공통 스타일
   브랜드 컬러는 ELAFLEX 로고 블루(#1818c4)를 기준으로 한다.
   ============================================================ */

:root {
  /* 본문·UI는 나눔스퀘어, 표제는 나눔명조로 통일한다.
     나눔스퀘어는 300/400/700/800만 있다 — 500·600을 쓰면 가짜 볼드로 뭉개진다. */
  --font-body: "NanumSquare", sans-serif;
  --font-display: "Nanum Myeongjo", serif;
  --brand: #1818c4;
  --brand-dark: #101089;
  --brand-light: #ececfb;
  --ink: #1a1d21;
  --ink-soft: #4a5158;
  --line: #e2e5ea;
  --bg-soft: #f6f7f9;
  --white: #fff;
  --radius: 6px;
  --shadow: 0 2px 14px rgba(16, 16, 137, .08);
  --wrap: 1180px;
  --header-h: 76px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-text-size-adjust: 100%;
}

img { max-width: 100%; height: auto; vertical-align: middle; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

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

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--brand); color: #fff; padding: 10px 18px; z-index: 200;
}
.skip:focus { left: 0; }

/* ---------- 헤더 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(180%) blur(6px);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; height: var(--header-h);
}
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo img { height: 30px; width: auto; }
.logo .wordmark {
  font-size: 20px; font-weight: 800; letter-spacing: .04em;
  color: var(--brand); white-space: nowrap;
}
.logo:hover { text-decoration: none; }

/* ---------- 내비게이션 ---------- */
.nav-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line);
  border-radius: var(--radius); background: #fff; cursor: pointer; padding: 0;
}
.nav-toggle > span, .nav-toggle > span::before, .nav-toggle > span::after {
  display: block; width: 20px; height: 2px; background: var(--ink);
  margin: 0 auto; position: relative; transition: .2s;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

.gnb ul { list-style: none; margin: 0; padding: 0; }
.gnb > ul { display: flex; align-items: center; gap: 4px; }
.gnb > ul > li { position: relative; }
.gnb > ul > li > a {
  display: block; padding: 0 16px; line-height: var(--header-h);
  font-weight: 700; color: var(--ink); white-space: nowrap;
}
.gnb > ul > li > a:hover,
.gnb > ul > li.active > a { color: var(--brand); text-decoration: none; }
.gnb > ul > li.active > a { box-shadow: inset 0 -3px 0 var(--brand); }

.gnb .has-sub > a::after {
  content: ""; display: inline-block; width: 5px; height: 5px; margin-left: 7px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}
.gnb .sub {
  position: absolute; top: 100%; left: 0; min-width: 248px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 8px 0;
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s;
}
.gnb .has-sub:hover .sub,
.gnb .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: none; }
.gnb .sub a {
  display: block; padding: 9px 18px; font-size: 15px; color: var(--ink-soft);
}
.gnb .sub a:hover { background: var(--brand-light); color: var(--brand); text-decoration: none; }
.gnb .sub li.active a { color: var(--brand); font-weight: 700; }

/* ---------- 히어로 (메인) ---------- */
.hero { position: relative; height: clamp(380px, 58vh, 560px); overflow: hidden; background: #0d0d5c; }
.hero-slide {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1.1s ease;
}
.hero-slide.on { opacity: 1; }
.hero-slide::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(10, 10, 70, .78) 0%, rgba(10, 10, 70, .45) 55%, rgba(10, 10, 70, .25) 100%);
}
.hero-body {
  position: relative; z-index: 2; height: 100%;
  display: flex; flex-direction: column; justify-content: center; color: #fff;
}
.hero-body .eyebrow {
  font-size: 14px; letter-spacing: .22em; text-transform: uppercase;
  color: #b9c0ff; margin-bottom: 14px; font-weight: 700;
}
.hero-body h1 {
  margin: 0 0 16px; font-family: var(--font-display);
  font-size: clamp(30px, 4.6vw, 50px); line-height: 1.3;
  font-weight: 800; letter-spacing: -.01em; text-shadow: 0 2px 18px rgba(0, 0, 0, .3);
}
.hero-body p { margin: 0; font-size: clamp(15px, 1.7vw, 18px); color: #e6e8ff; max-width: 640px; }
.hero-cta { margin-top: 28px; display: flex; gap: 12px; flex-wrap: wrap; }

.hero-dots { position: absolute; left: 0; right: 0; bottom: 24px; z-index: 3; }
.hero-dots .wrap { display: flex; gap: 9px; }
.hero-dots button {
  width: 30px; height: 4px; padding: 0; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, .38); border-radius: 2px; transition: .2s;
}
.hero-dots button.on { background: #fff; width: 46px; }

/* ---------- 버튼 ---------- */
.btn {
  display: inline-block; padding: 12px 26px; border-radius: var(--radius);
  font-weight: 700; font-size: 15px; border: 1.5px solid transparent; cursor: pointer;
  transition: .18s;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-ghost { border-color: rgba(255, 255, 255, .6); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .14); border-color: #fff; }

/* ---------- 서브 페이지 헤더 ---------- */
.page-head {
  background: var(--brand-light);
  border-bottom: 1px solid #dcdcf5;
  padding: 46px 0 40px;
}
.page-head h1 {
  margin: 0; font-family: var(--font-display);
  font-size: clamp(26px, 3.6vw, 38px); font-weight: 800;
  letter-spacing: -.01em; color: var(--brand-dark);
}
.page-head .sup {
  margin: 0 0 8px; font-size: 13px; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase; color: var(--brand);
}
.breadcrumb { margin: 14px 0 0; font-size: 13px; color: var(--ink-soft); }
.breadcrumb a { color: var(--ink-soft); }
.breadcrumb span { margin: 0 7px; opacity: .5; }

/* 제품 페이지는 메인과 같은 비주얼 위에 헤더를 얹는다. */
.page-head.visual {
  position: relative; border-bottom: 0; padding: 54px 0 34px;
  background: #0d0d5c center/cover no-repeat;
}
.page-head.visual::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(10, 10, 70, .86) 0%, rgba(10, 10, 70, .62) 60%, rgba(10, 10, 70, .42) 100%);
}
.page-head.visual > .wrap { position: relative; z-index: 2; }
.page-head.visual h1 { color: #fff; text-shadow: 0 2px 18px rgba(0, 0, 0, .3); }
.page-head.visual .sup { color: #b9c0ff; }
.page-head.visual .breadcrumb { color: #c8cdf0; }
.page-head.visual .breadcrumb a { color: #c8cdf0; }

/* ---------- 제품 스위처 ---------- */
.switcher { margin: 26px 0 0; }
.switcher .label {
  margin: 0 0 12px; font-size: 12px; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: #b9c0ff;
}
.switcher ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 9px;
}
.switcher a {
  display: block; padding: 10px 18px; border-radius: 999px;
  font-size: 14px; font-weight: 700; line-height: 1.35;
  color: #fff; border: 1.5px solid rgba(255, 255, 255, .45);
  background: rgba(255, 255, 255, .08); backdrop-filter: blur(2px);
  transition: .18s; white-space: nowrap;
}
.switcher a:hover { background: rgba(255, 255, 255, .2); border-color: #fff; text-decoration: none; }
.switcher li.active a {
  background: #fff; color: var(--brand-dark); border-color: #fff;
  box-shadow: 0 3px 14px rgba(0, 0, 0, .18);
}
.switcher li.active a:hover { background: #fff; }

/* ---------- 본문 ---------- */
main { display: block; }
.content { padding: 56px 0 76px; }
/* 본문 안의 절 제목은 표제용 나눔명조를 쓴다.
   아래 .downloads h2 · .tools h2 는 기능 상자의 이름표라 본문 서체를 유지한다. */
.content h2 {
  margin: 48px 0 16px; font-family: var(--font-display);
  font-size: clamp(23px, 2.8vw, 29px); font-weight: 800;
  line-height: 1.45; color: var(--ink); padding-left: 16px;
  border-left: 5px solid var(--brand);
}
.content h2:first-child { margin-top: 0; }
.content h3 { margin: 32px 0 12px; font-size: 18px; font-weight: 700; }
.content p { margin: 0 0 18px; color: var(--ink-soft); }
.content ul, .content ol { margin: 0 0 18px; padding-left: 22px; color: var(--ink-soft); }
.content li { margin-bottom: 7px; }
.content strong, .content b { color: var(--ink); font-weight: 700; }

.content figure {
  margin: 0 0 30px; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; background: var(--bg-soft);
}
.content figure img { display: block; width: 100%; }
/* 본문 최상위의 대표 이미지는 여백이 넓은 제품컷이라 높이를 제한한다. */
.content > .wrap > figure { background: #fff; }
.content > .wrap > figure img { max-height: 460px; object-fit: contain; }
.content figcaption {
  padding: 10px 14px; font-size: 13px; color: var(--ink-soft);
  border-top: 1px solid var(--line); background: #fff;
}
.figure-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px; margin: 0 0 30px;
}
.figure-grid figure { margin: 0; }
.figure-grid figure img { aspect-ratio: 4 / 3; object-fit: contain; background: #fff; }

/* ---------- 자료실 (PDF) ---------- */
.downloads { margin: 44px 0 0; padding: 26px 28px; background: var(--bg-soft);
  border: 1px solid var(--line); border-radius: var(--radius); }
.downloads h2 { margin: 0 0 16px; border: 0; padding: 0; font-size: 19px;
  font-family: var(--font-body); }
.downloads ul { list-style: none; margin: 0; padding: 0; }
.downloads li { border-top: 1px solid var(--line); }
.downloads li:first-child { border-top: 0; }
.downloads a {
  display: flex; align-items: center; gap: 12px; padding: 13px 2px;
  font-weight: 700; color: var(--ink);
}
.downloads a:hover { color: var(--brand); text-decoration: none; }
.downloads .tag {
  flex: none; font-size: 11px; font-weight: 800; letter-spacing: .06em;
  background: #d93025; color: #fff; padding: 3px 7px; border-radius: 3px;
}
.downloads .name { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.downloads .size { flex: none; font-size: 13px; color: var(--ink-soft); }

/* ---------- 메인: 제품 카드 ---------- */
.section { padding: 76px 0; }
.section.alt { background: var(--bg-soft); border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line); }
.section-head { text-align: center; margin-bottom: 44px; }
.section-head .sup {
  margin: 0 0 10px; font-size: 13px; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase; color: var(--brand);
}
.section-head h2 { margin: 0 0 12px; font-family: var(--font-display);
  font-size: clamp(25px, 3.1vw, 34px); font-weight: 800; letter-spacing: -.01em; }
.section-head p { margin: 0 auto; max-width: 720px; color: var(--ink-soft); }

.card-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px;
}
.card {
  display: flex; flex-direction: column; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: .2s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #c9cbf0; }
.card:hover { text-decoration: none; }
.card .thumb { aspect-ratio: 4 / 3; background: var(--bg-soft); overflow: hidden; }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.card .body { padding: 20px 22px 24px; flex: 1 1 auto; }
.card .sec {
  font-size: 12px; font-weight: 800; letter-spacing: .1em;
  color: var(--brand); text-transform: uppercase;
}
.card h3 { margin: 7px 0 8px; font-size: 18px; font-weight: 700; color: var(--ink); }
.card p { margin: 0; font-size: 14px; color: var(--ink-soft); line-height: 1.6; }

/* ---------- 메인: 회사 요약 ---------- */
.intro-split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.intro-split h2 { margin: 0 0 18px; font-family: var(--font-display);
  font-size: clamp(24px, 2.9vw, 32px); font-weight: 800; letter-spacing: -.01em; }

/* ---------- ELAFLEX 본사 배너 ---------- */
.brand-banner {
  background: linear-gradient(115deg, #0e0e7a 0%, var(--brand) 52%, #3b3be6 100%);
  color: #fff; position: relative; overflow: hidden;
}
.brand-banner::after {
  content: ""; position: absolute; right: -80px; top: -90px;
  width: 340px; height: 340px; border-radius: 50%;
  background: rgba(255, 255, 255, .07);
}
.brand-banner .inner {
  position: relative; z-index: 2; display: flex; align-items: center;
  gap: 38px; padding: 48px 20px;
}
.brand-banner .mark {
  flex: none; background: #fff; border-radius: 8px; padding: 18px 24px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, .22);
}
.brand-banner .mark img { display: block; height: 36px; width: auto; }
.brand-banner .txt { flex: 1 1 auto; min-width: 0; }
.brand-banner .sup {
  margin: 0 0 9px; font-size: 12px; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase; color: #b9c0ff;
}
.brand-banner h2 {
  margin: 0 0 10px; font-family: var(--font-display);
  font-size: clamp(22px, 2.6vw, 30px); font-weight: 800; letter-spacing: -.01em;
}
.brand-banner p { margin: 0; color: #dde0ff; font-size: 15px; }
.brand-banner .go { flex: none; }
.btn-white { background: #fff; color: var(--brand-dark); }
.btn-white:hover { background: #e7e7fa; }
.btn-white::after { content: " \2197"; font-weight: 700; }
.intro-split p { color: var(--ink-soft); }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 30px; }
.fact { padding: 20px 22px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); }
.fact dt { font-size: 13px; color: var(--ink-soft); margin-bottom: 5px; }
.fact dd { margin: 0; font-size: 21px; font-weight: 800; color: var(--brand-dark);
  letter-spacing: -.01em; }

/* ---------- 연혁 ---------- */
.history { list-style: none; margin: 0; padding: 0; }
.history li {
  display: grid; grid-template-columns: 92px 1fr; gap: 20px;
  padding: 14px 0; border-top: 1px solid var(--line);
}
.history li:first-child { border-top: 0; }
.history .year { font-weight: 800; color: var(--brand); }
.history .desc { color: var(--ink-soft); }

/* ---------- 연락처 ---------- */
.contact-box {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1px; background: var(--line); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
}
.contact-box div { background: #fff; padding: 22px 24px; }
.contact-box dt { font-size: 13px; color: var(--ink-soft); margin-bottom: 6px; }
.contact-box dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }

/* ---------- 푸터 ---------- */
.site-footer { background: #16181d; color: #9aa1ab; padding: 52px 0 30px; font-size: 14px; }
.footer-top { display: grid; grid-template-columns: 1.2fr 1fr; gap: 44px; padding-bottom: 34px;
  border-bottom: 1px solid #2a2e35; }
.footer-brand .wordmark { font-size: 20px; font-weight: 800; color: #fff; letter-spacing: .04em; }
.footer-brand p { margin: 12px 0 0; line-height: 1.9; }
.footer-brand strong { color: #e6e9ee; }
/* 어두운 배경에서는 기본 브랜드 링크색이 거의 읽히지 않는다. */
.site-footer a { color: #c3cad4; }
.site-footer a:hover { color: #fff; }
.footer-links h3 { margin: 0 0 14px; font-size: 14px; color: #e6e9ee; font-weight: 700; }
.footer-links ul { list-style: none; margin: 0; padding: 0;
  columns: 2; column-gap: 24px; }
.footer-links li { margin-bottom: 9px; break-inside: avoid; }
.footer-links a { color: #9aa1ab; }
.footer-links a:hover { color: #fff; }
.footer-bottom { padding-top: 24px; display: flex; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; font-size: 13px; color: #767d87; }
.footer-bottom a { color: #9aa1ab; }

/* ---------- 본사 설정 도구 안내 (제품 페이지 하단) ---------- */
.tools { margin: 40px 0 0; padding: 24px 26px; border: 1px solid var(--line);
  border-radius: var(--radius); background: var(--brand-light); }
.tools h2 { margin: 0 0 6px; padding: 0; border-left: 0; font-size: 19px;
  font-family: var(--font-body); }
.tools > p { margin: 0 0 16px; font-size: 14px; }
.tools ul { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.tools li { margin: 0; }
.tools a { display: inline-block; padding: 9px 16px; border: 1px solid var(--brand);
  border-radius: 999px; background: var(--white); font-size: 14px; font-weight: 700;
  color: var(--brand); }
.tools a::after { content: " ↗"; font-size: 12px; }
.tools a:hover { background: var(--brand); color: var(--white); text-decoration: none; }

/* ---------- 적용 분야 (메인) ---------- */
.app-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.app-grid a { display: block; padding: 18px 20px 20px; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); }
.app-grid a:hover { border-color: var(--brand); box-shadow: var(--shadow); text-decoration: none; }
.app-grid strong { display: block; margin-bottom: 5px; font-size: 15px; font-weight: 700; }
.app-grid span { display: block; font-size: 13px; line-height: 1.6; color: var(--ink-soft); }

/* ---------- 반응형 ---------- */
@media (max-width: 900px) {
  .intro-split { grid-template-columns: 1fr; gap: 34px; }
  .footer-top { grid-template-columns: 1fr; gap: 30px; }
  .brand-banner .inner { flex-direction: column; align-items: flex-start; gap: 22px; padding: 40px 20px; }
  .brand-banner .go { width: 100%; }
  .brand-banner .go .btn { display: block; text-align: center; }
}

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  /* 닫힌 메뉴를 화면 밖으로 밀어내면 가로 스크롤이 생긴다. position:fixed 요소는
     조상의 overflow로 잘리지 않으므로, 위치는 뷰포트 안에 두고 페이드로 숨긴다.

     주의 — 부모인 .site-header에 backdrop-filter가 걸려 있다. backdrop-filter는
     position:fixed 자손의 기준(containing block)을 뷰포트에서 그 요소로 바꿔 놓는다.
     그래서 bottom:0 으로 높이를 잡으면 헤더 높이(64px)를 기준으로 계산돼
     패널이 50px로 찌그러지고, overflow-y:auto 때문에 HOME 아래가 잘려 나갔다.
     bottom 대신 높이를 직접 지정하면 기준이 무엇이든 결과가 같다. */
  .gnb {
    position: fixed; top: var(--header-h); right: 0; left: auto;
    width: min(320px, 84vw);
    height: calc(100vh - var(--header-h));
    height: calc(100dvh - var(--header-h));   /* 모바일 주소창 높이 변화 대응 */
    background: #fff; border-left: 1px solid var(--line);
    opacity: 0; visibility: hidden; transform: translateY(-10px);
    transition: opacity .22s ease, transform .22s ease, visibility .22s ease;
    overflow-y: auto; padding: 10px 0 40px; box-shadow: -8px 0 24px rgba(0, 0, 0, .06);
  }
  .gnb.open { opacity: 1; visibility: visible; transform: none; }
  .gnb > ul { display: block; }
  .gnb > ul > li > a { line-height: 1.6; padding: 15px 22px; border-bottom: 1px solid var(--line); }
  .gnb > ul > li.active > a { box-shadow: none; background: var(--brand-light); }
  .gnb .has-sub > a::after { float: right; margin-top: 9px; }
  .gnb .sub {
    position: static; opacity: 1; visibility: visible; transform: none;
    border: 0; border-radius: 0; box-shadow: none; padding: 0;
    background: var(--bg-soft); display: none;
  }
  .gnb .has-sub.open .sub { display: block; }
  .gnb .sub a { padding: 12px 34px; border-bottom: 1px solid var(--line); }
  .facts { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  :root { --header-h: 64px; }
  .logo img { height: 24px; }
  .logo .wordmark { font-size: 17px; }
  .section, .content { padding: 44px 0 52px; }
  .history li { grid-template-columns: 1fr; gap: 2px; }
  .downloads { padding: 20px 18px; }
  /* 스위처는 좁은 화면에서도 전부 보이도록 줄바꿈하고 크기만 줄인다. */
  .page-head.visual { padding: 40px 0 28px; }
  .switcher { margin-top: 22px; }
  .switcher ul { gap: 7px; }
  .switcher a { padding: 9px 14px; font-size: 13px; white-space: normal; }
}

@media print {
  .site-header, .site-footer, .hero-dots, .nav-toggle { display: none; }
  body { font-size: 12pt; }
}
