@charset "UTF-8";

:root{
  /* 데스크톱 기본: (vw - 1520)/2, 단 최소 110px 보장 */
    --page-pad: clamp(110px, calc((100vw - 1520px) / 2), 2000px);
}

* {
    scroll-behavior: auto;
}

body {
    background-color: #F5F5F5;
}

.wrap {
    width: 100%;
    overflow-x: hidden;
}

section {
    /*     max-width: 1920px;
    width: 1920px; */
    padding: 150px 0;
}

/* .inner {
    width: 1520px;
    max-width: 100%;
} */

/* .main_cach */

.main_cach {
    box-sizing: content-box;
    width: 100%;
    height: 50vh;
    padding: 500px 0 250px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.main_cach .swiper {
    width: 100%;
}

.main_cach .img_roll div {
    width: 344px;
    opacity: .6;
    margin-right: 64px;
}

.main_cach .swiper-wrapper {
    display: flex;
    animation: marquee 24s linear infinite;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }

    /* 슬라이드 길이 절반만큼 이동 */
}

.main_cach .img_roll div img {
    width: 344px;
    height: 344px;
    border-radius: 50%;
    object-fit: cover;
    opacity: .3;
}

.main_cach .txt {
    position: absolute;
    top: 60%;
    left: 50%;
    transform: translate(-50%, 30%);
    /* 완전 중앙 */
    display: flex;
    flex-direction: column;
    /* 세로 배치 */
    align-items: center;
    /* 가로 중앙 정렬 */
    justify-content: center;
    /* 세로 내부 정렬 */
    text-align: center;
    gap: 10px;
    /* 요소 간 간격 */
    z-index: 3;
    width: 100%;
    max-width: 800px;
    color: var(--Wcolor);
}

.main_cach .txt p span{
    font-size: 70px;
    font-weight: 700;
    line-height: 130%;
    background: var(--subRed2-900);
    padding: 0 10px;
    display: inline-block;
}

.main_cach .txt em {
    font-size: 30px;
    font-weight: 400;
    text-align: center;
    margin-top: 10px;
    line-height: 130%;
    color: var(--Bcolor);

}

/* .tit */

h3.tit {
    font-size: 56px;
    font-weight: 700;
    width: 100%;
    text-align: center;
    display: flex;
    justify-content: center;
    margin-bottom: 50px;
}

/* .info-g */

.info-g .inner {
    width: 1520px;
    max-width: 100%;
}

/* .icon_info */

.info-g .icon_info ul {
    display: flex;
    justify-content: space-between;
    padding: 0;
    width: 100%;
    height: 360px;
    flex: 1;
    margin-bottom: 100px;

}

.info-g .icon_info ul li:first-child img {
    padding: 8px 0;
}

.info-g .icon_info ul li:nth-child(2) img {
    padding: 22px 0;
}

.info-g .icon_info ul li:nth-child(4) img {
    padding: 12px 0;
}

.info-g .icon_info ul li.box_w {
    background: var(--WF);
    width: 100%;
    display: inline-block;
    justify-items: center;
    align-content: center;
    flex-direction: column;
    border-radius: 120px 0 0 0;
}


.info-g .icon_info ul li.box_w img {
    display: flex;
    justify-items: center;
    align-content: center;
}

.info-g .icon_info ul li.box_w .txt_w {
    text-align: center;
}

.info-g .icon_info ul li.box_w .txt_w p {
    font-size: 56px;
    font-weight: 700;
    color: var(--subRed2-900);
    margin-bottom: 4px;
}

.info-g .icon_info ul li.box_w .txt_w em {
    font-size: 26px;
    color: var(--Bcolor-700);
}

.info-g .icon_info ul li.box_b {
    background: var(--MainColor-400);
    width: 100%;
    display: inline-block;
    justify-items: center;
    align-content: center;
    flex-direction: column;
    border-radius: 0 0 0 120px;
}

.info-g .icon_info ul li.box_b img {
    display: flex;
    justify-items: center;
    align-content: center;
}

.info-g .icon_info ul li.box_b .txt_b {
    text-align: center;
}

