/* ==========================================================
   JK RETECH — 공통 스타일
   색상은 로고(assets/brand/logo.svg)에서 그대로 가져왔습니다.
   ========================================================== */

:root {
  /* 로고 색 */
  --navy: #0b2347;
  --cyan: #0b84b8;

  /* 파생 색 */
  --navy-700: #1a3a66;
  --cyan-text: #0a6c97;      /* 흰 배경 위 작은 글씨용 (대비 5:1 이상) */
  --cyan-soft: #e6f3f9;
  --ink: #0b2347;
  --text: #2a384c;
  --muted: #586880;
  --line: #dde4ec;
  --line-strong: #c3cfdb;
  --bg: #ffffff;
  --bg-soft: #f4f7fa;

  /* 글꼴 — 언어별로 :lang()에서 교체 */
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
          "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;

  /* 크기 */
  --wrap: 1200px;
  --gutter: 20px;
  --header-h: 64px;
  --radius: 2px;
  --ease: cubic-bezier(.2, .6, .2, 1);
}

:lang(ja) {
  --font: "Pretendard JP Variable", "Noto Sans JP", "Hiragino Sans", "Yu Gothic", system-ui, sans-serif;
}

@media (min-width: 768px) {
  :root { --gutter: 40px; --header-h: 76px; }
}

/* ---------- 기본 ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}
:lang(ja) body, body:lang(ja) { word-break: normal; line-break: strict; }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { color: var(--ink); margin: 0; line-height: 1.3; letter-spacing: -0.02em; font-weight: 650; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 12px; top: -48px; z-index: 100;
  background: var(--navy); color: #fff; padding: 10px 16px; text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }

/* 연락처 등 아직 채우지 않은 자리 */
.todo {
  background: var(--cyan-soft);
  color: var(--cyan-text);
  padding: 0 .35em;
  border-radius: var(--radius);
  font-weight: 500;
}

/* ---------- 헤더 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(1.2) blur(6px);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 24px; }
.brand { display: inline-flex; flex-shrink: 0; }
.brand img { height: 32px; width: auto; }
@media (min-width: 768px) { .brand img { height: 38px; } }

.gnb { display: flex; align-items: center; gap: 32px; }
.gnb ul { display: flex; gap: 4px; }
.gnb ul a {
  display: block; padding: 10px 14px;
  text-decoration: none; font-size: 15.5px; font-weight: 500; color: var(--text);
  position: relative; transition: color .2s var(--ease);
}
.gnb ul a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px;
  background: var(--cyan); transform: scaleX(0); transform-origin: left;
  transition: transform .25s var(--ease);
}
.gnb ul a:hover { color: var(--ink); }
.gnb ul a:hover::after, .gnb ul a[aria-current="page"]::after { transform: scaleX(1); }
.gnb ul a[aria-current="page"] { color: var(--ink); font-weight: 650; }

.lang { display: flex; align-items: center; font-size: 13px; letter-spacing: .04em; border-left: 1px solid var(--line); padding-left: 20px; }
.lang a, .lang span { padding: 6px 7px; text-decoration: none; color: var(--muted); }
.lang a[aria-current="true"] { color: var(--ink); font-weight: 700; }
.lang [aria-disabled="true"] { color: #a6b2c1; cursor: not-allowed; }

.nav-toggle {
  display: none; width: 44px; height: 44px; margin-right: -10px;
  background: none; border: 0; cursor: pointer; position: relative;
}
.nav-toggle .bars, .nav-toggle .bars::before, .nav-toggle .bars::after {
  position: absolute; left: 11px; width: 22px; height: 2px; background: var(--navy);
  transition: transform .25s var(--ease), opacity .2s;
}
.nav-toggle .bars { top: 21px; }
.nav-toggle .bars::before, .nav-toggle .bars::after { content: ""; left: 0; }
.nav-toggle .bars::before { top: -7px; }
.nav-toggle .bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 959px) {
  .nav-toggle { display: block; }
  .gnb {
    position: fixed; inset: var(--header-h) 0 0 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); padding: 8px var(--gutter) 32px;
    overflow-y: auto;
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .2s var(--ease), transform .2s var(--ease), visibility 0s .2s;
  }
  .gnb.is-open { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .gnb ul { flex-direction: column; gap: 0; }
  .gnb ul a { padding: 18px 0; font-size: 18px; border-bottom: 1px solid var(--line); }
  .gnb ul a::after { display: none; }
  .gnb ul a[aria-current="page"] { color: var(--cyan-text); }
  .lang { border-left: 0; padding: 24px 0 0; font-size: 14px; }
  .lang a, .lang span { padding: 10px 12px 10px 0; }
  body.nav-open { overflow: hidden; }
}

/* ---------- 버튼 · 링크 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px;
  font: inherit; font-size: 15.5px; font-weight: 600; text-decoration: none;
  border: 1px solid var(--navy); border-radius: var(--radius); cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-700); border-color: var(--navy-700); }
.btn-line { background: transparent; color: var(--navy); border-color: var(--line-strong); }
.btn-line:hover { border-color: var(--navy); }
.btn .arrow { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

.text-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; color: var(--ink); text-decoration: none;
  border-bottom: 1px solid var(--line-strong); padding-bottom: 2px;
  transition: border-color .2s var(--ease);
}
.text-link:hover { border-color: var(--cyan); }

/* ---------- 섹션 공통 ---------- */
.section { padding: 72px 0; }
.section + .section { border-top: 1px solid var(--line); }
.section.soft { background: var(--bg-soft); border-top: 0; }
.section.soft + .section { border-top: 0; }
@media (min-width: 768px) { .section { padding: 112px 0; } }

