/*
Pure CSS modal box
Author: Jorge Chavez
Github: http://github.com/jorgechavz
*/


.modal .checkbox{
  display: none;
}

/* Gray background */
.modal .modal-overlay{
  opacity: 0;
  transition: all 0.3s ease;
  width: 50%;
  position: absolute;
  width: 100%;
  height: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: -100;
  transform: scale(1);
  display: none;
  background-color: rgba(0,0,0,0.7);
}

/* Box */
.modal .modal-wrap{
  position: relative;
  background-color: rgba(0,0,0,0);
  box-shadow: 3px 3px 3px rgba(0,0,0,0.2);
  width: 60%;
  margin: 20px auto;
  align-self: flex-start;
  border-radius: 2px;
  transition: all 0.5s ease;
  color: #fff;
}

/* 追加：フレーム */
.modal .modal-wrap img.w_fream {
  width: 100%;
}

.modal .modal-wrap.small{
  width: 30%;
}
.modal .modal-wrap.full{
  width: 100%;
  height: 100%;
}

.modal .modal-wrap.a-center {
  align-self: center;
}
.modal .modal-wrap.from-left {
  transform: translateX(-100%);
}
.modal .modal-wrap.from-right {
  transform: translateX(100%);
}
.modal .modal-wrap.from-top {
  transform: translateY(-100%);
}
.modal .modal-wrap.from-bottom {
  transform: translateY(100%);
}


/* Close button */
.modal .modal-overlay .close{
  position: absolute;
  right: -10px;
  top: -10px;
  font-size: 33px;
  width: 30px;
  height: 30px;
  color: #282c34;
  background-color: #fff;
  box-sizing: border-box;
  padding: 0 0 0 1.5px;
}

.modal .modal-overlay .close:hover{
  cursor: pointer;
  color: #4b5361;
}


 .modal .o-close {
   width: 100%;
   height: 100%;
   position: fixed;
   left: 0;
   top: 0;
   z-index: -100;
 }

.modal input:checked ~ .o-close {
  z-index: 9998;
}
.modal input:checked ~ .modal-overlay{
  transform: scale(1);
  opacity:1;
  z-index: 9997;
  overflow: auto;
  display: flex;
  animation-duration: 0.5s;
  animation-name: fade-in;
  -moz-animation-duration: 0.5s;
  -moz-animation-name: fade-in;
  -webkit-animation-duration: 0.5s;
  -webkit-animation-name: fade-in;
}
.modal input:checked ~ .modal-overlay .modal-wrap {
  transform: translateY(0);
  z-index: 9999;
}

/* Responsive Design */
/* Tablet size */
@media (max-width: 959px){
  .modal .modal-wrap {
    width: 80%;
    padding: 20px;
  }
}

/* Phone size */
@media (max-width: 599px){
  .modal .modal-wrap {
    width: 90%;
  }
}

/* Fadein from display:none */
@keyframes fade-in {
  0% {
    display: none;
    opacity: 0;
  }
  1% {
    display: flex;
    opacity: 0;
  }
  100% {
    display: flex;
    opacity: 1;
  }
}

@-moz-keyframes fade-in {
  0% {
    display: none;
    opacity: 0;
  }
  1% {
    display: flex;
    opacity: 0;
  }
  100% {
    display: flex;
    opacity: 1;
  }
}

@-webkit-keyframes fade-in {
  0% {
    display: none;
    opacity: 0;
  }
  1% {
    display: flex;
    opacity: 0;
  }
  100% {
    display: flex;
    opacity: 1;
  }
}


/* 追加：内容 */
.modal .modal-wrap h2 {
  position: absolute;
  top: 8.5%;
  left: 9%;
  width: 80%;
  font-size: calc(13px + 1vw);
}

.modal .modal-wrap h2 span {
  font-size: calc(10px + 1vw);
}


.modal .modal-wrap ul {
  position: absolute;
  top: 16%;
  left: 0;
  right: 0;
  margin: 0 auto;
  text-align: center!important;
}

.modal .modal-wrap ul li {
  display: inline-block;
  font-size: calc(10px + 0.3vw);
  line-height: 160%;
  vertical-align: top;
}

.modal .modal-wrap ul li.chara_disc {
  width: 40%;
  text-align: left;
	z-index: 20;
}

.modal .modal-wrap ul li.chara_photo {
  width: 48%;
	vertical-align: top;
	z-index: 1;
}

.modal .modal-wrap ul li.chara_photo img.stand {
  position: relative;
  width: 120%;
	margin-left: -15%;
	margin-top: 5%;
	z-index: 1;
}

.modal .modal-wrap ul li.chara_photo img.first_photo {
  position: relative;
  z-index: 1;
  margin: 5% 0 0 5%;
  transform: rotate(10deg);
  -webkit-transform: rotate(10deg);
}

.modal .modal-wrap ul li.chara_photo img.second_photo {
  margin: 1% 0 0 15%;
  transform: rotate(-10deg);
  -webkit-transform: rotate(-10deg);
}


/* ギャレオリアロード */
.modal .modal-wrap ul li.gareoria_disc {
  width: 93%;
  text-align: left;
  margin: 0 auto;
}

.modal .modal-wrap ul li.gareoria_photo {
  width: 93%;
  text-align: right;
  margin-top: 7%;
}

.modal .modal-wrap ul li.gareoria_photo img {
  width: 75%;
  margin-right: 5%;
  transform: rotate(-10deg);
  -webkit-transform: rotate(-10deg);
}
