/* 通知コンテナ */
.notifications-container {
  position: relative;
  z-index: 50;
}

/* 通知の基本スタイル */
.notification {
  margin: 1rem 1rem 0.5rem 1rem;
  padding: 0;
  border-radius: 0.5rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  display: flex;
  align-items: stretch;
  transition: all 0.4s ease-out;
  transform-origin: top center;
  max-height: 200px; /* アニメーション用の最大高さ */
}

.notification.notification-success {
  background-color: #F0FDF4;
  border: 1px solid #10B981;
  color: #065F46;
}

.notification.notification-error {
  background-color: #FEF2F2;
  border: 1px solid #EF4444;
  color: #991B1B;
}

.notification.notification-info {
  background-color: #EFF6FF;
  border: 1px solid #3B82F6;
  color: #1E40AF;
}

.notification-content {
  display: flex;
  align-items: flex-start;
  flex: 1;
  padding: 1rem;
  gap: 0.75rem;
}

.notification-icon {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.notification-text {
  flex: 1;
}

.notification-title {
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
}

.notification-message {
  font-size: 0.875rem;
  margin: 0;
}

.notification-close {
  padding: 1rem;
  border: none;
  background: none;
  cursor: pointer;
  transition: background-color 0.2s;
}

.notification-close:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.notification-close svg {
  width: 1rem;
  height: 1rem;
}

/* モバイル対応 */
@media (max-width: 640px) {
  .notification {
    margin: 0.5rem 0.5rem 0.25rem 0.5rem;
  }
  
  .notification-content {
    padding: 0.75rem;
  }
  
  .notification-close {
    padding: 0.75rem;
  }
}