/* ── お知らせリンク（内容あり記事） ── */
a.index-news-link {
  display: flex;
  align-items: center;
  column-gap: 14px;
  row-gap: 0;
  width: 100%;
  text-decoration: none;
  color: inherit;
}
a.index-news-link:hover .news-text {
  color: var(--primary);
  text-decoration: underline;
}

/* ── Hero (v2: 上にキャッチ・下に2カラム情報) ── */
.hero {
  position: relative;
  min-height: clamp(560px, 80vh, 720px);
  display: flex;
  align-items: stretch;
  overflow: hidden;
  font-family: 'Zen Maru Gothic', 'UD新丸ゴ', 'UD Shin Maru Go', 'Hiragino Maru Gothic ProN', sans-serif;
}
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.4s ease-in-out;
  will-change: opacity;
}
.hero-slide.active { opacity: 1; }
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,.4) 0%, rgba(0,0,0,.25) 40%, rgba(0,0,0,.15) 100%);
  z-index: 1;
}
.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--container-lg);
  margin: 0 auto;
  padding: 56px 20px 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
}
.hero-content { max-width: 720px; display: flex; flex-direction: column; gap: 18px; margin-top: 60px; }
.hero h1 {
  font-size: var(--fs-display-md);
  font-weight: 700;
  color: white;
  line-height: 1.55;
  margin: 0;
  text-shadow: 0 1px 3px rgba(0,0,0,.6), 0 4px 16px rgba(0,0,0,.4);
}
.hero h1 em { color: #FFD06A; font-style: normal; }
.hero-sub {
  font-size: var(--fs-base);
  color: rgba(255,255,255,.95);
  line-height: 1.85;
  text-shadow: 0 1px 6px rgba(0,0,0,.5);
  margin: 0;
}
/* 下段：左に診療科+駅、右隣に診療時間 */
.hero-bottom {
  display: flex;
  gap: 28px;
  align-items: stretch;
  flex-wrap: wrap;
}
.hero-bottom-left { display: flex; flex-direction: column; gap: 14px; justify-content: space-between; }
.hero-departments {
  display: flex;
  gap: 14px;
}
.hero-dept {
  width: 108px; height: 108px;
  border-radius: 50%;
  background: rgba(255,255,255,.96);
  color: var(--primary-dark);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(0,0,0,.22);
  transition: transform .2s, box-shadow .2s;
  gap: 4px;
}
.hero-dept:nth-child(1) { background: rgba(252,222,232,.96); color: #B43568; }
.hero-dept:nth-child(2) { background: rgba(255,235,217,.96); color: #C2671F; }
.hero-dept:nth-child(3) { background: rgba(220,234,247,.96); color: #2A6FB1; }
.hero-dept:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0,0,0,.28); color: var(--primary-dark); }
.hero-dept svg { display: none; }
.hero-dept-label {
  font-size: var(--fs-base);
  line-height: 1.3;
  text-align: center;
  padding: 0 6px;
  font-family: 'UD新丸ゴ', 'UD Shin Maru Go', 'Zen Maru Gothic', 'Hiragino Maru Gothic ProN', sans-serif;
}
.hero-station {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(220,238,227,.96);
  padding: 12px 18px;
  border-radius: 12px;
  font-size: var(--fs-base);
  font-weight: 700;
  color: var(--primary-dark);
  width: 352px;
  max-width: 100%;
  align-self: flex-start;
  box-shadow: 0 4px 14px rgba(0,0,0,.18);
  text-decoration: none;
  font-family: 'UD新丸ゴ', 'UD Shin Maru Go', 'Zen Maru Gothic', 'Hiragino Maru Gothic ProN', sans-serif;
}
.hero-station svg { width: 18px; height: 18px; fill: var(--primary); }
.hero-hours-mini {
  background: rgba(255,255,255,.96);
  border-radius: 10px;
  padding: 14px 18px;
  box-shadow: 0 4px 14px rgba(0,0,0,.18);
  width: 352px;
  max-width: 100%;
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-hours-mini table { border-collapse: collapse; font-size: var(--fs-base); width: 100%; table-layout: auto; }
.hero-hours-mini tbody tr { border-bottom: 1px solid var(--border); }
.hero-hours-mini tbody tr:last-child { border-bottom: 0; }
.hero-hours-mini thead { border-bottom: 1px solid var(--border); }
.hero-hours-mini th, .hero-hours-mini td { padding: 8px 5px; text-align: center; }
.hero-hours-mini thead th { color: var(--text-light); font-weight: 700; font-size: var(--fs-base); }
.hero-hours-mini tbody th { text-align: left; color: var(--text); white-space: nowrap; padding-left: 2px; padding-right: 0; font-weight: 700; font-size: var(--fs-base); }
/* Zen Maru Gothic では●が×より大きく見えるため、シンボルだけ Noto Sans JP に */
.hero-hours-mini .h-circle { color: var(--primary); font-weight: 700; font-family: var(--font); font-size: var(--fs-sm); }
.hero-hours-mini .h-x { color: var(--text-muted); font-family: var(--font); font-weight: 700; }

/* ── Info Bar ── */
.info-bar { background: var(--primary-dark); color: white; padding: 14px 0; }
.info-bar-inner { display: flex; align-items: center; justify-content: center; gap: 36px; flex-wrap: wrap; font-size: var(--fs-sm); }
.info-bar-item { display: flex; align-items: center; gap: 8px; }
.info-bar-item svg { width: 17px; height: 17px; fill: rgba(255,255,255,.7); flex-shrink: 0; }
.info-bar-item strong { font-weight: 700; }
.hours-lines { display: flex; flex-direction: row; gap: 14px; flex-wrap: wrap; }

/* ── お知らせ＋右サイドCTA 2カラム ──
   右側（CTA）は左（お知らせリスト）の高さに合わせて stretch する。 */
.news-with-cta {
  display: grid;
  grid-template-columns: 1fr 352px;
  gap: 40px;
  align-items: stretch;
}
@media (max-width: 900px) {
  .news-with-cta { grid-template-columns: 1fr; gap: 24px; align-items: start; }
}

/* 右サイドの全体（CTA 3ボタン + 初めての方へカード）—間隔 10px に統一 */
.news-side {
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
}

/* CTA カード（縦3ボタン）—残りの高さを 3 ボタンで均等に分配 */
.news-cta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.news-cta-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 18px;
  border-radius: 12px;
  text-decoration: none;
  color: white;
  font-family: var(--font-display);   /* 丸文字 (Zen Maru Gothic) */
  font-weight: 500;
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
  transition: transform .2s, box-shadow .2s, filter .2s;
  flex: 1;
  min-height: 0;
}
.news-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,.14);
  color: white;
  filter: brightness(1.05);
}
/* アイコンはボタン左端に絶対配置、テキストはボタン全幅に対して中央 */
.news-cta-btn svg {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px; height: 28px;
  fill: white;
  flex-shrink: 0;
}
.news-cta-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  line-height: 1.3;
  font-size: var(--fs-md);
  width: 100%;
}
.news-cta-label small {
  font-size: var(--fs-base);
  font-weight: 500;
  opacity: 1;
  margin-top: 4px;
  letter-spacing: .02em;
}
.news-cta-tel  { background: var(--primary); }
.news-cta-line { background: #06C755; }
.news-cta-rsv  { background: var(--accent); }

/* 初めての方へカード（高さ 60px 固定、テキストのみ中央配置） */
.news-first-card {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 60px;
  padding: 0 16px;
  border: 1px solid var(--primary);
  border-radius: 12px;
  background: var(--primary-pale);
  text-decoration: none;
  color: var(--primary);
  font-family: var(--font-display);   /* 丸文字 */
  transition: border-color .2s, background .2s, transform .2s;
  flex-shrink: 0;
}
.news-first-card:hover {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--primary-dark);
  transform: translateY(-2px);
}
.news-first-text { display: flex; align-items: center; line-height: 1.3; }
.news-first-text strong { font-size: var(--fs-md); font-weight: 500; }

