/* =========================================================
   recruit.css  (/recruit 共通)
   - Section Head
   - Card Grid (ABOUT / PEOPLE)
   - EVENT block (暫定HTML)
   - Utilities
   Breakpoints:
     -- sp: <= 767px
     -- tb: 768–1024px
   ※ ベースの .container はテーマ側のを使用
========================================================= */
.recruit-common header {
    background-color: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(20px);
    transition: var(--transition);

}


/* 共通 */

.recruit-section-head {
    margin-bottom: clamp(40px, 5vw, 64px);
}

body:not(.recruit-people) .hero--recruit .breadcrumb a,
body:not(.recruit-people) .hero--recruit .breadcrumb span {
    color: var(--color-white);
}

body:not(.recruit-people) .hero--recruit .breadcrumb li:not(:last-child) span {
    opacity: .8;
}

.recruit-people .hero--recruit .breadcrumb a,
.recruit-people .hero--recruit .breadcrumb span {
    color: var(--color-text) !important;
}

.recruit-people .hero--recruit .breadcrumb li:not(:last-child) span {
    opacity: .5;
}

.hero--recruit {
    background-image: var(--hero-bg, none);
    background-size: cover;
    background-position: top;
    background-repeat: no-repeat;
    position: relative;
    top: -84px;
    margin-bottom: -84px;
}

@media screen and (max-width: 767px) {
    .hero--recruit {
        top: -58px;
        margin-bottom: -58px;
        background-image: var(--hero-bg-sp, var(--hero-bg, none));
    }
}

/* ------------ RECRUIT HERO ------------- */
.recruit-archive .hero--recruit {
    min-height: clamp(480px, 95vh, 95vh);
    display: flex;
    align-items: stretch;
    flex-direction: column;
    background-position: bottom;
}

.recruit-archive .hero--recruit .recruit-hero__inner {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
    padding: clamp(120px, 20vw, 145px) clamp(24px, calc(8.333vw), 80px) 22px;
}

.recruit-archive .recruit-hero__heading {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
}

.recruit-archive .recruit-hero__heading .hero__sub-copy {
    font-size: clamp(14px, 2vw, 18px);
}

@media (max-width: 767px) {
    .recruit-archive .hero--recruit {
        min-height: 480px;
        max-height: 480px;
    }

    .recruit-archive .hero--recruit .recruit-hero__inner {
        padding-bottom: 26px;
    }
}


.hero-sidebar--recruit .hero-sidebar__label {
    color: var(--color-white);
    margin-bottom: clamp(16px, 2vw, 24px);
}

.hero-sidebar--recruit .hero-sidebar__label span:nth-child(2) {
    background-color: var(--color-white);
}

.hero-sidebar--recruit .hero-sidebar__title {
    color: var(--color-white);
    font-weight: 600;
    margin-bottom: clamp(8px, 2vw, 8px);
}

.hero--recruit .hero__copy {
    font-family: var(--font-sans-jp);
    white-space: pre-line;
    font-weight: 600;
    font-size: clamp(32px, 5vw, 48px);
    line-height: 160%;
    letter-spacing: 0;
    color: var(--color-white);
    margin-inline: 0;
}

/* ------------ RECRUIT HERO SUB------------- */

.hero--recruit {
    height: auto;
}

.recruit-people .hero--recruit {
    border-bottom: 1px solid rgba(0, 0, 0, .1);
}

@media screen and (max-width: 767px) {
    .recruit-people .hero--recruit {
        border: none;
    }
}

.recruit-people .hero--recruit .recruit-hero__inner {
    position: relative;
    padding: clamp(120px, 20vw, 220px) clamp(24px, calc(8.333vw), 80px) 48px;
}

.single-recruitment-information .hero--recruit .recruit-hero__inner,
.single-message .hero--recruit .recruit-hero__inner {
    padding: clamp(120px, 20vw, 220px) clamp(24px, calc(8.333vw), 80px) clamp(48px, calc(8.333vw), 120px);
}

.single-company .hero--recruit .recruit-hero__inner,
.single-business .hero--recruit .recruit-hero__inner,
.single-environment .hero--recruit .recruit-hero__inner {
    position: relative;
    padding: clamp(120px, 20vw, 220px) clamp(24px, calc(8.333vw), 80px) clamp(48px, calc(4vw + 16px), 81px);
}


body:not(.recruit-archive) .hero--recruit .h2-title-en {
    font-size: clamp(32px, 7vw, 40px);
}

.recruit-people .hero--recruit .h2-title-jp {
    color: var(--color-text);
}

.recruit-people .hero--recruit .h2-title-jp span:nth-child(2) {
    background-color: var(--color-text);
}

.recruit-people .hero--recruit .h2-title-en {
    font-size: clamp(24px, 7vw, 40px);
    color: var(--color-text);
}

.recruit-people .hero--recruit {
    background-size: contain;
    background-position: right bottom;
}

@media screen and (max-width: 767px) {
    .recruit-people .hero--recruit {
        background-position: right bottom -10%;
    }
}


/*==============================================================
/ 企業情報トップ（archive）
/==============================================================*/
.recruit-top-message {
    position: relative;
    overflow: hidden;
    margin: 0 calc(50% - 50vw);
    width: 100vw;
    height: 100%;
}