.info-g .icon_info ul li.box_b .txt_b p {
    font-size: 56px;
    font-weight: 700;
    color: var(--MainColor-1400);
    margin-bottom: 4px;
}


.info-g .icon_info ul li.box_b .txt_b em {
    font-size: 26px;
    color: var(--Bcolor-700);
}

.info-g .icon_info ul li:nth-child(3) .icon_knowhow {
    background-image: url(../assets/icon_knowhow.png);
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    object-fit: cover;
    display: flex;
    width: 100px;
    height: 120px;
}

.info-g .icon_info ul li:nth-child(4) .icon-sales {
    background-image: url(../assets/icon_salesmarket.png);
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    object-fit: cover;
    display: flex;
    width: 100px;
    height: 100px;
}

/* .txt_info */
.info-g .txt_info .sub_tit {
    font-size: 40px;
    text-align: center;
    font-weight: 700;
    color: #6D110A;
    margin-bottom: 50px;
}

.info-g .txt_info .body_text ul {
    display: flex;
    justify-content: space-between;
    flex: 1;
    gap: 30px;
}

.info-g .txt_info .body_text ul li {
    font-size: 20px;
    line-height: 130%;
    width: 480px;
}

/* .ci */

.ci {
    background: #E5E5E5;
    padding: 0;
    padding-bottom: 150px;
}


.ci .inner {
    margin-top: 150px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.ci .bar {
    position: relative;
    width: 100%;
    height: 100px;
    background-color: var(--Wcolor);
    border-radius: 0 0 120px 120px;
}

.ci .cont {
    display: flex;
    flex: 1;
    width: 100%;
    justify-content: space-between;
    gap: 40px;
}

.ci .cont .logo {
    padding: 0 40px 0 40px;
    background: var(--WF);
    border-radius: 32px;
    width: 738px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 344px;
}

.ci .cont .logo img {
    width: 354px;
    margin-bottom: 20px;
}

.ci .cont .symbol {
    background: var(--WF);
    border-radius: 32px;
    width: 738px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 344px;
}

.ci .cont .symbol img {
    width: 354px;
    margin-bottom: 20px;
    margin-top: 24px;
}

.ci .cont .symbol em:last-child {
    padding-top: 20px;
}

.ci .cont .symbol em b {
    font-weight: 700;
}

.ci button {
    width: 334px;
    height: 82px;
    background: var(--subBlue2);
    border: 0;
    color: var(--WF);
    font-weight: 700;
    font-size: 20px;
    border-radius: 12px;
    cursor: pointer;
    margin-top: 70px;
    transition: .5s;
}

.ci button i {
    width: 20px;
    margin-left: 14px;
}

.ci button:hover {
    background: var(--subBlue1);
}

/* .history */

/* 0) 기준선 y 위치는 컨테이너에서 전역으로 관리 */
.history .cont_hori_swipe {
    --tline: 110px;
    /* 필요 시 이 값만 조절 */
    position: relative;
    overflow: hidden;
    margin-bottom: 100px;
}

/* 1) 전체 가로 길이만큼 1줄을 '한 번만' 그림 */
.history .cont_hori_swipe .swiper-wrapper {
    position: relative;
    /* ::before 기준 */
    display: inline-flex;
    /* 콘텐츠 길이만큼 */
    width: max-content;
    /* 중요: 뷰포트 폭으로 수축 금지 */
}

.history .cont_hori_swipe .swiper-wrapper::before {
    content: "";
    position: absolute;
    /* 폭을 확실히 주기: left + right 조합 (width 고정값 사용 금지) */
    left: 0;
    /* 시작점 200px */
    width: calc(100% + 500px);
    padding-right: 500px;
    right: -500px;
    /* ← 핵심 */
    top: var(--tline);
    height: 3px;
    background: #BD4033;
    z-index: 0;
    pointer-events: none;
}

/* 2) 마지막 그룹 오른쪽으로 '화면 끝까지' 꼬리 라인 연장 */
.history .cont_hori_swipe ul li.y_group:last-child::after {
    content: "";
    position: absolute;
    top: var(--tline);
    /* 타임라인 높이 그대로 */
    left: 100%;
    right: 500px;
    /* 마지막 그룹의 오른쪽 끝에서 시작 */
    height: 3px;
    width: 100vw;
    /* 뷰포트 끝까지 충분히 연장 */
    background: #BD4033;
    z-index: 1;
    pointer-events: none;
}

/* 그룹/아이템 내부에서 긋던 선은 비활성 (중복 제거) */
.history .cont_hori_swipe ul li.y_group>ul::before,
.history .cont_hori_swipe ul li.y_group>ul>li::after {
    display: none;
}


.history .cont_hori_swipe ul {
    position: absolute;
    /* left: 110px; */
    display: flex;
    justify-content: flex-start;
    /* ← 중요 */
    flex: 1;
}

.history .cont_hori_swipe ul li.y_group {
    width: max-content;
    margin-right: 90px;
    position: relative;
}

.history .cont_hori_swipe ul li.y_group:first-child {
    margin-left: 0;
    /* ← 시작점 오프셋 */
}

.history .cont_hori_swipe ul li.y_group:last-child {
    margin-right: 0;
    /* ← 오른쪽 트레일링 여백 제거 */
}


.history .cont_hori_swipe ul li.y_group>ul {
    display: flex;
    gap: 90px;
    position: relative;
    /* 타임라인 높이(픽셀) — 필요시 이 값만 조절하면 라인/점/콘텐츠가 같이 내려감 */
    --tline: 110px;
}


.history .cont_hori_swipe ul li.y_group>ul::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: var(--tline);
    height: 3px;
    background: #BD4033;
    z-index: 1;
}


