/*
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.01s ease;
  width: 50%;
  position: absolute;
  width: 100%;
  height: 0%;
  position: fixed;
  top: 0;
  left: 0;
  transform: scale(1);
  display: flex;
  background-color: rgba(0,0,0,0.7);
}

/* Box */
.modal .modal-wrap{
  background:url("../img/skillup/bg.jpg") repeat;
  box-shadow: 3px 3px 3px rgba(0,0,0,0.2);
  width: 96%;max-width: 800px;
  margin: 20px auto;
  align-self: flex-start;
  border-radius: 5px;
  transition: all 0.6s ease;
  font-size:14px;
  line-height: 20px;
}
.modal .modal-wrap .modal-header {
    min-height: 16.43px;
    padding: 15px;
}
.modal .modal-wrap.small{
  width: 30%;
}
.modal .modal-wrap.full{
  width: 100%;
  height: 100%;
}
.modal .modal-wrap .modal-body{position: relative;padding: 5px;}
.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: 15px;
  font-size: 30px;
  width: 30px;
  height: 30px;
  color: #282c34;
}

.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;height: 100%;
  z-index: 9997;
  overflow: auto;
}
.modal input:checked ~ .modal-overlay .modal-wrap {
  transform: translateY(0);
  z-index: 9999;
}

/* Responsive Design */
/* Tablet size */
@media (max-width: 800px){
  .modal .modal-wrap {
    width: 80%;
    padding: 20px;
  }
}

/* Phone size */
@media (max-width: 500px){
  .modal .modal-wrap {
    width: 90%;
  }
}

/*----------------------------------------------------
  ■タイトル
----------------------------------------------------*/
.m_ttl01{ font-size:4.0rem; margin:30px 0 0 0;font-family: 'Noto Sans JP', sans-serif;text-align: center; font-weight:600; line-height: 5.0rem;}
.m_ttl01 span.red{color:#dc42d0;font-family: 'Noto Sans JP', sans-serif;font-weight:600;}
.m_ttl01 span.small{font-size:2.4rem;}
h2.m_ttl02{font-size:2.8rem;font-family: 'Noto Sans JP', sans-serif;font-weight:600;margin:15px;}

.sec01{ max-width: 700px; background:#fbe5d6; padding:10px; border:4px solid #9f603e;border-radius: 25px;-webkit-border-radius: 25px;-moz-border-radius: 25px; margin: auto; margin-bottom:30px;}
.sec01 h2{color:#c3560c;}
.sec01 .box{width: 100%; border:3px solid #a06c49;padding:10px;background:#fff; display:table;}
.sec01 .box p{display:table-cell;font-size:2.0rem; line-height: 3.0rem; vertical-align:middle;}
.sec01 .box p:nth-child(1){width:70%;}
.sec01 .box p:nth-child(2){width:30%; text-align:center;}

.sec02{ max-width: 700px; background:#deebf7; padding:10px; border:4px solid #3b86c1;border-radius: 25px;-webkit-border-radius: 25px;-moz-border-radius: 25px; margin: auto; margin-bottom:30px;}
.sec02 h2{color:#2c73b5;}
.sec02 .box{width: 100%; border:3px solid #0a75c1;padding:10px;background:#fff; display:table;}
.sec02 .box p{display:table-cell;font-size:2.0rem; line-height: 3.0rem;vertical-align:middle;}
.sec02 .box p:nth-child(1){width:70%;}
.sec02 .box p:nth-child(2){width:30%; text-align:center;}

.sec03{ max-width: 700px; background:#e2f0d9; padding:10px; border:4px solid #737f5a;border-radius: 25px;-webkit-border-radius: 25px;-moz-border-radius: 25px; margin: auto; margin-bottom:30px;}
.sec03 h2{color:#497928;}
.sec03 .box{width: 100%; border:3px solid #788d6a;padding:10px;background:#fff; display:table;}
.sec03 .box p{display:table-cell;font-size:2.0rem; line-height: 3.0rem;vertical-align:middle;}

@media screen and (max-width:700px){
.m_ttl01{ font-size:3.5rem; line-height: 4.0rem;}
h2.m_ttl02{font-size:2.4rem;}
.sec01 .box p,
.sec02 .box p,
.sec03 .box p{display:table-cell;font-size:1.8rem;}
}
	
@media screen and (max-width:568px){
.m_ttl01{ font-size:2.8rem;margin:20px 0 0 0;}
h2.m_ttl02{font-size:2.0rem;}
.sec01 .box p,
.sec02 .box p,
.sec03 .box p{display:table-cell;font-size:1.4rem;}
}