@charset "utf-8";
/*
 * キャストプロフィールの写真カルーセル（Swiper 11）
 * PC テーマ・スマホテーマの両方で使う（page-profile.php の .cast-gallery）
 * PC: 大きい写真を class="profile" の枠の中で横に並べる / スマホ: 写真 1 枚を画面幅いっぱいに表示する
 */

.cast-gallery {
	position: relative;
	width: 100%;
	margin: 0 auto 30px;
}

/* メインの写真の列 */
.cast-gallery-main {
	position: relative;
	width: 100%;
}
.cast-gallery-main .swiper-slide {
	width: 100%;
	cursor: grab;
}
.cast-gallery-main .swiper-slide img {
	display: block;
	width: 100%;
	height: auto;
	-webkit-user-drag: none;
	user-select: none;
}

/* 「1 / 10」の表示（写真の列の左下） */
.cast-gallery-main .cast-gallery-counter {
	position: absolute;
	top: auto;
	bottom: 12px;
	left: 20px;
	z-index: 10;
	width: auto;
	padding: 4px 12px;
	border-radius: 999px;
	background: rgba(0, 0, 0, 0.6);
	color: #fff;
	font-family: Arial, "Noto Sans JP", sans-serif;
	font-size: 12px;
	line-height: 1.4;
	letter-spacing: 0.05em;
	pointer-events: none;
}

/* 左右の矢印（PC のみ。写真の列の左右の端に表示） */
.cast-gallery-main .swiper-button-prev,
.cast-gallery-main .swiper-button-next {
	width: 48px;
	height: 48px;
	margin-top: -24px;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.6);
	border: 1px solid #C3A488;
	color: #e4d3af;
	transition: background-color 0.2s;
}
.cast-gallery-main .swiper-button-prev { left: 20px; }
.cast-gallery-main .swiper-button-next { right: 20px; }
.cast-gallery-main .swiper-button-prev:after,
.cast-gallery-main .swiper-button-next:after {
	font-size: 18px;
	font-weight: bold;
}
.cast-gallery-main .swiper-button-prev:hover,
.cast-gallery-main .swiper-button-next:hover {
	background: rgba(195, 164, 136, 0.4);
}

/* サムネイルの列 */
.cast-gallery-thumbs {
	width: 100%;
	margin-top: 12px;
}
.cast-gallery-thumbs .swiper-slide {
	width: 79px;
	height: 105px;
	box-sizing: border-box;
	border: 2px solid transparent;
	opacity: 0.45;
	cursor: pointer;
	transition: opacity 0.2s, border-color 0.2s;
}
.cast-gallery-thumbs .swiper-slide:hover {
	opacity: 0.8;
}
.cast-gallery-thumbs .swiper-slide.is-active {
	opacity: 1;
	border-color: #C3A488;
}
.cast-gallery-thumbs .swiper-slide img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* PC: 写真の列は class="profile" の枠（幅 1000px）の中に収め、写真を 360×480 で横に並べる */
@media screen and (min-width: 768px) {
	.cast-gallery-main {
		width: 100%;
		overflow: hidden;
	}
	.cast-gallery-main .swiper-slide {
		width: 360px;
	}
	.cast-gallery-main .swiper-slide img {
		width: 360px;
		height: 480px;
		object-fit: cover;
	}
}

/* スマホ */
@media screen and (max-width: 767px) {
	.cast-gallery {
		margin-bottom: 20px;
	}
	.cast-gallery-main .cast-gallery-counter {
		left: 10px;
		bottom: 10px;
	}
	.cast-gallery-main .swiper-button-prev,
	.cast-gallery-main .swiper-button-next {
		display: none;
	}
	.cast-gallery-thumbs {
		margin-top: 4px;
	}
	.cast-gallery-thumbs .swiper-slide {
		width: 60px;
		height: 80px;
	}
}
