/**
 * 採用情報ページ専用スタイル
 * 一覧前の導入（recruit-intro）＋採用セクション（recruit-section / job-list）
 */

/* ========== 採用ページ：一覧前の導入（画像左端いっぱい・テキスト右） ========== */
.recruit-intro {
    background: #fff;
    border-top: 1px solid #e9ecef;
    padding-left: 0;
    padding-right: 0;
}

.recruit-intro-row {
    margin-left: 0;
    margin-right: 0;
    padding-top: 0;
    padding-bottom: 0;
}

@media (min-width: 992px) {
    .recruit-intro-row {
        padding: 3rem 0;
    }
}

@media (max-width: 991.98px) {
    .recruit-intro-row {
        padding: 2rem 0;
    }
}

/* 60% 画像 / 30% 文章 / 10% 右余白 */
@media (min-width: 992px) {
    .recruit-intro-img-col {
        flex: 0 0 60%;
        max-width: 60%;
        order: 1;
        padding: 0;
    }
    .recruit-intro-body-col {
        flex: 0 0 30%;
        max-width: 30%;
        order: 2;
    }
    .recruit-intro-right-col {
        flex: 0 0 10%;
        max-width: 10%;
        order: 3;
        min-height: 1px;
    }
}

.recruit-intro-img-col {
    padding: 0;
}

.recruit-intro-body-col {
    order: 2;
}

.recruit-intro-img {
    min-height: 260px;
    overflow: hidden;
}

@media (min-width: 992px) {
    .recruit-intro-img {
        width: 1120px;
        max-width: 100%;
        height: 600px;
        min-height: 600px;
    }
}

.recruit-intro-img img {
    width: 100%;
    height: 100%;
    min-height: 260px;
    object-fit: cover;
    display: block;
}

@media (min-width: 992px) {
    .recruit-intro-img img {
        min-height: 600px;
    }
}

