@charset "UTF-8";

.front {
    max-width: 100%;
    text-align: center;
    margin: auto;
    display: flex !important;
    justify-content: space-around;
    padding-bottom: 70px;
}

.front_r {
    width: 50%;
    height: 900px;
    text-align: right;
    margin-left: auto;
    position: relative;
}

.front_r video {
    width: 100%;
    height: 900px !important;
    object-fit: cover;
    border-radius: 0 0 0 20px;
    text-align: right;
    margin-left: auto;
}

.front_r figure::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: #034387;
    opacity: 0.5;
    border-radius: 0 0 0 20px;
}

.front_l {
    width: 40%;
    text-align: left;
    margin-top: 5%;
    margin-left: 5%;
    margin-right: 5%;
}


.logo {
    width: 200px;
}

.front_l h2 {
    font-size: 3.5vw;
    font-weight: 900;
    margin-top: 140px;
    line-height: 1.4;
}


.front_l h3 {
    font-size: 2vw;
    font-weight: 900;
    line-height: 1.4;
    text-align: left;
}


.br2 {
    display: none;
}

@media screen and (min-width:1440px) {
    .front_l {
        width: 40%;
        margin-left: 5%;
    }

    .pc-item2 {
        display: block;
    }
}

@media screen and (max-width:769px) {
    .front {
        /* display: block; */
        flex-direction: column-reverse;
        margin-left: 6.8%;
        margin-bottom: 50px;
    }

    .logo2 {
        margin-bottom: 20px;
        width: 100px;

    }

    .front_r {
        width: 100%;
        height: 380px;
        text-align: right;
        margin-left: auto;
    }

    .front_r video {
        width: 100%;
        height: 380px !important;
    }

    .front_l {
        width: 93.2%;
        margin-top: 0;
        margin-left: 0;
        margin-right: 6.8%;
    }

    .front_l h2 {
        font-size: 9.2vw;
        margin-top: 30px;
        /* line-height: 1.1; */
        text-align: left;
    }

    .front_l h3 {
        font-size: 6vw;

    }

}



/* ----------------------------------------------------
recruit TOP
---------------------------------------------------- */
.front-recruit {
    display: flex;
    justify-content: space-around;
}

.front-recruit_l {
    width: 48%;
    height: 610px;
    text-align: left;
    margin-right: auto;
    aspect-ratio: 4 / 3;
    position: relative;
}

.front-recruit h3 {
    font-size: 1.4vw;
    font-weight: 700;
    margin: 30px 0;
    line-height: 1.4;
}

.front-recruit_l img {
    /* width: 100%; */
    height: 610px !important;
    object-fit: cover;
    border-radius: 0 20px 20px 0;
}

.front-recruit_txt {
    width: 30%;
    text-align: left;
    margin-right: 16%;

}

.slide_im {
    position: absolute;
    inset: 0;
    /* top:0; right:0; bottom:0; left:0 と同じ */
    opacity: 0;
    animation: fade 18s infinite;
    /* 3枚 × 3sずつ = 9秒で1周 */
}

.slide_im img {
    width: 100%;
    /* height: auto; */
    object-fit: cover;
}

/* 各スライドの開始時間をずらす */
/* .slide_im:nth-child(1) { animation-delay: 0s; }
.slide_im:nth-child(2) { animation-delay: 6s; }
.slide_im:nth-child(3) { animation-delay: 12s; } */

/* フェードアニメーション */
@keyframes fade {
    0% {
        opacity: 0;
    }

    10% {
        opacity: 0;
    }

    /* ← 5% → 10% にしてフェードイン長め */
    30% {
        opacity: 1;
    }

    48% {
        opacity: 0;
    }

    /* ← 35% → 40% にしてフェードアウト長め */
    100% {
        opacity: 0;
    }
}

@media screen and (max-width:769px) {
    .front-recruit {
        flex-direction: column-reverse;
    }

    .front-recruit h3 {
        font-size: 4.5vw;
        font-weight: 700;
        margin: 20px 0;
        line-height: 1.4;
    }

    .front-recruit_txt {
        width: 86.4%;
        margin: 6.8%;
    }

    .front-recruit_l {
        width: 94.2%;
        height: 380px;
    }

    .front-recruit_l img {
        /* width: 100%; */
        height: 380px !important;
    }
}


/* ============================
   CSSだけで作る無限横スクロール
   ============================ */
.slider {
    --gap: 33px;
    /* 画像の間隔 */
    --speed: 25s;
    /* 1周の速度（短いほど速い） */
    --radius: 14px;
    /* 角丸 */
    overflow: hidden;
    width: 100%;
    position: relative;
    margin-top: 70px;
    margin-bottom: 102px;
}

.slider__track {
    display: flex;
    gap: var(--gap);
    animation: slide-loop var(--speed) linear infinite;
    will-change: transform;
    backface-visibility: hidden;
    transform: translateZ(0);
    padding: 0;
    margin: 0;
    border: 0;
    /* 余白の混入防止 */
}