/* タイトル文字位置のための調整 */
.recruit-top-message {
    --cutline: clamp(576px, 60vw, 810px);
    position: relative;
}

.recruit-top-message .tm-container {
    position: relative;
    min-height: var(--cutline);
    top: -84px;
    margin-bottom: -84px;
}

/* 背景画像（全面に敷く） */
.recruit-top-message .tm-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.recruit-top-message .tm-bg picture,
.recruit-top-message .tm-bg img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* うっすら暗くして文字を読みやすく（任意） */
.recruit-top-message .tm-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background-color: var(--color-red);
    z-index: -1;
}

/* 左下テキスト */
.recruit-top-message .tm-text {
    position: absolute;
    content: "";
    top: 50%;
    left: 50%;
    transform: translateY(-50%);
    z-index: 1;
    color: var(--color-white);
    font-weight: 500;
    font-size: clamp(16px, 2vw, 20px);
    line-height: 200%;
}
.recruit-top-message .tm-img {
    max-height: 653px;
    overflow: hidden;
}
@media screen and (max-width: 767px) {

    .recruit-top-message .tm-container {
        top: -58px;
        margin-bottom: -58px;
    }

    .recruit-top-message .tm-text {
        padding: 0 25px;
        left: 0;
    }
}

/* タイトルを区切り線の中心に重ねる */

.tm-ttl-container .h2-title-en {
    position: absolute;
    top: var(--cutline);
    transform: translateY(-50%);
    margin: 0;
    display: inline-block;
    z-index: 2;
}

.tm-ttl-container .h2-title-jp {
    position: absolute;
    top: -25px;
    z-index: 2;
}

.tm-ttl-container {
    pointer-events: auto;
}

.tm-ttl-container .h2-title-jp,
.tm-ttl-container .h2-title-en {
    color: var(--color-white);
}

.tm-ttl-container .h2-title-jp span:nth-child(1) {
    background-color: var(--color-black);
}

.tm-ttl-container .h2-title-jp span:nth-child(2) {
    background-color: var(--color-white);
}

.tm-message {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(32px, 4vw, 120px);
    padding-block: clamp(40px, 5vw, 64px) clamp(80px, 4vw, 160px);
}

.tm-message .tm-message__copy {
    font-weight: 500;
    font-size: clamp(24px, 3vw, 32px);
}

.tm-message .tm-message__text {
    display: flex;
    flex-direction: column;
    gap: 32px;
    color: #333333;
    letter-spacing: 0.05em;
}

.tm-message .btn-arrow {
    margin-inline: 0;
    color: var(--color-text);
}

@media screen and (max-width: 1024px) {
    .tm-message {
        grid-template-columns: 1fr;
    }
}

/*  ABOUTセクション */
.recruit-about {
    background-color: var(--color-light-gray);
    padding-block: clamp(80px, 10vw, 160px);
    margin: 0 calc(50% - 50vw);
    width: 100vw;
    display: flex;
    flex-direction: column;
    gap: clamp(80px, 10vw, 160px);
    overflow-x: hidden;
}



/* ===== Card grid ===== */
.recruit-card-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 48px 32px;
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 1024px) {
    .recruit-card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .recruit-card-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== PEOPLEセクション =====*/
.recruit-people-swiper {
    overflow: visible;
    width: calc(100vw - 80px);
    padding-right: 80px;
    margin: 0;
}

@media (max-width: 767px) {
    .recruit-people-swiper {
        width: calc(100vw - 40px);
        padding-right: 20px;
    }
}
.recruit-people-swiper .swiper-wrapper {
    box-sizing: border-box;
    width: 100vw;
}

/* ===== Card ===== */
.recruit-card {
    overflow: hidden;
    position: relative;
    max-width: calc(33vw - 60px);
}

@media (max-width: 1023px) {
    .recruit-card {
        max-width: calc(50vw - 80px);
    }
}

@media (max-width: 767px) {
    .recruit-card {
        max-width: 85vw;
    }
}

.recruit-card a {
    display: block;
    color: inherit;
    text-decoration: none;
    outline: none;
}

.recruit-card a:focus-visible {
    outline: 3px solid var(--color-red, #e4002b);
    outline-offset: 2px;
}

/* サムネイル */
.recruit-card .thumb {
    position: relative;
    overflow: hidden;
}


.recruit-card-grid--about .thumb {
    aspect-ratio: 1/1;
    margin-bottom: 27px;
}

.recruit-card .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1);
    transition: var(--transition);
    border-radius: var(--radius-md);
}

@media (hover: hover) and (pointer: fine) {

    .recruit-card a:hover .thumb img,
    .recruit-card a:focus-visible .thumb img {
        transform: scale(1.04);
    }
}

/* ラベル＋矢印 */
.recruit-card__link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.recruit-card__label {
    font-weight: 500;
    font-size: clamp(20px, 3vw, 24px);
    line-height: normal;
    transition: var(--transition);
}

.recruit-card__link img {
    width: clamp(24px, 3vw, 32px);
    height: clamp(24px, 3vw, 32px);
    flex: 0 0 auto;
}


