/* ================================================================
   career-page-category-detail.css
   職種カテゴリ詳細ページ（/career/{group}/{slug}/）
================================================================ */

/* ── 1) ヒーローセクション ── */

.cr-catd-hero {
    position: relative;
    padding-top: 40px;
    overflow: hidden;
}

.cr-catd-hero-inner {
    display: flex;
    align-items: flex-start;
    gap: 40px;
}

.cr-catd-hero-img-wrap {
    flex: 1;
    min-width: 0;
    margin-left: max(calc(-50vw + 50%), calc(-1000px + 50%));
    position: relative;
    clip-path: url(#cat-hero-clip-pc);
    aspect-ratio: 812 / 560;
}

.cr-catd-hero-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cr-catd-hero-body {
    flex-shrink: 0;
    width: 420px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
}

.cr-catd-hero-heading {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cr-catd-hero-group {
    display: inline-block;
    background: #ff0024;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 1.28px;
    padding: 5px 12px 6px;
    border-radius: 2px;
    margin: 0 0 16px;
    align-self: flex-start;
    line-height: 1.4;
}

.cr-catd-hero-title {
    margin: 0 0 32px;
    font-size: 40px;
    font-weight: 800;
    line-height: 1.4;
    letter-spacing: 3.2px;
    color: #191919;
}

.cr-catd-hero-lead {
    margin: 0;
    font-size: 16px;
    line-height: 1.5;
    color: #5c5c5c;
    letter-spacing: 1.28px;
}

.cr-catd-hero-entry {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 260px;
    height: 64px;
    border: 3px solid #ff0024;
    border-radius: 100px;
    background: #fff;
    color: #191919;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 2.16px;
    text-decoration: none;
    transition: background 0.25s, color 0.25s, border-color 0.25s;
    margin-top: 32px;
}

.cr-catd-hero-entry:hover {
    background: #ff0024;
    color: #fff;
    opacity: 1;
}

/* ── 2) 共通セクション ── */

.cr-catd-section {
    padding: 80px 0;
}

.cr-catd-section .dl-page-title-wrap {
    --dl-title-font-size: 32px;
    margin-bottom: 48px;
}

.cr-catd-section .dl-page-title {
    margin: 0;
    font-size: 32px;
    font-weight: 800;
    color: #191919;
    letter-spacing: 0.08em;
    line-height: 1.2;
}

/* ── 3) 仕事内容セクション ── */

.cr-catd-job-content {
    display: flex;
    gap: 80px;
    align-items: flex-start;
    padding-left: 16px;
}

.cr-catd-section.cr-catd-job {
    padding-top: 160px;
}

.cr-catd-job-text {
    flex: 0 0 474px;
    min-width: 0;
}

.cr-catd-job-content--no-tips .cr-catd-job-text {
    flex: 1;
}

.cr-catd-job-catch {
    margin: 0 0 24px;
    font-size: 40px;
    font-weight: 800;
    line-height: 1.4;
    letter-spacing: 3.2px;
    color: #191919;
}

.cr-catd-job-body {
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 1.28px;
    color: #191919;
}

.cr-catd-tips {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.cr-catd-tip {
    display: flex;
    align-items: stretch;
}

.cr-catd-tip-accent {
    width: 27px;
    flex-shrink: 0;
    background: linear-gradient(to bottom right, transparent 50%, #f8f8f8 50%);
}

.cr-catd-tip-card {
    flex: 1;
    background: #f8f8f8;
    padding: 32px 0px 40px 32px;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 23px;
}

.cr-catd-tip-card:before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 2000px;
    background-color: #f8f8f8;
    z-index: -1;
}

.cr-catd-tip-heading {
    display: flex;
    gap: 16px;
    align-items: baseline;
}

.cr-catd-tip-num {
    margin: 0;
    font-size: 46px;
    font-weight: 600;
    line-height: 1;
    color: #ff0024;
    flex-shrink: 0;
    text-transform: uppercase;
}

.cr-catd-tip-title {
    margin: 0;
    font-size: 28px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 1.68px;
    color: #191919;
}

.cr-catd-tip-body {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    letter-spacing: 1.12px;
    color: #5c5c5c;
}

/* ── 4) こんな人におすすめ ── */

.cr-catd-recommend-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px;
}

.cr-catd-recommend-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cr-catd-recommend-card-visual {
    position: relative;
}

.cr-catd-recommend-card-label {
    position: relative;
    margin-right: 16px;
}

.cr-catd-recommend-card-label-shape {
    display: flex;
    align-items: stretch;
    height: 100%;
    min-height: 233px;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
}

.cr-catd-recommend-card-label-inner {
    flex: 1;
    background: #e10020;
    border-radius: 2px 0 0 2px;
}

.cr-catd-recommend-card-title {
    margin: 0;
    position: relative;
    z-index: 1;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 1.02px;
    color: #fff;
    padding: 13px 24px;
    width: 100%;
    box-sizing: border-box;
    min-height: 72px;
}

.cr-catd-recommend-card-label-accent {
    width: 27px;
    flex-shrink: 0;
    background: linear-gradient(to top left, transparent 50%, #e10020 50%);
}

.cr-catd-recommend-card-img {
    position: relative;
    z-index: 1;
    padding-left: 16px;
}

.cr-catd-recommend-card-img img {
    display: block;
    width: 100%;
    aspect-ratio: 970 / 647;
    object-fit: cover;
    border-radius: 2px;
}

.cr-catd-recommend-card-text {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    letter-spacing: 1.12px;
    color: #5c5c5c;
}

/* ── 5) 募集要項 ── */

.cr-catd-recruit .dd-table {
    margin-bottom: 0;
}

.cr-catd-recruit .dd-row {
    padding: 32px 0;
}

.cr-catd-recruit .dd-row:first-child {
    border-top: none;
}

.cr-catd-recruit-card + .cr-catd-recruit-card {
    margin-top: 48px;
}

.cr-catd-recruit-action {
    margin-top: 32px;
    display: flex;
    justify-content: center;
}

.cr-catd-recruit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 240px;
    height: 56px;
    padding: 0 40px;
    border: 1px solid #d9d9d9;
    border-radius: 100px;
    background: #fff;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.12em;
    color: #191919;
    text-decoration: none;
    transition: background 0.25s, border-color 0.25s, color 0.25s;
}

.cr-catd-recruit-btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    transition: transform 0.25s;
}

.cr-catd-recruit-btn svg path {
    transition: fill 0.25s;
}

.cr-catd-recruit-btn:hover {
    background: #ff0024;
    border-color: #ff0024;
    color: #fff;
    opacity: 1;
}

.cr-catd-recruit-btn:hover svg {
    transform: translateX(5px);
}

.cr-catd-recruit-btn:hover svg path {
    fill: #fff;
}

/* ── 6) インタビュー ── */

.cr-catd-interview {
}

.cr-catd-interview .dl-page-title-wrap {
    margin-bottom: 32px;
}

.cr-catd-interview-slider {
    /* スライダーを画面幅いっぱいに拡張 */
}

/* ── 7) FAQ ── */

.cr-catd-faq-group {
    margin-bottom: 40px;
}

.cr-catd-faq-group:last-child {
    margin-bottom: 0;
}

.cr-catd-faq-group-title {
    margin: 0 0 24px;
    font-size: 24px;
    font-weight: 600;
    line-height: normal;
    letter-spacing: 0.16em;
    color: #191919;
}

.cr-catd-faq-more {
    margin-top: 40px;
    text-align: right;
}

/* ── 8) CTA（ケイアイで働く） ── */

.cr-catd-cta {
    margin-bottom: 160px;
}

/* ================================================================
   レスポンシブ
================================================================ */

@media screen and (max-width: 1240px) {
    .cr-catd-recommend-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 48px;
    }
}

