/* ===== 申込・予約セクション（お問い合わせページ専用） ===== */
/* 右余白・横スクロール防止＆背景白（contact ページのみ） */
html.contact-page,
html.contact-page body {
  overflow-x: hidden;
  background: #fff;
}

.main--contact {
  --contact-bg: #ffffff;
  --contact-card: #ffffff;
  --contact-text: #111827;
  --contact-muted: #6b7280;
  --contact-shadow: 0 18px 40px rgba(16, 24, 40, 0.12);
  --contact-radius: 18px;
  --contact-line-green: #19b84b;
  --contact-line-blue: #0b4a75;
  --contact-accent-blue: #0f4d7f;
  --contact-max: 980px;

  margin: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  font-family: system-ui, -apple-system, "Hiragino Kaku Gothic ProN",
    "Noto Sans JP", "Yu Gothic", "Meiryo", sans-serif;
  background: var(--contact-bg);
  color: var(--contact-text);
}

.main--contact * {
  box-sizing: border-box;
}

.contact-wrap {
  max-width: var(--contact-max);
  margin: 0 auto;
  padding: 32px 18px 56px;
}

/* ===== 上段2カード（モバイル: 1列） ===== */
.main--contact .grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: stretch;
}

.main--contact .card {
  background: var(--contact-card);
  border-radius: var(--contact-radius);
  box-shadow: var(--contact-shadow);
  padding: 24px 20px 22px;
  position: relative;
  overflow: hidden;
  min-height: 0;
}

.main--contact .card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 6px;
  background: var(--contact-line-blue);
}

.main--contact .card.line::before {
  background: var(--contact-line-green);
}

.main--contact .card h3 {
  margin: 4px 0 8px;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.main--contact .card p {
  margin: 0;
  color: var(--contact-muted);
  line-height: 1.8;
  font-size: 14px;
}

/* ===== LINEカード中身 ===== */
.main--contact .line-center {
  margin-top: 22px;
  display: grid;
  place-items: center;
  gap: 18px;
}

.main--contact .qr {
  width: 170px;
  height: 170px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
  display: grid;
  place-items: center;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.main--contact .qr img {
  width: 140px;
  height: 140px;
  object-fit: contain;
  display: block;
}

.main--contact .btn-line {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 14px 22px;
  border-radius: 0;
  background: #06C755;
  color: #fff;
  text-decoration: none;
  font-weight: 900;
  letter-spacing: 0.04em;
  box-shadow: 0 10px 22px rgba(25, 184, 75, 0.35);
  transition: transform 0.12s ease, filter 0.12s ease;
}

.main--contact .btn-line:hover {
  transform: translateY(-1px);
  filter: brightness(1.02);
}

.main--contact .btn-line .icon {
  width: 18px;
  height: 18px;
  border-radius: 0;
  background: #fff;
  display: inline-grid;
  place-items: center;
  color: #06C755;
  font-weight: 900;
  font-size: 11px;
}

/* ===== 電話カード ===== */
.main--contact .hours {
  margin-top: 6px;
  font-weight: 700;
  color: var(--contact-muted);
}

.main--contact .tel {
  margin-top: 26px;
  font-size: clamp(28px, 3.3vw, 40px);
  font-weight: 900;
  color: var(--contact-accent-blue);
  letter-spacing: 0.04em;
}

.main--contact .tel a {
  color: inherit;
  text-decoration: none;
}

.main--contact .tel a:hover {
  text-decoration: underline;
}

.main--contact .tel-note {
  margin-top: 18px;
  font-size: 12px;
  color: var(--contact-muted);
  line-height: 1.7;
}

/* ===== 下段：オンライン予約 ===== */
.main--contact .card-wide {
  margin-top: 28px;
  background: var(--contact-card);
  border-radius: var(--contact-radius);
  box-shadow: var(--contact-shadow);
  padding: 28px 26px 26px;
  position: relative;
  overflow: hidden;
}

.main--contact .card-wide::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 6px;
  background: #0b63d1;
}

.main--contact .wide-head {
  text-align: center;
  padding: 8px 10px 18px;
}

.main--contact .wide-head h2 {
  margin: 0;
  font-size: 28px;
  font-weight: 900;
  color: var(--contact-accent-blue);
  letter-spacing: 0.04em;
}

.main--contact .wide-head .underline {
  width: 62px;
  height: 3px;
  background: var(--contact-accent-blue);
  margin: 10px auto 0;
  border-radius: 999px;
}

.main--contact .wide-head p {
  margin: 12px 0 0;
  color: var(--contact-muted);
  font-size: 13px;
}

.main--contact .embed {
  margin-top: 14px;
  background: #f7f9fb;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.main--contact .embed iframe {
  display: block;
  width: 100%;
  height: 760px;
  border: 0;
  min-height: 600px;
}

@media (min-width: 861px) {
  .contact-wrap {
    padding: 44px 22px 64px;
  }

  .main--contact .grid-2 {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }

  .main--contact .card {
    padding: 28px 28px 26px;
    min-height: 330px;
  }

  .main--contact .card h3 {
    font-size: 22px;
    margin: 4px 0 10px;
  }

  .main--contact .btn-line {
    min-height: auto;
  }
}
