@charset "utf-8";
/* ==========================================================================
   대성테크놀로지 — 공통 (토큰 · 리셋 · 타이포 · 컴포넌트 · 헤더 · 푸터)
   ========================================================================== */

:root {
  /* color */
  --primary:      #0B5FA5;
  --primary-dark: #08406E;
  --primary-soft: #E8F1F9;
  --accent:       #00A9C4;
  --accent-soft:  #E3F6F9;
  --ink:          #1A1D21;
  --ink-2:        #3C4650;
  --gray:         #5A6673;
  --gray-2:       #8494A3;
  --line:         #E5E9EF;
  --line-2:       #D2DAE3;
  --surface:      #F5F8FB;
  --white:        #FFFFFF;
  --warn:         #B4690E;

  /* type */
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
          "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --fs-h1: 40px;  --lh-h1: 48px;
  --fs-h2: 32px;  --lh-h2: 40px;
  --fs-h3: 22px;  --lh-h3: 30px;
  --fs-body: 16px; --lh-body: 28px;
  --fs-sm: 14px;  --lh-sm: 22px;

  /* layout */
  --wrap: 1200px;
  --pad: 24px;
  --sec-y: 96px;
  --hd-h: 84px;
  --radius: 4px;
  --shadow: 0 2px 12px rgba(16, 38, 60, .08);
  --shadow-lg: 0 8px 32px rgba(16, 38, 60, .12);
  --ease: cubic-bezier(.4, 0, .2, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--white); color: var(--ink);
  font-family: var(--font); font-size: var(--fs-body); line-height: var(--lh-body);
  font-weight: 400; word-break: keep-all; overflow-wrap: anywhere;
}
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { max-width: 100%; height: auto; vertical-align: middle; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
table { border-collapse: collapse; width: 100%; }
address { font-style: normal; }

:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---------- utilities ---------- */
.sr {
  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: fixed; top: -60px; left: 16px; z-index: 200;
  padding: 10px 18px; background: var(--primary); color: #fff;
  border-radius: 0 0 var(--radius) var(--radius); transition: top .2s var(--ease);
}
.skip:focus { top: 0; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.mail { white-space: nowrap; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 24px; border-radius: var(--radius);
  font-size: 15px; font-weight: 600; letter-spacing: -.01em;
  border: 1px solid transparent; transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-outline { border-color: var(--line-2); color: var(--ink-2); background: #fff; }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-ghost { border-color: rgba(255,255,255,.55); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.14); }
.btn-lg { height: 54px; padding: 0 32px; font-size: 16px; }
.btn-sm { height: 38px; padding: 0 16px; font-size: 14px; }
.btn-block { width: 100%; }

/* ---------- header ---------- */
.hd {
  position: sticky; top: 0; z-index: 100; background: #fff;
  border-bottom: 1px solid var(--line);
}
.hd-in {
  max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad);
  height: var(--hd-h); display: flex; align-items: center; gap: 24px;
}
.hd-logo { display: flex; align-items: center; gap: 12px; flex: none; }
.hd-mark { width: auto; height: 56px; flex: none; }          /* 243x293 마크 — 높이에 맞춰 폭은 따라간다 */
.hd-logo-txt { display: flex; flex-direction: column; justify-content: center; }
html[lang="en"] .hd-logo-ko { font-size: 15px; letter-spacing: -.02em; white-space: nowrap; }
html[lang="en"] .hd-logo-en { font-size: 9.5px; }
html[lang="en"] .gnb-item > a { letter-spacing: -.01em; padding: 0 var(--gnb-pad-en, 12px); }
html[lang="en"] .gnb-item > a::after { left: var(--gnb-pad-en, 12px); right: var(--gnb-pad-en, 12px); }
html[lang="en"] .hd-tel-label { display: none; }
.hd-logo-ko { font-size: 21px; font-weight: 800; letter-spacing: -.03em; color: var(--primary-dark); }
.hd-logo-en {
  font-size: 10px; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: var(--gray-2); margin-top: 2px;
}

.gnb { margin-left: auto; align-self: stretch; flex: none; }   /* 메뉴는 절대 줄어들지 않는다 */
.gnb-list { display: flex; height: 100%; }
.gnb-item { position: relative; display: flex; align-items: center; flex: none; }
.gnb-item > a {
  display: flex; align-items: center; height: 100%; padding: 0 var(--gnb-pad, 20px);
  font-size: 17px; font-weight: 600; letter-spacing: -.02em; color: var(--ink-2);
  white-space: nowrap;                                         /* 항목 이름은 한 줄 */
  transition: color .2s var(--ease);
}
.gnb-item > a::after {
  content: ""; position: absolute; left: var(--gnb-pad, 20px); right: var(--gnb-pad, 20px); bottom: -1px;
  height: 3px; background: var(--primary); transform: scaleX(0);
  transition: transform .25s var(--ease);
}
.gnb-item:hover > a, .gnb-item.on > a { color: var(--primary); }
.gnb-item:hover > a::after, .gnb-item.on > a::after { transform: scaleX(1); }

.gnb-sub {
  position: absolute; top: 100%; left: 8px; min-width: 176px;
  padding: 10px 0; background: #fff; border: 1px solid var(--line);
  border-radius: 0 0 var(--radius) var(--radius); box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
}
.gnb-item:hover .gnb-sub, .gnb-item:focus-within .gnb-sub {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.gnb-sub a {
  display: block; padding: 9px 20px; font-size: 15px; color: var(--gray);
  transition: background .15s var(--ease), color .15s var(--ease);
}
.gnb-sub a:hover { background: var(--primary-soft); color: var(--primary); }

.hd-util { display: flex; align-items: center; gap: 14px; flex: none; }
.hd-tel strong, .hd-cta { white-space: nowrap; }

/* 언어 전환 */
.langsw { display: flex; align-items: center; gap: 2px; }
.langsw-item {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 34px; height: 28px; padding: 0 8px; border-radius: 3px;
  font-size: 12px; font-weight: 700; letter-spacing: .04em; color: var(--gray-2);
  transition: background .2s var(--ease), color .2s var(--ease);
}
a.langsw-item:hover { background: var(--surface); color: var(--primary); }
.langsw-item.on { background: var(--primary-soft); color: var(--primary-dark); }
.mnav-lang { display: flex; justify-content: center; gap: 6px; font-size: 14px; }
.mnav-lang > * { padding: 6px 12px; border-radius: 3px; color: var(--gray); }
.mnav-lang a:hover { background: var(--surface); color: var(--primary); }
.mnav-lang .on { background: var(--primary-soft); color: var(--primary-dark); font-weight: 700; }
.hd-tel { display: flex; flex-direction: column; line-height: 1.25; text-align: right; }
.hd-tel-label { font-size: 10px; font-weight: 600; letter-spacing: .08em; color: var(--gray-2); }
.hd-tel strong { font-size: 19px; font-weight: 700; color: var(--primary-dark); letter-spacing: -.02em; }
.hd-cta { height: 42px; padding: 0 20px; font-size: 14px; }

.hd-toggle { display: none; width: 44px; height: 44px; margin-right: -8px; }
.bars { display: block; width: 22px; margin: 0 auto; }
.bars i { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s var(--ease), opacity .2s var(--ease); }
.bars i + i { margin-top: 5px; }
.hd-toggle[aria-expanded="true"] .bars i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hd-toggle[aria-expanded="true"] .bars i:nth-child(2) { opacity: 0; }
.hd-toggle[aria-expanded="true"] .bars i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- mobile nav ---------- */
.mnav {
  position: fixed; top: 0; right: 0; z-index: 120;
  width: min(88vw, 340px); height: 100dvh; background: #fff;
  padding: 84px 0 24px; overflow-y: auto;
  transform: translateX(100%); transition: transform .3s var(--ease);
  box-shadow: var(--shadow-lg);
}
.mnav[hidden] { display: block; }
.mnav.open { transform: translateX(0); }
.mnav-head {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  padding: 15px 24px; font-size: 17px; font-weight: 700; text-align: left;
  border-bottom: 1px solid var(--line);
}
.mnav-head.on { color: var(--primary); }
.mnav-arrow { width: 9px; height: 9px; border-right: 2px solid var(--gray-2); border-bottom: 2px solid var(--gray-2); transform: rotate(45deg); transition: transform .25s var(--ease); }
.mnav-head[aria-expanded="true"] .mnav-arrow { transform: rotate(-135deg); }
.mnav-sub { padding: 6px 0 12px; background: var(--surface); border-bottom: 1px solid var(--line); }
.mnav-sub a { display: block; padding: 10px 24px 10px 34px; font-size: 15px; color: var(--gray); }
.mnav-sub a.on { color: var(--primary); font-weight: 600; }
.mnav-foot { padding: 24px; display: grid; gap: 12px; }
.mnav-tel { text-align: center; font-size: 19px; font-weight: 700; color: var(--primary-dark); }

.dim { position: fixed; inset: 0; z-index: 110; background: rgba(12, 24, 36, .45); }
.dim[hidden] { display: none; }

/* ---------- section heads (sub pages) ---------- */
.sec-head { margin-bottom: 40px; }
.sec-title {
  font-size: var(--fs-h2); line-height: var(--lh-h2); font-weight: 700;
  letter-spacing: -.03em; text-wrap: balance;
}
.sec-lede { margin-top: 14px; color: var(--gray); max-width: 62ch; }

/* ---------- generic content blocks ---------- */
.prose h3 { font-size: var(--fs-h3); line-height: var(--lh-h3); font-weight: 700; letter-spacing: -.02em; margin: 40px 0 14px; }
.prose h3:first-child { margin-top: 0; }
.prose p { margin-bottom: 16px; color: var(--ink-2); }
.prose p:last-child { margin-bottom: 0; }
.prose ul.bullet { margin: 0 0 16px; display: grid; gap: 8px; }
.prose ul.bullet li { position: relative; padding-left: 16px; color: var(--ink-2); }
.prose ul.bullet li::before {
  content: ""; position: absolute; left: 0; top: 12px;
  width: 5px; height: 5px; border-radius: 50%; background: var(--accent);
}

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease);
}
a.card:hover { border-color: var(--primary); box-shadow: var(--shadow); transform: translateY(-3px); }

/* 제품 카드 — 홈과 제품 목록에서 공유 */
.prod-card { display: block; overflow: hidden; }
.prod-thumb { aspect-ratio: 4 / 3; background: var(--surface); overflow: hidden; }
.prod-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.prod-card:hover .prod-thumb img { transform: scale(1.05); }
.prod-body { padding: 18px 20px 20px; }
.prod-cat {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .06em;
  color: var(--primary); background: var(--primary-soft);
  padding: 3px 8px; border-radius: 2px; margin-bottom: 10px;
}
.prod-name { font-size: 17px; font-weight: 700; letter-spacing: -.025em; }
.prod-sum {
  margin-top: 7px; font-size: 14px; line-height: 1.6; color: var(--gray);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* 실적 카드 — 홈과 실적 목록에서 공유 */
.pf-card { display: block; overflow: hidden; }
.pf-thumb { aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface); }
.pf-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.pf-card:hover .pf-thumb img { transform: scale(1.05); }
.pf-body { padding: 16px 18px 18px; }
.pf-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 12px; }
.pf-cat { font-weight: 700; color: var(--accent); }
.pf-date { color: var(--gray-2); font-variant-numeric: tabular-nums; }
.pf-title {
  font-size: 15px; font-weight: 600; line-height: 1.5; letter-spacing: -.02em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.tbl { min-width: 520px; font-size: 15px; }
.tbl th, .tbl td { padding: 14px 18px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.tbl thead th { background: var(--surface); font-size: 14px; font-weight: 700; color: var(--ink-2); white-space: nowrap; }
.tbl tbody tr:last-child th, .tbl tbody tr:last-child td { border-bottom: 0; }
.tbl th[scope="row"] { background: var(--surface); font-weight: 600; white-space: nowrap; width: 168px; }
.tbl .num { font-variant-numeric: tabular-nums; }

.note-box {
  border: 1px solid var(--line-2); border-left: 3px solid var(--warn);
  background: var(--surface); padding: 16px 20px; border-radius: var(--radius);
  font-size: 15px; color: var(--gray);
}

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(100deg, var(--primary-dark) 0%, var(--primary) 55%, #0A7FA8 100%);
  color: #fff; text-align: center;
}
.cta-in { max-width: var(--wrap); margin: 0 auto; padding: 64px var(--pad); }
.cta-title { font-size: 30px; line-height: 1.35; font-weight: 700; letter-spacing: -.03em; text-wrap: balance; }
.cta-desc { margin-top: 12px; color: rgba(255, 255, 255, .82); }
.cta-btns { margin-top: 28px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.cta-band .btn-primary { background: #fff; color: var(--primary-dark); }
.cta-band .btn-primary:hover { background: var(--primary-soft); }

/* ---------- footer ---------- */
.ft { background: #16202B; color: #A9B7C4; font-size: var(--fs-sm); line-height: var(--lh-sm); }
.ft-in {
  max-width: var(--wrap); margin: 0 auto; padding: 56px var(--pad) 40px;
  display: grid; grid-template-columns: 260px 1fr; gap: 40px;
}
.ft-name { font-size: 19px; font-weight: 700; color: #fff; letter-spacing: -.02em; }
.ft-en { margin-top: 4px; font-size: 12px; letter-spacing: .06em; color: #7E8E9D; }
.ft-tagline { margin-top: 16px; color: var(--accent); font-weight: 600; }
.ft-offices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.ft-office-name { font-weight: 700; color: #E4EBF1; margin-bottom: 6px; }
.ft-office-addr { color: #97A6B4; }
.ft-office-tel { margin-top: 6px; color: #97A6B4; font-variant-numeric: tabular-nums; }
.ft-office-tel a:hover { color: #fff; text-decoration: underline; }
.ft-bar { border-top: 1px solid #263442; }
.ft-bar-in {
  max-width: var(--wrap); margin: 0 auto; padding: 18px var(--pad);
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.ft-copy { font-size: 13px; color: #7E8E9D; }
.ft-links { display: flex; gap: 18px; flex-wrap: wrap; font-size: 13px; }
.ft-links a:hover { color: #fff; }

/* ---------- to top ---------- */
.totop {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--primary); box-shadow: var(--shadow);
  transition: opacity .25s var(--ease), transform .25s var(--ease), background .2s var(--ease);
}
.totop[hidden] { display: none; }
.totop:hover { background: var(--primary-dark); }
.totop span[aria-hidden] {
  display: block; width: 10px; height: 10px; margin: 3px auto 0;
  border-top: 2px solid #fff; border-left: 2px solid #fff; transform: rotate(45deg);
}

/* ---------- scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ==========================================================================
   responsive
   ========================================================================== */
@media (max-width: 1360px) {
  :root { --gnb-pad: 15px; --gnb-pad-en: 11px; }
  .hd-in { gap: 18px; }
}
@media (max-width: 1200px) {
  :root { --gnb-pad: 11px; }
  .gnb-item > a { font-size: 16px; }
  .hd-in { gap: 12px; }
  .hd-cta { padding: 0 16px; }
  .hd-tel-label { display: none; }                            /* '대표번호' 라벨은 숨기고 번호만 */
  .hd-logo-en { display: none; }                              /* 영문 회사명은 숨긴다 */
  html[lang="en"] .hd-logo-txt { display: none; }             /* 영문은 라틴 회사명이 길어 마크만 남긴다 */
}

@media (max-width: 1024px) {
  :root { --sec-y: 72px; --hd-h: 68px; }
  .gnb, .hd-tel, .hd-cta { display: none; }
  .hd-mark { height: 44px; }
  .hd-logo { gap: 10px; }
  .hd-logo-en { display: block; }                            /* 모바일은 메뉴가 숨겨져 여유가 있다 */
  .hd-toggle { display: block; }
  .hd-util { margin-left: auto; }
  .ft-in { grid-template-columns: 1fr; gap: 32px; }
  .ft-offices { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root {
    --fs-h1: 30px; --lh-h1: 40px;
    --fs-h2: 24px; --lh-h2: 34px;
    --fs-h3: 19px; --lh-h3: 28px;
    --fs-body: 15px; --lh-body: 26px;
    --sec-y: 56px; --pad: 20px;
  }
  .sec-head { margin-bottom: 28px; }
  .cta-in { padding: 48px var(--pad); }
  .cta-title { font-size: 23px; }
  .cta-btns .btn { flex: 1 1 100%; }
  .ft-bar-in { flex-direction: column; align-items: flex-start; gap: 10px; }
}

@media (max-width: 480px) {
  .ft-offices { grid-template-columns: 1fr; }
  .ft-links { gap: 12px; }
}
