/* ===== ダイアログ背景（オーバーレイ） ===== */
#dialogOverlay {
    display: none;
    /* 初期は非表示 */
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 9998;
}

/* ===== ダイアログ本体 ===== */
#dialogBox {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: 14px;
    padding: 24px 28px;
    width: 90%;
    max-width: 720px;
    min-width: 300px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.3);
    font-size: 15px;
    line-height: 1.7;
    z-index: 9999;
    animation: dialogFadeIn 0.25s ease;
}

/* 出現アニメーション */
@keyframes dialogFadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -45%);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

/* ===== 注意文の枠 ===== */
#dialogBox .wrap-note {
    border: 2px solid #3F7A04;
    background-color: #fdfdfc;
    padding: 20px;
    border-radius: 10px;
    line-height: 1.8;
    margin-bottom: 20px;
    box-shadow: inset 0 0 8px rgba(63, 122, 4, 0.1);
}

#dialogBox .wrap-note p {
    margin: 0 0 10px;
}

#dialogBox .wrap-note hr {
    margin: 10px 0;
    border: none;
    border-top: 1px solid #3F7A04;
}

/* ===== ボタンエリア ===== */
#dialogBox .btn {
    margin-top: 20px;
    text-align: center;
}

#dialogBox .btn input[type="button"] {
    display: inline-block;
    min-width: 120px;
    height: 44px;
    line-height: 44px;
    background: #3F7A04;
    color: #fff;
    font-weight: 600;
    text-align: center;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.15s ease;
    box-shadow: 0 2px 6px rgba(63, 122, 4, 0.3);
}

#dialogBox .btn input[type="button"]:hover {
    background: #336204;
    transform: translateY(-1px);
}

#dialogBox .btn input[type="button"]:active {
    transform: translateY(1px);
}

/* ===== スクロールバーの見た目（PC用） ===== */
#dialogBox::-webkit-scrollbar {
    width: 8px;
}

#dialogBox::-webkit-scrollbar-thumb {
    background: #c7d9c0;
    border-radius: 4px;
}

#dialogBox::-webkit-scrollbar-thumb:hover {
    background: #a8c294;
}

/* ===== レスポンシブ（スマホ用） ===== */
@media (max-width: 600px) {
    #dialogBox {
        width: 95%;
        padding: 18px 20px;
        border-radius: 14px;
        max-height: 80vh;
    }

    #dialogBox .wrap-note {
        padding: 16px;
        font-size: 14px;
    }

    #dialogBox .btn input[type="button"] {
        width: 100%;
        font-size: 15px;
        margin-bottom: 15px;
    }
}