.modal {
  opacity: 0;
  visibility: hidden;
  position: fixed;
  z-index: 99999;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  transition: opacity .3s, visibility .3s;
}
.modal__overlay {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  opacity: 0;
  overflow-y: auto;
  transition: opacity .3s;
}
.modal__dialog {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 83px 83px 83px 83px;
}
.modal__box {
  background-color: #fff;
  max-width: 1000px;
  border-radius: 10px;
  overflow: hidden;
}
.modal__header {
  position: relative;
  padding: 36px 31px 32px 31px;
  text-align: center;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}
.modal__header-title {
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 500;
  font-size: 2.4rem;
  line-height: 1;
  text-align: center;
  color: #000;
}
.modal__content {
  font-family: "Noto Sans JP", sans-serif;
  padding: 26px 31px 48px 31px;
}
.modal__content-paragraph {
  max-width: 540px;
  font-weight: 400;
  font-size: 1.6rem;
  line-height: 1.875;
  text-align: left;
  color: #000;
}
.modal__content-contact {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 29px;
  font-weight: 500;
  font-size: 1.6rem;
  line-height: 1.875;
  margin-top: 31px;
}
.modal__content-contact a {
  text-decoration: underline;
}
.modal__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 500;
  font-size: 1.4rem;
  width: 104px;
  height: 34px;
  border-radius: 17px;
  background: #434343;
  color: #fff;
  border: 1px solid #fff;
  transition: filter .3s;
  margin-top: 2.9rem;
}
.modal__btn:hover {
  filter: brightness(0.8);
}
.modal.is-open {
  opacity: 1;
  visibility: visible;
}
.modal.is-open .modal__overlay {
  opacity: 1;
}
#footer .right {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1.2rem;
}
.modal-open {
  width: 23.3rem;
  height: 4.2rem;
  border-radius: 2.1rem;
  background: #434343;
  border: 1px solid #fff;
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 500;
  font-size: 1.6rem;
  line-height: 1;
  color: #fff;
  transition: opacity .3s;
}
.modal-open:hover {
  opacity: .6;
}

@media screen and (max-width: 768px) {
  .modal__dialog {
    padding: 32px;
  }
}

@media screen and (max-width: 751px) {
  #footer .right {
    justify-content: center;
  }
  #footer #copyright {
    width: 100%;
    text-align: center;
  }
  .modal__dialog {
    padding: 32px;
  }
  .modal__header-title {
    font-size: 2.0rem;
  }
  .modal__content-contact {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 7px;
    margin-top: 16px;
  }
}
@media screen and (max-width: 451px) {
  #footer .right {
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
  }
}
@media screen and (max-width: 374px) {
  .modal__header-title {
    font-size: 2.0rem;
  }
  .modal__dialog {
    padding: 16px;
  }
}
