.modal {
  display: none;
}
.is-open.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow-y: auto;
  display: block;
  height: 100%;
  width: 100vw;
  z-index: 10;
  animation: openAnim 0.6s both;
}
.is-open.modal::before {
  content: "";
  height: 100vh;
  width: 100vw;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10;
  background-color: rgba(0, 0, 0, 0.7);
  animation: openAnim 0.4s both;
}
@keyframes openAnim {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 100%;
  }
}
.fadeout.modal {
  animation: fadeOut 0.4s;
  animation-fill-mode: both;
}
@keyframes fadeOut {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}
.modal_content {
  display: block;
  position: relative;
  width: 660px;
  height: auto;
  margin: 90px auto;
  background-color: white;
  z-index: 11;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 1px;
}
.modal_content::-webkit-scrollbar {
  display: none;
}
.modal_header {
  position: relative;
  height: 60px;
}
.modal_header-close {
  display: block;
  position: absolute;
  top: 0;
  right: 0;
  height: 60px;
  width: 60px;
  margin-top: 10px;
  margin-right: 10px;
  cursor: pointer;
}
.modal_header-close::before,
.modal_header-close::after {
  content: "";
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  height: 1px;
  width: 23px;
  background-color: #7e7e7e;
  transform: translate(-50%) rotate(45deg);
}
.modal_header-close::after {
  transform: translate(-50%) rotate(-45deg);
}

.modal_main-date {
  display: block;
  width: calc(100% - 160px);
  margin: auto;
  color: #ac221d;
  font-size: 24px;
  letter-spacing: 0.06em;
  font-family: "Times New Roman";
  line-height: 1.5;
}
.modal_main-date span {
  font-size: 14px;
  font-family: "Noto Sans Japanese", sans-serif;
}
.modal_main-ttl {
  width: calc(100% - 160px);
  margin: auto;
  font-size: 20px;
  letter-spacing: 0.05em;
  line-height: 1.5;
}
.modal_main-img {
  margin-top: 20px;
  width: 100%;
  height: auto;
}
.modal_main-caption {
  width: calc(100% - 160px);
  margin: auto;
  font-size: 12px;
  color: #5a5a5a;
  margin-top: 10px;
}
.modal_main-body {
  width: calc(100% - 160px);
  margin: auto;
  margin-top: 28px;
  font-size: 14px;
  letter-spacing: 0.03em;
  line-height: 2;
}
.modal_fotter {
  display: flex;
  position: relative;
  width: calc(100% - 160px);
  margin: 60px auto;
  justify-content: space-between;
  align-items: center;
}

.modal_fotter-prev,
.modal_fotter-next {
  position: relative;
  width: 64px;
  padding: 15px 0;
  cursor: pointer;
}
.modal_fotter-prev {
  text-align: right;
}
.modal_fotter-prev::before,
.modal_fotter-next::before {
  content: "";
  position: absolute;
  bottom: 15px;
  left: 0;
  height: 4px;
  width: 64px;
  background-size: contain;
  transition: transform 0.4s ease;
}
.modal_fotter-prev::before {
  background-image: url(../png/modal_prev_arrow%402x.png);
}
.modal_fotter-next::before {
  background-image: url(../png/modal_next_arrow%402x.png);
}
.modal_fotter-close {
  display: block;
  position: relative;
  height: 60px;
  width: 60px;
  cursor: pointer;
  border: 1px solid #acacac;
  border-radius: 50%;
  transition: background-color 0.4s ease;
}

.modal_fotter-close::before,
.modal_fotter-close::after {
  content: "";
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  height: 1px;
  width: 23px;
  background-color: #7e7e7e;
  transform: translate(-50%) rotate(45deg);
}
.modal_fotter-close::after {
  transform: translate(-50%) rotate(-45deg);
}

@media all and (min-width: 769px) {
  .modal_fotter-prev:hover::before,
  .modal_fotter-next:hover::before {
    transition: transform 0.4s ease;
    transform: translateX(-10px);
  }
  .modal_fotter-next:hover::before {
    transform: translateX(10px);
  }
  .modal_fotter-close:hover {
    transition: background-color 0.4s ease;
    background-color: #f3f3f3;
  }
}

@media all and (max-width: 768px) {
  .is-open.modal {
    align-items: initial;
  }
  .modal_content {
    top: 0;
    width: calc(100% - 40px);
    margin-top: 30px;
    margin-bottom: 30px;
  }
  .modal_header {
    background-color: white;
    height: 28px;
  }
  .modal_header-close {
    margin-top: 0;
    margin-right: 0;
  }
  .modal_main {
    background-color: white;
    margin-top: 20px;
  }
  .modal_main-date {
    width: calc(100% - 40px);
    font-size: 20px;
  }
  .modal_main-ttl {
    width: calc(100% - 40px);
    font-size: 16px;
  }
  .modal_main-caption {
    width: calc(100% - 40px);
    font-size: 14px;
  }
  .modal_main-body {
    width: calc(100% - 40px);
    margin-top: 25px;
  }
  .modal_fotter {
    box-sizing: border-box;
    background-color: white;
    width: calc(100%);
    padding: 30px 20px;
    margin: 0 auto;
  }
  .modal_fotter-prev:active::before,
  .modal_fotter-next:active::before {
    transition: transform 0.4s ease;
    transform: translateX(-10px);
  }
  .modal_fotter-next:active::before {
    transform: translateX(10px);
  }
  .modal_fotter-close:active {
    transition: background-color 0.4s ease;
    background-color: #f3f3f3;
  }
}
