/* =========================
   動画ギャラリー（YouTube）
   ========================= */

.list-movie {
	list-style: none;
	margin: 0;
	padding: 0;

	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 20px;
}

/* li の既存指定を完全に無効化 */
.list-movie li {
	float: none !important;
	width: auto !important;
	margin: 0;
	padding: 12px;
	box-sizing: border-box;

	background-color: #F4F4F4;
	box-shadow: 0 2px 6px rgba(0,0,0,0.08);
	text-align: center;
}

/* リンクはカード全体 */
.movie-link {
	display: block;
	width: 100%;
	height: 100%;
	padding: 10px;
	box-sizing: border-box;
	color: #000;
}

/* タップ時の反応 */
.movie-link:active {
	background-color: #eaeaea;
	transform: scale(0.98);
}

/* タイトル */
.movie-link h3 {
	font-size: 18px;
	line-height: 1.4;
	margin: 10px 0 0;
	color: #000;
}

/* サムネ */
.thumb {
	position: relative;
	aspect-ratio: 16 / 9;
	background-color: #000;
}

.thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.thumb .play {
	position: absolute;
	inset: 0;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 68 48'%3E%3Cpath d='M66.52 7.85a8 8 0 0 0-5.63-5.63C56.2 1 34 1 34 1S11.8 1 7.11 2.22a8 8 0 0 0-5.63 5.63A83.5 83.5 0 0 0 0 24a83.5 83.5 0 0 0 1.48 16.15 8 8 0 0 0 5.63 5.63C11.8 47 34 47 34 47s22.2 0 26.89-1.22a8 8 0 0 0 5.63-5.63A83.5 83.5 0 0 0 68 24a83.5 83.5 0 0 0-1.48-16.15z' fill='%23f00'/%3E%3Cpolygon points='45,24 27,14 27,34' fill='%23fff'/%3E%3C/svg%3E")
		center / 64px no-repeat;
	pointer-events: none;
	opacity: 0.9;
}

/* =========================
   ギャラリー：3枚横並び固定
   ========================= */

.gallery-pic {
	display: flex;
	flex-wrap: wrap;
	margin: 0;
	padding: 0;
}

/* li を3カラムに固定 */
.gallery-pic li {
	float: none;              /* 既存floatを無効化 */
	width: 33.3333%;          /* 常に3枚 */
	box-sizing: border-box;   /* paddingを幅に含める */
	text-align: center;
}

/* =========================
   レスポンシブ
   ========================= */
/* スマホ時は2枚にする（任意） */
@media screen and (max-width: 768px) {

	.list-movie {
		grid-template-columns: 1fr;
	}

	.gallery-pic li {
		width: 50%;
	}
}