/**
 * filter-and-modal.css
 * /css/filter-and-modal.css
 */

html.is-modal-open body {
  overflow: hidden;
  height: 100%;
}

#detailModal {
  display: none;
  position: fixed;
  top: 10%;
  left: 10%;
  right: 10%;
  bottom: 10%;
  z-index: 3000;
  max-height: 615px;
  margin: auto;
  box-sizing: border-box;
}

html.is-modal-open #detailModal {
  display: block;
  animation-duration: 200ms;
  animation-name: fade-in;
}

#detailModal .modalSlideTrigger {
  display: block;
  position: absolute;
  top: 50%;
  margin: -21px 0 0 0;
  width: 40px;
  height: 0;
  padding-top: 42px;
  overflow: hidden;
}

#detailModal .modalSlideTrigger:hover {
  opacity: .7;
}

#detailModal .btnRight {
  right: 50px;
  background: url(../img/btnNext.png) no-repeat;
}
@media all and (-ms-high-contrast:none) {
    *::-ms-backdrop, :root #detailModal .btnRight { right: 0; }
}
#detailModal .btnLeft {
  left: 50px;
  background: url(../img/btnPrev.png) no-repeat;
}
@media all and (-ms-high-contrast:none) {
    *::-ms-backdrop, :root #detailModal .btnLeft { left: 0; }
}
#detailModal .modalCloseTrigger {
  position: absolute;
  color: #fff;
  background: url("../img/btn_modal_close01.png") top left no-repeat;
  background-size: 41px 41px;
  opacity: 1;
  overflow: hidden;
  padding: 41px 0 0;
  right: 0;
  top: -56px;
  width: 41px;
  height: 0;
}

#detailModal .modalCloseTrigger:active {
	margin-top: 1px;
	}

#iframeWrap {
  position: relative;
  width: auto;
  max-width: 740px;
  margin: auto;
  background: #fff;
  height: 100%;
  box-sizing: border-box;
  -webkit-overflow-scrolling: touch;
}

#iframeWrap iframe {
  border: none;
  width: 100%;
  height: 100%;
  max-height: 100%;
  margin: 0;
  padding: 0;
}

#modalCover {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 2500;
  width: 100%;
  height: 100%;
  background: url(../img/modalcover.png);
  background: rgba(0, 0, 0, .7);
}

html.is-modal-open #modalCover {
  display: block;
  animation-duration: 200ms;
  animation-name: fade-in;
}

@keyframes fade-in {
  0% {
    display: none;
    opacity: 0;
  }

  1% {
    display: block;
    opacity: 0;
  }

  100% {
    display: block;
    opacity: 1;
  }
}


@media only screen and (max-width:736px) {

  html.is-modal-open,
  html.is-modal-open body {
    position: fixed;
    top: 0;
  }

  #detailModal {
    top: 0;
    left: 0;
    right: auto;
    bottom: auto;
    z-index: 3000;
    width: 100%;
    height: 100%;
    max-height: 100%;
    background: #fff;
  }

  #detailModal .modalSlideTrigger {
    display: block;
    position: absolute;
    top: initial;
    bottom: 10px;
    margin: -21px 0 0 0;
    width: 40px;
    height: 0;
    padding-top: 42px;
    overflow: hidden;
  }

  #detailModal .btnRight {
    right: 10px;
  }

  #detailModal .btnLeft {
    left: 10px;
  }

  #detailModal .modalCloseTrigger {
    top: -8px;
    color: #333;
    background: #fff;
    display: block;
    padding: 20px;
    border-radius: 4px;
    font-size: 100%;
  }

  #iframeWrap {
    width: auto;
    height: 100%;
    padding: 35px 0 0;
    margin: 0;
    box-sizing: border-box;
    overflow-x: hidden;
    max-height: none;
    -webkit-overflow-scrolling: touch;
  }

  #iframeWrap iframe {
    border: none;
    width: 100%;
    height: 100%;
    max-height: 100%;
    margin: 0;
    padding: 0;
  }

}