/*===modal-footer.css==============================================================*/
#openModalBtn {
  cursor: pointer;
  &:hover {
    color: #8c9292;
  }
}
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;

  &.is-open {
    opacity: 1;
    visibility: visible;
  }
}
.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}
.modal-container {
  position: relative;
  background-color: #fff;
  width: 90%;
  max-width: 800px;
  padding: clamp(30px, calc(25.567010309278352px + 1.0309278350515463vw), 40px) clamp(20px, calc(-0.8350515463917532px + 4.845360824742269vw), 60px);
  border-radius: 10px;
  transform: translateY(-20px);
  transition: transform 0.3s ease;
  z-index: 1001;

  .modal-title {
    color: #404040;
    font-size: 20px;
    text-align: center;
  }
  .modal-body {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  p {
    span {
      display: block;
      text-indent: -1rem;
      padding-left: 1rem;
    }
    a {
      text-decoration: underline;
      &:hover {
        text-decoration: none;
      }
    }
  }
  a.tel-link {
    text-decoration: none;
  }
  @media screen and (min-width: 768px) {
    a.tel-link {
      pointer-events: none;
      cursor: default;
    }
  }
  dl {
    display: flex;
    /* grid-template-columns: repeat(2, 1fr); */
    justify-items: center;
    align-items: center;
    gap: 33px;
    margin-block: 0 clamp(10px, calc(-8.175355450236964px + 2.3696682464454977vw), 25px);

    &.en,
    &.ch {
      gap: 16px;
    }
  }
  dd {
    margin-left: 0;

    .tel {
      display: flex;
      justify-content: center;
      align-items: center;
      gap: 6px;
      line-height: 1.5;
    }
    a.tel-link {
      color: #656565;
      font-size: 28px;
      font-weight: 600;
    }
  }
  .reception {
    font-size: 12px;
  }
  @media (max-width: 576px) {
    .modal-title {
      font-size: 18px;
      margin-top: 0;
      margin-bottom: 16px;
    }

    p {
      a.form {
        font-size: 11px;
      }
    }
    dl {
      display: block;
    }
    dd {
      margin-block: 3vw;
      .tel {
        margin-bottom: 2vw;
      }
    }
  }
}
/* .modal.is-open .modal-container {
  transform: translateY(0);
} */

.modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  color: #7b7b7b;
  cursor: pointer;

  img {
    width: 22px;
    height: 30px;
  }
}

/*===============================================================================*/
