/* art-walk index — 3グリッド入口 */

.aw-index {
	--aw-gap: clamp(0.45rem, 1.2vw, 0.85rem);
	--aw-ink: #1a1714;
	--aw-muted: #4a433c;
	position: relative;
}

.aw-index-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--aw-gap);
	min-height: min(88vh, 52rem);
	margin-top: 1.75rem;
}

.aw-index-panel {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	min-height: min(82vh, 48rem);
	overflow: hidden;
	border-radius: 3px;
	text-decoration: none;
	color: inherit;
	isolation: isolate;
	opacity: 0;
	transform: translateY(2.4rem) scale(0.96);
	filter: blur(6px);
	transition:
		opacity 1s cubic-bezier(0.22, 1, 0.36, 1),
		transform 1.1s cubic-bezier(0.22, 1, 0.36, 1),
		filter 1s ease;
	will-change: transform, opacity, filter;
}

.aw-index.is-visible .aw-index-panel {
	opacity: 1;
	transform: translateY(0) scale(1);
	filter: blur(0);
}

.aw-index.is-visible .aw-index-panel--gallery {
	transition-delay: 0.05s;
}

.aw-index.is-visible .aw-index-panel--utamaro {
	transition-delay: 0.22s;
}

.aw-index.is-visible .aw-index-panel--goods {
	transition-delay: 0.39s;
}

.aw-index-panel__media {
	position: absolute;
	inset: 0;
	overflow: hidden;
	background: #1a1412;
}

.aw-index-panel__img {
	position: absolute;
	top: 50%;
	left: 50%;
	min-width: 112%;
	min-height: 112%;
	width: auto;
	height: auto;
	transform: translate(-50%, -50%) scale(1.08);
	transform-origin: center center;
	object-fit: cover;
	will-change: transform, opacity;
}

.aw-index-panel__img--b {
	opacity: 0;
}

/* Gallery — クロスフェード */
.aw-index-panel--gallery .aw-index-panel__img--a {
	animation: aw-kb-gallery-a 18s ease-in-out infinite alternate;
}

.aw-index-panel--gallery .aw-index-panel__img--b {
	animation: aw-kb-gallery-b 18s ease-in-out infinite alternate;
}

@keyframes aw-kb-gallery-a {
	0%,
	42% {
		opacity: 1;
		transform: translate(-50%, -50%) scale(1.06);
	}
	58%,
	100% {
		opacity: 0;
		transform: translate(-48%, -52%) scale(1.18);
	}
}

@keyframes aw-kb-gallery-b {
	0%,
	42% {
		opacity: 0;
		transform: translate(-52%, -48%) scale(1.14);
	}
	58%,
	100% {
		opacity: 1;
		transform: translate(-50%, -50%) scale(1.08);
	}
}

.aw-index-panel--gallery .aw-index-panel__veil {
	background: linear-gradient(180deg, rgba(12, 10, 9, 0.15) 0%, rgba(12, 10, 9, 0.72) 62%, rgba(8, 7, 6, 0.92) 100%);
}

.aw-index-panel--gallery .aw-index-panel__eyebrow {
	color: rgba(255, 255, 255, 0.72);
}

.aw-index-panel--gallery .aw-index-panel__title,
.aw-index-panel--gallery .aw-index-panel__copy,
.aw-index-panel--gallery .aw-index-panel__cta {
	color: #faf6ef;
}

/* Utamaro — Ken Burns */
.aw-index-panel--utamaro .aw-index-panel__img--a {
	animation: aw-kb-utamaro-a 20s linear infinite alternate;
}

.aw-index-panel--utamaro .aw-index-panel__img--b {
	opacity: 0.35;
	mix-blend-mode: soft-light;
	animation: aw-kb-utamaro-b 24s linear infinite alternate;
}

@keyframes aw-kb-utamaro-a {
	from {
		transform: translate(-50%, -50%) scale(1.1);
	}
	to {
		transform: translate(-46%, -54%) scale(1.28);
	}
}

@keyframes aw-kb-utamaro-b {
	from {
		opacity: 0.2;
		transform: translate(-54%, -46%) scale(1.2);
	}
	to {
		opacity: 0.45;
		transform: translate(-48%, -52%) scale(1.34);
	}
}

.aw-index-panel--utamaro .aw-index-panel__veil {
	background:
		linear-gradient(180deg, rgba(139, 46, 36, 0.08) 0%, rgba(26, 20, 18, 0.55) 55%, rgba(18, 12, 10, 0.94) 100%),
		repeating-linear-gradient(
			90deg,
			rgba(250, 246, 239, 0.03) 0,
			rgba(250, 246, 239, 0.03) 1px,
			transparent 1px,
			transparent 4px
		);
}

.aw-index-panel--utamaro .aw-index-panel__eyebrow {
	color: #e8b4ad;
	letter-spacing: 0.32em;
}

.aw-index-panel--utamaro .aw-index-panel__title {
	color: #faf6ef;
}

.aw-index-panel--utamaro .aw-index-panel__copy,
.aw-index-panel--utamaro .aw-index-panel__cta {
	color: rgba(250, 246, 239, 0.88);
}

/* Goods — 誕生パルス */
.aw-index-panel--goods .aw-index-panel__img--a {
	animation: aw-kb-goods 16s ease-in-out infinite alternate;
}

.aw-index-panel--goods .aw-index-panel__img--b {
	opacity: 0;
	animation: aw-goods-flash 8s ease-in-out infinite;
}

@keyframes aw-kb-goods {
	from {
		transform: translate(-50%, -50%) scale(1.05);
	}
	to {
		transform: translate(-48%, -52%) scale(1.16);
	}
}

