/* ApLink Design Gallery — 浮世絵グッズ（p7Zeitgeist）レイアウト上のギャラリー用 */

.dg-main {
	width: 100%;
}

/* ---- トップ：3グリッド・回廊イントロ ---- */
.dg-intro-section .intro-title {
	margin-bottom: 1.2em;
}

.dg-intro-lead {
	max-width: 42em;
	margin-inline: auto;
	text-align: center;
	margin-bottom: 2em;
}

.dg-intro-mission {
	width: 100%;
	padding: 0 1em;
	margin-bottom: 2.4em;
}

.dg-intro-mission__kicker {
	font-family: Montserrat, 'Noto Sans JP', sans-serif;
	font-size: 0.62em;
	font-weight: 600;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	margin-bottom: 0.65em;
	color: #8b2e24;
	opacity: 0.85;
}

.dg-intro-mission__title {
	font-family: 'Shippori Mincho', 'Noto Serif JP', 'Yu Mincho', serif;
	font-size: clamp(1.15rem, 2vw, 1.45rem);
	font-weight: 500;
	line-height: 1.5;
	margin-bottom: 0.85em;
	color: #1a1714;
}

.dg-intro-mission__body {
	padding: 1.4em 0 1.4em 1.35em;
	border-left: 3px solid rgba(211, 47, 47, 0.28);
	background: linear-gradient(90deg, rgba(250, 248, 244, 0.65) 0%, rgba(250, 248, 244, 0) 100%);
}

.dg-intro-mission__body p {
	font-size: clamp(0.88rem, 1.5vw, 0.98rem);
	line-height: 2;
	color: #555;
	margin-bottom: 0.85em;
	letter-spacing: 0.02em;
}

.dg-intro-mission__body p:last-child {
	margin-bottom: 0;
}

.dg-intro-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(0.65rem, 1.4vw, 1rem);
	padding: 0 1em;
	margin-bottom: 2.2em;
}

.dg-intro-panel {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	min-height: min(72vh, 36rem);
	overflow: hidden;
	border-radius: 4px;
	border: 1px solid #e8e8e8;
	background: #fafafa;
	isolation: isolate;
}

.dg-intro-panel__media {
	position: absolute;
	inset: 0;
	overflow: hidden;
	background: #1a1714;
}

.dg-intro-panel__media img {
	position: absolute;
	top: 50%;
	left: 50%;
	min-width: 112%;
	min-height: 112%;
	width: auto;
	height: auto;
	transform: translate(-50%, -50%) scale(1.06);
	object-fit: cover;
	transition: transform 1.4s cubic-bezier(0.22, 1, 0.36, 1);
	will-change: transform;
}

.dg-intro-panel--kano:hover .dg-intro-panel__media img,
.dg-intro-panel--kano:focus-within .dg-intro-panel__media img,
.dg-intro-panel--ukiyoe:hover .dg-intro-panel__media img,
.dg-intro-panel--ukiyoe:focus-within .dg-intro-panel__media img {
	transform: translate(-50%, -52%) scale(1.14);
}

