body {
		font-family: Arial, sans-serif;
		max-width: 800px;
		margin: 0 auto;
		padding: 20px;
		background-color: #f5f5f5;
}

/* キーボードが表示されている時のbodyのパディング調整 */
body.keyboard-visible {
		padding-bottom: 180px; /* キーボードの高さ + 余白 */
}
.container {
		background: white;
		padding: 20px;
		border-radius: 8px;
		box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.input-group {
		margin-bottom: 15px;
}
label {
		display: block;
		margin-bottom: 5px;
		font-weight: bold;
}
input, select {
		width: 100%;
		padding: 8px;
		border: 1px solid #ddd;
		border-radius: 4px;
		box-sizing: border-box;
}
button {
		background-color: #4CAF50;
		color: white;
		padding: 10px 20px;
		border: none;
		border-radius: 4px;
		cursor: pointer;
		margin-right: 10px;
		margin-bottom: 10px;
}
button:hover {
		background-color: #45a049;
}
button:disabled {
		background-color: #cccccc;
		cursor: not-allowed;
}
.stop-btn {
		background-color: #f44336;
}
.stop-btn:hover {
		background-color: #da190b;
}
.output {
		margin-top: 20px;
		padding: 15px;
		background-color: #f9f9f9;
		border-radius: 4px;
		white-space: pre-wrap;
		font-family: monospace;
		font-size: 12px;
		max-height: 400px;
		overflow-y: auto;
}
.motif-option {
		margin: 10px 0;
		padding: 15px;
		border: 2px solid #ddd;
		border-radius: 8px;
		cursor: pointer;
		transition: all 0.3s ease;
		display: flex;
		flex-direction: column;
		justify-content: space-between;
}
.motif-option:hover {
		border-color: #4CAF50;
		background-color: #f0f8f0;
}
.motif-option.selected {
		border-color: #4CAF50;
		background-color: #e8f5e8;
}


.motif-preview {
		font-family: monospace;
		font-size: 14px;
		margin: 5px 0;
}
.motif-description {
		font-size: 12px;
		color: #666;
}
.progress {
		width: 100%;
		height: 20px;
		background-color: #f0f0f0;
		border-radius: 10px;
		overflow: hidden;
		margin: 10px 0;
}
.progress-bar {
		height: 100%;
		background-color: #4CAF50;
		width: 0%;
		transition: width 0.1s ease;
}
#progressContainer {
		width: 100%;
		height: 20px;
		background-color: #f0f0f0;
		border-radius: 15px;
		overflow: hidden;
		/*margin: 10px 0;*/
		position: relative;
}

.progress-section {
		position: absolute;
		height: 100%;
		opacity: 0.3;
		border-right: 2px solid white;
}

.section-label {
		position: absolute;
		/*top: 50%;*/
		/*left: 50%;*/
		/*transform: translate(-50%, -50%);*/
		right: 0;
		font-size: 10px;
		font-weight: bold;
		color: #333;
		pointer-events: none;
}

#actualProgressBar {
		position: absolute;
		height: 100%;
		background-color: rgba(255, 255, 255, 0.8);
		width: 0%;
		transition: width 0.1s ease;
		z-index: 10;
}

/* Common styles extracted from inline styles */
.text-center {
		text-align: center;
}

.margin-10-0 {
		margin: 10px 0;
}

.margin-20-0 {
		margin: 20px 0;
}

.margin-30-auto {
		margin: 30px auto;
}

.width-50px {
		width: 50px;
}

.hidden {
		display: none;
}

.small-link {
		margin-left: 10px;
		font-size: 0.8em;
}

/* キーボード表示のスタイル */
.keyboard-container {
		display: none; /* デフォルトでは非表示 */
		position: fixed;
		bottom: 0;
		left: 0;
		right: 0;
		padding: 10px;
		background-color: #f9f9f9;
		border-radius: 8px 8px 0 0;
		box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
		z-index: 1000;
		max-width: 800px;
		margin: 0 auto;
		transition: transform 0.3s ease;
}

/* レスポンシブ対応 */
@media (max-width: 600px) {
		.keyboard-container {
				padding: 5px;
		}

		#keyboard {
				height: 100px;
		}

		.white-key {
				font-size: 8px;
		}
}

.keyboard-container.visible {
		display: block;
}

.keyboard-header {
		display: flex;
		justify-content: space-between;
		align-items: center;
		margin-bottom: 10px;
}

.keyboard-header h3 {
		margin: 0;
}

.close-btn {
		background-color: #f44336;
		color: white;
		width: 30px;
		height: 30px;
		border-radius: 50%;
		display: flex;
		align-items: center;
		justify-content: center;
		font-size: 18px;
		padding: 0;
		margin: 0;
		cursor: pointer;
}

