html,
body {
    color: #000;
}

.disp_none {
    display: none;
    overflow-x: hidden;

}

#top_btn {
    width: 70px;
    font-size: 18px;
    font-weight: 500;
    text-decoration: none;
    display: block;
    text-align: center;
    padding: 4px 0 3px;
    border-radius: 45px;
    border: solid 1px #00ABDD;
    color: #00ABDD;
    background-color: #fff;
    margin: 10px 20px 10px auto;
}

    #top_btn:hover {
        color: #00ABDD;
    }

div#base {
    background-color: #FFF;
}

#movie_title {
    text-align: center;
}

.mvTitle{
    font-size: 20px;
    font-weight: 500;
}

.flex_container {
    display: flex;
}

video {
    width: 100%;
}

/*videoContainer*/
.flex_item {
    width: 100%;
}

.scrollarea {
    overflow-y: scroll;
    height: 100vh !important;
}

/*字幕*/
#caption_area {
    text-align: left;
    /*margin: 25px 90px 0 90px;*/
    margin: 20px auto 0 auto;
    width: calc(70%);
    height: 200px;
    background-color: transparent;
    color: black;
    font-size: 20px;
}

/*動画用ボタン*/
.buttons {
    display: flex;
}

    .buttons > div {
        font-size: 10px;
        height: 48px;
        line-height: 10px;
        width: 48px;
        border-radius: 10%;
        cursor: pointer !important;
    }

#reset_button {
    margin: 10px 60px 10px auto;
    background: url('../image/reset.svg');
}

#back_button {
    margin: 10px 40px 10px 40px;
    background: url('../image/back.svg');
}

.pause {
    background: url('../image/pause.svg') !important;
}

.reset_button_off {
    background: url('../image/reset_off.svg') !important;
    pointer-events: none;
}

.back_button_off {
    background: url('../image/back_off.svg') !important;
    pointer-events: none;
}

#play_button {
    margin: 10px auto 10px 60px;
    background: url('../image/play.svg');
}
/*動画用ボタンend*/

/*トップ画面ヘッダー*/
.headderBox {
    text-align: center;
    margin-top: 10px;
    margin-bottom: 6px;
}
/*トップ画面ヘッダーend*/

/*トップ画面ボックス用*/
.sort {
    margin: 20px 70px 20px auto;
}

.search {
    margin: 20px auto 20px 70px;
}

.area {
    width: 400px;
    position: relative;
    border: solid 2px #000;
    border-radius: 10px;
    font-size: 24px;
    font-weight: 500;
}

.area_label {
    position: absolute;
    top: 0;
    padding: 0 15px;
    transform: translate(-50%,-50%);
    left: 50%;
    background-color: #fff;
}

.contents_container {
    margin: 10px 20px 10px 20px;
    text-align: center;
}

.d22w50{
	/* 通常のサイズでは何もしない */
}

.btn_container {
    display: flex;
    justify-content: space-around;
    margin-top:5px;
}

    .btn_container > a {
        width: 90px;
        font-size: 18px;
        font-weight: 500;
        text-decoration: none;
        display: block;
        text-align: center;
        padding: 3px 0 2px;
        border-radius: 45px;
    }

.btn_left {
    color: #fff;
    background-color: #00ABDD;
}

    .btn_left:hover {
        color: #fff;
    }

.btn_right {
    border: solid 1px #00ABDD;
    color: #00ABDD;
    background-color: #fff;
}

    .btn_right:hover {
        color: #00ABDD;
    }
/*トップ画面ボックス用end*/

@media screen and (max-width:812px) {

    .sort {
        margin: 14px auto 10px auto;
    }

    .search {
        margin: 14px auto 10px auto;
    }

}

/* 横長で横幅812pxまで */
@media screen and (max-width: 812px) and (orientation:landscape) {

#top_btn {
    width: 70px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    display: block;
    text-align: center;
    padding: 4px 0 3px;
    border-radius: 45px;
    border: solid 1px #00ABDD;
    color: #00ABDD;
    background-color: #fff;
    margin: 4px 10px 4px auto;
}

    .buttons > div {
        font-size: 10px;
        height: 36px;
        line-height: 10px;
        width: 36px;
        border-radius: 10%;
        cursor: pointer !important;
    }

    /*字幕*/
    #caption_area {
        margin: 2px auto 0 auto;
        width: calc(84%);
        height: 120px;
        font-size: 13px;
    }

    .flex_container {
        flex-direction: row;
    }

	.area {
	    width: 240px;
	}

    .headderBox {
	    margin-top: 6px;
	    margin-bottom: 4px;
    }

    .headderBox > img {
        width: 200px;	/* 縦が圧迫されるので縮小 */
    }

    .sort {
        margin: 6px auto 6px auto;
    }
    .search {
        margin: 10px auto 10px auto;
    }

    .area {
        font-size: 10px;
    }

    .btn_container > a {
        width: 70px;
        font-size: 10px;
        padding: 2px 0 1px;
    }

	.contents_container {
	    margin: 4px 10px 4px 10px;
	    text-align: center;
	}

}

/* 横長で横幅667pxまで */
@media screen and (max-width: 667px) and (orientation:landscape) {

	.navbar{
		padding: 0rem 1rem;
	}

	.contents_container {
	    margin: 15px 0px 10px 0px;
	    text-align: center;
	    display: flex;
	}

	.d22w50{
		width:50%	!important;
	}

	.btn_container {
	    margin: 0px 10px 0px 0px;
	}
}

/* 縦長で横幅812pxまで */
@media screen and (max-width: 812px) and (orientation:portrait) {

    .flex_container {
        flex-direction: column;
    }

    .headderBox > img {
        width: 400px;
    }
}

@media screen and (max-width:420px) {

	.contents_container {
	    margin: 15px 20px 10px 20px;
	    text-align: center;
	    display: flex;
	}

	.d22w50{
		width:50%	!important;
	}

    h1 {
        font-size: 2rem;
    }

    /*字幕*/
    #caption_area {
        margin: 2px auto 0 auto;
        width: calc(84%);
        height: 120px;
        font-size: 13px;
    }

    .buttons > div {
        height: 30px;
        width: 30px;
    }

    #reset_button {
        margin: 10px 20px 10px auto;
    }

    #back_button {
        margin: 10px 20px 10px 20px;
    }

    #play_button {
        margin: 10px auto 10px 20px;
    }

    .headderBox > img {
        width: 280px;
    }

    .area {
        width: 280px;
        font-size: 14px;
    }

    .btn_container > a {
        width: 50px;
        font-size: 12px;
        padding: 2px 0 1px;
    }

    #top_btn {
        width: 60px;
        font-size: 14px;
        padding: 3px 0 2px;
    }
}

