/* toastr.css */

#toast-container {
  position: fixed;
  z-index: 9999;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
#toast-container.toast-bottom-right {
  bottom: 20px;
  right: 20px;
  align-items: flex-end;
}
#toast-container.toast-top-right {
  top: 20px;
  right: 20px;
  align-items: flex-end;
}
#toast-container.toast-top-left {
  top: 20px;
  left: 20px;
  align-items: flex-start;
}
#toast-container.toast-bottom-left {
  bottom: 20px;
  left: 20px;
  align-items: flex-start;
}

.toast {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 240px;
  max-width: 340px;
  padding: 11px 14px 14px;
  border-radius: 7px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
  pointer-events: all;
  cursor: pointer;
  overflow: hidden;
  opacity: 0;
  transform: translateX(12px);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}
.toast.toast-shown {
  opacity: 1;
  transform: translateX(0);
}
.toast.toast-hiding {
  opacity: 0;
  transform: translateX(12px);
  transition:
    opacity 0.4s ease,
    transform 0.4s ease;
}

/* タイプ別カラー */
.toast-success { background: #4a9f52; color: #fff; }
.toast-error   { background: #c0392b; color: #fff; }
.toast-warning { background: #e67e22; color: #fff; }
.toast-info    { background: #2980b9; color: #fff; }

/* アイコン */
.toast-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.92;
}
.toast-icon svg {
  width: 30px;
  height: 30px;
}

/* メッセージ */
.toast-message {
  flex: 1;
  font-size: 13.5px;
  line-height: 1.5;
  word-break: break-word;
}

/* プログレスバー */
.toast-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  width: 100%;
  background: rgba(0, 0, 0, 0.22);
  border-radius: 0 0 7px 7px;
}