/* History 페이지 스타일 */

/* 상단 타임라인 메뉴 */
#historyTimelineWrap {
    position: sticky; 
    top: 0; 
    z-index: 2; 
    border-top: 1px solid #ddd; 
    border-bottom: 1px solid #ddd; 
    background: #fff;
}

#historyTimelineWrap > .scroll_area {
    max-width: 1400px; 
    margin: 0 auto;
}

#historyTimelineWrap ul {
    display: flex;
}

#historyTimelineWrap li {
    flex: 1;
}

#historyTimelineWrap a {
    display: block; 
    padding: clamp(10px, calc(28 / var(--inner) * 100vw), 28px) 15px; 
    text-align: center; 
    font-size: var(--font-size-22); 
    line-height: 1.4545em; 
    font-weight: 600;
}

#historyTimelineWrap .active a {
    color: var(--primary-color);
}

/* 타임라인 진행률 표시 */
.history-timeline {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: var(--primary-color);
    width: 0%;
    transition: width 0.3s ease;
}

/* 세로 타임라인 라인 */
.history-line {
    position: absolute; 
    left: 50%; 
    top: 22px; 
    width: 2px; 
    bottom: 0; 
    background: #ddd; 
    margin-left: -1px; 
    z-index: 10;
}

.history-line span {
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 0%; 
    background: var(--primary-color); 
    transition: height 0.3s ease;
}

