.c-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.c-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.c-modal__overlay {
  background: rgba(0, 0, 0, 0.8);
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.c-modal.is-open .c-modal__overlay {
  opacity: 1;
}

.c-modal__dialog {
  position: relative;
  width: min(960px, calc(100% - 40px));
  margin: 0 auto;
  background: #fff;
  border-radius: 8px;
  top: 50%;
  transform: translateY(-45%);
  opacity: 0;
  transition:
    opacity 0.45s ease,
    transform 0.45s ease;
}

.c-modal.is-open .c-modal__dialog {
  opacity: 1;
  transform: translateY(-50%);
}

.c-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  border: none;
  background: transparent;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: #2f509f;
}

.c-modal__content {
  position: relative;
}

.c-modal__illust {
  position: absolute;
  right: -20px;
  bottom: -5px;
}

.c-modal__body {
  padding: 60px;
}

.c-modal__lead {
  text-align: center;
  color: #2f509f;
  font-weight: 700;
  line-height: 1.8;
  margin: 0 0 40px;
  font-size: 1.8rem;
}

.c-modal__main {
  text-align: center;
}

.c-modal__note {
  margin: 12px 0 0;
  font-size: 14px;
  color: #111;
  font-weight: 600;
}

.c-modal__illust img {
  width: 205px;
  height: auto;
  display: block;
}

a.c-modal__tel {
  justify-content: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 1.8px;
}

@media screen and (max-width: 1024px) {
  .c-modal__body {
    padding: 40px 20px;
  }

  .c-modal__content {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .c-modal__lead {
    font-size: 1.6rem;
    margin-bottom: 180px;
  }

  .c-modal__illust {
    position: absolute;
    right: 0;
    bottom: 144px;
    left: 50%;
    transform: translateX(-50%);
  }

  .c-modal__illust img {
    width: 180px;
    margin: 0 auto;
  }
}