.recruit-intro-body {
    padding: 2rem 2.5rem;
    background: #fafafa;
    min-height: 260px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.recruit-intro-body .recruit-intro-ttl {
    margin-top: 1.5rem;
}

.recruit-intro-body .recruit-intro-ttl:first-child {
    margin-top: 0;
}

.recruit-intro-ttl {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.75rem;
    padding-left: 0.75rem;
    border-left: 4px solid #0378ad;
    line-height: 1.4;
}

.recruit-intro-lead {
    font-size: 1.125rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.recruit-intro-text {
    font-size: 1rem;
    color: #555;
    line-height: 1.8;
    margin: 0;
}

.recruit-intro-banner {
    max-width: 500px;
}
.recruit-intro-banner-link:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 4px;
}
.recruit-intro-banner-img {
    display: block;
    width: 100%;
    max-width: 500px;
    height: auto;
    vertical-align: middle;
}

@media (max-width: 991.98px) {
    .recruit-intro-right-col {
        display: none;
    }
    .recruit-intro-img,
    .recruit-intro-img img {
        min-height: 220px;
    }
    .recruit-intro-body {
        min-height: auto;
        padding: 1.5rem 1.25rem;
    }
}

/* recruit-intro スクロールイン（左から画像・右からテキスト・遅め・ふわっと） */
.recruit-intro:not(.is-inview) .recruit-intro-img { opacity: 0; transform: translateX(-24px); }
.recruit-intro:not(.is-inview) .recruit-intro-body { opacity: 0; transform: translateX(24px); }
.recruit-intro.is-inview .recruit-intro-img {
    animation: recruit-intro-fade-left 1.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.recruit-intro.is-inview .recruit-intro-body {
    animation: recruit-intro-fade-right 1.5s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}
@keyframes recruit-intro-fade-left {
    from { opacity: 0; transform: translateX(-24px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes recruit-intro-fade-right {
    from { opacity: 0; transform: translateX(24px); }
    to { opacity: 1; transform: translateX(0); }
}
@media (prefers-reduced-motion: reduce) {
    .recruit-intro:not(.is-inview) .recruit-intro-img,
    .recruit-intro:not(.is-inview) .recruit-intro-body { opacity: 1; transform: none; }
    .recruit-intro.is-inview .recruit-intro-img,
    .recruit-intro.is-inview .recruit-intro-body { animation: none; opacity: 1; transform: none; }
}

/* スタッフの声：独立セクション */
.recruit-staff-voice {
    background: #fff;
    border-top: 1px solid #e9ecef;
    padding-top: 3rem;
}

/* スタッフの声スライダー：通常の無限ループ（中央拡大なし・全枚同サイズ） */
.recruit-staff-voice .recruit-staff-slider-wrap {
    overflow: hidden;
    width: 100%;
    min-width: 0;
}
.recruit-staff-voice .recruit-staff-swiper {
    overflow: hidden;
    width: 100%;
}
.recruit-staff-voice .recruit-staff-swiper .swiper-wrapper {
    box-sizing: border-box;
}
/* スタッフの声：ふわっと表示・中央拡大は使わない。全スライド常に同サイズで表示 */
.recruit-staff-voice .recruit-staff-slider-wrap .swiper-slide {
    opacity: 1;
    transform: none;
    transition: none;
}
.recruit-staff-voice .recruit-staff-swiper .swiper-slide-active {
    transform: none;
    z-index: auto;
}

/* タイトル行は style.css の共通セクションタイトル行を使用 */

/* スタッフの声：スライダー 3枚並び・写真縦長（写真＋左白コメント＋部署バー＋名前円） */
.recruit-staff-slider-wrap {
    margin-top: 1rem;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    overflow: visible;
}

.recruit-staff-swiper {
    overflow: visible;
    border-radius: 0;
}

/* 左から順にふわっと表示（遅め） */
.recruit-staff-slider-wrap .swiper-slide {
    opacity: 0;
    transform: translateX(-24px);
    transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
}
.recruit-staff-slider-wrap.is-inview .swiper-slide:nth-child(1) {
    opacity: 1;
    transform: translateX(0);
    transition-delay: 0.15s;
}
.recruit-staff-slider-wrap.is-inview .swiper-slide:nth-child(2) {
    opacity: 1;
    transform: translateX(0);
    transition-delay: 0.35s;
}
.recruit-staff-slider-wrap.is-inview .swiper-slide:nth-child(3) {
    opacity: 1;
    transform: translateX(0);
    transition-delay: 0.55s;
}
.recruit-staff-slider-wrap.is-inview .swiper-slide:nth-child(4) {
    opacity: 1;
    transform: translateX(0);
    transition-delay: 0.75s;
}
.recruit-staff-slider-wrap.is-inview .swiper-slide:nth-child(5) {
    opacity: 1;
    transform: translateX(0);
    transition-delay: 0.95s;
}

/* 真ん中のスライドだけ少し大きく（スタッフの声セクションでは適用しない） */
.recruit-staff-swiper .swiper-slide {
    transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
}
.recruit-staff-swiper .swiper-slide-active {
    transform: scale(1.08);
    z-index: 2;
}
.recruit-staff-slider-wrap.is-inview .recruit-staff-swiper .swiper-slide-active {
    transform: scale(1.08) translateX(0);
}
/* スタッフの声：どの位置でも拡大しない（上記より詳細で上書き） */
.recruit-staff-voice .recruit-staff-slider-wrap.is-inview .recruit-staff-swiper .swiper-slide-active,
.recruit-staff-voice .recruit-staff-swiper .swiper-slide-active {
    transform: none;
    z-index: auto;
}

.recruit-staff-slide {
    position: relative;
    aspect-ratio: 3 / 4;
    min-height: 360px;
    max-height: 560px;
    overflow: hidden;
}

.recruit-staff-photo {
    position: absolute;
    inset: 0;
    background: #1a1a1a;
}

.recruit-staff-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.recruit-staff-comment {
    position: absolute;
    left: 14px;
    bottom: 58px;
    right: auto;
    width: 26%;
    min-width: 120px;
    max-width: 200px;
    height: auto;
    max-height: calc(100% - 80px);
    background: transparent;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 1rem 0.5rem;
    box-shadow: none;
    box-sizing: border-box;
    overflow: visible;
}

.recruit-staff-comment-text {
    font-size: clamp(1rem, 2.2vw, 1.25rem);
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
    letter-spacing: 0.02em;
    display: flex;
    flex-direction: row-reverse;
    align-items: flex-end;
    gap: 6px;
    flex-shrink: 0;
    min-width: 0;
}

.recruit-staff-comment-line {
    position: relative;
    display: inline-block;
    writing-mode: vertical-rl;
    white-space: nowrap;
    line-height: 1.85;
    padding: 0.4em 0.5em;
    background: transparent;
    box-sizing: border-box;
    flex-shrink: 0;
    height: fit-content;
    overflow: hidden;
}
.recruit-staff-comment-line::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
    transform: scaleY(0);
    transform-origin: top center;
    z-index: 0;
}
.recruit-staff-comment-line-inner {
    position: relative;
    z-index: 1;
    opacity: 0;
}
/* 背景が上から伸びてから文字表示、そのあと2行目 */
.recruit-staff-slider-wrap.is-inview .recruit-staff-comment-line:nth-child(1)::before {
    animation: recruit-staff-line-bg 0.5s ease-out 0.7s forwards;
}
.recruit-staff-slider-wrap.is-inview .recruit-staff-comment-line:nth-child(1) .recruit-staff-comment-line-inner {
    animation: recruit-staff-line-text 0.35s ease-out 1.2s forwards;
}
.recruit-staff-slider-wrap.is-inview .recruit-staff-comment-line:nth-child(2)::before {
    animation: recruit-staff-line-bg 0.5s ease-out 1.4s forwards;
}
.recruit-staff-slider-wrap.is-inview .recruit-staff-comment-line:nth-child(2) .recruit-staff-comment-line-inner {
    animation: recruit-staff-line-text 0.35s ease-out 1.9s forwards;
}
@keyframes recruit-staff-line-bg {
    from { transform: scaleY(0); }
    to { transform: scaleY(1); }
}
@keyframes recruit-staff-line-text {
    from { opacity: 0; }
    to { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
    .recruit-staff-slider-wrap .swiper-slide,
    .recruit-staff-slider-wrap.is-inview .swiper-slide {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .recruit-staff-slider-wrap.is-inview .recruit-staff-comment-line::before,
    .recruit-staff-slider-wrap.is-inview .recruit-staff-comment-line-inner {
        animation: none;
        opacity: 1;
        transform: none;
    }
    .recruit-staff-comment-line::before {
        transform: scaleY(1);
    }
}

.recruit-staff-comment-highlight {
    color: #e85c2b;
}

.recruit-staff-dept {
    position: absolute;
    left: 0;
    bottom: 0;
    right: 38%;
    min-height: 52px;
    background: #2a9bb8;
    color: #fff;
    font-size: clamp(0.8rem, 1.2vw, 0.80rem);
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1rem;
    text-align: center;
}

.recruit-staff-name {
    position: absolute;
    right: 1rem;
    bottom: 1rem;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #2a9bb8;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: clamp(0.7rem, 1vw, 0.85rem);
    font-weight: 600;
    line-height: 1.3;
    text-align: center;
}

.recruit-staff-year {
    display: block;
}

.recruit-staff-person {
    display: block;
    margin-top: 0.15rem;
}

/* スタッフ詳細ポップアップ（どの画面サイズでも常に真ん中に表示） */
.recruit-staff-popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    margin: 0;
    padding: 1rem;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}
.recruit-staff-popup.is-open {
    opacity: 1;
    visibility: visible;
}
.recruit-staff-popup-title {
    margin: 0 0 1rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a1a1a;
}
.recruit-staff-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    cursor: pointer;
}
.recruit-staff-popup-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 480px;
    max-height: min(90vh, calc(100vh - 2rem));
    margin: auto;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
}
/* 閉じるボタン（スマホでも押しやすい大きさ） */
.recruit-staff-popup-close {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 10;
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
    margin: 0;
    padding: 0;
    border: none;
    background: rgba(0, 0, 0, 0.35);
    color: #fff;
    cursor: pointer;
    border-radius: 0 8px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}
.recruit-staff-popup-close:hover,
.recruit-staff-popup-close:focus {
    background: rgba(0, 0, 0, 0.5);
}
.recruit-staff-popup-close::before,
.recruit-staff-popup-close::after {
    content: '';
    position: absolute;
    width: 22px;
    height: 2px;
    background: currentColor;
    border-radius: 1px;
}
.recruit-staff-popup-close::before {
    transform: rotate(45deg);
}
.recruit-staff-popup-close::after {
    transform: rotate(-45deg);
}
.recruit-staff-popup-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #e8e8e8;
    pointer-events: none;
}
.recruit-staff-popup-bg-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.82);
    pointer-events: none;
}
.recruit-staff-popup-content {
    position: relative;
    z-index: 1;
    overflow-y: auto;
    max-height: 90vh;
    padding: 1.75rem 1.5rem;
    pointer-events: auto;
}
.recruit-staff-popup-list {
    margin: 0 0 1.5rem;
    font-size: 0.95rem;
}
.recruit-staff-popup-list dt {
    display: inline-block;
    margin-top: 1rem;
    margin-bottom: 0.35rem;
    padding: 0.25rem 0.6rem;
    background: #1a1a1a;
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
    border-radius: 4px;
}
.recruit-staff-popup-list dt:first-child {
    margin-top: 0;
}
.recruit-staff-popup-list dd {
    margin: 0;
    color: #1a1a1a;
    line-height: 1.6;
}
.recruit-staff-popup-shokuba,
.recruit-staff-popup-oubo {
    white-space: pre-line;
}
.recruit-staff-popup-motive-title {
    display: block;
    margin-bottom: 0.5rem;
    color: #1a1a1a;
}
.recruit-staff-popup-motive-text {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.75;
    color: #444;
}
.recruit-staff-popup-btn {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, #5ba3d0 0%, #0378ad 100%);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border-radius: 6px;
    transition: opacity 0.2s ease;
    position: relative;
    z-index: 2;
    cursor: pointer;
}
.recruit-staff-popup-btn:hover {
    opacity: 0.9;
    color: #fff;
}
/* スタッフスライドは JS の .voice-cursor で表示（CSS cursor は指定しない） */

