.modal-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 72px;
  background-color: #ffffff;
  border-top: 1px solid #ddd;
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
}

/* 黒背景のオーバーレイ層 */
.modal {
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-end; /* 下から出る */
  opacity: 0;
  pointer-events: none;
  transition: all 0.5s ease;
}

/* モーダル本体 */
.modal-content {
  background: white;
  border-radius: 20px 20px 0 0;
  padding: 20px;
  width: 100%;
  max-height: 50vh;
  transform: translateY(100%);
  transition: transform 0.5s ease;
  overflow-y: auto;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
}

@media screen and (min-width: 501px) {
  .modal-content {
    height: 50vh;
  }
}

.modal-close {
  float: right;
  font-size: 1.5rem;
  cursor: pointer;
}

/* 表示時：上にスライドして現れる */
.modal.show {
  transform: translateY(0);
  pointer-events: auto;
  opacity: 1;
}

.modal.show .modal-content {
  transform: translateY(0); /* 中身を上にスライドイン */
}

/* 非表示時：中身を下へスライドアウト */
.modal.hide {
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
}

.modal.hide .modal-content {
  transform: translateY(100%); /* 下へスライドアウト */
}

.modal-open-button {
  background-color: #00C300;
  width: 300px;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 30px;
  font-size: 1rem;
  cursor: pointer;
  margin-top: 10px;
  margin-bottom: 10px;
}
