/* 画面中央トースト（showToast） */
#app-toast-container {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2147483646;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  pointer-events: none;
  max-width: calc(100vw - 32px);
  box-sizing: border-box;
}

.app-toast {
  pointer-events: auto;
  max-width: min(380px, calc(100vw - 32px));
  padding: 12px 16px;
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  font-size: 14px;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
  opacity: 0;
  transform: translateY(-10px) scale(0.98);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.app-toast--visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.app-toast--leave {
  opacity: 0;
  transform: translateY(-6px) scale(0.98);
}

.app-toast--success {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #6ee7b7;
}

.app-toast--error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}

.app-toast--info {
  background: #ffffff;
  color: #1f2937;
  border: 1px solid #e5e7eb;
}

@media (max-width: 480px) {
  #app-toast-container {
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: calc(100vw - 24px);
    align-items: stretch;
  }

  .app-toast {
    max-width: none;
  }
}
