/* スライダーの設定 */
.slider_container{
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    position: relative;
    z-index: -1;
    width: 100cqw;
    height: 100cqh;
    overflow: hidden;
}

.slider_texts{
    display: grid;
    grid-template-columns: auto;
    grid-template-rows: 50% 50%;

    grid-column: 1/2;
    grid-row: 1/2;
    width: 100cqw;
    height: 250px;
    align-self: center;
    text-align: center;

    position: relative;
    padding: 40px;
    box-sizing: border-box;
    color: var(--main_color);
    z-index: 20;
}
.slider_texts::after,.slider_texts::before{
    content: "";
    display: grid;
    grid-template-columns: auto;
    grid-template-rows: auto auto;
    align-items: center;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}
.slider_texts::after{
    background-color: white;
    opacity: 0.6;
}
.slider_texts::before{
    backdrop-filter: blur(8px);
}
.text_container{
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.text_container h2{
    margin: 0 0 10px 0;
    font-size: 38px;
    font-weight: var(--wh);
}
.text_container p{
    font-size: 14px;
    font-weight: var(--wh);
}
.text_container .think{
    font-size: 20px;
    font-weight: var(--wp);
    margin: 34px 0 8px 0;
}
.text_container .co_name{
    font-size: 24px;
    font-weight: var(--wp);
}

.slider_container .img{
    width: 100%;
    height: 100%;
    position: absolute;
    top:0;
    right:0;
    background-position: 50% 50%;
    /* background-size: 150%; */
    background-size: cover;
}
.swiper_container {
    width: 100cqw;
    height: 100%;
    grid-column: 1/2;
    grid-row: 1/2;
}
/* .slider_container .img1{
    background-image: url(../img/pixta_45668258_M.jpg);
}
.slider_container .img2{
    background-image: url(../img/pixta_62856128_M.jpg);
}
.slider_container .img3{
    background-image: url(../img/pixta_92716616_M.jpg);
} */
.swiper,.swiper-slide{
    height: 100%;
}
:is(.swiper-slide-active, .swiper-slide-duplicate-active, .swiper-slide-prev) .img{
    animation: imgzoom 15s linear;
    animation-fill-mode: forwards;
}

 @keyframes imgzoom {
    0%{
        transform: scale(1.2);
    }
    100%{
        transform: scale(1);
    }
}

/* ボタンのスタイル */
.home main a.btn{
    background: var(--grad1);
}


/* Our Philosophy 部分 */
.home .catchphrase_wrapper{
    display: flex;
    position: relative;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: var(--back_color2);
    padding: 100px 0;
}

.home .catchphrase_wrapper .btn{
    margin: 40px auto 0 auto;
    justify-self: end;
}

.home .catchphrase{
    font-size: 50px;
    font-weight: var(--wh);
    margin: 0 0 30px 0;
    background: var(--grad_text);
    background-clip: text;
    color: transparent;
}
.home .catchphrase_text{
    font-size: 24px;
    max-width: 600px;
    font-weight: var(--wp);
    color: var(--main_color);
}
.home .catchphrase_text p{
    line-height: 2.0;
    text-align: center;
}

/* 事業領域部分 */
.home .job_space{
    display: grid;
    grid-template-columns: auto auto;
    grid-template-rows: auto auto auto;
    grid-template-areas: 
        "h2 h2"
        "panel panel"
        "link link";
    padding: 80px 0;
    background-color: var(--back_color);
}
.home .job_space .h2_wrapp{
    grid-area: h2;
    justify-self: center;
    color: var(--main_color);
    
}
.home :is(.job_space .h2_wrapp, .recruit, .news) h2{
    color: var(--sub_color3);
    text-align: center;
    font-size: 50px;
    font-weight: var(--wh);
}
.home :is(.job_space .h2_wrapp, .recruit, .news) .rubi{
    color: var(--sub_color3);
    font-weight: var(--wh);
}
.home .job_space .h2_wrapp .rubi{
    text-align: center;
    font-weight: var(--wh);
    width: 100%;
    margin: 0;
    /* transform: translateX(30px); */
}
.home .job_space .h2_wrapp p{
    line-height: 1.5;
    width: 270px;
    margin: 20px auto 0 auto;
    text-align: center;
    /* transform: translateX(30px); */
}
.home .job_space .panel_wrapper{
    grid-area: panel;
    width: 1200px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: auto;
    margin: 50px auto 30px auto;
}
.home .job_space .link_wrapp{
    grid-area: link;
    width: 800px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
}


.home .job_space .panel{
    /* position: relative; */
    padding: 40px 80px;
    box-sizing: border-box;
    color: white;
    display: grid;
    grid-template-columns: auto;
    grid-template-rows: auto auto 1fr;
    grid-template-areas: 
    "icon"
    "title"
    "text";
    border-right: solid 2px white;
    border-image: var(--grad1) 1;
}

.home .job_space .panel:last-child{
    border-right: none;
    /* display: none; */
}

.home .job_space .panel h3{
    font-size: 28px;
    text-align: center;
    grid-area: title;
    font-weight: var(--wh);
    line-height: 1.2;
    color: transparent;
    background: var(--grad1);
    background-clip: text;
}
.home .job_space .panel .img{
    grid-area: icon;
    justify-self: center;
    align-self: center;
    width:80px;
}
.home .job_space .panel .text{
    margin: 20px 0 0 0;
    grid-area: text;
    align-self: flex-start;
    color: var(--main_color);
}
.home .job_space .panel_wrapper p{
    /* padding: 14px; */
    font-size: 18px;
    font-weight: var(--wp);
    text-align: justify;
    line-height: 2.0;
}

/* 採用情報部分 */
.home .recruit{
    padding: 50px 0;
}
.home .recruit .text{
    color: var(--main_color);
    text-align: center;
    margin: 20px 0 0 0;
}
.home .recruit p{
    line-height: 1.5;
}
.home .recruit .link_wrapp{
    display: flex;
    justify-content: center;
    gap: 40px;
}
.home .recruit .link_wrapp .btn:nth-child(2){
    background: var(--grad2);
}


.home :is(.recruit, .news) .rubi{
    color: var(--main_color);
    text-align: center;
}
.home .interview{
    overflow: hidden;
}
.home .interview .panel_wrapper{
    display: flex;
    flex-wrap: wrap;
    width: max-content;
    margin: 40px 0;
    animation: ImgSlider 30s linear infinite;
}
@keyframes ImgSlider{
    0%{
        transform: translateX(0%);
    }
    100%{
        transform: translateX(-50%);
    }
}
.home .interview .panel{
    flex: 1;
    width:300px;
    aspect-ratio: 3/2;
    margin: 0 20px 0 20px;
}

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

.home .news .news_list{
    width: 800px;
    margin: 30px auto 0 auto;
}
.home .news .news_list p{
    font-weight: var(--wp);
    padding: 20px 0 20px 20px;
    border-top: 1px solid white;
    border-image: var(--grad1) 1;
}
.home .news .news_list a{
    color: var(--grad2);
}
.home .news .news_list .date{
    margin: 0 20px 0 0;
}


@media (max-width:900px){
    .slider_container .img{
        background-size: cover;
    }

    .text_container{
        height: 100%;
    }
    .text_container h2{
        font-size: 30px;
    }
    .home :is(.job_space .h2_wrapp, .recruit, .news) h2{
        font-size: 40px;
    }

    .home .catchphrase{
        font-size: 28px;
    }
    .home .catchphrase_text{
        font-size: 16px;
    }


    .home .job_space{
        grid-template-columns: auto;
        grid-template-areas: 
            "h2"
            "panel"
            "link";
    }

    .home .job_space .panel_wrapper{
        width: 100%;
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        padding: 0 20px;
        box-sizing: border-box;
        justify-items: center;
        margin: 0px auto 30px auto;
    }
    
    .home .job_space .panel{
        padding: 40px 40px;
        border-right: none;
        border-bottom: solid 1px white;
        max-width: 600px;
    }
    .home .job_space .link_wrapp{
        width: auto;
    }
    .home .job_space .panel .text{
        margin: 10px 0 0 0;
    }
    .home .job_space .panel h3{
        font-size: 24px;
    }
    .home .job_space .panel_wrapper p{
        font-size: 16px;
    }
    .home .job_space .panel .img{
        width: 70px;
    }

    .home .interview .panel{
        width:200px;
    }
    .home .recruit{
        padding: 0 0 80px 0;
    }
    .home .recruit .text{
        padding: 0 40px;
    }
    .home .recruit .link_wrapp{
        flex-direction: column;
        align-items: center;
        row-gap: 20px;
    }

    .home .news .news_list{
        width: 80%;
    }
    .home .news .news_list p{
        font-size: 14px;
    }
}