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

.main_B1_9 {
    position: relative;
    overflow: hidden;
    background-color: #f5f2ef;
}

/* 배경 */
.main_B1_9 .bg_container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}
.main_B1_9 .bg_container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
}

.main_B1_9 .container_fix {
    position: relative;
    z-index: 2;
}

/* 상단 타이틀 */
.main_B1_9 .B1_9_head {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
    margin-bottom: 60px;
}
.main_B1_9 .B1_9_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_B1_9 .B1_9_head .head_title {
    font-size: 56px;
    font-weight: 500;
    line-height: 1.3;
    color: #2a211d;
    text-align: center;
}

/* 사례 2단 */
.main_B1_9 .B1_9_list {
    display: flex;
    gap: 160px;
}
.main_B1_9 .B1_9_item {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 60px;
    flex: 1 1 0;
    min-width: 0;
}
/* 두 사례 사이 구분선 — 열 간격(80px)의 정중앙(-40px)에 긋는다.
   음수 마진 대신 가상요소를 써야 두 열의 너비가 똑같이 유지된다 */
.main_B1_9 .B1_9_item + .B1_9_item::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: -80px;
    width: 1px;
    background-color: #e0dbd3;
}

/* 사례 - 텍스트 */
.main_B1_9 .B1_9_text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 45px;
}
.main_B1_9 .B1_9_num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1;
    color: #fff;
    background-color: #a68258;
    border-radius: 100px;
}
.main_B1_9 .B1_9_txt {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
    width: 100%;
}
.main_B1_9 .B1_9_title_box {
    text-align: center;
}
.main_B1_9 .B1_9_title {
    font-size: 36px;
    font-weight: bold;
    line-height: 1.5;
    color: #2a211d;
}
.main_B1_9 .B1_9_result {
    display: block;
    font-size: 36px;
    font-weight: bold;
    line-height: 1.5;
    color: #a68258;
}
.main_B1_9 .B1_9_desc_box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 26px;
    width: 100%;
}
.main_B1_9 .B1_9_meta {
    display: inline-block;
    width: auto;
    padding: 16px 22px;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.5;
    color: #817367;
    text-align: center;
    background-color: #efe9e4;
    border-radius: 48px;
}
.main_B1_9 .B1_9_meta b,
.main_B1_9 .B1_9_meta strong {
    font-weight: 600;
    color: #5f5148;
}
.main_B1_9 .B1_9_desc {
    font-size: 24px;
    font-weight: 400;
    line-height: 1.5;
    color: #5f5148;
    text-align: center;
    word-break: keep-all;
}

