@charset "UTF-8";
@import url("https://use.fontawesome.com/releases/v6.7.2/css/all.css");
/* ========= 共通: サムネイルボタン ========= */
.gallery_thumb {
	display: block;
	width: 100%;
	padding: 0;
	border: none;
	background: transparent;
	cursor: pointer;
}
.gallery_thumb img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 3 / 2; /* 必要に応じて */
	object-fit: cover;
	border-radius: 8px;
}
/* ========= トップ: 3列スライダー ========= */
.gallery_slider {
	position: relative;
	padding: 0 44px; /* 左右ナビの分 */
}
.gallery_track {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: calc((100% - 2 * 16px) / 3); /* 3列 + gap2つ */
	gap: 16px;
	overflow: hidden; /* “見える分だけ” */
	scroll-behavior: smooth;
	scroll-snap-type: x mandatory;
	padding: 0;
	margin: 0;
	list-style: none;
}
.gallery_item {
	scroll-snap-align: start;
}
.gallery_nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 36px;
	height: 36px;
	border-radius: 999px;
	border: 1px solid rgba(0, 0, 0, .15);
	background: #fff;
	cursor: pointer;
	z-index: 2;
}
.gallery_nav.prev {
	left: 4px;
}
.gallery_nav.next {
	right: 4px;
}
.gallery_nav:disabled {
	opacity: 0.35;
	cursor: default;
}
/* ========= See more: タイル一覧 ========= */
.gallery_grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr); /* PC想定。必要ならレスポンシブ追加 */
	gap: 16px;
	padding: 0;
	margin: 0;
	list-style: none;
}
.gallery_grid_item {}
@media (max-width: 768px) {
.gallery_grid {
	grid-template-columns: repeat(3, 1fr); /* PC想定。必要ならレスポンシブ追加 */
	gap: 1em;
}
}
@media (max-width: 480px) {
.gallery_grid {
	grid-template-columns: repeat(2, 1fr); /* PC想定。必要ならレスポンシブ追加 */
	gap: 1em;
}
}
/* ========= セクション ========= */
section.gallery_section {
	margin: 0 0 0;
	padding-top: 0;
}
.gallery_section_title {
	margin: 0 0 14px;
}
/* ========= タブ（複数グループ対応） ========= */
.gallery_tabs_list, .gallery_day_list {
	display: flex;
	gap: 10px 1em;
	padding: 0;
	margin: 0 0 16px;
	list-style: none;
}
.gallery_tabs_item {
	margin: 0;
	padding: 0;
	flex-grow: 5;
}
.gallery_tab, .gallery_day_list li {
	width: 100%;
	min-height: 3.5em;
	padding: 0.75em 0.5em;
	border: 1px solid rgba(0, 0, 0, .15);
	background: #fff;
	user-select: none;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 0 0.25em;
	line-height: 1.4;
}
.gallery_tab.active, .gallery_tab[aria-selected="true"], .gallery_day_list li.active {
	background: #28518a;
	color: #fff;
	border-color: #28518a;
	position: relative;
}
.gallery_tab.active::after, .gallery_tab[aria-selected="true"]::after, .gallery_day_list li.active::after {
	content: "";
	width: 1.5em;
	height: 0.5em;
	background: #28518a;
	position: absolute;
	bottom: 0;
	left: 50%;
	transform: translate(-50%, 100%);
	clip-path: polygon(0% 0%, 100% 0%, 50% 100%);
}
section.gallery_panel {
	padding-top: 0;
	padding-bottom: 0;
}
.gallery_panel_title {
	margin: 0 0 1em;
	font-size: 1.25em;
}
/* hidden panel */
.gallery_panel.is-hidden, .gallery_day_section.is-hidden {
	display: none;
}
@media (max-width: 480px) {
	.gallery_tabs_list, .gallery_day_list {
		gap: 10px 0.5em;
	}
	.gallery_tab, .gallery_day_list li {
		font-size: 0.8em;
		padding: 0.75em 0.25em;
		letter-spacing: -0.04em;
	}
}
/* ========= モーダル ========= */
/* フェードイン/アウト対応：display切替ではなく opacity/visibility で制御 */
.gallery_modal {
	position: fixed;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 9999;
	/* closed */
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 220ms ease, visibility 0s linear 220ms;
}
.gallery_modal.is-open {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transition: opacity 220ms ease, visibility 0s linear 0s;
}
.gallery_modal_backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, .65);
}
.gallery_modal_panel {
	position: relative;
	width: min(1000px, calc(100% - 32px));
	max-height: calc(100% - 32px);
	background: #111;
	color: #fff;
	border-radius: 12px;
	overflow: hidden;
	display: grid;
	grid-template-columns: 56px 1fr 56px;
	align-items: center;
	/* panel motion */
	transform: translateY(10px) scale(0.98);
	transition: transform 220ms ease;
}
.gallery_modal.is-open .gallery_modal_panel {
	transform: translateY(0) scale(1);
}
.gallery_modal_figure {
	margin: 0;
	padding: 14px;
	display: grid;
	gap: 10px;
	justify-items: center;
}
.gallery_modal_img {
	width: 100%;
	height: auto;
	max-height: calc(100vh - 140px);
	object-fit: contain;
	border-radius: 8px;
	background: #000;
}
.gallery_modal_caption {
	font-size: 14px;
	opacity: 0.85;
	text-align: center;
}
.gallery_modal_close {
	position: absolute;
	top: 10px;
	right: 10px;
	width: 40px;
	height: 40px;
	border-radius: 999px;
	border: 1px solid rgba(255, 255, 255, .25);
	background: rgba(0, 0, 0, .35);
	color: #fff;
	cursor: pointer;
	z-index: 20;
}
.gallery_modal_nav {
	width: 56px;
	height: 100%;
	border: none;
	background: rgba(255, 255, 255, .06);
	color: #fff;
	cursor: pointer;
	font-size: 28px;
	z-index: 1;
}
.gallery_modal_nav:disabled {
	opacity: 0.35;
	cursor: default;
}
/* bodyスクロール抑止 */
body.is-modal-open {
	overflow: hidden;
}
/* 動きを減らす設定の人向け */
@media (prefers-reduced-motion: reduce) {
	.gallery_modal, .gallery_modal_panel {
		transition: none !important;
	}
}