* {
    margin: 0;
    font-family: YuGothic,'Yu Gothic','Hiragino Kaku Gothic ProN','ヒラギノ角ゴ ProN W3',sans-serif;
}
html {
    background-color: #F6F6F6;
    color: #464D48;
}

/* モーダルの基本スタイル */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.6);
}

/* モーダルコンテンツ */
.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    width: 90%;
    max-width: 700px;
    animation: modalFadeIn 0.3s;
}

/* モーダルヘッダー */
.modal-header {
    padding: 15px 20px;
    background-color: #065bde;
    color: white;
    border-radius: 8px 8px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    font-size: 19px;
}

/* 閉じるボタン */
.close-modal {
    color: white;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

/* モーダル本文 */
.modal-body {
    padding: 20px;
    line-height: 1.6;
}

/* モーダルフッター */
.modal-footer {
    padding: 15px 20px;
    background-color: #f7f7f7;
    border-radius: 0 0 8px 8px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* ボタンスタイル */
.btn-cancel, .btn-proceed {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

.btn-cancel {
    background-color: #e0e0e0;
    color: #333;
}

.btn-proceed {
    background-color: #000;
    color: white;
}

/* ホバーエフェクト */
.btn-cancel:hover {
    background-color: #d0d0d0;
}

.btn-proceed:hover {
    background-color: #2c2c2c;
}

/* モーダルアニメーション */
@keyframes modalFadeIn {
    from {opacity: 0; transform: translateY(-20px);}
    to {opacity: 1; transform: translateY(0);}
}

/* モバイル対応 */
@media (max-width: 768px) {
    .modal-content {
        margin: 20% auto;
        width: 95%;
    }
    
    .modal-header h2 {
        font-size: 1.1rem;
    }
    
    .modal-footer {
        flex-direction: column;
    }
    
    .btn-cancel, .btn-proceed {
        width: 100%;
        margin-bottom: 5px;
    }
}

/* Loading Button */
.loading_button {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 0.25rem solid #00000033;
    border-top-color: #000000;
    animation: spin 1s infinite linear;
}
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

