@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.4);
  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: scroll;
}

.about {
  position: relative;
  width: 95%;
  margin: 0 auto;
}

.about-btn {
  position: absolute;
  bottom: 4.2%;
  left: 0;
  right: 0;
  width: 100%;
  margin: auto;
}

.about-btn a {
  width: 84.5%;
  display: block;
  margin: 0 auto;
}

.movies .modal__container {
  width: 90%;
  height: auto;
}

.youtube {
  position: relative;
  padding-top: 56.25%;
  height: 0;
  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 {
  position: relative;
  height: auto;
  padding: 2em 2em 2em 1em;
  color: black;
  background: white;
  overflow-y: visible;
  text-align: left;
  border: clamp(0.188rem, -0.027rem + 1.07vw, 0.375rem) solid black;
  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: #ff0000;
}

.guidelines p.notJisage {
  text-indent: 0em;
  padding-left: 1em;
  margin-bottom: 0.6em;
}

.modal__close {
  background: transparent;
}

.modal__btn {
  position: absolute;
  top: clamp(-4.5rem, -2.167rem - 2.92vw, -2.75rem);
  right: 0;
  width: clamp(2.25rem, 1.75rem + 2.5vw, 3.75rem);
  height: 0;
  background: url("../images/01_popup_btn_close.png") left top no-repeat;
  padding-top: clamp(2.25rem, 1.75rem + 2.5vw, 3.75rem);
  background-size: cover;
}

@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 {
    width: 80%;
    max-width: 640px;
    height: 100vh;
    max-height: unset;
    padding: 20vh 0 10vh;
    background: transparent;
  }

  #guidelines .modal__container {
    width: 80%;
    max-width: 800px;
    height: 100vh;
    padding: 20vh 0 10vh;
  }
}
