/* ------------------------------------------------
PAGE:健康経営ページ - health -
------------------------------------------------ */
/* KV,Catchはparts.cssに記載 */

.workplace {
    /* デザインカンプに合わせて調整 */
    padding-bottom: 20px;
}

.workplace__text {
    --min-size: 48;
    --max-size: 56;
    margin-bottom: var(--clamp-size);
}

.workplace__cards {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    column-gap: 18px;
    align-items: start;
    /* カードの高さを揃えたい場合 */
}

.workplace__card {
    background: var(--gradient2);
    display: grid;
    justify-items: center;
    grid-template-rows: subgrid;
    grid-row: span 3;
    /* テキスト部分全文カットになった兼ね合いで余白修正/戻す場合は入れ替え */
    /* padding: var(--space-2xl) var(--space-sm) var(--space-md); */
    padding: var(--space-2xl) var(--space-sm) var(--space-2xl);
}

.workplace__icon {
    background-color: var(--color-white);
    aspect-ratio: 1;
    width: 120px;
    border-radius: 999px;
    position: relative;
    --min-size: 18;
    --max-size: 24;
    margin-bottom: var(--clamp-size);
}

.workplace__icon img {
    width: 70%;
    height: 70%;
    object-fit: contain;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -60%);
    z-index: 1;
}

.workplace__icon-child img {
    width: 70px;
}

.workplace__icon-calendar img {
    width: 57px;
}

.workplace__icon-time img {
    width: 74px;
}

.workplace__title {
    font-size: var(--fontSize-lg);
    color: var(--color-white);
    margin-bottom: 8px;
}

.workplace__contents {
    background-color: #E2F2F5;
    padding: var(--space-xl) var(--space-md) var(--space-2xl);
    line-height: var(--lineHeight-150);
    width: 100%;

    p {
        padding-inline: 0.6em;
    }
}



@media (width < 768px) {
    .workplace__cards {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin-inline: auto;
    }

    .workplace__card {
        margin-bottom: 18px;
    }

    .workplace__card:last-of-type {
        margin-bottom: 0;
    }
}

/* イベント
-----------------------------------------*/
.event {
    position: relative;
    padding-bottom: 0;
}

/* 画像タイトル部分 ---------- */
.event__head {
    max-width: 1303px;
    min-height: 280px;
    margin-inline: auto;
    padding: var(--space-3xl) 1em;
    background-image: url(../../img/page/health/img_event.avif);
    background-size: cover;
    background-position: 75% bottom;
    color: white;
    text-align: center;
    display: grid;
    place-items: center;
    justify-content: center;
    align-content: center;
    gap: 18px;
    position: absolute;
    width: 95%;
    top: var(--space-4xl);
    left: 50%;
    transform: translateX(-50%);

}

.event__label {
    font-size: var(--fontSize-lg);
    font-family: var(--fontFamily-en);
    font-weight: var(--fontWeight-semi-bold);
}

.event__copy {
    font-size: var(--fontSize-xl);
    font-weight: var(--fontWeight-bold);
}

.event__subcopy {
    font-size: var(--fontSize-md);
    font-weight: var(--fontWeight-bold);
}

/* イベント詳細カード */
.event__body {
    /* head画像の高さ */
    margin: calc(280px/2) calc(50% - 50vw) 0;
    padding: calc(280px/2 + var(--space-4xl)) calc(50vw - 50%) var(--space-6xl);
    background: url(../../img/common/bg_grey.avif) center center / 100% repeat;
}

.event__cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    padding-bottom: var(--space-4xl);
}

.event__card {
    background-color: var(--color-white);
    padding: var(--space-xl) var(--space-md);
    gap: var(--space-xl);
}

.event__image {
    width: 99px !important;
    height: 99px;
    aspect-ratio: 1/1;
    border-radius: 999px;
    overflow: hidden;

    img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

.event__contents {
    flex: 1;
}

.event__title {
    font-size: var(--fontSize-xl);
    font-weight: var(--fontWeight-bold);
    margin-bottom: var(--space-md);

    background: var(--gradient-reverse);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    align-items: stretch;
    gap: 10px;
}

.event__title::before {
    content: "";
    width: 2px;
    background: var(--gradient-reverse);
    display: inline-block;
    flex-shrink: 0;
}

ul.event__list {
    padding-left: 1em;
}

.event__item {
    line-height: var(--lineHeight-150);
}

.event .parts-recruit {
    padding-bottom: 0;
}

@media (width < 768px) {

    /* イベント画像のタイトル部分 */
    .event__head {
        min-height: 350px;
    }

    /* イベント詳細カード */
    .event__body {
        background: url(../../img/common/bg_grey-sp.avif) center center / 100% repeat;
        /* タイトル部分の高さを考慮して計算 */
        margin-top: calc(350px/2);
        padding-top: calc(350px/2 + var(--space-4xl));
    }

    .event__cards {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }

    .event__card {
        width: 100%;
        margin-inline: auto;
    }
}