/* Reset */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

/* Base */
html,
body {
	height: 100%;
	scroll-behavior: smooth;
	font-family: '游明朝', YuMincho, 'Hiragino Mincho ProN', serif;
	background-color: #f8f7f3;
	color: #333;
	line-height: 1.8;
	margin: 0;
	padding: 0;
}

rt {
	display: none;
}

/* Scroll container */
#scrollContainer {
	height: 100vh;
	overflow-y: scroll;
	scroll-snap-type: y mandatory;
	scroll-behavior: smooth;

}

/* Common section style */
#home .section {
	min-height: 100vh;
}

.section {
	scroll-snap-align: start;
	scroll-snap-stop: always;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
}

/* Header */
header {
	background-color: #2c2c2c;
	color: white;
	padding: 1rem 2rem;
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	position: fixed;
	width: 100%;
	height: 100px;
	top: 0;
	left: 0;
	z-index: 1000;
	transition: top 0.4s ease;
	white-space: nowrap;
}

#home header {
	top: -100px;
}

@media screen and (max-width: 600px) {
	header {
		padding: 1rem;
	}
}

.header-space {
	height: 100px;
}

.logo {
	font-size: 1.5rem;
	font-weight: bold;
}

nav ul {
	list-style: none;
	display: flex;
	gap: 1.2rem;
}

nav a {
	color: white;
	text-decoration: none;
	font-size: 0.95rem;
}

nav a:hover {
	text-decoration: underline;
}

/*----------Home---------- */
.hero {
	position: relative;
	overflow: hidden;
}

.hero-bg {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100vh;
	background-image: url('/assets/img/firstview.jpg');
	background-size: cover;
	background-position: center;
	z-index: 0;
	opacity: 1;
	transition: opacity 0.5s ease;
	pointer-events: none;
}

/* オーバーレイテキスト */
#home .overlay {
	position: relative;
	text-align: center;
	width: 100%;
	height: 100vh;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	transition: background-color 0.3s ease;
	background-color: rgba(60, 60, 60, 0.5);
	color: white;
	padding: 0 2rem;
}

h1 {
	font-size: 2.4rem;
	margin-bottom: 0.5rem;
}

.name {
	font-size: 1.2rem;
	font-style: italic;
}

/* About */
.about {
	position: relative;
	text-align: center;
	background-color: rgba(250, 250, 250, 0.7);
	color: black;
	padding: 50px 2rem 0;
}

.about h2 {
	font-size: 1.8rem;
	margin-bottom: 1rem;
	color: #444;
}

.about p {
	font-size: 1.1rem;
}

/* menu section */
.menu-section {
	position: relative;
	text-align: center;
	background-color: rgba(0, 0, 0, 0.8);
	color: white;
	padding: 50px 2rem 0;
}

.menu-section .menu-list {
	max-width: 400px;
	width: 100%;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	gap: 1.2rem;
}

.menu-section .menu-list li {
	display: block;
	padding: 0;
	background-color: rgba(250, 250, 250, 0.5);
	border-radius: 8px;
}

.menu-section .menu-list li:hover {
	background-color: #555;
}

.menu-section .menu-list li a {
	display: block;
	width: 100%;
	height: 100%;
	text-decoration: none;
	color: black;
	font-size: 1.5rem;
	padding: 1.2rem;
	border-radius: 8px;
	transition: background-color 0.3s ease;
	cursor: default;
}

/*----------bio----------*/
.bio-block h1 {
	margin: 5rem 0;
}

.bio-section {
	position: relative;
	scroll-snap-align: start;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
}

.bio-bg {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100vh;
	background-image: url('/assets/img/sonatine.jpg');
	background-size: cover;
	background-position: center;
	z-index: 0;
	opacity: 0.4;
	transition: opacity 0.5s ease;
	pointer-events: none;
}

.bio-block {
	position: relative;
	width: 100%;
	height: auto;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	transition: background-color 0.3s ease;
	background-color: rgba(160, 160, 160, 0.7);
	color: black;
	padding: 1rem 5%;
}

.bio-text:last-child p:last-child {
	margin: 2rem 0;
}

.img-box {
	display: flex;
	flex-wrap: wrap;
	padding: 2rem 0 0;
	gap: 2rem;
	justify-content: center;
	align-items: center;
}

.img-box .img-set {
	flex: 1 1 45%;
	/* 幅45%で2列 */
	display: flex;
	flex-direction: column;
	margin-bottom: 2rem;
}

.img-box img {
	width: 100%;
	max-height: 75vh;
	object-fit: contain;
	flex-shrink: 0;
}

