/* ==============================================
   採用情報（06_1_recruit）
   ============================================== */


/* KV（採用情報専用）
--------------------------------------------- */
.recruit-kv {
    height: 1080px;
    max-height: 1080px;
}

.recruit-kv .catchcopy {
    font-size: clamp(2rem, calc(1.143rem + 3.571vw), 3.75rem);
    font-weight: 600;
    line-height: 1.5;
    color: var(--color-white);
    margin-top: 150px;
    margin-bottom: 30px;
}

.recruit-kv .catchcopy b {
    color: var(--color-secondary);
}

.recruit-kv .catchcopy-subtext {
    font-size: clamp(1rem, calc(0.714rem + 1.19vw), 1.438rem);
    line-height: 2;
    color: var(--color-white);
}


/* フッター余白なし
--------------------------------------------- */
.page-slug-recruit .site-footer {
    margin-top: 0;
}

/* sub-content 下余白を詰める（直後に全幅セクションが続くため）
--------------------------------------------- */
.page-slug-recruit .sub-content {
    padding-bottom: 60px;
}


/* セクション見出し
--------------------------------------------- */
.recruit-section-en {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 12px;
}

.recruit-section-en::before {
    content: '';
    display: inline-block;
    width: 10px;
    height: 10px;
    background: url('../images/head_icon.svg') no-repeat center / contain;
    flex-shrink: 0;
}

.recruit-section-header h2 {
    font-size: clamp(1.75rem, calc(1.266rem + 2.066vw), 2.625rem);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 40px;
}

.recruit-section-header h2::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: var(--color-secondary);
    margin-top: 12px;
}

/* 白文字バリエーション（環境・制度セクション用）
--------------------------------------------- */
.recruit-section-header--white .recruit-section-en {
    color: var(--color-white);
}

.recruit-section-header--white .recruit-section-en::before {
    filter: brightness(0) invert(1);
}

.recruit-section-header--white h2 {
    color: var(--color-white);
}

.recruit-section-header--white h2::after {
    background: var(--color-secondary);
}


/* イントロ
--------------------------------------------- */
.recruit-intro {
    display: grid;
    grid-template-columns: 1fr 490px;
    gap: 60px 80px;
    align-items: center;
    margin-bottom: 80px;
}

.recruit-intro-catch {
    font-size: clamp(1.375rem, calc(1.107rem + 1.143vw), 2.1875rem);
    font-weight: 800;
    color: var(--color-secondary);
    line-height: 1.6;
    margin-bottom: 28px;
}

.recruit-intro-body {
    line-height: 2;
    color: var(--color-text);
}

.recruit-intro-body p + p {
    margin-top: 1.5em;
}

.recruit-intro-photo {
    width: 490px;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 4px;
}

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


/* インパックを知る
--------------------------------------------- */
.recruit-about {
    background-color: var(--color-bg-beige);
    margin: 0 calc(50% - 50vw);
    width: 100vw;
    padding: 130px 0;
    margin-bottom: 130px;
}

.recruit-about-inner {
    max-width: var(--content-max-width);
    margin-inline: auto;
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 60px;
    align-items: start;
    padding-inline: 20px;
}

.recruit-about-cards {
    display: flex;
    flex-direction: column;
    gap: 40px;
    width: 100%;
    max-width: 980px;
    margin-left: auto;
}

/* カード：ラベル（左）＋ コンテンツ div（右）を横並び */
.recruit-about-card {
    display: flex;
    align-items: flex-start;
    gap: 0;
    background: var(--color-white);
    overflow: hidden;
    padding: 40px 30px 40px 0;
}

.recruit-about-label {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    align-self: flex-start;
    background-color: var(--color-primary);
    color: var(--color-white);
    border-radius: 0 50px 50px 0;
    padding: 10px 24px;
    font-size: 1.125rem; /* max 18px */
    font-weight: 700;
    letter-spacing: 0.05em;
    width: 200px;
    justify-content: center;
}

.recruit-about-card-body {
    flex: 1;
    padding-left: 28px;
}

.recruit-about-title {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: clamp(1.125rem, calc(0.964rem + 0.857vw), 1.625rem); /* max 26px */
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1.5;
    margin: 10px 0 12px;
}

