@charset "UTF-8";
/* ==========================================================================
   autobase — 연혁 (데스크톱)
   레퍼런스: odhitec /kr/company/history.php (1rem=10px 실측 → px 환산,
   #2e7ecd → 브랜드 var(--brand) 치환). ※ @media 는 m.history.css 에만.
   ========================================================================== */

.hs { margin-top: 80px; }

/* ── 상단 배너 — 파랑 박스 + 풀커버 배경 ────────────────────────────── */
.hs-top { position: relative; height: 500px; z-index: 9; }
.hs-top .inner-sub { position: relative; height: 100%; }
.hs-top__box {
  position: absolute;
  top: 100px;
  left: 0;
  width: 400px;
  height: 460px;
  padding: 50px;
  box-sizing: border-box;
  background-color: var(--brand);
  color: #fff;
}
.hs-top__logo img { display: block; height: 28px; }   /* 흰색 전용 에셋 사용 — filter 로 흰색화하면 심볼 내부 흰 영역까지 칠해져 덩어리로 보인다 */
.hs-top__tit {
  display: block;
  margin-top: 43px;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: -0.065em;
}
.hs-top__years {
  position: absolute;
  left: 50px;
  bottom: 50px;
  display: flex;
  margin: 0 -11px;
}
.hs-year {
  padding: 0 11px;
  font-size: 20px;
  letter-spacing: -0.025em;
  color: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.4s;
}
.hs-year em {
  position: relative;
  display: block;
  padding-bottom: 9px;
  font-style: italic;
  font-weight: 500;
}
.hs-year em::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 2px;
  background-color: #f9f6f7;
  transition: all 0.4s;
}
.hs-year:hover,
.hs-year.on { color: #fff; }
.hs-year:hover em::before,
.hs-year.on em::before { width: 100%; left: 0; }
.hs-top__bg {
  display: block;
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("../../images/company/history.webp") no-repeat 70% center / cover;
}

/* ── 타임라인 — 중앙 라인 + 우측 배치(레퍼런스 history-right) ───────── */
.hs-body { padding-bottom: 100px; }
.hs-tl { position: relative; padding-top: 170px; }
.hs-tl__group { position: relative; padding-bottom: 88px; }
.hs-tl__group:last-child { padding-bottom: 0; }
/* 연결선 — 그룹별로 나누면 경계마다 이음새가 생기므로 타임라인 전체에 한 줄로 그린다.
   좌표(--track-top/--track-h)와 채움(--fill-h)은 JS 가 첫/마지막 도트 중심을 실측해 갱신. */
.hs-tl::before,
.hs-tl::after {
  content: "";
  position: absolute;
  top: var(--track-top, 0);
  left: 50%;
  width: 2px;
  margin-left: -1px;
}
.hs-tl::before {
  height: var(--track-h, 0);
  background-color: rgba(0, 0, 0, 0.1);
}
.hs-tl::after {
  height: var(--fill-h, 0);
  max-height: var(--track-h, 0);
  background-color: var(--brand);
}

.hs-tl__box { position: relative; width: 50%; margin-left: auto; padding-left: 90px; }
.hs-tl__box::before {
  content: "";
  position: absolute;
  z-index: 1;              /* 타임라인 연결선보다 위 — 점이 선 위에 얹힌다 */
  top: 4px;
  right: 100%;
  transform: translateX(50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background-color: #000;
  transition: all 0.4s;
}
.hs-tl__year {
  position: absolute;
  margin: 0;               /* 전역 리셋에 h4 가 없어 기본 margin 이 absolute 오프셋에 더해진다 */
  top: -5px;
  right: 100%;
  padding-right: 110px;
  font-size: 64px;
  font-style: italic;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1;
  color: #222;
  white-space: nowrap;
  transition: all 0.4s;
}
.hs-tl__year span {
  display: block;
  margin-top: 8px;
  font-size: 20px;
  font-weight: 500;
  text-align: right;
  color: #888;
}
.hs-tl__group.on .hs-tl__year { color: var(--brand); }
.hs-tl__group.on .hs-tl__year span { color: var(--brand); }
.hs-tl__group.on .hs-tl__box::before { background-color: var(--brand); }

.hs-tl__txt {
  position: relative;
  padding-left: 10px;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: -0.05em;
  color: #555;
  margin-top: 2px;
  word-break: keep-all;
}
.hs-tl__txt::before {
  content: "";
  position: absolute;
  top: 11px;
  left: 0;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background-color: #555;
}
