/* css/popup.css */

.popup-overlay {
  position: fixed;
  z-index: 9999;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex; justify-content: center; align-items: center;
  transition: background 0.5s ease;
  backdrop-filter: blur(3px);
}

.popup-content {
  background: #ffffff;
  padding: 2.5rem;
  border-radius: 15px;
  max-width: 700px;
  width: 90%;
  box-shadow: 0 12px 30px rgba(0,0,0,0.25);
  animation: fadeIn 0.4s ease;
  font-family: 'Noto Sans JP', sans-serif;
}

.popup-content p {
  text-align: justify;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  padding: 1rem;
  border-left: 5px solid #ccc;
  background-color: #f9f9f9;
  border-radius: 6px;
}

.popup-content p:first-of-type {
  border-color: #d9534f;
}

.popup-content p:last-of-type {
  border-color: #5cb85c;
}

.popup-buttons {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.popup-buttons button {
  padding: 0.6rem 1.5rem;
  border: none;
  font-size: 1rem;
  font-weight: bold;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.popup-buttons .btn-secondary {
  background-color: #d9534f;
  color: #fff;
}

.popup-buttons .btn-secondary:hover {
  background-color: #c9302c;
}

.popup-buttons .btn-primary {
  background-color: #5cb85c;
  color: #fff;
}

.popup-buttons .btn-primary:hover {
  background-color: #4cae4c;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.popup-overlay.fade-out {
  background: rgba(0, 0, 0, 0);
  pointer-events: none;
}

.popup-content.fade-out {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