/* 메인 컨테이너 */
.history_panel .container {
    position: relative;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.history_panel .subpage_wrapper {
    position: relative;
    z-index: 1;
}

/* 히스토리 래퍼 */
.history_panel .about_wrapper .history_wrapper {
    padding-top: 80px;
    --history-transition-duration: 0.3s;
}

.history_panel .about_wrapper .history_wrapper .inner {
    display: flex;
    position: relative;
    min-height: 100vh;
}

/* 연도 스와이퍼 */
.history_panel .about_wrapper .history_wrapper .yearSwiper {
    position: sticky;
    left: 0;
    top: 80px;
    flex: 1 1 50%;
    max-width: 700px;
    height: 305px;
    margin-top: -100px;
}

.history_panel .about_wrapper .history_wrapper .yearSwiper .year_left {
    font-weight: 700;
    font-size: 120px;
    color: var(--primary-color);
    font-style: normal;
    line-height: 130px;
    letter-spacing: -6px;
    position: absolute;
    top: 110px;
    left: 0;
    width: 170px;
    text-align: right;
    font-family: "IBM Plex Sans KR", sans-serif;
}

.history_panel .about_wrapper .history_wrapper .yearSwiper .swiper {
    overflow: visible;
    height: 100%;
}

.history_panel .about_wrapper .history_wrapper .yearSwiper .swiper-wrapper {
    height: 100%;
}

.history_panel .about_wrapper .history_wrapper .yearSwiper .swiper-slide {
    padding: 110px 55px 110px 0;
    height: auto;
}

.history_panel .about_wrapper .history_wrapper .yearSwiper .swiper-slide > p {
    font-weight: 700;
    font-size: 120px;
    color: #f0f0f0;
    font-style: normal;
    line-height: 130px;
    letter-spacing: -6px;
    max-width: 405px;
    padding-left: 170px;
    font-family: "IBM Plex Sans KR", sans-serif;
}

.history_panel .about_wrapper .history_wrapper .yearSwiper .swiper-slide.on > p,
.history_panel .about_wrapper .history_wrapper .yearSwiper .swiper-slide-active > p {
    color: var(--primary-color);
}

/* 연도 정보 영역 */
.history_panel .about_wrapper .history_wrapper .year_info {
    flex: 1 1 50%;
    padding-bottom: 65px;
    padding-left: var(--history-gap);
}

/* 아이템 번들 */
.history_panel .about_wrapper .history_wrapper .year_info .item_bundle .item {
    position: relative;
    margin-top: 10px;
    background-color: #fff;
    border-radius: 12px;
    padding: 0;
    transition-property: background-color;
    transition-duration: var(--history-transition-duration);
    margin-bottom: var(--space-110);
    font-size: var(--font-size-20);
    color: var(--dark-color);
}

[lang="en"] .history_panel .about_wrapper .history_wrapper .year_info .item_bundle .item {font-size: var(--font-size-18);}

/* 월 표시 */
.history_panel .about_wrapper .history_wrapper .year_info .item_bundle .month {
    display: inline-block;
    width: 100px;
    vertical-align: top;
    text-align: left;
    position: relative;
    font-size: var(--font-size-28);
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: var(--space-40);
}

.history_panel .about_wrapper .history_wrapper .year_info .item_bundle .month::after {
    content: "";
    width: 14px;
    height: 14px;
    border-radius: 10px;
    background: #dcdcdc;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    left: calc(var(--history-gap) * -1);
    z-index: 10;
    transition: .2s;
}

.history_panel .about_wrapper .history_wrapper .year_info .item_bundle .item.active .month::after {
    background: var(--primary-color);
}

.history_panel .about_wrapper .history_wrapper .year_info .item_bundle .month::before {
    content: '';
    width: 0;
    height: 0;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    left: calc(var(--history-gap) * -1);
    z-index: 10;
    background: var(--primary-color);
    border: 6px solid rgba(255,255,255,.6);
    border-radius: 100%;
    opacity: .4;
    transition: .3s;
}

.history_panel .about_wrapper .history_wrapper .year_info .item_bundle .item.active .month::before {
    width: 38px;
    height: 38px;
}

.history_panel .about_wrapper .history_wrapper .year_info .item_bundle .month span {
    font-weight: 500;
    font-size: 22px;
    color: #e1e2e5;
    font-style: normal;
    line-height: 60px;
    opacity: 1;
    font-weight: bold;
    transition-property: color,opacity;
    transition-duration: var(--history-transition-duration);
}

.history_panel .about_wrapper .history_wrapper .year_info .item_bundle .month span.num.on {
    color: #333;
}

/* 상세 내용 */
.year_tit {display: none;}
.history_panel .about_wrapper .history_wrapper .year_info .item_bundle .item > ul > li:not(:last-child) {
    margin-bottom: var(--space-25);
}

.history_panel .about_wrapper .history_wrapper .year_info .item_bundle .detail_box {
    position: relative;
    display: inline-block;
    width: calc(100% - 105px);
    padding: 18px 0 15px 0;
    vertical-align: top;
    z-index: 3;
}

.history_panel .about_wrapper .history_wrapper .year_info .item_bundle .detail {
    position: relative;
    margin-top: 20px;
    background: #fff;
}

.history_panel .about_wrapper .history_wrapper .year_info .item_bundle .detail:first-of-type {
    margin-top: 0;
}

.history_panel .about_wrapper .history_wrapper .year_info .item_bundle .detail::before {
    content: "";
    width: 2px;
    height: 100vh;
    background: #dcdcdc;
    position: absolute;
    top: 18px;
    left: -98px;
    z-index: 10;
}

.history_panel .about_wrapper .history_wrapper .year_info .item_bundle .detail span {
    font-size: 20px;
    color: #666;
    font-style: normal;
    display: block;
    width: 100%;
    transition-property: color;
    transition-duration: var(--history-transition-duration);
}

.history_panel .about_wrapper .history_wrapper .year_info .item_bundle .detail span b {
    color: #222;
}

/* 이미지 */
.history_panel .about_wrapper .history_wrapper .year_info .item_bundle .img {
    position: absolute;
    right: -15px;
    top: 50%;
    z-index: 1;
    max-width: 402px;
    width: 55%;
    opacity: 0;
    transform: translateY(-50%);
    transform-origin: right top;
    transition-property: opacity;
    transition-duration: var(--history-transition-duration);
}

.history_panel .about_wrapper .history_wrapper .year_info .item_bundle .img_box {
    margin-top: 30px;
    padding-left: 100px;
    position: relative;
}

.history_panel .about_wrapper .history_wrapper .year_info .item_bundle .img_box img {
    width: 100%;
    border-radius: 10px;
}

.history_panel .about_wrapper .history_wrapper .year_info .item_bundle .img_box + .item {
    margin-top: 30px;
}

/* 활성화 상태 */
.history_panel .about_wrapper .history_wrapper .year_info .item_bundle.on .month span {
    opacity: 1;
}

.history_panel .about_wrapper .history_wrapper .year_info .item_bundle.on .detail span {
    color: #666;
}

.history_panel .about_wrapper .history_wrapper .year_info .item_bundle.on .img.on {
    opacity: 1;
}

/* 하단 여백 */
.history_panel .item_bundle {
    padding-bottom: 150px;
}

/* 모바일 버튼 */
.history_mo_btn {
    display: none;
}

/* 애니메이션 */
@keyframes slideUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

