@charset "utf-8";

/* =========================================================
   main.css : 메인 페이지 (Figma 씨앤앰글로벌 A-2 / A-2_Mobile)
   ========================================================= */

/* 공통 섹션 타이틀 */
.sec-title {
    font-size: 36px;
    font-weight: 500;
    line-height: 44px;
    color: var(--color-black);
}

/* ---------- 메인 비주얼 ---------- */
.main-visual {
    padding-top: 123px;
}

.visual-wrap {
    display: flex;
}

.visual-swiper {
    flex: 0 0 59.25%;
    width: 59.25%;
    aspect-ratio: 772 / 438;
    margin: 0;
}

.visual-swiper .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 슬라이드에 링크가 있는 경우 (관리자 슬라이드 링크) */
.visual-swiper .swiper-slide > a {
    display: block;
    height: 100%;
}

.visual-panel {
    position: relative;
    flex: 1;
    min-width: 0;
    padding: 46px 33px;
    background: var(--color-bg-light);
}

.visual-logo {
    width: 70px;
    height: 33px;
}

.visual-title {
    margin-top: 40px;
    font-size: 36px;
    font-weight: 400;
    line-height: 50px;
    color: var(--color-black);
}

.visual-pager {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-top: 40px;
    font-size: 14px;
    line-height: 14px;
}

.visual-pager .current {
    color: var(--color-black);
}

.visual-pager .total {
    color: var(--color-border);
}

.visual-pager .bar {
    position: relative;
    width: 178px;
    height: 1px;
    background: var(--color-line);
}

.visual-pager .bar i {
    position: absolute;
    top: 0;
    left: 0;
    width: 33.333%;
    height: 100%;
    background: var(--color-black);
    transition: width .4s;
}

.visual-arrows {
    position: absolute;
    right: 30px;
    bottom: 29px;
    display: flex;
    gap: 12px;
}

/* ---------- 사업실적 ---------- */
.main-works {
    padding: 70px 0 86px;
}

.main-works .sec-head {
    margin-bottom: 72px;
}

.works-count {
    display: none;
}

.work-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px 20px;
}

.work-list a {
    display: block;
}

.work-list .thumb {
    aspect-ratio: 419 / 223;
    overflow: hidden;
    background: var(--color-bg-gray);
}

.work-list .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s;
}

.work-list .tit {
    margin-top: 16px;
    overflow: hidden;
    font-size: 18px;
    font-weight: 500;
    line-height: 28px;
    color: var(--color-black);
    white-space: nowrap;
    text-overflow: ellipsis;
    transition: color .2s;
}

.work-list a:hover .thumb img,
.work-list a:focus-visible .thumb img {
    transform: scale(1.05);
}

.work-list a:hover .tit,
.work-list a:focus-visible .tit {
    color: var(--color-primary);
}

.main-works .btn-wrap {
    margin-top: 84px;
    text-align: center;
}

/* ---------- 온라인 상담 ---------- */
.main-consult {
    overflow: hidden;
    background: var(--color-blue) url('/resource/user/images/main/consult_bg.png') no-repeat 50% 52% / cover;
    color: #fff;
}

.main-consult .inner {
    position: relative;
    display: flex;
    align-items: center;
    height: 210px;
}

.consult-text {
    position: relative;
    z-index: 1;
}

.consult-title {
    font-size: 36px;
    font-weight: 500;
    line-height: 44px;
}

.consult-desc {
    margin-top: 12px;
    font-size: 18px;
    font-weight: 500;
    line-height: 26px;
}

.consult-illust {
    position: absolute;
    top: 27px;
    left: calc(50% - 81px);
    width: 514px;
}

.btn-consult {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 161px;
    height: 48px;
    margin-left: auto;
    border-radius: 4px;
    background: #fff;
    font-size: 16px;
    font-weight: 500;
    color: var(--color-black);
    transition: color .2s;
}

.btn-consult:hover,
.btn-consult:focus-visible {
    font-weight: 700;
    color: var(--color-primary);
}

