@charset "UTF-8";

.modal-element {
  display: none;
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, .5);
  transition: all 1s ease-in-out;
  z-index: 99999;
}

.modal-open {
  cursor: pointer;
}

.modal-element .modal-body {
  width: min(1050px, 90vw);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: show 0.6s linear 0s;
  filter: drop-shadow(0px 2px 6px #777);
}

.modal-txt-box {
  display: block;
  max-width: 1050px;
  max-height: 80vh;
  margin: 0 auto;
  background: #fff;
  box-shadow: 4px 4px 64px rgba(0, 0, 0, .7);
  overflow-y: auto;
  padding: 20px 40px;
}
@media only screen and (max-width: 640px) {
  .modal-txt-box {
    padding: 10px 20px;
  }
}
.modal-title {
  font-family: "FOT-TsukuNewsMinPr6-L";
  font-size: 20px;
  font-weight: 700;
  text-align: center;
}
@media only screen and (max-width: 640px) {
  .modal-title {
    font-size: 15px;
  }
}
.modal-txt {
  line-height: 1.8;
}
@media only screen and (max-width: 640px) {
  .modal-txt {
    font-size: 12px;
  }
}
.modal-close {
  position: absolute;
  top: 0;
  right: 0;
  transform: translateY(-100%);
  cursor: pointer;
}
.modal-close-button {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
  width: 44px;
  height: 44px;
  color: #fff;
  background: transparent;
  border: 0;
  cursor: pointer;
  transition: all .4s ease-out;
}

.modal-close-button:hover {
  transform: scale(1.1);
  transition: all .2s linear;
}

.modal-close-button::before,
.modal-close-button::after {
  content: '';
  position: relative;
  grid-column: 1 / 2;
  grid-row: 1 / 2;
  margin: auto;
  width: 140%;
  height: 2px;
  background: currentColor;
}
.modal-close-button::before {
  transform: rotate(-45deg);
}
.modal-close-button::after {
  transform: rotate(45deg);
}
.modal-button {
  width: min(320px, 100%);
  margin: 40px auto 0;
  text-align: center;
}
.modal-button a{
  display: block;
}
.modal-button img {
  display: block;
  width: 100%;
  height: auto;
}
.modal-img {
  width: 90px;
  margin: 0 0 0 auto;
}
.modal-img img {
  width: 100%;
  height: auto;
}
@media only screen and (max-width: 640px) {
  .modal-img {
    width: 80px;
    margin: 20px auto 0;
  }
}


@keyframes show{
  from{
      opacity: 0;
  }
  to{
      opacity: 1;
  }
}