/* ===== 基本設定 ===== */
:root {
	--main-color: rgb(255, 255, 255);
	--bg-color: rgb(18, 18, 18);
	--bg-color-main: rgba(18, 18, 18, 0.2);
	--accent-color: rgb(29, 185, 84);
	/* 例：Spotifyグリーン */
	--font-family: 'Noto Sans JP', sans-serif;
	scroll-behavior: smooth;
	scroll-padding-top: 50px;
	box-sizing: border-box;
	text-shadow: 1px 2px 0 rgba(0, 0, 0, 0.5);

}

body {
	margin: 0;
	font-family: var(--font-family);
	/* ▼ 変更点：背景色を透明に */
	/* background-color: transparent;  */
	background-color: var(--bg-color);
	color: var(--main-color);
	line-height: 1.6;
}

main,
footer {
	backdrop-filter: blur(2.0px);
}

.main-title {
	line-height: 1.8em;
	margin-top: 1.0em;
}

a {
	color: var(--main-color);
	text-decoration: none;
	transition: opacity 0.5s ease, color 0.3s ease;
	font-weight: bold;

	&:hover {
		color: var(--accent-color);
	}
}

img {
	max-width: 100%;
	height: auto;
}

.content-section {
	padding: 80px 5%;
	max-width: 1200px;
	margin: 0 auto;
	opacity: 0;
	/* JSで表示を制御 */
	transform: translateY(20px);
	/* JSで表示を制御 */
	transition: opacity 0.8s ease, transform 0.8s ease;
}

.content-section.visible {
	opacity: 1;
	transform: translateY(0);
}

.section-title {
	font-size: 2.5rem;
	text-align: center;
	margin-bottom: 60px;
	letter-spacing: 0.1em;
}

/* 
#music,#special{
	background:rgba(255, 255, 255, .1);
} */

/* ===== ヘッダー ===== */
header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 20px 5%;
	position: fixed;
	width: 90%;
	top: 0;
	left: 0;
	z-index: 1000;
	/* background-color: rgba(18, 18, 18, 0.5); */
	background-color: rgba(18, 18, 18, 0.7);
	backdrop-filter: blur(10px);
}

header .logo a {
	font-weight: 700;
	font-size: 1.5rem;
	letter-spacing: 1px;
}

header nav ul {
	list-style: none;
	display: flex;
	gap: 25px;
	margin: 0;
	padding: 0;
}

/* ===== ファーストビュー ===== */
.hero {
	min-height: 100lvh;
	display: flex;
	justify-content: center;
	align-items: center;
	text-align: center;
	position: relative;
	overflow: hidden;
}

.hero-bg {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	/* background-image: url('https://via.placeholder.com/1920x1080.png?text=Album+Artwork'); */
	background-image: url('img/01_ohoyasamanouta.jpg');
	/* ここにCDジャケット画像を指定 */
	background-size: cover;
	background-position: center;
	filter: blur(8px) brightness(0.5);
	transform: scale(1.1);
}

.hero-content {
	position: relative;
	z-index: 2;
}

.main-title {
	font-size: 4rem;
	margin: 0;
	letter-spacing: 0.1em;
}

.catch-copy {
	font-size: 1.2rem;
	margin: 1em 0 3em 0;
	transition: letter-spacing 0.4s ease, color 0.4s ease;
}


.cta-button {
	background-color: var(--accent-color);
	color: #fff;
	border: none;
	margin-top: 1em;
	padding: 15px 30px;
	font-size: 1rem;
	font-weight: 700;
	cursor: pointer;
	border-radius: 50px;
	transition: .5s;
}

/* マウスオーバーでボタンが浮き上がるインタラクション */
.cta-button:hover {
	transform: translateY(-5px);
	box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* ===== 楽曲紹介 ===== */
.music-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 40px;
}

.music-item {
	text-align: justify;
	text-justify: inter-word;
	position: relative;

	/* overflow-y: scroll;
	text-overflow: ellipsis;
	max-height:calc(300px + 12.5rem); */

	a {
		color: var(--accent-color);
		opacity: .8;
		transition: opacity 0.5s ease, color 0.3s ease;
	}

	a:empty:after {
		content: attr(href);
		margin-left: 1.0em;
	}

	counter-increment: track-counter 1;

	h3::before {
		content: 'Track ' counter(track-counter, decimal-leading-zero)'. ';
	}

	summary {
		font-weight: bold;
		text-decoration: underline;
		text-underline-offset: 0.3rem;

		&:hover {
			cursor: pointer;
		}
	}

	details p {
		padding-left: 1em;
	}
}

