@charset "utf-8";

/* ==========================
  初期設定
========================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}
.modalimg {
  width: 100%;
}

/* ==========================
  モーダル（ポップアップ）
========================== */
.js_modalBtnWrap {
  width: 300px;
  max-width: 100%;
  margin: 0 auto;
  text-align: center;
  z-index:9999999999999999;
}
.js_modalWrap {
  opacity: 0;
  z-index: -1;
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
}
.js_modalWrap.active {
  animation: modalOpen 0.9s ease forwards;
}
.js_modalWrap.active2 {
  animation: modalClose 0.7s ease forwards;
}
.js_modalBG {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
}



.js_modalContInner {
  position: absolute;
  top: 60%;
  left: 88%;
  transform: translateX(-50%) translateY(-50%);
  width: 300px;
  max-width: 100%;
  background-color: transparent;
  max-height: 600px;
  padding: 1px;
}

@media screen and (max-width:768px) {
.js_modalContInner {
  top: 60%;
  left: 68%;
}}



.js_modalCont {
  overflow-y: auto;
  overflow:hidden;
  max-height: 500px;
}


.js_modalCont img{
  width:100%;
  height:auto;
  border-radius: 7px;
}

@media screen and (max-width:768px) {
.js_modalCont img{
  width:80%;
  height:auto;
}}



.js_modalCont img:hover{
 transition:1s;
  opacity:.6
}


.js_modalCont > * + * {
  margin-top: 10px;
}
.js_modalContInner > .js_modalClose + * {
  margin-top: 0;
}





.js_modalClose {
  display: block;
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  overflow: hidden;
  cursor: pointer;
  z-index: 1001;
  background: #333;
-moz-border-radius: 6px;
-webkit-border-radius: 6px;
border-radius: 6px;
}







.js_modalClose::before,
.js_modalClose::after {
  content: "";
  background-color: #222;
  position: absolute;
  top: 5px;
  right: 18px;
  width: 1px;
  height: 26px;
  background:#fff;
}
.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%;
  max-width: 1080px;
  margin: 100px auto;
  padding: 40px;
  background-color: #ccc;
}
.ly_inner h2 {
  font-size: 150%;
  font-weight: bold;
  margin-bottom: 30px;
}
.md_textblock > * + * {
  margin-top: 10px;
}
.md_textblock > * + .js_modalBtnWrap {
  margin-top: 20px;
}

/* PC幅に適用 */
@media (min-width: 768px) {
  .hp_sp {
    display: none !important;
  }
}



/* スマホ幅に適用 */
@media (max-width: 767px) {


.js_modalClose {
right:70px;
}

  .hp_pc {
    display: none !important;
  }
  .js_modalContInner {
    max-height: 400px;
    padding: 20px;
  }
  .js_modalCont {
    max-height: 500px;
  }
  .js_modalClose {
    top: -2px;
  }
  .js_modalClose::before,
  .js_modalClose::after {
    background-color: #fff;
  }
}