@charset "UTF-8";

/* ==========================================================================
	discography.css
	========================================================================== */

.discography-page {
	margin: 0 3%;
	padding: 59px 80px 80px;
}

.discography-page > .page-heading {
	margin-bottom: 30px;
}

.project {
	padding-top: 50px;
	scroll-margin-top: var(--header-height);
}

.project h2 {
	margin: 0 0 16px 5px;
	font-weight: bold;
}

.project-items {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 48px 16px;
}

.release {
	display: flex;
	gap: 15px;
	min-width: 0;
}

.release > :first-child {
	flex: 0 1 55%;
	min-width: 0;
}

.release-body {
	flex: 0 1 40%;
	min-width: 0;
}

.release-image {
	width: auto;
	max-height: 270px;
	margin-inline: auto;
	object-fit: contain;
}

.release h3 {
	font-weight: bold;
}

.release .buy-links {
	width: 80%;
	margin-inline: auto;
}

.release .buy-links a {
	display: block;
	margin-top: 16px;
	padding: 4px;
	background: var(--color-charcoal);
	color: var(--color-white);
	text-align: center;
	white-space: nowrap;
	transition: background-color 0.3s;
}

@media (hover: hover) {
	.release .buy-links a:hover {
		background: var(--color-brown);
		color: var(--color-white);
	}
}

.release .buy-links a:active {
	background: var(--color-brown);
	color: var(--color-white);
}

.release-songs {
	padding-top: 20px;
	font-size: 0.88em;
}

.release-songs h4 {
	font-weight: 400;
}

.release-songs p {
	display: none;
}

.release-songs ol {
	margin: 0;
	padding-left: 0;
	list-style: none;
	counter-reset: song;
}

.release-songs li {
	display: grid;
	grid-template-columns: auto 1fr;
	counter-increment: song;
	break-inside: avoid;
}

.release-songs li::before {
	content: counter(song) '.';
	padding-right: 0.3em;
}

@media (width < 1100px) {
	.discography-page {
		margin: 0;
		padding-inline: 32px;
	}
}

@media (width < 920px) {
	.discography-page > .page-heading {
		margin-inline: auto;
	}

	.project-items {
		display: block;
	}

	.release + .release {
		margin-top: 48px;
	}

	.release-image {
		max-height: 400px;
	}
}

@media (width < 540px) {
	.discography-page {
		padding: 67px 24px 128px;
		font-weight: 300;
	}

	.release {
		display: block;
	}

	.release-image {
		width: 100%;
		max-height: 600px;
	}

	.release-body {
		margin-bottom: 48px;
	}

	.release-info {
		margin: 16px 0;
	}

	.release h3 {
		font-weight: 500;
	}

	.release .buy-links a {
		background: var(--color-light-pink);
	}

	.release-songs {
		padding-top: 0;
	}

	/* 全幅表示時のみ、8 曲以上は 2 列 */
	.release-songs ol:has(> li:nth-child(8)) {
		column-count: 2;
		column-gap: 20px;
	}
}
