@charset "UTF-8";

/* 共通音源UI：本文の「私たちの歌声」とヘッダーポップアップで共用 */
#music {
	clear: both;
	width: 100%;
	max-width: 980px;
	margin: 0 auto;
	padding: 0 12px;
	box-sizing: border-box;
}

#music .lead {
	width: min(100%, 760px);
	margin: 0 auto 1rem;
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.7;
}

#music .split,
#top-audio-popup .top-audio-popup-list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
	align-items: start;
}

.audio-card {
	min-width: 0;
	padding: 14px;
	background: #fff;
	border: 1px solid #d8e1e8;
	border-radius: 5px;
	box-shadow: 0 2px 7px rgba(0, 0, 0, .05);
	box-sizing: border-box;
	overflow-wrap: anywhere;
}

.audio-card h3 {
	margin: 0 0 .45rem;
	font-size: 1rem;
	font-weight: 400;
	line-height: 1.5;
}

.audio-card p {
	margin: 0 0 .65rem;
	font-size: .88rem;
	line-height: 1.6;
	color: #4c5960;
}

.audio-card audio {
	display: block;
	width: 100%;
	max-width: 100%;
}

#music .note,
#music .small {
	line-height: 1.7;
	overflow-wrap: anywhere;
}

/* ヘッダー画像内の音源ボタン */
#slender {
	position: relative;
}

#top-audio-widget {
	position: absolute;
	z-index: 30;
	right: 10px;
	bottom: 10px;
	left: auto;
	top: auto;
	text-align: left;
}

#top-audio-widget[hidden],
#top-audio-popup[hidden] {
	display: none !important;
}

#top-audio-trigger {
	display: flex;
	align-items: center;
	justify-content: center;
	width: clamp(29px, 3.4vw, 38px);
	height: clamp(29px, 3.4vw, 38px);
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	box-shadow: 0 1px 5px rgba(0, 0, 0, .22);
	cursor: pointer;
	line-height: 1;
	position: relative;
}

#top-audio-trigger:hover,
#top-audio-trigger:focus-visible {
	filter: brightness(.96);
	outline: 2px solid #d9b56d;
	outline-offset: 2px;
}

#top-audio-trigger .audio-symbol {
	display: block;
	width: 100%;
	height: 100%;
	overflow: visible;
}

.audio-symbol-frame {
	fill: #fff;
	stroke: #263f49;
	stroke-width: 1.7;
}

.audio-symbol-gclef {
	fill: #263f49;
	font-family: "Noto Music", "Segoe UI Symbol", "Bravura", "DejaVu Sans", serif;
	font-size: 31px;
}

#top-audio-trigger:hover::after,
#top-audio-trigger:focus-visible::after {
	content: "演奏音源をお聴きいただけます";
	position: absolute;
	right: 0;
	bottom: calc(100% + 8px);
	width: max-content;
	max-width: 220px;
	padding: 6px 8px;
	border: 1px solid #d3dce0;
	border-radius: 5px;
	background: #fff;
	color: #263238;
	font-size: .78rem;
	font-weight: normal;
	box-shadow: 0 1px 4px rgba(0, 0, 0, .2);
}

/* ポップアップ：カードUIは本文と共通 */
#top-audio-popup {
	position: fixed !important;
	top: 50% !important;
	left: 50% !important;
	right: auto !important;
	bottom: auto !important;
	transform: translate(-50%, -50%);
	z-index: 100000 !important;
	width: min(760px, calc(100vw - 32px));
	max-height: calc(100vh - 32px);
	overflow-x: hidden;
	overflow-y: auto;
	padding: 14px;
	border: 1px solid #d8e1e8;
	border-radius: 7px;
	background: rgba(255, 255, 255, .98);
	color: #263238;
	box-shadow: 0 5px 22px rgba(0, 0, 0, .3);
	box-sizing: border-box;
}

.top-audio-popup-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 8px;
	font-size: 1rem;
}

#top-audio-close {
	flex: 0 0 auto;
	border: 0;
	background: transparent;
	color: #263238;
	font-size: 1.6rem;
	line-height: 1;
	cursor: pointer;
	padding: 0 3px;
}

#top-audio-popup .audio-card {
	padding: 14px;
}

#top-audio-popup .top-audio-more {
	margin: 8px 0 0;
	text-align: right;
	font-size: .82rem;
}

#top-audio-popup .top-audio-more a {
	background: transparent;
	padding: 0;
}

@media screen and (max-width: 600px) {
	#top-audio-widget {
		right: 6px;
		bottom: 6px;
	}

	#top-audio-trigger {
		width: clamp(27px, 7vw, 32px);
		height: clamp(27px, 7vw, 32px);
	}

	#top-audio-popup {
		width: calc(100vw - 20px) !important;
		max-height: calc(100vh - 24px) !important;
		padding: 10px !important;
	}

	#top-audio-popup .top-audio-popup-list,
	#music .split {
		grid-template-columns: minmax(0, 1fr);
		gap: 10px;
	}

	#top-audio-popup .audio-card,
	#music .audio-card {
		padding: 12px;
	}

	#music {
		padding: 0 2px;
	}
}
