@charset "utf-8";
/* common */
/* モーダル起動時　背景の動きを止める */
body.modal-active {
  overflow-y: hidden;
}
.modal-video {
  cursor: pointer;
}
/* モーダル箱 */
.js-modal__container {
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease-out 0s, transform .3s ease-out 0s;
  position: fixed;
  z-index: 9999;
  width: 100%;
  transform: translate(-50%, -50%);
  top: 50%;
  left: 50%;
  max-width: 1000px;
  aspect-ratio: 16 / 9;
}
.js-modal__container:has(.short) {
  aspect-ratio: 9 / 16;
}
.js-modal__container.active {
  opacity: 1 !important;
  visibility: visible;
}
.js-modal__inner {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
}
.js-modal__inner:has(.short) {
  aspect-ratio: 9 / 16;
}
.js-modal__close-btn {
  position: absolute;
  right: -60px;
  top: -60px;
  width: 50px;
  aspect-ratio: 1;
  cursor: pointer;
  background-color: transparent;
  border: none;
  padding: 0;
  appearance: none;
}
.js-modal__close-btn:before {
  transform: rotate(45deg)
}
.js-modal__close-btn:after {
  transform: rotate(-45deg)
}
.js-modal__close-btn::before, .js-modal__close-btn::after {
  content: '';
  position: absolute;
  height: 2px;
  width: 100%;
  top: 50%;
  left: 0;
  margin-top: -1px;
  background: #C4C4C4;
  border-radius: 5px;
  transition: .3s ease-out;
}
.js-modal__close-btn:hover::before, .js-modal__close-btn:hover::after {
  background: #ffffff;
  height: 3px;
}
.js-modal__background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 120%;
  background-color: rgba(0, 0, 0, .9);
  z-index: 1002;
}
/*テキスト*/
/* モーダルテキストの中身 */
[id^="modal_text_contents"] {
  display: none;
}
.modal-txt.js-modal__container {
  max-width: 1100px;
  width: 90.0%;
  background: #fff;
}
.modal-txt .js-modal__body {
  padding: 40px 54px;
}
.modal-txt .js-modal__inner {
  overflow: auto;
  max-height: 70vh;
}
/*-------------------------画像----------------------------*/
.modal-img.js-modal__container {
  width: auto;
  background: #fff;
}
.modal-img .js-modal__inner img {
  max-height: 80vh;
  max-width: 100%;
}
/*-------------------------youtube----------------------------*/
.modal-video {
  overflow: hidden;
}
.modal-video img {
  transition: transform .3s ease-out;
}
.modal-video .image {
  position: relative;
}
.modal-video .image .play-btn {
  display: inline-block;
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: url(/content/dam/casio/global/common/css_js/img/video_play_btn.svg) no-repeat;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: 50% 0;
  height: 16%;
  min-height: 50px;
  aspect-ratio: 1.1;
  z-index: 1;
  transition: opacity .1s ease-out;
  cursor: pointer;
}
.modal-video .image:hover img {
  transform: scale(1.05);
  transition: all .3s ease-out;
}
.modal-movieyoutube {
  position: absolute;
  width: 100%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  aspect-ratio: 16 / 9;
}
.movie-youtube-inner {
  padding-top: 56.25%;
  position: relative;
  height: 0;
  overflow: hidden;
}
.modal-movieyoutube.short {
  aspect-ratio: 9 / 16;
}
.short .movie-youtube-inner {
  padding-top: 177.77%;
}
.movie-youtube-inner iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
}
/*-------------------------otherpage----------------------------*/
.modal_otherpage {
  width: 100%;
  padding: 0;
  box-sizing: border-box;
}
.other_page_inner {
  padding-top: 56.25%;
  position: relative;
  height: 0;
  overflow: hidden;
}
.other_page_inner iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
}
@media (max-width: 767px) {
  .js-modal__container, .modal-img.js-modal__container {
    width: 90%;
  }
  .modal-txt .js-modal__body {
    padding: 10px;
  }
  .js-modal__close-btn {
    right: 0;
    width: 10vw;
  }
  .modal-iframe .js-modal__inner {
    max-height: 80vh;
    align-items: flex-end;
    overflow: hidden;
  }
  .modal-txt .js-modal__inner {
    min-height: 50vh;
    align-items: flex-start;
  }
  .other_page_inner {
    padding-top: calc(100%/9*16);
  }
}