@charset "utf-8";
/* ========================================================
   헤리티지 타임라인 연대별 — FO-COR-02-01-002 (시안 9788:20060)
   2026-10-19 - 신규
   프리픽스: htl-
   상세 레이어(.her-modal)와 시그니처 상세(.her-sig__detail)는
   헤리티지(heritage.css)의 것을 그대로 쓴다.
   ======================================================== */
.htl-body {
  /* 모바일 좌우 여백 — PC 는 .htl-con 이 폭을 직접 쥔다 */
  --htl-pad: 372rem;
  background: var(--color-bg-default-white);
}

/* ========================================================
   01. 최소 상단 바 — 공통(components.css) 그대로
   ======================================================== */
/* 2026-10-19 - 프로젝트 상세와 같은 최소 바로 교체.
   여백도 프로젝트 상세와 같은 --side-padding 을 쓴다(따로 덮지 않는다) */

/* ========================================================
   02. 좌측 연대 레일
   ======================================================== */
/* 2026-11-05 - 시안 대조: 레일을 눈금자 형태로 교체 (잔눈금 추가, 연대 눈금 고정 32·블루) */
.htl-rail {
  position: fixed;
  left: 16rem;
  top: 50%;
  z-index: 40;
  color: var(--color-text-default-highest);
  translate: 0 -50%;
}
.htl-rail__list {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 66rem;
  list-style: none;
}
.htl-rail__list li {
  position: relative;
}
/* 연대 사이를 5등분한 잔눈금 4개 — 연대 눈금 자리에는 그리지 않는다(시안과 동일).
   연대 간격 85.2 = 글자 한 줄 19.2(20 × 0.96) + 목록 간격 66, 그 1/5 이 17.04.
   시작점은 연대 눈금과 같은 높이(글자 한 줄 가운데)에서 한 칸 아래다 */
.htl-rail__list li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: calc((19.2rem - 1px) / 2 + 17.04rem);
  left: 0;
  width: 20rem;
  height: calc(17.04rem * 3 + 1px);
  background: repeating-linear-gradient(
    180deg,
    color-mix(in srgb, currentColor 40%, transparent) 0 1px,
    transparent 1px 17.04rem
  );
}
.htl-rail__btn {
  display: flex;
  align-items: center;
  gap: 12rem;
  padding: 0;
  font-family: var(--font-family-eng);
  font-size: 20rem;
  font-weight: var(--font-weight-semibold);
  line-height: 0.96;
  letter-spacing: -0.01em;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}
/* 연대 눈금 — 선택 여부와 무관하게 32 · 포인트 블루 */
.htl-rail__tick {
  display: block;
  width: 32rem;
  height: 1px;
  background: var(--color-point-blue);
}
/* 흐려지는 건 연대 글자뿐 */
.htl-rail__btn .eng {
  opacity: 0.4;
  transition: opacity 0.4s var(--ease-out-cubic);
}
.htl-rail__btn:hover .eng,
.htl-rail__btn:focus-visible .eng,
.htl-rail__btn.is-on .eng {
  opacity: 1;
}
/* 키비주얼 위에서는 흰 글자 */
.htl-rail--light {
  color: var(--color-text-default-white);
}

/* ========================================================
   03. 연대 키비주얼 (시안 1920×1080)
   ======================================================== */
.htl-kv {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  overflow: hidden;
  background: #262626; /* 시안 고유값 */
}
.htl-kv__bg {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  translate: -50% -50%;
  will-change: transform;
}
.htl-kv__dim {
  position: absolute;
  inset: 0;
  background: var(--color-bg-default-black);
  opacity: var(--dim, 0.24);
}
.htl-kv__title {
  position: relative;
  z-index: 1;
  font-family: var(--font-family-eng);
  font-size: 200rem;
  font-weight: var(--font-weight-semibold);
  line-height: 0.96;
  letter-spacing: -0.01em;
  color: var(--color-text-default-white);
}
.htl-kv__title em {
  font-size: 0.48em; /* 96 / 200 */
  font-style: normal;
}

/* ========================================================
   04. 본문 — 연혁 + 시그니처
   ======================================================== */
/* 2026-10-23 - 시안대로 연대 제목 + 내용을 합쳐 1176 으로 두고 화면 가운데.
   좌우 여백(372)으로 잡으면 1920 보다 넓은 화면에서 내용이 끝까지 늘어난다 */
.htl-con {
  width: 1176rem;
  margin: 0 auto;
  padding: 240rem 0;
}