.recruit-staff-pagination {
    margin-top: 1rem;
}

/* 求人詳細スタッフ：ページネーションがスライドにめり込まないよう余白を確保 */
.job-detail-staff-section .recruit-staff-pagination {
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 2;
}
.recruit-staff-pagination .swiper-pagination-bullet {
    background: #2a9bb8;
    opacity: 0.4;
}

.recruit-staff-pagination .swiper-pagination-bullet-active {
    opacity: 1;
}

.recruit-staff-prev,
.recruit-staff-next {
    display: none !important;
}

.recruit-staff-prev::after,
.recruit-staff-next::after {
    font-size: 1.25rem;
}

@media (max-width: 767px) {
    .recruit-staff-slide {
        min-height: 380px;
        aspect-ratio: 3 / 4;
        max-height: 480px;
    }
    .recruit-staff-comment {
        width: 28%;
        min-width: 100px;
        max-width: 160px;
        height: 65%;
        padding: 0.75rem 0.4rem;
    }
    .recruit-staff-comment-text {
        font-size: 0.95rem;
    }
    .recruit-staff-dept {
        font-size: 0.8rem;
        min-height: 44px;
    }
    .recruit-staff-name {
        width: 64px;
        height: 64px;
        right: 0.5rem;
        bottom: 0.5rem;
        font-size: 0.7rem;
    }
}