.recruit-about-title::before {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    background: url('../images/head_icon.svg') no-repeat center / contain;
    flex-shrink: 0;
    margin-top: 10px;
}

.recruit-about-text {
    font-size: 1.0625rem; /* max 17px */
    line-height: 1.9;
    color: var(--color-text);
}


/* 仕事を知る
--------------------------------------------- */
.recruit-work {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 60px;
    align-items: start;
    margin-bottom: 80px;
}

.recruit-jobs {
    display: flex;
    flex-direction: column;
    gap: 40px;
    width: 100%;
    max-width: 980px;
    margin-left: auto;
}

.recruit-job {
    border: 6px solid var(--color-border-light);
    overflow: hidden;
}

.recruit-job-photo {
    width: 300px;
    height: auto;
    overflow: hidden;
    flex-shrink: 0;
}

.recruit-job-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.recruit-job:hover .recruit-job-photo img {
    transform: scale(1.04);
}

.recruit-job-body {
    padding: 40px 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 16px;
}

.recruit-job-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: clamp(1.25rem, calc(1.071rem + 0.714vw), 1.625rem);
    font-weight: 700;
    color: var(--color-primary);
}

.recruit-job-title::before {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    background: url('../images/head_icon.svg') no-repeat center / contain;
    flex-shrink: 0;
}

.recruit-job-text {
    font-size: 1rem;
    line-height: 1.9;
    color: var(--color-text);
}


/* 働く環境・制度（全幅・ネイビー背景）
--------------------------------------------- */
.recruit-env {
    position: relative;
    padding: 80px 0 100px;
    overflow: hidden;
    margin-bottom: 130px;
}

.recruit-env::before {
    content: '';
    position: absolute;
    inset: 0;
    right: 130px;
    background: url('../images/top/bg_strengths.jpg') no-repeat center / cover;
    border-radius: 0 20px 20px 0;
    z-index: 0;
}

.recruit-env::after {
    content: '';
    position: absolute;
    inset: 0;
    right: 130px;
    background: rgba(0, 50, 136, 0.88);
    border-radius: 0 20px 20px 0;
    z-index: 0;
}

.recruit-env > * {
    position: relative;
    z-index: 1;
}

.recruit-env-inner {
    max-width: var(--content-max-width);
    margin-inline: auto;
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 60px;
    align-items: start;
    padding-inline: 20px;
}

/* strength-grid を流用（top.css 非依存でスタンドアロン定義）
--------------------------------------------- */
.recruit-env .environment-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 50px;
    row-gap: 125px;
    counter-reset: strength;
    width: 100%;
    max-width: 980px;
    margin-left: auto;
}

.recruit-env .environment-grid li {
    position: relative;
    background: var(--color-white);
    border-radius: 15px;
    padding: 30px 30px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    counter-increment: strength;
}

/* 右上 "ENVIRONMENT" ラベル */
.recruit-env .environment-grid li::before {
    content: 'ENVIRONMENT';
    position: absolute;
    top: -56px;
    right: 16px;
    font-size: 0.675rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--color-white);
    line-height: 1;
}

/* 右上 連番 */
.recruit-env .environment-grid li::after {
    content: counter(strength, decimal-leading-zero);
    position: absolute;
    top: -37px;
    right: 8px;
    font-size: 4.625rem;
    font-weight: 700;
    color: var(--color-secondary);
    line-height: 1;
}

/* アイコン円形エリア */
.recruit-env .environment-grid li > div {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background-color: #f0f0f0;
    display: grid;
    place-items: center;
    margin-bottom: 20px;
}

.recruit-env .environment-grid li > div img {
    width: 80px;
    height: auto;
    object-fit: contain;
}
.recruit-env .environment-grid li:nth-child(2) > div img,
.recruit-env .environment-grid li:nth-child(4) > div img {
    width: 60px;
}
.recruit-env .environment-grid li:nth-child(3) > div img {
    width: 70px;
}


.recruit-env .environment-grid li > h3 {
    font-size: clamp(1.375rem, calc(1.243rem + 0.563vw), 1.75rem);
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 12px;
    line-height: 1.5;
    text-decoration: underline;
    text-decoration-color: rgba(219, 0, 42, 0.2);
    text-decoration-thickness: 14px;
    text-underline-offset: -5px;
    text-decoration-skip-ink: none;
}

