@charset "utf-8";



/* ==========================
  モーダル（ポップアップ）
========================== */
.js_modalBtnWrap {
  width: 300px;
  max-width: 100%;
  margin: 0 auto;
  text-align: center;
}
.js_modalBtnCont {
  width:170px; 
  display: block;
  color: #fff;
  background-color: #000;
  padding: 10px 5px;
  transition: 0.3s;
  border:1px solid #000;
  line-height:1.7em;  
  margin-right:10px; 
}
.js_modalBtnCont:hover,
.js_modalBtnCont:focus {
  color: #000;
  background-color: #fff;
}
.js_modalWrap {
  opacity: 0;
  z-index: -1;
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
}
.js_modalWrap.active {
  animation: modalOpen 0.3s ease forwards;
}
.js_modalWrap.active2 {
  animation: modalClose 0.3s ease forwards;
}
.js_modalBG {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
}
.js_modalContInner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translateX(-50%) translateY(-50%);
  width: 720px;
  max-width: 100%;
  background-color: #fff;
  max-height: 600px;
  padding: 40px;
  overflow-y: scroll;
  -ms-overflow-style: none;
}
.js_modalContInner img { width:100%;}
@media screen and (max-width: 640px){
  .js_modalContInner img { width:90%; margin:0 auto; display:block; }
  
}



.js_modalCont > * + * {
  margin-top: 10px;
}
.js_modalContInner > .js_modalClose + * {
  margin-top: 0;
}
.js_modalClose {
  display: block;
  position: absolute;
  top: 10.5px;
  right: 10.5px;
  width: 20px;
  height: 20px;
  overflow: hidden;
  cursor: pointer;
  z-index: 1001;
}
.js_modalClose::before,
.js_modalClose::after {
  content: "";
  background-color: #222;
  position: absolute;
  top: -5px;
  right: 10px;
  width: 1px;
  height: 30px;
}
.js_modalClose::before {
  transform: rotate(45deg);
}
.js_modalClose::after {
  transform: rotate(-45deg);
}

@keyframes modalOpen {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
    z-index: 1000;
  }
}
@keyframes modalClose {
  0% {
    opacity: 1;
    z-index: 1000;
  }
  100% {
    opacity: 0;
  }
}

/* ==========================
  コンテンツの中身
========================== */
.ly_inner {
  width: 100%;
  padding: 0px;
}
.ly_inner h2 {
  font-size: 150%;
  font-weight: bold;
  margin-bottom: 30px;
}
.md_textblock > * + * {
  margin-top: 10px;
}
.md_textblock > * + .js_modalBtnWrap {
  margin-top: 20px;
}
table {
  width: 100%;
}
table th,
table td {
  border: 1px solid #222;
  padding: 10px;
}
table th {
  width: 20%;
  background-color: #ccc;
  white-space: nowrap;
}
.md_linkBtnWrap {
  width: 300px;
  max-width: 100%;
  margin: 10px auto 0;
  text-align: center;
}
.md_linkBtnCont {
  display: block;
  color: #222;
  border: 1px solid #222;
  padding: 15px 5px;
  transition: 0.3s;
}
.md_linkBtnCont:hover,
.md_linkBtnCont:focus {
  color: #fff;
  background-color: #222;
}

.modal { width:840px; display:block; margin:0 0 20px 30px; }

/* PC幅に適用 */
@media (min-width: 768px) {
  .hp_sp {
    display: none !important;
  }
}
/* スマホ幅に適用 */
@media (max-width: 767px) {
  .hp_pc {
    display: none !important;
  }
  .js_modalContInner {
    max-height: 400px;
    padding: 20px;
  }
  .js_modalCont {
    max-height: 360px;
    overflow-y: scroll;
  }
  .js_modalClose {
    top: -30px;
  }
  .js_modalClose::before,
  .js_modalClose::after {
    background-color: #fff;
  }
  .modal { width:95%; display:flex; margin:0 2.5% 20px 2.5%; justify-content: space-between; flex-wrap:wrap; }
  .modal section { width:48%; margin:0 0 20px 0;}
  .modal .js_modalBtnCont {
    width:100%; 
    display: block;
    color: #fff;
    background-color: #000;
    padding: 10px 0px;
    transition: 0.3s;
    border:1px solid #000;
    line-height:1.7em;  
  }
  .js_modalBtnWrap {
    width: 100%;
    margin: 0 auto;
    text-align: center;
  }
  .ly_inner {
    width: 100%;
    padding: 0px;
  }
  .md_textblock { width:100%; }
  .js_modalContInner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    width: 100%;
    max-width: 100%;
    background-color: #fff;
    max-height: 600px;
    padding: 40px;
    overflow-y: scroll;
    -ms-overflow-style: none;
  }
  .js_modalContInner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    width: 720px;
    max-width: 100%;
    background-color: #fff;
    max-height: 600px;
    padding: 40px;
    overflow-y: scroll;
    -ms-overflow-style: none;
  } 

}


.modal .sankouplan { width:100%; text-align:center; }
.modal .sankouplan img { width:100%; margin:0 auto; display:block; }
.modal .MIDASHI { margin-left:0; }
@media (min-width: 768px) {

.modal .sankouplan img { width:auto; }
#CONTENTS .SHEET .BOX p.sankouplan_info { width:100%; margin:0; padding:0; text-align:center; float:none; }


}

