.ikusei-has-post-gallery .p-single__header-image {
	display: none;
}

.ikusei-post-gallery {
	outline: none;
}

.ikusei-post-gallery__main {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	aspect-ratio: 16 / 9;
	max-height: min(72vh, 720px);
	overflow: hidden;
	background: #f6f6f6;
}

.ikusei-post-gallery__main-image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	opacity: 1;
	transition: opacity 0.12s ease;
	user-select: none;
	-webkit-user-drag: none;
}

.ikusei-post-gallery__main-image.is-changing {
	opacity: 0;
}

.ikusei-post-gallery__thumbs {
	display: flex;
	gap: 10px;
	margin-top: 12px;
	padding: 2px 2px 8px;
	overflow-x: auto;
	overscroll-behavior-inline: contain;
	scrollbar-width: thin;
	-webkit-overflow-scrolling: touch;
}

.ikusei-post-gallery__thumb {
	flex: 0 0 86px;
	box-sizing: border-box;
	width: 86px;
	height: 68px;
	padding: 3px;
	border: 2px solid transparent;
	border-radius: 3px;
	background: transparent;
	cursor: pointer;
	opacity: 0.68;
	transition: border-color 0.2s ease, opacity 0.2s ease;
}

.ikusei-post-gallery__thumb:hover,
.ikusei-post-gallery__thumb:focus-visible,
.ikusei-post-gallery__thumb.is-active {
	border-color: rgba(var(--tcd-accent-color, 0, 0, 0), 1);
	opacity: 1;
}

.ikusei-post-gallery__thumb-image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ikusei-related-carousel .p-related-post__list {
	display: flex;
	gap: 0;
	overflow-x: auto;
	scroll-behavior: smooth;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}

.ikusei-related-carousel .p-related-post__headline {
	margin-bottom: 40px;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
	box-shadow: none;
	color: transparent;
	font-size: 0;
	line-height: 1;
	text-align: center;
}

.ikusei-related-carousel .p-related-post__headline::before {
	content: "Talents";
	display: block;
	color: #000;
	font-family: "M PLUS Rounded 1c", Arial, sans-serif;
	font-size: 38px;
	font-weight: 900;
	letter-spacing: 0.02em;
	line-height: 1.2;
}

.ikusei-related-carousel .p-related-post__headline::after {
	content: "タレント一覧";
	display: inline-block;
	min-width: 280px;
	margin-top: 10px;
	padding: 8px 48px;
	background: #67c7ea;
	clip-path: polygon(0 0, 100% 0, calc(100% - 22px) 50%, 100% 100%, 0 100%, 22px 50%);
	color: #fff;
	font-family: "M PLUS Rounded 1c", sans-serif;
	font-size: 16px;
	font-weight: 700;
	letter-spacing: 0.08em;
	line-height: 1.4;
}

.ikusei-related-carousel .p-related-post__list::-webkit-scrollbar {
	display: none;
}

.ikusei-related-carousel .p-related-post__item {
	flex: 0 0 40%;
	min-width: 0;
	scroll-snap-align: start;
}

.ikusei-related-carousel .p-related-post__item-link {
	display: block;
}

.ikusei-related-carousel .p-related-post__item-image {
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
}

.ikusei-related-carousel .p-related-post__item-content,
.ikusei-related-carousel * + .p-related-post__item-content {
	width: 100%;
	min-height: 74px;
	padding: 16px;
	border: 1px solid #ddd;
	border-top: none;
}

.ikusei-related-carousel__controls {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 18px;
	margin-top: 18px;
}

.ikusei-related-carousel__arrow {
	width: 36px;
	height: 36px;
	padding: 0;
	border: 1px solid #ccc;
	border-radius: 50%;
	background: #fff;
	cursor: pointer;
	font-size: 25px;
	line-height: 32px;
}

.ikusei-related-carousel__dots {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
}

.ikusei-related-carousel__dot {
	width: 7px;
	height: 7px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #bbb;
	cursor: pointer;
}

.ikusei-related-carousel__dot.is-active {
	background: #333;
}

@media (max-width: 767px) {
	.ikusei-related-carousel .p-related-post__headline {
		margin-bottom: 30px;
	}

	.ikusei-related-carousel .p-related-post__headline::before {
		font-size: 28px;
		letter-spacing: 0.06em;
	}

	.ikusei-related-carousel .p-related-post__headline::after {
		min-width: 220px;
		padding: 7px 36px;
		clip-path: polygon(0 0, 100% 0, calc(100% - 18px) 50%, 100% 100%, 0 100%, 18px 50%);
		font-size: 14px;
	}

	.ikusei-post-gallery {
		margin-right: -20px;
		margin-left: -20px;
	}

	.ikusei-post-gallery__main {
		aspect-ratio: 9 / 16;
		max-height: none;
	}

	.ikusei-post-gallery__main-image {
		object-fit: cover;
	}

	.ikusei-post-gallery__thumbs {
		padding-right: 20px;
		padding-left: 20px;
	}

	.ikusei-post-gallery__thumb {
		flex-basis: 72px;
		width: 72px;
		height: 58px;
	}

	.ikusei-related-carousel .p-related-post__list {
		gap: 0;
		padding: 0 20px;
	}

	.ikusei-related-carousel .p-related-post__item {
		flex-basis: 40%;
	}

	.ikusei-related-carousel .p-related-post__item-image {
		aspect-ratio: 9 / 16;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ikusei-post-gallery__main-image,
	.ikusei-post-gallery__thumb {
		transition: none;
	}
}
