/* モーダル */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(17, 24, 39, 0.45);
    backdrop-filter: blur(2px);
}

.modal-overlay.is-hidden {
    display: none;
}

.modal-card {
    width: 100%;
    max-width: 360px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.18);
    padding: 20px 16px 16px;
}

.modal-title {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
    color: #111827;
}

.modal-message {
    margin: 10px 0 0;
    font-size: 14px;
    line-height: 1.7;
    color: #4b5563;
    word-break: break-word;
}

.modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 18px;
}

.modal-button {
    flex: 1;
    min-height: 44px;
    padding: 0 16px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transition: opacity 0.15s, transform 0.15s;

    display: flex;
    align-items: center;
    justify-content: center;

    appearance: none;
    -webkit-appearance: none;
}

.modal-button:active {
    transform: translateY(1px);
}

.modal-button-primary {
    border: none;
    background: #16a34a;
    color: #ffffff;
    box-shadow: 0 10px 20px rgba(22, 163, 74, 0.16);
}

.modal-button-secondary {
    border: 1px solid #d1d5db;
    background: #ffffff;
    color: #374151;
}