a.dg-intro-panel {
	text-decoration: none;
	color: inherit;
	transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

a.dg-intro-panel:hover,
a.dg-intro-panel:focus-visible {
	border-color: rgba(139, 46, 36, 0.45);
	box-shadow: 0 8px 28px rgba(26, 20, 18, 0.12);
	outline: none;
}

.dg-intro-panel--soon {
	cursor: default;
	opacity: 0.92;
}

.dg-intro-panel--soon:hover,
.dg-intro-panel--soon:focus-visible {
	border-color: #e8e8e8;
	box-shadow: none;
}

.dg-intro-panel__media--shimmer {
	width: 100%;
	height: 100%;
	background:
		linear-gradient(135deg, #3d2e0f 0%, #7a5c1a 28%, #c9a227 52%, #5c4512 78%, #2a1f08 100%);
	background-size: 220% 220%;
	animation: dg-gold-shimmer 14s ease-in-out infinite alternate;
}

@keyframes dg-gold-shimmer {
	0% {
		background-position: 0% 50%;
	}
	100% {
		background-position: 100% 50%;
	}
}

.dg-intro-panel__veil {
	position: absolute;
	inset: 0;
	pointer-events: none;
}

.dg-intro-panel--kano .dg-intro-panel__veil {
	background: linear-gradient(
		180deg,
		rgba(12, 10, 9, 0.12) 0%,
		rgba(12, 10, 9, 0.55) 55%,
		rgba(8, 7, 6, 0.92) 100%
	);
}

.dg-intro-panel--ukiyoe .dg-intro-panel__veil {
	background: linear-gradient(
		180deg,
		rgba(20, 8, 8, 0.1) 0%,
		rgba(20, 8, 8, 0.52) 55%,
		rgba(12, 6, 6, 0.92) 100%
	);
}

.dg-intro-panel--egypt .dg-intro-panel__veil {
	background: linear-gradient(
		180deg,
		rgba(20, 14, 4, 0.08) 0%,
		rgba(20, 14, 4, 0.62) 58%,
		rgba(10, 7, 2, 0.94) 100%
	);
}

.dg-intro-panel__inner {
	position: relative;
	z-index: 1;
	padding: 1.65em 1.5em 1.75em;
}

.dg-intro-panel__inner--overlay {
	color: #f4ebe0;
}

.dg-intro-panel__kicker {
	font-family: Montserrat, 'Noto Sans JP', sans-serif;
	font-size: 0.62em;
	font-weight: 600;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	margin-bottom: 0.65em;
	opacity: 0.72;
}

.dg-intro-panel--kano .dg-intro-panel__kicker {
	color: rgba(196, 220, 200, 0.85);
}

.dg-intro-panel--ukiyoe .dg-intro-panel__kicker {
	color: rgba(244, 196, 188, 0.88);
}

.dg-intro-panel--egypt .dg-intro-panel__kicker {
	color: rgba(244, 220, 160, 0.88);
}

.dg-intro-panel__title {
	font-family: 'Shippori Mincho', 'Noto Serif JP', 'Yu Mincho', serif;
	font-size: clamp(1.05rem, 1.8vw, 1.28rem);
	font-weight: 500;
	line-height: 1.55;
	margin-bottom: 0.35em;
	color: inherit;
}

.dg-intro-panel__subtitle {
	font-size: clamp(0.72rem, 1.2vw, 0.82rem);
	letter-spacing: 0.12em;
	color: rgba(244, 235, 224, 0.72);
	margin-bottom: 0.85em;
}

.dg-intro-panel__badge {
	display: inline-block;
	margin-left: 0.35em;
	padding: 0.12em 0.45em;
	font-family: 'Noto Sans JP', sans-serif;
	font-size: 0.58em;
	font-weight: 500;
	letter-spacing: 0.08em;
	vertical-align: middle;
	border: 1px solid currentColor;
	border-radius: 2px;
	opacity: 0.65;
}

.dg-intro-panel__body p {
	font-size: clamp(0.82rem, 1.35vw, 0.92rem);
	line-height: 1.95;
	margin-bottom: 0.85em;
	color: inherit;
}

.dg-intro-panel__inner--overlay .dg-intro-panel__body p {
	color: rgba(244, 235, 224, 0.9);
}

.dg-intro-panel__body p:last-child {
	margin-bottom: 0;
}

.dg-intro-panel__link {
	margin-top: 0.85em;
	font-size: 0.72em;
	letter-spacing: 0.1em;
	color: rgba(244, 220, 210, 0.75);
}

.dg-intro-closing-wrap {
	width: 100%;
	padding: 0 1em;
	margin-bottom: 1.5em;
	overflow: hidden;
}

.dg-rise-reveal.scroll-fade-in {
	opacity: 1;
	transform: none;
}

.dg-intro-closing {
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 1.6em 1.35em 1.75em;
	font-size: clamp(0.9rem, 1.6vw, 1.02rem);
	line-height: 2.05;
	color: #555;
	text-align: left;
	letter-spacing: 0.02em;
	border-top: 1px solid rgba(211, 47, 47, 0.14);
	background: linear-gradient(180deg, rgba(250, 248, 244, 0.55) 0%, rgba(250, 248, 244, 0) 100%);
}

.dg-rise-line {
	display: block;
	opacity: 0;
	transform: translateY(3rem);
	filter: blur(5px);
	transition:
		opacity 1.15s cubic-bezier(0.22, 1, 0.36, 1),
		transform 1.15s cubic-bezier(0.22, 1, 0.36, 1),
		filter 1s ease;
	will-change: opacity, transform, filter;
}

.dg-rise-line + .dg-rise-line {
	margin-top: 0.65em;
}

.dg-rise-reveal.is-visible .dg-rise-line {
	opacity: 1;
	transform: translateY(0);
	filter: blur(0);
}

.dg-rise-reveal.is-visible .dg-rise-line:nth-child(1) {
	transition-delay: 0.08s;
}

.dg-rise-reveal.is-visible .dg-rise-line:nth-child(2) {
	transition-delay: 0.32s;
}

.dg-rise-reveal.is-visible .dg-rise-line:nth-child(3) {
	transition-delay: 0.56s;
}

.dg-intro-grid .scroll-fade-in:nth-child(1) {
	transition-delay: 0.05s;
}

.dg-intro-grid .scroll-fade-in:nth-child(2) {
	transition-delay: 0.18s;
}

.dg-intro-grid .scroll-fade-in:nth-child(3) {
	transition-delay: 0.31s;
}

@media only screen and (max-width: 960px) {
	.dg-intro-grid {
		grid-template-columns: 1fr;
	}

	.dg-intro-panel {
		min-height: auto;
	}

	.dg-intro-panel--kano,
	.dg-intro-panel--egypt,
	.dg-intro-panel--ukiyoe {
		min-height: min(52vh, 24rem);
	}
}

@media (prefers-reduced-motion: reduce) {
	.dg-intro-panel__media img {
		transition: none;
	}

	.dg-intro-panel__media--shimmer {
		animation: none;
	}

	.dg-rise-line {
		opacity: 1;
		transform: none;
		filter: none;
		transition: none;
	}
}

.dg-collection-card {
	display: block;
	background: #fafafa;
	padding: 0;
	border-radius: 4px;
	border: 1px solid #e8e8e8;
	margin: 1em;
	overflow: hidden;
	text-decoration: none;
	color: inherit;
	transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.dg-collection-card:hover,
.dg-collection-card:focus-visible {
	border-color: rgba(211, 47, 47, 0.35);
	box-shadow: 0 8px 28px rgba(26, 20, 18, 0.1);
	outline: none;
}

.dg-collection-card__media {
	position: relative;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: #2b2621;
}

.dg-collection-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.7s ease;
}

.dg-collection-card:hover .dg-collection-card__media img,
.dg-collection-card:focus-visible .dg-collection-card__media img {
	transform: scale(1.03);
}

.dg-collection-card__body {
	padding: 1.5em 1.6em 1.8em;
}

.dg-collection-card__en {
	font-family: Montserrat, 'Noto Sans JP', sans-serif;
	font-size: 0.72em;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	margin-bottom: 0.55em;
}

.dg-collection-card__title {
	font-family: 'Shippori Mincho', 'Noto Serif JP', 'Yu Mincho', serif;
	font-size: clamp(1.15rem, 2.2vw, 1.45rem);
	font-weight: 500;
	line-height: 1.45;
	color: #1a1714;
	margin-bottom: 0.65em;
}

.dg-collection-card__desc {
	font-size: 0.92em;
	line-height: 1.95;
	color: #666;
	margin-bottom: 0.85em;
}

.dg-collection-card__meta {
	font-size: 0.78em;
	letter-spacing: 0.08em;
	color: #999;
}

.dg-gallery-panel--thumbs {
	padding: 0 1em 1.2em;
}

.dg-gallery-panel--stage {
	padding: 0;
	max-width: none;
}

/* 上段：イントロ（サムネイル上）+ サムネイル — 幅を揃える */
.dg-top-band {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 1.4em 1em 1.2em;
	border-bottom: 1px solid #e8e8e8;
	background: #fff;
	min-width: 0;
}

.dg-top-band__gallery {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	width: 100%;
	max-width: calc(5rem + 1.3em + 1000px + 4.05em);
	min-width: 0;
	margin-inline: auto;
}

.dg-top-band__intro {
	width: 100%;
	margin-bottom: 1em;
}

.dg-top-band__thumbs {
	width: 100%;
	min-width: 0;
	max-width: 100%;
	display: flex;
	flex-direction: column;
	justify-content: center;
	overflow: hidden;
}

.dg-top-band__intro .dg-stage-intro__title {
	font-size: clamp(1.25rem, 2vw, 1.65rem);
	margin-bottom: 0.3em;
	letter-spacing: 0.08em;
	text-align: left;
}

.dg-top-band__intro .intro-lead {
	margin-bottom: 0.65em;
	font-size: clamp(0.85rem, 1.4vw, 0.95rem);
	line-height: 1.65;
}

.dg-top-band__intro .dg-stage-intro__block {
	margin-bottom: 0;
	padding: 0.65em 0 0.65em 1em;
}

.dg-top-band__intro .dg-stage-intro__block p {
	font-size: clamp(0.78rem, 1.3vw, 0.88rem);
	line-height: 1.75;
	margin-bottom: 0.55em;
}

.dg-top-band__intro .dg-stage-intro__block .intro-artists {
	margin-bottom: 0.45em;
	font-size: clamp(0.76rem, 1.25vw, 0.86rem);
	line-height: 1.7;
}

.dg-top-band__intro .dg-stage-intro__block .intro-cta {
	margin-top: 0.55em;
	padding-top: 0.65em;
	font-size: clamp(0.82rem, 1.35vw, 0.92rem);
}

.dg-stage-intro {
	max-width: none;
	margin: 0;
	padding: 0;
	text-align: left;
}

.dg-stage-intro__title {
	font-size: clamp(1.45rem, 2.4vw, 2rem);
	margin-bottom: 0.35em;
	text-align: left;
	line-height: 1.35;
}

.dg-stage-intro__en {
	text-align: left;
	margin-bottom: 0.35em;
	font-size: clamp(0.95rem, 1.6vw, 1.05rem);
}

.dg-stage-intro__block {
	margin-bottom: 0;
	padding: 0.85em 0 0.85em 1em;
}

.dg-stage-intro__block p {
	font-size: clamp(0.82rem, 1.4vw, 0.92rem);
	line-height: 1.75;
	margin-bottom: 0.65em;
}

.dg-stage-intro__block .intro-cta {
	margin-top: 0.5em;
	padding-top: 0.65em;
	font-size: clamp(0.88rem, 1.5vw, 0.98rem);
}

.dg-stage-section .hmy-content-wrapper,
.dg-stage-section .hmy-content {
	padding: 0 !important;
	max-width: none !important;
	width: 100%;
}

.dg-stage-section {
	position: relative;
	z-index: 2;
}

.dg-gallery-loading,
.dg-gallery-error {
	padding: 1.5em 1em;
	font-size: 0.9em;
	color: #666;
}

.dg-stage--loading,
.dg-stage--error {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: min(40vh, 480px);
	background: #1a1714;
	color: #f4ebe0;
}

.dg-split-viewer__thumbs {
	background: #fff;
	border-top: 1px solid #e8e8e8;
	border-bottom: 1px solid #e8e8e8;
	padding: 1.4em 1em 1.2em;
}

.dg-thumb-carousel {
	display: flex;
	align-items: center;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	gap: 0.65em;
}

.dg-thumb-carousel__strip {
	flex: 1 1 0;
	min-width: 0;
	display: flex;
	flex-wrap: nowrap;
	align-items: flex-start;
	gap: 0.45em;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: thin;
	padding-bottom: 0.15em;
}

.dg-thumb-carousel__strip .dg-thumb-cell--compact {
	flex: 0 0 100px;
	width: 100px;
}

/* 100×100 フィットボックス — 長辺を 100px に揃えて contain */
.dg-thumb-cell__frame {
	position: relative;
	width: 100px;
	height: 100px;
	margin-inline: auto;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(43, 38, 33, 0.06);
}

.dg-thumb-cell__image {
	display: block;
	max-width: 100px;
	max-height: 100px;
	width: auto;
	height: auto;
	object-fit: contain;
	object-position: center;
}

.dg-thumb-cell__image--fade {
	position: absolute;
	inset: 0;
	margin: auto;
}

.dg-thumb-cell__label {
	display: block;
	width: 100px;
	margin-inline: auto;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	padding: 0.35em 0 0;
	text-align: center;
	font-family: 'Shippori Mincho', 'Noto Serif JP', serif;
	font-size: 9px;
	line-height: 1.35;
	color: #444;
}

.dg-thumb-cell:hover .dg-thumb-cell__label,
.dg-thumb-cell:focus-visible .dg-thumb-cell__label {
	color: #d32f2f;
}

.dg-thumb-carousel__strip::-webkit-scrollbar {
	height: 5px;
}

.dg-thumb-carousel__strip::-webkit-scrollbar-thumb {
	background: rgba(211, 47, 47, 0.25);
	border-radius: 999px;
}

.dg-thumb-carousel__arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	position: relative;
	z-index: 2;
	width: 2.5rem;
	height: 2.5rem;
	border: 1px solid #e8e8e8;
	border-radius: 999px;
	background: #fafafa;
	color: #555;
	cursor: pointer;
	transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.dg-thumb-carousel__arrow:hover {
	border-color: rgba(211, 47, 47, 0.4);
	color: #d32f2f;
	background: #fff;
}

.dg-thumb-carousel__counter {
	margin: 0.75em 0 0;
	text-align: center;
	font-size: 0.78em;
	letter-spacing: 0.1em;
	color: #888;
}

.dg-thumb-carousel__range {
	font-size: 0.92em;
	color: #aaa;
}

@media only screen and (max-width: 1100px) {
	.dg-thumb-carousel__strip {
		gap: 0.35em;
	}
}

.dg-stage {
	background: #1a1714;
	color: #f4ebe0;
	width: 100%;
	position: relative;
	z-index: 1;
}

.dg-stage__viewport {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: min(68vh, 820px);
	padding: 1.5em 1em;
	background: radial-gradient(ellipse at center, #2b2621 0%, #1a1714 70%);
}

.dg-stage__image {
	display: block;
	max-height: min(64vh, 780px);
	max-width: min(96%, 1100px);
	width: auto;
	height: auto;
	object-fit: contain;
	opacity: 1;
	visibility: visible;
}

.dg-stage__meta {
	padding: 1.4em 1.6em 1.8em;
	border-top: 1px solid rgba(196, 184, 164, 0.25);
	max-width: 900px;
	margin: 0 auto;
}

.dg-stage__artist {
	font-family: 'Shippori Mincho', 'Noto Serif JP', serif;
	font-size: 0.75em;
	letter-spacing: 0.24em;
	text-transform: uppercase;
	margin-bottom: 0.45em;
}

.dg-stage__title {
	font-family: 'Shippori Mincho', 'Noto Serif JP', serif;
	font-size: clamp(1.2rem, 2.5vw, 1.65rem);
	font-weight: 500;
	line-height: 1.45;
	color: #fdfaf5;
	margin-bottom: 0.25em;
}

.dg-stage__title-en {
	font-size: 0.88em;
	color: rgba(244, 235, 224, 0.65);
	margin-bottom: 0.5em;
}

.dg-stage__period {
	font-size: 0.85em;
	color: rgba(244, 235, 224, 0.75);
	margin-bottom: 0.65em;
}

.dg-stage__desc {
	font-size: 0.92em;
	line-height: 1.95;
	color: rgba(244, 235, 224, 0.88);
	margin-bottom: 0.85em;
}

.dg-stage__footer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75em 1.25em;
	font-size: 0.78em;
	color: rgba(244, 235, 224, 0.55);
}

.dg-stage__source {
	display: inline-flex;
	align-items: center;
	gap: 0.25em;
	text-decoration: none;
}

.dg-stage__source:hover {
	text-decoration: underline;
}

.dg-gallery-panel .dg-back-link {
	display: inline-block;
	font-size: 0.78em;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: #888;
	text-decoration: none;
	margin-bottom: 1.2em;
}

.dg-gallery-panel .dg-back-link:hover {
	color: #d32f2f;
}

.dg-gallery-note {
	text-align: center;
	font-size: 0.85em;
	line-height: 1.9;
	color: #777;
	padding: 0 1.5em 1.5em;
}

.dg-gallery-note a {
	color: #d32f2f;
	text-decoration: none;
}

.dg-gallery-note a:hover {
	text-decoration: underline;
}

.dg-other-collections {
	display: flex;
	flex-wrap: wrap;
	gap: 0.65em;
	justify-content: center;
	padding: 0 1em 1.5em;
}

.dg-other-collections a {
	display: inline-flex;
	align-items: center;
	padding: 0.45em 1em;
	border: 1px solid #e8e8e8;
	border-radius: 999px;
	background: #fafafa;
	font-size: 0.88em;
	color: #444;
	text-decoration: none;
	transition: border-color 0.2s ease, color 0.2s ease;
}

.dg-other-collections a:hover {
	border-color: rgba(211, 47, 47, 0.35);
	color: #d32f2f;
}

.dg-other-collections__soon {
	display: inline-flex;
	align-items: center;
	padding: 0.45em 1em;
	border: 1px dashed #e0e0e0;
	border-radius: 999px;
	background: #fafafa;
	font-size: 0.88em;
	color: #999;
}

.dg-collection-card--soon {
	cursor: default;
	opacity: 0.88;
}

.dg-collection-card--soon:hover,
.dg-collection-card--soon:focus-visible {
	border-color: #e8e8e8;
	box-shadow: none;
}

.dg-collection-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 0;
}

@media only screen and (max-width: 960px) {
	.dg-collection-grid {
		grid-template-columns: 1fr;
	}
}
