/* =========================================================
   フォトギャラリー
   ========================================================= */

.photo-gallery {
	background: #080b12;
	min-height: 100vh;
	color: var(--white, #FFF);
}

.photo-gallery__body {
	padding: 20rem 0 60rem;
}

/* ヘッダー */
.photo-gallery__header {
	padding: 30rem 0 24rem;
}

.photo-gallery__header-inner {
	padding: 0 20rem;
	gap: 8rem;
	align-items: center;
}

.photo-gallery__header-en {
	font-family: var(--Barlow), sans-serif;
	font-size: 12rem;
	font-weight: 600;
	letter-spacing: .15em;
	text-transform: uppercase;
	color: var(--logo_blue, #0099CB);
	text-align: center;
}

.photo-gallery__header-title {
	font: var(--font-display);
	letter-spacing: .05em;
	text-align: center;
	color: var(--white, #FFF);
}

.photo-gallery__header-sub {
	font: var(--font-caption);
	color: rgba(255, 255, 255, .5);
	text-align: center;
	letter-spacing: .06em;
}

.photo-gallery__empty {
	font: var(--font-body);
	color: rgba(255, 255, 255, .5);
	text-align: center;
	padding: 80rem 20rem;
}

/* =========================================================
   パンくず：ダーク背景用
   ========================================================= */

.breadcrumbs-list--dark {
	color: rgba(255, 255, 255, .65);
}

.breadcrumbs-list--dark .breadcrumbs-list__link {
	color: rgba(255, 255, 255, .65);
}

.breadcrumbs-list--dark .breadcrumbs-list__item:last-of-type {
	color: rgba(255, 255, 255, .9);
}

.breadcrumbs-list--dark .breadcrumbs-list__item:not(:last-child)::after {
	filter: invert(1) opacity(.6);
}

/* =========================================================
   ビューア全体
   ========================================================= */

.photo-gallery__viewer {
}

/* =========================================================
   メイン表示エリア
   ========================================================= */

.photo-gallery__main {
	position: relative;
	background: #000;
	overflow: hidden;
	/* SPでは縦横比をやや広めに */
	aspect-ratio: 4 / 3;
}

.photo-gallery__main-inner {
	position: absolute;
	inset: 0;
}

/* スライド */
.photo-gallery__slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	transition: opacity .6s ease;
	display: flex;
	align-items: center;
	justify-content: center;
}

.photo-gallery__slide.is-active {
	opacity: 1;
}

/* 画像ラッパー（黒背景レターボックス対応） */
.photo-gallery__slide-img-wrap {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #000;
}

/* object-fit: contain で縦長も横長も崩れず、エリアを最大限使って表示 */
.photo-gallery__slide-img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

/* =========================================================
   矢印ナビゲーション
   ========================================================= */

.photo-gallery__arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 10;
	width: 40rem;
	height: 40rem;
	border-radius: 50%;
	border: 1.5px solid rgba(255, 255, 255, .3);
	background: rgba(0, 0, 0, .55);
	color: #fff;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background .2s ease, border-color .2s ease, transform .15s ease;
	-webkit-tap-highlight-color: transparent;
}

.photo-gallery__arrow:active {
	transform: translateY(-50%) scale(.92);
}

.photo-gallery__arrow svg {
	width: 18rem;
	height: 18rem;
	flex-shrink: 0;
}

.photo-gallery__arrow--prev {
	left: 10rem;
}

.photo-gallery__arrow--next {
	right: 10rem;
}

/* =========================================================
   カウンター
   ========================================================= */

.photo-gallery__counter {
	position: absolute;
	bottom: 10rem;
	right: 12rem;
	z-index: 10;
	font: 600 10rem/1 "Bebas Neue", var(--Barlow), sans-serif;
	letter-spacing: .05em;
	color: rgba(255, 255, 255, .8);
	background: rgba(0, 0, 0, .5);
	padding: 4rem 8rem;
	border-radius: 4rem;
	pointer-events: none;
}

/* =========================================================
   キャプションエリア
   ========================================================= */

.photo-gallery__caption-area {
	position: relative;
	background: #0d1018;
	min-height: 42rem;
	border-bottom: 1px solid rgba(255, 255, 255, .07);
}

.photo-gallery__caption {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	font: var(--font-caption);
	color: rgba(255, 255, 255, .55);
	text-align: center;
	padding: 10rem 20rem;
	opacity: 0;
	transition: opacity .35s ease;
	pointer-events: none;
}

.photo-gallery__caption.is-active {
	opacity: 1;
	position: static;
	pointer-events: auto;
}

/* =========================================================
   サムネイルストリップ
   ========================================================= */

.photo-gallery__thumbnails-wrap {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: thin;
	scrollbar-color: rgba(255, 255, 255, .2) transparent;
	padding: 14rem 20rem 16rem;
	background: #080b12;
}

.photo-gallery__thumbnails-wrap::-webkit-scrollbar {
	height: 3rem;
}

.photo-gallery__thumbnails-wrap::-webkit-scrollbar-track {
	background: rgba(255, 255, 255, .05);
}

.photo-gallery__thumbnails-wrap::-webkit-scrollbar-thumb {
	background: rgba(255, 255, 255, .2);
	border-radius: 2rem;
}

.photo-gallery__thumbnails {
	display: flex;
	gap: 8rem;
	width: max-content;
}

.photo-gallery__thumbnail {
	flex-shrink: 0;
	width: 68rem;
	height: 46rem;
	border-radius: 4rem;
	overflow: hidden;
	background: #000;
	border: 2px solid transparent;
	padding: 0;
	cursor: pointer;
	opacity: .45;
	transition: opacity .2s ease, border-color .2s ease, transform .15s ease;
	-webkit-tap-highlight-color: transparent;
}

.photo-gallery__thumbnail.is-active {
	border-color: var(--logo_blue, #0099CB);
	opacity: 1;
}

.photo-gallery__thumbnail:active {
	transform: scale(.93);
}

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

/* PC -------------------------------------------------------- */
@media (min-width: 768px) {
	.photo-gallery__header {
		padding: 40rem 0 32rem;
	}

	.photo-gallery__header-inner {
		max-width: 1108rem;
		margin: 0 auto;
		padding: 0 40rem;
	}

	/* メイン（PC: 16:9、フルwidth） */
	.photo-gallery__main {
		aspect-ratio: 16 / 9;
	}

	/* 矢印：ホバーで表示 */
	.photo-gallery__arrow {
		width: 52rem;
		height: 52rem;
		opacity: 0;
		transition: opacity .25s ease, background .2s ease, border-color .2s ease, transform .15s ease;
	}

	.photo-gallery__main:hover .photo-gallery__arrow {
		opacity: 1;
	}

	.photo-gallery__arrow:hover {
		background: rgba(0, 0, 0, .8);
		border-color: rgba(255, 255, 255, .6);
	}

	.photo-gallery__arrow:active {
		transform: translateY(-50%) scale(.92);
	}

	.photo-gallery__arrow svg {
		width: 24rem;
		height: 24rem;
	}

	.photo-gallery__arrow--prev {
		left: 20rem;
	}

	.photo-gallery__arrow--next {
		right: 20rem;
	}

	/* カウンター */
	.photo-gallery__counter {
		font-size: 12rem;
		bottom: 14rem;
		right: 18rem;
		padding: 5rem 10rem;
	}

	/* キャプション */
	.photo-gallery__caption-area {
		min-height: 52rem;
		border-radius: 0;
	}

	.photo-gallery__caption {
		font: var(--font-body);
		padding: 14rem 40rem;
	}

	/* サムネイル: PC も1行横スクロール */
	.photo-gallery__thumbnails-wrap {
		padding: 20rem 40rem 28rem;
	}

	.photo-gallery__thumbnails {
		gap: 10rem;
	}

	.photo-gallery__thumbnail {
		width: 88rem;
		height: 59rem;
		border-radius: 4rem;
		opacity: .5;
	}

	.photo-gallery__thumbnail:hover {
		opacity: .8;
	}

	.photo-gallery__thumbnail.is-active {
		opacity: 1;
	}
}
