/*
 * 2026-12-01 Claude Code: トップの WORKS を GCE official store の PhotoBOOK と同じ並べ方に（少し斜めの段が横に流れる壁）
 * - 寸法・傾き・すき間・段の数はストア（assets/store.css の .bkw / .bk）と同じ。色はこのサイトの紫
 * - works-wall.js が section#release に is-wall を付けたときだけ、今までのスライダーと操作ボタンを隠す（JS が動かなければ今までどおり）
 * - 2026-12-01 ユーザー指示で直し：壁はスマホ（600px 以下）だけ、PC は今までのスライダー。ジャケットは本の形（1:1.414）で上下を切らない。
 *   スマホではカテゴリボタンの下を詰め、壁が少しかぶるくらいにする（ボタンは壁より手前で押せる）
 */
#release.is-wall .io-release-slider,
#release.is-wall .io-release-controls,
#release.is-wall .io-release-empty { display: none !important; }

#release .iow {
	--iow-pad: calc(3.4vw + 8px);
	position: relative;
	width: 100vw;
	margin: 6px 0 0 calc(50% - 50vw);
	padding: var(--iow-pad) 0;
	overflow: hidden;
	touch-action: pan-y;
	cursor: grab;
	-webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,0), #000 7%, #000 93%, rgba(0,0,0,0));
	mask-image: linear-gradient(90deg, rgba(0,0,0,0), #000 7%, #000 93%, rgba(0,0,0,0));
}
#release .iow:active { cursor: grabbing; }
#release .iow[hidden] { display: none; }
#release .iow__in {
	display: flex;
	flex-direction: column;
	gap: 14px;
	width: 124%;
	margin-left: -12%;
	transform: rotate(-3deg);
}
#release .iow__r {
	display: flex;
	column-gap: 14px;
	width: max-content;
	will-change: transform;
}

/* 作品のカード（ストアの .bk と同じ形） */
#release .iow-card {
	position: relative;
	display: flex;
	flex-direction: column;
	flex: none;
	width: clamp(150px, 12vw, 220px);
	overflow: hidden;
	border-radius: 6px;
	background: #fff;
	box-shadow: 0 0 0 1px rgba(163, 120, 224, .55), 0 14px 24px -14px rgba(84, 44, 140, .65);
	color: #4a2f78;
	text-decoration: none;
	-webkit-user-drag: none;
	user-select: none;
	transition: transform .25s ease, box-shadow .25s ease;
}
#release .iow-card:hover,
#release .iow-card:focus-visible {
	transform: translateY(-4px);
	box-shadow: 0 0 0 2px rgba(150, 100, 220, .9), 0 18px 28px -14px rgba(84, 44, 140, .75);
	outline: none;
}
#release .iow-card__ph {
	position: relative;
	display: block;
	aspect-ratio: 1 / 1.414;
	overflow: hidden;
	background: #efe6fb;
}
#release .iow-card__ph > img:first-child {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	-webkit-user-drag: none;
}
/* 枠より細いジャケットは縮めて全部見せる（左右に少し地の色が出る） */
#release .iow-card__ph.is-narrow > img:first-child { object-fit: contain; }
#release .iow-card__rib {
	position: absolute;
	top: 0;
	right: 0;
	width: 30%;
	height: auto;
	pointer-events: none;
}
#release .iow-card__b {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 8px;
	height: 92px;
	padding: 10px 12px 11px;
}
#release .iow-card__t {
	display: -webkit-box;
	overflow: hidden;
	font-family: "Noto Serif JP", "Yu Mincho", YuMincho, "Hiragino Mincho ProN", serif;
	font-weight: 700;
	font-size: 12.5px;
	line-height: 1.45;
	letter-spacing: .03em;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}
#release .iow-card__f {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding-top: 7px;
	border-top: 1px dashed rgba(163, 120, 224, .55);
	font-family: "Noto Serif JP", "Yu Mincho", YuMincho, "Hiragino Mincho ProN", serif;
	font-size: 11px;
	line-height: 1;
	color: #6b4aa3;
	white-space: nowrap;
}
#release .iow-card__d { font-variant-numeric: lining-nums; }
#release .iow-card:hover .iow-card__t { color: #7b46c8; }

#release .iow__empty { margin: 28px 0 8px; text-align: center; color: #6b4aa3; }

/* スマホ：3段・表紙だけ（ストアと同じ） */
@media (max-width: 600px) {
	#release .io-release-filters { position: relative; z-index: 4; }
	#release .iow {
		--iow-pad: 26px;
		margin-top: -38px;
		-webkit-mask-image: none;
		mask-image: none;
	}
	#release .iow__in { gap: 10px; transform: rotate(-4deg); }
	#release .iow__r { column-gap: 10px; }
	#release .iow-card { width: 26vw; border-radius: 5px; }
	#release .iow-card__b { display: none; }
}
@media (prefers-reduced-motion: reduce) {
	#release .iow-card { transition: none; }
}
