	/* =========================
   基本レイアウト
========================= */

body {
	margin: 0;
	padding: 0;
	height: 100vh;
	width: 100vw;
	overflow: hidden;
	background: radial-gradient(circle, #a7a7a7 0%, #ebebeb 100%);
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: sans-serif;
}

.carousel-container {
	position: relative;
	width: 100%;
	max-width: calc(100vh * 7 / 5);
	max-height: 100vh;
	aspect-ratio: 7 / 5;
	overflow: hidden;
	display: flex;
	-webkit-user-select: none;
	user-select: none;
}

.carousel-viewport {
	width: 100%;
	height: 100%;
	overflow-x: auto;
	/* scrollからautoへ */
	overflow-y: hidden;
	scroll-snap-type: x mandatory;
	scroll-snap-stop: always;
	scrollbar-width: none;
	-ms-overflow-style: none;
	overscroll-behavior-x: contain;
	scroll-behavior: smooth;
}


/*
body::after {
	content: "";
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	background: rgba(0, 0, 0, 0.3);
	z-index: 1000;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.8s ease;
}

body.is-guiding-bg::after {
	opacity: 1;
}

.carousel-viewport.is-guiding-blur {
	filter: blur(8px);
	pointer-events: none;
} */

/* .carousel-item:last-child img {
	filter: blur(6px);
	transition: filter 0.3s ease;
} */

/* WebKit用スクロールバー非表示（上記の追加CSSと重複可） */
.carousel-viewport::-webkit-scrollbar {
	display: none;
}

/* =========================
   スライド本体
========================= */

.carousel-track {
	display: flex;
	height: 100%;
}

.carousel-track.active {
	cursor: grabbing;
	user-select: none;
}

/* =========================
   スライド
========================= */

/* スライド本体 */
.carousel-item {
	flex: 0 0 100%;
	height: 100%;
	scroll-snap-align: start;
	scroll-snap-stop: always;
	position: relative;
	text-align: center;
	aspect-ratio: 7 / 5;
	background: rgba(255, 255, 255, 1);
}

.carousel-item::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 30px;
	height: 30px;
	margin-top: -15px;
	margin-left: -15px;
	border: 3px solid rgba(255, 255, 255, 0.1);
	border-top-color: #fff;
	/* ここだけ白くして回転させる */
	border-radius: 50%;
	animation: spin 1s linear infinite;
	z-index: 1;
}

@keyframes spin {
	to {
		transform: rotate(360deg);
	}
}

.carousel-item img {
	position: relative;
	z-index: 2;
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
	pointer-events: none;
	-webkit-user-drag: none;
	/* 謎の隙間防止 */
}

/* 最初からボタン */
.return-btn {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	z-index: 100;
	/* JSで制御するまで隠す */
	display: none;
}

/* JSから付与する表示用クラス */
.return-btn.is-active {
	display: block !important;
}

/* ボタン等の非表示用 */
.is-hidden {
	opacity: 0 !important;
	pointer-events: none;
}

/* =========================
   ページカウンター
========================= */

.page-counter {
	position: absolute;
	right: 12px;
	bottom: 12px;
	background: rgba(0, 0, 0, 0.4);
	color: white;
	padding: 5px 12px;
	border-radius: 20px;
	font-size: 0.9rem;
	z-index: 50;
	opacity: 0;
	transition: opacity 0.3s;
}

.carousel-container:hover .page-counter {
	opacity: 1;
}


/* =========================
   前後ボタン
========================= */

.slide-btn {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: rgba(0, 0, 0, 0.35);
	color: white;
	border: none;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	font-size: 32px;
	cursor: pointer;
	opacity: 0;
	z-index: 50;
}

.slide-btn.is-hidden {
	opacity: 0 !important;
	pointer-events: none;
}

.carousel-container:hover .slide-btn {
	opacity: 1;
}

.slide-btn.prev {
	left: 20px;
}

.slide-btn.next {
	right: 20px;
}

.slide-btn:active {
	transform: translateY(-50%) scale(0.9);
}


/* =========================
   最初からボタン
========================= */

.return-btn {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	padding: 12px 28px;
	background: rgba(255, 255, 255, 0.95);
	color: #333;
	border: none;
	border-radius: 30px;
	font-weight: bold;
	font-size: 1.05rem;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
	cursor: pointer;
	display: none;
}

.carousel-item:last-child .return-btn {
	display: block;
}

.return-btn:hover {
	background: white;
	transform: translate(-50%, -50%) scale(1.05);
}


/* =========================
   スワイプガイド
========================= */

