@charset "UTF-8";

/* =========================================
   Recruitment Section - 募集職種
   ========================================= */

.recruitment {
    background-color: var(--c-bg-gray);
    padding-top: 18.2rem;
    padding-bottom: 10.6rem;
    position: relative;
    overflow: hidden;
}

.recruitment__inner {
    /* PCレイアウト要件: 1段目左端・2段目右端…を実現するためにコンテナ幅を最大(1440px)に設定 */
    max-width: var(--w-page);
    margin: 0 auto;
    /* カード自体でマージン調整するため左右パディングは0 */
    padding: 0;
    position: relative;
    width: 100%;
}

/* Background Decorative Text */
.recruitment__bg-text {
    font-family: var(--font-decorative);
    font-size: 16.4rem;
    font-weight: 400;
    line-height: 1;
    letter-spacing: 0;
    color: var(--c-bg-pink-text);
    position: absolute;
    z-index: 0;
    pointer-events: none;
    user-select: none;
    top: 8rem; 
    /* ▼ PC修正: 画面端ではなく中央基準に変更 */
    left: 45%;
    /* 1440px幅のときの「left: 56px」相当の位置に調整 (720px - 664px = 56px) */
    margin-left: -61.4rem;
}

/* Section Header */
.recruitment__header {
    position: relative;
    z-index: 1;
    margin-bottom: 9.6rem;
    /* ヘッダー部分は従来のコンテンツ幅に合わせて中央寄せ */
    max-width: var(--w-content-wide);
    margin-left: auto;
    margin-right: auto;
    padding: 0 2rem; /* SPなどのための安全マージン */
}

.recruitment__title {
    font-family: var(--font-base);
    font-size: 4.8rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.1em;
    color: var(--c-text-main);
    margin-bottom: 3.6rem;
}

.recruitment__lead {
    font-family: var(--font-base);
    font-size: 1.6rem;
    font-weight: 500;
    line-height: 1.8125;
    letter-spacing: 0.1em;
    color: var(--c-text-main);
}

/* Cards Container */
.recruitment__cards {
    display: flex;
    flex-direction: column;
    gap: 5rem;
    position: relative;
    z-index: 1;
    width: 100%;
}

/* Individual Card */
.recruitment__card {
    display: flex;
    align-items: stretch;
    width: 100%;
    
    /* PCでのジグザグ配置用設定 */
    /* カード全体の幅をコンテンツ幅(1248px)に制限し、親要素(1440px)の中で左右に振る */
    max-width: var(--w-content-wide);
}

/* 奇数番目 (1段目、3段目) -> 左寄せ */
.recruitment__card:nth-child(odd) {
    margin-right: auto;
    margin-left: 0;
}

/* 偶数番目 (2段目、4段目) -> 右寄せ */
.recruitment__card:nth-child(even) {
    margin-left: auto;
    margin-right: 0;
}

/* Reverse card (2nd and 4th) - 写真とテキストの配置反転 */
.recruitment__card--reverse {
    flex-direction: row-reverse;
}

/* Card Visual (Photo side) */
.recruitment__card-visual {
    width: 50%;
    flex-shrink: 0;
}

.recruitment__card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Card Body (Text side) */
.recruitment__card-body {
    width: 50%;
    background-color: var(--c-primary);
    padding: 5rem 7rem;
    display: flex;
    flex-direction: column;
    
    /* コンテンツを上下中央に配置 */
    justify-content: center;
    position: relative;
}

/* Border radius for normal cards (1st and 3rd - photo left, text right) */
.recruitment__card:not(.recruitment__card--reverse) .recruitment__card-body {
    border-radius: 0 1rem 1rem 0;
}

/* Border radius for reverse cards (2nd and 4th - text left, photo right) */
.recruitment__card--reverse .recruitment__card-body {
    border-radius: 1rem 0 0 1rem;
}

/* Card Header (Title + Arrow) */
.recruitment__card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.6rem;
}

.recruitment__card-title {
    font-family: var(--font-base);
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1.357;
    letter-spacing: 0.1em;
    color: #fff !important;
    word-break: keep-all;
	overflow-wrap: break-word;
}