.recruit-env .environment-grid li > p {
    font-size: clamp(0.9375rem, calc(0.894rem + 0.188vw), 1.0625rem);
    line-height: 1.8;
    color: var(--color-text);
}


/* 募集要項・エントリー CTA
--------------------------------------------- */
.recruit-cta {
    position: relative;
    padding: 150px 0;
    background: url('../images/recruit/kv_recruit.webp') no-repeat center / cover;
}

.recruit-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

.recruit-cta-inner {
    position: relative;
    z-index: 1;
    max-width: var(--content-max-width);
    margin-inline: auto;
    display: flex;
    justify-content: center;
    padding-inline: 20px;
}

.recruit-cta-box {
    background: rgba(255, 255, 255, 0.96);
    border-radius: 4px;
    padding: 60px 80px;
    text-align: center;
    width: 100%;
}

.recruit-cta-title {
    font-size: clamp(1.375rem, calc(1.107rem + 1.143vw), 2rem);
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 20px;
}

.recruit-cta-text {
    line-height: 2;
    color: var(--color-text);
    margin-bottom: 32px;
}

.recruit-cta-box .btn-more {
    margin: 0 auto;
    padding: 12px 60px 10px 24px;
    font-size: 1rem;
}


/* ==============================================
   募集要項（06_2_recruit_guidelines）
   ============================================== */

/* フッター余白なし
--------------------------------------------- */
.page-template-page-guidelines-php .site-footer,
.page-slug-guidelines .site-footer {
    margin-top: 0;
}

/* sub-content：下余白を詰める（直後に全幅セクションが続くため）
--------------------------------------------- */
.page-template-page-guidelines-php .sub-content,
.page-slug-guidelines .sub-content {
    padding-bottom: 60px;
}

/* section-header h2 サイズ（about.css 未読み込みのため転記）
--------------------------------------------- */
.page-template-page-guidelines-php .sub-content .section-header h2,
.page-slug-guidelines .sub-content .section-header h2,
.page-slug-guidelines .profile-history-inner h2 {
    font-size: clamp(1.75rem, calc(1.266rem + 2.066vw), 2.625rem);
    margin-bottom: 40px;
}

/* section-intro：左=見出し / 右=コンテンツ の2カラム（about.css 未読み込みのため転記）
--------------------------------------------- */
.page-template-page-guidelines-php .section-intro,
.page-slug-guidelines .section-intro {
    display: grid;
    grid-template-columns: 340px minmax(0, 960px);
    gap: 60px 80px;
    margin-bottom: 80px;
    align-items: start;
}

/* company-table（about.css 未読み込みのため転記）
--------------------------------------------- */
.page-template-page-guidelines-php .company-table > div,
.page-slug-guidelines .company-table > div {
    display: grid;
    grid-template-columns: 170px 1fr;
    gap: 0;
}

.page-template-page-guidelines-php .company-table dt,
.page-slug-guidelines .company-table dt {
    font-weight: 700;
    padding: 20px 0;
    border-bottom: 1px solid var(--color-secondary);
}

.page-template-page-guidelines-php .company-table dd,
.page-slug-guidelines .company-table dd {
    margin: 0;
    padding: 20px 0;
    line-height: 1.8;
    border-bottom: 1px solid #BCBCBC;
}

.page-template-page-guidelines-php .company-table > div:first-child dt,
.page-slug-guidelines .company-table > div:first-child dt {
    border-top: 1px solid var(--color-secondary);
}

.page-template-page-guidelines-php .company-table > div:first-child dd,
.page-slug-guidelines .company-table > div:first-child dd {
    border-top: 1px solid #BCBCBC;
}

/* 選考プロセス：ベージュ背景・内側レイアウト（about.css 未読み込みのため転記）
--------------------------------------------- */
.page-template-page-guidelines-php .profile-history,
.page-slug-guidelines .profile-history {
    background-color: var(--color-bg-beige);
}

.page-template-page-guidelines-php .profile-history-inner,
.page-slug-guidelines .profile-history-inner {
    max-width: var(--content-max-width);
    margin-inline: auto;
    padding: 130px 0 60px;
    padding-inline: 20px;
}

