/* モーダルを開くボタン */
.modal-open {
  width: 300px;
  height: 60px;
  color: #fff;
  background: #000;
  border: none;
  cursor: pointer;
}

/* モーダルと背景の指定 */
.modal {
  /* position: fixed; */
  /* top: 0; */
  /* left: 0; */
  width: 100%;
  max-height: 90vh;
  margin: -50vh 0 0;
  /* text-align: center; */
  background: rgba(0,0,0,50%);
  padding: 4%;
  overflow-x: hidden;
  overflow-y: scroll;
  opacity: 0;
  visibility: hidden;
  transition: .3s;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

/* モーダルの擬似要素の指定 */
.modal:before {
  /* content: ""; */
  /* display: inline-block; */
  /* vertical-align: middle; */
  /* height: 100%; */
  /* margin-left: -0.2em; */
}

/* クラスが追加された時の指定 */
.modal.is-active {
  opacity: 1;
  visibility: visible;
}

/* モーダル内側の指定 */
.modal-container {
  /* position: relative; */
  /* display: inline-block; */
  /* vertical-align: middle; */
  max-width: 600px;
  width: 90%;
}

/* モーダルのコンテンツ部分の指定 */
.modal-content {
  background: #fff;
  text-align: left;
  padding: 20px;
  /* height: 100vh; */
  max-height: 80vh;
}

/* モーダルを閉じるボタンの指定 */
.modal-close {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  top: -20px;
  right: -20px;
  width: 40px;
  height: 40px;
  color: #fff;
  background: #000;
  border-radius: 50%;
  cursor: pointer;
  z-index: 9;
}
