/* モーダル共通スタイル */
.c-modal-trigger {
  display: block;
  margin: auto;
  cursor: pointer;
}

.c-modal .c-modal-overlay {
  align-items: center;
  background: rgba(0,0,0,.6);
  bottom: 0;
  display: flex;
  justify-content: center;
  left: 0;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 1000;
}

.c-modal-wrapper {
  width: 90%;
  max-width: 45.2rem;
  position: relative;
}

.c-modal-wrapper .c-modal-close {
  background: transparent;
  border: 0;
  cursor: pointer;
  position: absolute;
  top: -2.4rem;
  right: 0;
  font-size: 2rem;
  line-height: 1;
  color: #fff;
  z-index: 111;
}

.c-modal-wrapper .c-modal-close::before {
  content: "\2715";
}

.c-modal .c-modal-container {
  width: 100%;
  max-height: 80vh;
  max-width: 45.2rem;
  background-color: #fff;
  position: relative;
  overflow: auto;
}

@media (max-width: 750px) {
  .c-modal .c-modal-container {
    max-height: 70vh;
  }
}

.c-modal .c-modal-header {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

/* モーダルアニメーション */
@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%);
  }
}

.c-modal.micromodal-slide {
  display: none;
}

.c-modal.micromodal-slide.is-open {
  display: block;
}

.c-modal.micromodal-slide[aria-hidden="false"] .c-modal-overlay {
  animation: mmfadeIn .3s cubic-bezier(.0, .0, .2, 1);
}

.c-modal.micromodal-slide[aria-hidden="false"] .c-modal-container {
  animation: mmslideIn .3s cubic-bezier(0, 0, .2, 1);
}

.c-modal.micromodal-slide[aria-hidden="true"] .c-modal-overlay {
  animation: mmfadeOut .3s cubic-bezier(.0, .0, .2, 1);
}

.c-modal.micromodal-slide[aria-hidden="true"] .c-modal-container {
  animation: mmslideOut .3s cubic-bezier(0, 0, .2, 1);
}

.c-modal.micromodal-slide .c-modal-container,
.c-modal.micromodal-slide .c-modal-overlay {
  will-change: transform;
}