/* ------------------------------------------------
PARTS :SERVICE（トップページ,サービスページ）
------------------------------------------------ */
.service {
    --min-size: 50;
    --max-size: 100;
    padding-bottom: var(--clamp-size);
}

.home .service {
    padding-top: 0;
}

.home .service .top__title2 {
    margin-bottom: var(--space-md);
}

.page-service .service {
    background: url(../img/common/bg_grey.avif) center center / 100% repeat;
}

.service__wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px min(4vw, 54px);
    margin-inline: auto;
    width: fit-content;

}

/* 5つの要素を囲う高さ指定で5つの要素の位置を制御 */
.service__circles {
    position: relative;
    width: clamp(100px, 50vw, 560px);
    aspect-ratio: 560 / 542;
    height: auto;
    container-type: inline-size;
}

/* 5つの要素 全てvwで指定して画面サイズにより縮小 */
.service__circle {
    /* 各要素下で位置を個別指定 */
    position: absolute;
    aspect-ratio: 1/1;
    width: clamp(50px, 35.7cqi, 200px);
    height: auto;
    background: #bdc6c6;
    border-radius: 999px;
    color: white;
    text-align: center;
    display: grid;
    place-items: center;
    transition: all 0.3s ease;
    background: linear-gradient(90deg, var(--color-sky), var(--color-blue));
    ;
}

/* グラデーションはtransitionが効かないため、背景色を指定 */
.service__circle::after {
    content: "";
    width: 100%;
    height: 100%;
    background: #bdc6c6;
    border-radius: 999px;
    position: absolute;
    top: 0;
    left: 0;
    transition: all 0.3s ease;
}

/* hover時とactive時に背景色を透過しグラデーションが出現 */
.service__circle:hover::after,
.service__circle.active::after {
    opacity: 0;
    transition: all 0.3s ease;
}

.service__title {
    font-size: clamp(8px, 2.85cqi, 16px);
    margin-top: 1em;
    font-weight: var(--fontWeight-black);
    color: var(--color-white);
    display: flex;
    flex-direction: column;
    align-items: center;
    row-gap: 4px;
    line-height: var(--lineHeight-150);
    position: static;
    z-index: 1;
}

/* 英語タイトル */
.service__title::before {
    content: attr(data-en);
    display: block;
    font-size: clamp(10px, 3.92cqi, 22px);
    font-family: var(--fontFamily-en);
    line-height: var(--lineHeight-1);
    letter-spacing: var(--letterSpacing-6);
}

/* アイコン */
.service__title::after {
    content: "";
    display: block;
    width: clamp(20px, 8.92cqi, 50px);
    height: clamp(20px, 8.92cqi, 50px);
}

.service__title--sales::after {
    background: url(../../assets/img/common/icon_sales.svg) no-repeat center/contain;
}

.service__title--maintenance::after {
    background: url(../../assets/img/common/icon_maintenance.svg) no-repeat center/contain;
}

.service__title--implementation::after {
    background: url(../../assets/img/common/icon_implementation.svg) no-repeat center/contain;
}

.service__title--development::after {
    background: url(../../assets/img/common/icon_development.svg) no-repeat center/contain;
}

.service__title--consulting::after {
    background: url(../../assets/img/common/icon_consulting.svg) no-repeat center/contain;
}

/* 5つの要素の配置指定 */
.service__circle--sales {
    top: 0;
    left: 50%;
    translate: -50% 0;
}

.service__circle--maintenance {
    top: 44%;
    left: 0;
    translate: 0 -50%;
}

.service__circle--implementation {
    bottom: 0;
    left: 12.5%;
}

.service__circle--development {
    bottom: 0;
    right: 12.5%;
}

.service__circle--consulting {
    top: 44%;
    right: 0;
    translate: 0 -50%;
}

/* 矢印の配置 */
.service__circle::before {
    position: absolute;
    content: "";
    top: 0%;
    left: -37%;
    /* translate: -50% -50%; */
    /* width: clamp(20px, 17.5cqi, 98px); */
    height: clamp(16px, 13.92cqi, 74px);
    background: url(../../assets/img/common/arrow_service.svg) no-repeat center / contain;
    z-index: 1;
    aspect-ratio: 98 / 74;
    rotate: -69deg;
}

.service__circle--implementation::before {
    top: 0%;
    left: -37%;
    height: clamp(16px, 13.92cqi, 74px);
    rotate: -69deg;
}