/* ── お知らせ見出し+タブを横並びに配置 ── */
.news-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 16px;
  border-bottom: 1px solid var(--primary);
  margin-bottom: 15px;
}
.news-head-title { text-align: left; margin: 0; padding-bottom: 8px; }
/* .news-head-title h2: グローバル h2=2.25rem を継承（旧 1.9rem） */
@media (max-width: 768px) {
  .news-head-title h2 { font-size: var(--fs-md); }
  /* タブが折り返した場合、自分の行内で右端に寄せる */
  .news-head .tab-nav { margin-left: auto; }
  /* セクション見出しから表（罫線）までの余白を詰める */
  .news-head { gap: 4px; margin-bottom: 8px; }
  .news-head-title { padding-bottom: 10px; }
}
.news-head .tab-nav {
  margin-bottom: 0;
  border-bottom: 0;
}

/* ── タブ切替（お知らせ/ブログ） ── */
.tab-nav {
  display: flex;
  gap: 4px;
  border-bottom: 2px solid var(--border);
  margin-bottom: 28px;
}
.tab-btn {
  background: none;
  border: none;
  padding: 12px 28px;
  font-size: var(--fs-base);
  font-weight: 700;
  color: var(--text-light);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: color .2s, border-color .2s;
}
.tab-btn:hover { color: var(--primary-dark); }
.tab-btn.active { color: var(--primary-dark); border-bottom-color: var(--primary); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }
.index-tab-foot { text-align: right; margin-top: 16px; }
.index-tab-foot a { font-size: var(--fs-base); color: var(--primary); }