@media (hover: hover) and (pointer: fine) {
    .recruit-card a:hover .recruit-card__label {
        color: var(--color-red, #e4002b);
    }
}

/* ===== PEOPLE だけの見た目 ===== */
.recruit-card-grid--people .recruit-card {
    position: relative;
}

.recruit-card--people .thumb {
    aspect-ratio: 16 / 9;
    margin-bottom: 24px !important;
}

/* 16:9に */
.recruit-card__meta {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 1;
}

.h2-title-jp.recruit-card__category {
    font-size: 12px;
    margin: 24px 0 16px;
    line-height: 1.2;
}

.h2-title-jp.recruit-card__category span:nth-child(2) {
    background-color: var(--color-black);
}

.recruit-card__badge {
    display: inline-block;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -.03em;
}

.recruit-card__badge::after {

    content: "";
    display: inline-block;
    width: 20px;
    height: 1px;
    background-color: var(--color-white);
    vertical-align: middle;
    margin-left: 8px;
    margin-bottom: 2px;
}

.recruit-card__badge-num {
    display: inline-block;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -.03em;
    margin-left: 8px;
}

/* 空状態 */
.recruit-card--empty {
    padding: clamp(24px, 4vw, 32px);
    text-align: center;
    color: var(--color-text-muted, #666);
    background: var(--color-surface, #fff);
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .04);
}


/* ------------- EVENT block (暫定) -------------- */
.recruit-event {
    margin-top: clamp(40px, 6vw, 80px);
}

.event-lead {
    margin-bottom: clamp(40px, 6vw, 64px);
    color: #444;
}

.event-lead .event-lead__title {
    font-weight: 600;
    margin-bottom: 16px;
}

.event-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    overflow: hidden;
    padding: clamp(20px, 3vw, 64px);

}

.event-card__head {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: clamp(32px, 5vw, 48px);
}

.event-card .badge {
    color: var(--color-text);
    font-size: clamp(12px, 1.6vw, 14px);
    font-weight: 500;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 8px 24px;
    max-width: 87px;
    max-height: 38px;
    background: #E0E5E9;
}

.event-card .date {
    font-size: clamp(12px, 1.6vw, 14px);
    color: #333;
}

.event-card__body p {
    margin-bottom: 32px;
}

.event-card__title {
    font-weight: 500;
    font-size: clamp(20px, 3vw, 24px);
    margin-bottom: clamp(32px, 5vw, 48px);
}

.event-card__desc {
    color: #333;
    line-height: 1.9;
    margin-bottom: 32px;
}

.event-card__schedule p {
    margin: .5em 0;
    font-weight: 700;
    color: #111;
}

.event-card__schedule ul {
    margin-bottom: 32px;
    padding: 0;
    list-style: none;
}

.event-card__schedule li {
    break-inside: avoid;
    position: relative;
    padding-left: 16px;
}

.event-card__schedule li::before {
    content: '・';
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    margin-right: 8px;
}

.event-card__cta {
    margin-top: .8em;
}

.event-card__cta .btn-arrow {
    margin-inline: 0;
}


/*==============================================================
/ ページ共通設定
/==============================================================*/
.hero__sub-copy {
    font-family: var(--font-sans-jp);
    font-size: clamp(14px, 2vw, 20px);
    color: var(--color-white);
    font-weight: 500;
    position: relative;
}

.recruit-company .hero__title,
.recruit-environment .hero__title,
.recruit-business .hero__title {
    margin-bottom: 12px;
}

.recruit-common .entry-content {
    width: 100%;
    max-width: 1064px;
    margin-inline: auto;
    padding: clamp(80px, 10vw, 160px) 0;
}

.recruit-people .entry-content {
    padding: 0 0 clamp(80px, 10vw, 160px);
}

.recruit-common .entry-section {
    padding: 0 0 clamp(48px, 10vw, 64px);
}

.recruit-common .entry-section:last-child {
    padding-bottom: 0;
}

.recruit-recruitment-information .entry-section,
.recruit-business .entry-section,
.recruit-company .entry-section,
.recruit-environment .entry-section {
    padding: clamp(24px, 5vw, 40px) 0 clamp(80px, 10vw, 120px);
    border-bottom: 1px solid rgba(0, 0, 0, .1);
}

.recruit-recruitment-information .entry-section:last-child,
.recruit-business .entry-section:last-child,
.recruit-company .entry-section:last-child,
.recruit-environment .entry-section:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.recruit-section-title-sub {
    font-size: clamp(10px, 2vw, 12px);
}

.h2-title-jp.recruit-section-title-sub span:nth-child(2) {
    background-color: var(--color-black);
}


.section-heading-large .recruit-section-title {
    font-family: var(--font-latin);
    font-size: clamp(48px, 2.273rem + 3.64vw, 80px);
    margin-bottom: clamp(40px, 2.273rem + 3.64vw, 48px);
    color: var(--color-primary);
    font-weight: 600;
    line-height: 100%;
    letter-spacing: clamp(-0.03em, 2.273rem + 3.64vw, 0em);
}

.recruit-section-title {
    margin-bottom: clamp(48px, 10vw, 80px);
    font-weight: 500;
}

.recruit-common .entry-content .rectuit-entry__cta .btn-arrow {
    margin-inline: auto;
}

.recruit-common:not(.recruit-business) .entry-content figure {
    margin-bottom: clamp(48px, 10vw, 64px);
}

.recruit-common:not(.recruit-business) .entry-content figure:last-of-type {}

.recruit-common .entry-content figure figcaption {
    font-size: clamp(16px, 2vw, 18px);
    text-align: right;
}

.recruit-common .entry-content figure figcaption small {
    font-size: clamp(12px, 1.6vw, 14px);
}

.recruit-common .entry-content .entry-section__body p,
.recruit-common .entry-content .entry-section__body dt,
.recruit-common .entry-content .entry-section__body dd {
    margin-bottom: clamp(24px, 5vw, 40px);
}

.recruit-common .entry-content .entry-section__body dt {
    font-size: clamp(16px, 2vw, 20px);
    font-weight: 500;
}

.recruit-common .entry-content .rectuit-entry__cta .btn-arrow {
    margin-inline: 0 !important;
}

.entry-section__body--grid {
    display: grid;
    gap: clamp(40px, 10vw, 140px);
    grid-template-columns: repeat(2, 1fr);
}

@media screen and (max-width: 767px) {
    .entry-section__body--grid {
        grid-template-columns: 1fr;
    }
}

/*==============================================================
/ 採用情報
/ slug: recruit-information
/ class: recruit-recruitment-information
/==============================================================*/


/* ==============　　　　　採用フロー　　　　　　============= */

/* 共通変数 */
.recruit-flow {
    --accent: var(--color-red, #c4001a);
    --muted: #F5F7F8;
    --text: var(--color-text, #111);
    --text-white: var(--color-white, #fff);
    --rail: rgba(0, 0, 0, .1);
    --dot-outer: #F7EDEE;
    /* レール太さ */
    --rail-w: 2px;
    /* PC 側：レールとカードの縦オフセット & 列間 */
    --rail-center: calc(var(--rail-w)/2);
    --gap-top: clamp(24px, 3vw, 32px);
    --col-gap: clamp(16px, 2vw, 24px);
    /* SP 側：レールX位置とカードとの横オフセット、段落間 */
    --rail-x: 24px;
    --gap-left: 24px;
    --row-gap: 14px;
}

.recruit-flow__wrap {
    position: relative;
}

/* START ラベル */
.recruit-flow__start {
    font-family: var(--font-latin);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0;
    position: absolute;
    width: auto;
    top: -8px;
    left: 3px;
}

/* --- リスト配置（PC: 横並び / SP: 縦並び） --- */
.recruit-flow__list {
    list-style: none;
    margin: 0;
    padding: clamp(24px, 3vw, 32px) 0 0;
    display: flex;
    gap: clamp(16px, 2vw, 24px);
    position: relative;
}

.recruit-flow__item {
    flex: 1;
    position: relative;
}

/* レール（PC: 水平） */
.recruit-flow__list::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    height: 2px;
    width: 100%;
    background: var(--rail);
    top: 0;
    height: var(--rail-w);
    display: none !important;
}

/* 各ステップのマーカー（PC: 上辺中央） */
.recruit-flow__item {
    position: relative;
}

.recruit-flow__item::before,
.recruit-flow__item::after {
    pointer-events: none;
    content: "";
    position: absolute;
    /* 円の中心をレール中心に合わせる */
    top: calc(var(--rail-center) - var(--gap-top));
    left: 50%;
    transform: translate(-50%, -50%);
}

.recruit-flow__item::before {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--dot-outer);
}

.recruit-flow__item::after {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 6px rgba(196, 0, 26, .06);
    /* 薄い外郭を足す */
}

/* カード本体 */
.recruit-flow__card {
    background: var(--muted);
    padding: 24px 0;
    text-align: center;
    min-height: 240px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: start;
    gap: 40px;
    position: relative;
}

.recruit-flow__num {
    margin-bottom: 0 !important;

}

@media screen and (max-width: 767px) {
    .recruit-flow__num span {
        padding-right: .5em;
    }
}

.recruit-flow__card::before {
    content: "";
    position: absolute;
    /* マーカー中心と同じ高さ（前に指定していた値を継承/上書き） */
    top: calc(var(--rail-center) - var(--gap-top));
    left: 50%;
    width: calc(100% + var(--col-gap));
    /* ← カード幅100% + ギャップ分 = 次カードの中心まで */
    height: var(--rail-w);
    background: var(--rail);
    pointer-events: none;
}

.recruit-flow__item:last-child .recruit-flow__card::before {
    display: none;
}


.recruit-flow__num {
    font-family: var(--font-latin);
    color: var(--accent);
    font-weight: 600;
    line-height: 1.2;
    font-size: clamp(14px, 1.4vw, 16px);
    margin: 0;
    position: relative;
}

.recruit-flow__num::after {
    content: "";
    display: block;
    width: 26px;
    height: 1px;
    background: var(--rail);
    margin: 6px auto 0;
}

.recruit-flow__label {
    margin: 0;
    color: var(--text);
    font-weight: 600;
    font-size: 14px;
    line-height: 1.6;

    @media screen and (max-width: 767px) {
        font-size: 16px;
    }
}

/* 強調（赤ベタ） */
.recruit-flow__item.is-emphasis .recruit-flow__card {
    background: var(--accent);
    color: var(--text-white);
}

.recruit-flow__item.is-emphasis .recruit-flow__num,
.recruit-flow__item.is-emphasis .recruit-flow__label {
    color: var(--text-white);
}

.recruit-flow__item.is-emphasis .recruit-flow__num::after {
    background: rgba(255, 255, 255, .35);
}

/* --- 1024px以下：縦フロー --- */
@media (max-width: 1024px) {
    .recruit-flow__start {
        position: static;
    }

    .recruit-flow__list {
        display: block;
        padding-left: calc(var(--rail-x) + var(--gap-left)) !important;
        padding-top: 0 !important;
    }

    /* レールを縦に */
    .recruit-flow__list::before {
        left: var(--rail-x);
        top: 0;
        width: var(--rail-w);
        height: 100%;
    }

    .recruit-flow__item {
        padding-bottom: var(--row-gap);
    }

    .recruit-flow__item:last-child {
        padding-bottom: 0;
    }

    /* マーカーを左に */
    .recruit-flow__item::before,
    .recruit-flow__item::after {
        left: calc(var(--rail-x) - (var(--rail-x) + var(--gap-left)));
        /* = -gap-left */
        top: 47%;
        transform: translate(-50%, -50%);
    }

    .recruit-flow__card {
        position: relative;
        text-align: left;
        max-width: unset;
        min-height: 72px;
        display: grid;
        grid-template-columns: auto 1fr;
        align-items: center;
        gap: 24px;
        padding: 16px;
    }

    /* 上半分（前アイテムの下半分と繋がる） */
    .recruit-flow__card::before,
    .recruit-flow__card::after {
        content: "";
        position: absolute;
        left: calc(-1 * var(--gap-left) - var(--rail-center));
        /* レール中心に合わせる */
        width: var(--rail-w);
        background: var(--rail);
    }

    .recruit-flow__card::before {
        top: 0;
        height: 50%;
    }

    /* 下半分：自カード中心 → ボトム（padding分も含む） */
    .recruit-flow__card::after {
        top: 50%;
        height: calc(50% + var(--row-gap));
    }

    /* 先頭は上半分不要、末尾は下半分不要 */
    .recruit-flow__item:first-child .recruit-flow__card::before {
        display: none;
    }

    .recruit-flow__item:last-child .recruit-flow__card::before {
        display: block;
    }

    .recruit-flow__item:last-child .recruit-flow__card::after {
        display: none;
    }

    .recruit-flow__num {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        line-height: 1;
    }

    .recruit-flow__num::after {
        content: "";
        display: block;
        width: 1px;
        height: 16px;
        background: var(--rail);
        margin: 0;
    }
}


/* -------- 募集要項テーブル -------- */
.spec-table-wrap {
    margin-bottom: clamp(48px, 5vw, 64px);
}

.spec-table {
    width: 100%;
    border-collapse: collapse;
    /* 罫線の重なり防止 */
    table-layout: auto;
    color: inherit;
}

.spec-table th,
.spec-table td {
    padding: 24px 0;
    vertical-align: top;
    border-bottom: 1px solid var(--line-color, rgba(0, 0, 0, .1));
}

.spec-table th {
    width: clamp(120px, 14vw, 187px);
    font-size: clamp(14px, 1.4vw, 16px);
    font-weight: 600;
    padding-right: 24px;
    text-align: left;
}

/* ---------- レスポンシブ（縦並び） ---------- */
@media (max-width: 1024px) {

    .spec-table,
    .spec-table tbody,
    .spec-table tr {
        display: block;
        width: 100%;
    }

    /* 行の下線は tr に任せる（セルは余白のみ） */
    .spec-table tr {
        border-bottom: 1px solid var(--line-color, #e5e7eb);
        padding: 24px 0;
        /* 上下24px（要件どおり） */
    }

    .spec-table th,
    .spec-table td {
        display: block;
        border: 0;
        padding: 0;
        /* tr に24pxを持たせるためセルは0に */
    }

    /* th→td の間隔 合計16px */
    .spec-table th {
        margin-bottom: 16px;
    }

    /* 横幅制御解除 */
    .spec-table th {
        width: auto;
        padding-right: 0;
    }
}

.recruit-recruitment-information .entry-content .rectuit-entry__cta .btn-arrow {
    margin-inline: auto !important;
}

/* リスト */
.faq-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: clamp(12px, 1.4vw, 16px);
}

/* アイテム */
.faq-item {
    background: #F5F7F8;
}

/* 見出し（Q行） */
.faq-head {
    all: unset;
    /* ボタンのデフォルト解除 */
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    padding: 32px;
    cursor: pointer;
    box-sizing: border-box;
}


/*==============================================================
/ 代表メッセージ
/ slug: message
/ class: recruit-message
/==============================================================*/
.recruit-message .hero--recruit {
    background-position: right bottom;
}

.recruit-message .recruit-section-title {
    margin-bottom: clamp(32px, 4vw, 40px);
}

.recruit-message figure img {
    border-radius: var(--radius-md);
}

.recruit-message figure img {
    aspect-ratio: 67 / 25;
    object-fit: cover;
    object-position: center;
    width: 100%;
    height: 100%;
    display: block;
    margin: 0;
    padding: 0;
    border: 0;
}

@media screen and (max-width: 767px) {
    .recruit-message figure img {
        aspect-ratio: 1.4/1;
    }

    .recruit-message figure img.message-img02 {
        object-position: right center;
    }
}

/*==============================================================
/  働く環境を知る
/ slug: environment
/ class: recruit-environment
/==============================================================*/
.benefits-grid {
    --icon-size: 200px;
    /* 画像の最大幅 */
    --gap: clamp(16px, 2.5vw, 28px);
    list-style: none;
    margin: 0;
    padding: 0;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--gap) clamp(20px, 3vw, 40px);
    text-align: center;
}

.benefits-grid>li {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    max-width: 240px;
}

.benefits-grid img {
    width: var(--icon-size);
    max-width: 100%;
    height: auto;
    display: block;
}

.benefits-grid span {
    font-size: clamp(14px, 1.8vw, 16px);
    line-height: 1.7;
    color: var(--color-red);
    font-weight: 500;
}

/* レスポンシブ */
@media (max-width: 1024px) {
    .benefits-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 640px) {
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .benefits-grid img {
        --icon-size: 96px;
    }
}

/* 1枚目=全幅、2枚目以降=2カラム */
.env-gallery {
    --gap: clamp(8px, 1.6vw, 16px);
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* 2カラム */
    gap: var(--gap);
    margin-bottom: 0 !important;
}

.env-gallery>img {
    width: 100%;
    height: auto;
    display: block;
}

/* 1枚目は全幅（2カラムをまたぐ） */
.env-gallery>img:first-child {
    grid-column: 1 / -1;
}


.company-numbers__glid {
    --gap: clamp(8px, 1.6vw, 12px) 32px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* 2カラム */
    gap: var(--gap);
    margin-bottom: 0 !important;
}

.company-numbers__glid>div img {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 10px;
}

.company-numbers__glid>div:first-child {
    grid-column: 1 / -1;
}

.company-numbers__glid span {
    font-size: 14px;
    color: rgba(34, 34, 34, 0.6);
    text-align: right;
    display: block;
}

/* SPは縦1カラム */
@media (max-width:767px) {
    .company-numbers__glid {
        grid-template-columns: 1fr;
    }

    .company-numbers__glid>div:first-child {
        grid-column: auto;
    }
}

.company-outline__grid>div {
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: center;
    gap: 32px;
    margin-bottom: 0 !important;
}


.company-outline__grid figure {
    overflow: hidden;
}

.company-outline__grid figure img {
    transition: var(--transition);
}

@media (hover: hover) and (pointer: fine) {
    .company-outline__grid figure:hover img {
        transform: scale(1.05);
    }

    .company-outline__grid>div {
        align-items: stretch;
    }
}

/*==============================================================
/  人を知る
/ slug: people
/ class: recruit-people
/==============================================================*/

/* -------------------------------
     Header (リード)
------------------------------- */
.people-hero-wrapper {
    border-bottom: 1px solid #ddd;
    padding: clamp(16px, 4vw, 46px) 0;
    margin-bottom: clamp(16px, 4vw, 40px);
    background-image: url(../images/cv/hero--bg.png);
    background-size: contain;
    background-position: right center;
    background-repeat: no-repeat;
}

.people-header {
    padding: clamp(120px, 12vw, 132px) 0 48px;
    position: relative;
    top: -64px;
    margin-bottom: -64px;
}

.people-header .people-lead-title {
    font-family: 'Noto Sans JP';
    font-weight: 500;
    font-size: clamp(24px, 3vw, 40px);
    line-height: 140%;
    letter-spacing: 0.05em;
    font-feature-settings: 'palt' on;
}

.people-header .people-meta {
    font-size: 14px;
    color: #666;
}

.people-header .people-meta__company {
    margin-right: 16px;
}

@media screen and (max-width: 767px) {
    .people-hero-wrapper {
        border-bottom: none;
        margin-bottom: 0;
    }
}

/* -------------------------------
     Hero Section
------------------------------- */
/* ===== entry hero ===== */
.people-entry__hero {
    position: relative;
    isolation: isolate;
    margin: 20px calc(50% - 50vw) 0;
    width: 100vw;
}

.people-entry__hero-media {
    position: relative;
    z-index: 0;
    margin-left: 190px
}
.people-entry__hero-media:is(video, img) {
    display: block;
    width: 100%;
}
.people-entry__hero-media img {
    height: auto;
    width: 100%;
}
.people-entry__hero-media video {
    max-width: 1250px;
    max-height: 610px;
    object-fit: cover;
}

.people-entry__hero-media .cover {
    width: 100%;
    height: 100%;
    position: absolute;
    background-image: linear-gradient(45deg, rgba(0, 0, 0, 0.164) 50%, rgba(0, 0, 0, 0.384) 50%);
    background-size: 2px 2px;
    top: 0;
    left: 0;
    z-index: 0;
}

.people-hero__summary-wrap {
    position: absolute;
    z-index: 2;
    left: 0;
    top: 0;
}

.people-hero__summary {
    width: fit-content;
    background: #fff;
    padding: clamp(40px, 6vw, 80px) clamp(20px, 6vw, 40px) clamp(20px, 3vw, 40px) clamp(20px, 6vw, 80px);
    height: clamp(400px, 39vw, 515px);
    width: 400px;
}

.people-hero__category {
    display: inline-block;
    font-size: 14px;
    line-height: 1;
    padding: 8px 16px;
    background: var(--color-red);
    color: var(--color-white);
    margin-bottom: 16px;
}

.people-hero__role {
    display: block;
    font-size: clamp(12px, 1.6vw, 14px);
    margin-bottom: 8px;
}


.people-hero__name {
    font-size: clamp(20px, 1.8vw, 24px);
    line-height: 1.55;
    margin: 0 0 clamp(32px, 6vw, 80px);
}

.people-hero__detail {
    font-size: clamp(12px, 1.6vw, 14px);
    line-height: 1.8;
    letter-spacing: .05em;
}

.people-hero__lead {
    padding-top: clamp(48px, 6vw, 72px);
    padding-bottom: clamp(20px, 3vw, 40px);
}

.people-hero__lead p {
    margin: 0;
    line-height: 2;
    color: var(--color-text, #2C2A2A);
}

@media (max-width: 768px) {
    .people-entry__hero {
        margin-top: 0;
    }

    .people-hero__summary-wrap {
        position: relative;
        top: -80px;
        margin-bottom: -80px;
    }

    .people-entry__hero-media {
        margin-left: 0;
    }

    .people-entry__hero-media img,
    .people-entry__hero-media video {
        margin: 0;
        max-width: 100%;
        height: auto;
        aspect-ratio: 1/1;
        object-fit: cover;
        object-position: center center;
    }

    .people-entry__hero-media .cover {

    }

    .people-hero__summary {
        width: auto;
        height: auto;
        min-height: auto;
        margin: 16px 20px 0;
    }

    .people-hero__lead {
        padding-top: 20px;
    }
}

.recruit-people .entry-section {
    padding: clamp(64px, 6vw, 160px) 0;
}

.recruit-people .entry-section p.highlight {
    font-weight: 700;
    margin-bottom: 8px !important;
}

.recruit-people .entry-section h3 {
    font-weight: 500;
    font-size: clamp(32px, 4vw, 40px);
    line-height: 140%;
    margin-bottom: clamp(48px, 6vw, 80px);
    padding-top: clamp(20px, 3vw, 40px);
}

.recruit-people.recruit-common .entry-content .entry-section__body dt {
    font-size: clamp(16px, 2vw, 18px);
    font-weight: 700;
    margin-bottom: clamp(20px, 3vw, 24px);
}

.recruit-people.recruit-common .entry-content .entry-section__body dd {
    margin-bottom: clamp(40px, 6vw, 64px);
}

.recruit-people .recruit-section-title {
    font-size: clamp(32px, 4vw, 40px);
    margin-bottom: clamp(48px, 6vw, 80px);
    line-height: 1.5;
    font-weight: 500;
}

.recruit-people .recruit-card-grid {
    grid-template-columns: repeat(2, 1fr);
    @media (max-width: 768px) {
        grid-template-columns: 1fr;
    }
}

/* ===== Talk Members (座談会メンバー紹介) ===== */
.talk-members {
    padding-block: clamp(32px, 6vw, 72px);
}

.talk-members p,
.talk-members li,
.talk-members dt,
.talk-members dd,
.talk-members h3 {
    margin-bottom: 0 !important;
    padding: 0 !important;
}

.talk-members__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(24px, 4vw, 56px);
}

/* モバイル：画像左・テキスト右 */
.talk-members__card {
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 16px;
    align-items: start;
}

.talk-members__photo {
    width: 96px;
    aspect-ratio: 5 / 4;
    background: #EEF3F6;
    overflow: hidden;
}

.talk-members__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.talk-members__body {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.talk-members__dept {
    font-size: clamp(12px, 1.6vw, 14px);
    font-weight: 500;
}

.talk-members__role {
    font-size: clamp(12px, 1.6vw, 14px);
    font-weight: 500;
    margin-top: 2px;
}

.talk-members__name {
    font-size: clamp(20px, 3vw, 24px);
    line-height: 1.55;
    font-weight: 500;
    margin: 2px 0 8px;
}

.talk-members__facts p {
    font-size: clamp(11px, 1.6vw, 12px);
    line-height: 1.8;
    margin-bottom: 8px;
}

.talk-members__facts p:last-child {
    margin-bottom: 0;
}

/* PC：3カラム／画像をカード上部の横長に */
@media (min-width: 1024px) {
    .talk-members__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: clamp(28px, 4vw, 56px);
    }

    .talk-members__card {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    .talk-members__photo {
        width: 100%;
        aspect-ratio: 3 / 2;
        border-radius: var(--radius-md);
        margin-bottom: 24px !important;
    }

    .talk-members__dept {
        font-size: 14px;
    }

    .talk-members__role {
        font-size: 15px;
    }

    .talk-members__name {
        font-size: clamp(22px, 2.2vw, 28px);
    }

    .talk-members__facts {
        margin-top: 8px;
    }
}

/* Timeline */
h4.timeline__headder {
    font-size: clamp(20px, 3vw, 24px);
    font-weight: 500;
    margin-bottom: clamp(64px, 8vw, 80px);
}

.timeline {
    --rail-color: rgba(0, 0, 0, .1);
    --rail-w: 2px;
    --dot-outer: 24px;
    --dot-inner: 8px;
    --col-gap: 32px;
    --row-gap: 32px;
    --time-col: 6.5ch;
    --mid-col: 48px;
    --rail-start-offset: -40px;
    --rail-end-offset: 0px;
    padding-block: 8px;
}

.timeline .container {
    position: relative;
    display: grid;
    grid-template-columns: var(--time-col) var(--mid-col) 1fr;
    column-gap: var(--col-gap);
    row-gap: var(--row-gap);
    padding-inline: 0;

    @media (max-width: 768px) {
        column-gap: var(--col-gap);
        row-gap: var(--mid-col);
    }
}


/* ▼レールは擬似要素。中央列の中心に合わせる */
.timeline .container::before {
    content: "";
    position: absolute;
    left: calc(var(--time-col) + var(--col-gap) + (var(--mid-col)/2) - (var(--rail-w)/2));
    top: calc((var(--dot-outer)/2) + var(--rail-start-offset));
    bottom: var(--rail-end-offset);
    width: var(--rail-w);
    background: var(--rail-color);
    pointer-events: none;
    z-index: 0;
}

/* 左：時間 */
.timeline__time {
    font-family: var(--font-latin);
    grid-column: 1;
    align-self: start;
    font-weight: 500;
    font-size: clamp(16px, 1.6vw, 24px);
    line-height: 1.6;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0;
    color: var(--color-text);
    text-align: right;
    margin-bottom: 0 !important;
}

/* マーカー */
.timeline__marker {
    grid-column: 2;
    position: relative;
    width: var(--dot-outer);
    height: var(--dot-outer);
    place-self: start center;
    z-index: 1;
}

.timeline__marker::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: #F7EDEE;
    box-shadow: 0 0 0 2px #F7EDEE;
}

.timeline__marker::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: var(--dot-inner);
    height: var(--dot-inner);
    border-radius: 50%;
    background: var(--color-red);
}

