@charset "UTF-8";

:root {
    /* color -------------- */
    --main-color: #E70012;
    --bg-color: #f9f9f9;
    --link-color: #007BCE;
    /* margin ------------- */
    --sec-margin: 80px;
}
@media screen and (max-width: 960px) {
    :root {
        /* margin ------------- */
        --sec-margin: 60px;
    }
}

.service__top__contents {
    margin-top: 120px;
}

.service__top__head {
    display: flex;
    align-items: center;
}
.--profitable .service__top__head {
    flex-direction: row-reverse;
}
.service__top__img {
    width: 50%;
    height: 388px;
    border-radius: 0 10px 10px 0;
    object-fit: cover;
}
.--profitable .service__top__img {
    border-radius: 10px 0 0 10px;
}
.service__top__txt {
    width: 40%;
    margin-left: 20px;
    text-align: center;
}
.--profitable .service__top__txt {
    margin-left: 0;
    margin-right: 20px;
}
.service__top__ttl {
    font-size: 24px;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--main-color);
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}
.service__top__ttl span {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    font-size: 38px;
    color: #fff;
    white-space: nowrap;
    z-index: -1;
}
.service__top__dsc {
    font-size: 14px;
    line-height: 2;
    letter-spacing: 0.05em;
}

.service__top__link {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    column-gap: 10px;
    row-gap: 15px;
    margin-top: 60px;
}
.service__top__link .link02 {
    display: block;
    text-align: center;
    max-width: 300px;
    width: 100%;
    color: var(--main-color);
    background-color: #fff;
    padding: 1.1em 2.5em 1.1em 2.5em;
}
.service__top__link .link02:hover {
    color: #fff;
    background-color: var(--main-color);
}
.service__top__link .link02::after {
    background-image: url(/common/img/icon-arrow02.svg);
}
.service__top__link .link02:hover::after {
    background-image: url(/common/img/icon-arrow02-w.svg);
}
@media screen and (max-width: 960px) {
    .service__top__contents {
        margin-top: 60px;
    }
    .service__top__ttl {
        font-size: 20px;
        margin-bottom: 30px;
    }
    .service__top__ttl span {
        font-size: 32px;
    }
    .service__top__dsc .for-pc {
        display: none;
    }
    .service__top__link {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media screen and (max-width: 600px) {
    .service__top__head {
        flex-wrap: wrap;
    }
    .--profitable .service__top__head {
        flex-direction: column-reverse;
    }
    .service__top__img {
        width: 90%;
        height: 150px;
    }
    .service__top__txt {
        width: 95%;
        margin: 30px auto 0;
    }
    .--profitable .service__top__txt {
        margin: 30px auto 0;
    }
    .service__top__dsc {
        text-align: left;
    }
    .service__top__link {
        grid-template-columns: repeat(1, 1fr);
        justify-items: center;
        margin-top: 30px;
    }
}

/* 広報・啓発事業 .info
===================================*/

/* 技術開発等事業 .tech
===================================*/

/* 防災事業 .disaster
===================================*/

/* 地域活性化等事業 .local
===================================*/

/* 公共施設便益推進事業 .sa-pa
===================================*/

/* 事業監理事業 .supervision
===================================*/
.supervision .sec__head02 + .sec__img {
    margin-top: 0;
}

/* その他事業 .other
===================================*/