/* ================================================
RECRUIT - 採用情報ページ -
================================================ */

/* ········ 共通パーツ ········ */
.page-recruit {
    .container {
        padding-bottom: var(--space-7xl);

    }
}

/* ----------------------------------------
RECRUIT MESSAGE
---------------------------------------- */
.recruit-message {
    padding-top: var(--space-md);
}

.recruit-message__inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--space-lg);
}

.recruit-message__text {
    flex: 1;
    display: flex;
    gap: 2em;
    flex-direction: column;
    justify-content: center;
}

.recruit-message__img {
    /* border-radius: 3.44cqi; */
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    flex: 1;
    flex-grow: 1;

    img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

@media (width < 768px) {
    .recruit-message__inner {
        flex-direction: column;
    }
}

/* ----------------------------------------
RECRUIT WANT こんな方を募集しています
---------------------------------------- */

.want {
    background-color: var(--color-bg-l-pink);
}

.want__inner {
    container-type: inline-size;
}

.want ul {
    display: flex;
    justify-content: space-evenly;
    gap: 1em;
}

.want li {
    /* 既存スタイルはそのまま */
    display: grid;
    place-items: center;
    width: clamp(160px, 28cqi, 280px);
    aspect-ratio: 1/1;
    font-size: clamp(14px, 2cqi, 23px);
    color: #fff;
    text-align: center;
    letter-spacing: 0.06em;
    border-radius: 999px;
    background-color: var(--color-main);

    /* ここからアニメーション初期状態 */
    opacity: 0;
    transform: scale(0.9);
}

@media (width < 580px) {
    .want ul {
        flex-direction: column;
        align-items: center;
        gap: 2em;
    }

    .want li {
        width: clamp(200px, 50cqi, 300px);
        font-size: clamp(16px, 4cqi, 22px);
    }
}


/* 追加するアニメーション */
@keyframes fadeScaleIn {
    0% {
        opacity: 0;
        transform: scale(0.9);
        filter: blur(0.2rem);
    }

    100% {
        opacity: 1;
        transform: scale(1);
        filter: blur(0);
    }
}



/* 表示する時に付与するクラス */
.want li.is-visible {
    animation: fadeScaleIn 0.7s cubic-bezier(.71, 1.7, .77, 1.24) forwards;
}

.want__item {
    /* 既存のスタイル + アニメーション初期状態 */
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.6s cubic-bezier(0.69, 1.3, 0.79, 1.04), transform 0.6s cubic-bezier(0.69, 1.3, 0.79, 1.04);
}

.want__item.is-visible {
    opacity: 1;
    transform: scale(1);
}

/* ----------------------------------------
WORK 自然と文化とともに働く
---------------------------------------- */
.work {
    margin-top: var(--space-3xl);

    .heading02 {
        margin-bottom: var(--space-9xl);
    }
}

.work__wrap {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: var(--space-4xl);
    margin-bottom: 5vw;


    p {
        flex: 4;
    }

    .work__img {
        border-radius: 1.6cqi;
        overflow: hidden;
        flex: 6;
        flex-shrink: 1;

        img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
    }
}

.work__gallery {
    display: flex;
    margin-right: calc(50% - 50vw - 20px);
    max-width: 1480px;
    gap: 5vw;
    justify-content: center;
    position: absolute;
    left: 50%;
    transform: translate(calc(-50% + 20px), 0);
    width: 100%;
    padding-left: 5vw;

    div {
        border-radius: 2cqi;
        overflow: hidden;

        img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
    }

    div:nth-child(1) {
        flex: 5.5;
        aspect-ratio: 510/340;
        width: 100%;
        height: 100%;
    }

    div:nth-child(2) {
        flex: 4.5;
        width: 100%;
        height: 100%;
        aspect-ratio: 422/472;
        margin-top: var(--space-4xl);
    }
}


@media (width < 768px) {
    .work__wrap {
        flex-direction: column;
    }
}

/* ----------------------------------------
BENEFIT 福利厚生
---------------------------------------- */

.benefit {
    background-color: var(--color-bg-l-pink);
}

.benefit__list {
    background-color: #fff;
    --min-size: 20;
    --max-size: 64;
    padding: var(--space-2xl) var(--clamp-size);
    /* border-radius: 3.9cqi; */
    border-radius: var(--border-radius-lg);
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);


    h3 {
        font-size: var(--fontSize-lg);
        display: flex;
        align-items: center;
    }

    h3::before {
        content: "";
        display: inline-block;
        width: 0.8em;
        aspect-ratio: 1/1;
        margin-right: 0.3em;
        background-color: var(--color-main);
        border-radius: 999px;
        margin-top: 0.2em;
    }
}