/* ── 診療内容カード（横浜LA内科風: アイコン円＋見出し＋箇条書き＋右下矢印） ── */
.medical-grid-square {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.medical-card-v2 {
  background: var(--section-alt);
  border: 2px solid var(--border);
  border-radius: 20px;
  padding: 24px 22px;
  aspect-ratio: 1 / 1;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  position: relative;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.medical-card-v2:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(0,0,0,.08);
  border-color: var(--primary);
}
.mc-icon-wrap {
  width: 130px; height: 130px;
  background: white;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
  flex-shrink: 0;
}
.mc-icon-wrap svg { width: 60px; height: 60px; fill: var(--primary); }
.medical-card-v2 h3 {
  font-weight: 700;
  color: var(--primary-dark);
  margin: auto 0;
  text-align: center;
}
/* 箇条書きをカード中央寄りに配置（チェックボックスは左揃え軸を保持） */
.mc-list {
  list-style: none;
  padding: 0;
  margin: auto 0;
}
.mc-list li {
  font-size: var(--fs-base);
  color: var(--text);
  padding: 4px 0 4px 28px;
  position: relative;
  line-height: 1.55;
  white-space: nowrap;
}
.mc-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 7px;
  width: 20px; height: 20px;
  background: white;
  border: 1.5px solid var(--primary);
  border-radius: var(--radius-sm);
  box-sizing: border-box;
}
.mc-list li::after {
  content: '';
  position: absolute;
  left: 5px; top: 13px;
  width: 10px; height: 5px;
  border-left: 2px solid var(--primary);
  border-bottom: 2px solid var(--primary);
  transform: rotate(-45deg);
}
.mc-arrow {
  position: absolute;
  right: 14px; bottom: 14px;
  width: 26px; height: 26px;
  background: var(--primary);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s, transform .2s;
}
.mc-arrow svg { width: 12px; height: 12px; fill: white; }
.medical-card-v2:hover .mc-arrow,
.feature-card:hover .mc-arrow { background: var(--primary-dark); }

