@charset "UTF-8";
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: none; /* 最初は非表示 */
  z-index: 1000;
}

.modal .close {
  position: absolute;
  top: 10px;
  right: 14px;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  opacity: 0.6;
}
.modal .close:hover {
  opacity: 1;
}

/* モーダルが表示される時のスタイルを追加 */
.modal.show {
  display: block; /* 表示 */
}

.modal-content {
  max-width: 95%;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #fff;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 6px;
  outline: 0;
  box-shadow: 0 3px 9px rgba(0, 0, 0, 0.5);
  padding-top: 40px;
}

/* モーダルのコンテンツ取得中に表示するローディングスピナー */
.modal-loading-spinner {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 4px solid rgba(0, 0, 0, 0.15);
  border-top-color: rgba(0, 0, 0, 0.6);
  z-index: 1000;
  animation: modal-loading-spinner-spin 0.8s linear infinite;
}
.modal-loading-spinner.show {
  display: block;
}

@keyframes modal-loading-spinner-spin {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}