/* 사례 - BEFORE / AFTER 영상 */
.main_B1_9 .B1_9_videos {
    display: flex;
    gap: 24px;
}
.main_B1_9 .video_col {
    display: flex;
    flex-direction: column;
    gap: 15px;
    flex: 1 1 0;
    min-width: 0;
}
.main_B1_9 .video_label {
    font-family: 'Nanum Myeongjo', serif;
    font-size: 20px;
    font-weight: 800;
    line-height: 1;
    color: #5f5148;
    text-align: center;
}
.main_B1_9 .video_box {
    position: relative;
    height: 364px;
    border-radius: 8px;
    overflow: hidden;
    background-color: #e0dbd3;
}
.main_B1_9 .video_thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.main_B1_9 .video_box::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.28) 100%);
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.main_B1_9 .video_play {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 2;
    transform: translate(-50%, -50%);
    width: 72px;
    height: 72px;
    padding: 0;
    background: none;
    border: 0;
    cursor: pointer;
    transition: transform 0.3s ease;
}
/* 유튜브 링크가 없는 썸네일의 아이콘은 장식용 */
.main_B1_9 span.video_play {
    cursor: default;
    pointer-events: none;
}
.main_B1_9 .video_play svg {
    display: block;
    width: 100%;
    height: 100%;
}
.main_B1_9 button.video_play:hover {
    transform: translate(-50%, -50%) scale(1.08);
}
.main_B1_9 .video_box iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    z-index: 3;
}
/* 영상 비율대로 키운 iframe 중앙 정렬 — 넘치는 부분은 video_box overflow 로 잘림 */
.main_B1_9 .video_box iframe.video_cover {
    inset: auto;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.main_B1_9 .video_box.playing::after,
.main_B1_9 .video_box.playing .video_play,
.main_B1_9 .video_box.playing .video_thumb {
    display: none;
}

/* 사례 - 목표
   그리드 2열(라벨 / 내용)로 묶어 단기·장기 라벨 너비를 같게 맞춘다 */
.main_B1_9 .B1_9_goals {
    --goal_check: 38px;    /* 체크 아이콘 크기 */
    --goal_indent: 10px;   /* goal_head 왼쪽 여백 (세로선 x좌표가 이 값을 따라간다) */
    --goal_gap: 40px;      /* 단기 행과 장기 행 사이 간격 */
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 16px;
    row-gap: var(--goal_gap);
}
.main_B1_9 .goal_row {
    display: contents;
}
.main_B1_9 .goal_head {
    position: relative;
    display: flex;
    align-items: center;
    gap: 25px;
    padding-left: var(--goal_indent);
}
.main_B1_9 .goal_check {
    position: relative;
    display: block;
    width: var(--goal_check);
    height: var(--goal_check);
    flex-shrink: 0;
}
.main_B1_9 .goal_check svg {
    display: block;
    width: 100%;
    height: 100%;
}
.main_B1_9 .goal_short .goal_check {
    color: #a68258;
}
.main_B1_9 .goal_long .goal_check {
    color: #142743;
}
/* 두 체크 아이콘을 잇는 세로선.
   goal_head 는 행 높이만큼 늘어나고 체크는 그 안에서 세로 가운데 정렬되므로,
   체크의 위/아래 끝은 머리 높이의 50% ± 체크 절반 지점이다.
   윗 행은 '체크 아래 → 행 끝 + 행 간격', 아랫 행은 '행 시작 → 체크 위' 를 그려
   두 조각이 이어지게 한다. 두 행의 높이가 서로 달라도 정확히 맞는다. */
.main_B1_9 .goal_row:not(:last-child) .goal_head::after,
.main_B1_9 .goal_row:not(:first-child) .goal_head::before {
    content: '';
    position: absolute;
    left: calc(var(--goal_indent) + var(--goal_check) / 2);
    width: 2px;
    transform: translateX(-50%);
    background-color: #a68258;
}
.main_B1_9 .goal_row:not(:last-child) .goal_head::after {
    top: calc(50% + var(--goal_check) / 2);
    bottom: calc(var(--goal_gap) * -1);
}
.main_B1_9 .goal_row:not(:first-child) .goal_head::before {
    top: 0;
    bottom: calc(50% + var(--goal_check) / 2);
}
.main_B1_9 .goal_label {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    justify-content: center;
    padding: 16px 23px;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.5;
    color: #fff;
    text-align: center;
    border-radius: 48px;
    white-space: nowrap;
}
.main_B1_9 .goal_short .goal_label {
    background-color: #a68258;
}
.main_B1_9 .goal_long .goal_label {
    background-color: #142743;
}
.main_B1_9 .goal_body {
    display: flex;
    align-items: center;
    min-width: 0;
    padding: 18px 24px;
    background-color: #efe9e4;
    border-radius: 12px;
    align-self: stretch;
}
/* 테마에 li { list-style: none } 리셋이 있으면 ul 에만 disc 를 줘도
   li 쪽 직접 선언이 상속을 이겨 불릿이 사라진다.
   그래서 마커 대신 가상요소로 직접 그린다 */
.main_B1_9 .goal_body ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}
.main_B1_9 .goal_body li {
    position: relative;
    padding-left: 22px;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.5;
    color: #5f5148;
    word-break: keep-all;
}
.main_B1_9 .goal_body li::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 0.75em;              /* line-height 1.5 의 절반 = 첫 줄 가운데 */
    width: 5px;
    height: 5px;
    margin-top: -2.5px;
    border-radius: 50%;
    background-color: currentColor;
}