/* ── 院長メッセージ ── */
.director-message {
  display: grid;
  /* 写真列 : 本文列 = 4 : 6 */
  grid-template-columns: minmax(280px, 0.4fr) 0.6fr;
  gap: 60px;
  align-items: stretch;
}
.director-photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--primary-light);
  box-shadow: 0 4px 24px rgba(0,0,0,.08);
}
.director-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* 院長メッセージ：写真2枚重ね
   写真1（dp-photo-main）の幅 = stack 幅の 1/1.2（≒83.33%）。
   写真2（dp-photo-sub）は写真1の子要素で left:20%/top:80%/width:100% を指定。
   → 写真2 right = 写真1.left(0) + 写真2.left(20% × photo1_w) + 写真2.width(100% = photo1_w)
                 = 1.2 × photo1_w = stack 幅
     つまり「写真2の右端」と「stack の右端」が一致 → grid gap がそのまま
     「写真2右端 → 本文左端」の距離になる。
   写真2 bottom = 写真1.top(0) + 0.8 × photo1_h + photo1_h = 1.8 × photo1_h
   写真1 height = stack 幅 × (1/1.2) × (2/3) ≒ 55.56% stack 幅
   写真2 bottom = 1.8 × 55.56% = 100% stack 幅 → コンテナ正方形(1:1)で下端一致 */
.director-photo-stack {
  position: relative;
  width: 100%;
  /* 写真2 bottom = 1.85 × 写真1高さ = 1.85 × (83.33% × 2/3) = 102.78% stack_w
     コンテナ高さがちょうどこの値になるアスペクト比に */
  aspect-ratio: 1 / 1.028;
  overflow: visible;
}
.director-photo-stack .dp-photo-main {
  position: absolute;
  top: 0;
  left: 0;
  width: calc(100% / 1.2);     /* ≒ 83.33%（写真2が右側20%はみ出すぶんを差し引いた幅） */
  aspect-ratio: 3 / 2;          /* height = width × 2/3 で自動 */
  border-radius: var(--radius-lg);
  overflow: visible;             /* 子の写真2を見せるため visible */
  background: var(--primary-light);
  box-shadow: 0 8px 28px rgba(0,0,0,.12);
}
.director-photo-stack .dp-photo-main > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
  border-radius: var(--radius-lg);
  z-index: 2;                    /* ← 写真1の画像を最前面に */
}
.director-photo-stack .dp-photo-sub {
  position: absolute;
  left: 20%;                    /* 写真1幅の20% */
  top: 85%;                     /* 写真1高さの85% */
  width: 100%;                  /* = 写真1の幅 */
  aspect-ratio: 3 / 2;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--primary-light);
  box-shadow: 0 8px 28px rgba(0,0,0,.12);
  z-index: 1;                   /* ← 写真2は写真1の下に表示 */
}
.director-photo-stack .dp-photo-sub img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}
.director-catch {
  font-weight: 700;
  color: var(--primary-dark);
  letter-spacing: .02em;
  margin: 0 0 28px;
}
.director-body { line-height: 1.95; color: var(--text); }
.director-body p { margin: 0 0 16px; }
.director-name {
  margin-top: 24px !important;
  text-align: right;
  font-size: var(--fs-base);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0 !important;
}
@media (max-width: 768px) {
  .director-message { grid-template-columns: 1fr; gap: 24px; }
  .director-photo { max-width: 240px; margin: 0 auto; }
  .director-photo-stack { max-width: none; margin: 0; aspect-ratio: 1 / 1.028; height: auto; min-height: 0; }
  .director-catch { margin-bottom: 20px; }
}