.close-btn:hover {
		background-color: #d32f2f;
}

#keyboard {
		display: flex;
		position: relative;
		height: 120px;
		margin: 20px auto;
		background-color: #333;
		border-radius: 5px;
		padding: 5px;
}

.white-key {
		flex: 1;
		background-color: white;
		margin: 0 2px;
		border-radius: 0 0 3px 3px;
		position: relative;
		z-index: 1;
		display: flex;
		align-items: flex-end;
		justify-content: center;
		padding-bottom: 5px;
		font-size: 10px;
		color: #333;
}

.black-key {
		position: absolute;
		background-color: black;
		width: 4%;
		height: 60%;
		z-index: 2;
		border-radius: 0 0 3px 3px;
}

/* 黒鍵の位置調整 */
.black-key[data-note="C#"] { left: 6%; }
.black-key[data-note="D#"] { left: 14.5%; }
.black-key[data-note="F#"] { left: 31%; }
.black-key[data-note="G#"] { left: 39.5%; }
.black-key[data-note="A#"] { left: 48%; }
.black-key[data-note="C#2"] { left: 56%; }
.black-key[data-note="D#2"] { left: 64.5%; }
.black-key[data-note="F#2"] { left: 73%; }
.black-key[data-note="G#2"] { left: 81.5%; }
.black-key[data-note="A#2"] { left: 90%; }

/* アクティブな鍵盤のスタイル */
.white-key.active {
		background-color: #4CAF50;
		color: white;
}

.black-key.active {
	background-color: #45a049;
}

/* 再生ボタンのスタイル */
.play-btn {
	background-color: #4CAF50;
}
.play-btn:hover {
	background-color: #45a049;
}

/* 再生成ボタンのスタイル */
.regenerate-btn {
	background-color: #2196F3;
		border: solid 2px white;
}
.regenerate-btn:hover {
	background-color: #0b7dda;
}

/* コード表示のスタイル */
#chordDisplay {
	margin: 20px 0;
	padding: 10px;
	background-color: #f9f9f9;
	border-radius: 8px;
	box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.section-header{
		display: flex;
		justify-content: space-between;
		align-items: center;
		padding: 5px;
		border-radius: 4px;
		margin-bottom: 10px;
}

.section-header.intro{
		background-color: #4CAF50;
}
.section-header.verse{
		background-color: #2196F3;
}
.section-header.chorus{
		background-color: #FF9800;
}
.section-header.bridge{
		background-color: #9C27B0;
}
.section-header.outro{
		background-color: #607D8B;
}

.section-title{
		margin: 0;
		color: white;
}

.section-play-btn{
		background-color: #4CAF50;
		border: 2px solid white;
		margin-right: 10px;
		font-size: 0.8em;
		padding: 3px 8px;
		cursor: pointer;
}

.section-container {
	margin-bottom: 20px;
}

.section-container h4 {
	margin: 0 0 10px 0;
	padding: 8px;
	border-radius: 4px;
	color: white;
	font-size: 16px;
}

.chords-container {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.chord-item {
	border: 1px solid #ddd;
	border-radius: 4px;
	padding: 10px;
	width: 150px;
	background-color: white;
	transition: all 0.3s ease;
}

.chord-item:hover {
	border-color: #4CAF50;
	box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.chord-item select {
	width: 100%;
	margin-top: 5px;
	padding: 5px;
	border: 1px solid #ddd;
	border-radius: 4px;
	background-color: white;
}

#keyboardBtn{
		position: fixed;
		bottom: 0;
}

/* フローティング再生・停止ボタン */
.floating-controls {
		position: fixed;
		bottom: 20px;
		right: 20px;
		display: flex;
		gap: 10px;
		z-index: 1000;
		box-shadow: 0 2px 10px rgba(0,0,0,0.2);
		padding: 10px;
		background-color: rgba(255, 255, 255, 0.9);
		border-radius: 8px;
}

.floating-controls button {
		padding: 12px 24px;
		font-size: 16px;
		font-weight: bold;
		margin: 0;
		box-shadow: 0 2px 5px rgba(0,0,0,0.1);
		transition: all 0.2s ease;
}

.floating-controls button:hover {
		transform: translateY(-2px);
		box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.floating-controls button:active {
		transform: translateY(1px);
		box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.motif-option-flex{
		display: flex;
		gap: 10px;
		margin-bottom: 10px;
}
.motif-option-btn-group{
		display: flex;
		margin-top: 10px;
		justify-content: center;

}

.motif-option-flex div:first-child{
		min-width: 30%;
}