/* 반응형 */
@media (max-width: 991px) {
    .main_B1_9 .B1_9_head {
        gap: 34px;
        margin-bottom: 48px;
    }
    .main_B1_9 .B1_9_head .badge_text {
        padding: 8px 16px;
        font-size: 15px;
    }
    .main_B1_9 .B1_9_head .head_title {
        font-size: 30px;
        line-height: 1.2;
    }

    .main_B1_9 .B1_9_list {
        flex-direction: column;
        gap: 105px;
    }
    .main_B1_9 .B1_9_item {
        gap: 40px;
    }
    /* 세로로 쌓이므로 구분선도 행 간격(50px) 정중앙에 가로로 긋는다 */
    .main_B1_9 .B1_9_item + .B1_9_item::before {
        top: -53px;
        bottom: auto;
        left: 0;
        right: 0;
        width: auto;
        height: 1px;
    }

    .main_B1_9 .B1_9_text {
        gap: 27px;
    }
    .main_B1_9 .B1_9_num {
        width: 32px;
        height: 32px;
        font-size: 13px;
    }
    .main_B1_9 .B1_9_txt {
        gap: 20px;
    }
    .main_B1_9 .B1_9_title,
    .main_B1_9 .B1_9_result {
        font-size: 25px;
    }
    .main_B1_9 .B1_9_desc_box {
        gap: 25px;
    }
    .main_B1_9 .B1_9_meta {
        padding: 12px 18px;
        font-size: 15px;
    }
    .main_B1_9 .B1_9_desc {
        font-size: 17px;
    }

    .main_B1_9 .B1_9_videos {
        flex-direction: column;
        gap: 25px;
    }
    .main_B1_9 .video_col {
        gap: 10px;
    }
    .main_B1_9 .video_label {
        font-size: 16px;
    }
    .main_B1_9 .video_box {
        height: 0;
        padding-bottom: 121%;
    }
    .main_B1_9 .video_thumb {
        position: absolute;
        inset: 0;
    }
    .main_B1_9 .video_play {
        width: 75px;
        height: 75px;
    }

    /* 모바일 : 라벨 / 항목박스가 위아래로 쌓이고, 왼쪽의 체크 열(56px) 만큼
       둘 다 안쪽에서 시작한다. 세로선은 그 열의 가운데를 지난다. */
    .main_B1_9 .B1_9_goals {
        --goal_check: 31px;   /* 체크 아이콘 크기 */
        --goal_col: 60px;     /* 체크가 차지하는 열 너비 — 라벨/항목박스가 이만큼 들어온다 */
        --goal_gap: 28px;     /* 단기 행 ↔ 장기 행 간격 */
        --goal_inner: 12px;   /* 라벨 ↔ 항목박스 간격 */
        display: block;
    }
    .main_B1_9 .goal_row {
        position: relative;
        display: flex;
        flex-direction: column;
        gap: var(--goal_inner);
    }
    .main_B1_9 .goal_row + .goal_row {
        margin-top: var(--goal_gap);
    }
    .main_B1_9 .goal_head {
        gap: 0;
        padding-left: 0;
        align-items: center;
    }
    /* 아이콘은 56px 열의 한가운데에 놓는다 (좌우 여백으로 열 너비를 만든다) */
    .main_B1_9 .goal_check {
        margin: 0 calc((var(--goal_col) - var(--goal_check)) / 2);
    }
    .main_B1_9 .goal_label {
        flex: 0 1 auto;
        width: auto;
        padding: 8px 18px;
        font-size: 19px;
    }
    /* 도트 항목박스를 라벨과 같은 선에서 시작하도록 안쪽으로 들인다 */
    .main_B1_9 .goal_body {
        position: relative;
        width: auto;
        margin-left: var(--goal_col);
        padding: 25px 30px;
    }

    /* 체크 사이 세로선 — 모바일은 라벨/항목박스가 쌓이므로 세 조각으로 나눠 잇는다.
       ① 윗 체크 아래 → 항목박스 위   ② 항목박스 왼쪽 → 다음 행 시작
       ③ 아랫 행 시작 → 아랫 체크 위
       모두 각자의 박스를 기준으로 하므로 글이 늘거나 라벨이 줄바꿈돼도 어긋나지 않는다 */
    .main_B1_9 .goal_row:not(:last-child) .goal_head::after,
    .main_B1_9 .goal_row:not(:last-child) .goal_body::before,
    .main_B1_9 .goal_row:not(:first-child) .goal_head::before {
        content: '';
        display: block;
        position: absolute;
        width: 2px;
        transform: translateX(-50%);
        background-color: #a68258;
    }
    .main_B1_9 .goal_row:not(:last-child) .goal_head::after,
    .main_B1_9 .goal_row:not(:first-child) .goal_head::before {
        left: calc(var(--goal_col) / 2);
    }
    .main_B1_9 .goal_row:not(:last-child) .goal_head::after {
        top: calc(50% + var(--goal_check) / 2);
        bottom: calc(var(--goal_inner) * -1);
    }
    .main_B1_9 .goal_row:not(:last-child) .goal_body::before {
        left: calc(var(--goal_col) / -2);
        top: 0;
        bottom: calc(var(--goal_gap) * -1);
    }
    .main_B1_9 .goal_row:not(:first-child) .goal_head::before {
        top: 0;
        bottom: calc(50% + var(--goal_check) / 2);
    }

    .main_B1_9 .goal_body li {
        padding-left: 17px;
        font-size: 18px;
    }
    .main_B1_9 .goal_body li::before {
        left: 5px;
        width: 4px;
        height: 4px;
        margin-top: -2px;
    }
}