body {
  font-family: Arial, sans-serif;
}

.modal {
  display: none; /* 初期状態は非表示 */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0; /* 透明にする */
  transition: opacity 0.5s ease; /* ふわっと表示するためのトランジション */
}

.modal.show {
  display: flex; /* 表示する */
  opacity: 1; /* 不透明にする */
}

.modal-content {
  background-color: #fff;
  padding: 6px;
  border-radius: 8px;
  width: 80%;
  max-width: 700px;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transform: scale(0.9); /* 小さくしておく */
  transition: transform 0.5s ease; /* 拡大するアニメーション */
}

.modal.show .modal-content {
  transform: scale(1); /* 元の大きさに戻す */
}

.close-btn {
  position: absolute;
  top: -10px;
  right: 5px;
  font-size: 24px;
  cursor: pointer;
  color: #ffffff;
}
