@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(255, 255, 255, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  overflow-y: auto;
}

.modal__container {
  position: relative;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.modal__container::-webkit-scrollbar {
  display: none;
}

#about .modal__container {
  width: 90%;
  height: auto;
  margin-top: 30vh;

}

.about {
  position: relative;
  width: 100%;
  height: 0;
  padding-top: calc(1577 / 790 * 100%);
  background: url("../images/rezerotoha.png") left top no-repeat;
  background-size: cover;
  margin-bottom: 10vw;
}

.about-btn {
  width: 69.31%;
  display: block;
  position: absolute;
  bottom: 4.6%;
  left: 0;
  right: 0;
  margin: 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: 75vh;
  position: relative;
  background: transparent;
}

.guidelines {
  height: 75vh;
  padding: 2em 2em 2em 1em;
  color: #f5eae3;
  background: #8676be;
  text-align: left;
  border: 2px solid #fff;
  font-size: clamp(0.7rem, 0.357rem + 1.71vw, 1rem);
  line-height: 1.2;
  overflow: hidden;

  & div {
    height: 100%;
    overflow-y: auto;
    scrollbar-width: none;
  }

  & div::-webkit-scrollbar {
    display: none;
  }
}

.guidelines p {
  text-indent: -1em;
  padding-left: 1em;
  margin-bottom: 0.6em;
}

.guidelines p a {
  color: #e5df00;
}

.guidelines p.notJisage {
  text-indent: 0em;
  padding-left: 1em;
  margin-bottom: 0.6em;
}

.modal__close {
  background: transparent;
  border: 0;
}

.modal__btn {
  position: absolute;
  top: -10%;
  right: 0;
  width: 8vw;
  height: 0;
  background: url("../images/batsu.png") left top no-repeat;
  padding-top: 8vw;
  background-size: cover;
}

.movies .modal__container .modal__btn {
  top: -24%;
}

#about .modal__container .modal__btn {
  top: -5%;
}

#guidelines .modal__container .modal__btn {
  top: -7%;
}

@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 {
    position: relative;
    width: 80%;
    max-width: 640px;
    height: 100vh;
    max-height: unset;
    padding: 10vh 0 10vh;
    background: transparent;
    overflow-y: auto;
    margin-top: 0;
  }

  #guidelines .modal__container {
    width: 80%;
    height: 100vh;
    padding: 7vh 0 7vh;
  }

  .modal__btn {
    top: -5%;
    width: 32px;
    background: url("../images/batsu.png") left top no-repeat;
    padding-top: 32px;
    background-size: cover;
  }

  .movies .modal__container .modal__btn {
    top: -14%;
  }

  #about .modal__container .modal__btn {
    top: -40px;
  }

  #guidelines .modal__container .modal__btn {
    top: 2vh;
  }
}