/* --- ダイアログの背景部分 --- */
.dialog {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh; /* svhでも可 */
    background-color: rgba(0, 0, 0, 0.4); /* 少し暗くしてコンテンツを目立たせる */
    backdrop-filter: blur(8px); /* ぼかしを少し強く */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;

    /* --- アニメーションのための設定 --- */
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease, visibility 0.3s ease; /* ふわっと変化させる */
}

/* --- 非表示の状態 --- */
.dialog.hidden {
    opacity: 0;
    visibility: hidden;
}

/* --- ダイアログの本体部分 --- */
.dialog-content {
    background-color: #ffffff;
    padding: 2.5rem;
    border-radius: 16px; /* 角を丸くする */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2); /* 影を付けて立体感を出す */
    max-width: 500px;
    width: 90%;
    text-align: center;
    
    /* --- 表示時のアニメーション --- */
    transform: scale(1);
    transition: transform 0.3s ease;
}

/* --- 非表示の時のコンテンツの状態 --- */
.dialog.hidden .dialog-content {
    transform: scale(0.95); /* 少し小さくする */
}


/* --- ボタンのスタイル（おまけ） --- */
.button-container {
    display: flex;
    justify-content: center;
    gap: 1rem; /* ボタンの間隔 */
    margin-top: 1.5rem;
}

.dialog button {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
}

/* プライマリボタン (OK) */
#audio-load-cancel {
    background-color: var(--main-color);
    color: white;
}
.button-primary:hover {
    background-color: var(--main-color);
    color: white;
}

@media (max-width: 768px) {
    #audio-load-message{
        text-align: left;
    }
}