/* 右：本文 */
.timeline__body {
    grid-column: 3;
    color: var(--color-text);
}

.timeline__title {
    margin: 0 0 8px !important;
    padding: 0 !important;
    font-weight: 500;
    font-size: clamp(16px, 4vw, 20px) !important;
    line-height: 1.4;
}

.timeline__body p {
    margin: 0 !important;
}

/* レスポンシブ（SP） */
@media (max-width: 768px) {
    .timeline {
        --col-gap: 8px;
        --row-gap: 8px;
        --time-col: 5.5ch;
        --mid-col: 40px;
    }
}



/*==============================================================
/ company-philosophy
/==============================================================*/


.company-philosophy {
    margin-top: 48px;

    @media (max-width: 768px) {
        margin-top: 40px;
    }
}

.company-philosophy__section {

    margin-bottom: 40px;

    @media (max-width: 768px) {
        margin-bottom: 32px;
    }
}

.company-philosophy__grid {
    display: flex;
    align-items: flex-start;
    gap: 40px;

    @media (max-width: 768px) {
        flex-direction: column;
        gap: 20px;
    }
}

.philo-2col {
    display: grid;
    grid-template-columns: 580px 1fr;
    gap: 76px;

}

.philo-visual {}

.company-philosophy .company-philosophy__section .company-philosophy__body .h2-title-jp {
    margin-bottom: 10px;
    font-weight: 700;
    font-size: 12px;
}