/* 4) 본문은 선 아래로 내려오게 여백 유지 */
.history .cont_hori_swipe ul>li.y_group>ul>li {
    width: 354px;
    position: relative;
    padding-top: calc(var(--tline) + 24px);
}

/* 4) svg를 기준으로 3px 라인을 li 내부에서 오른쪽으로 그리기 */
.history .cont_hori_swipe ul li.y_group>ul>li::after {
    content: "";
    position: absolute;
    top: 54px;
    /* svg의 vertical center값에 맞춰 조절 */
    left: 50%;
    transform: translateX(0);
    width: calc(100% + 90px);
    /* gap만큼 라인 연장 */
    height: 3px;
    background: #BD4033;
    z-index: 1;
}

/* 마지막에 남아있는 이전 ::after 라인 제거(사용 안 함) */
.history .cont_hori_swipe ul li.y_group>ul>li::after {
    display: none;
}



/* 3) 원형 점(svg)과 연도는 선 위에 보이도록 유지 */
.history .cont_hori_swipe ul li.y_group>ul>li svg {
    position: absolute;
    left: 10px;
    top: calc(var(--tline) - 11.5px);
    transform: translateX(-50%);
    z-index: 2;
    /* 선 위 */
    display: block;
}

/* 타이포 살짝 정리 (필요시 유지/조절) */
.history .cont_hori_swipe ul li h5.years {
    position: absolute;
    left: 58px;
    top: calc(var(--tline) - 11.5px);
    transform: translate(-50%, calc(-100% - 10px));
    margin: 0;
    z-index: 3;
    /* svg보다도 위 */
    font-size: 56px;
    font-weight: 700;
    color: var(--MainColor-400);
}


.history .cont_hori_swipe ul li p {
    font-size: 30px;
    font-weight: 700;
    color: var(--subRed2-900);
    margin: 0 0 24px 0;
    /* 라인 아래 간격 살짝 조절 */
}


.history .cont_hori_swipe ul li img {
    width: 354px;
    height: 178px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 12px;
    display: block;
    border: 1px solid var(--Gcolor-300);
}

.history .cont_hori_swipe ul li em {
    font-size: 16px;
    color: var(--Bcolor);
    line-height: 130%;
}

/* Swiper 컨테이너는 overflow 관리를 위해 relative 추천 */
.history .cont_hori_swipe {
    position: relative;
    overflow: hidden;
}

/* swiper_bar ui */
/*  스와이퍼 래퍼는 Swiper가 제어하도록 초기화(덮어쓰기 차단) */
.history .cont_hori_swipe>.swiper-wrapper {
    position: relative !important;
    left: 0 !important;
    display: flex !important;
    /* inline-flex보다 flex가 Swiper 계산에 안전 */
    width: max-content;
    /* 가로 콘텐츠 길이대로 */
}

