/* ==========================================================================
   사업 영역 · 사업 소개 (business.html)
   ========================================================================== */

/* --------------------------------------------------------------------------
   01 첫 화면
   -------------------------------------------------------------------------- */
.business-hero {
    padding: 72px 0;
    background: var(--white);
}

.business-hero__inner {
    display: flex;
    align-items: center;
}

.business-hero__text {
    display: flex;
    flex-direction: column;
    gap: 24px;
    flex: 1 1 640px;
    min-width: 0;
}

.business-hero__eyebrow {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.45;
    color: var(--main);
}

.business-hero__title {
    font-size: 56px;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -0.022em;
}

.business-hero__desc {
    font-size: 19px;
    line-height: 1.45;
    color: var(--gray);
}

.business-hero__graphic {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 1 480px;
    min-width: 0;
    aspect-ratio: 480 / 360;
}

.business-hero__graphic img {
    width: 50%;
}

/* --------------------------------------------------------------------------
   02 · 03 서비스 소개 (구인구직 / 운영관리)
   -------------------------------------------------------------------------- */
.business-service {
    padding: 88px 0;
    background: var(--white);
}

.business-service--soft {
    padding: 100px 0;
    background: #f7f9fc;
}

.business-service__inner {
    display: flex;
    align-items: center;
    gap: 96px;
}

.business-service__inner--reverse {
    flex-direction: row-reverse;
    gap: 56px;
}

.business-service__text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    flex: 1 1 0;
    min-width: 0;
}

.business-service__icon {
    width: 80px;
    height: 80px;
    border: 0.5px solid var(--subtle);
    border-radius: 10px;
    object-fit: cover;
}

.business-service__title {
    font-size: 44px;
    font-weight: 700;
    line-height: 64px;
    letter-spacing: -0.02em;
}

.business-service__desc {
    font-size: 20px;
    line-height: 32px;
    color: var(--gray);
}

.business-service__link {
    color: var(--main);
}

.business-service__visual {
    display: block;
    flex: 0 1 auto;
    min-width: 0;
}

/* 구인구직: 공고 카드 + 뒤쪽 옅은 배경 (544 × 452) */
.business-service__visual--job {
    position: relative;
    width: 544px;
    max-width: 544px;
    aspect-ratio: 544 / 452;
}

.business-service__visual--job::before {
    content: "";
    position: absolute;
    inset: 25.66% 0 0;
    background: #f7f9fc;
}

.business-service__visual--job img {
    position: relative;
    width: 73.53%;
    margin-inline: auto;
    border-radius: 4.5% / 4.35%;
    box-shadow: 0 12px 36px rgba(22, 54, 90, 0.07);
}

/* 운영관리: PC 모니터와 앱 (600 × 481) */
.business-service__visual--ops {
    width: 600px;
    max-width: 600px;
}

.business-service__visual--ops img {
    width: 100%;
    aspect-ratio: 600 / 481;
    object-fit: cover;
}

/* --------------------------------------------------------------------------
   04 협력으로 이어지는 연결
   -------------------------------------------------------------------------- */
.business-cta {
    padding: 64px 0;
    background: var(--black);
    color: var(--white);
}

.business-cta__inner {
    position: relative;
    display: flex;
    align-items: center;
    height: 420px;
    overflow: hidden;
}

.business-cta__text {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
}

.business-cta__title {
    font-size: 44px;
    font-weight: 700;
    line-height: 1.35;
}

.business-cta__desc {
    font-size: 18px;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.7);
}

.business-cta__btn,
.business-cta__btn:hover {
    background: var(--white);
    color: var(--main);
    line-height: 1.45;
}

.business-cta__btn:hover {
    background: var(--blue-tint);
}

.business-cta__map {
    position: absolute;
    top: 32px;
    right: -29px;
    width: 560px;
    height: 420px;
}