/* ---------- 파트너사 ---------- */
.main-partner {
    padding: 75px 0 90px;
}

.main-partner .sec-title {
    margin-bottom: 69px;
    text-align: center;
}

.partner-wrap {
    position: relative;
}

.partner-swiper .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 90px;
    border-radius: 10px;
    background: var(--color-bg-gray);
}

.partner-wrap > .btn-arrow {
    position: absolute;
    top: 21px;
    z-index: 2;
}

.partner-wrap > .btn-arrow.prev {
    left: -78px;
}

.partner-wrap > .btn-arrow.next {
    right: -78px;
}

.partner-pagination {
    display: none;
}

/* 화살표가 화면 밖으로 나가지 않도록 안쪽으로 배치 */
@media (max-width: 1459px) {
    .partner-wrap {
        padding: 0 78px;
    }

    .partner-wrap > .btn-arrow.prev {
        left: 0;
    }

    .partner-wrap > .btn-arrow.next {
        right: 0;
    }
}

/* =========================================================
   소형 PC (1024 ~ 1279)
   ========================================================= */
@media (max-width: 1279px) {
    .main-visual {
        padding-top: 80px;
    }

    .visual-panel {
        padding: 40px 32px;
    }

    .visual-title {
        margin-top: 28px;
        font-size: 30px;
        line-height: 42px;
    }

    .visual-pager {
        margin-top: 28px;
    }

    .visual-pager .bar {
        width: 120px;
    }

    .visual-arrows {
        right: 32px;
        bottom: 32px;
    }

    .consult-desc {
        max-width: 360px;
    }

    .consult-illust {
        top: 40px;
        left: calc(50% - 60px);
        width: 340px;
    }
}

/* =========================================================
   태블릿 (768 ~ 1023)
   ========================================================= */
@media (max-width: 1023px) {
    .sec-title {
        font-size: 30px;
        line-height: 38px;
    }

    .main-visual {
        padding-top: 40px;
    }

    .visual-wrap {
        flex-direction: column;
    }

    .visual-swiper {
        flex: none;
        width: 100%;
        aspect-ratio: 16 / 9;
    }

    .visual-panel {
        padding: 36px 32px 32px;
    }

    .visual-title {
        margin-top: 24px;
    }

    .visual-pager {
        height: 48px;
        margin-top: 24px;
    }

    .main-works {
        padding: 64px 0 72px;
    }

    .main-works .sec-head {
        margin-bottom: 40px;
    }

    .work-list {
        gap: 28px 16px;
    }

    .work-list li:nth-child(n+10) {
        display: none;
    }

    .work-list .tit {
        margin-top: 12px;
        font-size: 16px;
        line-height: 24px;
    }

    .main-works .btn-wrap {
        margin-top: 48px;
    }

    .main-consult .inner {
        display: block;
        height: auto;
        padding-top: 48px;
        padding-bottom: 48px;
    }

    .consult-title {
        font-size: 30px;
        line-height: 38px;
    }

    .consult-desc {
        max-width: 340px;
        font-size: 17px;
    }

    .consult-illust {
        top: 32px;
        left: auto;
        right: var(--inner-padding);
        width: 340px;
    }

    .btn-consult {
        margin-top: 28px;
        margin-left: 0;
    }

    .main-partner {
        padding: 64px 0 72px;
    }

    .main-partner .sec-title {
        margin-bottom: 40px;
    }

    .partner-wrap {
        padding: 0 64px;
    }

    .partner-swiper .swiper-slide {
        height: 80px;
    }

    .partner-wrap > .btn-arrow {
        top: 16px;
    }
}

/* =========================================================
   모바일 (~ 767) : 시안 375 기준, 최소 360
   ========================================================= */
