
/* モーダル背景 */
.modal {
  display: none; /* 初期状態では非表示 */
  justify-content: center;
  align-items: center;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(40, 80, 85, 0.9);
  animation: fadeout 500ms;
}

.modal.is-show {
  display: flex; /* 初期状態では非表示 */
  animation: fadein 500ms;
}


@keyframes fadein {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
@keyframes fadeout {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

.modal-wrap{
height: 100%;
overflow: scroll;
}


/* モーダルコンテンツ */
.modal-content {
  position: relative;
  width: 92%;
  max-width: 900px;
  background: #000;
}

/* 動画の埋め込みをレスポンシブ対応させる */
.video-container {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  margin: 0 auto;
}
.video-container iframe {
  width: 100%;
  height: 100%;
}

/* 閉じるボタン */
.close {
  position: absolute;
  content: '';
  width: 32px;
  height: 32px;
  top: -42px;
  right: 0;
  cursor: pointer;
  background: url("../images/close.svg") no-repeat;
  background-size: 100%;
}

@media (max-height: 600px) {
.modal-content {
  max-width: 700px;
}
.modal {
padding: 40px 0 0;
}
}











/* ==========================================================================
 Remodal's necessary styles
 ========================================================================== */

html.remodal-is-locked {
overflow: hidden!important;
touch-action: none;
}
.remodal,
[data-remodal-id] {
display: none;
}
.remodal-overlay {
position: fixed;
z-index: 999;
top: -5000px;
right: -5000px;
bottom: -5000px;
left: -5000px;
display: none;
}
.remodal-wrapper {
position: fixed;
z-index: 1000;
top: 0;
right: 0;
bottom: 0;
left: 0;
display: none;
overflow: auto;
text-align: center;
-webkit-overflow-scrolling: touch;
padding: 0 10px 10px;
}
.remodal-wrapper:after {
display: inline-block;
height: 100%;
content: "";
}
.remodal-overlay,
.remodal-wrapper {
backface-visibility: hidden;
}
.remodal {
position: relative;
outline: none;
text-size-adjust: 100%;
padding: 0 0 4%;
}
.remodal-is-initialized {
/* Disable Anti-FOUC */
display: inline-block;
}
.remodal-bg.remodal-is-opening,
.remodal-bg.remodal-is-opened {
filter: blur(30px);
}
.remodal-overlay {
background: rgba(0, 0, 0, 0.65);
}
.remodal-overlay.remodal-is-opening,
.remodal-overlay.remodal-is-closing {
animation-duration: 0.5s;
animation-fill-mode: forwards;
}
.remodal-overlay.remodal-is-opening {
animation-name: remodal-overlay-opening-keyframes;
}
.remodal-overlay.remodal-is-closing {
animation-name: remodal-overlay-closing-keyframes;
}
.remodal {
width: 100%;
transform: translate3d(0, 0, 0);
}
.remodal.remodal-is-opening,
.remodal.remodal-is-closing {
animation-duration: .5s;
animation-fill-mode: forwards;
}
.remodal.remodal-is-opening {
animation-name: remodal-opening-keyframes;
}
.remodal.remodal-is-closing {
animation-name: remodal-closing-keyframes;
}
.remodal,
.remodal-wrapper:after {
vertical-align: middle;
}
@keyframes remodal-opening-keyframes {
from {
transform: scale(1);
opacity: 0;
}
to {
transform: none;
opacity: 1;
filter: blur(0);
}
}
@keyframes remodal-closing-keyframes {
from {
transform: scale(1);
opacity: 1;
}
to {
transform: scale(1);
opacity: 0;
filter: blur(0);
}
}
@keyframes remodal-overlay-opening-keyframes {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
@keyframes remodal-overlay-closing-keyframes {
from {
opacity: 1;
}
to {
opacity: 0;
}
}
@media only screen and (min-width: 1px) {
.remodal {
width: 96%;
max-width: 1200px;
padding: 52px 0 0;
position: relative;
}
.remodal-inner {
background: #fff;
position: relative;
padding: 14px;
}
.close-area{
position: absolute;
top: -42px;
right: 0;
width: 32px;
height: 32px;
    cursor: pointer;
    background: url(../images/close.svg) no-repeat;
    background-size: 100%;
}

@media only screen and (max-width: 768px) {
    .remodal-inner {
        background: #fff;
        position: relative;
        padding: 10px;
    }
}


.close-area:hover{
cursor: pointer;
}
}
