/* ===== ファーストビュー（全面に明るい診療室の写真、左に緑の大きな言葉。右下に白い四角い面で診療時間） ===== */
.hero { position: relative; height: 960px; }
.hero__slides { position: absolute; inset: 0; overflow: hidden; background: var(--pale); }
.hero__slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1s ease; }
.hero__slide.is-active { opacity: 1; z-index: 1; }
.hero__slide img { width: 100%; height: 100%; object-fit: cover; }
/* 言葉のある左側だけを白く明るくして、緑の文字を読みやすくする（暗く見せない） */
.hero__slides::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.86) 0%, rgba(255, 255, 255, 0.7) 36%, rgba(255, 255, 255, 0) 64%);
  pointer-events: none;
}

.hero__catch {
  position: absolute;
  top: 104px;
  bottom: 0;
  left: 100px;
  right: 40px;
  z-index: 3;
  height: max-content;
  margin: auto 0;
  color: var(--main);
  font-family: var(--kaku);
  font-weight: 500;
}
.hero__catch-main { max-width: 22em; font-size: 2.875rem; line-height: 1.7; letter-spacing: 0.1em; }
.hero__catch-sub { max-width: 26em; color: var(--ink-dark); margin-top: 24px; font-size: 1.25rem; line-height: 1.9; letter-spacing: 0.1em; }
@media (min-width: 768px) and (max-width: 1580px) {
  .hero__catch { top: 0; bottom: 140px; }
}
@media (min-width: 768px) and (max-width: 1080px) {
  .hero__catch { left: 6%; top: 64px; bottom: 260px; }
  .hero__catch-main { font-size: 2.5rem; }
}

/* 診療時間の面：ファーストビューの右下に置いたままの、白い四角い面。上に横書きの見出し、その下に表と予約・住所 */
.hero-time { position: absolute; bottom: -30px; right: 0; z-index: 4; }
.hero-time__in {
  padding: 28px 40px 32px;
  border-radius: 4px 0 0 0;
  background-color: #fff;
  box-shadow: 0 0 40px rgba(20, 52, 46, 0.12);
}
.hero-time__ttl {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--main);
  font-family: var(--maru);
  font-weight: 500;
  font-size: 1.125rem;
  line-height: 1.5;
  letter-spacing: 0.2em;
}
.hero-time__body { width: 584px; }
.hero-time .time-table th, .hero-time .time-table td { padding: 0.5em 0.8em; }
.hero-time .time-table thead th:nth-child(n + 2) { padding: 0.5em 0; }
.hero-time .txt-note { margin: 8px 0; }
.hero-time__box { padding: 12px 24px; background-color: rgba(179, 179, 179, 0.1); font-size: 0.938rem; }
.hero-time__box p { display: flex; flex-wrap: wrap; align-items: center; gap: 0 6px; }
.hero-time__box svg { color: var(--main); }
.hero-time__box .underline { margin-left: 8px; }
.hero-time__box p + p .underline { margin-left: 0; }

@media (max-width: 767px) {
  .hero { height: 130vw; }
  .hero__slides::after { background: linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.8) 60%, rgba(255, 255, 255, 0) 92%); }
  .hero__catch { top: 64px; left: 32px; right: 24px; }
  .hero__catch-main { font-size: 2rem; }
  .hero__catch-sub { margin-top: 8px; font-size: 1.143rem; }
  .hero-time { display: none; }
}
