@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.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.modal__container {
  background-color: black;
  position: relative;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.modal__container::-webkit-scrollbar {
  display: none;
}

#ytb01 .modal__container {
  width: 90%;
  height: auto;
}

#ytb02 .modal__container,
#ytb03 .modal__container {
  width: 72%;
  max-width: 300px;
  height: auto;
}

.youtube-horizontal {
  position: relative;
  padding-top: 56.25%;
  height: 0;
  overflow: hidden;
  max-width: 100%;
}

.youtube-vertical {
  position: relative;
  padding-top: 177.78%;
  height: 0;
  overflow: hidden;
  max-width: 100%;
}

.youtube-horizontal iframe,
.youtube-horizontal object,
.youtube-horizontal embed,
.youtube-vertical iframe,
.youtube-vertical object,
.youtube-vertical 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;
  background: transparent;
}

.guidelines {
  height: auto;
  padding: 2em 2em 2em 1em;
  color: white;
  background: #796bae;
  overflow-y: auto;
  text-align: left;
  font-size: clamp(0.7rem, 0.471rem + 1.14vw, 0.9rem);
  line-height: 1.2;
}

.guidelines p {
  text-indent: -1em;
  padding-left: 1em;
  margin-bottom: 0.6em;
}

.guidelines p a {
  color: pink;
}

.guidelines p.notJisage {
  text-indent: 0em;
  padding-left: 1em;
  margin-bottom: 0.6em;
}

.modal__close {
  background: transparent;
  border: 0;
}

.modal__btn {
  position: absolute;
  top: clamp(-56px, calc(-32px - ((24 * (100vw - 320px)) / 447)), -32px);
  right: 0;
  width: clamp(1.5rem, 0.784rem + 3.58vw, 2.5rem);
  height: 0;
  background: url("../images/batsu.png") left top no-repeat;
  padding-top: clamp(1.5rem, 0.784rem + 3.58vw, 2.5rem);
  background-size: cover;
}

#ytb02 .modal__container .modal__btn,
#ytb03 .modal__container .modal__btn {
  top: -10%;
}

#guidelines .modal__container .modal__btn {
  top: clamp(50px, calc(66px - ((16 * (100vw - 320px)) / 447)), 66px);
}

@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: 768px) {
  #ytb01 .modal__container {
    width: 72%;
    max-width: 640px;
    height: auto;
  }

  #ytb02 .modal__container,
  #ytb03 .modal__container {
    width: 30%;
    min-width: 300px;
    max-width: 300px;
    height: auto;
  }

  #guidelines .modal__container {
    width: 80%;
    height: 100vh;
    padding: 20vh 0 10vh;
  }

  .modal__btn {
    top: clamp(-60px, calc(-46px - ((14 * (100vw - 767px)) / 333)), -46px);
    width: clamp(1.875rem, 0.763rem + 2.71vw, 2.625rem);
    background: url("../images/batsu.png") left top no-repeat;
    padding-top: clamp(1.875rem, 0.763rem + 2.71vw, 2.625rem);
    background-size: cover;
  }

  #ytb02 .modal__container .modal__btn,
  #ytb03 .modal__container .modal__btn {
    top: clamp(-60px, calc(-46px - ((14 * (100vw - 767px)) / 333)), -46px);
  }

  #guidelines .modal__container .modal__btn {
    top: 12vh;
  }
}

@media screen and (min-width: 1281px) {
  #guidelines .modal__container {
    width: 60%;
    max-width: 800px;
    padding: 15vh 0 10vh;
  }

  #guidelines .modal__container .modal__btn {
    top: 7vh;
  }
}
