/*===modal-footer.css==============================================================*/
#openModalBtn {
  cursor: pointer;
  color: #fff;
  &: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(20px, calc(25.567010309278352px + 1.0309278350515463vw), 40px) clamp(20px, calc(-0.8350515463917532px + 4.845360824742269vw), 40px);
  transform: translateY(-20px);
  transition: transform 0.3s ease;
  z-index: 1001;

  .modal-title {
    color: #404040;
    font-size: 20px;
    text-align: center;
  }
  .modal-body {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-items: start;
    margin-block: 0 clamp(15px, calc(-2.25px + 2.875vw), 38px);
  }
  ul.notes {
    font-size: 11px;
    padding: 0;
    margin: 0;

    li {
      display: block;
      text-indent: -1rem;
      padding-left: 1rem;
      margin-bottom: 0.3em;

      &.fw-b {
        font-weight: bold;
      }
    }
    ul.sub-notes {
      margin: 0;
      padding: 0;
    }
    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;
    flex-direction: column;
    justify-items: center;
    align-items: center;
    height: 100%;
    margin-block: 0;
  }
  dt {
    display: flex;
    align-items: center;
    min-height: 75px;
    display: none;
  }
  dd {
    display: flex;
    align-items: center;
    height: 100%;
    padding-top: 0.5em;
    margin-left: 0;

    &.tel-group {
      flex-direction: column;
    }
    p {
      font-weight: bold;
      text-align: center;
      margin: 0;
    }
    .reception {
      font-size: 12px;
      text-align: center;
    }
    .tel {
      display: flex;
      justify-content: center;
      align-items: center;
      gap: 6px;
    }
    a.tel-link {
      font-size: 18px;
      font-weight: 600;
    }
    &.mail-group {
      a {
        font-weight: bold;
        text-decoration: underline;
        &:hover {
          text-decoration: none;
        }
      }
    }
  }
  br.sp {
    display: none;
  }
  @media (max-width: 576px) {
    .modal-title {
      font-size: 18px;
      margin-top: 0;
      margin-bottom: 16px;
    }
    .modal-body {
      grid-template-columns: 1fr;
    }
    p {
      a.form {
        font-size: 11px;
      }
    }
    dl {
      display: block;
    }
    dt {
      img {
        width: 85%;
      }
    }
    dd {
      height: auto;
      p {
        font-size: 12px;
      }
      .tel {
        margin-bottom: 2vw;
      }
      a.tel-link {
        font-size: 16px;
      }
      &.mail-group {
        margin-bottom: 1em;
      }
    }
    br.sp {
      display: block;
    }
  }
}
/* .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;
  }
}

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