@charset "utf-8";

h3 {
  margin: 0 auto 1.2em;
  text-align: center;
  font-size: clamp(1.2rem, 0.857rem + 1.71vw, 1.5rem);
  font-weight: bold;
  letter-spacing: 2px;
}

h4 {
  font-size: clamp(1vw, 3.6vw, 1.2em);
  font-weight: bold;
  margin-bottom: 0.4em;
}

h4:not(:first-of-type) {
  margin-top: 1.2em;
}

h4 span {
  font-size: clamp(0.64vw, 2.304vw, 0.768em);
  font-weight: normal;
}

.modal {
  display: none;
}

.modal.is-open {
  display: block;
}

.modal__overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.modal__container {
  background: transparent;
  position: relative;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.modal__container::-webkit-scrollbar {
  display: none;
}

#about .modal__container {
  width: 100%;
  height: 100vh;
  padding: 15vh 0 10vh;
  overflow-y: auto;
}

#story .modal__container {
  width: 100%;
  height: 100vh;
  padding: 20vh 0 10vh;
  overflow-y: auto;
}

.about {
  position: relative;
  width: 100%;
  margin: 0 auto;
}

.about-btn {
  position: relative;
  width: 100%;
  margin: 1em auto 0;
}

.about-btn a {
  width: 91.18%;
  display: block;
  margin: 0 auto;
}

.movies .modal__container {
  width: 90%;
  height: auto;
}

.youtube {
  position: relative;
  padding-top: 56.25%;
  height: 0;
  overflow: hidden;
  max-width: 100%;
}

.youtube iframe,
.youtube object,
.youtube embed {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

#guidelines .modal__container {
  width: 90%;
  height: 100vh;
  padding: 15vh 0 10vh;
  overflow-y: auto;
  position: relative;
}

.guidelines {
  height: auto;
  padding: 2em 2em 2em 1em;
  color: white;
  background: black;
  overflow-y: auto;
  text-align: left;
  border: clamp(0.188rem, -0.027rem + 1.07vw, 0.375rem) solid #2fa4a8;
  font-size: clamp(0.7rem, 0.357rem + 1.71vw, 1rem);
  line-height: 1.2;
}

.guidelines p {
  text-indent: -1em;
  padding-left: 1em;
  margin-bottom: 0.6em;
}

.guidelines p a {
  color: #fff000;
}

.guidelines p.notJisage {
  text-indent: 0em;
  padding-left: 1em;
  margin-bottom: 0.6em;
}

.modal__close {
  background: transparent;
}

.modal__btn {
  position: absolute;
  top: -25%;
  right: 0;
  width: 10vw;
  height: 0;
  background: url("../images/00_popup_btn_close.png") left top no-repeat;
  padding-top: 10vw;
  background-size: cover;
  border: 1px solid white;
}

.movies .modal__container .modal__btn {
  top: -24%;
}

#about .modal__container .modal__btn {
  top: 6vh;
  right: 5%;
}

#guidelines .modal__container .modal__btn {
  top: 8vh;
}

#story .modal__container .modal__btn {
  top: 14vh;
  right: 5%;
}

@keyframes mmfadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes mmfadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

@keyframes mmslideIn {
  from {
    transform: translateY(15%);
  }
  to {
    transform: translateY(0);
  }
}

@keyframes mmslideOut {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-10%);
  }
}

.micromodal-slide {
  display: none;
}

.micromodal-slide.is-open {
  display: block;
}

.micromodal-slide[aria-hidden="false"] .modal__overlay {
  animation: mmfadeIn 0.3s cubic-bezier(0, 0, 0.2, 1);
}

.micromodal-slide[aria-hidden="false"] .modal__container {
  animation: mmslideIn 0.3s cubic-bezier(0, 0, 0.2, 1);
}

.micromodal-slide[aria-hidden="true"] .modal__overlay {
  animation: mmfadeOut 0.3s cubic-bezier(0, 0, 0.2, 1);
}

.micromodal-slide[aria-hidden="true"] .modal__container {
  animation: mmslideOut 0.3s cubic-bezier(0, 0, 0.2, 1);
}

.micromodal-slide .modal__container,
.micromodal-slide .modal__overlay {
  will-change: transform;
}

@media screen and (min-width: 601px) {
  .movies .modal__container {
    width: 80%;
    max-width: 800px;
    height: auto;
  }

  #about .modal__container,
  #story .modal__container {
    width: 80%;
    max-width: 640px;
    height: 100vh;
    max-height: unset;
    padding: 20vh 0 10vh;
    background: transparent;
    overflow-y: auto;
  }

  #guidelines .modal__container {
    width: 80%;
    height: 100vh;
    padding: 20vh 0 10vh;
  }

  .modal__btn {
    top: -5%;
    width: 42px;
    background: url("../images/00_popup_btn_close.png") left top no-repeat;
    padding-top: 42px;
    background-size: cover;
  }

  .movies .modal__container .modal__btn {
    top: -14%;
  }

  #about .modal__container .modal__btn {
    top: 13vh;
  }

  #story .modal__container .modal__btn {
    top: 10vh;
  }

  #guidelines .modal__container .modal__btn {
    top: 10vh;
  }
}
