/* ================================================================
   採用TOPページ
================================================================ */


/* ---- KV ---- */

.cr-top-kv-heading {
    margin-bottom: 32px;
}

.cr-top-kv-title-row {
    position: relative;
    padding-right: 24px;
    width: max-content;
    max-width: 100%;
    box-sizing: border-box;
}

.cr-top-kv-title {
    font-size: 68px;
    font-weight: 700;
    letter-spacing: 2.04px;
    line-height: 1.1;
    color: #191919;
    margin: 0;
}

.cr-top-kv-sub {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 2.88px;
    color: #191919;
    margin: 0;
}

.cr-top-kv-line {
    --kv-line-thickness: 4px;
    width: 2000px;
    height: var(--kv-line-thickness);
    flex-shrink: 0;
    position: absolute;
    right: -2000px;
    top: 0;
    bottom: 0;
    margin: auto 0;
    overflow: hidden;
}

.cr-top-kv-line-inner {
    width: 100%;
    height: 100%;
    background: #ff0024;
    border-radius: 100px;
    transform: translateX(-100%);
    animation: crTopKvLineSlide 0.8s linear 3s forwards;
}

.body_active .cr-top-kv-line-inner {
    animation: crTopKvLineSlide 1.2s linear 0.8s forwards;
}

@keyframes crTopKvLineSlide {
    to {
        transform: translateX(0);
    }
}

.cr-top-kv-visual-inner {
    width: 100%;
    max-width: 2000px;
    margin: 0 auto;
    position: relative;
}


/* ---- KV Swiper ---- */

