body.js-modal-show {
  overflow: hidden;
}

/* ===============
モーダル
=============== */
.m-modal {
  position: fixed;
  left: 0;
  top: 0;
  z-index: -99999;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.75);
  opacity: 0;
  transition: opacity 0.3s ease;
  cursor: pointer;
  pointer-events: none;
  visibility: hidden;
}
/* モーダル表示時および表示・非表示時のアニメーション中 */
.m-modal.js-modal-show,
.m-modal.js-modal-transition {
  z-index: 99999;
  visibility: visible;
}
/* モーダル表示中 */
.m-modal.js-modal-show {
  opacity: 1;
  pointer-events: auto;
}

/* 表示トリガー要素 */
.m-modal-open-button {
  cursor: pointer;
}

/* 非表示トリガー要素 */
.m-modal-close-button {
  display: inline-block;
  vertical-align: middle;
  border: .5px solid;
  -webkit-border-radius: 3px;
  border-radius: 3px;
  padding: 0 8px;
  line-height: 33px;
  background-color: #fff;
  border-color: #959595;
  color: #646464;
  font-size: 14px;
}
.m-modal-close-button::before {
  content: '';
  overflow: hidden;
  display: inline-block;
  text-indent: 200%;
  white-space: nowrap;
  vertical-align: -2px;
  line-height: 1;
  background-image: url(/sp/images/common-img-sprite.png);
  background-repeat: no-repeat;
  -webkit-background-size: 158px auto;
  background-size: 158px auto;
  background-position: 0 -541px;
  height: 15px;
  width: 11px;
  margin-right: 5px;
}


/* 本文 */
.m-modal-contents {
  position: relative;
  width: 100%;
  height: 100%;
  background-color: #fff;
  pointer-events: auto;
  cursor: auto;
}
.m-modal-header { border-top: 2px solid #e4007f; background-color:#fdebf5; padding:12px 16px; }
.m-modal-wrapper { height:100%; color:#333; }
.m-modal-wrapper .m-modal-inner { overflow: auto; padding:30px 0; height: calc( 100% - 61px ); box-sizing:border-box; }

/* テキストの設定SP */
.m-modal-wrapper .m-modal-inner .m-modal-title-text { font-size:18px; font-weight:bold; margin:0 20px 10px; }
.m-modal-wrapper .m-modal-inner .m-modal-title-text:nth-child(n + 2) { margin: 20px 20px 10px; }
.m-modal-wrapper .m-modal-inner p { font-size:16px; font-weight:normal; padding:0 20px; line-height:1.83333; }



@media (769px <= width) {
  body.js-modal-show {
    margin-right: 16px;
  }

  .m-modal-close-button {
    border: none;
    -webkit-border-radius: 0;
    border-radius: 0;
    padding: 0;
    line-height: normal;
    background-color: transparent;
    font-size: 14px;
    white-space:nowrap;
    position: absolute;
    cursor: pointer;
    top: -84px;
    right: 0;
    width: 41px;
    height: 64px;
    background-image: url("/com/images/common/common-img-sprite.png");
    background-position: 0 -1203px;
    background-size: auto;
    text-indent: 100%;
    overflow: hidden;
  }
  .m-modal-close-button::before { content: none; }
  .m-modal-close-button:hover { opacity: .7; }

  .m-modal-contents {
    margin: calc(50vh - 541px / 2 - 15px) auto;
    padding: 30px 10px 0 30px;
    width: 758px;
    height: 541px;
    border: 1px solid #888;
    background-color: #fefefe;
  }
  .m-modal-header { background-color:transparent; padding:0; border:none; }
  .m-modal-wrapper { height:100%; }
  .m-modal-wrapper .m-modal-inner { padding:0 30px 0 0; height:100%; }
  
  /* テキストの設定PC */
  .m-modal-wrapper .m-modal-inner .m-modal-title-text { font-size:16px; font-weight:bold; margin:20px 0 0; }
  .m-modal-wrapper .m-modal-inner .m-modal-title-text:nth-child(n + 2) { margin: 20px 0 0; }
  .m-modal-wrapper .m-modal-inner .m-modal-title-text.pc-m-modal-title-text-large { margin:0 0 30px; font-size:24px; line-height:1.5; }
  .m-modal-wrapper .m-modal-inner p { font-size:16px; font-weight:normal; margin-top:20px; padding:0; }
}
