/* career_test：横表一覧 + 詳細（サイト本体スタイルの上に重ねる） */

/* —— 一覧：横表（ピルタグなし・列揃え） —— */
.job-listings .ct-job-table {
    margin-top: 36px;
    border-top: 2px solid #0E1271;
}
.job-listings .ct-job-head,
.job-listings .ct-job-row {
    display: grid;
    grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.1fr) minmax(0, 0.9fr) minmax(0, 0.9fr) 28px;
    gap: 12px 20px;
    align-items: center;
}
.job-listings .ct-job-head {
    padding: 14px 48px;
    border-bottom: 1px solid #c5cae9;
    background: #e8eaf6;
    font-size: 15px;
    font-weight: 600;
    color: #0E1271;
    letter-spacing: 0.02em;
}
.job-listings .ct-job-row {
    padding: 22px 48px;
    border-bottom: 1px solid #e2e8f0;
    text-decoration: none;
    color: inherit;
    transition: background 0.15s ease, color 0.15s ease;
}
.job-listings .ct-job-row:nth-child(even) {
    background: #ffffff;
}
.job-listings .ct-job-row:nth-child(odd) {
    background: #f5f7fb;
}
.job-listings .ct-job-row:hover {
    background: #eef2ff;
}
.job-listings .ct-job-row:hover .ct-job-name {
    color: #0E1271;
    font-size: 1.32rem;
}
.job-listings .ct-job-row:hover .ct-job-loc,
.job-listings .ct-job-row:hover .ct-job-cond,
.job-listings .ct-job-row:hover .ct-job-pay {
    font-size: 17px;
    color: #334155;
}
.job-listings .ct-job-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.45;
    transition: color 0.15s ease, font-size 0.15s ease;
}
.job-listings .ct-job-loc,
.job-listings .ct-job-cond,
.job-listings .ct-job-pay {
    font-size: 16px;
    color: #475569;
    line-height: 1.4;
    transition: color 0.15s ease, font-size 0.15s ease;
}
.job-listings .ct-job-pay {
    color: #334155;
    font-variant-numeric: tabular-nums;
}
.job-listings .ct-job-row > i {
    color: #94a3b8;
    font-size: 20px;
    justify-self: end;
}
.job-listings .ct-job-row:hover > i {
    color: #0E1271;
}

@media (max-width: 900px) {
    .job-listings .ct-job-head {
        display: none;
    }
    .job-listings .ct-job-row {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        column-gap: 0;
        row-gap: 6px;
        padding: 16px 16px;
    }
    .job-listings .ct-job-name {
        flex: 1 1 calc(100% - 28px);
        font-size: 1.1rem;
    }
    .job-listings .ct-job-row > i {
        flex: 0 0 28px;
        justify-self: unset;
    }
    .job-listings .ct-job-loc,
    .job-listings .ct-job-cond,
    .job-listings .ct-job-pay {
        flex: 0 0 auto;
        font-size: 14px;
        color: #64748b;
    }
    .job-listings .ct-job-loc::after,
    .job-listings .ct-job-cond::after {
        content: " · ";
        color: #94a3b8;
    }
}

/* —— 詳細ページ本体 —— */
body.ct-detail-page {
    background: #fff;
}
/* contact-page の 1600px 指定を打ち消し、一覧・通常ページと同じ 1400px に揃える */
body.ct-detail-page .container,
body.ct-detail-page.contact-page .container,
body.ct-detail-page .header .container,
body.ct-detail-page footer .container {
    max-width: 1400px !important;
}
.ct-detail-main {
    padding: 32px 0 28px;
    /* 魅力セクションと同じグラデーションで、下の「了解」帯と区別する */
    background: linear-gradient(166deg, rgba(239, 246, 255, 1) 0%, rgba(250, 245, 255, 1) 50%, rgba(253, 242, 248, 1) 100%);
}
.ct-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    gap: 24px;
    align-items: start;
}
/* 詳細 → 了解セクション間の白帯・余分な余白を消す */
body.ct-detail-page .neuromorphism-section {
    margin-top: 0 !important;
    padding-top: 40px !important;
    padding-bottom: 80px !important;
    background: #fff !important;
}
body.ct-detail-page .neuromorphism-section .section-header {
    margin-bottom: 32px !important;
}
.ct-hero-img {
    width: 100%;
    aspect-ratio: 1024 / 324;
    max-height: 180px;
    object-fit: cover;
    object-position: center 40%;
    border-radius: 8px;
    display: block;
    margin: 0 0 22px;
    background: #e2e8f0;
}
.ct-sheet {
    background: #fff;
    border-radius: 12px;
    padding: 28px;
    box-shadow: 0 8px 28px rgba(102, 126, 234, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.8);
    margin-bottom: 0;
}
.ct-sheet__title {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 14px;
    line-height: 1.35;
    color: #2563EB;
}
.ct-sheet .ct-job-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    margin-bottom: 12px;
    font-size: 14px;
    color: #64748b;
}
.ct-sheet .ct-job-tag {
    padding: 0;
    border-radius: 0;
    font-size: inherit;
    font-weight: 400;
    background: transparent;
    color: inherit;
}
.ct-sheet .ct-job-tag + .ct-job-tag::before {
    content: " · ";
    color: #94a3b8;
}
.ct-sheet .ct-job-tag.department,
.ct-sheet .ct-job-tag.type {
    background: transparent;
    color: #64748b;
}
.ct-sheet .ct-job-info {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
    font-size: 14px;
    color: #475569;
    margin-bottom: 20px;
}
.ct-sheet .ct-job-info span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.ct-sheet__desc {
    color: #475569;
    line-height: 1.7;
    margin: 0 0 24px;
    font-size: 15px;
}
.ct-sheet h4 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 12px;
    color: #1e293b;
}
.ct-sheet ul {
    list-style: none;
    padding: 0;
    margin: 0 0 8px;
}
.ct-sheet li {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    color: #475569;
    line-height: 1.6;
    margin-bottom: 10px;
    font-size: 14px;
}
.ct-sheet li i {
    color: #2563eb;
    margin-top: 3px;
    flex-shrink: 0;
}
.ct-sheet__block + .ct-sheet__block {
    margin-top: 24px;
}

/* —— 応募フォーム：contact.css の見た目をそのまま使う —— */
.ct-form-section {
    position: sticky;
    top: 88px;
}
.ct-form-section .form-container {
    margin: 0;
    box-shadow: 0 8px 28px rgba(102, 126, 234, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.8);
}
/* 右カラム内では1列＋希望职位/简历の2列だけ */
.ct-form .contact-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.ct-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
.ct-form .form-group {
    margin: 0;
}
.ct-form .resume-field {
    display: grid;
    align-items: stretch;
}
.ct-form .resume-field > .form-group {
    display: flex;
    min-width: 0;
}
.ct-form .resume-field .field-box {
    flex: 1;
    justify-content: center;
}
/* 简历：ボタン＋説明を1行に収め、希望职位と高さを揃える */
.ct-form .resume-field .file-upload {
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
    min-height: 1.45em;
}
.ct-form .resume-field .file-upload__button {
    flex-shrink: 0;
    padding: 4px 12px;
    font-size: 0.8125rem;
    line-height: 1.35;
}
.ct-form .resume-field .file-upload__name {
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.75rem;
    line-height: 1.35;
}
@media (max-width: 1100px) {
    .ct-form .form-row {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 980px) {
    .ct-detail-grid {
        grid-template-columns: 1fr;
    }
    .ct-form-section {
        position: static;
    }
}
