.recruit__title-wrapper{
    background-color: var(--color-sunbeam);
}
.recruit__container{
    padding: 40rem 20rem 35rem;
}
.recruit-intro{
    margin-bottom: 65rem;
}
.recruit-intro__heading{
    font-weight: 600;
    margin: 0 0 30rem;
    line-height: 150%;
}
.recruit-intro__text{
    margin: 0;
    letter-spacing: 0.7rem;
}
.recruit-intro__text--spaced{
    margin-bottom: 25rem;
}
.recruit__philosophy-heading{
    margin-bottom: 30rem;
    text-align: center;
}
.recruit__philosophy-values-list{
    /* --------流用可能テンプレート START-------- */
    /* この要素配下でのみ有効なCSS変数を定義 */
    --column-gap-size: 40rem;
    --row-gap-size: 40rem;
    --column-count: 1;

    /* Flexboxを使用して、スマホは縦一列でもflexで配置 */
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    /* 行間と列間のスペースを変数参照して設定 */
    row-gap: var(--row-gap-size);
    column-gap: var(--column-gap-size);
    /* --------流用可能テンプレート END-------- */

    /* "value-counter"という名前のカウンターを0にリセット
    カウンターの名前は他の識別するためだけのものなので任意の名前で良い */
    counter-reset: value-counter;
}
.recruit__philosophy-values-item{
    /* --------流用可能テンプレート START-------- */
    /* 各アイテムの幅をギャップとコラム数の変数を参照計算して設定 */
    width: calc( ( 100% - ( var(--column-gap-size) * ( var(--column-count) - 1 ) ) ) / var(--column-count) );
    /* --------流用可能テンプレート END-------- */

    /* li要素が表示されるたびに、カウンターを1ずつ増やす - インクルメント */
    counter-increment: value-counter;
    display: flex;
    gap: 20rem;
}
.recruit__philosophy-values-title{
    margin-bottom: 35rem;
    text-align: center;
    font-family: var(--font-family-en-tertiary);
    line-height: 150%;
}
.recruit__philosophy-values-item:last-of-type{
    margin-bottom: 0;
}
.recruit__philosophy-values-item::before{
    /* counter()関数でカウンターの値を表示。
     "decimal-leading-zero"を指定することで、01, 02...のように0埋めに。 */
    content: counter(value-counter, decimal-leading-zero);
    font-size: 40rem;
    font-weight: 400;
    line-height: 48rem;
    letter-spacing: 2rem;
    font-family:var(--font-family-en-primary);
    color: var(--color-fogstone);
}
.recruit__philosophy-values-item:first-of-type::before{
    letter-spacing: 5rem;
}
.recruit__philosophy-values-term{
    margin: 0 0 10rem 0;
}
.recruit__philosophy-values-description{
    margin-bottom: 0;
}
.recruit__gallery{
    padding: 35rem 0;
}
.recruit__gallery-list{
    flex-wrap: wrap;
    display: flex;
}
.recruit__gallery-item{
    width: 50%;
    flex-shrink: 0;
    aspect-ratio: 4 / 5;
}
.recruit__gallery-image{
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.recruit__cta-link {
    width: 100%;
    max-width: 784rem;
    height: 100rem;
    padding: 10rem 40rem;
    margin: 60rem auto 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: var(--color-ocean-haze);
    border-radius: 30rem;
    font-family: var(--font-family-en-tertiary);
    line-height: 150%;
    cursor: pointer;
    text-decoration: none;
    box-sizing: border-box;
    transition: all 0.3s ease;
}
.recruit__cta-link:hover {
    opacity: 0.85; 
    color: var(--color-leaf);
}
.recruit__cta-link::after {
    content: "";
    background-image: url(../../../img/icons/icon-arrow-right-black.svg);
    width: 24rem;
    height: 12rem;
    background-size: contain;
    background-repeat: no-repeat;
    display: block;
    flex-shrink: 0;
    transition: transform 0.3s cubic-bezier(0.215, 0.61, 0.355, 1);
}
.recruit__cta-link:hover::after {
    transform: translateX(20rem);
}

.recruit__jobs{
    padding: 40rem 20rem 5rem;
}
.recruit__jobs-title{
    text-align: center;
    margin: 0 0 30rem 0;
}
.recruit-detail__cta{
    margin-top: 40rem;
    text-align: center;
}

@media screen and (min-width: 768px) {
    .recruit-intro{
        margin-bottom: 100rem;
    }
    .recruit-intro__heading{
        text-align: center;
        margin-bottom: 35rem;
        line-height: 175%;
    }
    .recruit__gallery {
        padding: 75rem 20rem;
    }
    .recruit__container{
        padding: 75rem 20rem ;
    }
    .recruit__philosophy-heading{
        margin-bottom: 65rem;
        text-align: center;
        letter-spacing: 1.8rem;
    }
    .recruit__philosophy-values-term{
        font-size: 20rem;
    }
    .recruit-intro__text{
        text-align: center;
        margin-bottom: 30rem;
    }
    .recruit__philosophy-values-list{
        /* --------流用可能テンプレート START-------- */
        /* PC用に変数のみを上書き */
        --column-gap-size: 40rem;
        --row-gap-size: 48rem;
        --column-count: 3;
        flex-direction: row;
        /* --------流用可能テンプレート END-------- */
        justify-content: center;
    }
    .recruit__philosophy-values-item{
        flex-direction: column;
    }
    .recruit__philosophy-values-title{
        margin-bottom: 60rem;
    }
    .recruit__philosophy-values-item::before{
        font-size:36rem;
        letter-spacing: 2.4rem;
    }
    .recruit__gallery{
        padding: 80rem 0;
    }
    .recruit__gallery-item{
        width: 25%;
    }
    .recruit__cta-link{
        height: 164rem;
        padding: 10rem 60rem;
        margin-top: 120rem;
    }
    .recruit__cta-link::after{
        width: 48rem;
        height: 20rem;
    }
    .recruit__jobs{
        padding: 35rem 20rem 120rem;
    }
    .recruit__jobs-title{
        margin-bottom: 60rem;
    }
    .recruit-detail__cta{
        margin-top: 60rem;
    }
}







/* リクルート詳細画面のBlock */
.recruit__main-container{
    padding-top: 0;
}
.recruit-detail__container{
    padding: 60rem 0 ;
}
.recruit-detail__page-title{
    margin-bottom: 40rem;
}
.recruit-detail__article{
    background-color: var(--color-snow);
    padding: 60rem 20rem;
}
.recruit-detail__link{
    width: 295rem;
    height: 60rem;
    font-size: 14rem;
    margin: 40rem auto 0;
    position: relative;
}
.recruit-detail__link::after{
    position: absolute;
    right: 20rem;
}
@media screen and (min-width: 768px) {
    .recruit-detail__container{
        padding: 80rem 20rem ;
    }
    .recruit-detail__article{
        padding: 80rem 104rem;
    }
    .recruit-detail__page-title{
        margin-bottom: 70rem;
    }
}

.btn--recruit{
    margin-top: 60rem;
}
@media screen and (min-width: 768px) {
    .btn--recruit{
        margin-top: 120rem;
    }
}