/* ============================================================
   antbiz.co.kr — KRDS(전자정부 디자인 시스템) 토큰 기반 기업 홈페이지
   원칙: 평면 표면 · 1px 회색 보더 위계 · 라운드 최대 12px · 그라데이션/이모지 없음
   ============================================================ */

:root {
  /* Gray 13단계 */
  --gray-5: #FAFAFA; --gray-10: #F4F5F6; --gray-20: #E6E8EA; --gray-30: #CDD1D5;
  --gray-40: #B1B8BE; --gray-50: #8A949E; --gray-60: #6D7882; --gray-70: #58616A;
  --gray-80: #464C53; --gray-90: #33363D; --gray-95: #1E2124; --gray-100: #131416;
  /* Primary — government blue */
  --primary-5: #F7FAFF; --primary-10: #ECF2FE; --primary-20: #D8E5FD; --primary-30: #A3C2F8;
  --primary-40: #5B92F4; --primary-50: #256EF4; --primary-60: #0B50D0; --primary-70: #063A74;
  --primary-80: #052B57; --primary-90: #03204A;
  /* Secondary — deep navy chrome */
  --secondary-10: #EEF2F7; --secondary-20: #D6E0EB; --secondary-30: #98ACC5;
  --secondary-50: #39506C; --secondary-70: #052B57; --secondary-80: #032041;
  /* Accent — 단일 핵심 강조에만 쓴다(KRDS 규칙). 지금은 메뉴의 AI 항목 */
  --accent-10: #FCE9E9; --accent-60: #C72B2B; --accent-70: #8E1A1A;
  /* Semantic */
  --info: #0B78CB; --success: #1F7A47; --warning: #C26900; --danger: #D6322F;
  /* Foreground / surface */
  --fg-1: var(--gray-100); --fg-2: var(--gray-80); --fg-3: var(--gray-60); --fg-4: var(--gray-50);
  --fg-link: var(--primary-60);
  --bg-canvas: #FFFFFF; --bg-subtle: var(--gray-10); --bg-muted: var(--secondary-10);
  --border: var(--gray-30); --border-strong: var(--gray-50); --border-focus: var(--primary-50);
  /* Elevation */
  --shadow-1: 0 1px 2px rgba(19,20,22,.06), 0 1px 1px rgba(19,20,22,.04);
  --shadow-2: 0 2px 6px rgba(19,20,22,.08), 0 1px 2px rgba(19,20,22,.04);
  --shadow-3: 0 6px 16px rgba(19,20,22,.10), 0 2px 4px rgba(19,20,22,.05);
  /* Radius */
  --r-xs: 4px; --r-sm: 6px; --r-md: 8px; --r-lg: 10px; --r-xl: 12px;
  /* Spacing — 섹션 상하 여백은 이 토큰 하나로 통일 */
  --sec-y: 80px;
  --container: 1248px;
  --font: "Pretendard GOV", "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif;
  --ease: cubic-bezier(.2, 0, 0, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.55; letter-spacing: 0;
  color: var(--fg-1); background: var(--bg-canvas); word-break: keep-all; overflow-wrap: anywhere;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--primary-60); }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, address { margin: 0; font-style: normal; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
table { border-collapse: collapse; width: 100%; }
:focus-visible { outline: 2px solid var(--border-focus); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ms {
  font-family: "Material Symbols Outlined"; font-weight: normal; font-style: normal; font-size: 24px;
  line-height: 1; letter-spacing: normal; display: inline-block; vertical-align: middle;
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
}
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
@media (min-width: 1376px) { .container { padding: 0 24px; } }

.skip-link {
  position: absolute; left: 0; top: -100px; z-index: 100; padding: 10px 16px;
  background: var(--primary-50); color: #fff; font-weight: 700; border-radius: 0 0 var(--r-sm) 0;
}
.skip-link:focus { top: 0; color: #fff; }

/* ---------- Header ---------- */
.header { position: relative; z-index: 50; background: var(--bg-canvas); }
.utility { background: var(--gray-100); color: var(--gray-30); font-size: 13px; }
.utility__inner { display: flex; align-items: center; justify-content: space-between; height: 40px; }
.utility__note { color: var(--gray-40); }
.utility__links { display: flex; align-items: center; }
.utility__links li + li::before { content: ""; display: inline-block; width: 1px; height: 12px; background: var(--gray-70); margin: 0 12px; vertical-align: -1px; }
.utility__links a { color: var(--gray-20); }
.utility__links a:hover { color: #fff; text-decoration: underline; }
.utility__tel { font-weight: 700; color: #fff !important; }
.utility__tel .ms { font-size: 16px; margin-right: 4px; }

.masthead { border-bottom: 1px solid var(--border); }
.masthead__inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; height: 88px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--primary-70); }
.brand:hover { color: var(--primary-70); }
.brand__logo { display: block; height: 37px; width: auto; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__text strong { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; }
.brand__text small { font-size: 13px; color: var(--fg-3); margin-top: 3px; }

.nav-toggle { display: none; align-items: center; gap: 6px; height: 44px; padding: 0 12px; border: 1px solid var(--border); border-radius: var(--r-sm); font-size: 15px; font-weight: 700; }

.gnb { position: static; }
.gnb__list { display: flex; gap: 8px; height: 88px; align-items: stretch; }
.gnb__item { display: flex; }
.gnb__link {
  display: flex; flex-direction: column; justify-content: center; padding: 0 20px; font-size: 17px; font-weight: 700;
  color: var(--fg-1); position: relative; transition: color .15s var(--ease);
}
.gnb__ko { font-size: 12px; font-weight: 400; color: var(--fg-3); margin-top: 2px; letter-spacing: 0.02em; }
.gnb__link::after { content: ""; position: absolute; left: 20px; right: 20px; bottom: 0; height: 3px; background: var(--primary-50); transform: scaleX(0); transition: transform .15s var(--ease); }
.gnb__item.is-active .gnb__link, .gnb__item:hover .gnb__link, .gnb__item:focus-within .gnb__link { color: var(--primary-60); }
.gnb__item.is-active .gnb__link::after, .gnb__item:hover .gnb__link::after, .gnb__item:focus-within .gnb__link::after { transform: scaleX(1); }

/* 전체메뉴 패널 — 호버/포커스 시 4열로 펼침(공공기관 관용 UI) */
.megamenu {
  position: absolute; left: 0; right: 0; top: 100%; background: var(--bg-canvas);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); box-shadow: var(--shadow-3);
  opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .18s var(--ease), transform .18s var(--ease), visibility 0s .18s;
}
.gnb:hover .megamenu, .gnb:focus-within .megamenu, .gnb.is-open .megamenu { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.megamenu__inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 40px; padding: 32px 24px 40px; }
.megamenu__col { border-top: 2px solid var(--fg-1); padding-top: 16px; }
.megamenu__title { font-size: 15px; font-weight: 700; color: var(--fg-1); margin-bottom: 12px; display: flex; flex-direction: column; }
.megamenu__title small { font-size: 12px; font-weight: 400; color: var(--fg-3); }
.megamenu__col li + li { border-top: 1px solid var(--gray-20); }
.megamenu__col a { display: block; padding: 10px 0; font-size: 15px; color: var(--fg-2); }
.megamenu__col a:hover, .megamenu__col a[aria-current] { color: var(--primary-60); font-weight: 700; }
/* 신규·주력 항목 강조 — hover/active 규칙 뒤에 두어야 색이 유지된다 */
.megamenu__col a.is-accent { color: var(--accent-60); font-weight: 700; }
.megamenu__col a.is-accent:hover { color: var(--accent-70); }

/* ---------- Common section rhythm ---------- */
.section { padding: var(--sec-y) 0; }
.section > .container > :first-child { margin-top: 0; }
.section > .container > :last-child { margin-bottom: 0; }
.section--muted { background: var(--bg-subtle); }
.section--divide { border-top: 1px solid var(--border); }
.section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.section__title { font-size: 32px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.3; }
.section__title small { display: block; font-size: 13px; font-weight: 700; color: var(--primary-60); letter-spacing: 0.06em; margin-bottom: 8px; }
.section__desc { font-size: 17px; color: var(--fg-2); margin-top: 8px; }
.section__more { display: inline-flex; align-items: center; gap: 4px; font-size: 15px; font-weight: 700; color: var(--fg-2); white-space: nowrap; }
.section__more .ms { font-size: 20px; }
.section__more:hover { color: var(--primary-60); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 48px; padding: 0 24px;
  border-radius: var(--r-sm); font-size: 17px; font-weight: 700; border: 1px solid transparent; transition: background-color .15s var(--ease), border-color .15s var(--ease), color .15s var(--ease);
}
.btn .ms { font-size: 20px; }
.btn--primary { background: var(--primary-50); color: #fff; }
.btn--primary:hover { background: var(--primary-60); color: #fff; }
/* 비활성 — opacity 로 흐리지 않고 평면 색 전환으로 처리한다(KRDS) */
.btn--disabled { background: var(--bg-subtle); color: var(--fg-4); border-color: var(--border); cursor: not-allowed; }
.btn--disabled:hover { background: var(--bg-subtle); color: var(--fg-4); }
.btn--tertiary { background: #fff; color: var(--fg-1); border-color: var(--border); }
.btn--tertiary:hover { border-color: var(--fg-3); color: var(--fg-1); }
.btn--lg { height: 56px; padding: 0 32px; font-size: 19px; border-radius: var(--r-md); }

/* ---------- Home: hero ---------- */
.hero { background: var(--bg-muted); border-bottom: 1px solid var(--border); }
.hero__inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; padding: 64px 24px; }
.hero__eyebrow { font-size: 15px; font-weight: 700; color: var(--primary-60); letter-spacing: 0.04em; margin-bottom: 16px; }
.hero__title { font-size: 44px; font-weight: 700; line-height: 1.3; letter-spacing: -0.02em; }
.hero__lede { font-size: 19px; color: var(--fg-2); margin-top: 20px; }
.hero__actions { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
/* 제품마다 왼쪽 문구가 함께 바뀐다. 같은 칸에 겹쳐 쌓아 전환 때 높이가 튀지 않게 한다 */
.hero__copies { display: grid; }
.hero__copy { grid-area: 1 / 1; opacity: 0; visibility: hidden;
  transition: opacity .4s var(--ease), visibility 0s .4s; }
.hero__copy.is-active { opacity: 1; visibility: visible; transition-delay: 0s; }

/* 히어로 슬라이드 — 자동재생 없이 화살표·인디케이터로만 넘긴다(KRDS carousel 규칙) */
.hero__slider { border: 1px solid var(--border); border-radius: var(--r-xl); overflow: hidden; background: #fff; }
.hero__viewport { position: relative; aspect-ratio: 3 / 2; background: var(--bg-subtle); }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility 0s .4s; }
.hero__img.is-active { opacity: 1; visibility: visible; transition-delay: 0s; }
.hero__caption { padding: 12px 16px; font-size: 13px; color: var(--fg-3); border-top: 1px solid var(--border); }

.hero__arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px;
  display: grid; place-items: center; background: rgba(255,255,255,.92); color: var(--fg-1);
  border: 1px solid var(--border); border-radius: 50%; box-shadow: var(--shadow-1);
  transition: background-color .15s var(--ease), color .15s var(--ease), border-color .15s var(--ease); }
.hero__arrow:hover { background: #fff; color: var(--primary-60); border-color: var(--primary-50); }
.hero__arrow--prev { left: 12px; }
.hero__arrow--next { right: 12px; }

.hero__dots { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%);
  display: flex; align-items: center; gap: 4px; padding: 4px 8px;
  background: rgba(255,255,255,.92); border: 1px solid var(--border); border-radius: 999px; }
.hero__dot { width: 24px; height: 24px; padding: 0; display: grid; place-items: center; }
.hero__dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gray-40);
  transition: background-color .15s var(--ease), width .15s var(--ease); }
.hero__dot:hover::before { background: var(--fg-3); }
.hero__dot.is-active::before { width: 20px; border-radius: 999px; background: var(--primary-50); }

/* 핵심 지표 띠 — 공공기관 관용 요소 */
.keyfacts { border-bottom: 1px solid var(--border); background: #fff; }
.keyfacts__list { display: grid; grid-template-columns: repeat(4, 1fr); }
.keyfacts__list li { padding: 24px 24px 24px 0; display: flex; flex-direction: column; gap: 4px; }
.keyfacts__list li + li { border-left: 1px solid var(--border); padding-left: 24px; }
.keyfacts__label { font-size: 13px; color: var(--fg-3); font-weight: 700; }
.keyfacts__value { font-size: 24px; font-weight: 700; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.keyfacts__value small { font-size: 15px; font-weight: 400; color: var(--fg-2); margin-left: 4px; }

/* 서비스 타일 */
.tiles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.tiles--4 { grid-template-columns: repeat(4, 1fr); }
.tiles--3 { grid-template-columns: repeat(3, 1fr); }
.tile {
  display: flex; flex-direction: column; gap: 16px; padding: 24px; min-height: 100%;
  background: #fff; border: 1px solid var(--border); border-radius: var(--r-xl);
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.tile:hover { border-color: var(--primary-50); box-shadow: var(--shadow-2); color: inherit; }
.tile__icon { width: 48px; height: 48px; border-radius: var(--r-md); background: var(--primary-10); color: var(--primary-60); display: grid; place-items: center; }
.tile__title { font-size: 19px; font-weight: 700; }
.tile__title small { display: block; font-size: 13px; font-weight: 400; color: var(--fg-3); margin-top: 2px; }
.tile__desc { font-size: 15px; color: var(--fg-2); flex: 1; }
.tile__more { font-size: 13px; font-weight: 700; color: var(--primary-60); display: inline-flex; align-items: center; gap: 2px; }
.tile__more .ms { font-size: 16px; }

/* AI 처리 흐름 — 단계 사이 화살표로 순서를 보이게. 장식 없이 1px 보더로만 구분한다 */
.flow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; }
/* 아이콘 오른쪽에 제목을 붙이고, 설명은 그 아래 줄에 전폭으로 둔다 */
.flow__step { position: relative; display: grid; grid-template-columns: 40px 1fr;
  grid-template-areas: "num num" "icon title" "desc desc"; gap: 10px 12px; align-items: center;
  padding: 24px; background: #fff; border: 1px solid var(--border); border-radius: var(--r-xl); }
.flow__step + .flow__step::before { content: "chevron_right"; font-family: "Material Symbols Outlined";
  position: absolute; left: -21px; top: 50%; transform: translateY(-50%); font-size: 22px; color: var(--fg-4); }
.flow__num { grid-area: num; font-size: 13px; font-weight: 700; color: var(--primary-60); letter-spacing: .06em; font-variant-numeric: tabular-nums; }
.flow__icon { grid-area: icon; width: 40px; height: 40px; border-radius: var(--r-md); background: var(--primary-10); color: var(--primary-60); display: grid; place-items: center; }
.flow__icon .ms { font-size: 22px; }
.flow__title { grid-area: title; font-size: 17px; font-weight: 700; }
.flow__desc { grid-area: desc; font-size: 15px; color: var(--fg-2); }
.flow__note { display: flex; align-items: center; gap: 10px; margin-top: 24px; padding: 16px 20px;
  border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--bg-subtle); }
.flow__note .ms { color: var(--primary-60); flex: none; }
.flow__note p { font-size: 15px; color: var(--fg-2); }

/* EDMS 동작 흐름 — 「넣을 때」와 「질문할 때」를 색인 저장소가 잇는다 */
.flow--4 { grid-template-columns: repeat(4, 1fr); }
.flow--3 { grid-template-columns: repeat(3, 1fr); }
.edms { margin-top: 24px; }
.edms__phase + .edms__phase { margin-top: 0; }
.edms__label { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; color: var(--fg-1); margin-bottom: 14px; }
.edms__label .ms { font-size: 20px; color: var(--primary-60); }
.edms__label em { font-style: normal; font-size: 13px; font-weight: 400; color: var(--fg-3);
  border: 1px solid var(--border); border-radius: 999px; padding: 2px 10px; }
/* 저장소 칸 — 위아래 단계를 잇는 다리라서 세로선을 붙여 연결을 보이게 한다 */
.edms__store { position: relative; display: flex; align-items: center; gap: 14px;
  margin: 34px 0; padding: 18px 20px; background: var(--primary-10);
  border: 1px solid var(--primary-30); border-radius: var(--r-lg); }
.edms__store::before, .edms__store::after { content: ""; position: absolute; left: 50%;
  width: 2px; height: 18px; background: var(--primary-30); }
.edms__store::before { top: -18px; }
.edms__store::after { bottom: -18px; }
.edms__store > .ms { font-size: 28px; color: var(--primary-60); flex: none; }
.edms__store > div { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.edms__store-title { flex: none; font-size: 17px; font-weight: 700; color: var(--primary-70); }
.edms__store-desc { font-size: 15px; color: var(--fg-2); }

/* 공지 + 문의 2열 */
.dual { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; }
.notice { border-top: 2px solid var(--fg-1); }
.notice__row { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; padding: 16px 4px; border-bottom: 1px solid var(--gray-20); }
.badge { display: inline-block; padding: 2px 8px; border-radius: var(--r-xs); font-size: 13px; font-weight: 700; line-height: 1.5; border: 1px solid var(--primary-50); color: var(--primary-60); white-space: nowrap; }
.badge--tertiary { border-color: var(--border); color: var(--fg-2); }
.badge--success { border-color: var(--success); color: var(--success); }
.notice__row a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notice__row a:hover { text-decoration: underline; }
.notice__date { font-size: 15px; color: var(--fg-3); font-variant-numeric: tabular-nums; }

.contact-card { border: 1px solid var(--border); border-radius: var(--r-xl); background: #fff; }
.contact-card__row { display: flex; align-items: flex-start; gap: 16px; padding: 20px 24px; }
.contact-card__row + .contact-card__row { border-top: 1px solid var(--gray-20); }
.contact-card__icon { width: 40px; height: 40px; flex: none; border-radius: var(--r-md); background: var(--primary-10); color: var(--primary-60); display: grid; place-items: center; }
.contact-card__icon .ms { font-size: 22px; }
.contact-card__label { font-size: 13px; font-weight: 700; color: var(--fg-3); }
.contact-card__value { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.contact-card__value a:hover { text-decoration: underline; }
.contact-card__hint { font-size: 13px; color: var(--fg-3); margin-top: 2px; }

/* 고객사 로고 */
.logos { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.logos li { border: 1px solid var(--border); border-radius: var(--r-md); background: #fff; height: 84px; display: grid; place-items: center; padding: 12px 16px; }
.logos img { max-height: 48px; width: auto; object-fit: contain; }
.logos--sm { grid-template-columns: repeat(6, 1fr); }

/* 지원 2열 */
.support-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.panel { border: 1px solid var(--border); border-radius: var(--r-xl); background: #fff; padding: 32px; }
.panel__title { font-size: 24px; font-weight: 700; letter-spacing: -0.01em; display: flex; align-items: center; gap: 10px; }
.panel__title .ms { color: var(--primary-60); }
.panel__desc { color: var(--fg-2); margin-top: 8px; font-size: 15px; }
.panel .btn { margin-top: 24px; }
.stat-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 24px; }
.stat { padding: 16px; border-radius: var(--r-md); background: var(--bg-subtle); }
.stat__label { font-size: 13px; color: var(--fg-3); font-weight: 700; }
.stat__value { font-size: 24px; font-weight: 700; font-variant-numeric: tabular-nums; }
.stat__value small { font-size: 15px; font-weight: 400; color: var(--fg-2); margin-left: 2px; }

/* ---------- Sub pages ---------- */
.subvisual { position: relative; background-size: cover; background-position: center; color: #fff; border-bottom: 1px solid var(--border); }
.subvisual::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(3,32,65,.86) 0%, rgba(3,32,65,.62) 60%, rgba(3,32,65,.42) 100%); }
.subvisual .container { position: relative; padding-top: 56px; padding-bottom: 56px; }
.subvisual__eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; color: var(--primary-30); }
.subvisual__title { font-size: 36px; font-weight: 700; letter-spacing: -0.02em; margin-top: 8px; line-height: 1.3; }
.subvisual__desc { font-size: 17px; color: var(--secondary-20); margin-top: 12px; max-width: 640px; }

.sub-layout { display: grid; grid-template-columns: 240px 1fr; gap: 64px; padding-top: var(--sec-y); padding-bottom: var(--sec-y); align-items: start; }
.snb { position: sticky; top: 24px; }
.snb__title { font-size: 19px; font-weight: 700; padding-bottom: 12px; border-bottom: 2px solid var(--fg-1); display: flex; flex-direction: column; }
.snb__title small { font-size: 13px; font-weight: 400; color: var(--fg-3); }
.snb__list li { border-bottom: 1px solid var(--gray-20); }
.snb__list a { display: block; padding: 12px 12px; font-size: 15px; color: var(--fg-2); border-left: 3px solid transparent; transition: background-color .15s var(--ease), color .15s var(--ease); }
.snb__list a:hover { background: var(--bg-subtle); color: var(--fg-1); }
.snb__list a[aria-current] { background: var(--primary-10); color: var(--primary-60); border-left-color: var(--primary-50); font-weight: 700; }
/* 강조 항목(AI) — 기본·hover·현재페이지 어느 상태에서도 붉게 유지. aria-current 규칙 뒤에 두어야 이긴다 */
.snb__list a.is-accent { color: var(--accent-60); font-weight: 700; }
.snb__list a.is-accent:hover { background: var(--accent-10); color: var(--accent-70); }
.snb__list a.is-accent[aria-current] { background: var(--accent-10); color: var(--accent-60); border-left-color: var(--accent-60); }

/* 공지 상세 본문 — 좌측 공지 목록은 기존 SNB 를 그대로 쓴다 */
.article__meta { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--fg-3); margin-bottom: 14px; }
.article__title { font-size: 32px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.35; }
.article__lead { font-size: 19px; color: var(--fg-2); margin-top: 16px; padding-bottom: 28px; border-bottom: 1px solid var(--border); }
.article__lead + .block { margin-top: 40px; }
.article__cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--border); }

.breadcrumb { font-size: 13px; color: var(--fg-3); margin-bottom: 24px; }
.breadcrumb ol { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.breadcrumb li + li::before { content: "›"; color: var(--fg-4); margin-right: 6px; }
.breadcrumb .ms { font-size: 16px; }
.breadcrumb a:hover { color: var(--primary-60); text-decoration: underline; }
.breadcrumb [aria-current] { color: var(--fg-1); font-weight: 700; }

.sub-content > :first-child { margin-top: 0; }
.sub-content > :last-child { margin-bottom: 0; }
.page-title { font-size: 32px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.3; padding-bottom: 20px; border-bottom: 1px solid var(--border); margin-bottom: 40px; }
.page-title small { display: block; font-size: 15px; font-weight: 400; color: var(--fg-3); margin-top: 6px; }
.block { margin-bottom: 48px; }
.block:last-child { margin-bottom: 0; }
.block__title { font-size: 24px; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 16px; padding-left: 14px; position: relative; }
.block__title::before { content: ""; position: absolute; left: 0; top: 0.35em; width: 4px; height: 0.9em; background: var(--primary-50); border-radius: 1px; }
.block__title small { font-size: 15px; font-weight: 400; color: var(--fg-3); margin-left: 8px; }
.block p + p { margin-top: 12px; }
.lead { font-size: 19px; color: var(--fg-2); }
.text { color: var(--fg-2); }
.figure { margin: 24px 0 0; border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; background: #fff; }
.figure img { width: 100%; }
.figure figcaption { padding: 10px 16px; font-size: 13px; color: var(--fg-3); border-top: 1px solid var(--border); background: var(--bg-subtle); }

/* 정의 목록 */
.deflist { border-top: 2px solid var(--fg-1); }
.deflist__row { display: grid; grid-template-columns: 220px 1fr; gap: 24px; padding: 20px 4px; border-bottom: 1px solid var(--gray-20); }
.deflist__term { font-weight: 700; }
.deflist__term small { display: block; font-size: 13px; font-weight: 400; color: var(--fg-3); }
.deflist__desc { color: var(--fg-2); font-size: 15px; }

/* 표 */
.table-wrap { overflow-x: auto; }
.table { font-size: 15px; border-top: 2px solid var(--secondary-70); }
.table th, .table td { padding: 12px 14px; border-bottom: 1px solid var(--gray-20); text-align: left; vertical-align: top; }
.table th { background: var(--bg-subtle); font-weight: 700; color: var(--fg-1); white-space: nowrap; }
.table th[scope=row] { background: #fff; }
.table td { color: var(--fg-2); }
.table--center td, .table--center th { text-align: center; }
.table ul li { position: relative; padding-left: 12px; }
.table ul li::before { content: ""; position: absolute; left: 0; top: 0.7em; width: 4px; height: 4px; border-radius: 50%; background: var(--fg-4); }
.table ul li + li { margin-top: 4px; }

/* 체크 목록 · 불릿 목록 */
.checklist li { position: relative; padding-left: 30px; color: var(--fg-2); }
.checklist li + li { margin-top: 10px; }
.checklist li::before { content: "check"; font-family: "Material Symbols Outlined"; position: absolute; left: 0; top: 0.05em; color: var(--primary-50); font-size: 22px; }
.bullets li { position: relative; padding-left: 14px; color: var(--fg-2); font-size: 15px; }
.bullets li + li { margin-top: 6px; }
.bullets li::before { content: ""; position: absolute; left: 0; top: 0.75em; width: 5px; height: 5px; border-radius: 50%; background: var(--fg-4); }

/* 인포박스 */
.infobox { display: flex; gap: 16px; padding: 18px 20px; border: 1px solid var(--border); border-radius: var(--r-lg); background: #fff; }
.infobox__icon { width: 32px; height: 32px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--primary-10); color: var(--primary-60); }
.infobox__icon .ms { font-size: 20px; }
.infobox__title { font-size: 17px; font-weight: 700; }
.infobox__body { font-size: 15px; color: var(--fg-2); margin-top: 4px; }

/* 카드 그리드(사업분야 소개 등) */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { border: 1px solid var(--border); border-radius: var(--r-xl); padding: 24px; background: #fff; }
.card__title { font-size: 17px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.card__title .ms { color: var(--primary-60); font-size: 22px; }
.card__desc { font-size: 15px; color: var(--fg-2); margin-top: 8px; }

/* 절차(스텝) */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; counter-reset: step; }
.step { position: relative; border: 1px solid var(--border); border-radius: var(--r-md); padding: 20px; background: #fff; counter-increment: step; }
.step::before { content: counter(step, decimal-leading-zero); display: block; font-size: 13px; font-weight: 700; color: var(--primary-60); letter-spacing: .04em; margin-bottom: 8px; font-variant-numeric: tabular-nums; }
.step__title { font-size: 17px; font-weight: 700; }
.step__desc { font-size: 15px; color: var(--fg-2); margin-top: 6px; }

/* CEO 인사말 */
.greeting { display: grid; grid-template-columns: 1fr 360px; gap: 48px; align-items: start; }
.greeting__title { font-size: 28px; font-weight: 700; line-height: 1.4; letter-spacing: -0.02em; margin-bottom: 24px; }
.greeting__sign { margin-top: 32px; font-weight: 700; }
.greeting__sign small { display: block; font-size: 13px; font-weight: 400; color: var(--fg-3); margin-top: 2px; }
.greeting__figure { margin: 0; border: 1px solid var(--border); border-radius: var(--r-xl); overflow: hidden; }
.greeting__figure img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }

/* 조직도 */
.orgchart { --line: var(--gray-40); text-align: center; }
.orgchart__box { display: inline-block; min-width: 180px; padding: 14px 24px; border-radius: var(--r-md); font-weight: 700; font-size: 17px; }
.orgchart__box--ceo { background: var(--secondary-70); color: #fff; }
.orgchart__box--adv { background: #fff; border: 1px solid var(--border-strong); color: var(--fg-1); }
.orgchart__row { position: relative; display: flex; justify-content: center; align-items: center; gap: 24px; }
.orgchart__stem { width: 2px; height: 32px; background: var(--line); margin: 0 auto; }
.orgchart__adv { position: relative; }
.orgchart__adv::before { content: ""; position: absolute; right: 100%; top: 50%; width: 24px; height: 2px; background: var(--line); }
.orgchart__depts { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; position: relative; padding-top: 32px; }
.orgchart__depts::before { content: ""; position: absolute; left: 10%; right: 10%; top: 0; height: 2px; background: var(--line); }
.orgchart__dept { position: relative; border: 1px solid var(--border); border-radius: var(--r-md); background: #fff; overflow: hidden; }
.orgchart__dept::before { content: ""; position: absolute; left: 50%; top: -32px; width: 2px; height: 32px; background: var(--line); }
.orgchart__dept h3 { font-size: 15px; font-weight: 700; padding: 12px; background: var(--primary-10); color: var(--primary-70); }
.orgchart__dept ul { padding: 8px 12px 12px; }
.orgchart__dept li { font-size: 15px; color: var(--fg-2); padding: 6px 0; border-top: 1px solid var(--gray-20); }
.orgchart__dept li:first-child { border-top: 0; }

/* 오시는길 */
.map { border: 1px solid var(--border); border-radius: var(--r-xl); overflow: hidden; background: var(--bg-subtle); }
.map iframe { display: block; width: 100%; height: 420px; border: 0; }
/* 연락처 — 항목마다 한 줄, 세 줄로 쌓는다(값이 접히지 않게) */
.addr-list { border: 1px solid var(--border); border-radius: var(--r-md); background: #fff; }
.addr-list li { display: flex; align-items: center; gap: 12px; padding: 18px 20px; }
.addr-list li + li { border-top: 1px solid var(--border); }
.addr-list .ms { color: var(--primary-60); flex: none; }
.addr-list li > div { display: flex; align-items: baseline; gap: 16px; min-width: 0; }
.addr-list strong { flex: none; width: 108px; font-size: 14px; font-weight: 500; color: var(--fg-3); }
.addr-list span { font-size: 17px; font-weight: 700; }

/* 전화번호 — 데스크톱에서는 보통 글자, 모바일에서만 통화 링크처럼 보이게 한다 */
a.tel { color: inherit; text-decoration: none; }
a.tel:hover { text-decoration: underline; }
.route { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.route__group { border: 1px solid var(--border); border-radius: var(--r-xl); overflow: hidden; }
.route__head { display: flex; align-items: center; gap: 8px; padding: 14px 20px; background: var(--bg-subtle); border-bottom: 1px solid var(--border); font-weight: 700; }
.route__head .ms { color: var(--primary-60); }
.route__group dl { margin: 0; padding: 8px 20px; }
.route__group dt { font-weight: 700; font-size: 15px; padding-top: 12px; }
.route__group dd { margin: 4px 0 12px; font-size: 15px; color: var(--fg-2); }
.route__group dd + dt { border-top: 1px solid var(--gray-20); }
.tag { display: inline-block; padding: 1px 8px; border-radius: var(--r-xs); font-size: 13px; font-weight: 700; margin-right: 6px; color: #fff; }
.tag--l1 { background: #0052A4; } .tag--l7 { background: #747F00; }
.tag--bus-g { background: #5BB025; } .tag--bus-b { background: #3D5BAB; } .tag--bus-r { background: #C7332B; } .tag--bus-y { background: #B8860B; }

/* 고객사(Reference) */
.client-group { display: grid; grid-template-columns: 120px 1fr; gap: 16px; margin-bottom: 24px; }
.client-group__label { border-radius: var(--r-md); background: var(--secondary-70); color: #fff; font-weight: 700; display: grid; place-items: center; padding: 16px; text-align: center; line-height: 1.3; }
.client-group__label small { display: block; font-size: 12px; font-weight: 400; color: var(--secondary-30); margin-top: 4px; }
.client-group .logos { grid-template-columns: repeat(4, 1fr); }
.client-group .logos li { height: 96px; }
.client-group .logos img { max-height: 56px; }

/* ---------- Footer ---------- */
.footer { background: var(--gray-100); color: var(--gray-40); font-size: 15px; margin-top: 0; }
.footer__inner { display: grid; grid-template-columns: 200px 1fr auto; gap: 40px; padding-top: 48px; padding-bottom: 48px; align-items: start; }
.footer__brand { display: flex; flex-direction: column; color: #fff; }
.footer__brand strong { font-size: 19px; }
.footer__en { font-size: 13px; color: var(--gray-50); letter-spacing: .08em; }
.footer__addr p + p { margin-top: 6px; }
.footer__addr span + span::before { content: ""; display: inline-block; width: 1px; height: 12px; background: var(--gray-70); margin: 0 10px; vertical-align: -1px; }
.footer__addr a { color: var(--gray-30); }
.footer__addr a:hover { color: #fff; text-decoration: underline; }
.footer__copy { color: var(--gray-60); font-size: 13px; margin-top: 12px !important; }
.footer__links { display: flex; flex-direction: column; gap: 8px; }
.footer__links a { color: var(--gray-30); font-weight: 700; font-size: 13px; }
.footer__links a:hover { color: #fff; }

.top-btn {
  position: fixed; right: 24px; bottom: 24px; width: 48px; height: 48px; border-radius: 50%; background: #fff; color: var(--fg-1);
  border: 1px solid var(--border); box-shadow: var(--shadow-2); display: grid; place-items: center; opacity: 0; visibility: hidden; transition: opacity .2s var(--ease), visibility 0s .2s;
}
.top-btn.is-visible { opacity: 1; visibility: visible; transition-delay: 0s; }
.top-btn:hover { border-color: var(--primary-50); color: var(--primary-60); }

/* ---------- Responsive ---------- */
@media (max-width: 1023px) {
  .tiles { grid-template-columns: repeat(3, 1fr); }
  .tiles--4, .tiles--3 { grid-template-columns: repeat(2, 1fr); }   /* 좁아지면 2열로 */
  /* 흐름도는 좁아지면 세로로 세우고 화살표도 아래를 향하게 */
  .flow, .flow--4, .flow--3 { grid-template-columns: 1fr; gap: 30px; }
  .flow__step + .flow__step::before { content: "expand_more"; left: 50%; top: -26px; transform: translateX(-50%); }
  .keyfacts__list { grid-template-columns: repeat(2, 1fr); }
  .keyfacts__list li:nth-child(3) { border-left: 0; padding-left: 0; }
  .logos { grid-template-columns: repeat(4, 1fr); }
  .dual, .support-grid, .route, .greeting { grid-template-columns: 1fr; }
  .sub-layout { grid-template-columns: 1fr; gap: 40px; }
  .snb { position: static; }
  .snb__list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
  .snb__list li { border: 0; }
  .snb__list a { border: 1px solid var(--border); border-radius: 999px; padding: 8px 16px; border-left-width: 1px; }
  .snb__list a[aria-current] { border-color: var(--primary-50); border-left-color: var(--primary-50); }
  .snb__list a.is-accent, .snb__list a.is-accent[aria-current] { border-color: var(--accent-60); border-left-color: var(--accent-60); }
  .cards, .addr-list { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .orgchart__depts { grid-template-columns: repeat(3, 1fr); }
  .client-group .logos { grid-template-columns: repeat(3, 1fr); }
  .footer__inner { grid-template-columns: 1fr; gap: 20px; }
  .footer__links { flex-direction: row; flex-wrap: wrap; gap: 16px; }
  .hero__inner { grid-template-columns: 1fr; gap: 32px; }
  .hero__title { font-size: 36px; }
}
@media (max-width: 767px) {
  :root { --sec-y: 48px; }
  body { font-size: 16px; }
  .utility__note { display: none; }
  .masthead__inner { height: 64px; }
  .brand__text strong { font-size: 20px; }
  .nav-toggle { display: inline-flex; }
  .gnb { position: absolute; left: 0; right: 0; top: 100%; display: none; background: #fff; border-bottom: 1px solid var(--border); box-shadow: var(--shadow-3); }
  .gnb.is-open { display: block; }
  .gnb__list { display: none; }
  .megamenu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; }
  .megamenu__inner { grid-template-columns: 1fr; gap: 24px; padding: 16px 24px 24px; }
  .hero__inner { padding: 40px 24px; }
  .hero__title { font-size: 30px; }
  .hero__lede { font-size: 17px; }
  .keyfacts__list { grid-template-columns: 1fr 1fr; }
  .keyfacts__list li { padding: 16px 16px 16px 0; }
  .tiles { grid-template-columns: 1fr; }
  .logos, .logos--sm, .client-group .logos { grid-template-columns: repeat(2, 1fr); }
  .client-group { grid-template-columns: 1fr; }
  .section__title { font-size: 24px; }
  .section__head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .subvisual__title { font-size: 28px; }
  .subvisual .container { padding-top: 40px; padding-bottom: 40px; }
  .page-title { font-size: 26px; }
  .block__title { font-size: 20px; }
  .deflist__row { grid-template-columns: 1fr; gap: 6px; }
  .cards, .steps, .stat-row { grid-template-columns: 1fr; }
  .addr-list li > div { flex-direction: column; gap: 2px; }
  .addr-list strong { width: auto; font-size: 13px; }
  a.tel { color: var(--primary-60); font-weight: 700; white-space: nowrap; }
  a.tel::before { content: "call"; font-family: "Material Symbols Outlined"; font-weight: 400;
    font-size: 1em; vertical-align: -3px; margin-right: 4px; }
  /* 연락처 목록은 줄 앞에 이미 전화 아이콘이 있다 — 겹치지 않게 */
  .addr-list a.tel::before { content: none; }
  .orgchart__depts { grid-template-columns: 1fr 1fr; }
  .notice__row { grid-template-columns: auto 1fr; }
  .notice__date { grid-column: 2; }
  .map iframe { height: 300px; }
  .top-btn { right: 16px; bottom: 16px; }
}
