/* 標準トースト。完了・エラーを数秒で消すフロート */

.flash-toast-stack {
  position: fixed;
  left: 50%;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  z-index: 10050;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: min(420px, calc(100vw - 32px));
  transform: translateX(-50%);
  pointer-events: none;
}

.flash-toast {
  pointer-events: auto;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  margin: 0;
  padding: 12px 12px 12px 16px;
  border-radius: 12px;
  text-align: left;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.28s ease, transform 0.28s ease;
  box-sizing: border-box;
}

.flash-toast.is-in {
  opacity: 1;
  transform: translateY(0);
}

.flash-toast.is-out {
  opacity: 0;
  transform: translateY(8px);
}

.unit_main .flash-toast {
  margin: 0;
  color: #fff;
}

.flash-toast.flash-toast--ok {
  background: var(--unit-color, #80bfcb);
  color: #fff;
}

.flash-toast.flash-toast--err {
  background: #8a1f1f;
  color: #fff;
}

.flash-toast-text {
  flex: 1;
  min-width: 0;
}

.flash-toast-title {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.3;
  opacity: 0.82;
  margin: 0 0 2px;
}

.flash-toast-message {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.45;
  margin: 0;
  white-space: pre-line;
}

.flash-toast-close {
  flex: 0 0 auto;
  margin: -2px -2px 0 0;
  padding: 0 4px;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  opacity: 0.7;
}

.flash-toast-close:hover,
.flash-toast-close:focus {
  opacity: 1;
  outline: none;
}