.cr-top-kv-swiper {
    width: 84.4%;
    margin-left: 0;
    margin-right: auto;
    overflow: hidden;
    clip-path: url(#kv-clip-pc);
}

.cr-top-kv-swiper .swiper-slide picture {
    width: 100%;
    aspect-ratio: 1148 / 525;
    display: block;
}
.cr-top-kv-swiper .swiper-slide img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.cr-top-kv-pagination-wrap {
    position: absolute;
    width: 100%;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.cr-top-kv-pagination {
    position: relative;
    bottom: 0 !important;
    left: auto;
    width: auto;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.cr-top-kv-pagination .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #c4c4c4;
    opacity: 1;
    transition: background 0.3s;
}

.cr-top-kv-pagination .swiper-pagination-bullet-active {
    background: #ff0024;
}


/* ---- 共通セクション ---- */

.cr-top-section {
    padding: 0;
}

#career-recruit {
    scroll-margin-top: 120px;
}

.cr-top-section .dl-page-title-line-inner {
    animation: none;
    transform: translateX(-100%);
}

.body_active .cr-top-section .dl-page-title-line-inner {
    animation: none;
    transform: translateX(-100%);
}

.cr-top-section .dl-page-title-wrap.is_active .dl-page-title-line-inner {
    animation: titleLineSlide 0.8s linear 0.3s forwards;
}

.cr-top-section+.cr-top-section {
    margin-top: 160px;
}

.cr-top-career {
    margin-top: 160px;
    overflow: hidden;
}


/* ---- キャリア採用グリッド ---- */

.cr-top-career-grid {
    margin-bottom: 16px;
    border-radius: 4px;
}

.cr-top-career-grid--pc {
    display: block;
}

.cr-top-career-grid--sp {
    display: none;
}

.cr-top-career-row-top {
    display: flex;
    position: relative;
    --cr-top-career-top-width: 55%;
    --cr-top-career-overlap: 6.7%;
}

.cr-top-career-card {
    position: relative;
    display: block;
    text-decoration: none;
    color: #191919;
    overflow: hidden;
    opacity: 1;
    transition: 0.3s;
}

.cr-top-career-card:hover {
    opacity: 1;
}

.cr-top-career-card picture,
.cr-top-career-card img {
    display: block;
    width: 100%;
    height: auto;
    opacity: 1;
    z-index: 2;
    position: relative;
}

.cr-top-career-card:hover img {
    opacity: 1;
}

.cr-top-career-card-text {
    position: absolute;
    z-index: 2;
}

.cr-top-career-card--sales {
    width: var(--cr-top-career-top-width);
    z-index: 2;
    flex-shrink: 0;
}

.cr-top-career-card--sales .cr-top-career-card-text {
    top: 35px;
    left: 60px;
}

.cr-top-career-card--tech {
    width: var(--cr-top-career-top-width);
    margin-left: calc(var(--cr-top-career-overlap) * -1);
    z-index: 1;
}

.cr-top-career-card--tech .cr-top-career-card-text {
    left: 50px;
    bottom: 36px;
}

.cr-top-career-card--corp {
    display: block;
    height: 216px;
    width: calc(100% - 3px);
    margin-top: -2px;
    left: 2px;
    z-index: 2;
}

.cr-top-career-card--corp .cr-top-career-card-text {
    bottom: 60px;
    left: 60px;
}

.cr-top-career-card-body {
    display: flex;
    align-items: flex-end;
    gap: 12px;
}

.cr-top-career-num {
    font-size: 56px;
    font-weight: 600;
    line-height: 1;
    color: #ff0024;
    transition: color 0.3s ease;
}

.cr-top-career-label {
    font-size: 36px;
    font-weight: 700;
    letter-spacing: 3.6px;
    line-height: 1.2;
    color: #191919;
    transition: color 0.3s ease;
}

.cr-top-career-card:hover .cr-top-career-num,
.cr-top-career-card:hover .cr-top-career-label,
.cr-top-career-card:hover .cr-top-career-card-desc {
    color: #ffffff;
}

.cr-top-career-card-desc {
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 1.12px;
    line-height: 1.6;
    color: #191919;
    margin-top: 12px;
    margin-bottom: 0;
    transition: color 0.3s ease;
}

/* PC: 画像をレイヤー分割（グレー背景 + 背景写真 + 人物PNG） */
.cr-top-career-card--pc {
    overflow: hidden;
}

.cr-top-career-card--mask {
    overflow: hidden;
    -webkit-mask-image: var(--career-mask-image);
    mask-image: var(--career-mask-image);
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
}

.cr-top-career-card--sales.cr-top-career-card--mask {
    clip-path: polygon(0 0, 100% 0, 88.54% 100%, 0 100%);
}

.cr-top-career-card--tech.cr-top-career-card--mask {
    clip-path: polygon(12.15% 0, 100% 0, 100% 100%, 0 100%);
}

.cr-top-career-card-white-bg,
.cr-top-career-card-hover-bg {
    position: absolute;
    pointer-events: none;
}

.cr-top-career-card-white-bg {
    background: #f8f8f8;
    z-index: 0;
    overflow: hidden;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
}

.cr-top-career-card-hover-bg {
    background-color: #ff0024;
    transition: 0.5s;
    left: 160%;
    width: 150%;
    top: 0;
    height: 100%;
    will-change: left;
}

.cr-top-career-card:not(:hover) .cr-top-career-card-hover-bg {
    animation: careerHoverBgOut 0.5s forwards;
}

.cr-top-career-card:hover .cr-top-career-card-hover-bg {
    animation: careerHoverBgIn 0.5s forwards;
}

.cr-top-career-card-visual {
    position: relative;
    width: 100%;
    overflow: hidden;
    z-index: 1;
}

.cr-top-career-card-visual--sales {
    aspect-ratio: 658 / 437;
}

.cr-top-career-card-visual--tech {
    aspect-ratio: 619 / 437;
}

.cr-top-career-card-visual--sales .cr-top-career-card-white-bg {
    z-index: 2;
    height: 182px;
}

.cr-top-career-card-visual--tech .cr-top-career-card-white-bg {
    z-index: 2;
    height: 182px;
    bottom: 0;
    top: initial;
}

.cr-top-career-mask-layer,
.cr-top-career-person {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
}

.cr-top-career-mask-layer--gray {
    background: #575757;
    transition: background-color 0.3s;
}

.cr-top-career-mask-layer--photo {
    width: 100%;
    height: 100%;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    background-image: var(--career-bg-image);
    z-index: 1;
}

.cr-top-career-person {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 2;
}

.cr-top-career-corp-visual {
    width: max-content;
    overflow: hidden;
    height: calc(100% + 1.5px);
    position: absolute;
    right: 0;
    top: 0;
}

.cr-top-career-corp-bg {
    position: absolute;
    inset: 0;
    transition: background-color 0.3s;
}

.cr-top-career-corp-visual img {
    position: relative;
    z-index: 1;
    width: auto;
    height: 100%;
}

@keyframes careerHoverBgIn {
    from {
        left: -160%;
    }
    to {
        left: 0;
    }
}

@keyframes careerHoverBgOut {
    from {
        left: 0;
    }
    to {
        left: 160%;
    }
}


/* ---- キャリアリンクカード ---- */

.cr-top-career-links {
    display: flex;
    gap: 17px;
}

.cr-top-link-card {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f8f8f8;
    border-radius: 4px;
    padding: 38px 24px;
    text-decoration: none;
    color: #191919;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 2.2px;
    transition: background-color 0.2s, color 0.2s, opacity 0.2s;
    overflow: hidden;
}

.cr-top-link-card:hover {
    opacity: 1;
    background-color: #ff0024;
    color: #ffffff;
}

.cr-top-link-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    color: #ff0024;
}