@media screen and (max-width: 1024px) {
    .cr-catd-hero-inner {
        gap: 32px;
    }

    .cr-catd-hero-body {
        width: 340px;
        gap: 24px;
    }

    .cr-catd-hero-title {
        font-size: 30px;
    }

    .cr-catd-hero-lead {
        font-size: 14px;
    }

    .cr-catd-hero-entry {
        width: 220px;
        height: 56px;
        font-size: 16px;
    }

    .cr-catd-job-content {
        padding-left: 0;
        flex-direction: column;
        gap: 40px;
    }

    .cr-catd-job-text {
        flex: none;
        width: 100%;
    }

    .cr-catd-job-catch {
        font-size: 30px;
    }

    .cr-catd-tips {
        flex: none;
        width: 100%;
    }

    .cr-catd-tip-card {
        padding: 24px 32px 24px 28px;
    }

    .cr-catd-tip-title {
        font-size: 22px;
    }
}

@media screen and (max-width: 768px) {
    /* ── 1) ヒーロー ── */
    .cr-catd-hero-inner {
        flex-direction: column;
        gap: 0;
    }

    .cr-catd-hero-img-wrap {
        flex: none;
        width: calc(100vw - 28px);
        margin-left: max(calc(-50vw + 50%), calc(-1000px + 50%));
        aspect-ratio: 347 / 355;
        clip-path: url(#cat-hero-clip-sp);
    }

    .cr-catd-hero-body {
        width: 100%;
        padding: 20px 0 0;
        gap: 12px;
    }

    .cr-catd-hero-group {
        font-size: 16px;
        margin: 0;
    }

    .cr-catd-hero-title {
        font-size: 32px;
        letter-spacing: 2.56px;
        margin: 0;
    }

    .cr-catd-hero-lead {
        font-size: 15px;
        letter-spacing: 1.2px;
    }

    .cr-catd-hero-entry {
        width: 100%;
        height: 64px;
        font-size: 18px;
        border-width: 3px;
        margin-top: 0;
    }

    /* ── 共通セクション ── */
    .cr-catd-section {
        padding: 40px 0;
    }

    .cr-catd-section .dl-page-title-wrap {
        --dl-title-font-size: 22px;
        margin-bottom: 40px;
    }

    .cr-catd-section .dl-page-title {
        font-size: 22px;
        letter-spacing: 1.76px;
    }

    /* ── 2) 仕事内容 ── */
    .cr-catd-section.cr-catd-job {
        padding-top: 80px;
    }

    .cr-catd-job-content {
        gap: 24px;
    }

    .cr-catd-job-catch {
        font-size: 28px;
        letter-spacing: 2.24px;
        margin-bottom: 24px;
    }

    .cr-catd-job-body {
        font-size: 14px;
        letter-spacing: 1.12px;
    }

    .cr-catd-tips {
        gap: 24px;
    }

    .cr-catd-tip-accent {
        width: 24px;
    }

    .cr-catd-tip-card {
        padding: 24px 28px 24px 14px;
        gap: 16px;
    }

    .cr-catd-tip-heading {
        gap: 12px;
        align-items: center;
    }

    .cr-catd-tip-num {
        font-size: 32px;
    }

    .cr-catd-tip-title {
        font-size: 20px;
        letter-spacing: 1.2px;
    }

    .cr-catd-tip-body {
        font-size: 12px;
        letter-spacing: 0.96px;
    }

    /* ── 3) こんな人におすすめ ── */
    .cr-catd-recommend-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .cr-catd-recommend-card-title {
        font-size: 17px;
        letter-spacing: 1.02px;
    }

    .cr-catd-recommend-card-text {
        font-size: 14px;
        letter-spacing: 1.12px;
    }

    /* ── 4) 募集要項 ── */
    .cr-catd-recruit-card + .cr-catd-recruit-card {
        margin-top: 40px;
    }

    .cr-catd-recruit-action {
        margin-top: 40px;
    }

    .cr-catd-recruit-btn {
        min-width: 260px;
        width: 260px;
        height: 64px;
        padding: 0 27px;
        font-size: 18px;
        letter-spacing: 2.16px;
        background: #f4f4f4;
        border: none;
    }

    .cr-catd-recruit-btn:hover {
        background: #ff0024;
        border: none;
        color: #fff;
    }

    .cr-catd-recruit-btn:hover svg path {
        fill: #fff;
    }

    /* ── 5) FAQ ── */
    .cr-catd-faq-group {
        margin-bottom: 64px;
    }

    .cr-catd-faq-group-title {
        font-size: 20px;
        margin-bottom: 16px;
    }

    .cr-catd-faq .cr-faq-list {
        padding-left: 0;
        gap: 8px;
    }

    .cr-catd-faq .cr-faq-item-button {
        padding: 16px 24px;
        gap: 12px;
    }

    .cr-catd-faq .cr-faq-q,
    .cr-catd-faq .cr-faq-a {
        font-size: 24px;
    }

    .cr-catd-faq .cr-faq-question {
        font-size: 15px;
        line-height: 1.5;
        letter-spacing: 0.08em;
    }

    .cr-catd-faq .cr-faq-answer-inner {
        padding: 16px 24px;
        gap: 12px;
    }

    .cr-catd-faq .cr-faq-answer-body {
        font-size: 15px;
        letter-spacing: 0.08em;
    }

    .cr-catd-faq-more {
        margin-top: 40px;
    }

    .cr-catd-faq-more .cr-text-btn {
        font-size: 14px;
        letter-spacing: 2.8px;
    }

    /* ── 6) CTA ── */
    .cr-catd-cta {
        margin-bottom: 80px;
        padding: 80px 0;
    }
}

@media screen and (max-width: 450px) {
    .cr-catd-hero-title {
        font-size: 26px;
        letter-spacing: 2px;
    }

    .cr-catd-hero-lead {
        font-size: 14px;
    }

    .cr-catd-hero-entry {
        height: 56px;
        font-size: 16px;
    }

    .cr-catd-job-catch {
        font-size: 24px;
        letter-spacing: 1.92px;
    }

    .cr-catd-tip-num {
        font-size: 28px;
    }

    .cr-catd-tip-title {
        font-size: 18px;
    }

    .cr-catd-tip-heading {
        gap: 10px;
    }

    .cr-catd-recruit-btn {
        min-width: 220px;
        width: 220px;
        height: 56px;
        font-size: 16px;
    }
}
