/* 事業紹介 */
.service-item {
    display: flex;
    align-items: center;
    margin-bottom: 140px;
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease;
}

    .service-item.show {
        opacity: 1;
        transform: translateY(0);
    }

    .service-item.reverse {
        flex-direction: row-reverse;
    }

/* テキスト全体 */
.service-text {
    width: 44%;
    padding: 10px 40px;
}

.service-img {
    width: 60%;
    position: relative;
    overflow: hidden;
}

.heading {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.label {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
}

.number {
    position: relative;
    font-family: 'Montserrat', sans-serif;
    font-size: 64px;
    /* TODO：色変更（見出しの数字） */
    color: #333;
    font-weight: 400;
    line-height: 1;
    display: block;
    box-sizing: border-box;
    text-align: center;
    width: fit-content;
}

    .number::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 40px;
        height: 40px;
        /* TODO：色変更（見出しの数字の後ろの三角） */
        background: rgba(200, 182,255,0.5);
        clip-path: polygon(0 0, 100% 0%, 0 100%);
        z-index: -999;
    }

/* タイトル */
.heading h2 {
    font-size: 26px;
    margin-bottom: 12px;
    position: relative;
    display: inline-block;
    letter-spacing: 1px;
}

/* 本文 */
.service-text p {
    line-height: 1.8;
    margin-top: 18px;
}

/* ちょい動き（ポップ感） */
.service-item:hover .service-img img {
    transform: scale(1.05) rotate(1deg);
    transition: 0.4s ease;
}

/* 画像 */
.service-img img {
    width: 100%;
    display: block;
    transform: scale(1.1);
    transition: transform 1.2s ease;
}

/* メンロ画像 */
.Menlo-img {
    width: 40%;
    display: block;
    position: relative;
    /* 左寄せ気味 
    margin-left: -20px;*/
    /* 上下余白 */
    margin-top: -20px;
    margin-bottom: -40px;
}

/* 表示時ズーム */
.service-item.show .service-img img {
    transform: scale(1);
}

a {
    /* TODO：色変更（メンロのURLの色）*/
    color: #000000;
}

.cta {
    display: flex;
    justify-content: center;
}

.cta-btn {
    width: 580px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
}

    /* 上の英語 */
    .cta-btn .en {
        font-size: 32px;
        font-weight: bold;
        letter-spacing: 1px;
    }

    /* 下の日本語 */
    .cta-btn .jp {
        font-size: 16px;
        margin-top: 4px;
    }

/* ===== 画像はみ出し（コア技術） ===== */
@media (min-width: 768px) {

    .service-item .service-img {
        margin-right: calc(50% - 50vw);
    }

    .service-item.reverse .service-img {
        margin-left: calc(50% - 50vw);
        margin-right: 0;
    }

}

/* スマホ対応 */
@media (max-width: 767px) {

    .service-item {
        flex-direction: column;
        margin-bottom: 30px;
    }

        .service-item.reverse {
            flex-direction: column;
        }

    .service-text,
    .service-img {
        width: 100%;
    }

    .service-text {
        padding: 20px 0;
    }

    .service-img {
        margin-bottom: 16px;
    }

    .heading h2 {
        font-size: 20px;
    }

    .service-text p {
        font-size: 14px;
    }

    .number {
        font-size: 48px;
    }

    .cta-btn {
        width: 100%;
        padding: 20px;
    }

        .cta-btn .en {
            font-size: 24px;
        }

        .cta-btn .jp {
            font-size: 14px;
            margin-top: 2px;
        }

    .Menlo-img {
        width: 30%;
        /* 左寄せ気味
        margin-left: -20px;*/
        /* 上下余白 */
        margin-top: -10px;
        margin-bottom: -30px;
        margin-left: calc(50% - 50vw);
    }
}

/* タブレット */
@media (max-width: 992px) {
    .Menlo-img {
        width: 60%;
        /* 左寄せ気味*/
        margin-left: -20px;
        /* 上下余白 */
        margin-top: -10px;
        margin-bottom: -30px;
    }
}