/* Costume Gallery ------------------------------------------------- */

.acg {
	--acg-title: #c2a585;
	--acg-btn: #c2a585;
	--acg-bg: #ffffff;
	--acg-font: "Cormorant Garamond", serif;
	--acg-per-pc: 2.4;
	--acg-per-sp: 1.15;
	--acg-gap-pc: 20px;
	--acg-gap-sp: 12px;
	--acg-ratio: 3 / 4;
	--acg-pad: clamp(20px, 5vw, 90px);
}

.acg * {
	box-sizing: border-box;
}

/* 大カテゴリ見出し ------------------------------------------------------- */

.acg-cat__head {
	text-align: center;
	padding: clamp(40px, 6vw, 80px) 20px clamp(24px, 3vw, 40px);
}

.acg-cat__logo {
	display: flex;
	justify-content: center;
	margin-bottom: 1.1em;
}

.acg-cat__logoimg {
	display: block;
	width: auto;
	height: auto;
	max-width: 100%;
}

.acg-cat__en {
	display: block;
	font-family: var(--acg-font);
	font-size: clamp(28px, 4vw, 46px);
	letter-spacing: .12em;
	line-height: 1.2;
	color: var(--acg-title);
}

.acg-cat__ja {
	display: block;
	margin-top: .6em;
	font-size: clamp(12px, 1.3vw, 14px);
	letter-spacing: .18em;
	color: #6b6259;
}

/* コーナー共通 ----------------------------------------------------------- */

.acg-corner {
	background: var(--acg-bg);
	padding: clamp(40px, 6vw, 90px) 0;
	overflow: hidden;
}

.acg-corner__logo {
	margin: 0 0 1.1em;
	line-height: 1;
}

.acg-corner__logoimg {
	display: block;
	width: 100%;
	height: auto;
}

.acg-corner--c .acg-corner__logo {
	display: flex;
	justify-content: center;
}

.acg-corner--c .acg-corner__logoimg {
	width: auto;
}

.acg-corner__title {
	margin: 0 0 .7em;
	line-height: 1.2;
	font-weight: 400;
}

.acg-corner__en {
	display: block;
	font-family: var(--acg-font);
	font-size: clamp(26px, 3.4vw, 42px);
	letter-spacing: .1em;
	color: var(--acg-title);
}

.acg-corner__ja {
	display: block;
	margin-top: .5em;
	font-size: clamp(12px, 1.2vw, 14px);
	letter-spacing: .16em;
	color: #6b6259;
}

.acg-corner__catch {
	margin: 0 0 1.4em;
	font-size: clamp(15px, 1.5vw, 18px);
	line-height: 2;
	letter-spacing: .08em;
	color: #3c3733;
}

.acg-corner__desc {
	font-size: clamp(12px, 1.1vw, 13.5px);
	line-height: 2.2;
	letter-spacing: .06em;
	color: #6b6259;
}

.acg-corner__desc p {
	margin: 0 0 1em;
}

/* スライダー ------------------------------------------------------------- */

.acg-corner__slider {
	min-width: 0;
}

.acg-track {
	position: relative;
	display: flex;
	gap: var(--acg-gap-pc);
	margin: 0;
	padding: 0;
	list-style: none;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
	overscroll-behavior-x: contain;
}

.acg-track::-webkit-scrollbar {
	display: none;
}

.acg-slide {
	flex: 0 0 calc((100% - (var(--acg-per-pc) - 1) * var(--acg-gap-pc)) / var(--acg-per-pc));
	scroll-snap-align: start;
	margin: 0;
}

.acg-slide__fig {
	margin: 0;
}

.acg-slide__img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: var(--acg-ratio);
	object-fit: cover;
}

.acg-slide__caption {
	margin-top: .9em;
	font-size: 12px;
	line-height: 1.8;
	letter-spacing: .06em;
	color: #6b6259;
}

/* コントロール ----------------------------------------------------------- */

.acg-controls.acg-is-hidden,
.acg-nav.acg-is-hidden {
	display: none;
}

.acg-controls {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-top: 18px;
	padding-right: var(--acg-pad);
}

