/* ========== 汎用アラートモーダル ========== */

.universal-alert-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  box-sizing: border-box;
}

.universal-alert-modal__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(0.4rem);
}

.universal-alert-modal__content {
  position: relative;
  background: var(--color-white);
  border-radius: 1.6rem;
  padding: 3rem;
  max-width: 50rem;
  width: 100%;
  box-shadow: 0 2rem 4rem rgba(0, 0, 0, 0.15);
  text-align: center;
  animation: slideInScale 0.3s ease-out;
}

@keyframes slideInScale {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(-2rem);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.universal-alert-modal__icon {
  width: 6rem;
  height: 6rem;
  margin: 0 auto 2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.universal-alert-modal__icon--info {
  background: linear-gradient(135deg, #e3f2fd, #bbdefb);
  color: #1976d2;
}

.universal-alert-modal__icon--success {
  background: linear-gradient(135deg, #e8f5e8, #c8e6c9);
  color: #388e3c;
}

.universal-alert-modal__icon--warning {
  background: linear-gradient(135deg, #fff3e0, #ffcc02);
  color: #f57c00;
}

.universal-alert-modal__icon--error {
  background: linear-gradient(135deg, #ffebee, #ffcdd2);
  color: #d32f2f;
}

.universal-alert-modal__title {
  font-size: 2rem;
  font-weight: 600;
  color: var(--color-text-primary);
  margin: 0 0 1.5rem 0;
  line-height: 1.4;
}

.universal-alert-modal__message {
  font-size: 1.6rem;
  color: var(--color-text-secondary);
  margin: 0 0 3rem 0;
  line-height: 1.6;
  white-space: pre-line;
}

.universal-alert-modal__actions {
  display: flex;
  gap: 1.2rem;
  justify-content: center;
  flex-wrap: wrap;
}

.universal-alert-modal__button {
  padding: 1.2rem 2.4rem;
  border: none;
  border-radius: 0.8rem;
  font-size: 1.6rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 12rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-family: var(--font-family-primary);
}

.universal-alert-modal__button--primary {
  background: linear-gradient(
    135deg,
    var(--color-primary),
    var(--color-primary-deep)
  );
  color: var(--color-white);
  box-shadow: 0 0.4rem 1.2rem rgba(59, 130, 246, 0.3);
  transition: all 0.3s ease;
}

.universal-alert-modal__button--primary:hover {
  transform: translateY(-0.2rem);
  box-shadow: 0 0.6rem 1.6rem rgba(59, 130, 246, 0.4);
}

.universal-alert-modal__button--primary:active {
  transform: translateY(0);
  box-shadow: 0 0.2rem 0.8rem rgba(59, 130, 246, 0.3);
}

.universal-alert-modal__button--secondary {
  background: var(--color-white);
  color: var(--color-text-primary);
  border: 0.2rem solid var(--color-border-gray);
  box-shadow: 0 0.2rem 0.8rem rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.universal-alert-modal__button--secondary:hover {
  transform: translateY(-0.2rem);
  box-shadow: 0 0.4rem 1.2rem rgba(0, 0, 0, 0.15);
}

.universal-alert-modal__button--secondary:active {
  transform: translateY(0);
  box-shadow: 0 0.2rem 0.8rem rgba(0, 0, 0, 0.1);
}

.universal-alert-modal__button:focus {
  outline: none;
  box-shadow: 0 0 0 0.3rem rgba(59, 130, 246, 0.3);
}

.universal-alert-modal__button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

/* レスポンシブデザイン */
@media screen and (max-width: 768px) {
  .universal-alert-modal {
    padding: 1rem;
  }

  .universal-alert-modal__content {
    padding: 2.4rem 2rem;
    max-width: none;
  }

  .universal-alert-modal__icon {
    width: 5rem;
    height: 5rem;
    margin-bottom: 1.5rem;
  }

  .universal-alert-modal__title {
    font-size: 1.8rem;
    margin-bottom: 1.2rem;
  }

  .universal-alert-modal__message {
    font-size: 1.4rem;
    margin-bottom: 2.4rem;
  }

  .universal-alert-modal__actions {
    flex-direction: column;
    gap: 1rem;
  }

  .universal-alert-modal__button {
    width: 100%;
    min-width: auto;
    padding: 1.4rem 2rem;
  }
}

@media screen and (max-width: 480px) {
  .universal-alert-modal__content {
    padding: 2rem 1.5rem;
  }

  .universal-alert-modal__title {
    font-size: 1.6rem;
  }

  .universal-alert-modal__message {
    font-size: 1.3rem;
  }
}
