@charset "utf-8";

/* topics */

#topics {
    /* position: relative; */
    margin: 0 0 200px 0;

}

.topicsArea1 {
    display: flex;
    justify-content: space-between;
    /* width: 100%;
    height: 60vh; */
    margin: 0 auto 50px auto;
}

/* 学びバナー */
.topicsArea1 article:nth-of-type(1) {
    width: 40%
}

.manabiNaviBanner {
    margin-top: 30px;
    border-radius: 15px;
    position: relative;
    /* 擬似要素を絶対配置するため必須 */
    z-index: 0;
    /* 本体より後ろに擬似要素を配置しやすくする */
}

.manabiNaviBannerZoom {
    rotate: -5deg;
}

.manabiNaviBanner::before {
    content: "";
    /* 擬似要素は必須 */
    position: absolute;
    top: 10px;
    left: 10px;
    width: 100%;
    height: 90%;

    background-color: rgba(84, 132, 221, 0.1);
    rotate: 10deg;
    z-index: -1;
    /* 本体の背景より後ろに置く */
}

.manabiNaviBannerZoom img {
    transform: scale(1);
    transition: .3s ease-in-out;
    /*移り変わる速さを変更したい場合はこの数値を変更*/
    width: 100%;
    border-radius: 15px;
    /* padding: 35px 15px; */
}

.manabiNaviBannerZoom:hover img {
    /*hoverした時の変化*/
    transform: scale(1.3);
    /*拡大の値を変更したい場合はこの数値を変更*/
}

.manabiNaviBannerZoom .mask {
    display: block;
    /* height: 15vw; */
    overflow: hidden;
    border-radius: 15px;
}

.manabinaviText p {
    font-size: 24px;
    font-weight: bold;
    margin-top: 30px;
    padding: 10px 10px 30px 30px;
    color: #121212;
}

/* 学びバナー ここまで*/


/* 学びバナー右側 */
.topicsBoxRight {
    flex-basis: 53%;
    margin-left: 2%;
    flex-direction: column;
    display: -webkit-flex;
    -webkit-flex-direction: column;
    -webkit-justify-content: space-around;
}

.topicsBox1 {
    display: flex;
    justify-content: space-between;
}

/* .topics-block1 p {
    font-size: 20px;
    padding: 25px;

} */

.topicsArea1 .topicsBox1 article {
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.1);
}

.topics-block {
    display: none;
}

/* .topicsBoxRight::before {
    content: "";
    position: absolute;
    top: 30px;
    left: 0;
    width: 85%;
    height: 70%;
    background-color: rgba(84, 132, 221, 0.1);
    z-index: -1;
 
} */




.topicsArea1 .topicsBox1 article:nth-of-type(1) {
    width: 46%;
}

.topicsArea1 .topicsBox1 article:nth-of-type(2) {
    width: 46%;
}

.topicsArea1 .topicsBox1 article:nth-of-type(3) {
    width: 46%;
}

.topicsArea1 .topicsBox1 article:nth-of-type(4) {
    width: 46%;
}

/* 学びバナー右側ここまで */


.topicsArea2 {
    display: flex;
    justify-content: center;
    margin-bottom: 50px;
    margin: 0 auto;
}

.topicsBox2 {
    flex-basis: 70%;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-right: 2%;
}

.topicsArea2 article:nth-of-type(1) {
    width: 35%;
}

.topicsArea2 .topicsBox2 article:nth-of-type(1) {
    width: 30%;
}

.topicsArea2 .topicsBox2 article:nth-of-type(2) {
    width: 30%;
}

.topicsArea2 .topicsBox2 article:nth-of-type(3) {
    width: 30%;
}

.topicsArea2 .topicsBox2 article:nth-of-type(4) {
    width: 30%;
}

.topicsArea2 .topicsBox2 article:nth-of-type(5) {
    width: 30%;
}

.topicsArea2 .topicsBox2 article:nth-of-type(6) {
    width: 30%;
}


.zoomOut .mask {
    border-radius: 15px;
    overflow: hidden;
}




