/**
 * トースト通知のスタイル
 */

.toast-container {
  position: fixed !important;
  bottom: 20px !important;
  right: 20px !important;
  z-index: 99999 !important;
  display: flex !important;
  flex-direction: column-reverse !important;
  gap: 10px !important;
  pointer-events: none !important;
}

.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 300px;
  max-width: 500px;
  padding: 16px 20px;
  background: var(--color-bg-primary);
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  opacity: 0;
  transform: translateX(400px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: auto;
  font-size: var(--font-size-sm);
  line-height: 1.5;
}

.toast.show {
  opacity: 1;
  transform: translateX(0);
}

.toast.hide {
  opacity: 0;
  transform: translateX(400px);
}

.toast-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 16px;
  font-weight: bold;
}

.toast-message {
  flex: 1;
  color: var(--color-text-primary);
  word-break: break-word;
}

/* 成功 */
.toast-success {
  border-left: 4px solid var(--color-success);
}

.toast-success .toast-icon {
  background: var(--color-success-light);
  color: var(--color-success);
}

/* エラー */
.toast-error {
  border-left: 4px solid var(--color-error);
}

.toast-error .toast-icon {
  background: var(--color-error-light);
  color: var(--color-error);
}

/* 警告 */
.toast-warning {
  border-left: 4px solid var(--color-warning);
}

.toast-warning .toast-icon {
  background: var(--color-warning-light);
  color: var(--color-warning);
}

/* 情報 */
.toast-info {
  border-left: 4px solid var(--color-info);
}

.toast-info .toast-icon {
  background: var(--color-info-light);
  color: var(--color-info);
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .toast-container {
    bottom: 10px !important;
    right: 10px !important;
    left: 10px !important;
    align-items: stretch;
  }

  .toast {
    min-width: auto;
    max-width: none;
    width: 100%;
  }
}