.cr-top-link-icon,
.cr-top-company-icon,
.cr-top-link-icon path,
.cr-top-company-icon path {
    transition: 0s;
}


/* ---- 新卒採用 ---- */

.cr-top-newgrad {
    overflow: hidden;
}

.cr-top-newgrad-layout {
    display: flex;
    align-items: flex-start;
    gap: 60px;
    justify-content: flex-end;
}

.cr-top-newgrad-img {
    flex: 1;
    min-width: 0;
    margin-left: max(calc(-50vw + 50%), calc(-1000px + 50%));
    margin-top: auto;
}

.cr-top-newgrad-img picture,
.cr-top-newgrad-img img {
    width: 100%;
    height: auto;
    min-height: 400px;
    object-fit: cover;
    object-position: right;
    display: block;
}

.cr-top-newgrad-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 2px 0;
    min-width: 0;
    width: 420px;
    flex-shrink: 0;
    gap: 50px;
}

.cr-top-newgrad-heading {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: 2.56px;
    line-height: 1.2;
    color: #191919;
    margin: 0 0 16px;
}

.cr-top-newgrad-desc {
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 1.28px;
    line-height: 1.5;
    color: #191919;
    margin: 0;
}

.cr-top-newgrad-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cr-top-newgrad-link {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f8f8f8;
    border-radius: 4px;
    padding: 16px 24px;
    text-decoration: none;
    color: #191919;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1.6px;
    transition: background-color 0.2s, color 0.2s, opacity 0.2s;
}

.cr-top-newgrad-link:hover {
    opacity: 1;
    background-color: #ff0024;
    color: #ffffff;
}

.cr-top-newgrad-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ff0024;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1.4px;
    padding: 6px 10px;
    border-radius: 2px;
    line-height: 1;
    flex-shrink: 0;
    transition: background-color 0.2s, color 0.2s;
}

.cr-top-newgrad-link:hover .cr-top-newgrad-badge {
    background: #ffffff;
    color: #ff0024;
}


/* ---- 会社を知る ---- */

.cr-top-company-layout {
    display: flex;
    align-items: flex-start;
    gap: 130px;
}

.cr-top-company-content {
    display: flex;
    flex-direction: column;
    gap: 32px;
    width: 420px;
    flex-shrink: 0;
}

.cr-top-company-heading {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: 2.56px;
    line-height: 1.2;
    color: #191919;
    margin: 0 0 16px;
}

.cr-top-company-desc {
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 1.28px;
    line-height: 1.5;
    color: #191919;
    margin: 0;
}

.cr-top-company-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cr-top-company-link {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f8f8f8;
    border-radius: 4px;
    padding: 16px 24px;
    text-decoration: none;
    color: #191919;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1.6px;
    transition: background-color 0.2s, color 0.2s, opacity 0.2s;
}

.cr-top-company-link:hover {
    opacity: 1;
    background-color: #ff0024;
    color: #ffffff;
}

.cr-top-company-link svg {
    flex-shrink: 0;
}

.cr-top-company-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    color: #ff0024;
}

.cr-top-link-card:hover .cr-top-link-icon,
.cr-top-company-link:hover .cr-top-company-icon {
    color: #ffffff;
}

.cr-top-company-img {
    flex: 1;
    min-width: 0;
    margin-right: max(calc(-50vw + 50%), calc(-1000px + 50%));
    margin-top: auto;
}

.cr-top-company-img picture,
.cr-top-company-img img {
    width: 100%;
    height: auto;
    min-height: 400px;
    object-fit: cover;
    object-position: left;
    display: block;
}

.cr-top-section.cr-top-company {
    padding-bottom: 160px;
}