/* 4-7 にゅーん（滑らかに変形して出現） */
.smooth {
    animation-name: smoothAnime;
    animation-duration: 1s;
    animation-fill-mode: forwards;
    transform-origin: left;
    opacity: 0;
}

@keyframes smoothAnime {
    from {
        transform: translate3d(0, 100%, 0) skewY(12deg);
        opacity: 0;
    }

    to {
        transform: translate3d(0, 0, 0) skewY(0);
        opacity: 1;
    }
}

/* スクロールをしたら出現する要素にはじめに透過0を指定　*/
.fadeDownTrigger,
.smoothTrigger {
    opacity: 0;
}

/*===========================================================*/
/* 印象編　7-2 画像が縮小 　*/
/*===========================================================*/

.zoomOut img {


    transform: scale(1);
    transition: .3s ease-in-out;
    /* border-radius: 20px 20px 0 0; */
    /*移り変わる速さを変更したい場合はこの数値を変更*/
}

.zoomOut:hover img {
    /*hoverした時の変化*/
    transform: scale(1.2);
    /*拡大の値を変更したい場合はこの数値を変更*/
}


.zoomOut .mask {
    display: block;
    /* height: 15vw; */
    overflow: hidden;
}



@media screen and (max-width:960px) {
    #topics {
        margin: 0 0 100px 0;
    }

    #topics .topics-btn {
        text-align: center;
        padding: 30px 0 0 0;
    }

}

@media screen and (max-width:1020px) {
    .topics-area article {
        width: 48%;
        /* margin: 0 0 20px 0; */
    }

    .topics-area article:nth-of-type(2n+1) {
        /* top: 20px; */
        margin-bottom: 30px;
    }

    .topics-area article:nth-of-type(2n) {
        top: 0;
        margin-bottom: 30px;
    }

    .zoomOut .mask {
        height: 25vw;
    }

    .topics-area {
        margin-bottom: 15px;
    }

    .topics-area .topics-block h3 {
        font-size: 0.7rem;
    }

    .topics-area .topics-block {
        padding: 10px;
    }

    .topics-area .topics-block time {
        font-size: 0.7rem;
    }


}

@media screen and (max-width:720px) {

    .topicsArea1,
    .topicsArea2 {
        display: block;
        width: 100%;



    }

    .topicsBox1 .topicsBox2 {
        display: block;


    }


    .topicsInfo {

        width: 100%;
    }

    .topics-block1 {
        width: 45%;
    }



    .topicsArea1 article:nth-of-type(1) {
        width: 100%;
        height: 20vh;
    }

    .topicsArea1 .topicsBox1 article:nth-of-type(1) {
        width: 100%;
        height: 18vh;


    }

    .topicsArea1 .topicsBox1 article:nth-of-type(2) {
        width: 100%;
        height: 18vh;
    }

    .topicsArea2 article:nth-of-type(1) {
        width: 100%;
        height: 18vh;
    }

    .topicsArea2 .topicsBox2 article:nth-of-type(1) {
        width: 100%;
        height: 18vh;
    }

    .topicsArea2 .topicsBox2 article:nth-of-type(2) {
        width: 100%;
        height: 18vh;
    }

    .topicsArea2 .topicsBox2 article:nth-of-type(3) {
        width: 100%;
        height: 18vh;
    }

    .topicsArea2 .topicsBox2 article:nth-of-type(4) {
        width: 100%;
        height: 18vh;
    }

    .topicsArea2 .topicsBox2 article:nth-of-type(5) {
        width: 100%;
        height: 18vh;
    }

    .topicsArea2 .topicsBox2 article:nth-of-type(6) {
        width: 100%;
        height: 18vh;
    }
}

@media screen and (max-width:550px) {
    .zoomOut .mask {
        /* height: 45vw; */
        margin-top: 0;
    }
}

/* @media screen and (max-width:550px) {
    .topics-area article {
        width: 90%;
    }

    .topics-area article:nth-of-type(2n+1) {
        top: 0;
    }
} */