/* ----------------------------------------
JOBS 現在募集中の求人はこちら
---------------------------------------- */
.jobs {
    background-color: var(--color-bg-beige);

    .jobs__wrap {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 1em var(--space-lg);
    }

    .jobs__item {
        display: grid;
        grid-template-rows: subgrid;
        grid-row: span 3;
        text-decoration: none;
        color: inherit;
        cursor: pointer;
        width: stretch;
        max-width: 460px;
        margin-inline: auto;
        transition: all 0.3s cubic-bezier(0.54, 0, 0.6, 0.97);

        .jobs__img {
            /* border-radius: 2.29cqi; */
            border-radius: var(--border-radius-sm);
            overflow: hidden;
            width: 100%;
            height: 100%;

            img {
                width: 100%;
                height: 100%;
                object-fit: cover;
                transition: all 0.3s cubic-bezier(0.54, 0, 0.6, 0.97);

            }
        }

        .jobs__category {
            display: flex;
            gap: 8px;
            flex-wrap: wrap;
        }

        .btn {
            width: fit-content;
            padding: 0.5em 2em;
            pointer-events: none;
        }
    }

    .jobs__item:not(:last-child) {
        margin-bottom: var(--space-2xl);
    }

    .jobs__item:hover .jobs__img img {
        transform: scale(1.1);
        transition: all 0.3s cubic-bezier(0.54, 0, 0.6, 0.97);
    }

    @media (width < 768px) {
        .jobs__wrap {
            grid-template-columns: 1fr;
        }
    }
}

a.jobs__item:hover {
    opacity: 0.9 !important;
    transition: all 0.3s cubic-bezier(0.54, 0, 0.6, 0.97);
}

/* ================================================

JOB-SINGLE: single-job

================================================ */

/* ········ JOB詳細 ········ */
.single-job .job {
    background-color: var(--color-bg-beige);

}

.job__inner {
    width: 100%;
    container-type: inline-size;
    container-name: content;
}

/* 投稿詳細のbox */
.posts {
    background-color: #fff;
    border-radius: var(--border-radius-md);
    --min-size: 20;
    --max-size: 90;
    padding: clamp(20px, 4.1vw, 60px) var(--clamp-size);
    /* padding: var(--clamp-size); */
    background-color: #fff;
}

/* サムネイル */
.posts__img {
    overflow: hidden;
    border-radius: var(--border-radius-xs);
    aspect-ratio: 16/9;
    margin-bottom: var(--space-2xl);

    img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }
}

/* カテゴリーのボタン */
.job__category{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.job__category .btn {
    color: #fff;
    pointer-events: none;
    --min-size: 6;
    --max-size: 10;
    margin-bottom:  var(--clamp-size);
}

.posts__title {
    --min-size: 21;
    --max-size: 27;
    font-size: var(--clamp-size);
    font-weight: var(--fontWeight-medium);
    line-height: 1.4;
    margin-bottom: 1em;
}

/* 本文 */
.posts__text {
    line-height: 1.8;

    p {
        margin-bottom: var(--space-md);
    }

    h1,
    h2,
    h3,
    h4,
    h5,
    h6 {
        margin: var(--space-lg) 0 var(--space-md);
        font-weight: var(--font-weight-bold);
    }

    ul,
    ol {
        margin: var(--space-md) 0;
        padding-left: var(--space-lg);
    }

    li {
        margin-bottom: var(--space-xs);
    }
}

.job__btn .btn {
    font-size: var(--fontSize-md);
    width: clamp(280px, 70%, 460px);
    margin: var(--space-3xl) auto 0;
    padding: 1.1em;
    pointer-events: all;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .posts__single {
        gap: var(--space-md);
    }
}

.single-job .jobs {
    background-color: #fff;
}

/* ----------------------------------------
求人情報用パターンブロック
---------------------------------------- */
.job__block>div {
    display: flex;
    gap: 1em;
}

.job__block:not(:last-child)>div {
    border-bottom: 1px solid var(--color-border-brown);
    margin-bottom: 1.25em;
    padding-bottom: 1.25em;
}

h2.job__label {
    margin: 0;
    width: 8em;
    font-weight: var(--fontWeight-bold);
}

.job__text p {
    margin-bottom: 0;
}

.job__text {
    flex: 1;
}

@media (width < 768px) {
    .job__block>div {
        flex-direction: column;
        gap: 0em;
    }

    h2.job__label {
        width: auto;
    }
}