/* 기존 광범위 규칙이 래퍼에 먹지 않도록 예외 처리 */
.history .cont_hori_swipe ul:not(.swiper-wrapper) {
    position: absolute;
    display: flex;
    justify-content: flex-start;
    flex: 1;
}

/* 외부 스크롤바(섹션 하단 바깥) 스타일 */
.history>.scroll_bar.swiper-scrollbar {
    height: var(--sb-h, 6px);
    /* margin: 12px var(--sb-x, 24px) 0; */
    background: var(--Gcolor-300, #ECECEC);
    border-radius: 0;
    opacity: 1 !important;
    /* Swiper의 hide:true가 있어도 보이도록 */
    position: relative;
    overflow: hidden;
    /* 폭 = 화면폭 - 좌우 패딩*2, 마진 = 좌우 패딩 */
  width: calc(100vw - (var(--page-pad) * 2));
    margin: 12px var(--page-pad) 0;
    /* 필요하다면 상한선(=inner max)도 함께 쓰고 싶다면 아래 한 줄로 대체 가능
     width: min(1520px, calc(100vw - (var(--page-pad) * 2))); */
     z-index: 2;
}

.history>.scroll_bar.swiper-scrollbar .swiper-scrollbar-drag {
    height: 100%;
    min-width: 80px;
    background: var(--Gcolor, #A8A8A8);
    border-radius: 0;
}

.history>.scroll_bar.swiper-scrollbar:hover .swiper-scrollbar-drag,
.history>.scroll_bar.swiper-scrollbar .swiper-scrollbar-drag:active {
    background: var(--subRed2-900, #BD4033);
}


/* 손잡이(드래그 바) */
.history .swiper-scrollbar-drag {
    height: 100%;
    min-width: 80px;
    background: var(--Gcolor, #A8A8A8);
    border-radius: 0;
}


/* 호버/드래그 시 살짝 강조 */
.history .swiper-scrollbar:hover .swiper-scrollbar-drag,
.history .swiper-scrollbar-drag:active {
    background: var(--subRed2-900);
}

/* 컨테이너와 간격 (필요 시) */
.history .scroll_bar.swiper-scrollbar {
    margin: auto;
    /* 위 요소와 간격만 조절 */
}


/* .v_and_m */

.v_and_m {
    background: var(--WF);
}

.v_and_m .cont {
    display: flex;
    flex-direction: column;
    flex: 1; /* ← 원래 의도라면 이렇게 */
    align-content: space-between;
    gap: 40px;
}

.v_and_m .cont article {
    position: relative;
    width: 100%;
    height: 520px;
    border-radius: 32px;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    overflow: hidden;
    color: var(--WF);
    /* transition: .8s; */
    background: linear-gradient(to right, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.1));
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

.v_and_m .cont article:hover {
    background-size: 120%;
}

.v_and_m .cont article::before {
    content: "";
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-image: url("../assets/vision.jpg");
    transition: .8s;
}

.v_and_m .cont article .txt {
    opacity: 0;
    transform: translateY(20px);
}

.v_and_m .cont article.mission::before {
    background-image: url("../assets/mission.png");
}

.v_and_m .cont article:hover::before {
    transform: scale(1.1);
}

.v_and_m .cont article::after {
    position: absolute;
    top: 0px;
    left: 80px;
    width: 140px;
    height: 60px;
    color: var(--WF);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    padding-bottom: 20px;
    border-radius: 0 0 8px 8px;
    background: rgb(57, 65, 153, .7);
    backdrop-filter: blur(10px);
}

.v_and_m .vision::after {
    content: "VISION";
}

.v_and_m .mission::after {
    content: "MISSION";
}

.v_and_m .txt {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.v_and_m .vision .txt {
    left: 80px;
    text-align: left;
}

.v_and_m .mission .txt {
    right: 80px;
    text-align: right;
}

.v_and_m .txt p {
    font-size: 40px;
    font-weight: 700;
    line-height: 130%;
}

.v_and_m .txt em {
    font-size: 16px;
    line-height: 130%;
    opacity: .9;
}