/* ==========================================================================
   モーダルダイアログコンポーネント
   ========================================================================== */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-content {
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  max-width: 500px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.modal-header {
  padding: 20px 24px 16px;
  border-bottom: 1px solid #e0e0e0;
}

.modal-header h3 {
  margin: 0;
  color: #d32f2f;
  font-size: 1.25em;
  font-weight: 600;
}

.modal-body {
  padding: 20px 24px;
}

.modal-body p {
  margin: 0;
  line-height: 1.6;
  color: #333;
  white-space: pre-line;
}

.modal-footer {
  padding: 16px 24px 20px;
  border-top: 1px solid #e0e0e0;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.modal-btn {
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.modal-btn-primary {
  background-color: #d32f2f;
  color: white;
}

.modal-btn-primary:hover {
  background-color: #ff4b00;
}

.modal-btn-secondary {
  background-color: #339988;
  color: #fff;
  border: 1px solid #ddd;
}