/* ---- インタビュー (途切れないループSwiper) ---- */

.cr-top-section.cr-top-interview {
    margin-top: 0;
    padding-bottom: 160px;
    overflow: hidden;
}

.cr-top-interview .inner {
    margin-bottom: 64px;
}

.cr-top-interview-swiper-wrap {
    position: relative;
}

.cr-top-interview-swiper {
    overflow: hidden;
}

.cr-top-interview-swiper .swiper-wrapper {
    display: flex;
    gap: 16px;
    width: max-content;
    will-change: transform;
}

.cr-top-interview-swiper .swiper-slide {
    width: 300px;
    height: 420px;
    flex: 0 0 auto;
}

.cr-top-interview-arrow {
    position: absolute;
    top: 50%;
    right: 60px;
    transform: translateY(-50%);
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: none;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: opacity 0.2s;
}

.cr-top-interview-arrow:hover {
    opacity: 0.7;
}


/* ---- もっと見るリンク ---- */

.cr-top-interview-more {
    display: flex;
    justify-content: flex-end;
    padding-right: 120px;
    margin-top: 24px;
}


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


/* ---- 1280px: キャリア採用セクションのみ縦積み ---- */

@media screen and (max-width: 1280px) {
    .cr-top-career-grid--pc {
        display: none;
    }
    .cr-top-career-grid--sp {
        display: block;
    }
    .cr-top-career-row-top {
        flex-direction: column;
        margin-bottom: 24px;
        gap: 24px;
    }
    .cr-top-career-card--sales {
        width: 100%;
        border-radius: 2px;
    }
    .cr-top-career-card--tech {
        width: 100%;
        margin-left: 0;
        border-radius: 2px;
    }
    .cr-top-career-links {
        flex-direction: column;
    }
    .cr-top-link-card {
        padding: 24px;
        font-size: 18px;
    }
    .cr-top-section.cr-top-career .inner {
        width: 700px;
    }
    .cr-top-career-grid--sp .cr-top-career-card--sales .cr-top-career-card-text,
    .cr-top-career-grid--sp .cr-top-career-card--tech .cr-top-career-card-text {
        top: 40px;
        left: 20px;
        bottom: auto;
    }
    .cr-top-career-grid--sp .cr-top-career-card--corp .cr-top-career-card-text {
        left: 4vw;
        bottom: auto;
        top: 4.7vw;
    }
    .cr-top-career-card--corp {
        height: auto;
        width: 100%;
        left: initial;
        margin-top: 0;
    }
    .cr-top-career-card--corp .cr-top-career-card-white-bg {
        position: relative;
        height: 224px;
        height: 29.3vw;
    }
}


/* ---- 1024px: 新卒・会社を知る縦積み、余白縮小 ---- */

@media screen and (max-width: 1024px) {
    .cr-top-kv-title {
        font-size: 42px;
    }
    .cr-top-newgrad-layout {
        flex-direction: column;
        gap: 32px;
    }
    .cr-top-newgrad-img {
        margin-left: 0;
        width: 100vw;
        left: -5vw;
        position: relative;
    }
    .cr-top-newgrad-content {
        width: 100%;
        gap: 32px;
    }
    .cr-top-company-layout {
        flex-direction: column-reverse;
        gap: 32px;
    }
    .cr-top-company-content {
        width: 100%;
    }
    .cr-top-company-img {
        margin-right: 0;
        width: 100vw;
        left: -5vw;
        position: relative;
    }
    .cr-top-company-img picture,
    .cr-top-company-img img {
        min-height: 240px;
    }
    .cr-top-section.cr-top-company {
        padding-bottom: 80px;
    }
    .cr-top-section+.cr-top-section {
        margin-top: 80px;
    }
    .cr-top-section.cr-top-interview {
        margin-top: 0;
    }
    .cr-top-career {
        margin-top: 80px;
    }
    .cr-top-interview {
        padding-bottom: 80px;
    }
    .cr-top-interview .inner {
        margin-bottom: 40px;
    }
    .cr-top-interview-more {
        padding-right: 40px;
    }
    .cr-top-interview-arrow {
        right: 30px;
        width: 48px;
        height: 48px;
    }
}


/* ---- 768px: SP対応 ---- */