/* ── 当院の特徴: 6カード（長方形・2列×3行、左:アイコン / 右:テキスト、左上タブ） ── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 32px;
}
.feature-card {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: 24px;
  min-height: 240px;
  padding: 44px 28px 28px;
  background: white;
  border: 2px solid transparent;
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 20px rgba(0,0,0,.06);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(0,0,0,.08);
  border-color: var(--primary);
  color: inherit;
}
.feature-card-tab {
  position: absolute;
  top: 0;
  left: 0;
  padding: 8px 18px;
  background: var(--primary);
  color: white;
  font-family: var(--font-display);
  font-size: var(--fs-base);
  font-weight: 700;
  letter-spacing: .04em;
  border-radius: 0 0 12px 0;
  line-height: 1;
}
.feature-card-tab .ft-num { font-size: var(--fs-md); margin-left: 4px; }
.feature-card-icon {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transform: translateX(30px);
}
@media (max-width: 1100px) {
  .feature-card-icon { transform: none; }
}
.feature-card-icon img,
.feature-card-icon svg {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}
.feature-card-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}
.feature-card-title {
  font-weight: 700;
  color: var(--primary-dark);
  line-height: 1.4;
  text-align: center;
  margin: 0;
}
.feature-card-text {
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--text-light);
  text-align: center;
  margin: 0;
}
@media (max-width: 600px) {
  .feature-grid { grid-template-columns: 1fr; gap: 12px; }
  .feature-card { min-height: 0; column-gap: 16px; padding: 44px 20px 24px; }
  .feature-card-icon { width: 90px; height: 90px; }
  /* .feature-card-title はグローバル h3 mobile=1.25rem を継承 */
  .feature-card-text { font-size: var(--fs-base); }
}
/* ── 初めての方へ バナー ── */
.first-visit-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: 20px;
  padding: 40px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  color: white;
}
.first-visit-banner h2 { margin: 0 0 8px; color: white; }
.first-visit-banner p { font-size: var(--fs-base); line-height: 1.8; opacity: .9; margin: 0; }
.first-visit-banner .fv-btn {
  background: white;
  color: var(--primary-dark);
  padding: 14px 32px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform .2s, box-shadow .2s;
}
.first-visit-banner .fv-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,.15); }
.first-visit-banner .fv-btn svg { width: 16px; height: 16px; fill: var(--primary-dark); }

/* ── アクセス（地図＋外観写真＋交通アクセス：about.htmlから移設） ── */
.access-layout {
  display: grid;
  grid-template-columns: 1fr 460px;
  gap: 48px;
  align-items: stretch;
}
.access-layout .transport-item p { white-space: nowrap; font-size: var(--fs-base); color: var(--text); }
@media (max-width: 900px) {
  .access-layout { grid-template-columns: 1fr; align-items: start; }
  .access-layout .transport-item p { white-space: normal; }
}

