.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}
.modal.is-open {
  display: block;
}
.modal__container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: white;
  padding: 36px 64px;
  border-radius: 36px;
  width: 600px;
  height: 385px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 36px;
}

.modal__close {
  background-color: #1976d2;
  color: #fff;
  width: 48px;
  aspect-ratio: 1;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal__title {
  text-align: center;
  font-size: 3rem;
  margin-bottom: 16px;
}

.modal__content {
  font-size: 1.25rem;
  text-align: center;
  margin: 0;
  &:not(:last-child) {
    margin-bottom: 16px;
  }
}

span.modal__title {
  color: #1976d2;
}

.modal__mail {
  width: 100%;
  background-color: #dff0ff;
  padding: 16px;
  border-radius: 8px;
  display: flex;
  gap: 10px;
  align-items: center;
}

.modal__mail span {
  text-decoration: none;
  color: var(--main-dark-grey);
}

.mail__icon {
  background-color: #1976d2;
  width: 48px;
  aspect-ratio: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 8px;
}

@media only screen and (max-width: 520px) {
  .modal__container {
    width: 90%;
    padding: 16px;
    border-radius: 16px;
  }
  .modal__title {
    font-size: 2.5rem;
  }
  .modal__mail span {
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
  }
  .mail__button {
    width: 100%;
  }
}