.acg-controls--center {
	justify-content: center;
}

.acg-dots {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.acg-dot {
	width: 22px;
	height: 2px;
	padding: 0;
	border: 0;
	background: #dcd6cf;
	cursor: pointer;
	transition: background .25s;
}

.acg-dot.is-active {
	background: var(--acg-btn);
}

.acg-nav {
	display: flex;
	gap: 10px;
	flex: 0 0 auto;
}

.acg-arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	padding: 0;
	border: 0;
	background: var(--acg-btn);
	color: #fff;
	cursor: pointer;
	transition: opacity .25s;
}

.acg-arrow:hover {
	opacity: .75;
}

.acg-arrow:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 3px;
}

.acg-arrow svg {
	width: 18px;
	height: 18px;
}

.acg-corner--arrow-circle .acg-arrow {
	border-radius: 50%;
}

.acg-corner--arrow-square .acg-arrow {
	border-radius: 0;
}

.acg-nav--sp {
	display: none;
}

/* レイアウトA ------------------------------------------------------------ */

.acg-corner--a .acg-corner__inner {
	display: grid;
	grid-template-columns: minmax(240px, 32%) 1fr;
	gap: 0 clamp(24px, 4vw, 60px);
	align-items: center;
	padding-left: var(--acg-pad);
}

.acg-corner--a .acg-corner__text {
	padding-right: 10px;
}

.acg-corner--a .acg-nav--pc {
	margin-top: 34px;
}

.acg-corner--a .acg-controls {
	justify-content: flex-start;
	padding-right: 0;
}

/* レイアウトB ------------------------------------------------------------ */

.acg-corner--b .acg-corner__inner {
	display: grid;
	grid-template-columns: minmax(0, 40%) minmax(0, 60%);
	grid-template-areas:
		"main head"
		"main text"
		"main slider";
	grid-template-rows: auto auto auto;
	align-content: center;
	gap: 0 clamp(24px, 4vw, 64px);
	max-width: var(--acg-max-b, 1360px);
	margin: 0 auto;
	padding: 0 var(--acg-pad);
}

.acg-corner--b .acg-corner__main {
	grid-area: main;
	align-self: center;
	justify-self: start;
	width: 100%;
	max-width: var(--acg-main-max, 460px);
}

.acg-corner--b .acg-corner__head {
	grid-area: head;
	min-width: 0;
}

.acg-corner--b .acg-corner__text {
	grid-area: text;
	min-width: 0;
}

.acg-corner--b .acg-corner__slider {
	grid-area: slider;
	min-width: 0;
	margin-top: clamp(24px, 3vw, 44px);
}

/* 画像を右に置く回（交互表示） */
.acg-corner--b.acg-corner--rev .acg-corner__inner {
	grid-template-columns: minmax(0, 60%) minmax(0, 40%);
	grid-template-areas:
		"head main"
		"text main"
		"slider main";
}

.acg-corner--b.acg-corner--rev .acg-corner__main {
	justify-self: end;
}

.acg-corner--b .acg-corner__mainimg {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: var(--acg-ratio);
	object-fit: cover;
	transition: opacity .3s;
}

.acg-corner--b .acg-corner__mainimg.is-swapping {
	opacity: 0;
}

/* サムネイルは画面幅に比例させず、上限を決める */
.acg-corner--b .acg-slide {
	flex: 0 0 clamp(110px, 13vw, 175px);
	cursor: pointer;
}

.acg-corner--b .acg-slide__fig {
	transition: opacity .25s;
}

.acg-corner--b .acg-slide:hover .acg-slide__fig {
	opacity: .7;
}

.acg-corner--b .acg-slide.is-current .acg-slide__fig {
	outline: 1px solid var(--acg-btn);
	outline-offset: 4px;
}

.acg-corner--b .acg-controls {
	flex-direction: row-reverse;
	justify-content: flex-end;
	gap: 20px;
	padding-right: 0;
}

.acg-corner--b .acg-arrow {
	width: 34px;
	height: 34px;
}

