@charset "utf-8";
/* CSS Document */

/*
Pure CSS modal box
Author: Jorge Chavez
Github: http://github.com/jorgechavz
*/

/*** modal for cherry ******************************/
/*------ 共通 ------*/
.checkbox{
  display: none;
}

/* Gray background */
.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: flex;
  background-color: rgba(255,255,255,0.6);
}

/* Box */
.modal-wrap{
  background-color: #F5E1DF;
  box-shadow: 3px 3px 3px rgba(0,0,0,0.2);
  padding: 5px;
  width: 850px;
  margin: 10px auto;
  align-self: flex-start;
  transition: all 0.5s ease;
  overflow: auto;
}
.modal-wrap.full{
  width: 100%;
  height: 100%;
}
.modal-wrap.from-top {
  transform: translateY(-100%);
}


/* Close button */
.modal-overlay .close img{
  position: absolute;
  right:35px;
	bottom:15px;
  font-size: 40px;
  width: 30px;
  height: 30px;
  color: #282c34;
}

.modal-overlay .close:hover{
  cursor: pointer;
  color: #4b5361;
}


.o-close {
   width: 100%;
   height: 100%;
   position: fixed;
   left: 0;
   top: 0;
   z-index: -100;
 }

input:checked ~ .o-close {
  z-index: 9998;
}
input:checked ~ .modal-overlay{
  transform: scale(1);
  opacity:1;
  z-index: 9997;
  overflow: auto;
}
input:checked ~ .modal-overlay .modal-wrap {
  transform: translateY(0);
  z-index: 9999;
}
/*----------------------------------------*/


/*------ custom ------*/
/*--Making IE6 Understand Fixed Positioning--*/
  *html #fade { position: absolute; }
  *html .popup_block { position: absolute; }
  .modal_border {
    border: 1px solid #D75E83;
    padding: 30px;
    position: relative;
  }
  .modal_border h2 {
    border-left: 10px solid #D75E83;
    padding-left: 10px;
  }
.modal_tb td {
  width: 50%;
}
.modal_tb td img {
  width: 100%;
  height: auto;
}
.modal_text {
  padding: 30px;
}

/*==== スマートフォン対応 ==========================================*/

@media screen and (max-width: 479px) {
.modal_tb td {
  display: block;
  width: 100%;
}
}
