.reserve-modal,
.page-reserve,
.reserve-card {
  font-family: "Montserrat", "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Yu Gothic", sans-serif;
}

.reserve-modal[hidden] {
  display: none;
}

.reserve-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 28px 16px;
  overflow: auto;
  background: #747474;
}

body.modal-open {
  overflow: hidden;
}

.reserve-card {
  position: relative;
  width: min(760px, 100%);
  margin: auto;
  padding: 56px 36px 48px;
  background: #f1eeea;
  border-radius: 48px;
  color: #707070;
  text-align: center;
}

.reserve-card h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 700;
}

.reserve-rule {
  display: block;
  width: 64px;
  height: 4px;
  margin: 12px auto 28px;
  background: #d6bc6d;
  border-radius: 999px;
}

.reserve-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 46px;
  height: 46px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.reserve-close::before,
.reserve-close::after {
  content: "";
  position: absolute;
  left: 10px;
  top: 22px;
  width: 26px;
  height: 2px;
  background: #707070;
}

.reserve-close::before {
  transform: rotate(45deg);
}

.reserve-close::after {
  transform: rotate(-45deg);
}

.reserve-layout {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  gap: 8px 24px;
  align-items: center;
  max-width: 560px;
  margin: 0 auto;
  text-align: left;
}

.reserve-or {
  grid-column: 1 / -1;
  justify-self: start;
  width: 100px;
  margin: 4px 0 8px;
  text-align: center;
  font-size: 18px;
}

.reserve-row {
  display: contents;
}

.reserve-phone {
  display: grid;
  place-items: center;
  width: 100px;
  height: 100px;
  flex: 0 0 auto;
  border-radius: 28px;
  background: #d6bc6d;
}

.reserve-phone img {
  width: 60px;
  height: 60px;
}

.reserve-tel {
  color: #d6bc6d;
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.reserve-line {
  flex: 0 0 auto;
  width: 100px;
  height: 100px;
}

.reserve-line img {
  width: 100px;
  height: 100px;
  border-radius: 24px;
}

.reserve-line-qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  margin: 20px auto 0;
  text-align: center;
}

.reserve-line-qr__link {
  display: block;
  line-height: 0;
}

.reserve-line-qr img {
  display: block;
  width: 120px;
  height: auto;
  margin-inline: auto;
  aspect-ratio: 1;
  border-radius: 8px;
}

.reserve-line-qr span {
  display: block;
  width: 100%;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
  color: #707070;
  letter-spacing: 0.02em;
  text-align: center;
}

.reserve-row p {
  margin: 0;
  font-size: clamp(15px, 1.7vw, 20px);
  line-height: 1.7;
}

.reserve-line-text {
  white-space: nowrap;
}

.page-reserve {
  min-height: 100vh;
  margin: 0;
  padding: 40px 16px;
  background: #747474;
  display: grid;
  place-items: center;
}

.page-reserve .reserve-card {
  width: min(760px, 100%);
}

@media (max-width: 860px) {
  .reserve-modal {
    padding: 20px 12px;
  }

  .reserve-card {
    padding: 52px 20px 36px;
    border-radius: 32px;
  }

  .reserve-line-text {
    white-space: normal;
  }
}

@media (max-width: 640px) {
  .reserve-card {
    padding: 56px 16px 28px;
    border-radius: 24px;
  }

  .reserve-layout {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 12px 14px;
  }

  .reserve-phone,
  .reserve-line,
  .reserve-line img {
    width: 72px;
    height: 72px;
  }

  .reserve-phone {
    border-radius: 20px;
  }

  .reserve-phone img {
    width: 42px;
    height: 42px;
  }

  .reserve-line img {
    border-radius: 18px;
  }

  .reserve-line-qr img {
    width: 100px;
  }

  .reserve-line-qr span {
    font-size: 11px;
  }

  .reserve-or {
    width: 72px;
  }

  .reserve-tel {
    font-size: clamp(22px, 6vw, 32px);
  }

  .reserve-row p {
    font-size: 14px;
  }

  .reserve-close {
    top: 12px;
    right: 12px;
  }
}
