/* ベースのCSS： https://gist.github.com/ghosh/4f94cf497d7090359a5c9f81caf60699 */
/**************************\
  Basic Modal Styles
\**************************/

.modal {
  /*font-family: -apple-system,BlinkMacSystemFont,avenir next,avenir,helvetica neue,helvetica,ubuntu,roboto,noto,segoe ui,arial,sans-serif;*/
}

.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: 100;
}

.modal__container {
  position: relative;
  background-color: rgb(213, 221, 224);
  max-height: 100vh;
  overflow-y: auto;
}

@media (max-width: 1023px) {
  .modal__container {
    max-width: 95%;
    max-height: 95%;
  }
}

.modal__container img {
  width: 100%;
  max-width: 1155px;
  max-height: 782px;
}

@media (max-width: 767px) {
  .modal__content-title {
    font-size: 1.0rem;
  }
}

.modal__image {
  position: relative;
}

.modal__image-caption {
  position: absolute;
  left: 16px;
  bottom: 8px;
  color: #FFFFFF;
}

.modal__header {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
}

.modal__close {
  background: transparent;
  border: 0;
  cursor: pointer;
}

.modal__close_btn {
  display: block;
  position: relative;
  width: 30px;
  height: 30px;
  border-radius: 50%; /* 丸みの度合い */
  background: #666666; /* ボタンの背景色 */
}

.modal__close_btn::before, .modal__close_btn::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 3px;
  height: 21px;
  background: #fff; /* バツ印の色 */
}

.modal__close_btn::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.modal__close_btn::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.modal__content {
  padding: 2rem;
  line-height: 1.5;
  text-align: center;
  font-weight: bold;
}

@media (max-width: 767px) {
  .modal__content {
    padding: 1.5rem 0.5rem 0.5rem;
  }
}

.modal__content h2 {
  margin: 0;
}

.modal__content h2:after {
  display: block;
  content: " ";
  width: 80px;
  height: 1px;
  background-color: #000000;
  margin: 10px auto;
}

.modal__content-caption {
  font-size: 0.9rem;
}

@media (max-width: 767px) {
  .modal__content-caption {
    font-size: 0.6rem;
    font-feature-settings: "palt";
  }
}

.modal__content-link-btn {
  margin: 16px auto;
}

.modal__content-link {
  display: block;
  font-size: 1.2rem;
  width: 388px;
  background: repeating-linear-gradient(-45deg, #363636, #363636 7%, #646464 0px, #646464 93%);
  margin: 0 auto;
}

@media (max-width: 767px) {
  .modal__content-link {
    width: 50%;
    font-size: 0.9rem;
  }
}

.modal__content-link-text {
  color: #ffffff;
  line-height: 40px;
  letter-spacing: 0.1rem;
  margin-top: 4px;
  margin-bottom: 8px;
}

@media (max-width: 767px) {
  .modal__content-link-text {
    line-height: 32px;
    margin: 0 auto;
  }
}

.modal__content-caution {
  font-size: 0.5rem;
}

@media (max-width: 767px) {
  .modal__content-caution {
    font-feature-settings: "palt";
  }
}


/**************************\
  Demo Animation Style
\**************************/
@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 .5s cubic-bezier(0.0, 0.0, 0.2, 1);
}

.micromodal-slide[aria-hidden="false"] .modal__container {
  animation: mmslideIn .5s cubic-bezier(0, 0, .2, 1);
}

.micromodal-slide[aria-hidden="true"] .modal__overlay {
  animation: mmfadeOut .5s cubic-bezier(0.0, 0.0, 0.2, 1);
}

.micromodal-slide[aria-hidden="true"] .modal__container {
  animation: mmslideOut .5s cubic-bezier(0, 0, .2, 1);
}

.micromodal-slide .modal__container,
.micromodal-slide .modal__overlay {
  will-change: transform;
}
