@charset   "Shift_JIS";
.modal_wrap input{
  display: none;
}

.modal_overlay{
  display: flex;
  justify-content: center;
  overflow: auto;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7);
  opacity: 0;
  transition: opacity 0.5s, transform 0s 0.5s;
  transform: scale(0);
}

.modal_trigger{
  position: absolute;
  width: 100%;
  height: 100%;
}

.modal_content{
  position: relative;
  align-self: center;
  width: 60%;
  max-width: 600px;
  padding: 15px;
  padding-top: 30px;
  box-sizing: border-box;
  background: #fff;
    border-radius: 8px;
  line-height: 1.4em;
  transition: 0.5s;
}

.close_button{
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  cursor: pointer;
  font-weight: bold;
}

.modal_wrap input:checked ~ .modal_overlay{
  opacity: 1;
  transform: scale(1);
  transition: opacity 0.5s;
}

.open_button{
  position:relative;
  /*top: 0;
  right: 0;
  bottom: 0;
  left: 0;*/
  display: flex;
  justify-content: center;
  align-items: center;
  width: 150px;
  height: 40px;
  margin: auto;
  margin-bottom: 10px;
  padding: 8px 16px;
  background-color: #8F913D;
  color: #ffffff;
  border-radius: 5px;
  cursor: pointer;
}

.open_button:hover {
  opacity: .7;
    color: #ffffff;
}


@media screen and (max-width: 600px){
.modal_content{
  width: 92%;
    }
}