@media screen and (max-width: 1024px) {
    .philo-2col {
        grid-template-columns: 1fr;
    }

    .philo-visual {}
}

.philo-visual svg {
    width: 100%;
    height: auto;
    display: block;
    shape-rendering: geometricPrecision;
    text-rendering: geometricPrecision;
    image-rendering: optimizeQuality;
}

.philo-visual svg-ttl {
    font-family: var(--font-latin);
    font-style: normal;
    font-weight: 600;
    font-size: 24px;
    line-height: 100%;
    text-align: center;
    letter-spacing: -0.03em;
    color: #FFFFFF;
}

svg #mission,
svg #vision,
svg #value {
    shape-rendering: geometricPrecision;
    vector-effect: non-scaling-stroke;
}

/* テキスト */
.company-philosophy__body {
    flex: 1;
}

.company-philosophy .company-section-title {
    margin-bottom: 12px;
    font-family: var(--font-latin);
    font-weight: 600;
    font-size: 32px;
    line-height: 1;
}

.company-philosophy__text {}

.company-section-title--sub {
    font-weight: 400;
    font-size: 20px;

    @media (max-width: 768px) {
        font-size: 18px;
    }
}

.company-section-title--sub span {
    font-size: 14px;

    @media (max-width: 768px) {
        font-size: 14px;
    }
}

.company-philosophy__text p {
    margin: 0;
    line-height: 1.8;
    text-align: justify;
}

.company-philosophy__values {
    margin: 16px 0;
    padding-left: 1em;
    list-style: disc;
}