.acg-corner--b .acg-arrow svg {
	width: 13px;
	height: 13px;
}

.acg-corner--b .acg-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
}

/* レイアウトC ------------------------------------------------------------ */

.acg-corner--c {
	--acg-per-c: 4;
}

.acg-corner--c .acg-corner__inner {
	max-width: var(--acg-max-c, 1360px);
	margin: 0 auto;
	padding: 0 var(--acg-pad);
}

.acg-corner--c .acg-corner__head {
	max-width: 760px;
	margin: 0 auto clamp(20px, 3vw, 34px);
	padding-right: 0;
	text-align: center;
}

.acg-corner--c .acg-corner__catch,
.acg-corner--c .acg-corner__desc {
	text-align: center;
}

/* 中央に4枚並べる（画面幅に比例させない） */
.acg-corner--c .acg-slide {
	flex: 0 0 calc((100% - (var(--acg-per-c) - 1) * var(--acg-gap-pc)) / var(--acg-per-c));
	cursor: zoom-in;
}

.acg-corner--c .acg-slide__fig {
	transition: opacity .25s;
}

.acg-corner--c .acg-slide:hover .acg-slide__fig {
	opacity: .78;
}

.acg-corner--c .acg-slide:focus-visible {
	outline: 2px solid var(--acg-btn);
	outline-offset: 3px;
}

.acg-tabs {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
	margin-bottom: clamp(24px, 3vw, 40px);
	padding-right: 0;
}

.acg-tab {
	min-width: 165px;
	padding: 14px 22px;
	border: 1px solid #ded7cd;
	background: #fff;
	color: #4a443e;
	font-size: 14px;
	letter-spacing: .12em;
	cursor: pointer;
	transition: background .25s, color .25s, border-color .25s;
}

.acg-corner--arrow-circle .acg-tab {
	border-radius: 3px;
}

.acg-tab:hover {
	border-color: var(--acg-btn);
}

.acg-tab.is-active {
	background: var(--acg-btn);
	border-color: var(--acg-btn);
	color: #fff;
}

.acg-panel {
	display: none;
}

.acg-panel.is-active {
	display: block;
}

.acg-corner--c .acg-controls {
	padding-right: 0;
}

.acg-corner--c .acg-arrow {
	width: 40px;
	height: 40px;
}

/* スマホ ----------------------------------------------------------------- */