.service__circle--development::before {
    top: 80%;
    left: -31%;
    height: clamp(16px, 13.92cqi, 74px);
    rotate: 216deg;
}

.service__circle--sales::before {
    top: 30%;
    left: 101%;
    /* translate: -50% -100%; */
    width: clamp(20px, 17.5cqi, 98px);
    height: clamp(16px, 13.92cqi, 74px);
    rotate: 73deg;
}

.service__circle--maintenance::before {
    top: -39%;
    left: 42%;
    /* translate: -100% -50%; */
    width: clamp(20px, 17.5cqi, 98px);
    height: clamp(16px, 13.92cqi, 74px);
    background: url(../../assets/img/common/arrow_service.svg) no-repeat center / contain;
    rotate: 0deg;
}

.service__circle--consulting::before {
    top: 102%;
    left: 52%;
    /* translate: 100% -50%; */
    width: clamp(20px, 17.5cqi, 98px);
    rotate: 141deg;
}

.service-cards {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: min-content;
    width: clamp(100px, 35vw, 420px);
}

/* 各カード */
.service-card {
    grid-column: 1;
    grid-row: 1;
    width: min(100%, 420px);
    background-color: var(--color-white);
    padding: 10px 10px 20px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    /* デフォルトで非表示 */
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

/* jsでマウスオーバーでactiveクラスが付与された場合のスタイル */
.service-card.active {
    opacity: 1;
    transform: translateY(0);
}

/* 画像 -------- */
.service-card__image {
    aspect-ratio: 400/242;
    width: 100%;
    margin-bottom: var(--space-lg);
    overflow: hidden;

    img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

/* 文字エリア */
.service-card__content {
    width: 100%;
    padding-inline: 10px;
}

/* タイトル */
.service-card__title {
    --min-size: 16;
    --max-size: 20;
    font-size: var(--clamp-size);
    color: var(--color-sky);
    margin-bottom: 0.3em;
    line-height: var(--lineHeight-150);

}

/* コピー */
.service-card__copy {
    --min-size: 15;
    --max-size: 18;
    font-size: var(--clamp-size);
    font-weight: var(--fontWeight-bold);
    line-height: var(--lineHeight-150);
    margin-bottom: var(--space-md);
}

/* テキスト */
.service-card__text {
    font-size: 14px;
    line-height: 1.8;
    font-weight: var(--fontWeight-regular);
}

@media (max-width: 767px) {

    .page-service .service {
        background: url(../img/common/bg_grey-sp.avif) center center / 100% repeat;
    }

    .home .service .top__title2 {
        margin-bottom: clamp(24px, 2.2vw, 30px);
    }

    .service__wrap {
        flex-direction: column;
        align-items: center;
        padding: 0 var(--padding-container);

    }

    .service__circles {
        position: relative;
        aspect-ratio: 560/542;
        width: min(100%, 560px);
        height: auto;
        container-type: inline-size;
    }

    .service-cards {
        max-width: 560px;
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: var(--space-lg);
        position: static;
        /* absoluteを解除 */
    }

    /* モバイル：全カードを表示 */
    .service-card {
        /* absoluteを解除 */
        position: static;
        width: 100%;
        background-color: var(--color-white);
        padding: clamp(8px, 2.1vw, 16px) clamp(8px, 2.1vw, 16px) var(--space-xl);
        box-shadow: var(--shadow-1);
        display: flex;
        flex-direction: column;
        align-items: center;
        /* 全て表示 */
        opacity: 1;
        transform: none;
        transition: none;
        box-shadow: var(--shadow);
    }

    /* モバイルではactiveクラスの効果を無効化 */
    .service-card.active {
        opacity: 1;
        transform: none;
    }

    /* 画像 -------- */
    .service-card__image {
        aspect-ratio: 640/390;
    }

    /* グラデーションはtransitionが効かないため、背景色を指定 */
    .service__circle::after {
        content: unset;
    }
}


/* ------------------------------------------------
PARTS :KV 
------------------------------------------------ */
.kv {
    width: 100%;
    height: clamp(320px, 35.5vw, 560px);
    background-size: cover;
    background-position: center;
    color: white;
    position: relative;
}

/* メディア */
.page-media .kv {
    background-image: url(../img/page/media/kv_media.avif);
    background-position: center bottom 27%;
}

/* メディア（media-info） */
.page-media-info .kv {
    background-image: url(../img/page/media/kv_media.avif);
    background-position: center bottom 27%;
}

/* CSR */
.page-csr .kv {
    background-image: url(../img/page/csr/kv_csr.avif);
    background-position: right 25% bottom 27%;

}

/* 健康経営 */
.page-health .kv {
    background-image: url(../img/page/health/kv_health.avif);
}

/* 会社情報 */
.page-about .kv {
    background-image: url(../img/page/about/kv_about.avif);
}

/* 会社情報 */
.page-service .kv {
    background-image: url(../img/page/service/kv_service.avif);
    background-position: right 20% center;
}

/* お知らせ */
.post-type-archive-news .kv,
.single-news .kv {
    background-image: url(../img/page/news/kv_news.avif);
    background-position: left center;
}

/* スタッフ紹介 */
.post-type-archive-staff .kv,
.single-staff .kv {
    background-image: url(../img/page/staff/kv_staff.avif);
    background-position: right center;
    position: relative;
}

@media (width < 768px) {

    .kv {
        aspect-ratio: 940/690;
        width: 100%;
        min-height: 260px;
    }

    .post-type-archive-staff .kv,
    .single-staff .kv {
        background-image: url(../img/page/staff/kv_staff_sp.avif);
    }
}

.post-type-archive-staff .kv::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #11868b, #014d7f);
    opacity: 0.5;
    z-index: 1;
}


/* 事例紹介 */
.post-type-archive-case .kv,
.single-case .kv {
    background-image: url(../img/page/case/kv_case.avif);
    background-position: left 20% top 0%;
}

.kv .kv__inner {
    position: relative;
    z-index: 2;
}

.kv__title {
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    margin-top: -20px;
}

.kv__title--en {
    --min-size: 64;
    --max-size: 100;
    font-size: var(--clamp-size);
    font-family: var(--fontFamily-en);
    font-weight: var(--fontWeight-regular);
    color: var(--color-white);
    line-height: 0.9;
    /* 1文字目だけ大文字 */
    text-transform: capitalize;
    display: flex;
    flex-direction: column;
    gap: clamp(14px, 2vw, 28px);
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
}

.kv__title--en::after {
    content: "";
    display: block;
    width: clamp(36px, 4vw, 54px);
    height: 1px;
    background: var(--color-white);
}


.kv__title--ja {
    --min-size: 12;
    --max-size: 16;
    font-size: var(--clamp-size);
    font-weight: var(--fontWeight-bold);
    color: var(--color-white);
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
}

.page-csr .kv__title--en {
    text-transform: uppercase;
}

.page-privacy,
.error404 {

    /* KVをリセット */
    .kv {
        height: unset;
        padding-bottom: 0;
    }

    .kv__title {
        position: static;
    }

    .kv__title--en,
    .kv__title--ja {
        color: unset;
        width: fit-content;
        /* グラデーション文字 */
        background: var(--gradient-reverse);
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
        text-shadow: unset;
    }

    .kv__title--en::after {
        background: var(--gradient-reverse);
    }
}

@media (width < 768px) {

    .page-contact .kv,
    .page-privacy .kv,
    .error404 .kv {
        aspect-ratio: unset;
        height: unset;
        min-height: unset;
    }
}


/* ------------------------------------------------
PARTS :Catch ///CSR、健康経営、事例紹介ページ
------------------------------------------------ */
.catch {
    background: url(../img/common/bg_grey.avif) center center / 100% repeat;
    position: relative;
    padding-bottom: var(--space-5xl);
}

.catch__content {
    justify-content: space-between;
    align-items: flex-start;
    gap: 2em 1em;
    position: relative;
    z-index: 1;
}

.catch__title {
    padding-left: 0.5em;
}

.catch__copy {
    --min-size: 27;
    --max-size: 40;
    font-size: var(--clamp-size);
    font-weight: var(--fontWeight-bold);
}

.catch__text {
    line-height: var(--lineHeight-150);
    max-width: 472px;
}


.catch::after {
    display: block;
    /* グラデーションテキスト */
    background: var(--gradient-gray);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-family: var(--fontFamily-en);
    font-weight: var(--fontWeight-semi-bold);
    line-height: var(--lineHeight-1);
    position: absolute;
    z-index: 0;
    bottom: 0;
    right: 3%;
}

/* CSRページ */
.page-csr .catch::after {
    content: "CSR";
    --min-size: 50;
    --max-size: 142;
    font-size: var(--clamp-size);
    margin-bottom: -0.03em;
}

/* 健康経営ページ */
.page-health .catch::after {
    content: "Health Management";
    --min-size: 30;
    --max-size: 80;
    font-size: var(--clamp-size);
    line-height: var(--lineHeight-125);
}

/* 事例紹介の場合 ------------- */
.page-case .catch::after {
    content: none;
}

@media (width < 768px) {

    /* 背景 */
    .catch {
        background: url(../img/common/bg_grey-sp.avif) center center / 100% repeat;
    }

    /* CSRページの場合 */
    .page-csr .catch::after {
        font-size: clamp(80px, 20vw, 120px);
    }

    /* 健康経営ページ */
    .page-health .catch::after {
        font-size: clamp(30px, 10vw, 80px);
    }

    .catch__text {
        max-width: unset;
    }
}

/* ----------------------------------------
PARTS :CONSULT 無料相談
---------------------------------------- */
/* 無料相談＋採用バナーの背景 */
.banner-area {
    background: url(../img/common/bg_grey.avif) center center / 100% repeat;
    padding: var(--space-3xl) var(--padding-container) 0;
    position: relative;
}

/* 事例紹介ページ */
.post-type-archive-case .banner-area {
    background: unset;
    padding: var(--space-2xl) var(--padding-container) var(--space-lg);

}

/* グラデーションボーダー（background-clip方式） */
.consult__inner {
    border: 2px solid #45BDCE;
    background-color: #fff;
    border-radius: 15px;
    padding: clamp(32px, 4.2vw, 44px) var(--padding-container);
    margin-bottom: var(--space-2xl);
}

/* タイトル */
.consult__title {
    font-size: clamp(18px, 3.5vw, 36px);
    font-weight: var(--fontWeight-bold);
    text-align: center;
    margin-bottom: 0.5em;
    background: var(--gradient-reverse);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* テキスト */
.consult__text {
    font-size: clamp(16px, 2.7vw, 24px);
    font-weight: var(--fontWeight-bold);
    text-align: center;
    line-height: var(--lineHeight-150);
    margin-bottom: 1em;
}

/* ボタンコンテナ */
.consult__btns {
    display: flex;
    gap: 1em clamp(16px, 3.95vw, 54px);
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    container-type: inline-size;
}

/* ボタン */
.consult__btn {
    flex: 1;
    display: grid;
    place-items: center;
    padding: 1.8em 3em;
    max-width: 374px;
    width: calc(100% - 4px);
    height: calc(100% - 4px);
    /* hover時に表示されるボタンの背景 */
    background: linear-gradient(90deg, #E7340D 0%, #F39B77 100%);
    border-radius: 999px;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
    box-shadow: 0 2px 2px rgba(0, 0, 0, 0.25);
}

/* ボタンの背景 */
.consult__btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    max-width: 374px;
    width: 100%;
    height: 100%;
    border-radius: 999px;
    background: var(--gradient-reverse);
    opacity: 1;
    /* 初期状態は透明 */
    transition: opacity 0.3s ease;
    z-index: 2;
}

/* 電話ボタン用 */
.consult__btn:has(.btn-mail),
.consult__btn:has(.btn-mail)::after {
    /* width:calc(100% + 4px);
    height: calc(100% + 4px);
        top: -1px; */
}

/* 電話ボタン用 */
.consult__btn:has(.btn-tel) {
    background: var(--gradient-reverse);
    border: none;
}

.consult__btn:has(.btn-tel)::after {
    background: white;
    /* 内側は白 */
    top: 2px;
    left: 2px;
    max-width: 374px;
    width: calc(100% - 4px);
    height: calc(100% - 4px);
    border-radius: 997px;
    /* 外側より少し小さく */
    opacity: 1;
    transition: opacity 0.3s ease;
    z-index: 2;
}

/* メールボタン */
.btn-mail,
.btn-tel {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 0.5em;
    color: white;
    text-decoration: none;
    font-size: clamp(14px, 2.5vw, 22px);
    font-weight: bold;
    z-index: 3;
}

/* アイコン */
.btn-mail::before,
.btn-tel::before {
    content: '';
    background-image: url(../img/common/icon_mail.svg);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    width: 3rem;
    height: 3rem;
    margin-top: 0.05em;
    position: relative;
    z-index: 3;
}

.btn-tel::before {
    background-image: url(../img/common/icon_tel.svg);
}

/* テキストを前面に */
.btn-mail,
.btn-tel {
    position: relative;
    z-index: 3;
}

/* 電話ボタン */
.btn-tel {
    --min-size: 18;
    --max-size: 28;
    font-size: var(--clamp-size);
    font-family: "Roboto", sans-serif;

    background: white;
    /* テキストグラデーション */
    background: var(--gradient-reverse);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

@media (hover:hover) and (pointer:fine) {
    .btn-mail:hover::after {
        opacity: 1;
    }

    .consult__btn:has(.btn-tel):hover {
        background: linear-gradient(90deg, #E7340D 0%, #F39B77 100%);
        /* ボーダーの太さ */
        border: none;
    }

    .consult__btn:has(.btn-tel):hover::after {
        opacity: 0;
        /* ホバー時にグラデーション表示 */
    }

    .consult__btn:hover::after {
        opacity: 0;
        /* ホバー時に表示 */
    }

    .consult__btn:hover .btn-tel {
        color: white;
        background: unset;
        -webkit-background-clip: unset;
        background-clip: unset;
        -webkit-text-fill-color: unset;
    }

    .consult__btn:hover .btn-tel::before {
        background-image: url(../img/common/icon_tel_hover.svg);
        transition: all 0.3s ease;
    }
}

@media (width < 768px) {

    .banner-area {
        background: url(../img/common/bg_grey-sp.avif) center center / 100% repeat;
    }

    .consult__inner {
        max-width: 460px;
    }

    .consult__btns {
        flex-direction: column;
        gap: 1em;
    }

    .consult__btn {
        width: min(100%, 300px);
        padding: 1.5em 3em;
    }

}


/* ------------------------------------------------
PARTS :RECRUIT フッター上のバナー
------------------------------------------------ */
/* 背景なし */
.parts-recruit {
    --min-size: 90;
    --max-size: 100;
    padding: var(--space-2xl) 5vw var(--clamp-size);
    position: relative;
}

/* 背景ありの場合はpaddingなし service,health,staff一覧 */
.parts-recruit--bg {
    --min-size: 90;
    --max-size: 100;
    padding: var(--space-2xl) 5vw var(--clamp-size);
    padding: var(--space-2xl) 0 0;
}

.parts-recruit__inner {
    max-width: 1150px;
    min-height: 342px;
    background: url(../img/common/img_recruit.avif) no-repeat right bottom/cover;
    color: var(--color-white);
    margin-inline: auto;
    padding: var(--space-3xl) 5vw;
    position: relative;
    transition: all 0.2s ease-in-out;
}

/* ホバーで画像変更 */
.parts-recruit__inner:hover {
    background: url(../img/common/img_recruit_hover.avif) no-repeat right bottom/cover;
    transition: all 0.2s ease-in-out;
}

.parts-recruit__inner::after {
    content: "Recruit";
    --min-size: 60;
    --max-size: 130;
    font-size: var(--clamp-size);
    color: #ffffff40;
    position: absolute;
    bottom: 0;
    right: 3%;
    font-family: var(--fontFamily-en);
    font-weight: var(--fontWeight-medium);
    line-height: 0.9;
    z-index: 10;
}

.parts-recruit__content {
    max-width: 910px;
    margin-inline: auto;
    position: relative;
    z-index: 20;
}

.parts-recruit__title {
    --min-size: 32;
    --max-size: 45;
    font-size: var(--clamp-size);
    line-height: var(--lineHeight-150);
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.parts-recruit__title::after {
    content: "";
    display: block;
    height: 1px;
    width: 90%;
    margin-bottom: var(--space-md);
    background: var(--color-white);
}

.parts-recruit__copy {
    font-weight: var(--fontWeight-bold);
    margin-bottom: 28px;
}

.btn--orange {
    color: var(--color-white);
    background: var(--gradient-orange);
}

@media (width < 768px) {
    .parts-recruit__inner {
        min-height: 300px;

        padding-bottom: clamp(40px, 18vw, 100px);
    }

    .parts-recruit__inner::after {
        font-size: clamp(52px, 20vw, 120px);
    }
}