.label {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 600; color: var(--cyan-text); letter-spacing: .01em;
  margin-bottom: 18px;
}
.label::before { content: ""; width: 18px; height: 1px; background: var(--cyan); }

.section-head { display: grid; gap: 20px; margin-bottom: 48px; max-width: 760px; }
.section-head h2 { font-size: clamp(26px, 4vw, 38px); }
.section-head p { font-size: 17px; color: var(--muted); }
@media (min-width: 768px) { .section-head { margin-bottom: 64px; } }

/* 좌측 제목 + 우측 본문 2단 */
.split { display: grid; gap: 32px; }
@media (min-width: 960px) {
  .split { grid-template-columns: 4fr 7fr; gap: 64px; }
  .split.even { grid-template-columns: 1fr 1fr; align-items: center; }
}
.split h2 { font-size: clamp(26px, 4vw, 38px); }
.prose p + p { margin-top: 1.1em; }
.prose { font-size: 17px; }

/* ---------- 홈 히어로 ---------- */
.hero { padding: 56px 0 72px; border-bottom: 1px solid var(--line); overflow: hidden; }
.hero-grid { display: grid; gap: 48px; align-items: center; }
.hero h1 {
  font-size: clamp(40px, 8.4vw, 84px);
  font-weight: 700; line-height: 1.12; letter-spacing: -0.035em;
}
.hero h1 em { font-style: normal; color: var(--cyan); }
.hero-lead { margin-top: 28px; font-size: clamp(17px, 2vw, 19px); color: var(--muted); max-width: 520px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
@media (min-width: 960px) {
  .hero { padding: 96px 0 120px; }
  .hero-grid { grid-template-columns: 7fr 5fr; gap: 64px; }
}

/* 현미경 렌즈 모티프 */
.lens { position: relative; width: min(100%, 440px); aspect-ratio: 1; margin: 0 auto; }
.lens-view {
  position: absolute; inset: 9%; border-radius: 50%; overflow: hidden;
  background: var(--bg-soft);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}
.lens-view svg, .lens-view .photo { position: absolute; inset: 0; width: 100%; height: 100%; }
.lens-view .photo { border: 0; background: none; aspect-ratio: auto; }
.lens-view .photo img { object-fit: cover; width: 100%; height: 100%; }
.lens-view .photo.is-empty { display: none; }
.lens-ring { position: absolute; inset: 0; width: 100%; height: 100%; }
.lens-caption {
  position: absolute; right: 0; bottom: 4%;
  font-size: 12.5px; color: var(--muted); letter-spacing: .02em;
  display: flex; align-items: center; gap: 8px;
}
.lens-caption::before { content: ""; width: 28px; height: 1px; background: var(--line-strong); }

/* ---------- 하위 페이지 상단 ---------- */
.page-hero { padding: 56px 0 48px; border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(32px, 5.6vw, 56px); font-weight: 700; letter-spacing: -0.03em; }
.page-hero p { margin-top: 20px; font-size: clamp(17px, 2vw, 19px); color: var(--muted); max-width: 680px; }
@media (min-width: 768px) { .page-hero { padding: 96px 0 72px; } }

/* 페이지 내 바로가기 */
.subnav { border-bottom: 1px solid var(--line); background: var(--bg); }
.subnav ul { display: flex; gap: 28px; overflow-x: auto; scrollbar-width: none; }
.subnav ul::-webkit-scrollbar { display: none; }
.subnav a {
  display: block; padding: 16px 0; white-space: nowrap;
  font-size: 15px; color: var(--muted); text-decoration: none;
  transition: color .2s var(--ease);
}
.subnav a:hover { color: var(--ink); }

/* ---------- 목록형 인덱스 (홈의 사업 안내) ---------- */
.index-list { border-top: 1px solid var(--navy); }
.index-list li { border-bottom: 1px solid var(--line); }
.index-list a {
  display: grid; grid-template-columns: 1fr auto; gap: 8px 24px; align-items: center;
  padding: 28px 0; text-decoration: none;
}
.index-list .num { display: none; font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.index-list h3 { font-size: 22px; transition: color .2s var(--ease); }
.index-list p { grid-column: 1 / 2; color: var(--muted); }
.index-list .go {
  grid-row: 1 / 3; grid-column: 2;
  width: 44px; height: 44px; border: 1px solid var(--line-strong); border-radius: 50%;
  display: grid; place-items: center; color: var(--navy);
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.index-list .go svg { width: 16px; height: 16px; }
.index-list a:hover h3 { color: var(--cyan-text); }
.index-list a:hover .go { background: var(--navy); border-color: var(--navy); color: #fff; }
@media (min-width: 768px) {
  .index-list a { grid-template-columns: 80px 260px 1fr auto; padding: 36px 0; }
  .index-list .num { display: block; }
  .index-list p { grid-column: auto; }
  .index-list .go { grid-row: auto; grid-column: auto; }
}

/* ---------- 원칙 3단 ---------- */
.columns { display: grid; gap: 40px; }
.columns > * { border-top: 1px solid var(--navy); padding-top: 24px; }
.columns h3 { font-size: 20px; margin-bottom: 12px; }
.columns p { color: var(--muted); }
.columns .k { display: block; font-size: 13px; color: var(--cyan-text); font-weight: 600; margin-bottom: 20px; font-variant-numeric: tabular-nums; }
@media (min-width: 768px) { .columns { grid-template-columns: repeat(3, 1fr); gap: 40px; } }
.columns.two { }
@media (min-width: 768px) { .columns.two { grid-template-columns: repeat(2, 1fr); } }

/* ---------- 정의 행 (항목 · 설명) ---------- */
.rows { border-top: 1px solid var(--navy); }
.rows > div { display: grid; gap: 8px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.rows dt, .rows h3 { font-size: 18px; font-weight: 650; color: var(--ink); }
.rows dd { margin: 0; color: var(--muted); }
@media (min-width: 768px) {
  .rows > div { grid-template-columns: 280px 1fr; gap: 40px; padding: 28px 0; }
}

/* 회사 개요 표 */
.facts { width: 100%; border-collapse: collapse; border-top: 1px solid var(--navy); font-size: 16px; }
.facts th, .facts td { text-align: left; padding: 18px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.facts th { width: 34%; font-weight: 600; color: var(--ink); padding-right: 16px; }
@media (min-width: 768px) { .facts th { width: 220px; } }

/* ---------- 진행 순서 ---------- */
.steps { display: grid; gap: 0; counter-reset: step; border-top: 1px solid var(--navy); }
.steps li { counter-increment: step; display: grid; grid-template-columns: 48px 1fr; gap: 4px 12px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.steps li::before {
  content: counter(step, decimal-leading-zero);
  grid-row: 1 / 3; font-size: 14px; font-weight: 600; color: var(--cyan-text);
  font-variant-numeric: tabular-nums; padding-top: 3px;
}
.steps h3 { font-size: 18px; }
.steps p { color: var(--muted); font-size: 15.5px; }
@media (min-width: 960px) {
  .steps { grid-template-columns: repeat(6, 1fr); border-top: 0; }
  .steps li {
    display: block; padding: 24px 20px 0 0; border-bottom: 0;
    border-top: 1px solid var(--navy); position: relative;
  }
  .steps li::after {
    content: ""; position: absolute; top: -4px; left: 0; width: 7px; height: 7px;
    background: var(--bg); border: 1px solid var(--navy); border-radius: 50%;
  }
  .steps li::before { display: block; margin-bottom: 14px; padding: 0; }
  .steps h3 { margin-bottom: 8px; }
}

/* 체크 목록 */
.checks li { position: relative; padding: 14px 0 14px 32px; border-bottom: 1px solid var(--line); }
.checks li:first-child { border-top: 1px solid var(--line); }
.checks li::before {
  content: ""; position: absolute; left: 4px; top: 22px; width: 12px; height: 7px;
  border-left: 2px solid var(--cyan); border-bottom: 2px solid var(--cyan); transform: rotate(-45deg);
}

/* ---------- 인용 · 인사말 ---------- */
.statement { font-size: clamp(24px, 3.6vw, 36px); font-weight: 600; line-height: 1.45; color: var(--ink); letter-spacing: -0.025em; max-width: 900px; }
.statement .c { color: var(--cyan); }

.letter { max-width: 720px; font-size: 17px; line-height: 1.9; }
.letter p + p { margin-top: 1.3em; }
.letter .sign { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--ink); font-weight: 600; }
.letter-title { font-size: clamp(26px, 4vw, 38px); margin-bottom: 40px; }

/* ---------- 사업장 ---------- */
.sites { display: grid; gap: 48px; }
@media (min-width: 768px) { .sites { grid-template-columns: 1fr 1fr; gap: 40px; } }
.site .photo { margin-bottom: 24px; }
.site h3 { font-size: 22px; margin-bottom: 6px; }
.site .place { color: var(--muted); }
.site dl { margin: 20px 0 0; border-top: 1px solid var(--line); }
.site dl > div { display: grid; grid-template-columns: 96px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; }
.site dt { color: var(--muted); }
.site dd { margin: 0; }

/* ---------- 사진 자리 ----------
   <figure class="photo" data-label="..." data-size="..."> 안의 <img> 경로에
   같은 이름의 파일을 넣으면 자동으로 사진이 표시됩니다.
   파일이 없으면 아래 안내 표시가 나타납니다. */
.photo {
  position: relative; margin: 0; overflow: hidden;
  aspect-ratio: 16 / 10; background: var(--bg-soft);
  border-radius: var(--radius);
}
.photo.r-4-3 { aspect-ratio: 4 / 3; }
.photo.r-1-1 { aspect-ratio: 1; }
.photo.r-21-9 { aspect-ratio: 21 / 9; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo.is-empty img { display: none; }
.photo.is-empty {
  border: 1px dashed var(--line-strong);
  background:
    repeating-linear-gradient(135deg, transparent 0 11px, rgba(11, 35, 71, .035) 11px 12px),
    var(--bg-soft);
}
.photo.is-empty::after {
  content: "사진 자리 · " attr(data-label) "\A" attr(data-size) "  " attr(data-file);
  white-space: pre-line;
  position: absolute; inset: 0; display: grid; place-content: center; text-align: center;
  padding: 16px; font-size: 13px; line-height: 1.7; color: var(--muted); letter-spacing: .01em;
}
figcaption { margin-top: 12px; font-size: 14px; color: var(--muted); }

/* 세정 전·후 비교 */
.compare { display: grid; gap: 24px; }
@media (min-width: 768px) { .compare { grid-template-columns: 1fr 1fr; } }
.compare .tag { display: inline-block; font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 12px; }

/* ---------- 연락처 ---------- */
.contact-grid { display: grid; gap: 0; border-top: 1px solid var(--navy); }
.contact-item { padding: 32px 0; border-bottom: 1px solid var(--line); }
.contact-item .k { font-size: 14px; color: var(--muted); margin-bottom: 8px; display: block; }
.contact-item .v { font-size: clamp(22px, 3.2vw, 30px); font-weight: 650; color: var(--ink); letter-spacing: -0.01em; text-decoration: none; }
.contact-item .v .todo { font-size: .8em; }
.contact-item p { margin-top: 10px; color: var(--muted); font-size: 15.5px; }
@media (min-width: 768px) {
  .contact-grid { grid-template-columns: 1fr 1fr; }
  .contact-item { padding: 40px 40px 40px 0; }
  .contact-item + .contact-item { padding-left: 40px; border-left: 1px solid var(--line); }
}

/* ---------- 문의 띠 (네이비) ---------- */
.cta { background: var(--navy); color: #c9d5e4; padding: 72px 0; }
.cta h2 { color: #fff; font-size: clamp(26px, 4vw, 38px); }
.cta p { margin-top: 16px; max-width: 560px; }
.cta-inner { display: grid; gap: 40px; }
.cta-links { display: grid; gap: 0; border-top: 1px solid rgba(255, 255, 255, .22); }
.cta-links > div { display: grid; grid-template-columns: 72px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid rgba(255, 255, 255, .14); }
.cta-links dt { font-size: 14px; color: #8fa3bd; }
.cta-links dd { margin: 0; color: #fff; font-weight: 600; font-size: 18px; }
.cta .todo { background: rgba(11, 132, 184, .22); color: #bfe6f6; }
.cta .text-link { color: #fff; border-color: rgba(255, 255, 255, .4); margin-top: 28px; }
.cta .text-link:hover { border-color: var(--cyan); }
@media (min-width: 960px) {
  .cta { padding: 104px 0; }
  .cta-inner { grid-template-columns: 6fr 5fr; gap: 80px; align-items: end; }
}

/* ---------- 푸터 ---------- */
.site-footer { background: var(--bg-soft); border-top: 1px solid var(--line); padding: 56px 0 32px; font-size: 14.5px; color: var(--muted); }
.footer-top { display: grid; gap: 40px; }
.footer-brand img { height: 30px; width: auto; }
.footer-brand p { margin-top: 14px; }
.footer-info { margin: 0; display: grid; gap: 8px; }
.footer-info > div { display: grid; grid-template-columns: 100px 1fr; gap: 12px; }
.footer-info dt { color: var(--ink); font-weight: 600; }
.footer-info dd { margin: 0; }
.footer-nav ul { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.footer-nav a { text-decoration: none; display: inline-block; padding: 6px 0; }
.footer-nav a:hover { color: var(--ink); }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; }
@media (min-width: 960px) {
  .footer-top { grid-template-columns: 1fr 1.4fr 1fr; gap: 64px; }
  .footer-nav ul { flex-direction: column; gap: 2px; }
}

/* ---------- 기타 ---------- */
.note { margin-top: 32px; font-size: 14.5px; color: var(--muted); padding-left: 16px; border-left: 2px solid var(--line-strong); }
.mt-l { margin-top: 64px; }
.nobr { white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; }
}

/* 하위 페이지 상단 배너 · 홈 산업 현장 띠 · 2공장 사진 */
.page-banner { padding-top: 40px; }
.page-banner .photo { margin: 0; }
.home-band { padding-top: 0; }
.sites-photo { margin: 0 0 40px; }
@media (max-width: 767px) { .page-banner .photo.r-21-9, .sites-photo.r-21-9 { aspect-ratio: 4 / 3; } .page-banner { padding-top: 24px; } }

.photo.r-4-5 { aspect-ratio: 4 / 5; }
.compare .photo.r-4-5 { max-width: 480px; }

.letter strong { color: #0a6c97; font-weight: 600; }

/* 세정 대상 필터 종류 카드 */
.type-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 32px 24px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .type-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .type-grid { grid-template-columns: repeat(4, 1fr); } }
.type-card .photo { margin: 0 0 16px; }
.type-card h3 { font-size: 19px; margin: 0 0 6px; }
.type-card p { color: var(--muted); font-size: 15.5px; margin: 0; }