/* Arrow Icon */
.recruitment__card-arrow {
    width: 4rem;
    height: 4rem;
    min-width: 4rem;
    background-color: var(--c-text-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 2rem;
    flex-shrink: 0;
    color: var(--c-primary);
}

.recruitment__card-arrow svg {
    width: 2rem;
    height: 2rem;
    /* 以前のfillからstrokeに変更（線画矢印のため） */
    stroke: currentColor;
    fill: none;
}

/* Card Description Text */
.recruitment__card-text {
    font-family: var(--font-base);
    font-size: 1.6rem;
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: 0.1em;
    color: var(--c-text-white);
}

/* =========================================
   Responsive - SP Version (768px以下)
   ========================================= */
@media (max-width: 76.8rem) {
    .recruitment {
        padding-top: 7.1rem;
        padding-bottom: 5.4rem;
    }

    .recruitment__inner {
        padding: 0 0.8rem;
        /* SPでは幅制限を解除・リセット */
        max-width: 100%;
    }

    /* Background Decorative Text - SP */
    .recruitment__bg-text {
        font-size: 7.7rem;
        left: 0.8rem;
        top: 2.5rem;
        /* ▼ SP修正: PC用のマージンをリセット */
        margin-left: 0;
    }

    /* Section Header - SP */
    .recruitment__header {
        margin-bottom: 3.9rem;
        padding: 0 0.7rem;
        margin-left: 0;
        margin-right: 0;
    }

    .recruitment__title {
        font-size: 2.2rem;
        margin-bottom: 2.3rem;
    }

    .recruitment__lead {
        font-size: 1.4rem;
        line-height: 1.6;
    }

    /* Cards Container - SP */
    .recruitment__cards {
        gap: 2.9rem;
    }

    /* Individual Card - SP */
    .recruitment__card {
        flex-direction: column;
        max-width: 100%;
        margin: 0 !important; /* PCの左右寄せをリセット */
    }

    /* Override reverse for SP - always vertical stack */
    .recruitment__card--reverse {
        flex-direction: column;
    }

    /* Card Visual - SP */
    .recruitment__card-visual {
        width: 100%;
        height: 13.7rem;
    }

    .recruitment__card-img {
        border-radius: 1rem 1rem 0 0;
        height: 13.7rem;
        object-position: center;
    }

    /* Card Body - SP */
    .recruitment__card-body {
        width: 100%;
        padding: 1.9rem 2.2rem 2.8rem;
        border-radius: 0 0 1rem 1rem !important;
        /* SPでも上下中央配置を維持 */
        justify-content: center;
    }

    /* Card Header - SP */
    .recruitment__card-header {
        margin-bottom: 1.5rem;
		gap: 1rem;
    }

    /* Arrow Icon - SP */
    .recruitment__card-arrow {
        width: 2.2rem;
        height: 2.2rem;
        min-width: 2.2rem;
        margin-left: 1rem;
    }

    .recruitment__card-arrow svg {
        width: 1.2rem;
        height: 1.2rem;
    }

    /* Card Description Text - SP */
    .recruitment__card-text {
        font-size: 1.4rem;
        line-height: 1.6;
    }
}

/* =========================================
   Tablet/Small PC (819px - 1024px) Adjustments
   ========================================= */
@media screen and (min-width: 819px) and (max-width: 1024px) {

    /* エリアの上下余白は広げつつ、左右の余白を少しだけ狭める（4vw → 2vw） */
    .recruitment {
        padding-top: 12rem;
        padding-bottom: 8rem;
        padding-left: 2vw;  /* 4vwから2vwへ狭めました */
        padding-right: 2vw; /* 4vwから2vwへ狭めました */
    }

    /* 「募集職種」文字サイズをPC表示用に変更 */
    .recruitment__title {
        font-size: 4.8rem;
        margin-bottom: 3.6rem;
    }

    /* 背景RecruitmentをPC表示用のサイズに変更し、少し右へずらす */
    .recruitment__bg-text {
        font-size: 16.4rem;
        top: 8rem;
        left: 50%;             /* 45%から50%へ変更 */
        margin-left: -40rem;   /* -61.4remから数値を小さく（0に近づける）して右へ移動 */
    }

    /* 4枚の写真の高さを広げる */
    .recruitment__card-visual {
        height: 35rem; 
    }

    .recruitment__card-img {
        height: 100%;
        border-radius: 1rem 1rem 0 0;
    }
}

/* =========================================
   Tablet Portrait / Large SP (767px - 818px) Adjustments
   ========================================= */
@media screen and (min-width: 767px) and (max-width: 818px) {

    /* 4枚の写真の高さを広げる */
    .recruitment__card-visual {
        /* 元の13.7remから大きく広げます。お好みに合わせて数値を調整してください */
        height: 30rem; 
    }

    .recruitment__card-img {
        height: 100%;
        object-fit: cover; /* 写真が歪まないように枠いっぱいにトリミング */
    }
}