.music-video-preview {
	margin-bottom: 20px;
	overflow: hidden;
	border-radius: 8px;
	width: 100%;
	aspect-ratio: 16/9;

	&:hover {
		cursor: pointer;
	}
}

.music-video-preview {

	iframe,
	img {
		width: 100%;
		display: block;
		transition: transform 0.5s ease;
	}

}

div.music-video-preview[data-youtube='']::after {
	content: '';
	display: block;
	width: 100%;
	height: 100%;
	overflow: visible;
	background-image: url('img/comingsoon.png');
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
	z-index: 9999;
	opacity: 1.0;
}

/* マウスオーバーで画像がズームするインタラクション */
.music-video-preview:hover {

	iframe,
	img {
		transform: scale(1.1);
		cursor: pointer;
	}
}

/* ===== アーティスト紹介 ===== */
.artist-profile {
	display: flex;
	align-items: center;
	gap: 60px;

	a {
		color: var(--accent-color);
		opacity: .8;
		transition: opacity 0.5s ease, color 0.3s ease;
	}
}

.artist-photo {
	flex: 1;
	max-width: 400px;
}

.artist-photo img {
	border-radius: 8px;
	filter: grayscale(100%);
	/* 最初は白黒 */
	transition: filter 0.5s ease;
}

/* マウスオーバーでカラーになるインタラクション */
.artist-photo:hover img {
	filter: grayscale(0%);
}

.artist-bio {
	flex: 1.5;
}

/* ===== 購入ストア ===== */
.store-section {
	text-align: center;
}

.store-buttons {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 20px;
	margin-top: 40px;
}

.store-button {
	display: inline-block;
	padding: 12px 25px;
	border: 1px solid var(--main-color);
	border-radius: 50px;
	transition: background-color 0.3s ease, color 0.3s ease;
	flex: 1 1 auto;
}

.store-button:hover {
	background-color: var(--main-color);
	color: var(--bg-color);
}

/* ===== フッター ===== (このセクションに追記) */
footer {
	text-align: center;
	padding: 40px 5%;
	border-top: 1px solid #333;
	background: rgba(255, 255, 255, 0.3);

	/* background: transparent; */
}

.social-links {
	margin-bottom: 20px;
}

.social-links a {
	margin: 0 15px;
	display: inline-block;
	transition: transform 0.3s ease;
}

.social-links a:hover {
	transform: scale(1.1);
}

/* ▼▼▼ このスタイルを追加 ▼▼▼ */
.social-icon {
	height: 30px;
	/* アイコンの高さを指定 */
	vertical-align: middle;
	/* 上下の位置を中央に揃える */
	/* filter:drop-shadow(1px 1px 0px #fff); */
}

/* ▲▲▲ ここまで ▲▲▲ */

/* ===== モーダルウィンドウ ===== */
.modal {
	display: flex;
	/* 中央寄せのためにflexを使用 */
	justify-content: center;
	align-items: center;
	position: fixed;
	z-index: 2000;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.8);

	/* フェードエフェクトのための初期設定 */
	visibility: hidden;
	opacity: 0;
	transition: opacity 1.0s ease, visibility 0.4s ease;
	transition-delay: opacity 2.5s;
}

/* モーダル表示時に適用するクラス */
.modal.is-open {
	visibility: visible;
	opacity: 1;
}

.modal-content {
	position: relative;
	width: 90%;
	max-width: 900px;
	/* 開くときに少し拡大するアニメーション */
	/* transform: scale(0.95); */
	/* transition: transform 0.8s ease; */
}

/* 
.modal.is-open .modal-content {
	transform: scale(1);
}
*/

.modal-content iframe {
	width: 100%;
	/* 16:9のアスペクト比を保つ */
	aspect-ratio: 16 / 9;
	height: auto;
	display: block;
	border: none;
}

