@charset "utf-8";

/* history.php — Figma 1:902 회사연혁 */

/* .history-page .company-visual__bg {
    background:
        linear-gradient(rgba(23, 28, 34, 0.75), rgba(23, 28, 34, 0.75)),
        url("/resources/img/sub/history/hero_layer1.jpg") center / cover no-repeat;
} */

.history-body {
    padding: 80px 0 100px;
    background: #fff;
}

.history-lead {
    font-size: 42px;
    font-weight: 300;
    line-height: 1.4;
    color: #000;
    margin: 0 0 32px;
}

.history-lead__em {
    font-weight: 800;
}

.history-range {
    margin: 0 0 40px;
    font-size: 42px;
    font-weight: 800;
    line-height: 1.4;
    color: #000;
}

.history-split {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 48px 72px;
}

.history-visual {
    position: relative;
    flex: 0 0 auto;
    width: 600px;
    max-width: 100%;
    aspect-ratio: 600 / 630;
    height: auto;
    border-radius: 0 0 60px 0;
    overflow: hidden;
    box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
}

.history-visual img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.history-visual::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    pointer-events: none;
}

.history-timeline {
    flex: 1 1 280px;
    min-width: 0;
    margin: 0;
    padding: 8px 0 0;
    list-style: none;
    position: relative;
}

.history-timeline::before {
    content: "";
    position: absolute;
    left: 17px;
    top: 18px;
    bottom: 18px;
    width: 1px;
    background: #d9d9d9;
}

.history-timeline__item {
    position: relative;
    display: grid;
    grid-template-columns: 36px 96px minmax(0, 1fr);
    column-gap: 8px;
    align-items: start;
    padding-bottom: 40px;
}

.history-timeline__item:last-child {
    padding-bottom: 0;
}

.history-timeline__mark {
    grid-column: 1;
    grid-row: 1;
    justify-self: center;
    align-self: start;
    margin-top: 2px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #060606;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
}

.history-timeline__mark::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #060606;
}

.history-timeline__date {
    grid-column: 2;
    grid-row: 1;
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    color: #000;
}

.history-timeline__text {
    grid-column: 3;
    grid-row: 1;
    min-width: 0;
}

.history-timeline__title {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.6;
    color: #000;
}

.history-timeline__desc {
    margin: 4px 0 0;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.6;
    color: #000;
}

@media (max-width: 1024px) {
    .history-lead,
    .history-range {
        font-size: 32px;
    }

    .history-split {
        flex-direction: column;
        align-items: stretch;
    }

    .history-visual {
        width: 100%;
        max-width: 560px;
        margin: 0 auto;
        border-radius: 0 0 40px 0;
    }

    .history-timeline {
        padding-top: 0;
        max-width: 640px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .history-body {
        padding: 56px 0 72px;
    }

    .history-lead,
    .history-range {
        font-size: 26px;
    }

    .history-timeline__item {
        grid-template-columns: 32px 84px minmax(0, 1fr);
        column-gap: 6px;
        padding-bottom: 32px;
    }

    .history-timeline::before {
        left: 15px;
    }

    .history-timeline__mark {
        width: 22px;
        height: 22px;
    }

    .history-timeline__mark::after {
        width: 8px;
        height: 8px;
    }

    .history-timeline__date {
        font-size: 16px;
    }

    .history-timeline__title {
        font-size: 16px;
    }

    .history-timeline__desc {
        font-size: 15px;
    }

    .history-visual {
        border-radius: 0 0 28px 0;
    }
}