/* ── 연혁 ── */
.htl-hist {
  display: flex;
  gap: 24rem;
  padding-bottom: 80rem;
}
/* 연대 제목은 내용이 지나가는 동안 제자리에 머문다 */
.htl-hist__era {
  position: sticky;
  top: 240rem;
  flex-shrink: 0;
  align-self: flex-start;
  width: 276rem;
  font-family: var(--font-family-eng);
  font-size: 80rem;
  font-weight: var(--font-weight-semibold);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--color-text-default-highest);
}
.htl-hist__era em {
  font-size: 0.5em; /* 40 / 80 */
  font-style: normal;
}
.htl-hist__list {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 80rem;
  min-width: 0;
  list-style: none;
}
.htl-item {
  padding-top: 24rem;
  border-top: 1px solid #d9d9d9; /* 시안 고유값 */
}
.htl-item__year {
  font-family: var(--font-family-kor);
  font-size: var(--kor-b3); /* 20 */
  font-weight: var(--font-weight-semibold);
  line-height: 1.36;
  letter-spacing: var(--letter-spacing-tight);
  color: var(--color-text-default-highest);
}
.htl-item__title {
  font-family: var(--font-family-kor);
  font-size: var(--kor-h6); /* 24 */
  font-weight: var(--font-weight-bold);
  line-height: 1.36;
  letter-spacing: var(--letter-spacing-tight);
  color: var(--color-text-default-highest);
}
.htl-item__body {
  margin-top: 24rem;
  font-family: var(--font-family-kor);
  font-size: var(--kor-b4); /* 18 */
  font-weight: var(--font-weight-regular);
  line-height: 1.6;
  letter-spacing: var(--letter-spacing-tight);
  color: var(--color-text-default-highest);
}

/* 2026-10-23 - 시안 반영: 옆에 머물던 사진칸(.htl-hist__fig) 삭제 */

/* ── 시그니처 ── */
.htl-sig {
  display: flex;
  flex-direction: column;
  gap: 24rem;
  padding-left: 300rem;
}
.htl-sig__title {
  font-family: var(--font-family-eng);
  font-size: 40rem;
  font-weight: var(--font-weight-semibold);
  line-height: 1.2;
  color: var(--color-text-default-highest);
}
.htl-sig__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24rem;
  list-style: none;
}
.htl-sig__btn {
  display: flex;
  flex-direction: column;
  gap: 16rem;
  width: 100%;
  height: auto;
  padding: 0;
  text-align: left;
  background: none;
  border: 0;
  cursor: pointer;
}
.htl-sig__shot {
  position: relative;
  display: block;
  width: 100%;
  /* 2026-10-23 - 한 칸이 276 으로 줄어 사진도 같은 비율로 (276 : 167.6) */
  height: 168rem;
  overflow: hidden;
  background: #eeeeee; /* 시안 고유값 */
}
.htl-sig__shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: scale 0.6s var(--ease-out-cubic);
}
.htl-sig__btn:hover .htl-sig__shot img,
.htl-sig__btn:focus-visible .htl-sig__shot img {
  scale: 1.06;
}
.htl-sig__name {
  font-family: var(--font-family-kor);
  font-size: var(--kor-b3); /* 20 */
  font-weight: var(--font-weight-semibold);
  line-height: 1.36;
  letter-spacing: var(--letter-spacing-tight);
  color: var(--color-text-default-highest);
}

/* 등장 — 보이기 시작하면 한 칸씩 올라온다 */
.htl-js .htl-rise {
  opacity: 0;
  transform: translateY(40rem);
}
.htl-js .htl-rise.is-in {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.8s var(--ease-out-cubic),
    transform 0.8s var(--ease-out-cubic);
}

/* ========================================================
   05. 반응형 — 태블릿·모바일 (1024px 이하)
   ======================================================== */
/* ========================================================
   05. 반응형 — 태블릿·모바일 (1024px 이하)
   2026-10-21 - 모바일 시안(10791:3685) 적용.
   좌측 레일 → 하단 가로 눈금, 연혁은 좌측 연대(88) + 우측 항목,
   사진은 항목 안으로, 시그니처는 가로로 흐른다
   ======================================================== */
