@charset "UTF-8";
/*--------------------
モーダルのデザイン
--------------------*/
.modal {
  display: none;
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
}
.modal.is_open {
  display: block;
  -webkit-user-select: auto;
     -moz-user-select: auto;
      -ms-user-select: auto;
          user-select: auto;
}
.modal .modal_overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99999;
  background-color: rgba(155, 155, 155, 0.8);
  -webkit-backdrop-filter: blur(2px);
          backdrop-filter: blur(2px);
  will-change: backdrop-filter;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}
.modal .modal_overlay .modal_container {
  width: calc(100% - 48px);
  max-width: 896px;
  max-height: 75vh;
  margin: 0 24px;
  padding-top: 24px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  background-color: #fff;
  -webkit-box-shadow: rgba(0, 0, 0, 0.4) 0px 3px 8px;
          box-shadow: rgba(0, 0, 0, 0.4) 0px 3px 8px;
  border-radius: 4px;
  overflow-y: auto;
  position: relative;
}
.modal .modal_overlay .modal_container .modal_content {
  height: 100%;
  overflow-y: auto;
  padding: 0 24px;
  padding-bottom: 24px;
}
.modal .modal_overlay .modal_container .modal_content__txt {
  margin-top: 24px;
  position: relative;
  border: 2px solid #000;
}
.modal .modal_overlay .modal_container .modal_content__txt::after {
  content: "";
  position: absolute;
  top: -45px;
  left: 50%;
  border: 30px solid transparent;
  border-bottom: 15px solid #000;
  -webkit-transform: translateX(-50%);
          transform: translateX(-50%);
}
.modal .modal_overlay .modal_container .modal_content__btn {
  margin-top: 24px;
}
.modal .modal_overlay .modal_container .modal_content__btn a {
  padding: 16px;
  display: block;
  border: 2px solid red;
}
.modal .modal_overlay .modal_container .modal_content p {
  font-size: 16px;
  font-weight: 900;
  text-align: center;
}
.modal .modal_overlay .modal_container .modal_close {
  margin-top: auto;
  padding: 16px;
  border-top: 1px dashed #ff8f00;
  background: #ececec;
}
.modal .modal_overlay .modal_container .modal_close .btn {
  width: 70%;
  max-width: 250px;
  margin: 0 auto;
  padding: 8px 0;
  display: block;
  border-radius: 4px;
  font-size: 12px;
  font-weight: bold;
  text-align: center;
  color: #fff;
  background: #ff8f00;
  cursor: pointer;
}

@media screen and (min-width: 1025px) {
  .modal .modal_overlay .modal_container .modal_content {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .modal .modal_overlay .modal_container .modal_content.noimg {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }
  .modal .modal_overlay .modal_container .modal_content.noimg > div p {
    text-align: center;
  }
  .modal .modal_overlay .modal_container .modal_content.noimg > div p img {
    max-width: 440px;
  }
  .modal .modal_overlay .modal_container .modal_content__txt {
    margin-top: 0;
    margin-left: 24px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
  }
  .modal .modal_overlay .modal_container .modal_content__txt::after {
    content: "";
    position: absolute;
    top: 50%;
    left: -40px;
    border: 24px solid transparent;
    border-right: 15px solid #000;
    -webkit-transform: translateY(-50%);
            transform: translateY(-50%);
  }
  .modal .modal_overlay .modal_container .modal_content__btn {
    grid-column: 1/3;
    justify-self: center;
    max-width: 440px;
  }
}
.modal[aria-hidden=false] .modal_overlay {
  -webkit-animation: mmfadeIn 0.8s cubic-bezier(0.34, 0.07, 0.095, 0.995);
          animation: mmfadeIn 0.8s cubic-bezier(0.34, 0.07, 0.095, 0.995);
}

.modal[aria-hidden=false] .modal_container {
  -webkit-animation: mmslideIn 0.8s cubic-bezier(0.34, 0.07, 0.095, 0.995);
          animation: mmslideIn 0.8s cubic-bezier(0.34, 0.07, 0.095, 0.995);
}

.modal[aria-hidden=true] .modal_overlay {
  -webkit-animation: mmfadeOut 0.8s cubic-bezier(0.34, 0.07, 0.095, 0.995);
          animation: mmfadeOut 0.8s cubic-bezier(0.34, 0.07, 0.095, 0.995);
}

.modal[aria-hidden=true] .modal_container {
  -webkit-animation: mmslideOut 0.8s cubic-bezier(0.34, 0.07, 0.095, 0.995);
          animation: mmslideOut 0.8s cubic-bezier(0.34, 0.07, 0.095, 0.995);
}

/* Animation */
@-webkit-keyframes mmfadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes mmfadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@-webkit-keyframes mmfadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}
@keyframes mmfadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}
@-webkit-keyframes mmslideIn {
  from {
    -webkit-transform: translateY(30px);
            transform: translateY(30px);
  }
  to {
    -webkit-transform: translateY(0);
            transform: translateY(0);
  }
}
@keyframes mmslideIn {
  from {
    -webkit-transform: translateY(30px);
            transform: translateY(30px);
  }
  to {
    -webkit-transform: translateY(0);
            transform: translateY(0);
  }
}
@-webkit-keyframes mmslideOut {
  from {
    -webkit-transform: translateY(0);
            transform: translateY(0);
  }
  to {
    -webkit-transform: translateY(-30px);
            transform: translateY(-30px);
  }
}
@keyframes mmslideOut {
  from {
    -webkit-transform: translateY(0);
            transform: translateY(0);
  }
  to {
    -webkit-transform: translateY(-30px);
            transform: translateY(-30px);
  }
}