.slide {
    flex: 0 0 auto;
    width: 300px;
    /* ← 固定幅 */
    height: 250px;
    /* ← 固定高さ */
    border-radius: 14px;
    overflow: hidden;
}

.slide img {
    width: 100%;
    height: 250px !important;
    object-fit: cover;
    display: block;
}

@media screen and (max-width:769px) {
    .slider {
        --gap: 13px;
    }

    .slide {
        width: 200px;
        /* ← 固定幅 */
        height: 170px;
    }

    .slide img {
        width: 100%;
        height: 170px !important;
    }
}

/* スマホで間隔や速度を少し最適化 */
@media (max-width: 480px) {
    .slider {
        --speed: 20s;
        margin-top: 50px;
    }

}

/* ホバーで一時停止したい場合 */
/* .slider:hover .slider__track {
  animation-play-state: paused;
} */

/* 減速設定の人にはアニメーションを無効化（アクセシビリティ） */
@media (prefers-reduced-motion: reduce) {
    .slider__track {
        animation: none;
    }
}

/* 無限ループのキーフレーム：0%→-50%（=列2回分の半分） */
@keyframes slide-loop {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(calc(-1 * ((300px * 4) + (var(--gap) * 4))));
    }
}

.slide {
    position: relative;
    overflow: hidden;
}

/* .slide::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: #034387;
    opacity: 0.5;
    inset: 0;
    transform: translateX(0%);
    transition: transform 1s cubic-bezier(.7, .2, .1, .05);
    overflow: hidden;
} */

/* inview が付いたらスライドアウト */
/* .slide.inview::before {
    transform: translateX(100%);
} */


/* ----------------------------------------------------
/* ===== NEWS セクション全体 ===== */

.front-news {
    display: flex;
    justify-content: space-around;
    padding-bottom: 100px;
}

.front-news_r {
    width: 60%;
    text-align: right;
    margin-left: auto;
    position: relative;
    margin-right: 5%;
}

.front-news_r p {
    text-align: center;
    margin: auto;
}


.front-news_l {
    width: 30%;
    text-align: left;
    margin-left: 5%;
    margin-right: 5%;
}


.front-news-section {
    padding: 80px 0;
    background: #fff;
}

.front-news-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    gap: 80px;
}


@media screen and (max-width:769px) {
    .front-news {
        display: block;
        /* width: 95%; */
        margin: 6.8%;
    }

    .front-news_l,
    .front-news_r {
        width: 100%;
        margin: 0;
    }

}

/* marker消し */
.news-tabs2 ul,
.news-tabs2 li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.news-tabs2 li::marker {
    content: "";
}

/* 念のため */

/* タブ */
.news-tabs2 ul {
    display: flex;
    align-items: flex-end;
    border-bottom: 1px solid #cfcfcf;
    margin-bottom: 25px;
}

.news-tab {
    appearance: none;
    width: 120px;
    height: 30px;
    border: 1px solid #cfcfcf;
    background: #fff;
    border-radius: 8px 8px 0 0;
    font-size: 13px;
    cursor: pointer;
    margin-bottom: -1px;
}

.news-tab.is-active {
    border-bottom: none;

}

/* パネル（必要ならアニメ） */
.news-panel[hidden] {
    display: none !important;
}

.front-news .news-title {
    font-weight: 400;
    font-size: 16px;
}

.front-news .news-meta {
    gap: 20px;
    margin-bottom: 25px;
}

.front-news .news-card {
    border-bottom: 1px solid #cfcfcf;
}

.front-news .news-list {
    gap: 20px;
}

@media screen and (max-width:769px) {
    .news-tab {
        width: auto;
        padding: 5px 10px;
        font-size: 11px;
    }
}


/* リクルートのスライド */

.slide_im {
    position: absolute;
    inset: 0;
    /* top:0; right:0; bottom:0; left:0 と同じ */
    opacity: 0;
    animation: fade 18s infinite;
    /* 3枚 × 3sずつ = 9秒で1周 */
}

.slide_im img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 各スライドの開始時間をずらす */
.slide_im:nth-child(1) {
    animation-delay: 0s;
}

.slide_im:nth-child(2) {
    animation-delay: 6s;
}

.slide_im:nth-child(3) {
    animation-delay: 12s;
}

.slide_im:nth-child(4) {
    animation-delay: 18s;
}

/* フェードアニメーション */
@keyframes fade {
    0% {
        opacity: 0;
    }

    10% {
        opacity: 0;
    }

    /* ← 5% → 10% にしてフェードイン長め */
    30% {
        opacity: 1;
    }

    48% {
        opacity: 0;
    }

    /* ← 35% → 40% にしてフェードアウト長め */
    100% {
        opacity: 0;
    }
}