@charset "UTF-8";

/* ============================================
   記事本文の写真カルーセル（Instagram風・横スワイプ）
   js/article-carousel.js が本文中の「画像だけの段落」を
   このマークアップに置き換える。単独画像には効かない。
   ============================================ */

.dz-carousel {
	--dz-accent: #52c41a;
	--dz-ratio: 4 / 3;
	margin: 40px 0;
	clear: both;
}

/* --- ステージ（写真の枠） --- */
.dz-carousel .dz-carousel__stage {
	position: relative;
	border-radius: 14px;
	overflow: hidden;
	background: #fff;
	border: 1px solid #e6eaeb;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05), 0 10px 28px rgba(0, 0, 0, 0.06);
}

.dz-carousel .dz-carousel__track {
	display: flex;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	-ms-overflow-style: none;
	outline: none;
}

.dz-carousel .dz-carousel__track::-webkit-scrollbar {
	display: none;
}

.dz-carousel .dz-carousel__track:focus-visible {
	box-shadow: inset 0 0 0 3px rgba(82, 196, 26, 0.55);
}

.dz-carousel .dz-carousel__slide {
	flex: 0 0 100%;
	width: 100%;
	scroll-snap-align: center;
	scroll-snap-stop: always;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	background: #fff;
}

/* 写真の入れ物。縦横比は js が実際の画像から決める（--dz-ratio）。
   縦長の組で画面からはみ出さないよう高さに上限を置く */
.dz-carousel .dz-carousel__frame {
	aspect-ratio: var(--dz-ratio);
	max-height: 70vh;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #fff;
	overflow: hidden;
}

.dz-carousel .dz-carousel__slide img {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	margin: 0;
	border-radius: 0;
	object-fit: contain;
	display: block;
	cursor: zoom-in;
}

/* --- スライドごとの短いラベル（任意） --- */
.dz-carousel .dz-carousel__cap {
	margin: 0;
	padding: 12px 16px;
	font-size: 1.3rem;
	line-height: 1.7;
	color: #444;
	text-align: center;
	border-top: 1px solid #edf0f1;
	background: #fff;
}

.dz-carousel .dz-carousel__cap b {
	font-weight: 600;
	color: #222;
}

/* --- 枚数バッジ（1 / 4） --- */
.dz-carousel .dz-carousel__count {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 2;
	padding: 5px 11px;
	border-radius: 999px;
	background: rgba(0, 0, 0, 0.6);
	color: #fff;
	font-size: 1.2rem;
	line-height: 1;
	letter-spacing: 0.04em;
	font-variant-numeric: tabular-nums;
	pointer-events: none;
}

/* --- 左右の矢印（PCのみ） --- */
.dz-carousel .dz-carousel__nav {
	position: absolute;
	top: 50%;
	z-index: 2;
	display: none;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	margin-top: -21px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.94);
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
	color: #333;
	font-size: 15px;
	cursor: pointer;
	transition: opacity 0.2s, transform 0.2s;
}

.dz-carousel .dz-carousel__nav:hover {
	transform: scale(1.06);
}

.dz-carousel .dz-carousel__nav--prev { left: 14px; }
.dz-carousel .dz-carousel__nav--next { right: 14px; }

.dz-carousel .dz-carousel__nav[disabled] {
	opacity: 0;
	pointer-events: none;
}

@media (hover: hover) and (min-width: 768px) {
	.dz-carousel .dz-carousel__nav { display: flex; }
}

/* --- スワイプの案内（タッチ端末のみ・最初の操作で消える） --- */
.dz-carousel .dz-carousel__hint {
	position: absolute;
	left: 12px;
	top: 12px;
	z-index: 2;
	padding: 5px 12px;
	border-radius: 999px;
	background: rgba(0, 0, 0, 0.55);
	color: #fff;
	font-size: 1.1rem;
	line-height: 1;
	white-space: nowrap;
	pointer-events: none;
	transition: opacity 0.35s;
}

.dz-carousel.is-touched .dz-carousel__hint {
	opacity: 0;
}

@media (hover: hover) and (min-width: 768px) {
	.dz-carousel .dz-carousel__hint { display: none; }
}

/* --- ドット --- */
.dz-carousel .dz-carousel__dots {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 6px;
	margin: 14px 0 0;
	padding: 0;
	list-style: none;
}

.dz-carousel .dz-carousel__dot {
	width: 7px;
	height: 7px;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: #ccd4d6;
	cursor: pointer;
	transition: width 0.22s ease, background 0.22s ease;
}

.dz-carousel .dz-carousel__dot[aria-current="true"] {
	width: 24px;
	background: var(--dz-accent);
}

/* --- カルーセル全体の注記 --- */
.dz-carousel .dz-carousel__note {
	margin: 12px 0 0;
	font-size: 1.3rem;
	line-height: 1.9;
	color: #777;
	text-align: center;
}

/* --- 拡大表示 --- */
.dz-lightbox {
	position: fixed;
	inset: 0;
	z-index: 10000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 32px 16px 72px;
	background: rgba(12, 14, 15, 0.94);
	opacity: 0;
	transition: opacity 0.18s ease;
}

.dz-lightbox.is-open { opacity: 1; }

.dz-lightbox img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	border-radius: 4px;
}

.dz-lightbox__close,
.dz-lightbox__nav {
	position: absolute;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.14);
	color: #fff;
	font-size: 16px;
	cursor: pointer;
}

.dz-lightbox__close { top: 16px; right: 16px; }
.dz-lightbox__nav--prev { left: 16px; top: 50%; margin-top: -22px; }
.dz-lightbox__nav--next { right: 16px; top: 50%; margin-top: -22px; }
.dz-lightbox__nav[disabled] { opacity: 0.25; pointer-events: none; }

.dz-lightbox__cap {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 20px;
	margin: 0;
	padding: 0 24px;
	color: rgba(255, 255, 255, 0.86);
	font-size: 1.3rem;
	line-height: 1.7;
	text-align: center;
}

body.dz-lightbox-open { overflow: hidden; }

/* --- スマホ --- */
@media screen and (max-width: 767px) {
	.dz-carousel {
		margin: 28px 0;
	}

	.dz-carousel .dz-carousel__stage { border-radius: 12px; }
	.dz-carousel .dz-carousel__cap { padding: 10px 12px; font-size: 1.2rem; }
	.dz-carousel .dz-carousel__note { font-size: 1.2rem; text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
	.dz-carousel .dz-carousel__track { scroll-behavior: auto; }
	.dz-carousel .dz-carousel__nav,
	.dz-carousel .dz-carousel__dot { transition: none; }
}