@media screen and (max-width: 768px) {
    #career-recruit {
        scroll-margin-top: 96px;
    }

    .cr-top-kv-line {
        top: auto;
        bottom: calc((33px * 1.1 - var(--kv-line-thickness)) / 2);
        margin: 0;
    }

    .cr-top-kv-title {
        font-size: 33px;
        letter-spacing: 0.99px;
    }
    .cr-top-kv-sub {
        font-size: 14px;
        letter-spacing: 2.8px;
    }
    .cr-top-kv-heading {
        margin-bottom: 32px;
    }
    .cr-top-kv-visual-inner {
        padding-right: 4%;
    }
    .cr-top-kv-swiper {
        width: 100%;
        clip-path: url(#kv-clip-sp);
    }
    .cr-top-kv-swiper .swiper-slide picture {
        height: 128vw;
    }
    .cr-top-kv-pagination {
        margin-top: 12px;
        gap: 2px;
    }
    .cr-top-kv-pagination-wrap .inner {
        max-width: 96%;
    }
    .cr-top-kv-pagination .swiper-pagination-bullet {
        width: 6px;
        height: 7px;
    }
    /* キャリア採用 */
    .cr-top-career-card--sales .cr-top-career-card-text,
    .cr-top-career-card--tech .cr-top-career-card-text {
        top: 10.67vw;
        left: 5.33vw;
        bottom: auto;
    }
    .cr-top-career-card--corp .cr-top-career-card-text {
        left: 5.33vw;
        bottom: auto;
        top: 4.27vw;
    }
    .cr-top-link-card {
        padding: 16px 18px;
    }
    .cr-top-career-links {
        display: flex;
        gap: 8px;
    }
    .cr-top-link-icon {
        width: 28px;
        height: 28px;
    }
    /* 新卒採用 */
    .cr-top-newgrad-heading {
        font-size: 24px;
        letter-spacing: 1.92px;
    }
    .cr-top-newgrad-desc {
        font-size: 14px;
        letter-spacing: 1.12px;
    }
    .cr-top-newgrad-content {
        padding: 0;
    }
    .cr-top-newgrad-img picture,
    .cr-top-newgrad-img img {
        min-height: 240px;
    }
    .cr-top-newgrad-link {
        padding: 16px 18px;
        font-size: 14px;
        letter-spacing: 1.4px;
    }
    .cr-top-newgrad-badge {
        font-size: 12px;
        letter-spacing: 1.2px;
        padding: 6px 10px;
    }
    /* 会社を知る */
    .cr-top-company-heading {
        font-size: 24px;
        letter-spacing: 1.92px;
    }
    .cr-top-company-desc {
        font-size: 14px;
        letter-spacing: 1.12px;
    }
    .cr-top-company-link {
        padding: 16px 18px;
        font-size: 14px;
        letter-spacing: 1.4px;
    }
    .cr-top-company-icon {
        width: 24px;
        height: 24px;
    }
    .cr-top-company-img picture,
    .cr-top-company-img img {
        min-height: 240px;
    }
    /* インタビュー */
    .cr-top-interview .inner {
        margin-bottom: 32px;
    }
    .cr-top-interview-swiper .swiper-slide {
        width: 260px;
        height: 360px;
    }
    .cr-top-interview-arrow {
        right: 16px;
        width: 44px;
        height: 44px;
    }
    .cr-top-interview-arrow svg {
        width: 22px;
        height: 22px;
    }
    .cr-top-interview-more {
        padding-right: 28px;
    }
    .cr-text-btn {
        font-size: 14px;
        letter-spacing: 2.8px;
    }
}

/* ---- 550px: キャリア採用カードのフォント縮小 ---- */

@media screen and (max-width: 550px) {
    .cr-top-career-num {
        font-size: 36px;
    }
    .cr-top-career-label {
        font-size: 24px;
        letter-spacing: 2.4px;
    }
    .cr-top-career-card-desc {
        font-size: 13px;
        letter-spacing: 1.3px;
    }
    .cr-top-link-card {
        font-size: 18px;
        letter-spacing: 1.8px;
    }
}


/* ---- 450px: インタビューSwiper ---- */

@media screen and (max-width: 450px) {
    .dl-page-title {
        font-size: 22px;
    }
    .dl-page-title-wrap {
        --dl-title-font-size: 22px;
    }
    .cr-top-interview-swiper .swiper-slide {
        width: 240px;
        height: 336px;
    }
}