@charset "utf-8";

/* modal */

.modal{
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
}

.modal-bg{
  position: absolute;
  width: 100%;
  height: 100vh;
  background-color: #000c;
}

.modal-content{
  position: absolute;
  top: 50%;
  left: 50%;
  width: 80%;
  /*height: 80%;*/
  padding: 40px;
  transform: translate(-50%,-50%);
  background-color: #fff;
}
.modal-content{
  display: flex;
  justify-content: space-between;
  border-radius: 20px;
}
.modal-content figure{
  width: 39%;
}
.modal-content figure img{
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}
.modal-content > div{
  width: 59%;
}
.modal-content > div h1{
  margin: 0 0 1rem 0;
  font-size: 1.6rem;
}
.modal-content > div p{
  text-align: justify;
  font-size: 1.2rem;
  line-height: 1.6;
}
.modal-content > div a.close-mark{
  position: absolute;
  top: -6rem;
  right: 0rem;
  font-size: 5rem;
  color: #fff;
}
.modal-content > div a.close-text{
  position: absolute;
  bottom: 20px;
  right: 40px;
  padding: 10px;
  text-decoration: none;
  color: #fff;
  background-color: #9a0e21;
  border-radius: 10px;
}
/* close-markとclose-textの切り替え */
.modal-content > div a.close-mark{
  display: none;
}
.modal-content > div a.close-text{
  display: block;
}





@media (max-width: 768px) {

  .modal-content{
    display: block;
  }


  .modal-content figure{
    width: 60%;
    margin: 0 auto;
  }

  .modal-content > div{
    width: 90%;
    margin: 0 auto;
  }

}


