/**
 * 採用情報スタイル
 */
.darkfilter {
    background-color: rgba(0, 0, 0, 0.7);
}

.recruitment-container {
    background: #fff;
    background-repeat: no-repeat;
    position: relative;
    margin-top: -5rem;
    background-size: cover;
    background-position: center;
    min-height: 100rem;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.recruitment__main {
    margin-top: -30rem;
}

.white-section-joboffer {
    /* margin: 0;
  width: 53vw;
  padding: 8rem 2rem 12rem 13rem; */
}

.job-offer-title {
    font-size: clamp(2rem, 1.763rem + 1.19vw, 2.8rem);
    margin-bottom: 2rem;
    font-weight: 600;
    ;
}

.job-offer-catch {
    font-size: clamp(1.5rem, 1.44rem + 0.3vw, 1.8rem);
    margin-bottom: 5rem;
    font-weight: 600;
    ;
}

.job-offer-description {
    font-size: clamp(1.2rem, 1.16rem + 0.2vw, 1.4rem);
    line-height: 2;
}

/* ---------- 新しいセクション ---------- */
.job-role-section,
.operations-section {
    margin-bottom: 4rem;
}

.operations-section {
    display: flex;
    gap: 1rem;
    flex-flow: column;
    border-top: 1px solid #fff;
    border-bottom: 1px solid #fff;
    padding: 3rem 0;
}

.operations-item {
    display: grid;
    grid-template-columns: max-content 1fr;
    column-gap: 1rem;
    row-gap: 0.5rem;
    align-items: start;
}

.job_title {
    font-size: clamp(1.4rem, 1.04rem + 1.8vw, 3.2rem);
    margin: 4rem 0;
    line-height: 1.6;
}

.job-overview,
.jd-description,
.operations-title,
.operations-description,
.skills-description {
    font-size: clamp(1.2rem, 1.12rem + 0.4vw, 1.6rem);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.operations-title {
    margin-bottom: 0rem;
    white-space: nowrap;
    padding-right: 1em;
}

.operations-description {
    font-size: clamp(1.2rem, 1.12rem + 0.4vw, 1.6rem);
    line-height: 1.8;
    margin-bottom: 0rem;
    flex: 1;
}

.skills-section {
    display: flex;
    flex-direction: row;
    gap: 2rem;
    flex-wrap: wrap;
}

.skills-title {
    font-size: clamp(1.2rem, 1.12rem + 0.4vw, 1.6rem);
    margin: 0;
    border: 1px solid #fff;
    padding: 5rem 2rem;
    line-height: 1.8;
    white-space: nowrap;
}

.skills-description {
    flex: 1;
    font-size: clamp(1.2rem, 1.12rem + 0.4vw, 1.6rem);
    min-width: 300px;
}

.job-featured-hero {
    position: relative;
}

.job-apply-section {
    position: absolute;
    top: -10rem;
    right: 8rem;
    transform: translateY(-50%);
    z-index: 10;
}

.job-apply-section a:hover {
    opacity: unset;
}

.job-apply-section .outline-btn {
    width: 46rem;
}

/* ---------- 一覧ページ（タクソノミーページ） ---------- */
.recruitment-archive {
    padding: 16rem 0 4rem;
}

.recruitment-archive-title {
    font-size: clamp(1.6rem, 1.52rem + 0.4vw, 2rem);
    margin-bottom: 2rem;
    font-weight: 600;
    ;
    letter-spacing: 0.5rem;
    text-align: center;
}

.line-gradation {
    width: 30px;
    height: 3px;
    background: linear-gradient(90deg, #1992cb 0%, #662d91 100%) !important;
    margin: 2rem auto;
}

.recruit-banner {
    display: block;
    max-width: 100rem;
    margin: 0 auto;
}

.recruit-banner__link {
    display: block;
    width: 100%;
    margin-bottom: 8rem;
    overflow: hidden;
    border-radius: 1rem;
}

.recruit-banner__link:hover {
    opacity: 1;
}

.recruit-banner__link:last-child {
    margin-bottom: 0;
}

.recruit-banner__inner {
    position: relative;
    height: 25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 1rem;
    overflow: hidden;
}

.recruit-banner__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(20%) brightness(80%);
    transition: transform 0.6s ease, filter 0.6s ease;
    z-index: 0;
    border-radius: 1rem;
}

.recruit-banner__link:hover .recruit-banner__bg {
    filter: grayscale(0%) brightness(100%);
    transform: scale(1.05);
}

.recruit-banner__text {
    position: relative;
    z-index: 1;
    color: #fff;
    text-align: center;
    font-size: clamp(1.2rem, 1.12rem + 0.4vw, 1.6rem);
    font-weight: 600;
    line-height: 2.5;
    max-width: 90%;
    margin: 0 auto;
    word-break: break-word;
    transition: color 0.6s ease, text-shadow 0.6s ease;
}

.recruit-banner__link:hover .recruit-banner__text {
    text-shadow: 0 0 12px rgba(0, 0, 0, 0.4);
}

.recruit-banner__year {
    font-size: clamp(2rem, 1.8rem + 1vw, 3rem);
}

.recruit-banner__text br.sp {
    display: inline;
}



/* ヘッダー部分 */
.archive-header {
    margin-bottom: 3rem;
}

.archive-title {
    font-size: clamp(1.8rem, 1.504rem + 1.48vw, 2.8rem) margin-bottom: 1.5rem;
}

.term-description {
    margin-bottom: 2rem;
    font-size: clamp(1.4rem, 1.36rem + 0.2vw, 1.6rem);
    line-height: 1.7;
}

/* タブナビゲーション */
.recruitment-tabs {
    margin-bottom: 3rem;
}

.recruitment-tab-list {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    border-bottom: 1px solid #ddd;
}

.tab-item {
    margin-right: 0.5rem;
}

.tab-item a {
    display: block;
    padding: 1rem 2rem;
    text-decoration: none;
    color: #333;
    border: 1px solid #ddd;
    border-bottom: none;
    background: #f5f5f5;
    border-radius: 5px 5px 0 0;
}

.tab-item.active a {
    background: #fff;
    position: relative;
    bottom: -1px;
    border-bottom: 1px solid #fff;
}

/* 職種フィルター */
.job-category-filter {
    margin-bottom: 3rem;
}

.filter-title {
    font-size: clamp(1.5rem, 1.44rem + 0.3vw, 1.8rem);
    margin-bottom: 1rem;
}

.category-filter-list {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-filter-list li {
    margin-right: 1rem;
    margin-bottom: 0.5rem;
}

.category-filter-list a {
    display: inline-block;
    padding: 0.5rem 1rem;
    text-decoration: none;
    color: #333;
    background: #f5f5f5;
    border-radius: 3px;
}

.category-filter-list .active a {
    background: #0056b3;
    color: #fff;
    font-weight: 600;
    ;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 求人一覧グリッドスタイル */
.job-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* 2列グリッド */
    gap: 10rem;
    margin: 10rem 0 4rem;
}

/* 求人カードスタイル */
.job-card {
    width: 100%;
    max-width: 450px;
    aspect-ratio: 9/5;
    /* 450:250のアスペクト比 */
    position: relative;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    margin-bottom: 3rem;
}

/* .job-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
} */

.job-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.job-card-link:hover {
    opacity: 1;
}

.job-card-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

/* サムネイル部分 */
.job-card-thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.job-card-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease, filter 0.6s ease;
    filter: brightness(40%) grayscale(1);
}

.job-card:hover .job-card-thumbnail img {
    transform: scale(1.05);
    filter: none;
    opacity: 1;
}

.no-thumbnail {
    height: 100%;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: clamp(1.4rem, 1.36rem + 0.2vw, 1.6rem);
    transition: transform 0.6s ease, filter 0.6s ease;
}

.job-card:hover .no-thumbnail {
    transform: scale(1.05);
    filter: none;
    opacity: 1;
}

/* コンテンツ部分 */
.job-card-content {
    padding: 3rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: 100%;
    text-align: left;
    padding-left: 15%;
    box-sizing: border-box;
}

.position-name-jp {
    font-size: clamp(1.2rem, 1.16rem + 0.2vw, 1.4rem);
    margin: 0 0 0.7rem;
    color: #fff;
}

.position-name-en {
    font-size: clamp(1.6rem, 1.44rem + 0.8vw, 2.4rem);
    line-height: 1.8;
    color: #fff;
    font-family: futura-pt, sans-serif;
    font-weight: 700;
    font-style: normal;
    margin-bottom: 2rem;
}

.job-card-meta {
    font-size: clamp(1.4rem, 1.36rem + 0.2vw, 1.6rem);
}

.job-card-category {
    margin-bottom: 0.5rem;
}

.job-card-employment {
    display: inline-block;
    padding: 0.3rem 1rem;
    background: #f0f0f0;
    border-radius: 30px;
    font-size: clamp(1rem, 0.96rem + 0.2vw, 1.2rem);
    color: #555;
}

.job-card-inner .link-more {
    position: absolute;
    right: 2rem;
    bottom: 2rem;
    font-size: clamp(1.4rem, 1.36rem + 0.2vw, 1.6rem);
    font-family: futura-pt, sans-serif;
    font-weight: 700;
    font-style: normal;
}

/* 「求人がない」メッセージ */
.no-jobs-found {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    background: #f9f9f9;
    border-radius: 8px;
}

/* ページネーション */
.pagination {
    text-align: center;
    margin-top: 4rem;
}

.pagination .page-numbers {
    display: inline-block;
    padding: 0.8rem 1.2rem;
    margin: 0 0.3rem;
    border: 1px solid #ddd;
    text-decoration: none;
    color: #333;
    border-radius: 3px;
}

.pagination .current {
    background: #0056b3;
    color: #fff;
    border-color: #0056b3;
}

.pagination a:hover {
    background: #f5f5f5;
}

/* ---------- 詳細ページ ---------- */

/* ヘッダー部分 */
.job-header {
    margin-top: -8rem;
    background-color: #000;
    color: #fff;
    border-top-right-radius: 4rem;
    border-top-left-radius: 4rem;
    position: relative;
    padding: 10rem 0;
}

.job-title {
    font-size: clamp(2rem, 1.704rem + 1.48vw, 3rem);
    margin-bottom: 1.5rem;
}

.job-featured-hero {
    position: relative;
}

/* 応募職種表示 */
.job-position-name {
    position: absolute;
    top: 50%;
    left: 10%;
    width: 100%;
    height: auto;
    transform: translateY(-50%);
}

.job-position-name .position-name-jp {
    font-size: clamp(1.6rem, 1.44rem + 0.8vw, 2.4rem);
    color: #fff;
}

.job-position-name .position-name-en {
    font-family: futura-pt, sans-serif;
    font-weight: 700;
    font-style: normal;
    font-size: clamp(2rem, 1.44rem + 2.8vw, 4.8rem);
    color: #fff;
    margin-bottom: 3rem;
    letter-spacing: 0.1em;
}

/* メタ情報 */
.job-meta {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f9f9f9;
    border-radius: 5px;
}

.job-meta>div {
    margin-right: 2rem;
    margin-bottom: 0.5rem;
}

.meta-label {
    font-weight: 600;
    ;
    margin-right: 0.5rem;
}

/* アイキャッチ画像 */
.job-featured-image {
    margin-top: -8rem;
    width: 100%;
    min-height: 100rem;
    overflow: hidden;
    background-repeat: no-repeat;
    position: relative;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.job-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* filter: brightness(0.4); */
}

/* 本文 */
.job-description {
    margin-bottom: 3rem;
    font-size: clamp(1.4rem, 1.36rem + 0.2vw, 1.6rem);
    line-height: 1.7;
}

/* 募集要項テーブル */
.job-details {
    padding: 8rem 0;
    background-color: #f5f5f5 !important;
}

.jd-description {
    margin-bottom: 5rem;
}

.job-details-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 3rem;
    font-size: clamp(1.2rem, 1.12rem + 0.4vw, 1.6rem);
}

.job-details-table th,
.job-details-table td {
    padding: 2.5rem 2rem;
    border: 1px solid #ffffff !important;
    /* 白いボーダーを強制適用 */
    vertical-align: middle;
    /* 縦方向中央揃え */
    background-color: #f5f5f5 !important;
    color: #000 !important;
}

.job-details-table th {
    width: 12%;
    text-align: center;
}

.job-details-table td {
    white-space: pre-line;
}

/* 給与補足情報 */
.salary-comment {
    font-size: clamp(1rem, 0.96rem + 0.2vw, 1.2rem);
}



/* 関連求人 */
.related-jobs {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid #eee;
}

.related-jobs-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.related-job-item {
    padding: 1.5rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.related-job-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.related-job-item h3 {
    font-size: clamp(1.5rem, 1.44rem + 0.3vw, 1.8rem);
    margin-top: 0;
    margin-bottom: 1rem;
}

.position-name {
    font-size: clamp(1.2rem, 1.111rem + 0.44vw, 1.5rem);
    color: #555;
    margin-bottom: 0.8rem;
}

.more-link {
    display: inline-block;
    margin-top: 1rem;
    color: #0056b3;
    text-decoration: none;
}

.join-us-section {
    background: #000;
    padding: 10rem 0;
}

.join-us__list {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 3rem;
}

.join-us__item {
    min-width: 220px;
    flex: 1 1 45%;
    padding: 2rem 0px;
}

.join-us__item-title {
    font-size: clamp(2rem, 1.704rem + 1.48vw, 3rem);
    font-family: futura-pt, sans-serif;
    letter-spacing: 0.3rem;
    margin-bottom: 2rem;
}

.join-us__item-desc {
    font-size: clamp(1.2rem, 1.16rem + 0.2vw, 1.4rem);
    line-height: 2;
}

.join-us__item:nth-child(2) {
    display: flex;
    justify-content: center;
    align-items: center;
}

.join-us-section a:hover {
    opacity: unset;
}



/* PC */
@media (max-width: 1440px) {}

@media (max-width: 1280px) {}

@media (max-width: 1024px) {}

/* Tablet */
@media (max-width: 768px) {

    .related-jobs-list {
        grid-template-columns: repeat(2, 1fr);
    }

    .operations-section {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 2rem;
    }

    .operations-item {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }


    .job-apply-section {
        position: static;
        top: auto;
        right: auto;
        transform: none;
        margin-top: 3rem;
        text-align: center;
    }

    .operations-description {
        margin-bottom: 1rem;
    }

    .white-section-joboffer {
        padding: 5rem 2rem 5rem 2rem !important;
    }

    .term-new-grads .recruitment-container {
        background-position: 38% 0;
        min-height: 57rem;
        background-size: 200%;
        padding: 0;
    }


    .term-mid-career .recruitment-container {
        background-position: 0 8%;
        min-height: 57rem;
        background-size: 110%;
        padding: 0;
    }


    /* 一覧ページ */
    .job-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin: 5rem 0 0;
    }

    .job-card {
        max-width: 100%;
        aspect-ratio: 5/2;
        /* 450:180のアスペクト比 */
    }

    .job-card-thumbnail {
        /* height: 180px; */
        width: 100%;
        height: 100%;
    }

    .skills-section {
        flex-direction: column;
    }

    .skills-title {
        padding: 2rem;
    }

    /* 詳細ページ */
    .job-details-table th,
    .job-details-table td {
        padding: 1rem;
    }

    .job-details-table th {
        width: auto;
        white-space: nowrap;
        vertical-align: top;
        line-height: 1.5;
    }

    .related-jobs-list {
        grid-template-columns: 1fr;
    }


    .apply-button {
        width: 100%;
        padding: 1.2rem;
    }

    .job-featured-image {
        min-height: 40rem;
    }

    .recruitment-archive {
        padding: 8rem 0 0;
    }

    .recruit-banner__inner {
        height: 15rem;
        line-height: 1.6;
    }


    .recruit-banner__link {
        margin-bottom: 2rem;
    }

    .job-apply-section {
        margin: -4.5rem 0 5rem;
    }

    .job-header {
        padding: 0;
        margin-top: -4rem;
        border-top-right-radius: 3rem;
        border-top-left-radius: 3rem;
    }

    .job-details {
        padding: 5rem 0;
    }

    .job-position-name .position-name-en {
        line-height: 1.5;
    }

    .recruit-banner__text {
        line-height: 1.8;
    }

    .job-apply-section .outline-btn {
        width: 100%;
    }

    .position-name-en {
        line-height: 1.6;
        margin-bottom: 1rem;
    }

    .job-card-content {
        padding-left: 3rem;
    }

    .operations-section {
        flex-flow: column;
    }
}

/* Smartphone */
@media (max-width: 480px) {
    .recruitment-tab-list {
        flex-direction: column;
    }

    .tab-item {
        margin-right: 0;
        margin-bottom: 0.5rem;
    }

    .tab-item a {
        border-radius: 5px;
        border: 1px solid #ddd;
    }

    .tab-item.active a {
        border-bottom: 1px solid #0056b3;
        background: #0056b3;
        color: #fff;
    }

    .job-details-table th,
    .job-details-table td {
        display: block;
        width: 100%;
    }

    .job-details-table th {
        border-bottom: none;
        text-align: left;
    }
}