/*
(주)파이브센스_FIVESENSES.Corp.
파이브프로_FIVEPro_웹솔루션.
본 라이브러리(소스코드 및 디자인 포함)는 (주)파이브센스의 자산이며, 저작권법 및 부정경쟁방지법에 의해 보호됩니다.
무단 사용, 외부 유출, 복제, 배포, 변형을 금지합니다.
위반 시 민·형사상 법적 책임 및 손해배상 청구 대상이 됩니다.
작성일: 2025-03-18 | 저작권자: (주)파이브센스(520-86-01244) | All Rights Reserved.
*/

.main_b3_3 {
    position: relative;
    overflow: hidden;
    background-color: #f5f2ef;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
}

.main_b3_3 .container_fix {
    position: relative;
}

/* 상단 타이틀 */
.main_b3_3 .b3_3_head {
    position: absolute;
    top: 60px;
    left: 15px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
}
.main_b3_3 .b3_3_head .badge_text {
    display: inline-block;
    width: auto;
    padding: 10px 16px;
    font-family: 'Nanum Myeongjo', serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    color: #fff;
    background-color: #d5c3ae;
    border-radius: 100px;
}
.main_b3_3 .b3_3_title_group {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.main_b3_3 .b3_3_title_group h2 {
    font-size: 56px;
    font-weight: 500;
    line-height: 1.3;
    color: #2a211d;
    word-break: keep-all;
}
.main_b3_3 .b3_3_title_group h2 .point {
    color: #a68258;
}
.main_b3_3 .b3_3_title_group .desc {
    display: block;
    font-size: 24px;
    font-weight: 400;
    line-height: 1.5;
    color: #5f5148;
    word-break: keep-all;
}

/* 카드 2열 — 홀수=오른쪽 / 짝수=왼쪽
   --b3_3-stagger : 왼쪽 열이 아래로 내려가는 양. 카드 1장 + 열 간격의 절반값이라
   오-왼-오-왼 지그재그가 됩니다. 카드 높이를 크게 바꾸면 이 값만 조정하세요. */
.main_b3_3 .b3_3_cols {
    --b3_3-stagger: 415px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 90px;
}
.main_b3_3 .b3_3_col {
    display: flex;
    flex: 1 1 0;
    min-width: 0;
    flex-direction: column;
    gap: 190px;
}
.main_b3_3 .b3_3_col--left {
    padding-top: var(--b3_3-stagger);
}

/* 카드 1벌 */
.main_b3_3 .b3_3_item {
    display: flex;
    align-items: flex-start;
    gap: 27px;
}
.main_b3_3 .b3_3_body {
    display: flex;
    flex: 1 1 0;
    min-width: 0;
    flex-direction: column;
    gap: 28px;
}
.main_b3_3 .b3_3_thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 615 / 488;
    border-radius: 24px;
    overflow: hidden;
    background-color: rgba(221, 221, 221, 0.87);
}
.main_b3_3 .b3_3_thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}
.main_b3_3 .b3_3_thumb.on img {
    transform: scale(1.1);
}
.main_b3_3 .b3_3_txt {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding-left: 16px;
}
.main_b3_3 .b3_3_txt .title {
    display: block;
    font-family: 'Nanum Myeongjo', serif;
    font-size: 36px;
    font-weight: 700;
    line-height: 1.3;
    color: #2a211d;
    word-break: keep-all;
}
.main_b3_3 .b3_3_txt .desc {
    display: block;
    font-size: 24px;
    font-weight: 400;
    line-height: 1.5;
    color: #5f5148;
    word-break: keep-all;
}

/* 세로 라벨 (service1~3) */
.main_b3_3 .b3_3_label {
    flex: 0 0 13px;
    width: 13px;
    padding-top: 16px;
}
.main_b3_3 .b3_3_label span {
    display: block;
    writing-mode: vertical-rl;
    text-orientation: sideways;
    font-size: 18px;
    font-weight: 600;
    line-height: 13px;
    color: #a68258;
    white-space: nowrap;
}

/* 하단 텍스트 롤링 배너 */
.main_b3_3 .b3_3_rolling {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 130px;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}
.main_b3_3 .b3_3_rolling_track {
    display: flex;
    width: max-content;
    will-change: transform;
    animation: b3_3_rolling_move var(--b3_3-duration, 30s) linear infinite;
}
.main_b3_3 .b3_3_rolling_text {
    display: block;
    flex: none;
    font-family: 'Marcellus', 'Nanum Myeongjo', serif;
    font-size: 143.59px;
    font-weight: 400;
    line-height: 1.15;
    color: #e9e6e0;
    white-space: pre;
}
@keyframes b3_3_rolling_move {
    from { transform: translateX(0); }
    to   { transform: translateX(var(--b3_3-shift, -50%)); }
}
/* 위젯 편집 중에는 롤링 정지 */
.widget-wrap.on .main_b3_3 .b3_3_rolling_track {
    animation-play-state: paused;
}
@media (prefers-reduced-motion: reduce) {
    .main_b3_3 .b3_3_rolling_track {
        animation: none;
    }
}

/* 반응형 */
@media (max-width: 991px) {
    .main_b3_3 .b3_3_head {
        position: static;
        align-items: center;
        gap: 34px;
        margin-bottom: 48px;
    }
    .main_b3_3 .b3_3_head .badge_text {
        padding: 8px 16px;
        font-size: 15px;
    }
    .main_b3_3 .b3_3_title_group {
        align-items: center;
        gap: 20px;
    }
    .main_b3_3 .b3_3_title_group h2 {
        font-size: 30px;
        line-height: 1.2;
    }
    .main_b3_3 .b3_3_title_group .desc {
        font-size: 18px;
    }

    /* 모바일은 1열. 열 래퍼를 투명하게 만들고 등록 순서(--idx)대로 다시 세운다 */
    .main_b3_3 .b3_3_cols {
        flex-direction: column;
        align-items: stretch;
        gap: 48px;
    }
    .main_b3_3 .b3_3_col {
        display: contents;
    }
    .main_b3_3 .b3_3_col--left {
        padding-top: 0;
    }
    .main_b3_3 .b3_3_item {
        order: var(--idx, 1);
        gap: 14px;
    }
    .main_b3_3 .b3_3_body {
        gap: 20px;
    }
    .main_b3_3 .b3_3_thumb {
        border-radius: 16px;
    }
    .main_b3_3 .b3_3_txt {
        gap: 10px;
        padding-left: 10px;
    }
    .main_b3_3 .b3_3_txt .title {
        font-size: 26px;
    }
    .main_b3_3 .b3_3_txt .desc {
        font-size: 17px;
    }

    .main_b3_3 .b3_3_label {
        flex: 0 0 10px;
        width: 10px;
        padding-top: 10px;
    }
    .main_b3_3 .b3_3_label span {
        font-size: 14px;
        line-height: 10px;
    }

    .main_b3_3 .b3_3_rolling {
        height: 65px;
    }
    .main_b3_3 .b3_3_rolling_text {
        font-size: 66px;
    }
}