@charset "shift_jis";
/* CSS Document */

/* movie_wrap */
#matto_mov,.matto_mov {
	width: 780px;
	margin: 0 auto 30px;
	padding-bottom: 10px;
	border-bottom: 1px dashed #999;
}
#matto_mov h3,
.matto_mov h3{
	font-size: 26px;
	font-weight: bold;
	line-height: 30px;
	color: #76A09C;
	border-bottom: 3px solid #76A09C;
	margin-bottom: 15px;
}
#matto_mov h3 span,
.matto_mov h3 span{
	float: right;
	font-size: 14px;
}
#matto_mov ul ,
.matto_mov ul{
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	display: -webkit-flex;
	-webkit-flex-wrap: wrap;
	-webkit-justify-content: space-between;
}
#matto_mov li,
.matto_mov li {
	width: 230px;
	border: 1px solid #ccc;
	padding: 5px;
	margin-bottom: 30px;
}
#matto_mov h5 ,
.matto_mov h5{
	margin-top: 5px;
	line-height: 20px;
	text-align: center;
	color: #bf402d!important;
	background: #F0E0A5;
}

/*----縦型動画-----*/
.vertical_movie {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 800px; /* 全体の最大幅を指定 */
    margin: auto;
    gap: 20px; /* 各動画間の隙間 */
}

.video-container {
    width: 240px;
    height: 464px; /* 9:16のアスペクト比を保持 */
    overflow: hidden; /* サムネイルがはみ出ないようにする */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.video-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #000;
}

.video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover; /* ビデオをアスペクト比を維持しつつコンテナにフィットさせる */
    margin: 0; /* マージンを削除 */
    padding: 0; /* パディングを削除 */
}

h5 {
    text-align: center;
    margin: 10px 0 !important; /* 上下のマージンを追加 */
    font-size: 1em !important; /* フォントサイズを設定 */
}

#canvas {
    display: none !important;
}

@media screen and (max-width: 480px) {
    .vertical_movie {
        align-items: center;
    }

    .video-container {
        width: calc(100% - 20px); /* 幅を100%にし、隙間分を引く */
        max-width: calc(100% - 20px); /* 幅を100%にし、隙間分を引く */
    }
}