@media (max-width: 767px) {

	.acg-track {
		gap: var(--acg-gap-sp);
	}

	.acg-slide {
		flex-basis: calc((100% - (var(--acg-per-sp) - 1) * var(--acg-gap-sp)) / var(--acg-per-sp));
	}

	.acg-arrow,
	.acg-corner--c .acg-arrow {
		width: 40px;
		height: 40px;
	}

	.acg-nav--pc {
		display: none;
	}

	.acg-nav--sp {
		display: flex;
	}

	/* レイアウトA：見出し → スライダー → 操作 → 本文 */
	.acg-corner--a .acg-corner__inner {
		display: flex;
		flex-direction: column;
		padding-left: 0;
	}

	.acg-corner--a .acg-corner__text {
		display: contents;
	}

	.acg-corner--a .acg-corner__title {
		order: 1;
		padding: 0 var(--acg-pad) 1.2em;
		text-align: center;
	}

	.acg-corner--a .acg-corner__slider {
		order: 2;
		padding-left: var(--acg-pad);
	}

	.acg-corner--a .acg-corner__catch {
		order: 3;
	}

	.acg-corner--a .acg-corner__desc {
		order: 4;
	}

	.acg-corner--a .acg-controls {
		justify-content: space-between;
		padding-right: var(--acg-pad);
	}

	.acg-corner--a .acg-corner__catch,
	.acg-corner--a .acg-corner__desc {
		padding: 0 var(--acg-pad);
	}

	.acg-corner--a .acg-corner__catch {
		margin-top: 28px;
	}

	/* レイアウトB：タイトル → メイン画像 → サムネイル → 送りボタン → 本文 */
	/* 反転指定（偶数コーナー）も1カラムに戻すため、同じ詳細度で上書きする */
	.acg-corner--b .acg-corner__inner,
	.acg-corner--b.acg-corner--rev .acg-corner__inner {
		grid-template-columns: 100%;
		grid-template-areas:
			"head"
			"main"
			"slider"
			"text";
		grid-template-rows: auto auto auto auto;
		gap: 0;
		padding: 0;
	}

	.acg-corner--b .acg-corner__main,
	.acg-corner--b.acg-corner--rev .acg-corner__main {
		max-width: none;
		justify-self: stretch;
		padding: 0 var(--acg-pad);
	}

	/* 見出しはレイアウトAと同じく中央揃え */
	.acg-corner--b .acg-corner__head {
		padding: 0 var(--acg-pad) 1.2em;
		text-align: center;
	}

	.acg-corner--b .acg-corner__logo {
		display: flex;
		justify-content: center;
	}

	.acg-corner--b .acg-corner__logoimg {
		width: auto;
	}

	.acg-corner--b .acg-corner__text {
		padding: 0 var(--acg-pad);
	}

	.acg-corner--b .acg-corner__text {
		margin-top: 28px;
	}

	.acg-corner--b .acg-corner__slider {
		margin-top: 20px;
		padding-left: var(--acg-pad);
	}

	.acg-corner--b .acg-slide {
		flex: 0 0 clamp(88px, 26vw, 130px);
	}

	/* 送りボタンはサムネイルの直下・中央に置く */
	.acg-corner--b .acg-controls {
		flex-direction: row;
		justify-content: center;
		gap: 14px;
		padding-right: var(--acg-pad);
	}

	/* レイアウトC */
	.acg-corner--c {
		--acg-per-c: 2;
	}

	.acg-corner--c .acg-slide {
		flex-basis: calc((100% - (var(--acg-per-c) - 1) * var(--acg-gap-sp)) / var(--acg-per-c));
	}

	.acg-tab {
		min-width: 0;
		flex: 1 1 calc(50% - 12px);
		padding: 12px 10px;
		font-size: 13px;
	}
}

@media (prefers-reduced-motion: reduce) {

	.acg-track {
		scroll-behavior: auto;
	}
}


/* 拡大表示（レイアウトC） ------------------------------------------------- */

.acg-lightbox {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 6vmin;
	background: rgba(28, 24, 21, .84);
	opacity: 0;
	visibility: hidden;
	transition: opacity .35s ease, visibility .35s ease;
}

.acg-lightbox.is-open {
	opacity: 1;
	visibility: visible;
}

.acg-lightbox__inner {
	max-width: min(880px, 92vw);
	transform: scale(.94) translateY(10px);
	transition: transform .4s cubic-bezier(.22, .61, .36, 1);
}

.acg-lightbox.is-open .acg-lightbox__inner {
	transform: none;
}

.acg-lightbox__img {
	display: block;
	width: auto;
	height: auto;
	max-width: 100%;
	max-height: 80vh;
	margin: 0 auto;
}

.acg-lightbox__caption {
	margin: 16px 0 0;
	text-align: center;
	color: #fff;
	font-size: 13px;
	line-height: 1.8;
	letter-spacing: .08em;
}

.acg-lightbox__close {
	position: absolute;
	top: 14px;
	right: 14px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	padding: 0;
	border: 0;
	background: transparent;
	color: #fff;
	cursor: pointer;
}

.acg-lightbox__close svg {
	width: 20px;
	height: 20px;
}

