/* =========================================================
   ショート動画広告用のCSS
   ========================================================= */
.short_movie_box {
	background: #ffffff;
	padding: 10px 0;
	border-bottom: 1px solid #ffdbdb;
}

.top_main_inner .short_movie_box_inner {
	width: 1068px;
	margin: 0 auto;
}

.short_movie_box_list {
	display: flex;
	gap: 7px;
	overflow-x: hidden;
}

.top_main_inner .short_movie_box_list {
	gap: 13px;
}

.search_short_movie_wrap .short_movie_box_list {
	gap: 14px;
}

/* PCは横スクロールせず、枠に収まる件数だけ表示する(トップ10・エリアモーダル6・検索7) */
@media screen and (min-width: 641px) {
	.top_main_inner .short_movie_box_item:nth-child(n+11),
	.search_modal_box .short_movie_box_item:nth-child(n+7),
	.search_short_movie_wrap .short_movie_box_item:nth-child(n+8) {
		display: none;
	}
}

.short_movie_box_btn {
	background: none;
	border: none;
	padding: 0;
	cursor: pointer;
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 95px;
	gap: 3px;
}

.short_movie_box_btn:hover {
	opacity: 0.8;
}

.short_movie_box_btn:focus {
	outline: none;
}

.short_movie_box_thumb {
	width: 85px;
	height: 85px;
	border-radius: 50%;
	padding: 3px;
	background: linear-gradient(90deg, #feaec7 0%, #c9c5f6 100%);
	display: block;
	position: relative;
}

.short_movie_box_badge {
	position: absolute;
	top: 75%;
	right: 0;
	width: 23%;
	height: 23%;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: #b0b8ff;
	border: 2px solid #ffffff;
}

.short_movie_box_badge::after {
	content: "";
	width: 70%;
	height: 70%;
	background: url("/assets/img/short_movie/arrow.svg") no-repeat center;
	background-size: contain;
}

.short_movie_box_thumb img {
	width: 100%;
	height: 100%;
	border-radius: 50%;
	border: 2px solid #ffffff;
	box-sizing: border-box;
	background: #ffffff;
	object-fit: cover;
}

.short_movie_box_label {
	font-size: 14px;
	color: #888888;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 96px;
	display: block;
	text-align: center;
	line-height: 1.2;
}

@media screen and (max-width: 640px) {
	.short_movie_box {
		padding: 2vw 0;
		background: transparent;
		border-bottom: none;
	}

	.top_main_inner .short_movie_box_inner {
		width: 100%;
	}

	.short_movie_box_list {
		gap: 1vw;
		overflow-x: auto;
	}

	.short_movie_box_btn {
		gap: 0.5vw;
		width: 21.3vw;
	}

	.short_movie_box_thumb {
		width: 20vw;
		height: 20vw;
		padding: 0.7vw;
	}

	.short_movie_box_label {
		font-size: 2.9vw;
		max-width: 21.3vw;
	}

	.top_main_inner .short_movie_box_list {
		gap: 3.5vw;
		padding: 0 5vw 2vw 5vw;
	}

	.top_main_inner .short_movie_box_btn,
	.search_short_movie_wrap .short_movie_box_btn {
		width: 18vw;
	}
}

/* モーダルに表示するCSS */
.search_modal_box .short_movie_box {
	background: none;
	padding: 0 0 10px 0;
}

.search_modal_box .short_movie_box_heading {
	background: linear-gradient(90deg, #ff97b7 0%, #dadcff 100%);
	color: #ffffff;
	font-size: 16px;
	font-weight: bold;
	padding: 10px 20px;
	margin: 0;
}

.search_modal_box .short_movie_box_list {
	display: flex;
	justify-content: flex-start;
	flex-wrap: nowrap;
	-webkit-overflow-scrolling: touch;
	padding: 20px 40px 15px 40px;
	gap: 10px;
}

.search_modal_box .short_movie_box_list .short_movie_box_item {
	flex: 0 0 auto;
	width: auto;
	margin: 0;
	padding: 0;
	background: none;
	border: none;
}

@media screen and (max-width: 640px) {
	.search_modal_box .short_movie_box {
		padding: 0 0 2.7vw;
	}

	.search_modal_box .short_movie_box_heading {
		text-align: left;
		font-size: 4vw;
		padding: 1vw 3vw;
	}

	.search_modal_box .short_movie_box_list {
		padding: 2vw 4vw;
		gap: 1.5vw;
		overflow-x: auto;
	}

	.search_modal_box .short_movie_box_btn {
		width: 20vw;
	}
}

/* 動画再生モーダル */
.short_movie_modal {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 9999;
	display: none;
	align-items: center;
	justify-content: center;
}

.short_movie_modal.open {
	display: flex;
}

/* スクロールロックのcss */
body.short_movie_open {
	overflow: hidden;
	position: fixed;
	left: 0;
	right: 0;
	width: 100%;
}

.short_movie_modal_backdrop {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.9);
	cursor: pointer;
}

/* 縦横比9:16固定する。 */
.short_movie_modal_player {
	position: relative;
	background: #000000;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	z-index: 1;
	height: calc(100vh - 40px);
	max-height: 900px;
	aspect-ratio: 9 / 16;
	border-radius: 10px;
}

.short_movie_modal_progress {
	position: absolute;
	top: 10px;
	left: 10px;
	right: 10px;
	display: flex;
	z-index: 20;
}

.short_movie_modal_progress_bar {
	flex: 1;
	height: 3px;
	background: rgba(255, 255, 255, 0.3);
	border-radius: 2px;
	overflow: hidden;
}

.short_movie_modal_progress_bar > span {
	display: block;
	height: 100%;
	width: 0;
	background: #ffffff;
	transition: width 0.25s linear;
}

.short_movie_modal_header {
	position: absolute;
	top: 22px;
	left: 10px;
	right: 10px;
	z-index: 30;
	pointer-events: none;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.short_movie_modal_header_inner {
	max-width: 90%;
}

.short_movie_modal_header_link {
	display: flex;
	align-items: center;
	gap: 10px;
	pointer-events: auto;
	text-decoration: none;
}

.short_movie_modal_header_link:hover {
	opacity: 0.8;
}

.short_movie_modal_header_icon {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	overflow: hidden;
	flex: 0 0 auto;
	background: #ffffff;
}

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

.short_movie_modal_header_name {
	color: #ffffff;
	font-size: 14px;
	font-weight: bold;
	flex: 1;
	min-width: 0;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.short_movie_modal_controls {
	display: flex;
	z-index: 25;
	pointer-events: auto;
}

.short_movie_modal_btn {
	width: 30px;
	height: 30px;
	background: transparent;
	border: none;
	color: #ffffff;
	cursor: pointer;
	padding: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
}

.short_movie_modal_btn:hover {
	opacity: 0.8;
}

.short_movie_modal_btn img {
	width: 100%;
	height: 100%;
}

.short_movie_modal_stage {
	flex: 1;
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	background: #000000;
}

.short_movie_modal_video {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: contain;
	background: #000000;
	-webkit-user-select: none;
	user-select: none;
	-webkit-touch-callout: none;
	pointer-events: none;
}

/* 自動再生ブロック時の「タップして再生」ボタン（iOSの低電力モード対応） */
.short_movie_modal_resume {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	z-index: 30;
	display: none;
	align-items: center;
	justify-content: center;
	background: rgba(255, 255, 255, 0.95);
	border: none;
	border-radius: 50%;
	width: 110px;
	height: 110px;
	cursor: pointer;
	box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4);
	padding: 0;
	-webkit-tap-highlight-color: transparent;
}

.short_movie_modal_resume img {
	width: 44px;
	height: 44px;
}

.short_movie_modal.blocked .short_movie_modal_resume {
	display: flex;
}

.short_movie_modal_tap {
	position: absolute;
	top: 70px;
	bottom: 0;
	background: transparent;
	border: none;
	cursor: pointer;
	z-index: 15;
	padding: 0;
	-webkit-tap-highlight-color: transparent;
	-webkit-user-select: none;
	user-select: none;
	-webkit-touch-callout: none;
}

.short_movie_modal_tap:focus {
	outline: none;
}

.short_movie_modal_tap_prev {
	left: 0;
	width: 30%;
}

.short_movie_modal_tap_next {
	right: 0;
	width: 70%;
}

.short_movie_modal_footer {
	position: absolute;
	bottom: 24px;
	z-index: 22;
	pointer-events: none;
	width: 100%;
}

.short_movie_modal_footer a {
	width: 80%;
	margin: 0 auto;
	pointer-events: auto;
	display: block;
	padding: 10px 0;
	background: #ff98b7;
	color: #ffffff;
	border: solid 2px #ff98b7;
	text-decoration: none;
	font-size: 20px;
	font-weight: bold;
	text-align: center;
	border-radius: 5px;
}

.short_movie_modal_footer a:hover {
	opacity: 0.8;
}

/* 店舗ページから開いた時はボタンを非表示にする */
.short_movie_modal.is_shop_page .short_movie_modal_footer {
	display: none;
}

@media screen and (max-width: 640px) {
	.short_movie_modal_player {
		width: 100%;
		height: 100%;
		max-height: none;
		border-radius: 0;
		box-shadow: none;
	}

	.short_movie_modal_progress {
		top: 2.7vw;
		left: 2.7vw;
		right: 2.7vw;
		gap: 1.1vw;
	}

	.short_movie_modal_progress_bar {
		height: 0.8vw;
		border-radius: 0.5vw;
	}

	.short_movie_modal_header {
		top: 5.9vw;
		left: 2.7vw;
		right: 2.7vw;
	}

	.short_movie_modal_header_link {
		gap: 2.7vw;
	}

	.short_movie_modal_header_icon {
		width: 9.1vw;
		height: 9.1vw;
	}

	.short_movie_modal_header_name {
		font-size: 3.5vw;
	}

	.short_movie_modal_btn {
		width: 6vw;
		height: 6vw;
	}

	.short_movie_modal_resume {
		width: 29.3vw;
		height: 29.3vw;
	}

	.short_movie_modal_resume img {
		width: 11.7vw;
		height: 11.7vw;
		margin-left: 1.3vw;
	}

	.short_movie_modal_tap {
		top: 18.7vw;
	}

	.short_movie_modal_footer {
		bottom: 10vw;
	}

	.short_movie_modal_footer a {
		padding: 3vw 2vw;
		font-size: 4.2vw;
	}
}

/* 検索ページのPICK UP枠 */
.search_short_movie_wrap {
	background: #ffffff;
	padding: 10px 20px;
	margin-bottom: 18px;
	border-bottom: 1px solid #ffdbdb;
}

.search_short_movie_wrap p {
	margin: 0;
}

.search_short_movie_content {
	display: flex;
	align-items: center;
	gap: 45px;
	background: #ffffff;
}

.search_short_movie_wrap .short_movie_box {
	flex: 1;
	min-width: 0;
	background: none;
	border-bottom: none;
	padding: 0;
}

.search_short_movie_heading {
	flex-shrink: 0;
}

.search_short_movie_heading_sub {
	display: flex;
	align-items: center;
	gap: 10px;
}

.search_short_movie_area {
	background: #ff97b7;
	color: #ffffff;
	font-size: 16px;
	font-weight: bold;
	line-height: 1;
	padding: 5px 10px;
}

.search_short_movie_pr {
	color: #ff6e9e;
	font-size: 20px;
	font-weight: bold;
}

.search_short_movie_title {
	color: #ff6e9e;
	font-size: 28px;
	font-weight: bold;
}

@media screen and (max-width: 640px) {
	.search_short_movie_wrap {
		display: block;
		padding: 3.2vw 0;
		margin-bottom: 3.2vw;
	}

	.search_short_movie_wrap .short_movie_box_list {
		gap: 3.5vw;
		padding: 0 5vw;
	}

	.search_short_movie_heading {
		margin-bottom: 2vw;
	}

	.search_short_movie_title {
		font-size: 4.8vw;
	}
}

/* 検索一覧の「動画でチェック」ボタン */
.shop_box_watch_movie {
	display: block;
	padding: 0;
	border: none;
	background: none;
	cursor: pointer;
}

.shop_box_watch_movie img {
	display: block;
}

.shop_box_watch_movie.sp {
	width: 100%;
	margin-bottom: 10px;
}

.shop_box_watch_movie.sp img {
	width: 100%;
	height: auto;
}

.shop_box .shop_images ul .watch_movie_li {
	flex: 1;
	display: flex;
	align-items: center;
}

 /*
 検索ページのshop_box
 ショート動画広告契約中(has_watch_movie)は、3枚目以降の画像を非表示にして、空いた右側に「動画でチェック」ボタンを置く
 */
@media (min-width: 641px) {
	.shop_box .shop_images ul.has_watch_movie li:nth-child(n+3):not(.watch_movie_li) {
		display: none;
	}
}


/*
店舗ページのお店の雰囲気
動画(左)と画像一覧(右)を横並びで表示する(PCのみ)
*/
@media screen and (min-width: 641px) {
	.twitter_image .short_movie_atmosphere {
		display: flex;
	}

	.twitter_image .short_movie_atmosphere .short_movie_tile {
		width: 300px;
		margin-right: 20px;
	}

	.twitter_image .short_movie_atmosphere ul {
		flex: 1;
	}

	.twitter_image .short_movie_atmosphere ul li {
		width: 32%;
		margin-right: 2%;
	}

	.twitter_image .short_movie_atmosphere ul li:nth-child(4n) {
		margin-right: 2%;
	}

	.twitter_image .short_movie_atmosphere ul li:nth-child(3n) {
		margin-right: 0;
	}

	.twitter_image .short_movie_atmosphere ul li:nth-child(4) {
		margin-bottom: 0;
	}

	.twitter_image .short_movie_atmosphere ul li:nth-child(5) {
		margin-bottom: 0;
	}

	.twitter_image .short_movie_atmosphere ul li:nth-child(6) {
		margin-bottom: 0;
	}
}

.short_movie_tile_player {
	position: relative;
	height: 100%;
	cursor: pointer;
}

.short_movie_tile video {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	background: #ffffff;
}

/* 中央の再生マーク */
.short_movie_tile_player .short_movie_tile_mark {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	display: flex;
	align-items: center;
	justify-content: center;
	width: 90px;
	height: 90px;
	border: 5px solid rgba(255, 255, 255, 0.9);
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.1);
	box-sizing: border-box;
	pointer-events: none;
}

.short_movie_tile_player .short_movie_tile_mark::after {
	content: "";
	width: 50px;
	height: 50px;
	background: url("/assets/img/short_movie/arrow.svg") no-repeat center;
	background-size: contain;
}

.short_movie_tile_player.is_playing .short_movie_tile_mark {
	opacity: 0;
}

@media screen and (max-width: 640px) {
	.short_movie_tile {
		display: none;
	}

	/* スマホは動画を上部のボタンで再生する為、動画のみ(写真もTwitterも無い)の店舗はブロックごと非表示 */
	.twitter_image.short_movie_only {
		display: none;
	}

	.shop_watch_movie_btn_wrap {
		padding: 4vw 4vw 0 4vw;
	}

	.shop_box_watch_movie {
		margin-top: 3vw;
	}

	.shop_watch_movie_btn_wrap button {
		display: block;
		width: 100%;
		padding: 0;
		border: none;
		background: none;
		cursor: pointer;
	}

	.shop_watch_movie_btn_wrap button img {
		display: block;
		width: 100%;
		height: auto;
	}
}