/* ── 施設案内（写真ギャラリー） ── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.gallery-item {
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  overflow: hidden;
  background: var(--primary-light);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-caption { font-size: var(--fs-sm); color: var(--text-light); text-align: center; margin-top: 24px; }

/* ── よくある質問（FAQ）──── faq.htmlと同スタイル */
.faq-list { max-width: 860px; margin: 0 auto; display: flex; flex-direction: column; gap: 8px; }
.faq-item {
  border-radius: var(--radius-md);
}
.faq-item summary {
  background: var(--primary-light);
  border-radius: var(--radius-md);
  padding: 16px 24px;
  cursor: pointer;
  font-weight: 500;
  color: var(--text);
  font-size: var(--fs-base);
  display: flex;
  align-items: center;
  gap: 16px;
  list-style: none;
  line-height: 1.55;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before {
  content: 'Q';
  flex-shrink: 0;
  width: 40px; height: 40px;
  background: #ffffff;
  color: var(--primary-dark);
  border: 1px solid var(--primary-dark);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: var(--fs-base);
  font-weight: 500;
}
.faq-item summary::after {
  content: '＋';
  margin-left: auto;
  color: var(--primary-dark);
  font-size: var(--fs-md);
  font-weight: 400;
  transition: transform .3s cubic-bezier(0.4, 0.4, 0, 1);
}
.faq-item[open] summary::after { transform: rotate(135deg); }
.faq-item-body {
  padding: 24px;
  font-size: var(--fs-base);
  line-height: 1.9;
  color: var(--text);
}
@supports (interpolate-size: allow-keywords) {
  :root { interpolate-size: allow-keywords; }
}
.faq-item::details-content {
  block-size: 0;
  overflow: clip;
  opacity: 0;
  transition:
    block-size .3s cubic-bezier(0.4, 0.4, 0, 1),
    opacity .3s cubic-bezier(0.4, 0.4, 0, 1),
    content-visibility .3s allow-discrete;
}
.faq-item[open]::details-content {
  block-size: auto;
  opacity: 1;
}

@media (max-width: 968px) {
  .medical-grid-square { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .first-visit-banner { flex-direction: column; text-align: center; padding: 32px 24px; }
}
@media (max-width: 768px) {
  .hero { min-height: calc(100svh - 60px - 48px - max(8px, env(safe-area-inset-bottom))); aspect-ratio: auto; align-items: stretch; }
  /* モバイルでは診療科カードを非表示にしてヒーローをスッキリ */
  .hero-departments { display: none; }
  .hero-inner { padding: 50px 20px 20px; }
  .hero-content { margin-top: 0; }
  .hero-bottom { gap: 20px; }
  .hero h1 { font-size: var(--fs-lg); }
  .info-bar-inner { flex-direction: column; gap: 10px; text-align: center; }
  .hours-lines { justify-content: center; }
  .medical-grid-square { grid-template-columns: 1fr; gap: 14px; }
  .medical-card-v2 {
    aspect-ratio: auto;
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-areas: "icon title" "list list";
    column-gap: 16px;
    padding: 18px 20px 22px;
  }
  .mc-icon-wrap {
    grid-area: icon;
    width: 65px; height: 65px;
    margin-bottom: 0;
    align-self: center;
  }
  .mc-icon-wrap svg { width: 32px; height: 32px; }
  .medical-card-v2 h3 {
    grid-area: title;
    align-self: center;
    text-align: left;
    margin: 0;
  }
  .mc-list { grid-area: list; margin: 12px 0 0; }
  .mc-list li { white-space: normal; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .tab-btn { padding: 10px 18px; font-size: var(--fs-sm); }
  .tab-nav { margin-bottom: 8px; }
  .first-visit-banner .fv-btn { display: flex; justify-content: center; width: 100%; box-sizing: border-box; padding: 9px 32px; }
  /* サブテキスト短縮に合わせて縦余白を詰める */
  .first-visit-banner { gap: 16px; padding: 24px 20px; }
  .first-visit-banner h2 { margin-bottom: 4px; }
}

/* ≤375px (iPhone SE/13 mini等) でヒーロー内のカードを安全に収める */
@media (max-width: 375px) {
  .hero-station { font-size: var(--fs-sm); padding: 10px 14px; }
  .hero-hours-mini { padding: 12px 12px; }
  .hero-hours-mini table { font-size: var(--fs-sm); }
  .hero-hours-mini th, .hero-hours-mini td { padding: 7px 3px; }
  .hero-hours-mini tbody th { padding-left: 0; }
}

/* ── マルキー（画像コンベア） ── */
.marquee {
  overflow: hidden;
  padding: 0;
  background: linear-gradient(to bottom, var(--bg) 0%, var(--bg) 50%, var(--section-alt) 50%, var(--section-alt) 100%);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 40s linear infinite;
}
.marquee-track img {
  width: 300px;
  height: 300px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  flex-shrink: 0;
  display: block;
  margin-right: 30px;
}
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(calc(-1 * (300px + 30px) * 7)); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}
@media (max-width: 768px) {
  .marquee { padding: 0; }
  .marquee-track { animation-duration: 28s; }
  .marquee-track img { width: 180px; height: 180px; margin-right: 18px; }
  @keyframes marquee-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(calc(-1 * (180px + 18px) * 7)); }
  }
}