body.acg-lock {
	overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {

	.acg-lightbox,
	.acg-lightbox__inner {
		transition: none;
	}
}

/* 特長（feature）セクション ---------------------------------------------- */

.acg-feature {
	background: var(--acg-bg, #fff);
	padding: clamp(50px, 7vw, 110px) var(--acg-pad) clamp(40px, 6vw, 90px);
}

.acg-feature__title {
	position: relative;
	margin: 0 0 clamp(36px, 5vw, 70px);
	text-align: center;
	font-weight: 400;
	line-height: 1;
}

.acg-feature__title-main {
	position: relative;
	z-index: 1;
	font-family: var(--acg-font);
	font-size: clamp(32px, 4.4vw, 56px);
	letter-spacing: .08em;
	color: var(--acg-title);
}

.acg-feature__title-script {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -42%);
	font-family: var(--acg-script);
	font-size: clamp(46px, 6.6vw, 86px);
	line-height: 1;
	white-space: nowrap;
	color: var(--acg-title);
	opacity: .22;
	pointer-events: none;
}

.acg-feature__title--image {
	display: flex;
	justify-content: center;
}

.acg-feature__title-img {
	display: block;
	width: auto;
	height: auto;
	max-width: 100%;
}

.acg-feature__list {
	max-width: var(--acg-max-f, 1000px);
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	gap: clamp(50px, 7vw, 110px);
}

.acg-feature__item {
	display: grid;
	grid-template-columns: minmax(0, var(--acg-f-img, 1.3fr)) minmax(0, var(--acg-f-txt, 1fr));
	gap: 0 clamp(28px, 5vw, 70px);
	align-items: center;
}

/* 画像が右に来る回は、広い方の列も入れ替える */
.acg-feature__item--rev {
	grid-template-columns: minmax(0, var(--acg-f-txt, 1fr)) minmax(0, var(--acg-f-img, 1.3fr));
}

.acg-feature__images {
	display: grid;
	grid-template-columns: 1fr;
	gap: clamp(8px, 1vw, 14px);
}

.acg-feature__item--two .acg-feature__images {
	grid-template-columns: 1fr 1fr;
}

.acg-feature__img {
	display: block;
	width: 100%;
	height: auto;
	object-fit: cover;
}

/* 2枚並びは縦横比を揃えて同じ大きさに見せる */
.acg-feature__item--two .acg-feature__images {
	align-items: stretch;
}

.acg-feature__item--two .acg-feature__img {
	height: 100%;
	aspect-ratio: var(--acg-f-ratio, 3 / 4);
}

.acg-feature__body {
	position: relative;
	min-width: 0;
	padding-top: clamp(28px, 4vw, 62px);
}

/* 背面の大きな番号 */
.acg-feature__num {
	position: absolute;
	top: 0;
	left: 0;
	transform: translateY(-46%);
	font-family: var(--acg-font);
	font-size: clamp(110px, 14vw, 220px);
	line-height: 1;
	letter-spacing: .02em;
	color: var(--acg-title);
	opacity: .18;
	pointer-events: none;
	user-select: none;
}

.acg-feature__heading {
	position: relative;
	z-index: 1;
	margin: 0 0 1.1em;
	font-size: clamp(17px, 1.7vw, 22px);
	font-weight: 400;
	line-height: 1.9;
	letter-spacing: .1em;
	color: #3c3733;
}

.acg-feature__desc {
	position: relative;
	z-index: 1;
	font-size: clamp(12px, 1.1vw, 14px);
	line-height: 2.2;
	letter-spacing: .06em;
	color: #6b6259;
}

.acg-feature__desc p {
	margin: 0 0 1em;
}

.acg-feature__desc p:last-child {
	margin-bottom: 0;
}

/* 偶数は左右入れ替え */
.acg-feature__item--rev .acg-feature__images {
	order: 2;
}

.acg-feature__item--rev .acg-feature__body {
	order: 1;
}

.acg-feature__item--rev .acg-feature__num {
	left: auto;
	right: 0;
}

@media (max-width: 767px) {

	.acg-feature__item {
		display: flex;
		flex-direction: column;
	}

	/* 画像の横並びは維持したまま、左右交互だけ解除する */
	.acg-feature__item--rev .acg-feature__images,
	.acg-feature__item--rev .acg-feature__body {
		order: 0;
	}

	.acg-feature__body {
		padding-top: 0;
	}

	/* 番号は画像の右下に重ねる */
	.acg-feature__num,
	.acg-feature__item--rev .acg-feature__num {
		top: 0;
		left: auto;
		right: 4px;
		transform: translateY(-78%);
		font-size: clamp(96px, 28vw, 160px);
	}

	.acg-feature__heading {
		margin-top: 1.4em;
	}
}
