body {
    font-family: sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 20px;
    background-color: #f0f0f0;
}

h1 {
    color: #333;
}

#chord-buttons {
    display: flex;
    flex-direction: column; /* 縦に並べる */
    gap: 10px; /* 行間のスペース */
}

.chord-row {
    display: flex;
    gap: 10px; /* ボタン間のスペース */
}

.chord-button {
    padding: 15px 25px;
    font-size: 1.2em;
    cursor: pointer;
    border: none;
    border-radius: 8px;
    background-color: #007bff;
    color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: background-color 0.2s, transform 0.1s;
    flex: 1; /* 横幅を均等にする */
    min-width: 120px; /* ボタンの最小幅 */
}

.chord-button:active {
    background-color: #0056b3;
    transform: translateY(2px);
}

/* スマートフォン向けに調整 */
@media (max-width: 600px) {
    .chord-button {
        padding: 12px 20px;
        font-size: 1em;
        min-width: 100px;
    }
}
