.fac-container {
	max-width: 960px;
	margin: 0 auto;
}

.fac-gated .fac-grid,
.fac-gated .fac-list,
.fac-gated .fac-pagination,
.fac-gated .fac-single,
.fac-gated .fac-single-nav {
	display: none;
}

.fac-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 16px;
}

.fac-card {
	display: flex;
	flex-direction: column;
	border: 1px solid #e2e2e2;
	border-radius: 10px;
	overflow: hidden;
	text-decoration: none;
	color: inherit;
	background: #fff;
}

.fac-card-thumb {
	display: block;
	aspect-ratio: 4 / 3;
	background: #f2f2f2;
	overflow: hidden;
}

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

.fac-card-body {
	padding: 10px 12px;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.fac-title {
	font-size: 13px;
	line-height: 1.4;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.fac-meta {
	display: flex;
	justify-content: space-between;
	font-size: 12px;
	color: #666;
}

.fac-price {
	font-weight: bold;
	color: #111;
}

.fac-list {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.fac-list-row {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 8px;
	border: 1px solid #e2e2e2;
	border-radius: 8px;
	text-decoration: none;
	color: inherit;
	background: #fff;
}

.fac-list-thumb {
	flex-shrink: 0;
	width: 72px;
	height: 54px;
	border-radius: 6px;
	overflow: hidden;
	background: #f2f2f2;
}

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

.fac-list-body {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

.fac-pagination {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	margin-top: 20px;
	font-size: 14px;
}

.fac-page-link {
	padding: 6px 14px;
	border: 1px solid #ccc;
	border-radius: 6px;
	text-decoration: none;
	color: inherit;
}

.fac-error {
	max-width: 640px;
	margin: 0 auto;
	padding: 14px;
	border: 1px solid #f0c0c0;
	border-radius: 8px;
	color: #a33;
	font-size: 14px;
}

.fac-age-gate {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.75);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 9999;
}

.fac-age-gate.fac-hidden {
	display: none;
}

.fac-age-gate-box {
	background: #fff;
	max-width: 360px;
	padding: 24px;
	border-radius: 10px;
	text-align: center;
}

.fac-age-gate-actions {
	display: flex;
	gap: 12px;
	justify-content: center;
	margin-top: 16px;
}

.fac-age-yes {
	padding: 8px 18px;
	border: none;
	border-radius: 6px;
	background: #222;
	color: #fff;
	cursor: pointer;
}

.fac-age-no {
	padding: 8px 18px;
	border: 1px solid #ccc;
	border-radius: 6px;
	color: inherit;
	text-decoration: none;
}

/* 「1件ずつ」モード */

.fac-single-container {
	max-width: 420px;
	margin: 0 auto;
}

.fac-single-slide {
	display: flex;
	flex-direction: column;
	border: 1px solid #e2e2e2;
	border-radius: 12px;
	overflow: hidden;
	background: #fff;
	/* 左右スワイプを検知しつつ、縦方向のページスクロールは妨げない */
	touch-action: pan-y;
}

/* 重要: 上の .fac-single-slide { display: flex; } がそのままだと、
   JSが付与するhidden属性(ブラウザ標準では display:none)を上書きしてしまい、
   20件全部が縦に並んで表示されてしまう。hidden時は確実に非表示にする。 */
.fac-single-slide[hidden] {
	display: none;
}

.fac-single-media {
	position: relative;
	aspect-ratio: 4 / 3;
	background: #f2f2f2;
}

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

.fac-inline-player {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.fac-play-button {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 56px;
	height: 56px;
	border-radius: 50%;
	border: none;
	background: rgba(0, 0, 0, 0.55);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
}

.fac-play-icon {
	display: block;
	width: 0;
	height: 0;
	margin-left: 4px;
	border-style: solid;
	border-width: 10px 0 10px 16px;
	border-color: transparent transparent transparent #fff;
}

.fac-single-body {
	padding: 12px 14px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.fac-single-link {
	align-self: flex-start;
	padding: 6px 16px;
	border-radius: 6px;
	background: #222;
	color: #fff;
	text-decoration: none;
	font-size: 13px;
}

.fac-single-nav {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	margin-top: 14px;
}

.fac-single-nav button {
	padding: 8px 20px;
	border: 1px solid #ccc;
	border-radius: 6px;
	background: #fff;
	cursor: pointer;
	font-size: 14px;
}

.fac-single-nav button:disabled {
	opacity: 0.4;
	cursor: default;
}

.fac-single-position {
	font-size: 13px;
	color: #666;
}

/* スマホ幅では、カード1枚がより画面いっぱいに見えるように拡大する
   (データや挙動は変えず、見た目のサイズ調整のみ)。 */
@media (max-width: 600px) {
	.fac-single-container {
		max-width: 100%;
		margin: 0;
	}

	.fac-single-slide {
		border-left: none;
		border-right: none;
		border-radius: 0;
	}

	.fac-single-media {
		aspect-ratio: 3 / 4;
	}

	.fac-play-button {
		width: 72px;
		height: 72px;
	}

	.fac-play-icon {
		border-width: 13px 0 13px 20px;
	}

	.fac-single-body {
		padding: 16px 18px;
		gap: 10px;
	}

	.fac-title {
		font-size: 15px;
	}

	.fac-single-link {
		padding: 10px 22px;
		font-size: 15px;
	}

	.fac-single-nav {
		margin-top: 18px;
	}

	.fac-single-nav button {
		padding: 12px 26px;
		font-size: 16px;
	}
}