@keyframes aw-goods-flash {
	0%,
	70%,
	100% {
		opacity: 0;
	}
	78%,
	88% {
		opacity: 0.55;
		transform: translate(-50%, -50%) scale(1.12);
	}
}

.aw-index-panel--goods .aw-index-panel__veil {
	background: linear-gradient(165deg, rgba(245, 124, 0, 0.12) 0%, rgba(26, 20, 18, 0.62) 48%, rgba(14, 10, 8, 0.94) 100%);
}

.aw-index-panel--goods::after {
	content: '';
	position: absolute;
	inset: 0;
	pointer-events: none;
	background: linear-gradient(105deg, transparent 40%, rgba(255, 183, 77, 0.14) 50%, transparent 60%);
	transform: translateX(-120%);
	animation: aw-goods-shimmer 5.5s ease-in-out infinite;
}

@keyframes aw-goods-shimmer {
	0%,
	55% {
		transform: translateX(-120%);
	}
	100% {
		transform: translateX(120%);
	}
}

.aw-index-panel--goods .aw-index-panel__title,
.aw-index-panel--goods .aw-index-panel__copy,
.aw-index-panel--goods .aw-index-panel__cta {
	color: #faf6ef;
}

.aw-index-panel__veil {
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
}

.aw-index-panel__content {
	position: relative;
	z-index: 2;
	padding: clamp(1.1rem, 2.4vw, 1.75rem);
	font-family: 'Shippori Mincho', 'Noto Serif JP', 'Yu Mincho', serif;
	transform: translateY(0.75rem);
	opacity: 0;
	transition:
		transform 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.35s,
		opacity 0.75s ease 0.35s;
}

.aw-index.is-visible .aw-index-panel__content {
	transform: translateY(0);
	opacity: 1;
}

.aw-index.is-visible .aw-index-panel--gallery .aw-index-panel__content {
	transition-delay: 0.45s;
}

.aw-index.is-visible .aw-index-panel--utamaro .aw-index-panel__content {
	transition-delay: 0.62s;
}

.aw-index.is-visible .aw-index-panel--goods .aw-index-panel__content {
	transition-delay: 0.79s;
}

.aw-index-panel__eyebrow {
	display: block;
	margin-bottom: 0.45rem;
	font-size: 0.68rem;
	font-weight: 600;
	letter-spacing: 0.22em;
	text-transform: uppercase;
}

.aw-index-panel__badge {
	display: inline-block;
	margin-bottom: 0.55rem;
	padding: 0.2rem 0.55rem;
	border-radius: 2px;
	background: rgba(245, 124, 0, 0.92);
	color: #fff;
	font-size: 0.68rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	animation: aw-badge-pulse 2.8s ease-in-out infinite;
}

@keyframes aw-badge-pulse {
	0%,
	100% {
		box-shadow: 0 0 0 0 rgba(245, 124, 0, 0.45);
	}
	50% {
		box-shadow: 0 0 0 6px rgba(245, 124, 0, 0);
	}
}

.aw-index-panel__title {
	margin: 0 0 0.55rem;
	font-size: clamp(1.05rem, 1.8vw, 1.35rem);
	font-weight: 600;
	line-height: 1.45;
	letter-spacing: 0.04em;
}

.aw-index-panel__copy {
	margin: 0 0 0.85rem;
	font-size: clamp(0.78rem, 1.05vw, 0.88rem);
	line-height: 1.75;
	text-wrap: pretty;
}

.aw-index-panel__cta {
	display: inline-block;
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	opacity: 0.85;
	transition: opacity 0.25s ease, transform 0.25s ease;
}

.aw-index-panel:hover .aw-index-panel__cta,
.aw-index-panel:focus-visible .aw-index-panel__cta {
	opacity: 1;
	transform: translateX(3px);
}

.aw-index-panel:focus-visible {
	outline: 2px solid rgba(139, 46, 36, 0.65);
	outline-offset: 3px;
}

.aw-index-panel:hover .aw-index-panel__veil {
	background-color: rgba(0, 0, 0, 0.06);
}

.aw-index-footnote {
	margin: 2rem 0 0;
	padding-top: 1.5rem;
	border-top: 1px solid rgba(176, 137, 104, 0.38);
	text-align: center;
	font-family: 'Shippori Mincho', 'Noto Serif JP', 'Yu Mincho', serif;
	font-size: 0.88rem;
	line-height: 1.85;
	color: var(--aw-muted);
	opacity: 0;
	transform: translateY(0.5rem);
	transition: opacity 0.8s ease 0.9s, transform 0.8s ease 0.9s;
}

.aw-index.is-visible .aw-index-footnote {
	opacity: 1;
	transform: translateY(0);
}

.aw-index-footnote a {
	color: #8b2e24;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 0.15em;
}

@media only screen and (max-width: 960px) {
	.aw-index-grid {
		grid-template-columns: 1fr;
		min-height: 0;
	}

	.aw-index-panel {
		min-height: min(52vh, 22rem);
	}

	.aw-index-panel__title {
		font-size: clamp(1.15rem, 4.5vw, 1.45rem);
	}
}

@media (prefers-reduced-motion: reduce) {
	.aw-index-panel,
	.aw-index-panel__content,
	.aw-index-footnote {
		opacity: 1;
		transform: none;
		filter: none;
		transition: none;
	}

	.aw-index-panel__img,
	.aw-index-panel--goods::after,
	.aw-index-panel__badge {
		animation: none !important;
	}

	.aw-index-panel__img--b {
		opacity: 0;
	}
}