@media (max-width: 767px) {
    .recruit-staff-voice .container {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }
}

.recruit-values-list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.95rem;
    color: #555;
    line-height: 1.85;
}

.recruit-values-list li {
    margin-bottom: 0.75rem;
    padding-left: 1.25rem;
    position: relative;
}

.recruit-values-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.6em;
    width: 6px;
    height: 6px;
    background: #0378ad;
    border-radius: 50%;
}

.recruit-values-list strong {
    color: #1a1a1a;
}

@media (max-width: 767px) {
    .recruit-intro .container {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }
}

/* ========== 採用情報 ========== */
.recruit-section {
    padding-top: 3rem;
    background: #fff;
}

/* タイトル行は style.css の共通セクションタイトル行を使用 */

/* ========== 募集職種リスト ========== */
.recruit-job-list {
    display: flex;
    flex-direction: column;
    padding-top: 3rem;
}

.recruit-job-row {
    display: flex;
    flex-wrap: nowrap;
    min-height: 280px;
}

.recruit-job-list .recruit-job-img,
.recruit-job-list .recruit-job-body {
    opacity: 0;
}

.recruit-job-list.is-inview .recruit-job-row:nth-child(1) .recruit-job-img {
    animation: recruit-in-left 2.5s cubic-bezier(0.16, 1, 0.3, 1) 0s forwards;
}
.recruit-job-list.is-inview .recruit-job-row:nth-child(1) .recruit-job-body {
    animation: recruit-in-right 2.5s cubic-bezier(0.16, 1, 0.3, 1) 0s forwards;
}
.recruit-job-list.is-inview .recruit-job-row:nth-child(2).recruit-job-row--reverse .recruit-job-body {
    animation: recruit-in-left 2.5s cubic-bezier(0.16, 1, 0.3, 1) 0.5s forwards;
}
.recruit-job-list.is-inview .recruit-job-row:nth-child(2).recruit-job-row--reverse .recruit-job-img {
    animation: recruit-in-right 2.5s cubic-bezier(0.16, 1, 0.3, 1) 0.5s forwards;
}
.recruit-job-list.is-inview .recruit-job-row:nth-child(3) .recruit-job-img {
    animation: recruit-in-left 2.5s cubic-bezier(0.16, 1, 0.3, 1) 1s forwards;
}
.recruit-job-list.is-inview .recruit-job-row:nth-child(3) .recruit-job-body {
    animation: recruit-in-right 2.5s cubic-bezier(0.16, 1, 0.3, 1) 1s forwards;
}
.recruit-job-list.is-inview .recruit-job-row:nth-child(4).recruit-job-row--reverse .recruit-job-body {
    animation: recruit-in-left 2.5s cubic-bezier(0.16, 1, 0.3, 1) 1.5s forwards;
}
.recruit-job-list.is-inview .recruit-job-row:nth-child(4).recruit-job-row--reverse .recruit-job-img {
    animation: recruit-in-right 2.5s cubic-bezier(0.16, 1, 0.3, 1) 1.5s forwards;
}
.recruit-job-list.is-inview .recruit-job-row:nth-child(5) .recruit-job-img {
    animation: recruit-in-left 2.5s cubic-bezier(0.16, 1, 0.3, 1) 2s forwards;
}
.recruit-job-list.is-inview .recruit-job-row:nth-child(5) .recruit-job-body {
    animation: recruit-in-right 2.5s cubic-bezier(0.16, 1, 0.3, 1) 2s forwards;
}

