/* ==========================================================================
   메인 페이지 (index.html)
   ========================================================================== */

.eyebrow {
    font-size: 17px;
    font-weight: 600;
    line-height: 1.45;
    color: var(--main-dark);
}

/* --------------------------------------------------------------------------
   01 첫 화면
   -------------------------------------------------------------------------- */
.home-hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 720px;
    overflow: hidden;
    background: var(--black);
    color: var(--white);
    text-align: center;
}

.home-hero__media {
    position: absolute;
    inset: 0;
}

.home-hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
}

.home-hero__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(18, 27, 45, 0.8);
}

.home-hero__body {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.home-hero__eyebrow {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.45;
    letter-spacing: -0.02em;
}

.home-hero__title {
    font-size: 68px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.022em;
}

.home-hero__title em {
    font-style: normal;
    color: var(--main);
}

.home-hero__desc {
    font-size: 20px;
    line-height: 1.55;
}

.home-hero__links {
    display: flex;
    justify-content: center;
    gap: 40px;
}

/* --------------------------------------------------------------------------
   02 두 사업으로 이동
   -------------------------------------------------------------------------- */
.home-services {
    padding: 92px 0 96px;
    background: var(--bg-soft);
}

.home-services__head {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 42px;
}

.home-services__title {
    font-size: 52px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.022em;
}

.home-services__list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.service-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
    padding: 30px 28px 34px 36px;
    border-radius: 24px;
    background: var(--white);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(18, 27, 45, 0.1);
}

.service-card--navy {
    background: var(--navy-grad);
    color: var(--white);
}

.service-card__icon {
    width: 160px;
    height: 160px;
    border: 1px solid var(--subtle);
    border-radius: 20px;
    object-fit: cover;
}

.service-card--navy .service-card__icon {
    border-radius: 24px;
}

