/* モーダル風フェード */
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.98); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes fadeOut {
  from { opacity: 1; transform: scale(1); }
  to   { opacity: 0; transform: scale(0.98); }
}
.fade-in {
  animation: fadeIn 0.4s ease forwards;
}
.fade-out {
  animation: fadeOut 0.4s ease forwards;
}

/* モーダル全体 */
.modal {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  /* 画面中央にダイアログを表示 */
  display: flex;
  align-items: center;
  justify-content: center;

  /* 背景を暗くする */
  background: rgba(0, 0, 0, 0.45);

  /* 他のUIより手前に */
  z-index: 10000;

  /* 端末幅が狭い時にダイアログが画面外へ出ないように */
  padding: 18px;
}

/* ダイアログ本体 */
.modal-content {
  background: var(--ds-color-surface);
  border-radius: var(--ds-radius-lg);
  box-shadow: var(--ds-shadow-float);
  min-width: 280px;
  max-width: 520px;
  width: min(520px, 100%);
  padding: var(--ds-space-5) 22px;
  text-align: center;
}

#confirm-message {
  margin: 0;
  font-size: var(--ds-font-md);
  line-height: var(--ds-line-normal);
  white-space: pre-line; /* \n を改行として扱う */
}

.modal-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 16px;
}
.modal-buttons button {
  min-height: 36px;
  padding: 6px 16px;
  border: none;
  border-radius: var(--ds-radius-sm);
  cursor: pointer;
  font-size: var(--ds-font-sm);
  line-height: var(--ds-line-compact);
}
#confirm-ok {
  background-color: var(--ds-color-primary);
  color: white;
}
#confirm-cancel {
  background-color: #ccc;
}

/* モーダルの×ボタン（クラス名例: .modal-close-btn, .new-request-modal-close-btn など） */
.modal-close-btn:hover,
.new-request-modal-close-btn:hover {
  background: #888;
  color: #fff;
}