/* 求人ブロック縦並びラッパー
--------------------------------------------- */
.guidelines-jobs {
    display: flex;
    flex-direction: column;
    gap: 120px;
}

/* 職種タイトル
--------------------------------------------- */
.guidelines-job-title {
    font-size: 1.625rem;
  font-weight: 700;
  color: var(--color-primary);
  padding-left: 20px;
  margin-bottom: 25px;
  border-left: 5px solid #B2C1DB;
}

/* エントリーボタンエリア
--------------------------------------------- */
.guidelines-entry {
    margin-top: 32px;
    display: flex;
    justify-content: center;
}

.guidelines-entry .btn-more {
    padding: 12px 60px 10px 24px;
    font-size: 1rem;
}

/* フローステップリスト
--------------------------------------------- */
.flow-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: 980px;
    width: 100%;
}

.flow-step {
    background: var(--color-white);
    display: flex;
    align-items: flex-start;
    gap: 24px;
    position: relative;
}

/* ステップ間の下向き矢印
--------------------------------------------- */
.flow-step + .flow-step {
    margin-top: 90px;
}

.flow-step + .flow-step::before {
    content: '';
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    width: 52px;
    height: 30px;
    background: url('../images/recruit/arrow_red.svg') no-repeat center / contain;
}

/* ステップバッジ（STEP + 連番）
--------------------------------------------- */
.flow-step-badge {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: -6%;
    background-color: var(--color-white);
    color: var(--color-primary);
    font-size: 1.125rem;
    font-weight: 900;
    border: 3px solid var(--color-primary);
    border-radius: 50px;
    max-width: 120px;
    width: 100%;
    padding: 8px 0;
    text-align: center;
}

/* ステップ本文
--------------------------------------------- */
.flow-step-body {
    display: flex;
    align-items: center;
    width: 100%;
}

.flow-step-body h3 {
    font-size: clamp(1.125rem, calc(0.964rem + 0.857vw), 1.625rem);
    font-weight: 700;
    color: var(--color-white);
    background-color: var(--color-primary);
    max-width: 290px;
    width: 100%;
    padding: 40px 0;
    text-align: center;
}
.flow-steps li:nth-child(3) .flow-step-body h3 {
    padding: 20px 0;
}

/* 英語版：長い見出しとバッジの重なり対策（デスクトップのみ） */
@media (min-width: 1201px) {
    html[lang^="en"] .flow-step-body h3 {
        padding-left: 85px;
        padding-right: 10px;
        text-align: left;
        line-height: 1.3;
    }

    html[lang^="en"] .flow-steps li:nth-child(3) .flow-step-body h3 {
        padding-left: 85px;
        padding-right: 10px;
    }
}

.flow-step-body p {
    padding: 0 30px;
    line-height: 1.9;
}


/* ==============================================
   Responsive - Wide (〜1700px)：右余白・角丸を解除
   ============================================== */
@media (max-width: 1700px) {
    .recruit-env::before,
    .recruit-env::after {
        right: 0;
        border-radius: 0;
    }
}


/* ==============================================
   Responsive - Tablet (〜1024px)
   ============================================== */