.swipe-guide {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	background: rgba(0, 0, 0, 0.5);
	padding: 20px 40px;
	border-radius: 20px;
	display: flex;
	flex-direction: column;
	align-items: center;
	color: white;
	z-index: 2100;
	pointer-events: none;
	opacity: 1;
}

.icon-hand {
	font-size: 4.8rem;
	line-height: 1;
	margin-bottom: 10px;
	animation: hand-swipe 2.2s infinite ease-in-out;
}

@keyframes hand-swipe {

	0%,
	100% {
		transform: translateX(-25px);
	}

	50% {
		transform: translateX(25px);
	}
}

#js-guide-text {
	margin: 0;
	font-size: 1.1rem;
	font-weight: 500;
	white-space: nowrap;
}


/* タッチ用微調整 */
@media (pointer: coarse) {
	.swipe-guide {
		padding: 24px 48px;
	}

	.icon-hand {
		font-size: 5.5rem;
	}
}

/* --- 左上の戻るボタン固有の設定 --- */
.back-btn {
	left: 15px;
	/* 右上のボタン(right: 15px)と対称に */
	right: auto;
}

/* 矢印っぽく見せるための微調整（インラインでも書けますがCSSが綺麗です） */
.back-btn .menu-icon span:nth-child(1) {
	width: 12px;
	transform: rotate(-45deg) translate(-3px, 2px);
}

.back-btn .menu-icon span:nth-child(3) {
	width: 12px;
	transform: rotate(45deg) translate(-3px, -2px);
}

.back-btn:hover {
	background: rgba(255, 255, 255, 0.2);
}

/* --- ハンバーガーボタン本体 --- */
.menu-trigger {
	position: fixed;
	top: 15px;
	right: 15px;
	width: 48px;
	height: 48px;
	background: rgba(0, 0, 0, 0.3);
	/* 透過黒 */
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 50%;
	/* 丸くする */
	cursor: pointer;
	z-index: 2000;
	/* メニュー(1900)より上 */
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 0;
	outline: none;
}

/* 三本線の入れ物 */
.menu-icon {
	width: 20px;
	height: 14px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

/* 三本線の線自体 */
.menu-icon span {
	display: block;
	width: 100%;
	height: 2px;
	background: #fff;
	transition: all 0.3s;
	border-radius: 2px;
}

/* --- 開閉時のアニメーション（×にする） --- */
.menu-trigger.is-active .menu-icon span:nth-child(1) {
	transform: translateY(6px) rotate(45deg);
}

.menu-trigger.is-active .menu-icon span:nth-child(2) {
	opacity: 0;
}

.menu-trigger.is-active .menu-icon span:nth-child(3) {
	transform: translateY(-6px) rotate(-45deg);
}

/* --- ハンバーガーメニュー全体（右から左へ展開） --- */
.g-nav {
	position: fixed;
	top: 73px;
	right: 15px;
	/* ボタンのrightと同じ */
	width: auto;
	/* コンテンツに合わせて広がる */
	height: 48px;
	/* ボタンの高さに合わせる */
	z-index: 1900;
	pointer-events: none;
	/* 閉じている時は下の要素を触れるように */
}

.g-nav-inner {
	/* ボタンの右端を基準に、左側へ並べる */
	padding-right: 60px;
	/* ハンバーガーボタンと被らないための余白 */
	opacity: 0;
	transform: translateY(-20px);
	transition: all 0.3s ease;
}

/* メニュー展開時 */
.g-nav.is-active {
	pointer-events: auto;
}

.g-nav.is-active .g-nav-inner {
	opacity: 1;
	transform: translateX(0);
}

.g-nav ul {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.g-nav li a {
	display: flex;
	justify-content: center;
	align-items: center;
	width: 48px;
	height: 48px;
	background: rgba(0, 0, 0, 0.3);
	/* ボタンと同じ背景 */
	border: 1px solid rgba(255, 255, 255, 0.2);
	/* ボタンと同じ枠線 */
	color: white;
	text-decoration: none;
	font-size: 1.2rem;
	border-radius: 50%;
	transition: background 0.2s, transform 0.2s;
}

.g-nav li a:hover {
	background: rgba(255, 255, 255, 0.2);
}

.g-nav li a:active {
	transform: scale(0.9);
}

.g-nav-inner {
	/* 横方向の余白を消して、縦の動きに変更 */
	padding-right: 0;
	transform: translateY(-20px);
	/* 上からふわっと出す */
}

.g-nav.is-active .g-nav-inner {
	transform: translateY(0);
}

.g-nav ul {
	flex-direction: column;
	/* 縦並び */
	gap: 12px;
}

* {
    filter: none !important;
    backdrop-filter: none !important;
}