/* モーダル */
.layers {
  width: 100%;
  height: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: -1;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s linear, visibility 1s linear, z-index 1s linear;
}

.layers.is-open {
  z-index: 999;
  opacity: 1;
  visibility: visible;
}

.layers.is-open .modal {
  opacity: 1;
  visibility: visible;
}

.modal {
  display: block;
  padding: initial;
  background: initial;

  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 101;
  transform: translate(-50%, -50%);
  -webkit-transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  margin-right: auto;
  margin-left: auto;
  width: 300px;
  opacity: 0;
  visibility: hidden;
  transition: visibility 0.7s linear, opacity 0.7s linear;
}
@media screen and (min-width: 768px) {
  .modal {
    width: 350px;
  }
}

.modal__inner {
  position: relative;
  margin-left: auto;
  margin-right: auto;
  /* background: #fff; */
  /* box-shadow: 10px 10px 13px 2px rgba(0, 0, 0, 0.25); */
  /* border-radius: 13px; */
  background: initial;
  box-shadow: initial;
  border-radius: initial;
  display: block;
  height: auto;
}

@media screen and (max-width: 500px) {
  .modal {
    top: 47%;
    max-height: none;
    overflow-y: inherit;
  }
}
.modal__contents {
  position: relative;
}

.modal__contents-btn {
  position: absolute;
  /* bottom: 17%; */
  /* width: 90%; */
  width: 95%;
  bottom: 18.5%;
  left: 50%;
  transform: translateX(-50%);
}

.modal__contents-btn a {
  display: inline-block;
  margin-top: -5px;
}