@media (max-width: 767px) {
    .sec-title {
        font-size: 22px;
        font-weight: 600;
        line-height: 26.6px;
        letter-spacing: -0.44px;
        color: var(--color-text);
    }

    /* 메인 비주얼 : 좌우 여백 없이 꽉 차게 */
    .main-visual {
        padding-top: 0;
    }

    .main-visual .inner {
        padding: 0;
    }

    .visual-swiper {
        aspect-ratio: 375 / 260;
    }

    .visual-panel {
        padding: 28px 20px 24px;
    }

    .visual-logo {
        width: 56px;
        height: 26px;
    }

    .visual-title {
        margin-top: 24px;
        font-size: 24px;
        font-weight: 500;
        line-height: 33.6px;
        letter-spacing: -0.48px;
        color: var(--color-text);
    }

    .visual-pager {
        gap: 10px;
        height: 40px;
        margin-top: 24px;
        font-size: 12px;
        font-weight: 500;
    }

    .visual-pager .current {
        color: var(--color-text);
    }

    .visual-pager .total {
        color: var(--color-gray-light);
    }

    .visual-pager .bar {
        width: 96px;
        height: 2px;
        background: #d9d9d9;
    }

    .visual-pager .bar i {
        background: var(--color-text);
    }

    .visual-arrows {
        right: 20px;
        bottom: 24px;
        gap: 8px;
    }

    /* 사업실적 : 2열 6개 노출 */
    .main-works {
        padding: 56px 0;
    }

    .main-works .sec-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 24px;
    }

    .works-count {
        display: block;
        font-size: 13px;
        font-weight: 500;
        color: var(--color-gray-light);
    }

    .work-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px 12px;
    }

    .work-list li:nth-child(n+7) {
        display: none;
    }

    .work-list .thumb {
        aspect-ratio: 162 / 108;
    }

    .work-list .tit {
        display: -webkit-box;
        margin-top: 10px;
        font-size: 14px;
        line-height: 21px;
        letter-spacing: -0.14px;
        color: var(--color-text);
        white-space: normal;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }

    .main-works .btn-wrap {
        margin-top: 24px;
    }

    /* 온라인 상담 */
    .main-consult .inner {
        padding-top: 40px;
        padding-bottom: 32px;
    }

    .consult-title {
        font-size: 24px;
        font-weight: 600;
        line-height: 29px;
        letter-spacing: -0.48px;
    }

    .consult-desc {
        margin-top: 16px;
        font-size: 15px;
        font-weight: 400;
        line-height: 24px;
    }

    .consult-illust {
        position: static;
        width: 300px;
        max-width: 100%;
        margin-top: 16px;
    }

    .btn-consult {
        display: flex;
        width: 100%;
        margin-top: 16px;
        font-size: 15px;
        font-weight: 600;
        color: var(--color-text);
    }

    /* 파트너사 : 2열 x 3행 그리드 슬라이드 */
    .main-partner {
        padding: 56px 0;
    }

    .main-partner .sec-title {
        margin-bottom: 24px;
    }

    .partner-wrap {
        padding: 0;
    }

    .partner-swiper .swiper-slide {
        height: 72px;
        border-radius: 4px;
    }

    .partner-swiper .swiper-slide img {
        transform: scale(.8);
    }

    .partner-wrap > .btn-arrow {
        display: none;
    }

    .partner-pagination {
        display: flex;
        justify-content: center;
        gap: 6px;
        margin-top: 24px;
    }

    .partner-pagination .swiper-pagination-bullet {
        width: 6px;
        height: 6px;
        margin: 0 !important;
        border-radius: 3px;
        background: #d9d9d9;
        opacity: 1;
        transition: width .3s, background-color .3s;
    }

    .partner-pagination .swiper-pagination-bullet-active {
        width: 18px;
        background: var(--color-text);
    }
}

/* =========================================================
   소형 모바일 (360 ~ 374) : 카드 폭이 줄어 제목이 2줄 안에 들어가도록 축소
   ========================================================= */
@media (max-width: 374px) {
    .work-list .tit {
        font-size: 13px;
        line-height: 20px;
        letter-spacing: -0.2px;
    }
}
