a, select, button {
    cursor: pointer;
}
a:hover, select:hover, button:hover {
    opacity: 0.7;
    transition: .8s;
}
.bread_frame {z-index: 1;}

.wrapper {
    width: 1060px;
    margin: auto;
    display: flex;
}
.wrapper>.casestudy {
    margin: 0 auto;
    flex: 4;
}
.wrapper>aside{flex: 1;}

/*---------------
    各種ボタン
-----------------*/
/* 詳細はこちらボタン */
.shosai-btn {
    display: block;
    padding: 5px 10px;
    margin-left: auto;
    border: none;
    border-radius: 2px;
    color: #ffffff;
    background-color: #ff66ff;
    text-align: center;
    font-size: 1.8rem;
    line-height: 1.5em;
    width: 115px;
    min-width: 115px;
}

/* 前のページに戻るボタン */
.modoru-btn, .modoru-btn_top {
    background-color: #399837;
    border: none;
    border-radius: 2px;
    color: #ffffff;
    font-size: 2.0rem;
    padding: 7px 15px;
    margin: 40px auto 0;
    display: block;
    width: fit-content;
}


/*---------------
    検索エリア 
-----------------*/
.searchBox {width: 100%;}
/* プルダウン */
.searchBox select, [name="freeword"] {
    font-family: YuGothic, "Yu Gothic Medium", "Yu Gothic", "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", "メイリオ", Meiryo, Osaka, "ＭＳ Ｐゴシック", "MS PGothic", sans-serif;
    font-size: 1.6rem;
    padding: 5px 25px;
    margin-right: 10px;
}
.searchBox > select, .searchBox > .learning-scene {
    width: calc((100% - 25px) / 2);
    margin: 0 10px 10px 0;
}
.searchBox>div {width: 100%;}

/* 学習場面　ポップアップ */
.learning-scene_popup {
    position: fixed;
    z-index: 14;
    height: 100vh;
    width: 100vw;
    top: 0;
    display: none;
    -ms-flex-pack: center;
    justify-content: center;
    -ms-flex-align: center;
    align-items: center;
}
.learning-scene {
    margin: 170px auto 0;
    width: 50%;
    z-index: 15;
    opacity: 1;
    position: absolute;
    background-color: white;
    padding: 10px;

    left: 70%;
    translate: -50%;
}
.learning-scene p {
    margin: 0px 10px 10px 10px;
    text-align: center;
}
.learning-scene a {
    margin: 10px;
    text-align: center;
    display: block;
}

#index2 .learning-scene {
    left: 50%;
}
.learning-scene.is-open {display: block;}

.close-area {
    width: 100vw;
    height: 100vh;
    background-color: black;
    opacity: 0.7;
    position: absolute;
    top: 0px;
    left: 0;
}