@media (max-width: 1024px) {
  .htl-body {
    /* 시안 MO 좌우 여백 21 */
    --htl-pad: 21rem;
  }
  /* 연대 한 덩이 — 키비주얼과 본문 사이 72, 아래 112 */
  .htl-era {
    padding-bottom: 112rem;
  }
  /* 키비주얼 — 한 화면, 가운데 정렬 */
  .htl-kv {
    justify-content: center;
    height: 100svh;
    min-height: 560rem;
    margin-bottom: 72rem;
    padding: 120rem var(--htl-pad);
  }
  /* 시안 72 / s 56 */
  .htl-kv__title {
    font-size: 72rem;
    text-align: center;
  }
  .htl-kv__title em {
    font-size: 0.7778em; /* 56 / 72 */
  }
  /* 2026-10-23 - 모바일은 고정 폭이 아니라 좌우 여백으로 */
  .htl-con {
    width: auto;
    margin: 0;
    padding: 0 var(--htl-pad);
  }
  /* 연혁 — 좌측 연대(88) + 우측 항목 */
  .htl-hist {
    gap: 16rem;
    padding-bottom: 48rem;
  }
  /* 2026-10-21 - 시안 글자(40)가 88 상자보다 2 넓어 옆 목록과 간격이 먹혔다.
     상자는 시안대로 두고 글자를 한 단계 줄인다.
     연대 라벨은 그 연대가 지나가는 동안 위에 머문다 (상단 바 60 아래) */
  .htl-hist__era {
    position: sticky;
    top: 80rem;
    align-self: flex-start;
    width: 88rem;
    font-size: 36rem;
    line-height: 1.2;
  }
  .htl-hist__era em {
    font-size: 0.55em; /* 20 / 36 */
  }
  .htl-hist__list {
    gap: 40rem;
  }
  .htl-item__title {
    font-size: 20rem;
  }
  .htl-item__body {
    margin-top: 16rem;
    font-size: 16rem;
  }
  /* 2026-10-23 - 시안 반영: 항목 안에 들어가던 사진(.htl-item__fig) 삭제 */
  /* 시그니처 — 280 카드가 오른쪽으로 흐른다 (시안 MO) */
  .htl-sig {
    gap: 24rem;
    padding-left: 0;
  }
  .htl-sig__title {
    font-size: 24rem;
  }
  .htl-sig__list {
    display: flex;
    gap: 24rem;
    /* 오른쪽은 화면 끝까지 흘려 보낸다 */
    margin-right: calc(var(--htl-pad) * -1);
    padding-right: var(--htl-pad);
    overflow-x: auto;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .htl-sig__list::-webkit-scrollbar {
    display: none;
  }
  .htl-sig__item {
    flex: 0 0 280rem;
  }
  .htl-sig__btn {
    gap: 12rem;
  }
  .htl-sig__shot {
    height: auto;
    aspect-ratio: 280 / 175;
  }
  /* 시안 kor/heading/h7-sb */
  .htl-sig__name {
    font-size: 20rem;
  }

  /* 2026-10-21 - 좌측 레일 → 하단 가로 눈금 (시안 10797:20088 / 20089) */
  .htl-rail {
    left: 0;
    right: 0;
    top: auto;
    bottom: 0;
    padding: 32rem 0 24rem;
    color: var(--color-text-default-highest);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #ffffff 50%, #ffffff 100%);
    translate: none;
  }
  /* 키비주얼 위에서는 검정 바탕에 흰 글자 */
  .htl-rail--light {
    color: var(--color-text-default-white);
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.64) 50%, rgba(0, 0, 0, 0.8) 100%);
  }
  /* 눈금 — 연대 사이를 5등분한 잔눈금(12) 위에 연대 눈금(24)을 겹친다 */
  .htl-rail::before {
    content: "";
    display: block;
    height: 24rem;
    margin: 0 21rem;
    /* 간격을 (100% - 1px)/n 로 잡아야 마지막 눈금이 오른쪽 끝 안쪽에 떨어진다 */
    background:
      repeating-linear-gradient(90deg, #007fff 0 1px, transparent 1px calc((100% - 1px) / 5)) 0 0 /
        100% 24rem no-repeat,
      repeating-linear-gradient(
          90deg,
          color-mix(in srgb, currentColor 15%, transparent) 0 1px,
          transparent 1px calc((100% - 1px) / 25)
        )
        0 0 / 100% 12rem no-repeat;
  }
  /* 2026-11-05 - 세로 잔눈금은 PC 전용 — 모바일은 위 .htl-rail::before 가 그린다 */
  .htl-rail__list li:not(:last-child)::after {
    display: none;
  }
  .htl-rail__list {
    flex-direction: row;
    justify-content: space-between;
    gap: 0;
    margin-top: 8rem;
    padding: 0 8rem;
  }
  .htl-rail__btn {
    gap: 0;
    font-size: 16rem;
    color: inherit;
  }
  /* 눈금은 ::before 가 그린다 */
  .htl-rail__tick {
    display: none;
  }
}

@media (max-width: 600px) {
  /* 2026-10-21 - 시안 MO 가 390 기준이라 크기를 그대로 쓴다 */
  .htl-rail__btn {
    font-size: 14rem;
  }
}

/* ========================================================
   06. 모션 최소화
   ======================================================== */
@media (prefers-reduced-motion: reduce) {
  .htl-js .htl-rise {
    opacity: 1;
    transform: none;
  }
}
