:root {
    --service1-bg: #A6D39A;
    --service2-bg: #96d2fd;
    --service3-bg: #F6C0CE;
}

h1 {
    font-feature-settings: "palt";
}


.service1 .page__head {
    background: var(--service1-bg);
    color: #000;
}

.service2 .page__head {
    background: var(--service2-bg);
    color: #000;
}

.service3 .page__head {
    background: var(--service3-bg);
    color: #000;
}

.head__img {
    margin: 0;
}

.service-page .head__badge {
    padding-inline: 1rem;
    border-radius: 33554400px;
    margin: 0 auto;
    width: max-content;
}

.service1 .head__badge {
    background: #fff;
    color: var(--service1-bg);
}

.service2 .head__badge {
    background: #fff;
    color: var(--service2-bg);
}

.service3 .head__badge {
    background: #fff;
    color: var(--service3-bg);
}

.service1 .card-vertical {
    background: var(--service1-bg);
}

.service2 .card-vertical {
    background: var(--service2-bg);
}

.service3 .card-vertical {
    background: var(--service3-bg);
}

.service1 .section-horizontal {
    background: var(--service1-bg);
}

.service2 .section-horizontal {
    background: var(--service2-bg);
}

.service3 .section-horizontal {
    background: var(--service3-bg);
}

.section-merit.section-horizontal {
    background: var(--brand-2);
}

.horizontal-cards {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.horizontal-cards .card {
    display: flex;
    align-items: center;
    text-align: left;
}

.horizontal-cards .card__text {
    flex-basis: 90%;
}

.section-flow {
    background: var(--brand-2);
}

.card__num {
    color: #fff;
    font-size: 18px;
    line-height: 50px;
}

.service-page .card__num {
    width: 50px;
    height: 50px;
    background: var(--service1-bg);
    border-radius: 50%;
    margin: auto;
}

.service1 .card__num {
    background: var(--service1-bg);
}

.service2 .card__num {
    background: var(--service2-bg);
}

.cat-grid {
    margin-top: 48px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.cat-item {
    text-align: center;
    display: grid;
    gap: 16px;
    align-content: start;
}

.cat-item__img {
    width: 120px;
    height: 120px;
    border-radius: 999px;
    overflow: hidden;
    margin: 0 auto;
}

.cat-item__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cat-item__title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
}

.cat-item__desc {
    margin: 0;
    font-size: 14px;
    line-height: 1.45;
    min-height: 80px;
}

.section-product {
    background: var(--brand-2);
    padding-bottom: 114px;
    margin-bottom: -74px;
    text-align: center;
}

.section-product__text {
    margin-block: 40px;
}

.product-cards {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(2, 1fr);
}

.section-product .product-card {
    display: grid;
    grid-row: span 3;
    grid-template-rows: subgrid;
    gap: 8px;
    text-align: center;
    padding-bottom: 8px;
    position: relative;
}

.product-card__img {
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.product-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-card__badge {
    padding-inline: 8px;
    text-align: left;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.product-card__badge span {
    display: inline-block;
    padding: 0 8px;
    border-radius: 33554400px;
    font-size: 12px;
}

.service1 .product-card__badge span {
    background: var(--service1-bg);
}

.service2 .product-card__badge span {
    background: var(--service2-bg);
}

.service3 .product-card__badge span {
    background: var(--service3-bg);
}

.product-card__title {
    align-self: center;
    font-size: 1rem;
    padding-inline: 8px;
    position: static;
}

.product-card__title::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
}

.product-card__title span {
    font-size: 12px;
    display: block;
    font-weight: normal;
}

@media (min-width: 768px) {
    .sp__br {
        display: none;
    }

    .page__head {
        padding-block: 0;
    }

    .service-page .head__badge {
        margin: 0 0 auto;
    }

    .head__inner {
        display: grid;
        grid-template-columns: 1fr 1fr;
        align-items: center;
    }

    .head__text {
        display: grid;
        place-content: center;
        text-align: left;
        gap: 20px;
        padding-block: 20px;
    }

    .head__text>* {
        margin: 0;
    }

    .service3 .head__text {
        line-height: 1;
    }

    .horizontal-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .section-merit .horizontal-cards {
        grid-template-columns: repeat(3, 1fr);
        max-width: 1200px;
    }

    .cat-grid {
        grid-template-columns: repeat(5, 1fr);
    }

    .product-cards {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* サービスカード */
.features-cards {
    display: grid;
    gap: 1.5em;
}

.features-card {
    display: grid;
    grid-template-rows: subgrid;
    grid-row: span 2;
    gap: 0;
    border-radius: var(--radius);
    overflow: hidden;
}

.features-card__image {
    aspect-ratio: 41 / 37;
}

.features-card__image img {
    height: 100%;
}

.features-card__body {
    padding: 1em;
}

.service1 .features-card__body {
    background: var(--service1-bg);
}

.service2 .features-card__body {
    background: var(--service2-bg);
}

.service3 .features-card__body {
    background: var(--service3-bg);
}

@media (min-width: 768px) {
    .features-cards {
        grid-template-columns: repeat(3, 1fr);
    }
}