@keyframes recruit-in-left {
    from {
        opacity: 0;
        transform: translateX(-32px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes recruit-in-right {
    from {
        opacity: 0;
        transform: translateX(32px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .recruit-job-list .recruit-job-img,
    .recruit-job-list .recruit-job-body {
        opacity: 1;
    }
    .recruit-job-list.is-inview .recruit-job-row .recruit-job-img,
    .recruit-job-list.is-inview .recruit-job-row .recruit-job-body {
        animation: none;
    }
}

.recruit-job-row--reverse {
    flex-direction: row-reverse;
}

.recruit-job-img {
    flex: 0 0 50%;
    overflow: hidden;
    background: #e8e8e8;
}

.recruit-job-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.recruit-job-body {
    flex: 0 0 50%;
    padding: 2rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.recruit-job-dept {
    font-size: 0.85rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.35rem;
    letter-spacing: 0.02em;
}

.recruit-job-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.recruit-job-desc {
    font-size: 0.95rem;
    line-height: 1.75;
    color: #444;
    margin: 0;
}

.recruit-job-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    margin-top: 1rem;
    padding: 0.4rem 1rem;
    background: linear-gradient(135deg, #5ba3d0 0%, #0378ad 100%);
    color: #fff;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-decoration: none;
    transition: opacity 0.25s ease, color 0.25s ease;
}

.recruit-job-btn:hover {
    opacity: 0.9;
    color: #fff;
}

@media (max-width: 767px) {
    .recruit-job-row,
    .recruit-job-row--reverse {
        flex-direction: column;
        min-height: auto;
    }
    .recruit-job-img,
    .recruit-job-body {
        flex: 0 0 auto;
    }
    .recruit-job-img {
        aspect-ratio: 16 / 9;
    }
    .recruit-job-body {
        padding: 1.5rem 1.25rem;
    }
    .recruit-job-title {
        font-size: 1.1rem;
    }
}

/* ========== 求人詳細ページ（1職種＝1URL） ========== */
.job-detail {
    background: #fff;
    padding: 2rem 0 4rem;
    border-top: 1px solid #e9ecef;
}

/* セクションごとに幅を決める用（スタッフインタビューなどはこの inner を使わずセクションで自由に幅指定） */
.job-detail-section-inner {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

/* 上部・募集要項直後 CTA */
.job-detail-cta-wrap {
    margin: 0 0 2.5rem;
    text-align: center;
}

.job-detail-cta-wrap--top {
    margin-top: 1.5rem;
}

.job-detail-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 200px;
    padding: 0.85rem 2rem;
    background: linear-gradient(135deg, #5ba3d0 0%, #0378ad 100%);
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-decoration: none;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: opacity 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
    box-shadow: 0 4px 14px rgba(3, 120, 173, 0.35);
}

.job-detail-cta:hover {
    opacity: 0.95;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(3, 120, 173, 0.4);
}

.job-detail-cta--submit {
    min-width: 220px;
    padding: 1rem 2.5rem;
    font-size: 1.05rem;
}

/* ヒーロー（求人詳細トップ） */
.job-detail-hero {
    position: relative;
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e9ecef;
}

.job-detail-hero-bg-en {
    position: absolute;
    top: -0.25rem;
    left: 0;
    font-size: clamp(3rem, 10vw, 6rem);
    font-weight: 800;
    line-height: 1;
    color: rgba(0, 0, 0, 0.04);
    letter-spacing: 0.02em;
    pointer-events: none;
    z-index: 0;
}

.job-detail-hero-en {
    position: relative;
    z-index: 1;
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    color: #0378ad;
    margin-bottom: 0.5rem;
}

.job-detail-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.4;
    margin: 0 0 1rem;
    padding-left: 0.75rem;
    border-left: 4px solid #0378ad;
}

.job-detail-lead {
    font-size: 1.05rem;
    color: #444;
    line-height: 1.75;
    margin: 0;
}

/* セクション共通 */
.job-detail-section {
    margin-bottom: 3rem;
}

/* スタッフインタビュー：タイトルの下に余白 */
.job-detail-staff-section .company-block-head {
    margin-bottom: 1.5rem;
}

/* 求人詳細ページのスライダーは常に表示（is-inview なしでも可） */
.job-detail-staff-section .recruit-staff-slider-wrap .swiper-slide {
    opacity: 1;
    transform: translateX(0);
}
.job-detail-staff-section .recruit-staff-swiper .swiper-slide-active {
    transform: scale(1.08) translateX(0);
}

/* 3枚表示スライダー：中央のスライドだけ少し拡大（見切れないよう控えめに） */
.recruit-staff-slider-wrap--three .recruit-staff-swiper .swiper-slide-active {
    transform: scale(1.04);
    z-index: 2;
}

/* 3枚表示スライダー：他スライダーと被らないようコンパクトに */
.job-detail-staff-section {
    overflow-x: hidden;
    overflow-y: visible;
    min-height: 340px;
}
.job-detail-staff-section .recruit-staff-slider-wrap--three {
    min-height: 320px;
    overflow-x: hidden;
    overflow-y: visible;
}
.job-detail-staff-section .recruit-staff-slider-wrap--three .recruit-staff-swiper {
    min-height: 300px;
    overflow-x: hidden;
    overflow-y: visible;
    padding-bottom: 2.5rem;
    box-sizing: border-box;
}
.job-detail-staff-section .recruit-staff-slider-wrap--three .recruit-staff-swiper .swiper-wrapper {
    min-height: 300px;
    align-items: stretch;
}
.job-detail-staff-section .recruit-staff-slider-wrap--three .swiper-slide {
    height: auto;
    min-height: 300px;
}
.job-detail-staff-section .recruit-staff-slider-wrap--three .recruit-staff-slide {
    min-height: 280px;
    max-height: none;
    height: 100%;
}

/* スマホ時：3枚スライダーを小さく・確実に中央に配置（左ずれ防止） */
@media (max-width: 767px) {
    .job-detail-staff-section {
        min-height: 460px;
    }
    .job-detail-staff-section .job-detail-section-inner {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .job-detail-staff-section .company-block-head {
        align-self: stretch;
    }
    .job-detail-staff-section .recruit-staff-slider-wrap--three {
        min-height: 440px;
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        box-sizing: border-box;
    }
    .job-detail-staff-section .recruit-staff-slider-wrap--three .recruit-staff-slider-inner {
        display: block;
        width: 320px;
        max-width: calc(100vw - 2rem);
        margin-left: auto;
        margin-right: auto;
        box-sizing: border-box;
        overflow-x: hidden;
    }
    .job-detail-staff-section .recruit-staff-slider-wrap--three .recruit-staff-swiper {
        min-height: 420px;
        width: 100% !important;
        max-width: 100%;
        box-sizing: border-box;
    }
    .job-detail-staff-section .recruit-staff-slider-wrap--three .recruit-staff-swiper .swiper-wrapper {
        min-height: 420px;
    }
    .job-detail-staff-section .recruit-staff-slider-wrap--three .swiper-slide {
        min-height: 420px;
    }
    /* アスペクト比を外して幅いっぱいに。高さは320px幅で3:4が切れない程度に */
    .job-detail-staff-section .recruit-staff-slider-wrap--three .recruit-staff-slide {
        min-height: 380px;
        max-height: 440px;
        aspect-ratio: auto;
        width: 100%;
    }
}

@media (min-width: 768px) {
    .job-detail-staff-section {
        min-height: 380px;
    }
    .job-detail-staff-section .recruit-staff-slider-wrap--three {
        min-height: 360px;
    }
    .job-detail-staff-section .recruit-staff-slider-wrap--three .recruit-staff-swiper {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
        min-height: 360px;
    }
    .job-detail-staff-section .recruit-staff-slider-wrap--three .recruit-staff-swiper .swiper-wrapper {
        min-height: 320px;
    }
    .job-detail-staff-section .recruit-staff-slider-wrap--three .swiper-slide {
        min-height: 320px;
    }
    .job-detail-staff-section .recruit-staff-slider-wrap--three .recruit-staff-slide {
        min-height: 300px;
        max-height: 340px;
    }
}

.job-detail-h2 {
    font-size: 1.35rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 1.25rem;
    padding-left: 0.75rem;
    border-left: 4px solid #0378ad;
    line-height: 1.4;
}

.job-detail-text {
    font-size: 1rem;
    color: #444;
    line-height: 1.8;
    margin: 0 0 1rem;
}

.job-detail-text:last-child {
    margin-bottom: 0;
}

/* 職務内容：画像＋本文 */
.job-detail-content-with-img {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.job-detail-img-wrap {
    border-radius: 8px;
    overflow: hidden;
    background: #f5f5f5;
}

.job-detail-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.job-detail-list {
    margin: 0 0 1rem;
    padding-left: 1.25rem;
    color: #444;
    line-height: 1.8;
}

.job-detail-list li {
    margin-bottom: 0.35rem;
}

/* 一日の流れ（テーブル） */
.job-detail-flow-table-wrap {
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    overflow: hidden;
    margin: 0;
}

.job-detail-flow-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.job-detail-flow-table thead th {
    padding: 0.75rem 1.25rem;
    text-align: left;
    font-weight: 700;
    color: #333;
    background: #fafafa;
    border-bottom: 1px solid #e9ecef;
}

.job-detail-flow-table tbody tr {
    border-bottom: 1px solid #e9ecef;
}

.job-detail-flow-table tbody tr:last-child {
    border-bottom: none;
}

.job-detail-flow-table .job-detail-flow-time {
    width: 6rem;
    padding: 0.9rem 1.25rem;
    font-weight: 700;
    color: #0378ad;
    vertical-align: top;
}

.job-detail-flow-table .job-detail-flow-desc {
    padding: 0.9rem 1.25rem;
    color: #444;
}

/* 一日の流れ（リスト形式・静的ページ用） */
.job-detail-flow {
    list-style: none;
    margin: 0;
    padding: 0;
    background: #fafafa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    overflow: hidden;
}

.job-detail-flow-item {
    display: flex;
    align-items: center;
    padding: 0.9rem 1.25rem;
    border-bottom: 1px solid #e9ecef;
    gap: 1.5rem;
}

.job-detail-flow-item:last-child {
    border-bottom: none;
}

.job-detail-flow-item .job-detail-flow-time {
    flex: 0 0 5.5rem;
    font-weight: 700;
    color: #0378ad;
    font-size: 1rem;
}

.job-detail-flow-item .job-detail-flow-desc {
    flex: 1;
    color: #444;
    font-size: 0.95rem;
}

/* スタッフインタビュー */
.job-detail-interview-list {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.job-detail-interview {
    padding: 1.5rem;
    background: #fafafa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.job-detail-interview-header {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
}

.job-detail-interview-photo {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    background: #e9ecef;
}

.job-detail-interview-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.job-detail-interview-meta {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.job-detail-interview-dept {
    font-size: 0.85rem;
    color: #0378ad;
    font-weight: 600;
}

.job-detail-interview-name {
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a1a;
}

.job-detail-qa {
    margin: 0;
}

.job-detail-qa dt {
    font-size: 0.95rem;
    font-weight: 600;
    color: #333;
    margin-top: 1rem;
    margin-bottom: 0.35rem;
}

.job-detail-qa dt:first-child {
    margin-top: 0;
}

.job-detail-qa dd {
    margin: 0 0 0 0;
    padding-left: 0;
    font-size: 0.95rem;
    color: #555;
    line-height: 1.75;
}

/* 募集要項（dl） */
.job-detail-requirements-wrap .job-detail-cta-wrap {
    margin-top: 1.5rem;
    margin-bottom: 0;
}

.job-detail-requirements {
    background: #fafafa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    padding: 1.25rem 1.5rem;
}

/* 募集要項テーブル（職種名・雇用形態・勤務地・勤務時間・給与など） */
.job-detail-requirements-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}
.job-detail-requirements-table th,
.job-detail-requirements-table td {
    padding: 0.6rem 0.75rem;
    vertical-align: top;
    border-bottom: 1px solid #e9ecef;
}
.job-detail-requirements-table th {
    width: 10em;
    font-weight: 600;
    color: #333;
    text-align: left;
}
.job-detail-requirements-table td {
    color: #444;
    line-height: 1.6;
}
.job-detail-requirements-table tr:last-child th,
.job-detail-requirements-table tr:last-child td {
    border-bottom: none;
}
.job-detail-requirements-extra {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #444;
}

.job-detail-dl {
    margin: 0;
    display: grid;
    gap: 0 0;
}

.job-detail-dl dt {
    grid-column: 1;
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
    margin: 0;
    padding: 0.5rem 0 0.35rem 0;
    border-top: 1px solid #e9ecef;
}

.job-detail-dl dt:first-child {
    border-top: none;
    padding-top: 0;
}

.job-detail-dl dd {
    grid-column: 1;
    margin: 0;
    padding: 0 0 0.6rem 0;
    font-size: 0.95rem;
    color: #444;
    line-height: 1.6;
}

.job-detail-dl dd:last-child {
    padding-bottom: 0;
}

@media (min-width: 768px) {
    .job-detail-dl {
        grid-template-columns: 180px 1fr;
        gap: 0 2rem;
    }
    .job-detail-dl dt {
        padding: 0.6rem 0;
        border-top: none;
        border-bottom: 1px solid #e0e4e8;
    }
    .job-detail-dl dt:first-child {
        padding-top: 0;
    }
    .job-detail-dl dd {
        grid-column: 2;
        padding: 0.6rem 0;
        border-bottom: 1px solid #e0e4e8;
    }
    .job-detail-dl dd:last-child {
        padding-bottom: 0.6rem;
    }
}

/* 採用フォーム */
.job-detail-form-wrap {
    background: #fff;
    padding: 2rem;
    margin-bottom: 0;
}

.job-detail-form-wrap .job-detail-h2 {
    margin-top: 0;
}

.job-detail-form-wrap .job-detail-text {
    margin-bottom: 1.5rem;
}

.job-detail-form-row {
    margin-bottom: 1.25rem;
}

.job-detail-form-row--check {
    margin-bottom: 1.5rem;
}

.job-detail-form-label {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.4rem;
}

.job-detail-form-required {
    color: #c00;
    font-size: 0.85em;
    font-weight: 600;
}

.job-detail-form-optional {
    color: #888;
    font-size: 0.85em;
    font-weight: 500;
}

.job-detail-form-input,
.job-detail-form-textarea {
    width: 100%;
    max-width: 100%;
    padding: 0.6rem 0.85rem;
    font-size: 1rem;
    border: 1px solid #ced4da;
    border-radius: 6px;
    background: #fff;
    transition: border-color 0.2s ease;
}

.job-detail-form-input:focus,
.job-detail-form-textarea:focus {
    outline: none;
    border-color: #0378ad;
    box-shadow: 0 0 0 3px rgba(3, 120, 173, 0.15);
}

.job-detail-form-textarea {
    min-height: 100px;
    resize: vertical;
}

.job-detail-form-radios {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 0.35rem;
}

.job-detail-form-radio-label {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 500;
    color: #444;
    cursor: pointer;
}

.job-detail-form-check-label {
    display: inline-flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.95rem;
    color: #444;
    cursor: pointer;
}

.job-detail-form-check {
    flex-shrink: 0;
    margin-top: 0.2rem;
}

.job-detail-form-submit-wrap {
    text-align: center;
    margin-top: 1.5rem;
}

.job-detail-form-readonly-block {
    padding: 0.5rem 0;
}

.job-detail-form-row--readonly .job-detail-form-readonly {
    margin: 0 0 0.35rem 0;
    padding: 0;
    font-size: 1rem;
    color: #333;
    font-weight: 600;
}

.job-detail-form-row--readonly .job-detail-form-readonly:last-child {
    margin-bottom: 0;
}

.job-detail-form-readonly-label {
    font-weight: 500;
    color: #555;
    margin-right: 0.25em;
}

.job-detail-form-input--postcode {
    max-width: 12em;
}

.job-detail-form-postcode-wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}

.job-detail-form-postcode-btn {
    padding: 0.6rem 1.25rem;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    background: #0378ad;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.job-detail-form-postcode-btn:hover {
    background: #02608a;
}

.job-detail-form-postcode-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.job-detail-form-postcode-message {
    margin: 0.35rem 0 0 0;
    font-size: 0.9rem;
    min-height: 1.4em;
}

.job-detail-form-postcode-message.is-error {
    color: #c00;
}

.job-detail-form-postcode-message.is-success {
    color: #0a7c42;
}

.job-detail-form-note {
    font-size: 0.85rem;
    color: #666;
    margin: 0 0 0.5rem 0;
}

.job-detail-form-contact-time-row {
    margin-bottom: 0.85rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}

.job-detail-form-contact-time-label {
    font-size: 0.9rem;
    color: #555;
    min-width: 4.5em;
}

.job-detail-form-contact-time-fields {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.job-detail-form-select {
    padding: 0.5rem 0.75rem;
    font-size: 0.95rem;
    border: 1px solid #ced4da;
    border-radius: 6px;
    background: #fff;
}

.job-detail-form-select--dow {
    min-width: 8rem;
}

.job-detail-form-select--slot {
    min-width: 10rem;
}

.job-detail-form-file {
    display: block;
    width: 100%;
    max-width: 320px;
    font-size: 0.9rem;
    padding: 0.35rem 0;
}

.job-detail-form-file-preview {
    margin-top: 0.5rem;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 6px;
    min-height: 0;
}

.job-detail-form-file-name {
    margin: 0 0 0.35rem 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
}

.job-detail-form-file-type {
    margin: 0;
    font-size: 0.85rem;
    color: #666;
}

.job-detail-form-file-thumb {
    max-width: 200px;
    max-height: 150px;
    width: auto;
    height: auto;
    border-radius: 4px;
    margin-top: 0.5rem;
    display: block;
}

.job-detail-form-row--format-dl {
    margin-bottom: 0.75rem;
}

.job-detail-form-row--format-dl .job-detail-cta--format-dl {
    text-decoration: none;
}

.job-detail-form-privacy-wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.25rem;
}

.job-detail-form-row--privacy .job-detail-form-privacy-btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    font-size: 0.95rem;
    color: #0378ad;
    background: transparent;
    border: 1px solid #0378ad;
    border-radius: 6px;
    cursor: pointer;
}

.job-detail-form-row--privacy .job-detail-form-privacy-btn:hover {
    background: #0378ad;
    color: #fff;
}

.job-detail-form-privacy-status {
    font-size: 0.95rem;
    font-weight: 600;
    color: #198754;
}

.job-detail-form-privacy-status:not(:empty)::before {
    content: '';
    display: inline-block;
    width: 0.4em;
    height: 0.4em;
    margin-right: 0.35em;
    vertical-align: middle;
    border-radius: 50%;
    background: currentColor;
}

.job-detail-cta--submit:disabled {
    background: #adb5bd;
    border-color: #adb5bd;
    color: #fff;
    opacity: 1;
    cursor: not-allowed;
}

.job-detail-cta--secondary {
    background: #6c757d;
    border-color: #6c757d;
    color: #fff;
}

.job-detail-cta--secondary:hover {
    background: #5a6268;
    border-color: #545b62;
    color: #fff;
}

/* 個人情報の取り扱い（スクロールウィンドウ） */
.privacy-scroll-window {
    display: none;
    margin-top: 1rem;
    width: 100%;
}

.privacy-scroll-window.is-open {
    display: block;
}

.privacy-scroll-window-inner {
    max-height: 280px;
    overflow-y: auto;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 1.25rem 1.5rem;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
}

.privacy-scroll-window-title {
    margin: 0 0 1rem 0;
    font-size: 1.15rem;
    color: #333;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #dee2e6;
}

.privacy-scroll-window-body {
    font-size: 0.9rem;
    color: #444;
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

.privacy-scroll-window-body p {
    margin: 0 0 0.75rem 0;
}

.privacy-scroll-window-body p:last-child {
    margin-bottom: 0;
}

.privacy-scroll-window-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: flex-end;
    padding-top: 0.5rem;
    border-top: 1px solid #dee2e6;
}

/* レスポンシブ：求人詳細 */
@media (max-width: 991.98px) {
    .job-detail-title {
        font-size: 1.5rem;
    }
    .job-detail-h2 {
        font-size: 1.2rem;
    }
}

@media (max-width: 767px) {
    .job-detail {
        padding: 1.5rem 0 3rem;
    }
    .job-detail-cta-wrap--top {
        margin-top: 1rem;
    }
    .job-detail-cta {
        min-width: 180px;
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
    }
    .job-detail-title {
        font-size: 1.35rem;
    }
    .job-detail-lead {
        font-size: 1rem;
    }
    .job-detail-section {
        margin-bottom: 2rem;
    }
    .job-detail-interview-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .job-detail-interview-photo {
        width: 64px;
        height: 64px;
    }
    .job-detail-form-wrap {
        padding: 1.25rem;
    }
}