/* タグ */
.searchBox .tag_search {margin: 10px 0;}
.searchBox .tag_search ul {
    display: flex;
    flex-wrap: wrap;
}
.searchBox .tag_search ul>li {
    width: fit-content;
    margin-right: 10px;
    margin-bottom: 10px;
}
.searchBox .tag_search input[type="checkbox"] {display: none;} /* デザインのため非表示 */
.searchBox .tag_search label {
    display: flex;
    justify-content: center;
    font-size: 1.3rem;
    padding: 5px 10px;
    float: left; /* 要素の左寄せ・回り込を指定する */ 
    cursor: pointer;
    border-radius: 50px;
    transition: .3s;
}
/* カテゴリーごとに色設定　非活性 */
.tag_search label[for^="ability"], .tags .ability {background-color: #ffcccc; border: 1px solid #ff0000;}
.tag_search label[for^="learning"], .tags .learning {background-color: #ccefdc; border: 1px solid #00b050;}
.tag_search label[for^="scene"], .tags .scene {background-color: #fff2cc; border: 1px solid #ffc000;}
.tag_search label[for^="tls"], .tags .tls {background-color: #cce2f2; border: 1px solid #0070c0;}

.searchBox .tag_search label:hover {
    /* color: #ffffff; */
    opacity: .7;
}
/* カテゴリーごとに色設定　ホバー */
/* .tag_search label[for^="ability"]:hover {background-color: #ff0000;}
.tag_search label[for^="learning"]:hover {background-color: #00b050;}
.tag_search label[for^="scene"]:hover {background-color: #ffc000;}
.tag_search label[for^="tls"]:hover {background-color: #0070c0;} */

/* カテゴリーごとに色設定　活性 */
.tag_search input[type="checkbox"]:checked + label {color: #ffffff;}
.tag_search input[type="checkbox"]:checked + label[for^="ability"] {background-color: #ff0000;}
.tag_search input[type="checkbox"]:checked + label[for^="learning"] {background-color: #00b050;}
.tag_search input[type="checkbox"]:checked + label[for^="scene"] {background-color: #ffc000;}
.tag_search input[type="checkbox"]:checked + label[for^="tls"] {background-color: #0070c0;}

/* フリーワード */
.word_search {
    display: flex;
    flex-wrap: wrap;
    justify-content: right;
    align-items: center;
}
.searchBox input[name="freeword"] {
    width: calc(100% - 130px);
    margin-left: 0;
}

/* リセットボタン */
.btn-reset {
    border: none;
    transition: .8s;
    cursor: pointer;
    width: 115px;
}

/*---------------
    動画一覧 
-----------------*/
.movie-list {margin-top: 20px;}
.item {
    padding: 10px;
    margin: 5px 0;
    border: 5px solid #fff2cc;
    list-style: none;
}
.hide {display: none !important;}

/* 更新日 */
.year {
    white-space: nowrap;
    width: fit-content;
    min-width: fit-content;
    padding: 5px 15px;
    margin-bottom: 5px;
    font-size: 1.5rem;
    color: #ffffff;
    background-color: #ed7d31;
}

/* 校種・タイトル */
.item>h1 {
    width: 100%;
    background-color: transparent;
    display: flex;
    align-items: center;
    padding: 0;
    margin: 0;
}
/* 校種 */
.school {
    width: fit-content;
    min-width: fit-content;
    padding: 5px 10px;
    margin-right: 0.5em;
    text-align: center;
    font-size: 2.2rem;
    font-weight: bold;
    color: #ffffff;
    background-color: #399837;
}
.item h1 {
    font-size: 2.0rem;
    font-weight: bold;
    color: #000;
}
.item h1 p {
    margin-right: 1em;
    line-height: 1.5em;
}
.item h1 span {font-weight: normal;}

/*---------------
    動画一覧　中身 
-----------------*/
.item .contents {
    display: flex;
    justify-content: flex-start;
}
.item .contents>* {margin-top: 10px;}

/* サムネイル */
.item .contents .thumbnail {
    max-width: 370px;
    min-width: 370px;
    max-height: 230px;
    min-height: 230px;
    margin-right: 10px;
}
.item .contents .thumbnail>img, .item .contents .thumbnail>video {
    object-fit: contain;
    width: 100%;
    min-width: 100%;
    height: auto;
    max-height: 100%;
    margin: 0 auto;
    border: 3px solid #a6a6a6;
}

/* タグ */
.tags span {
    padding: 5px 15px;
    margin-bottom: 5px;
    font-size: 1.2rem;
    background-color: #deebf7;
    border-radius: 50px;
    display: inline-block;
}

/* アイコン */
.item .contents .icons {
    display: flex;
    flex-wrap: wrap;
    margin-top: 10px;
}
.item .contents .icons>div {
    text-align: center;
    margin: 0 10px 5px 0;
    min-width: 50px;
    line-height: 1em;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.item .contents .icons img {
    object-fit: contain;
    width: 40px;
    height: 40px;
}
.item .contents .icons p {
    height: 2em;
    font-size: 1.0rem;
    line-height: 1em;
    text-align: center;
    margin-top: 4px;
}

/* テキスト */
.text>div {
    width: 150px;
    margin: 10px 0 3px 0;
    padding: 2px 0;
    text-align: center;
    color: #ffffff;
    background-color: #399837;
}
.text p {line-height: 1.3em;}

.star::before {
    content: "\02605";
    color: #399837;
}

/*---------------
    サイドバー 
-----------------*/
aside {margin-top: 60px;}
aside .link {
    margin: 0 0 5px 30px;
    padding-bottom: 5px;
    border-bottom: 2px dashed #CCCCCC;
}
aside .link:first-child {border-top: 2px dashed #CCCCCC;}
aside .link>a {
    display: block;
    width: 100%;
    cursor: pointer;
}
aside .link>p {
    margin-top: 5px;
    line-height: 1em;
    font-size: 1.3rem;
}

/*---------------
    ページ送り 
-----------------*/
.pagination {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 20px 0;
}
.page-item {
    border: 1px solid #ffffff;
}
.page-item .page-link {
    display: block;
    min-width: 50px;
    min-height: 50px;
    padding: 10px 10px 0px 10px;
    background-color: #399837;
    color: #ffffff;
    font-size: 2.0rem;
    border-radius: 50%;
    font-weight: bold;
    text-align: center;
}
.page-item:not(.number) .page-link {
    background-color: #ffffff;
    color: #399837;
}
.page-item.number .page-link {
    background-color: #ffffff;
    color: #000;
}
.page-item.number.active .page-link {
    background-color: #399837;
    color: #ffffff;
}
.page-item.pageNumbers .page-link {
    font-weight: normal;
    color: #000;
}

.count {
    width: fit-content;
    text-align: center;
    font-size: 2.0rem;
    margin: auto;
}

/*---------------
    詳細ページ 
-----------------*/
video {
    width: 560px;
    min-width: 560px;
    height: fit-content;
    margin: 0 20px 20px 0;
}

.item .related-img {
    display: flex;
    /* align-items: flex-start; */
    margin-top: 1em;
    justify-content: center;
    align-items: stretch;
}
.item .related-img img {
    width: calc((100% - 15px) / 2);
    /* max-height: 160px; */
    margin: 5px 5px 5px 0;
    padding: 2px;
    object-fit: contain;
    border: 3px solid #a6a6a6;
}

.movie .item .contents .icons>div {
    min-width: 70px;
    margin-right: 20px;
}
.movie .item .contents .icons img {
    width: 60px;
    height: 60px;
}

.item>p {margin-top: 1em;}


@media screen and (max-width: 1060px) {
}

@media screen and (max-width: 1000px) {
    .wrapper {
        display: inline;
    }
    .casestudy {
        width: 96%;
    }
    aside {
        width: 96%;
        margin: auto;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }
    aside .link:nth-child(2) {border-top: 2px dashed #CCCCCC;}
    aside>.link {
        width: 200px;
        margin: 0 5px 10px 5px;
    }
    aside>.link>a {
        height: 75px;
        vertical-align: middle;
        display: flex;
        align-items: center;
    }
    aside>.link>a>img {
        height: 75px;
        object-fit: contain;
    }
    video {
        width: 100%;
        min-width: auto;
        margin: 0;
    }
    .movie .item .contents {
        flex-direction: column;
    }

}

@media screen and (max-width: 600px) {
    .searchBox>select {
        width: 98%;
        margin: 0 auto 10px;
    }

    .movie-list .item .contents {
        flex-direction: column;
    }
    .movie-list h1 {flex-direction: column;}
    .movie-list h1 .school {margin-right: auto;}
    .movie-list h1 p {margin-right: auto;}
    .item .contents .thumbnail {
        margin: 10px auto 0;
        max-width: none;
        min-width: auto;
        max-height: none;
        min-height: auto;
    }

    .learning-scene {
        left: 50%;
        width: 85%;
    }

    .page-item .page-link {
        min-width: 35px;
        min-height: 35px;
        padding: 5px 10px 2px 10px;
        background-color: #399837;
        color: #ffffff;
        font-size: 1.5rem;
    }

    aside>.link {
        width: calc((100% - 20px) / 2);
    }
}

@media screen and (max-width: 450px) {
    .searchBox input[name="freeword"] {
        width: 100%;
    }
    .btn-reset {
        margin: 10px;
    }
}