.close-btn {
	color: #fff;
	position: absolute;
	top: -40px;
	/* 位置を少し調整 */
	right: 0;
	font-size: 40px;
	font-weight: bold;
	cursor: pointer;
	transition: transform 0.2s ease;
	background: transparent;
	border: none;
}

.close-btn:hover {
	transform: scale(1.1);
}

/* 楽曲アイテムにカーソルを設定 */
.music-video-preview {
	cursor: pointer;
}

/* ===== ローディング画面 ===== */
/* Spinner */
#loading-screen {
	position: fixed;
	inset: 0;
	display: grid;
	place-items: center;
	background: var(--bg-color);
	z-index: 3000;
}

.spinner {
	width: 48px;
	height: 48px;
	border: 4px solid rgba(255, 255, 255, .2);
	border-top-color: var(--accent-color);
	border-radius: 50%;
	animation: spin 1s linear infinite;
}


@keyframes spin {
	to {
		transform: rotate(360deg);
	}
}

/* ===== フッターのソーシャルアイコン調整 ===== */
.social-icon,
.social-share-button img {
	padding-top: 0.8em;
	padding-bottom: 0.8em;
	height: 30px;
	vertical-align: middle;
}

/* ゼロパディングの順序付きリストのスタイル */
.health-benefits-list {
	list-style-type: decimal-leading-zero;
	/* 数字の先頭に0を追加 */
	padding-left: 2.5em;
	/* 番号が表示されるスペースを確保 */
	line-height: 1.2;
	/* 行間を調整して読みやすくする */
}

/* 各リスト項目のスタイル */
.health-benefits-list li {
	padding-left: 0.5em;
	/* 番号とテキストの間のスペース */
	margin-bottom: 0.6em;
	/* 各項目の下の余白 */
}

/* 補足説明の文字サイズを少し小さくする */
.health-benefits-list small {
	display: block;
	/* ブロック要素にして改行させる */
	margin-top: 0.4em;
	opacity: 0.8;
}

/* ===== WebGL背景 ===== */
#webgl-canvas {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: -1;
	/* 全てのコンテンツの背面に配置 */
}


/* PCで responsive 改行を無効化 */
br.responsive {
	display: none;
}

/* ハンバーガー (モバイル) */
.hamburger {
	display: none;
	background: none;
	border: none;
	color: var(--color-text);
	font-size: 1.75rem;
}

/* ===== レスポンシブ対応 ===== */
@media (max-width: 768px) {
	.hero {
		height: 120lvh;
	}

	.hero-content {
		/* margin-top: calc(2 * (1.5rem + 15vh));
		padding-bottom: calc(2 * (1.5rem + 15vh));
		overflow: visible; */

		.main-title {
			font-size: 2.5rem;
			padding-top: calc(1.5rem + 15vh);
		}
	}

	header {
		display: flex;
		justify-content: center;
		padding: 20px 5% calc(1em + 35px);

		nav ul {
			font-size: smaller;
			flex-direction: row nowrap;
			position: absolute;
			bottom: 0;
			right: 0;
			padding: 8px 25px;
			/* background-color: #333; */
			border-radius: 50px 0 0 50px;
			background-color: rgba(18, 18, 18, 0.7);
			backdrop-filter: blur(10px);
		}
	}

	.artist-profile {
		flex-direction: column;
	}

	.hamburger {
		display: block;
	}

	.nav-list.open {
		display: flex;
	}

	/* [ADD] モバイルでは responsive 改行を有効化 */
	br.responsive {
		display: inline;
	}
	
	/* #loading-screen {display:none;} */
}


/* 高度な GPU エフェクトをオフ (低消費端末) */
@media (prefers-reduced-motion: reduce) {
	.cta-button {
		transition: none;
	}

	.cta-button:hover {
		transform: none;
	}
}


/* スクロールバー全体のスタイル */
::-webkit-scrollbar {
	background: transparent;
	width: 10px;
}

/* スクロールバーのトラック（背景）のスタイル */
::-webkit-scrollbar-track {
	background: transparent;
}

/* スクロールバーのハンドル（つまみ）のスタイル */
::-webkit-scrollbar-thumb {
	/* background: #888; */
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.3);
	/* background:#333; */
}

/* ハンドルのマウスオーバー時のスタイル */
/* ::-webkit-scrollbar-thumb:hover {
	background: #555;
	display: none;
} */