/* 지도 단계 애니메이션: step 1~5 이미지를 겹쳐 두고 순서대로 나타낸다.
   스크립트가 없으면 마지막 단계(전체 연결)가 그대로 보인다. */
.business-map {
    position: relative;
    width: 560px;
    height: 420px;
}

.business-map__step {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    transition: opacity 0.6s ease;
}

.business-map[data-step="1"] .business-map__step:nth-child(n + 2),
.business-map[data-step="2"] .business-map__step:nth-child(n + 3),
.business-map[data-step="3"] .business-map__step:nth-child(n + 4),
.business-map[data-step="4"] .business-map__step:nth-child(n + 5) {
    opacity: 0;
}

/* --------------------------------------------------------------------------
   모바일
   -------------------------------------------------------------------------- */
@media (max-width: 899px) {
    /* 01 — 흰 바탕만 이어지지 않도록 첫 화면에 옅은 바탕을 깐다 */
    .business-hero {
        padding: 40px 0 44px;
        background: var(--bg-soft);
    }

    .business-hero__text {
        gap: 18px;
        flex-basis: auto;
    }

    .business-hero__eyebrow {
        font-size: 14px;
    }

    .business-hero__title {
        font-size: 36px;
        font-weight: 600;
        line-height: 1.25;
    }

    .business-hero__desc {
        font-size: 17px;
    }

    /* 02 · 03 */
    .business-service,
    .business-service--soft {
        padding: 64px 0;
    }

    .business-service--soft {
        background: var(--white);
    }

    .business-service__inner,
    .business-service__inner--reverse {
        flex-direction: column;
        align-items: stretch;
        gap: 32px;
    }

    .business-service__text {
        gap: 20px;
        flex: none;
    }

    .business-service__icon {
        width: 64px;
        height: 64px;
        border-radius: 8px;
    }

    .business-service__title {
        font-size: 30px;
        line-height: 44px;
    }

    .business-service__desc {
        font-size: 17px;
        line-height: 27px;
    }

    .business-service__visual {
        flex: none;
        width: 100%;
        max-width: 480px;
    }

    /* 342 × 414: 배경 342 × 342, 카드 302 */
    .business-service__visual--job {
        aspect-ratio: 342 / 414;
    }

    .business-service__visual--job img {
        width: 88.3%;
    }

    .business-service__visual--job::before {
        inset: auto 0 0;
        aspect-ratio: 1 / 1;
    }

    /* 04 */
    .business-cta {
        padding: 70px 0 56px;
    }

    .business-cta__inner {
        flex-direction: column;
        align-items: stretch;
        gap: 28px;
        height: auto;
        overflow: visible;
    }

    .business-cta__text {
        gap: 21px;
    }

    .business-cta__title {
        font-size: 30px;
        line-height: 1.27;
    }

    .business-cta__desc {
        font-size: 16px;
        line-height: 1.5;
        color: #bdc9e0;
    }

    .business-cta__map {
        position: relative;
        top: auto;
        right: auto;
        width: 100%;
        height: 347px;
        overflow: hidden;
    }

    .business-map {
        position: absolute;
        top: -22px;
        left: 50%;
        margin-left: -280px;
    }
}

/* 좁은 PC 화면 */
@media (min-width: 900px) and (max-width: 1199px) {
    .business-hero__title { font-size: 46px; }
    .business-hero__desc { font-size: 17px; }
    .business-service__inner { gap: 48px; }
    .business-service__inner--reverse { gap: 40px; }
    .business-service__text { flex: 0 0 400px; }
    .business-service__title { font-size: 36px; line-height: 52px; }
    .business-service__desc { font-size: 16px; line-height: 27px; }
    .business-service__visual { flex: 1 1 0; }
    .business-cta__title { font-size: 36px; }
    .business-cta__desc { font-size: 16px; }
    .business-cta__map { right: -90px; }
}

@media (prefers-reduced-motion: reduce) {
    .business-map__step {
        transition: none;
    }
}
