@charset "utf-8";

/*========================================================================================================================


  modal window

  
========================================================================================================================*/

html.is-modalOpen {
  overflow:hidden;
}

.m-modal {
  display:none;
  width:100%;
  height:100%;
  position:fixed;
  top:0;
  left:0;
  z-index:9999;
  background-color:rgba(0,0,0,0.6);
}

.m-modal-window-wrap {
  display:none;
  width:100%;
  height:100%;
  position:fixed;
  top:0;
  left:0;
  z-index:10000;
}

.m-modal-window {
  max-width:90%;
  margin-left:auto;
  margin-right:auto;
  height:100%;
  min-height:300px;
  padding-top:2em;
  padding-bottom:2em;
  display:-webkit-box;
  display:-ms-flexbox;
  display:flex;
  -webkit-box-orient:vertical;
  -webkit-box-direction:normal;
  -ms-flex-direction:column;
  flex-direction:column;
  -webkit-box-pack:center;
  -ms-flex-pack:center;
  justify-content:center;
  -webkit-box-align:center;
  -ms-flex-align:center;
  align-items:center;
  box-sizing:border-box;
}

.m-modal-box {
  max-width:100%;
  max-height:100%;
  background-color:#fff;
  display:-webkit-box;
  display:-ms-flexbox;
  display:flex;
  -webkit-box-orient:vertical;
  -webkit-box-direction:normal;
  -ms-flex-direction:column;
  flex-direction:column;
  padding:0 1em 1.25em 0;
  box-sizing:border-box;
}

.m-modal-box__inner {
  padding:0 1.25em 0 1.25em;
  box-sizing:border-box;
  overflow-y:auto;
}

.m-modal-box__inner:after {
  content:"";
  display:block;
  height:0.5em;
}

.m-modal-box__iframe {
  position:relative;
  width:100%;
  height:600px;
  -webkit-overflow-scrolling:touch;
}

.m-modal-box__iframe iframe {
  width:100%;
  height:100%;
}

.m-modal__btn {
  display:-webkit-box;
  display:-ms-flexbox;
  display:flex;
  -webkit-box-pack:end;
  -ms-flex-pack:end;
  justify-content:flex-end;
}

.m-modal-closeBtn {
  -webkit-appearance:none;
  -moz-appearance:none;
  appearance:none;
  display:inline-block;
  vertical-align:middle;
  border:none;
  margin:0;
  padding:0;
  outline:none;
  text-align:center;
  text-decoration:none;
  cursor:pointer;
  background-color:transparent;
  width:3.5em;
  height:3.5em;
  position:relative;
  margin-right:-1em;
}

.m-modal-closeBtn span {
  display:inline-block;
  vertical-align:middle;
  color:#333;
  line-height:1;
  width:1.25em;
  height:0.1em;
  background:currentColor;
  border-radius:0.1em;
  position:relative;
  transform:rotate(45deg);
}

.m-modal-closeBtn span:before {
  content:'';
  position:absolute;
  top:0;
  left:0;
  width:100%;
  height:100%;
  background:inherit;
  border-radius:inherit;
  transform:rotate(90deg);
}

