/* 메인(kr) 지금 메인(site/index_kr.html)에만 있는 구역 — 숫자 띠 · 솔루션 탭 머리 · INTEGRATION · AI · REFERENCES.
   site.css에서 옮김(2026-11-16 0단계, 선택자 기준). 하위 페이지는 읽지 않는다 — 공유 규칙(.hx-more 기본형 · 남색 머리말 · 등장 효과 장치)은 site.css에 있다.
   조각 ↔ CSS는 1:1: site/home/_<이름>_kr.html 을 쓰는 페이지는 css/home/<이름>.css 를 읽는다(content.HOME_*) */
.hx-kpi { background: linear-gradient(to bottom, #1B2A4A 50%, var(--paper) 50%); } /* 카드가 네이비와 회색 경계에 걸치게 */
.hx-kpi__list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 0; background: #fff; border-top: 4px solid var(--brand); border-radius: 0 0 10px 10px; box-shadow: 0 14px 34px rgba(27, 42, 74, .14); }
.hx-kpi__list > div { padding: 22px 24px; }
.hx-kpi__list > div + div { border-left: 1px solid var(--rule); }
.hx-kpi dt { font-size: .875rem; font-weight: 700; color: var(--muted); }
.hx-kpi dd { margin: 0; }
.hx-kpi b { display: block; margin-top: 4px; font-family: var(--font-display); font-size: clamp(2rem, 3vw, 2.5rem); font-weight: 600; line-height: 1.1; font-variant-numeric: tabular-nums; color: #1B2A4A; }
.hx-kpi em { margin-left: 3px; font-family: var(--font-body); font-size: 1rem; font-style: normal; font-weight: 700; }
.hx-kpi span { display: block; margin-top: 6px; font-size: .875rem; line-height: 1.5; color: var(--muted); }
.block.hx-show { padding-block: clamp(56px, 7vw, 96px); background: var(--paper); }
.block p.hx-tabs__grp { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; max-width: none; margin: 0 0 8px; }
.hx-tabs__grp span { padding-bottom: 6px; border-bottom: 2px solid #D9DEE5; font-size: .8125rem; font-weight: 700; text-align: center; color: #5A6472; }
.hx-tabs__list { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.hx-tabs__list [role="tab"] { padding: 14px 8px; background: #fff; border: 1px solid #D9DEE5; border-radius: 8px; font: inherit; font-size: 1.0625rem; font-weight: 700; color: #1B2A4A; cursor: pointer; transition: background-color .15s, color .15s; }
.hx-tabs__list [role="tab"]:hover { border-color: #1B2A4A; }
.hx-tabs__list [role="tab"][aria-selected="true"] { background: #1B2A4A; border-color: #1B2A4A; box-shadow: 0 8px 18px rgba(27, 42, 74, .2); color: #fff; }
.block.hx-flow, .block.hx-ref { padding-block: clamp(56px, 7vw, 96px); }
.hx-flow__list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 28px; }
.hx-flow__list > li { position: relative; display: flex; }
.hx-flow__list > li + li::before { content: ""; position: absolute; left: -21px; top: 50%; width: 12px; height: 12px; border-top: 2px solid #8A94A3; border-right: 2px solid #8A94A3; transform: translateY(-50%) rotate(45deg); } /* 단계 사이 꺾쇠 */
.block .hx-flow__node { display: flex; flex: 1; flex-direction: column; padding: 22px 20px; background: #fff; border: 1px solid #D9DEE5; border-top: 4px solid #1B2A4A; border-radius: 0 0 10px 10px; color: inherit; text-decoration: none; transition: box-shadow .15s, transform .15s; }
.block a.hx-flow__node:hover { box-shadow: 0 12px 26px rgba(27, 42, 74, .12); transform: translateY(-2px); }
.hx-flow__core .hx-flow__node { border-top-color: #D7262C; background: #FFF7F6; }
/* 고객 현장(설비) · 기존 시스템(ERP)은 점선 — 실선은 해솔이 구축하는 범위 */
.block .hx-flow__ext .hx-flow__node { background: #FAFBFC; border: 1px dashed #A8B0BC; border-top: 4px solid #A8B0BC; }
.hx-flow__top { display: flex; align-items: flex-start; justify-content: space-between; }
.hx-flow__ic { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: #EEF1F5; }
.hx-flow__ic svg { width: 26px; height: 26px; fill: none; stroke: #1B2A4A; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.hx-flow__core .hx-flow__ic { background: #FBE3E4; }
.hx-flow__core .hx-flow__ic svg { stroke: #D7262C; }
.hx-flow__ext .hx-flow__ic { background: #fff; border: 1px dashed #A8B0BC; }
.hx-flow__ext .hx-flow__ic svg { stroke: #5A6472; }
.hx-flow__no { font-family: var(--font-display); font-size: .9375rem; font-weight: 600; color: var(--brand); }
.hx-flow__ext .hx-flow__no { color: #8A94A3; }
.hx-flow__node strong { margin-top: 16px; font-family: var(--font-display); font-size: 1.1875rem; font-weight: 600; color: #1B2A4A; }
.hx-flow__desc { margin-top: 4px; font-size: .9375rem; color: #2B3440; }
.hx-flow__erp { align-self: flex-start; margin-top: 10px; padding: 1px 8px; border: 1px dashed #A8B0BC; border-radius: 4px; background: #fff; font-size: .75rem; font-weight: 700; color: #5A6472; }
/* 다음 단계로 넘기는 데이터 — 모든 칸이 같은 기준 */
.hx-flow__node em { margin-top: auto; padding-top: 16px; font-size: .8125rem; font-style: normal; font-weight: 700; color: #1B2A4A; }
.hx-flow__node em::before { content: "→ " / ""; color: var(--brand); }
/* 구축 범위 띠: 02~05 아래 괄호(실선) · 01 아래 괄호(점선), 이름은 괄호 아래 가운데 */
.hx-flow__scope { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 28px; margin-top: 18px; padding-bottom: 12px; }
.block .hx-flow__scope p { position: relative; max-width: none; height: 16px; margin: 0; /* p + p 공통 위 여백을 지워 두 괄호의 높이를 맞춘다 */ border: 2px solid #D7262C; border-top: 0; border-radius: 0 0 10px 10px; }
.block .hx-flow__scope p.hx-flow__scope-ext { border: 2px dashed #A8B0BC; border-top: 0; }
.hx-flow__scope-own { grid-column: 2 / -1; }
.hx-flow__scope p > span { position: absolute; left: 50%; top: 100%; padding: 0 14px; background: #fff; font-size: .875rem; font-weight: 600; line-height: 1.5; white-space: nowrap; color: #5A6472; transform: translate(-50%, -45%); }
.hx-flow__scope strong { margin-right: 6px;font-weight: 800; color: #D7262C; }
.block.hx-ai { padding-block: clamp(56px, 7vw, 96px); background: #1B2A4A; color: #fff; }
.hx-ai__inner { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); align-items: center; gap: 56px; }
.block .hx-ai h2 { margin-top: 10px; font-size: clamp(1.75rem, 2.8vw, 2.375rem); line-height: 1.3; }
.block .hx-ai__text > p:is(:not([class]), [class=""], [class="rv"], [class="is-in"], [class="rv is-in"]) { max-width: 40em; margin-top: 18px; font-size: 1.0625rem; color: #C9D2DE; }
.hx-ai__steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 28px; }
.hx-ai__steps li { display: grid; grid-template-columns: 32px minmax(0, 1fr); column-gap: 10px; padding: 14px 16px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); border-radius: 8px; }
.hx-ai__steps b { grid-row: span 2; font-family: var(--font-display); font-size: 1rem; font-weight: 600; color: var(--brand); }
.hx-ai__steps strong { font-size: 1rem; }
.hx-ai__steps span { font-size: .875rem; line-height: 1.5; color: #C9D2DE; }
.block p.hx-ai__note { max-width: none; margin-top: 18px; padding-left: 12px; border-left: 3px solid var(--brand); font-size: .9375rem; color: #DCE3EC; }
.block p.hx-ai__btns { margin-top: 28px; }
.hx-ai__media.modmap { display: grid; gap: 14px; margin: 0; padding: 20px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); }
.hx-ai__media .aiview { min-height: 0; margin: 0; color: var(--mm-navy); }
.block.hx-ref { background: var(--paper); }
.hx-ind { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.hx-ind li { display: flex; flex-direction: column; align-items: flex-start; padding: 22px 20px; background: #fff; border-radius: 10px; box-shadow: 0 6px 18px rgba(27, 42, 74, .06); }
.hx-ind strong { margin-top: 14px; font-size: 1.0625rem; color: #1B2A4A; }
.hx-ind span:not(.og-contact__ico) { margin-top: 2px; font-size: .875rem; line-height: 1.5; color: #5A6472; }
.hx-ref__row { margin-top: 24px; }
.block a.hx-case { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); overflow: hidden; background: #fff; border-radius: 10px; box-shadow: 0 10px 28px rgba(27, 42, 74, .08); color: inherit; text-decoration: none; }
.hx-case img { width: 100%; height: 100%; object-fit: cover; }
.hx-case__text { display: flex; flex-direction: column; align-items: flex-start; padding: 28px; }
.block .hx-case h3 { margin-top: 6px; font-size: 1.375rem; color: #1B2A4A; }
.block .hx-case__text > p:is(:not([class]), [class=""], [class="rv"], [class="is-in"], [class="rv is-in"]) { max-width: none; margin-top: 10px; font-size: .9375rem; color: #2B3440; }
.block p.hx-case__chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.hx-case__chips span { padding: 1px 10px; background: #EEF1F5; border-radius: 999px; font-size: .8125rem; font-weight: 700; line-height: 1.7; color: #1B2A4A; }
.hx-case .hx-more { margin-top: auto; padding-top: 18px; }
.block a.hx-case:hover .hx-more { text-decoration: underline; }
/* 대외 인정(산업 · 실적 구역 안): 대표 인정 1장(네이비) + 기술 역량 4장 */
.hx-award { margin-top: 24px; padding: 28px; background: #fff; border-radius: 10px; box-shadow: 0 10px 28px rgba(27, 42, 74, .08); }
.hx-award__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 16px; margin-bottom: 18px; }
.block .hx-award__head h3 { font-size: 1.25rem; color: #1B2A4A; }
.hx-award__body { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 16px; }
.hx-award__ico { display: grid; flex: none; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #1B2A4A; }
.hx-award__ico svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.hx-award__main { display: flex; flex-direction: column; align-items: flex-start; padding: 24px; background: #1B2A4A; border-radius: 8px; color: #fff; }
.hx-award__main .hx-award__ico { background: var(--brand); }
.block p.hx-award__meta { margin-top: 14px; font-size: .875rem; font-weight: 700; color: #C9D2DE; }
.hx-award__main strong { margin-top: 2px; font-size: 1.25rem; line-height: 1.4; }
.block .hx-award__main > p:is(:not([class]), [class=""], [class="rv"], [class="is-in"], [class="rv is-in"]) { max-width: none; margin-top: 8px; font-size: .9375rem; color: #C9D2DE; }
.hx-award__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.hx-award__list li { display: grid; grid-template-columns: 44px minmax(0, 1fr); align-content: center; column-gap: 14px; padding: 16px 18px; border: 1px solid #D9DEE5; border-radius: 8px; }
.hx-award__list .hx-award__ico { grid-row: span 2; align-self: center; }
.hx-award__list strong { font-size: 1rem; color: #1B2A4A; }
.hx-award__list span:not(.hx-award__ico) { font-size: .875rem; color: #5A6472; }
@media (max-width: 1099px) {
  .hx-flow__list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .hx-flow__list > li + li::before { display: none; } /* 줄이 바뀌면 단계 번호로 순서를 읽는다 */
  /* 줄이 바뀌면 괄호 대신 범례 한 줄(선 견본 + 이름) */
  .hx-flow__scope { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px; margin-top: 24px; padding-bottom: 0; }
  .block .hx-flow__scope p, .block .hx-flow__scope p.hx-flow__scope-ext { display: flex; align-items: center; gap: 10px; height: auto; border: 0; }
  .hx-flow__scope p::before { content: ""; flex: none; width: 22px; border-top: 2px solid #D7262C; }
  .hx-flow__scope-ext::before { border-top-style: dashed !important; border-top-color: #A8B0BC !important; }
  .hx-flow__scope p > span { position: static; padding: 0; white-space: normal; transform: none; }
  .hx-ai__inner { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .hx-ind { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hx-award__body { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 767px) {
  .hx-flow__list, .hx-ai__steps { grid-template-columns: minmax(0, 1fr); }
  .hx-flow__list { gap: 8px; }
  .block .hx-flow__node { display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 14px; align-items: start; padding: 14px 16px; border-top-width: 3px; } /* 좁은 화면은 아이콘 · 번호 | 이름 · 설명 · 데이터 */
  .block .hx-flow__ext .hx-flow__node { border-top-width: 3px; }
  .hx-flow__top { grid-row: span 4; flex-direction: column; align-items: center; gap: 6px; }
  .hx-flow__ic { width: 40px; height: 40px; border-radius: 10px; }
  .hx-flow__ic svg { width: 22px; height: 22px; }
  .hx-flow__no { font-size: .8125rem; }
  .hx-flow__node strong, .hx-flow__desc, .hx-flow__erp, .hx-flow__node em { grid-column: 2; }
  .hx-flow__node strong { margin-top: 0; font-size: 1.0625rem; }
  .hx-flow__desc { margin-top: 2px; }
  .hx-flow__erp { justify-self: start; margin-top: 6px; }
  .hx-flow__node em { margin-top: 0; padding-top: 6px; }
  .hx-flow__scope { flex-direction: column; align-items: flex-start; }
  .hx-ai__media .aiview + .aiview { display: none; } /* 좁은 화면은 AI 화면 한 장만 */
  .hx-ind { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .hx-ind li { padding: 16px; }
  .block a.hx-case { grid-template-columns: minmax(0, 1fr); }
  .hx-case img { aspect-ratio: 846 / 460; height: auto; }
  .hx-case__text { padding: 20px 18px; }
  .hx-award { padding: 20px 16px; }
  .hx-award__list { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 1099px) {
  .hx-kpi__list { grid-template-columns: repeat(6, minmax(0, 1fr)); } /* 위 3칸 + 아래 2칸(넓게) */
  .hx-kpi__list > div { grid-column: span 2; }
  .hx-kpi__list > div:nth-child(n+4) { grid-column: span 3; }
  .hx-kpi__list > div:nth-child(4) { border-left: 0; }
  .hx-kpi__list > div:nth-child(n+4) { border-top: 1px solid var(--rule); }
  .block p.hx-tabs__grp { display: none; }
  .hx-tabs__list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .hx-kpi__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hx-kpi__list > div, .hx-kpi__list > div:nth-child(n+4) { grid-column: auto; padding: 16px; }
  .hx-kpi__list > div:nth-child(n) { border-left: 0; border-top: 1px solid var(--rule); }
  .hx-kpi__list > div:nth-child(-n+2) { border-top: 0; }
  .hx-kpi__list > div:nth-child(even) { border-left: 1px solid var(--rule); }
  .hx-kpi__list > div:last-child { grid-column: 1 / -1; }
  .hx-tabs__list { display: flex; overflow-x: auto; }
  .hx-tabs__list [role="tab"] { flex: none; padding: 10px 14px; font-size: .9375rem; }
}
/* 대화: 말풍선이 제자리에서 살짝 커지며 하나씩 */
.hx-ai__media .rv { transform: translateY(10px) scale(.97); transition-duration: .45s; }
.hx-ai__media .aiview__msg--user.rv { transform-origin: right bottom; }
.hx-ai__media .aiview__msg--ai.rv { transform-origin: left bottom; }
/* 흐름(메인 INTEGRATION): 칸 사이 틈마다 화살대(::after)를 그어 꺾쇠(::before)와 합쳐 화살표로 만든다.
   틈(28px) 왼쪽 끝 → 꺾쇠 꼭짓점(칸 왼쪽 -6.5px) 바로 안쪽(-8px)까지만, 꺾쇠와 같은 높이(가운데)에. 칸이 나타날 때 왼쪽부터 그어진다 */
.hx-flow__list > li + li::after { content: ""; position: absolute; left: -28px; top: 50%; width: 20px; height: 2px; margin-top: -1px; background: #8A94A3; transform-origin: left center; }
.hx-flow__list.is-in .hx-flow__core .hx-flow__node { animation: hx-core-pulse 1.1s ease-out 1.6s 2; } /* 마지막에 핵심(MES · WMS)을 한 번 더 짚는다 */
.hx-flow__scope.rv.is-in { transition-delay: 1.3s; } /* 구축 범위 띠는 다섯 칸이 다 나온 뒤에 */
@keyframes hx-core-pulse { from { box-shadow: 0 0 0 0 rgba(215, 38, 44, .45); } to { box-shadow: 0 0 0 14px rgba(215, 38, 44, 0); } }
@media (max-width: 1099px) {
 .hx-flow__list > li + li::after { display: none; }
}
/* ⑥ 대표 사례 사진: 110% → 100% */
.hx-ref__row.rv .hx-case img { transform: scale(1.1); transition: transform 1.4s var(--rv-ease); }
.hx-ref__row.rv.is-in .hx-case img { transform: none; }