@media (max-width: 1024px) {

    /* イントロ：1行目=catch全幅 / 2行目=body＋photo */
    .recruit-intro {
        grid-template-columns: 1fr 380px;
        grid-template-rows: auto 1fr;
        gap: 20px 40px;
        margin-bottom: 60px;
    }

    .recruit-intro-text {
        display: contents;
    }

    .recruit-intro-catch {
        grid-column: 1 / -1;
    }

    .recruit-intro-body {
        grid-column: 1;
        align-self: start;
    }

    .recruit-intro-photo {
        grid-column: 2;
        grid-row: 2;
        width: 100%;
    }

    /* インパックを知る：inner 2列→1列、cards 2列→1列 */
    .recruit-about {
        margin-bottom: 60px;
    }

    .recruit-about-inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .recruit-about-cards {
        grid-template-columns: 1fr;
    }

    /* 仕事を知る：セクション2列→1列、job カード2列→1列 */
    .recruit-work {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    /* 働く環境：inner 2列→1列、grid 全幅 */
    .recruit-env-inner {
        grid-template-columns: 1fr;
        gap: 32px;
        padding-inline: var(--content-padding-inline);
    }

    .recruit-env .environment-grid {
        row-gap: 80px;
    }

    /* CTA */
    .recruit-cta {
        padding: 60px 0;
    }

    .recruit-cta-box {
        padding: 50px 40px;
    }

    /* 募集要項・選考プロセス：2カラム→1カラム */
    .page-template-page-guidelines-php .section-intro,
    .page-slug-guidelines .section-intro {
        grid-template-columns: 1fr;
        gap: 40px;
        margin-bottom: 40px;
    }

    .flow-step-badge {
        top: 0;
        left: 0;
        transform: translateY(-50%);
        padding: 5px 0;
    }

    /* 募集要項 */
    .page-slug-guidelines .profile-history-inner {
        padding: 80px 20px 60px;
    }

}


/* ==============================================
   Responsive - Hamburger (〜1200px)
   ============================================== */
@media (max-width: 1200px) {

    .recruit-kv {
        height: 880px;
        max-height: 880px;
        background-position: center center;
    }

    .recruit-about-card {
        flex-direction: column;
    }

}


/* ==============================================
   Responsive - Mobile (〜768px)
   ============================================== */
@media (max-width: 768px) {

    .recruit-kv {
        height: 680px;
        max-height: 680px;
        background-position: center center;
    }

    /* イントロ */
    .recruit-intro {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .recruit-intro-text {
        display: block;
    }

    .recruit-intro-catch,
    .recruit-intro-body {
        grid-column: auto;
        grid-row: auto;
    }

    .recruit-intro-photo {
        grid-column: auto;
        grid-row: auto;
        width: 100%;
    }

    /* インパックを知る */
    .recruit-about-inner {
        padding-inline: 0;
    }

    .recruit-about {
        padding: 30px 20px;
        margin-bottom: 50px;
    }

    .recruit-about-card {
        padding: 20px 0;
    }
    .recruit-about-card-body {
        padding: 20px 25px 0;
    }
    .recruit-about-title::before {
        margin-top: 5px;
    }

    /* 仕事を知る */
    .recruit-work {
        margin-bottom: 50px;
    }

    .recruit-job-body {
        padding: 24px;
    }

    /* 働く環境 */
    .recruit-env {
        padding: 60px 0 70px;
    }

    .recruit-env .environment-grid {
        grid-template-columns: 1fr;
    }

    /* CTA */
    .recruit-cta-box {
        padding: 40px 24px;
    }

    .recruit-cta-box .btn-more {
        width: 100%;
        justify-content: center;
        padding-right: 45px;
    }

    /* 募集要項 */
    .page-slug-guidelines .profile-history-inner {
        padding-top: 60px;
    }

    .page-template-page-guidelines-php .company-table > div,
    .page-slug-guidelines .company-table > div {
        grid-template-columns: 1fr;
    }

    .page-template-page-guidelines-php .company-table > div:first-child dd,
    .page-slug-guidelines .company-table > div:first-child dd {
        border-top: none;
    }

    .page-template-page-guidelines-php .company-table dt,
    .page-slug-guidelines .company-table dt {
        padding: 10px;
        border-top: 1px solid var(--color-secondary);
        border-bottom: 1px solid #BCBCBC;
    }

    .page-template-page-guidelines-php .company-table dd,
    .page-slug-guidelines .company-table dd {
        padding: 10px;
        border-bottom: none;
    }

    .guidelines-lead {
        margin-bottom: 28px;
    }

    .guidelines-entry .btn-more {
        width: 100%;
        justify-content: center;
        padding-right: 45px;
    }

    /* 選考プロセス */
    .flow-step {
        padding: 0;
        gap: 16px;
    }

    .flow-step-badge {
        top: -4px;
        left: 0;
        transform: translateY(-50%);
        font-size: 1rem;
        padding: 3px 0;
    }

    .flow-step-num {
        font-size: 1.375rem;
    }

    .flow-step-body {
        flex-direction: column;
        align-items: stretch;
    }

    .flow-step-body h3 {
        max-width: 100%;
        padding: 8px 0;
    }

    .flow-steps li:nth-child(3) .flow-step-body h3 {
        padding: 8px 0;
    }

    .flow-step-body h3 br {
        display: none;
    }

    .flow-step-body p {
        padding: 20px;
    }
}
