/* ==========================================================================
   회사 연혁(/history) — Figma 「GNB > 회사 연혁」(2122:6658) 2026-09-06
   ---------------------------------------------------------------------------
   · 데스크톱 1920 기준. 컨테이너 1280. 좌표는 피그마 x−320, y−94(헤더).
   · 배너·브레드크럼은 회사소개(about.css)와 같은 구조. 1023px 이하는 세로 흐름.
   · 배경: 연혁 구간 = 옅은 파랑 그라데이션 + 광섬유 사진(불투명 .63, multiply, 좌하단 방사형 마스크)
   ========================================================================== */
#wrapper:has(.sp-hist) { max-width: none; padding: 0; }
#wrapper:has(.sp-hist) #container_title { display: none; }
body:has(.sp-hist) .sp-footer { margin-top: 0; }

.sp-hist { --ink: #1b2b39; --ink-2: #484c52; --blue: #1e64fd; color: var(--ink); }
.sp-hist img { max-width: none; }
.sp-hist a { text-decoration: none; }
.sp-hist p, .sp-hist h1, .sp-hist h2, .sp-hist h3 { margin: 0; }
.sp-hist .sp-hist__box { position: relative; }
.sp-hist .sp-hist__box.sp-inner { max-width: 1280px; padding-left: 0; padding-right: 0; }
.sp-hist__box > * { position: absolute; }

/* ── 1. 배너 (회사소개와 동일 사진 — 피그마의 Unsplash+ 사진은 라이선스 전이라 대체) ── */
.sp-hist__banner {
    position: relative;
    height: 326px;
    overflow: hidden;
    background: #0f1c2b url(../img/about/banner.jpg) center / cover no-repeat;
}
.sp-hist__banner .sp-inner { position: relative; height: 100%; }
.sp-hist__crumb {
    position: absolute;
    left: 20px;
    top: 16px;
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 14px;
    line-height: 1.3;
    color: #fff;
}
.sp-hist__crumb a { color: #fff; font-weight: 400; }
.sp-hist__crumb a:hover { color: #fff; text-decoration: underline; }
.sp-hist__crumb li:last-child { font-weight: 500; }
.sp-hist__crumb img { display: block; width: 4px; height: 8px; }
.sp-hist__title {
    position: absolute;
    left: 80px;
    top: 162px;          /* 256 − 94 */
    font-size: 52px;
    font-weight: 600;
    line-height: 1.2;
    color: #fff;
    white-space: nowrap;
}
.sp-hist__sub {
    position: absolute;
    left: 80px;
    top: 234px;          /* 328 − 94 */
    font-size: 23px;
    line-height: 1.4;
    color: #feffff;
    white-space: nowrap;
}
.sp-hist__sub b { font-weight: 700; }

/* ── 2. Company History (frame 420 → 1916, 1496px) ─────────────────────── */
.sp-hist__history {
    position: relative;
    height: 1496px;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(248, 250, 251, 0) 0%, rgba(174, 203, 222, .07) 100%);
}
.sp-hist__photo {
    position: absolute;
    left: 0;
    top: 645px;          /* 1065 − 420 */
    width: 100%;
    height: 851px;
    background: url(../img/history/fiber.jpg) center top / 1922px 851px no-repeat;
    opacity: .63;
    mix-blend-mode: multiply;
    -webkit-mask-image: radial-gradient(ellipse 1300px 800px at 0 100%, #000 0%, rgba(0, 0, 0, .55) 40%, transparent 100%);
            mask-image: radial-gradient(ellipse 1300px 800px at 0 100%, #000 0%, rgba(0, 0, 0, .55) 40%, transparent 100%);
    pointer-events: none;
}
.sp-hist__history .sp-hist__box { height: 1496px; }
.sp-hist__head { left: 0; right: 0; top: 100px; text-align: center; }
.sp-hist__head h2 { font-size: 40px; font-weight: 700; line-height: 1.2; color: #000; }
.sp-hist__head p { margin-top: 12px; font-size: 23px; line-height: 1.4; color: var(--ink); }
.sp-hist__head p b { font-weight: 700; }

/* 타임라인 (frame y 764 → 1776) — 가운데 선 x 960, 왼쪽 열은 오른끝 892 정렬, 오른쪽 열 x 1032 */
.sp-hist__tl { left: 0; top: 344px; width: 1280px; height: 1012px; }
.sp-hist__tl-line { position: absolute; left: 640px; top: 49px; width: 1px; height: 896px; background: #d9d9d9; }
.sp-hist__tl-dot {
    position: absolute;
    left: 628px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #accaf6;
}
.sp-hist__tl-dot::after { content: ""; position: absolute; left: 8px; top: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); }
.sp-hist__tl-dot--top { top: 19px; }
.sp-hist__tl-dot--bottom { top: 955px; }
.sp-hist__decade {
    position: absolute;
    font-size: 52px;
    font-weight: 800;
    line-height: 1.2;
    color: #000;
    white-space: nowrap;
}
.sp-hist__decade--top { right: 708px; top: 0; }       /* 오른끝 892 = 1280 − 708 + 320 */
.sp-hist__decade--bottom { left: 712px; top: 936px; }
.sp-hist__years { position: absolute; left: 712px; top: 0; width: 560px; }
.sp-hist__year { font-size: 30px; font-weight: 700; line-height: 1.2; color: var(--blue); }
.sp-hist__year + .sp-hist__rows { margin-top: 16px; }
.sp-hist__rows + .sp-hist__year { margin-top: 40px; }
.sp-hist__rows { margin: 0; padding: 0; list-style: none; }
.sp-hist__rows li {
    display: flex;
    gap: 14px;
    font-size: 20px;
    line-height: 1.2;
    color: var(--ink-2);
}
.sp-hist__rows li + li { margin-top: 12px; }
.sp-hist__rows li.is-month { margin-top: 16px; }
.sp-hist__rows li:first-child { margin-top: 0; }
.sp-hist__rows i { flex: 0 0 25px; font-style: normal; font-weight: 500; color: #000; }
.sp-hist__y2019 { position: absolute; right: 712px; top: 936px; text-align: right; white-space: nowrap; }  /* 오른끝 888 */
.sp-hist__y2019 .sp-hist__year { padding-right: 4px; }
.sp-hist__y2019 p { display: flex; justify-content: flex-end; gap: 14px; margin-top: 16px; font-size: 20px; line-height: 1.2; color: var(--ink-2); }
.sp-hist__y2019 p i { font-style: normal; font-weight: 500; color: #000; }

/* ── 3. 숫자로 보는 SamplePCB (frame 1916 → 2423, 507px) — 피그마는 타사 스크린샷, 수치는 자리표시 ── */
.sp-hist__stats { position: relative; height: 507px; background: #fff; }
.sp-hist__stats .sp-hist__box { height: 507px; }
.sp-hist__stats h2 { left: 0; right: 0; top: 140px; text-align: center; font-size: 40px; font-weight: 400; line-height: 1.2; color: #000; }
.sp-hist__stats h2 b { font-weight: 700; }
.sp-hist__stat-list {
    left: -20px;
    top: 300px;
    display: grid;
    grid-template-columns: repeat(4, 350px);
    margin: 0;
    padding: 0;
    list-style: none;
}
.sp-hist__stat-list b { display: block; font-size: 52px; font-weight: 300; line-height: 1.2; letter-spacing: -1px; color: #000; }
.sp-hist__stat-list span { display: block; margin-top: 8px; font-size: 20px; line-height: 1.3; color: var(--ink-2); }

/* ── 4. Certification (frame 2423 → 3233, 810px, bg #f3f6f8) ────────────── */
.sp-hist__cert { position: relative; height: 810px; overflow: hidden; background: #f3f6f8; }
.sp-hist__cert .sp-hist__box { height: 810px; }
.sp-hist__cert-head { left: 0; right: 0; top: 140px; text-align: center; }
.sp-hist__cert-head h2 { font-size: 40px; font-weight: 700; line-height: 1.2; color: #000; }
.sp-hist__cert-head p { margin-top: 30px; font-size: 23px; line-height: 1.4; color: var(--ink); }
.sp-hist__cert-head p b { font-weight: 700; }
/* 카드 띠: 컨테이너 밖까지 이어지고 양끝이 배경색으로 잠긴다(피그마 dim) — 가로 스크롤 */
.sp-hist__strip {
    position: absolute;
    left: 50%;
    top: 352px;
    width: 1920px;
    height: 340px;
    margin-left: -960px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -webkit-mask-image: linear-gradient(90deg, transparent 14.6%, #000 19.2%, #000 80.8%, transparent 85.4%);
            mask-image: linear-gradient(90deg, transparent 14.6%, #000 19.2%, #000 80.8%, transparent 85.4%);
}
.sp-hist__strip::-webkit-scrollbar { display: none; }
.sp-hist__cards {
    display: flex;
    gap: 100px;
    width: max-content;
    margin: 0 auto;
    padding: 0 152px;   /* 6장(1616px)을 1920 가운데에 */
    list-style: none;
}
.sp-hist__cards li { width: 186px; text-align: center; }
.sp-hist__cards figure { margin: 0; }
.sp-hist__cards .sp-hist__paper {
    display: block;
    width: 186px;
    height: 260px;
    border: 1px solid #d9d9d9;
    background: #fff;
    overflow: hidden;
}
.sp-hist__cards .sp-hist__paper img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.sp-hist__cards figcaption { margin-top: 22px; font-size: 16px; font-weight: 500; line-height: 1.2; color: #000; white-space: nowrap; }
.sp-hist__cards figcaption small { display: block; font-size: 14px; font-weight: 400; color: var(--ink-2); }

/* ── 반응형(피그마 밖) ────────────────────────────────────────────────── */
@media (max-width: 1319.98px) {
    .sp-hist__stat-list { left: 0; grid-template-columns: repeat(4, 1fr); width: 100%; }
}
@media (max-width: 1023.98px) {
    .sp-hist__box { height: auto !important; }
    .sp-hist__box > * { position: static; }
    .sp-hist .sp-hist__box.sp-inner { padding-left: 20px; padding-right: 20px; }
    .sp-hist__banner { height: 260px; }
    .sp-hist__title { left: 20px; top: 118px; font-size: 36px; }
    .sp-hist__sub { left: 20px; top: 180px; font-size: 16px; white-space: normal; }
    .sp-hist__history { height: auto; padding: 56px 0 64px; }
    .sp-hist__photo { top: auto; bottom: 0; height: 60%; background-size: cover; }
    .sp-hist__head h2 { font-size: 30px; }
    .sp-hist__head p { font-size: 16px; }
    /* 타임라인: 왼쪽 선 하나에 순서대로 — 2020’s → 2023…2020 → 2019 → 2010’s */
    .sp-hist__tl { display: flex; flex-direction: column; width: auto; height: auto; margin-top: 40px; padding-left: 36px; border-left: 1px solid #d9d9d9; }
    .sp-hist__tl-line, .sp-hist__tl-dot { display: none; }
    .sp-hist__decade, .sp-hist__years, .sp-hist__y2019 { position: static; }   /* 데스크톱 절대 배치 해제 */
    .sp-hist__decade { font-size: 32px; }
    .sp-hist__decade--top { order: 1; }
    .sp-hist__years { order: 2; width: auto; margin-top: 16px; }
    .sp-hist__y2019 { order: 3; margin-top: 40px; text-align: left; white-space: normal; }
    .sp-hist__y2019 p { justify-content: flex-start; }
    .sp-hist__decade--bottom { order: 4; margin-top: 40px; }
    .sp-hist__year { font-size: 24px; }
    .sp-hist__rows li { font-size: 16px; }
    .sp-hist__rows i { flex-basis: 22px; }
    .sp-hist__stats { height: auto; padding: 56px 0; }
    .sp-hist__stats h2 { font-size: 28px; }
    .sp-hist__stat-list { grid-template-columns: repeat(2, 1fr); gap: 28px 16px; margin-top: 32px; }
    .sp-hist__stat-list b { font-size: 40px; }
    .sp-hist__stat-list span { font-size: 15px; }
    .sp-hist__cert { height: auto; padding: 56px 0 48px; }
    .sp-hist__cert-head h2 { font-size: 30px; }
    .sp-hist__cert-head p { margin-top: 14px; font-size: 16px; }
    .sp-hist__strip { position: relative; left: 0; width: auto; height: auto; margin: 32px -20px 0; mask-image: none; -webkit-mask-image: none; }
    .sp-hist__cards { gap: 24px; padding: 0 20px; }
    .sp-hist__cards li { width: 150px; }
    .sp-hist__cards .sp-hist__paper { width: 150px; height: 210px; }
    .sp-hist__cards figcaption { margin-top: 12px; font-size: 14px; white-space: normal; }
    .sp-hist__cards figcaption small { font-size: 12px; }
}
