@charset "UTF-8";

/* 福利厚生 */

.benefit__hero {
    height: 271px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url("../images/title-background.svg") center / 100% 100% no-repeat;
    overflow: hidden;
}

.benefit__hero h1 {
    font-family: Roboto, sans-serif;
    font-size: 72px;
    line-height: 1.2;
    color: var(--blue);
}

.benefit__hero::after {
    position: absolute;
    width: 160px;
    height: 157px;
    right: 8.4%;
    bottom: -28px;
}

.benefit__breadcrumb {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 40px 8.333333% 0;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
}

.benefit__breadcrumb a:not(:first-child),
.benefit__breadcrumb [aria-current] {
    color: #b0b0b0;
}

.benefit__body {
    padding: 132px 8.333333% 80px;
}

.benefit__list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 1px solid var(--ink);
    border-left: 1px solid var(--ink);
}

.benefit__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    padding: 40px 16px;
    border-right: 1px solid var(--ink);
    border-bottom: 1px solid var(--ink);
    min-width: 0;
}

.benefit__icon {
    width: 120px;
    height: 120px;
    object-fit: contain;
}

.benefit__text {
    width: 100%;
}

.benefit__text h2 {
    margin: 0 0 16px;
    color: var(--blue);
    text-align: center;
    font-size: 24px;
    font-weight: 900;
    line-height: 1.2;
}

.benefit__text p {
    font-size: 18px;
    line-height: 1.8;
    color: #000;
}

@media screen and (max-width: 768px) {
    .benefit__hero {
        height: calc(124 / 375 * 100vw);
        background-image: url("../images/title-background-sp.svg");
    }

    .benefit__hero h1 {
        font-size: calc(32 / 375 * 100vw);
    }

    .benefit__hero::after {
        display: none;
    }

    .benefit__breadcrumb {
        margin: calc(16 / 375 * 100vw) 4.266667% 0;
        gap: calc(16 / 375 * 100vw);
        font-size: calc(12 / 375 * 100vw);
        line-height: 1.166667;
    }

    .benefit__body {
        padding: calc(60 / 375 * 100vw) 4.266667%;
    }

    .benefit__list {
        grid-template-columns: minmax(0, 1fr);
    }

    .benefit__item {
        padding: calc(40 / 375 * 100vw) calc(16 / 375 * 100vw);
        gap: calc(24 / 375 * 100vw);
    }

    .benefit__icon {
        width: calc(120 / 375 * 100vw);
        height: calc(120 / 375 * 100vw);
    }

    .benefit__text h2 {
        margin-bottom: calc(16 / 375 * 100vw);
        font-size: calc(24 / 375 * 100vw);
    }

    .benefit__text p {
        font-size: calc(16 / 375 * 100vw);
    }
}

@media screen and (min-width: 1440px) {
    .benefit__hero {
        height: calc(271 / 1440 * 100vw);
    }

    .benefit__hero h1 {
        font-size: calc(72 / 1440 * 100vw);
    }

    .benefit__hero::after {
        width: calc(160 / 1440 * 100vw);
        height: calc(157 / 1440 * 100vw);
        bottom: calc(-28 / 1440 * 100vw);
    }

    .benefit__breadcrumb {
        gap: calc(16 / 1440 * 100vw);
        margin: calc(40 / 1440 * 100vw) 8.333333% 0;
        font-size: calc(16 / 1440 * 100vw);
    }

    .benefit__body {
        padding: calc(132 / 1440 * 100vw) 8.333333% calc(80 / 1440 * 100vw);
    }

    .benefit__item {
        gap: calc(24 / 1440 * 100vw);
        padding: calc(40 / 1440 * 100vw) calc(16 / 1440 * 100vw);
    }

    .benefit__icon {
        width: calc(120 / 1440 * 100vw);
        height: calc(120 / 1440 * 100vw);
    }

    .benefit__text h2 {
        margin: 0 0 calc(16 / 1440 * 100vw);
        font-size: calc(24 / 1440 * 100vw);
    }

    .benefit__text p {
        font-size: calc(18 / 1440 * 100vw);
    }
}
