/* ===== ご予約の帯：紺を重ねた院内の写真に、白い面（Web予約）と青い面（電話）のボタンを2つ。
   .cbox の白い線の箱はスマホのメニューでも使うので、面にするのはこの帯の中だけ ===== */
.contact { position: relative; z-index: 0; overflow: hidden; display: flex; flex-direction: column; align-items: center; padding: 6%; }
.contact__bg { position: absolute; inset: 0; z-index: -1; background: #2a6a7f; }
.contact__bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.2; mix-blend-mode: luminosity; }
.contact__in { display: flex; flex-direction: column; align-items: center; width: 100%; }
.contact__ttl { color: #fff; font-size: clamp(1.25rem, 1.02rem + 0.98vw, 2rem); font-weight: 700; letter-spacing: 0.08em; text-align: center; }
.contact__boxes { display: flex; justify-content: center; width: 100%; margin-top: 5%; }
.cbox {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 28.125rem;
  margin: 0 1.5rem;
  padding: 2.2rem 0 2.4rem;
  border: 1px solid #fff;
  border-radius: 0.625rem;
  color: #fff;
  transition: background-color 0.6s ease, color 0.6s ease;
}
.cbox svg { width: 3.25rem; height: 3.25rem; margin-bottom: 1rem; }
.cbox__s { font-size: clamp(1.125rem, 1.05rem + 0.33vw, 1.375rem); letter-spacing: 0.08em; }
.cbox__b { font-size: clamp(1.5rem, 1.347rem + 0.65vw, 2rem); font-weight: 700; letter-spacing: 0.08em; line-height: 1.4; }
.cbox__b.en { font-weight: 500; letter-spacing: 0.04em; }
.cbox:hover { background: #fff; color: var(--navy); }
.contact .cbox { box-shadow: 0 8px 24px rgba(4, 36, 48, 0.16); transition: background-color 0.4s ease, border-color 0.4s ease, color 0.4s ease; }
.contact .cbox--web { border-color: #fff; background: #fff; color: var(--navy); }
.contact .cbox--web:hover { border-color: var(--pale); background: var(--pale); }
.contact .cbox--tel { border-color: var(--accent); background: var(--accent); color: #fff; }
.contact .cbox--tel:hover { border-color: var(--navy); background: var(--navy); }
.contact__note { margin-top: 1.5rem; color: rgba(255, 255, 255, 0.85); font-size: 0.8125rem; }

@media (max-width: 40.625rem) {
  .contact { padding: 12% 1.5rem; }
  .contact__boxes { flex-wrap: wrap; margin-top: 1.75rem; }
  .cbox { margin: 0 0 1.25rem; padding: 1.25rem 0; }
  .cbox svg { width: 2.75rem; height: 2.75rem; margin-bottom: 0.6rem; }
  .contact__note { margin-top: 0.25rem; }
}