.service-card__text {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.service-card__name {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 32px;
    font-weight: 600;
    line-height: 1.45;
    white-space: nowrap;
}

.service-card__name img {
    width: 24px;
    height: 24px;
}

.service-card__desc {
    font-size: 18px;
    line-height: 1.45;
    color: var(--gray);
}

.service-card--navy .service-card__desc {
    color: #e2ebfd;
}

/* --------------------------------------------------------------------------
   03 이용 대상별 안내
   -------------------------------------------------------------------------- */
.home-audience {
    padding: 100px 0 104px;
}

.home-audience__head {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 40px;
}

.home-audience__title {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.3;
}

.home-audience__list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.audience-card {
    display: flex;
    flex-direction: column;
    gap: 21px;
}

.audience-card__photo {
    width: 100%;
    aspect-ratio: 352 / 216;
    border-radius: 16px;
    object-fit: cover;
}

.audience-card__photo--top {
    object-position: center top;
}

.audience-card__text {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.audience-card__name {
    font-size: 27px;
    font-weight: 700;
    line-height: 1.45;
}

.audience-card__desc {
    font-size: 17px;
    line-height: 1.45;
    color: var(--gray);
}

.audience-card__link {
    font-size: 17px;
    font-weight: 600;
    line-height: 1.45;
    color: var(--main);
}

.audience-card:hover .audience-card__link {
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* --------------------------------------------------------------------------
   04 함께하는 기관
   -------------------------------------------------------------------------- */
.home-partner {
    padding: 96px 0;
    background: var(--deep-grad);
    color: var(--white);
}

.home-partner__inner {
    display: flex;
    align-items: center;
    gap: 60px;
}

.home-partner__text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    flex: 0 0 396px;
}

.home-partner__eyebrow {
    font-size: 17px;
    font-weight: 600;
    line-height: 1.45;
    color: #94c5ff;
}

.home-partner__title {
    font-size: 42px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.022em;
}

.home-partner__desc {
    font-size: 18px;
    line-height: 1.55;
    color: #d0ddee;
}

.home-partner .btn {
    font-weight: 600;
    line-height: 1.45;
    color: #eaf2ff;
}

.partner-record {
    flex: 1 1 0;
    min-width: 0;
    overflow: hidden;
    border-radius: 18px;
    background: var(--white);
}

.partner-record__photo {
    width: 100%;
    aspect-ratio: 664 / 396;
    object-fit: cover;
}

.partner-record__caption {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    padding: 0 24px;
    font-size: 15px;
    font-weight: 500;
    color: #4c6278;
}

.partner-record__logo {
    width: 180px;
    height: 46px;
    object-fit: contain;
    object-position: left center;
}

.partner-record__caption span + span {
    margin-left: 0.8em;
}

/* --------------------------------------------------------------------------
   05 문의 강조
   -------------------------------------------------------------------------- */
.home-cta {
    padding: 88px 0;
    background: var(--blue-tint);
}

.home-cta__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.home-cta__text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
}

.home-cta__eyebrow {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.45;
    color: var(--main);
}

.home-cta__title {
    font-size: 48px;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -0.022em;
}

.home-cta__desc {
    font-size: 20px;
    line-height: 1.55;
    color: var(--gray);
}

.home-cta__character {
    display: flex;
    justify-content: center;
    flex: 0 0 332px;
}

.home-cta__character img {
    width: 269px;
    height: 350px;
    object-fit: contain;
}

/* --------------------------------------------------------------------------
   모바일
   -------------------------------------------------------------------------- */
@media (max-width: 899px) {
    .eyebrow {
        font-size: 14px;
        color: var(--main);
    }

    /* 01 */
    .home-hero {
        flex-direction: column;
        align-items: stretch;
        min-height: 0;
        text-align: left;
    }

    .home-hero__body {
        align-items: flex-start;
        gap: 22px;
        padding: 48px 0 36px;
    }

    .home-hero__eyebrow {
        font-size: 14px;
        letter-spacing: 0;
    }

    .home-hero__title {
        font-size: 44px;
        font-weight: 600;
    }

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

    .home-hero__links {
        justify-content: flex-start;
        gap: 24px;
    }

    .home-hero__media {
        position: static;
        order: 1;
        aspect-ratio: 390 / 360;
        max-height: 520px;
    }

    .home-hero__media::after {
        content: none;
    }

    .home-hero__media img {
        object-position: center;
    }

    /* 02 */
    .home-services {
        padding: 56px 0;
    }

    .home-services__head {
        margin-bottom: 28px;
        text-align: center;
    }

    .home-services__title {
        font-size: 34px;
        font-weight: 600;
        line-height: 1.25;
    }

    .home-services__list {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    /* 시안 배치 그대로(아이콘 → 서비스명 → 설명). 아이콘만 시안(128px)보다 작게 둔다. */
    .service-card {
        gap: 16px;
        padding: 20px;
        border-radius: 20px;
    }

    .service-card__icon {
        width: 88px;
        height: 88px;
        border-width: 0.8px;
        border-radius: 14px;
    }

    .service-card--navy .service-card__icon {
        border-radius: 16px;
    }

    .service-card__text {
        gap: 8px;
    }

    .service-card__name {
        font-size: 24px;
    }

    .service-card__desc {
        font-size: 15px;
    }

    /* 03 */
    .home-audience {
        padding: 56px 0;
    }

    .home-audience__head {
        margin-bottom: 28px;
    }

    .home-audience__title {
        font-size: 32px;
        line-height: 1.25;
        letter-spacing: -0.02em;
    }

    .home-audience__list {
        grid-template-columns: 1fr;
    }

    .audience-card {
        gap: 20px;
    }

    .audience-card__photo {
        aspect-ratio: 342 / 216;
        border-radius: 24px;
    }

    .audience-card__name {
        font-size: 25px;
    }

    /* 04 */
    .home-partner {
        padding: 56px 0;
    }

    .home-partner__inner {
        flex-direction: column;
        align-items: stretch;
        gap: 32px;
    }

    .home-partner__text {
        flex: none;
        gap: 14px;
    }

    .home-partner__eyebrow {
        font-size: 14px;
    }

    .home-partner__title {
        font-size: 30px;
        font-weight: 600;
    }

    .home-partner__desc {
        font-size: 16px;
    }

    .partner-record {
        flex: none;
        border-radius: 16px;
    }

    .partner-record__photo {
        aspect-ratio: 342 / 222;
    }

    .partner-record__caption {
        height: 60px;
        padding: 0 14px;
        font-size: 12px;
        line-height: 1.25;
        text-align: right;
    }

    .partner-record__logo {
        width: 134px;
        height: 34px;
    }

    .partner-record__caption span {
        display: block;
    }

    .partner-record__caption span + span {
        margin-left: 0;
    }

    /* 05 */
    .home-cta {
        padding: 64px 0;
    }

    .home-cta__inner {
        flex-direction: column;
        align-items: stretch;
        gap: 32px;
    }

    .home-cta__text {
        align-items: stretch;
    }

    .home-cta__eyebrow {
        font-size: 14px;
    }

    .home-cta__title {
        font-size: 36px;
    }

    .home-cta__desc {
        font-size: 17px;
    }

    .home-cta__character {
        flex: none;
    }

    .home-cta__character img {
        width: 192px;
        height: 249px;
    }
}

/* 좁은 PC 화면: 본문 문장이 카드 밖으로 넘치지 않도록 */
@media (min-width: 900px) and (max-width: 1199px) {
    .home-hero__title { font-size: 56px; }
    .home-services__title { font-size: 44px; }
    .home-audience__title { font-size: 42px; }
    .service-card__name { font-size: 28px; }
    .service-card__desc { font-size: 16px; }
    .home-partner__text { flex-basis: 360px; }
    .home-partner__title { font-size: 36px; }
    .home-partner__inner { gap: 40px; }
}

/* 첫 화면 배경 사진: 살짝 당겨졌다가 제자리로 */
@media (prefers-reduced-motion: no-preference) {
    .home-hero__media {
        overflow: hidden;
    }

    .home-hero__media img {
        animation: home-hero-zoom 2.2s cubic-bezier(0.22, 0.61, 0.36, 1) both;
    }

    @keyframes home-hero-zoom {
        from { scale: 1.08; opacity: 0; }
    }

    .audience-card__photo {
        transition: scale 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
    }

    .audience-card:hover .audience-card__photo {
        scale: 1.03;
    }
}