.img-box figcaption {
	text-align: center;
	margin-top: 0.5rem;
	font-size: 0.85rem;
	font-weight: bold;
	/*	color: #6acaff;*/
	color: rgb(45, 70, 115);

}

span {
	display: inline-block;
}

@media screen and (max-width: 800px) {
	body#bio .img-box .img-set {
		flex: 1 1 100%;
	}
}

/*----------message----------*/
.message-bg {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100vh;
	background-image: url('/assets/img/05.jpg');
	background-size: cover;
	background-position: center;
	z-index: 0;
	opacity: 0.4;
	transition: opacity 0.5s ease;
	pointer-events: none;
}

.message-section {
	padding: 1rem;
	display: flex;
	justify-content: center;
}

.message-block {
	max-width: 1200px;
	width: 100%;
	z-index: 1;
}

.message-block h1 {
	text-align: center;
	font-size: 2.5rem;
	margin: 5rem 0 7rem;
	font-weight: 600;
}

.message-text {
	background: rgba(240, 234, 225, 0.9);
	/*ベージュっぽい白 */
	color: #3a3a3a;
	/* 鉛筆の濃いHBっぽい色 */
	padding: 2rem 7%;
	border-radius: 10px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
	margin-bottom: 3rem;
}

.message-text h2 {
	font-size: 1.5rem;
}

.message-text h3 {
	font-size: 1rem;
	font-style: italic;
	text-align: right;
	color: #555;
	border-bottom: 2px solid #ddd;
	padding-bottom: 0.5rem;
	margin-bottom: 1rem;
}

.message-text p {
	text-align: justify;
	font-size: 1.1rem;
	margin-top: 0.3rem;
	line-height: 1.85;
}

.message-text.message1 p {
	font-family: "Noto Serif JP";
}

.message-text.message2 p {
	font-family: "Sawarabi Mincho";
}

.message-text.message3 p {
	font-family: "Zen Old Mincho";
}

.message-text.message4 p {
	font-family: "Shippori Mincho B1";
}

/*----------works----------*/
.works-bg {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100vh;
	background-image: url('/assets/img/06.jpg');
	background-size: cover;
	background-position: center;
	z-index: -1;
	opacity: 0.4;
	pointer-events: none;
}

.works-section {
	background: rgba(0, 0, 0, 0.8);
	position: relative;
	z-index: 1;
	min-height: 100vh;
	padding: 2rem 0;
}

#works-list {
	display: grid;
	gap: 2rem;
	padding: 2rem;
	max-width: 1200px;
	margin: 0 auto;
}

.piece-card {
	background: rgba(255, 255, 255, 0.85);
	border-radius: 12px;
	padding: 1.5rem;
	cursor: pointer;
	text-align: center;
	font-size: 1.2rem;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.piece-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.piece-card h3 {
	font-size: 1.7rem;
}

.piece-card p {
	color: #555;
}

@media screen and (min-width: 800px) {
	#works-list {
		display: flex;
		flex-wrap: wrap;
		justify-content: center;
	}

	#works-list .piece-card {
		width: 45%;
	}
}

/* ===== 詳細表示 ===== */
#works-detail.overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(220, 220, 220, 0.5);
	z-index: 2000;
	display: flex;
	justify-content: center;
	align-items: flex-start;
	overflow-y: auto;
}

#works-detail.hidden {
	display: none;
}

#works .overlay-content {
	background: rgba(255, 255, 255, 0.9);
	max-width: 1200px;
	width: 100%;
	border-radius: 12px;
	position: relative;
	padding: 1rem
}

.overlay-header {
	position: sticky;
	top: 0;
	z-index: 50;
	padding: 0.5rem 0;
	text-align: left;
}

.back-btn {
	background: black;
	color: white;
	border: none;
	padding: 0.5rem 1rem;
	font-size: 1rem;
	cursor: pointer;
	border-radius: 6px;
	z-index: 100;
	position: relative;
}

/* 本文 */
.overlay-body {
	margin-top: 1rem;
	color: black;
}

.overlay-body h2 {
	font-size: 1.6rem;
}

.overlay-body .instrumentation {
	margin: 0 0 1rem 1rem;
}

.first-performance {
	margin-bottom: 1rem;
}

.pdf-viewer {
	margin-top: 1.5rem;
	text-align: center;
}

.pdf-viewer iframe {
	border: none;
	max-width: 100%;
	height: 80vh;
}

.youtube-viewer {
	position: relative;
	width: 100%;
	padding-bottom: 56.25%;
	/* 16:9 = 9/16 = 0.5625 → 56.25% */
	height: 0;
	overflow: hidden;
}

.youtube-viewer iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border: 0;
}
