/* =======================================
    福利厚生ページ
======================================= */
.categoryList li.welfareCurrent a {
    font-weight: bold;
    text-decoration: underline;
}

.welfareArea {
    max-width: 980px;
    margin: 0 auto;
    padding-bottom: 40px;
}

.welfareSection {
    padding-top: 40px;
}

.welfareHeading {
    margin: 0 0 50px 10px;
    font-size: 28px;
    font-weight: bold;
    text-decoration: underline;
    text-underline-offset: 6px;
    text-align: left;
}

.welfareList {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px 40px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.welfareItem {
    position: relative;
    width: 400px;
}

.welfareItem.hasSideChara {
    padding-right: 110px;
}

/* 円 */
.welfareCircle {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 400px;
    height: 400px;
    padding: 24px 20px;
    border-radius: 50%;
    text-align: center;
    color: #000000;
}

/* 色は 福利厚生レイアウト 20261022_02.xlsx に合わせる */
.welfare-blue   { background-color: #b7dee8; }
.welfare-orange { background-color: #fcd5b5; }
.welfare-green  { background-color: #d7e4bd; }
.welfare-pink   { background-color: #faacf6; }

.welfareTitle {
    margin: 0 0 12px 0;
    font-size: 32px;
    font-weight: bold;
    line-height: 1.3;
    text-decoration: underline;
    text-underline-offset: 5px;
}

/* 社内インタビューの本文（interview.css .text）と同じサイズ */
.welfareText {
    margin: 0;
    font-size: 18px;
    line-height: 1.6;
}

/* スマホ表示のときだけ効く改行（<br class="spBr">） */
.welfareText br.spBr {
    display: none;
}

/* キャラクタ */
.welfareChara {
    position: absolute;
    z-index: 1;
    width: var(--chara-w, 120px);
    height: auto;
    pointer-events: none;
}

/* 隣の項目のキャラと重ならないよう、横方向は列間(40px)の半分までに収める */
.chara-tl { top: -40px; left: -20px; }
.chara-tr { top: -40px; right: -20px; }
.chara-bl { bottom: -10px; left: -20px; }
/* br は右列（社員紹介）で使うため、本文に重ならないよう外側へ大きめに逃がす */
.chara-br { bottom: -60px; right: -60px; }

.chara-side {
    right: 0;
    bottom: -20px;
    width: var(--chara-w, 160px);
}

@media only screen and (max-width: 860px) {
    .welfareArea {
        overflow-x: hidden;
        overflow-x: clip;
    }

    .welfareHeading {
        margin-left: 4.8%;
        font-size: 22px;
    }

    /* 円の外側に出るキャラの分、見出しや次の分類との間を空ける */
    .welfareList {
        gap: 100px;
        padding: 60px 0 100px;
    }

    .welfareItem {
        width: min(400px, 90vw);
    }

    /* 円を維持する。本文が円から多少はみ出るのは許容し、指定した改行位置を崩さない */
    .welfareCircle {
        width: 100%;
        height: auto;
        aspect-ratio: 1 / 1;
        padding: 0;
    }

    .welfareTitle {
        font-size: 26px;
        margin-bottom: 8px;
    }

    .welfareText {
        white-space: nowrap;
    }

    .welfareText br.spBr {
        display: inline;
    }

    .welfareItem.hasSideChara {
        padding-right: 0;
    }

    .welfareChara {
        width: calc(var(--chara-w, 120px) * 0.75);
    }

    .chara-tl { top: -80px; left: -15px; }
    .chara-tr { top: -80px; right: -15px; }
    .chara-bl { bottom: -80px; left: -15px; }
    .chara-br { bottom: -110px; right: -10px; }

    .chara-side {
        right: -10px;
        bottom: -90px;
        width: 90px;
    }
}
