/* エラー通知UIコンテナのスタイル */
.error-notifications-container {
    position: fixed;
    top: 60px;
    right: 5px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    pointer-events: none;
}

/* エラー通知UIのスタイル */
.error-notification {
    background-color: #dc3545;
    color: white;
    padding: 10px 5px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    max-width: 400px;
    min-width: 300px;
    display: block;
    opacity: 0;
    transform: translateX(100%);
    transition: opacity 0.3s ease-out, transform 0.3s ease-out;
    pointer-events: auto;
}

.error-notification.show {
    opacity: 1;
    transform: translateX(0);
}

.error-notification.hide {
    opacity: 0;
    transform: translateX(100%);
}

.error-notification-header {
    display: flex;
    align-items: center;
}

.error-notification-close {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.error-notification-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
}

.error-notification-message {
    font-size: 14px;
    margin: 0;
    line-height: 1.4;
    margin-left: 5px;
}

/* 成功通知のスタイル（code 200の場合） */
.error-notification.success-notification {
    background-color: #28a745;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}