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

body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f9;
    color: #333;
    line-height: 1.6;
    padding: 20px;
}

nav {
    background-color: #333;
    padding: 10px;
    margin-bottom: 20px;
}

nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

nav ul li {
    float: left;
    margin-right: 15px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    display: block;
}

nav ul li a:hover {
    background-color: #555;
}

section {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

h2, h3 {
    margin-bottom: 10px;
    color: #333;
}

form input[type="file"],
form input[type="text"],
form input[type="password"],
form button {
    display: block;
    width: 100%;
    padding: 10px;
    margin-top: 10px;
    margin-bottom: 15px;
    font-size: 16px;
}

form button {
    background-color: #333;
    color: #fff;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

form button:hover {
    background-color: #555;
}

textarea {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    margin-bottom: 10px;
    border-radius: 5px;
    border: 1px solid #ddd;
    resize: vertical;
}

#timestampedLyrics {
    white-space: pre-wrap;
    background-color: #f9f9f9;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-top: 10px;
}

audio {
    width: 100%;
    margin-top: 15px;
}

/* 歌詞エディタスタイル */
#lyricsEditor {
    margin-top: 20px;
}

#lyricsContainer {
    max-height: 200px; /* テーブルを縦スクロール可能に */
    overflow-y: scroll;
    border: 1px solid #ddd;
    margin-bottom: 10px;
}

#lyricsTable {
    width: 100%;
    border-collapse: collapse;
}

#lyricsTable th, #lyricsTable td {
    padding: 8px;
    border: 1px solid #ddd;
    text-align: left;
}

.lyricText {
    display: inline-block;
    cursor: pointer;
}

.lyricInput {
    width: 90%; /* フォーム入力の幅を広げる */
    padding: 5px;
    box-sizing: border-box;
}

.timestamp {
    font-weight: bold;
    text-align: center;
}

.timestamp-cell {
    cursor: pointer;
    width: 80px;
}

.timestamp-cell:hover {
    background-color: #e0f7fa;
}

.action-btn {
    font-size: 1.2em;
    cursor: pointer;
    margin-right: 5px;
}

button {
    padding: 5px 10px;
    cursor: pointer;
    background-color: #333;
    color: white;
    border: none;
    border-radius: 3px;
}

button:hover {
    background-color: #555;
}

/* 打刻結果の表示エリア */
#timestampedLyrics {
    white-space: pre-wrap;
    background-color: #f9f9f9;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-top: 10px;
}

/* 選択された行の強調表示 */
.selected {
    background-color: #e0f7fa;
}

