/* setting.css: 設定画面・設定ボタン */
#settings-btn {
    padding: 8px 15px;
    background-color: #7f8c8d;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}
#settings-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.25);
}
#settings-modal.active {
    display: flex !important;
    justify-content: center;
    align-items: center;
}
#settings-modal .modal-content {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.18);
    padding: 22px 24px 14px 24px;
    min-width: 260px;
    max-width: 95vw;
    width: 500px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}
#settings-modal h2 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #1976d2;
    font-size: 1.08em;
    text-align: center;
}
#settings-modal label {
    font-weight: bold;
    margin-top: 8px;
    margin-bottom: 2px;
    font-size: 0.98em;
    width: 140px;
    display: inline-block;
    text-align: right;
    padding-right: 10px;
}
#settings-modal input[type="text"] {
    padding: 6px 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 0.98em;
    margin-bottom: 4px;
    width: 300px;
    box-sizing: border-box;
}

/* 入力フィールドの行を横並びに */
.input-row {
    display: flex;
    align-items: center;
    width: 100%;
    margin-bottom: 4px;
}

/* 音量設定の行も横並びに */
.volume-row {
    display: flex;
    align-items: center;
    width: 100%;
    margin-bottom: 8px;
}

.volume-row label {
    width: 140px;
    text-align: right;
    padding-right: 10px;
}

.volume-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.volume-controls input[type="range"] {
    flex: 1;
    margin: 0;
}

.volume-controls span {
    font-weight: bold;
    color: #1976d2;
    min-width: 40px;
    text-align: right;
}
#save-settings-btn {
    margin-top: 10px;
    padding: 7px 16px;
    background: #1976d2;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 1em;
    cursor: pointer;
    transition: background 0.2s;
    min-width: 80px;
}
#save-settings-btn:hover {
    background: #125ea7;
}
#settings-modal p {
    font-size: .75rem;
    color: #888;
    margin-top: 8px;
    text-align: center;
}

/* 音量設定のスタイル */
#settings-modal h3 {
    margin-top: 16px;
    margin-bottom: 8px;
    color: #1976d2;
    font-size: 1.1em;
    text-align: center;
    width: 100%;
}

#settings-modal hr {
    width: 100%;
    border: none;
    border-top: 1px solid #ddd;
    margin: 20px 0;
}
