@import url('https://fonts.googleapis.com/css2?family=Jost:wght@400;500;700&display=swap');
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css');

:root {
    --main-green: #1b6331;
}

/* ======================================
   BASE
====================================== */
.history-page {
    font-family: 'Pretendard', 'Jost', sans-serif;
    background: #fff;
    color: #111;
    letter-spacing: -0.02em;
    overflow-x: hidden;
    line-height: 1.8;
}

/* ======================================
   1. HEADER (company-header 기준으로 맞춤)
====================================== */
.history-header {
    text-align: center;
    box-sizing: border-box;
}

.top-logo img {
    width: clamp(70px, 6vw, 90px);
    margin-bottom: 2rem;
}

.top-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 400;
    color: #222;
    margin-bottom: 0.8rem;
}

.top-sub {
    font-size: clamp(0.85rem, 1.5vw, 0.95rem);
    color: #777;
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.main-title {
    font-family: 'Jost', sans-serif;
    color: var(--main-green);
    font-size: clamp(1.4rem, 2vw, 1.6rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
}

/* ======================================
   2. YEAR NAVIGATION
====================================== */
.history-nav {
    text-align: center;
    margin: 5rem 0 3rem;
}

.history-nav ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: clamp(1.5rem, 3vw, 2.5rem);
    list-style: none;
    padding: 0;
    margin: 0;
}

.history-nav a {
    font-family: 'Jost', sans-serif;
    font-size: clamp(1rem, 1.6vw, 1.4rem);
    font-weight: 700;
    color: #999;
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
}

.history-nav a:hover,
.history-nav a.active {
    color: var(--main-green);
    transform: translateY(-2px);
}

/* ======================================
   3. CONTENT
====================================== */
.history-content {
    max-width: 1300px;
    margin: 0 auto;
    padding: 6rem 1rem 6rem;
    box-sizing: border-box;
}

.history-year {
    display: flex;
    align-items: flex-start;
    gap: 2.5rem;
    margin-bottom: 6rem;
}

.year-title {
    flex: 0 0 clamp(120px, 12vw, 180px);
    font-family: 'Jost', sans-serif;
    font-size: clamp(2.2rem, 5vw, 4rem);
    font-weight: 700;
    color: var(--main-green);
    text-align: right;
    line-height: 1;
    padding-top: 0.6rem;
}

.year-detail {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 2rem 3rem;
    justify-content: flex-start;
}

.history-item {
    flex: 0 0 calc(33.333% - 2rem);
    border-left: 1px solid #dcdcdc;
    padding-left: 1.5rem;
    box-sizing: border-box;
}

.month {
    font-family: 'Jost', sans-serif;
    font-size: clamp(0.9rem, 1.2vw, 1rem);
    font-weight: 700;
    color: var(--main-green);
    display: block;
    margin-bottom: 0.5rem;
}

.history-item p {
    font-size: clamp(0.85rem, 1.3vw, 0.95rem);
    color: #333;
    line-height: 1.8;
}

/* ======================================
   4. SLOGAN (company-slogan 기준 동일)
====================================== */
.bottom-slogan {
    text-align: center;
    background: #f8f8f8;
    padding: 6rem 1rem;
}

.bottom-slogan h4 {
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 500;
    color: #333;
    margin-bottom: 0.6rem;
}

.bottom-slogan .en {
    font-family: 'Jost', sans-serif;
    font-size: clamp(0.8rem, 1.2vw, 0.9rem);
    color: var(--main-green);
    letter-spacing: 0.05em;
    font-weight: 500;
}

/* ======================================
   RESPONSIVE
====================================== */

/* --- 1200px 이하 --- */
@media (max-width: 1200px) {

    .history-year {
        gap: 1.8rem;
        margin-bottom: 3.5rem;
    }

    .year-title {
        font-size: clamp(1.8rem, 3.6vw, 2.4rem);
    }

    .history-item {
        flex: 0 0 calc(50% - 1.5rem);
    }

    .history-content {
        padding: 4rem 1rem;
    }
}

/* --- 900px 이하 --- */
@media (max-width: 900px) {


    .top-title {
        font-size: 1.3rem;
    }

    .main-title {
        font-size: 1.1rem;
    }

    .history-nav {
        margin: 2.5rem 0 1.5rem;
    }

    .year-title {
        font-size: 2rem;
    }

    .history-content {
        padding: 3.5rem 1rem;
    }

    .history-year {
        margin-bottom: 3rem;
    }
}

/* --- 800px 이하 : 모바일 전환 --- */
@media (max-width: 800px) {


    .history-content {
        padding: 0 1rem 2.5rem;
    }

    .history-year {
        flex-direction: column;
        margin-bottom: 2rem;
    }

    .year-title {
        text-align: left;
        font-size: clamp(1.5rem, 4vw, 1.8rem);
        margin-bottom: 0.4rem;
        line-height: 1.3;
        cursor: pointer;
        display: flex;
        align-items: center;
    }

    .year-detail {
        display: none;
        opacity: 0;
        max-height: 0;
        overflow: hidden;
        transition: all 0.3s ease;
    }

    .year-detail.open {
        display: block;
        opacity: 1;
        max-height: 600px;
        margin-top: 0.4rem;
    }

    .history-item {
        flex: 0 0 100%;
        border-left: none;
        padding-left: 0;
        margin-bottom: 0.6rem;
    }

    .month {
        font-size: 0.85rem;
        margin-bottom: 0.2rem;
    }

    .history-item p {
        font-size: 0.85rem;
        line-height: 1.6;
        margin-bottom: 0.8rem;
    }

    .bottom-slogan {
        padding: 3rem 1rem 1.5rem;
    }
}

/* --- 600px 이하 --- */
@media (max-width: 600px) {
    .history-header {
        padding: 2rem 1rem 1rem;
    }

    .top-title {
        font-size: 1.2rem;
    }

    .main-title {
        font-size: 1rem;
    }

    .history-year {
        margin-bottom: 1.8rem;
    }

    .year-title {
        font-size: 1.5rem;
        margin-bottom: 0.3rem;
    }

    .history-item p {
        font-size: 0.8rem;
        line-height: 1.5;
    }

    .bottom-slogan {
        padding: 2.5rem 1rem 1rem;
    }
}

/* --- 400px 이하 --- */
@media (max-width: 400px) {
    .top-logo img {
        width: 55px;
    }

    .top-title {
        font-size: 1.1rem;
    }

    .main-title {
        font-size: 0.95rem;
    }

    .year-title {
        font-size: 1.4rem;
    }

    .history-item p {
        font-size: 0.78rem;
        line-height: 1.5;
    }

    .bottom-slogan {
        padding: 2rem 0.8rem 1rem;
    }

    .bottom-slogan h4 {
        font-size: 0.95rem;
    }

    .bottom-slogan .en {
        font-size: 0.8rem;
    }
}