@charset "utf-8";
/* CSS Document */


/* 背景固定用クラス */
body.modal-open {
  overflow: hidden; /* 背景をスクロール禁止に */
}



.js-modal {
  display: none; /* 初期は非表示 */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6); /* 半透明の背景 */
  z-index: 9999; /* 手前に出す */
  overflow-y: auto; /* モーダル全体に縦スクロール可 */
}

.js-modal .modal__content {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 90%;
  max-width: 1200px;
  max-height: 90%;
  overflow-y: auto;
  background: #fff;
  padding: 5rem;
  transform: translate(-50%, -50%);
  border-radius: 8px;
  box-sizing: border-box;
    overflow-y: auto; /* 中身が長いときはここをスクロール */
}

.js-modal-close{ position: fixed; top:10px; right: 10px; content: "" ;width: 50px; height: 50px; display: block;  background: url("../images/common/btn_close.svg") no-repeat; text-indent: -5000px; }



/* SP */
@media screen and (max-width: 736px) {
.js-modal .modal__content {
padding: 1.8rem;
  width: 90%;
    max-height: 95%;
}
.js-modal-close{width: 40px; height: 40px; }

}


