@charset "UTF-8";
/* =========================================================
   HISTORY INTRO
========================================================= */
.history-intro-section {
    position: relative;
    overflow: hidden;
}
.history-intro-section::before {
    position: absolute;
    top: -180px;
    right: -120px;
    width: 460px;
    height: 460px;
    border-radius: 50%;
    content: "";
}
.history-intro {
    position: relative;
    max-width: 760px;
}
.history-section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #0d3ea6;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .15em;
}
.history-section-kicker::before {
    width: 28px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    content: "";
}
.history-intro h2 {
    margin: 16px 0 0;
    color: #17233b;
    font-size: clamp(34px, 3.5vw, 48px);
    line-height: 1.3;
    letter-spacing: -.045em;
    word-break: keep-all;
}
.history-intro h2 strong {
    color: #0d3ea6;
}
.history-intro > p {
    max-width: 640px;
    margin: 20px 0 0;
    color: #68758b;
    font-size: 15px;
    line-height: 1.85;
    word-break: keep-all;
}
/* =========================================================
   HISTORY LAYOUT
   가로 이미지: JSP의 /image/company_history_banner_v2.png
========================================================= */
.history-main-section {
    padding: 20px 0 20px;
    overflow-x: clip;
    background: linear-gradient(180deg, #fff 0%, #fbfaf8 100%);
}
.history-layout {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 0;
}
.history-timeline {
    position: relative;
    order: 2;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 58px;
    min-width: 0;
    padding: 42px 16px 30px;
}
.history-timeline::before {
    position: absolute;
    top: 0;
    right: 16px;
    left: 16px;
    height: 1px;
    background: #8ca8dc;
    content: "";
}
.history-period-block {
    position: relative;
    min-width: 0;
    padding: 0;
    border-bottom: 0;
    transition: transform .3s ease;
}
.history-period-block:hover {
    transform: translateY(-4px);
}
.history-period-block::before {
    position: absolute;
    top: -47px;
    left: 0;
    width: 10px;
    height: 10px;
    background: #0d3ea6;
    box-shadow: 0 0 0 4px #fff;
    transition: transform .3s ease, box-shadow .3s ease;
    content: "";
}
.history-period-block:hover::before {
    box-shadow: 0 0 0 4px #fff, 0 0 0 8px rgba(13, 62, 166, .12);
    transform: scale(1.1);
}
/* JSP는 최신순을 유지하고 화면에서만 오래된 연혁부터 가로 배치 */
.history-period-block:nth-child(1) {
    order: 3;
}
.history-period-block:nth-child(2) {
    order: 2;
}
.history-period-block:nth-child(3) {
    order: 1;
}
.history-period-head {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 18px;
}
.history-period-main {
    color: #0d3ea6;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -.03em;
}
.history-period-range {
    color: #8082b7;
    font-size: 13px;
    font-weight: 700;
}
.history-grid {
    display: grid;
    gap: 6px;
}
.history-item {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    align-items: start;
    min-height: 0;
    padding: 4px 0;
}
.history-year {
    padding-top: 8px;
    color: #0d3ea6;
    font-size: 16px;
    font-weight: 800;
}
.history-line {
    display: none;
}
.history-row {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 8px;
    padding: 4px 0;
}
.history-month {
    color: #8082b7;
    font-size: 12px;
    font-weight: 700;
}
.history-row p {
    margin: 0;
    color: #001c49;
    font-size: 16px;
    line-height: 1.55;
    word-break: keep-all;
}
.history-row p small {
    display: inline;
    color: #8792a5;
    font-size: 11px;
}
.history-row-note p {
    color: #7a66b1;
}
.history-photo {
    position: relative;
    order: 1;
    width: 100vw;
    max-width: none;
    height: clamp(260px, 27vw, 390px);
    margin: 0 0 0 calc(50% - 50vw);
    overflow: hidden;
    border: 1px solid rgba(13, 62, 166, .12);
    border-radius: 0;
    background: #142542;
    box-shadow: 0 24px 54px rgba(20, 34, 58, .16);
}
.history-photo::before,
.history-photo::after {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    content: "";
}
.history-photo::before {
    background: linear-gradient(90deg, rgba(4, 17, 39, .98) 0%, rgba(6, 25, 54, .96) 22%, rgba(7, 31, 66, .88) 39%, rgba(8, 35, 73, .62) 51%, rgba(8, 34, 70, .24) 62%, transparent 72%), linear-gradient(180deg, rgba(5, 17, 38, .08), transparent 46%, rgba(5, 17, 38, .22));
}
.history-photo::after {
    left: -45%;
    width: 28%;
    background: linear-gradient(105deg, transparent, rgba(255, 255, 255, .15), transparent);
    transform: skewX(-16deg);
    transition: left 1s ease;
}
.history-photo img {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 49%;
    transform: scale(1.02);
    transition: transform 1s ease, filter .8s ease;
}
.history-release {
    color: #5b55c7;
    font-weight: 700;
}
.history-photo:hover img {
    transform: scale(1.045);
}
.history-photo-copy {
    position: absolute;
    top: 50%;
    left: max(32px, calc((100vw - 1240px) / 2));
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    color: #fff;
    transform: translateY(-50%);
}
.history-photo-copy span {
    font-size: clamp(11px, .9vw, 14px);
    font-weight: 800;
    letter-spacing: .15em;
}
.history-photo-copy strong {
    margin-top: 7px;
    color: rgba(255, 255, 255, .72);
    font-size: clamp(10px, .75vw, 12px);
    font-weight: 600;
    letter-spacing: .1em;
}
.history-photo-copy::after {
    width: 34px;
    height: 2px;
    margin-top: 15px;
    background: linear-gradient(90deg, #fff, #6d91dc);
    content: "";
}
.history-photo figcaption {
    position: absolute;
    right: 30px;
    bottom: 24px;
    z-index: 2;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .12em;
}
@media (max-width: 1000px) {
    .history-timeline {
        grid-template-columns: 1fr;
        gap: 0;
        padding: 38px 12px 20px;
    }
    .history-timeline::before {
        display: none;
    }
    .history-period-block {
        padding: 28px 0;
        border-top: 1px solid #dbe3f0;
    }
    .history-period-head {
        align-items: center;
        gap: 12px;
        padding-left: 0;
    }
    .history-period-head::before {
        content: "";
        display: block;
        flex: 0 0 10px;
        width: 10px;
        height: 10px;
        border: 4px solid #fff;
        background: #0d3ea6;
        box-shadow: 0 0 0 4px #dce8fb;
        box-sizing: content-box;
    }
    .history-period-block::before {
        content: none;
        display: none;
    }
}
@media (max-width: 768px) {
    .history-intro-section {
        padding: 76px 0 40px;
    }
    .history-main-section {
        padding: 10px 0 76px;
    }
    .history-item {
        grid-template-columns: 52px minmax(0, 1fr);
    }
    .history-row {
        grid-template-columns: 42px minmax(0, 1fr);
    }
    .history-photo {
        height: 210px;
        border-radius: 12px;
    }
    .history-photo::before {
        background: linear-gradient(90deg, rgba(4, 17, 39, .97) 0%, rgba(6, 25, 54, .92) 34%, rgba(8, 34, 70, .48) 56%, transparent 76%), linear-gradient(180deg, rgba(5, 17, 38, .06), transparent 46%, rgba(5, 17, 38, .2));
    }
    .history-photo-copy {
        left: 18px;
    }
    .history-photo figcaption {
        right: 16px;
        bottom: 14px;
        font-size: 10px;
    }
}
@media (prefers-reduced-motion: reduce) {
    .history-photo img,
    .history-photo::after,
    .history-period-block,
    .history-period-block::before {
        transition: none;
    }
}