/* ============================================================
   麻布クリニック — 共通スタイルシート
   Design: Pure White Luxury
   全ページ白系のみ。ダーク背景完全廃止。
   ゴールドはCTA・アクセントライン・ラベルのみ。
   Fonts: Noto Serif JP (見出し) + Noto Sans JP (本文) + Cormorant Garamond (英語)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;1,300;1,400&family=Noto+Sans+JP:wght@300;400;500&family=Noto+Serif+JP:wght@200;300;400&display=swap');

/* ============================================================
   CSS変数
   ============================================================ */
:root {
  --white:       #ffffff;
  --off-white:   #fafaf8;
  --surface:     #f5f4f0;
  --surface-mid: #eeede9;

  --text-dark:   #2a2a28;
  --text-mid:    #555550;
  --text-light:  #888884;
  --text-muted:  #b0b0ac;

  --gold:        #c4a35a;
  --gold-deep:   #a8893a;
  --gold-light:  #e8d5a0;
  --gold-pale:   #faf6ec;

  --border:      #e8e8e4;
  --border-mid:  #d8d8d2;
}

/* ============================================================
   リセット & ベース
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 17px;
}

body {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 300;
  background-color: var(--white);
  color: var(--text-dark);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.85;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Noto Serif JP', serif;
  font-weight: 300;
  letter-spacing: 0.1em;
  line-height: 1.5;
  color: var(--text-dark);
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s ease;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol { list-style: none; }

/* ============================================================
   レイアウト
   ============================================================ */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

@media (min-width: 640px)  { .container { padding: 0 2.5rem; } }
@media (min-width: 1024px) { .container { padding: 0 3rem; } }

/* ============================================================
   ヘッダー — 純白・極細ゴールドライン
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(196,163,90,0.1);
}

/* トップバー — オフホワイト */
.header-topbar {
  background: var(--surface);
  color: var(--text-mid);
  text-align: center;
  padding: 0.4rem 1rem;
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.65rem;
  letter-spacing: 0.35em;
  border-bottom: 1px solid var(--border);
  display: none;
}

@media (min-width: 768px) { .header-topbar { display: block; } }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding: 0 1.5rem;
}

@media (min-width: 768px) { .header-inner { height: 80px; padding: 0 2.5rem; } }

.site-logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
  text-decoration: none;
}

.site-logo .logo-ja {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.25rem;
  font-weight: 300;
  color: var(--text-dark);
  letter-spacing: 0.12em;
}

.site-logo .logo-en {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.6rem;
  font-weight: 300;
  color: var(--gold-deep);
  letter-spacing: 0.4em;
  margin-top: 3px;
}

.header-nav {
  display: none;
  align-items: center;
  gap: 2.5rem;
}

@media (min-width: 1024px) { .header-nav { display: flex; } }

.nav-link {
  position: relative;
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--text-mid);
  transition: color 0.2s ease;
  font-family: 'Noto Sans JP', sans-serif;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after { width: 100%; }

.nav-link:hover,
.nav-link.active { color: var(--gold-deep); }

.header-cta {
  display: none;
  align-items: center;
  gap: 1rem;
}

@media (min-width: 768px) { .header-cta { display: flex; } }

.header-phone {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--text-dark);
}

.header-phone:hover { color: var(--gold-deep); }

.mobile-menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-dark);
}

@media (min-width: 1024px) { .mobile-menu-btn { display: none; } }

.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--white);
  z-index: 200;
  padding: 2rem 1.5rem;
  overflow-y: auto;
}

.mobile-menu.open {
  display: flex;
  flex-direction: column;
}

.mobile-menu-close {
  align-self: flex-end;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-dark);
  font-size: 1.5rem;
  margin-bottom: 2rem;
}

.mobile-menu-nav {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.mobile-nav-link {
  display: block;
  padding: 1rem 0;
  font-family: 'Noto Serif JP', serif;
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--text-dark);
  border-bottom: 1px dotted var(--border-mid);
}

.mobile-nav-link:hover { color: var(--gold-deep); }

.mobile-menu-cta {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* ============================================================
   ボタン
   ============================================================ */
.btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--gold);
  color: #ffffff;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  padding: 0.875rem 2.5rem;
  border: 1px solid var(--gold);
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-gold:hover {
  background: var(--gold-deep);
  border-color: var(--gold-deep);
  color: #ffffff;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--text-dark);
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.8rem;
  font-weight: 300;
  letter-spacing: 0.12em;
  padding: 0.75rem 2rem;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
}

.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold-deep);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--text-dark);
  color: #ffffff;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  padding: 0.875rem 2rem;
  border: 1px solid var(--text-dark);
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
}

.btn-primary:hover {
  background: var(--text-mid);
  border-color: var(--text-mid);
  color: #ffffff;
}

.btn-block { width: 100%; }

/* ============================================================
   フッター — オフホワイト系（ダーク廃止）
   ============================================================ */
.site-footer {
  background: var(--surface);
  color: var(--text-mid);
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .footer-inner { grid-template-columns: 1.5fr 1fr 1fr; }
}

.footer-logo .logo-ja {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.2rem;
  font-weight: 300;
  color: var(--text-dark);
  letter-spacing: 0.12em;
}

.footer-logo .logo-en {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.6rem;
  font-weight: 300;
  color: var(--gold-deep);
  letter-spacing: 0.4em;
  margin-top: 4px;
  display: block;
}

.footer-desc {
  margin-top: 1rem;
  font-size: 0.85rem;
  font-weight: 300;
  line-height: 2;
  color: var(--text-light);
  font-family: 'Noto Sans JP', sans-serif;
}

.footer-section-title {
  font-family: 'Noto Serif JP', serif;
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--text-dark);
  letter-spacing: 0.1em;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px dotted var(--border-mid);
}

.footer-nav-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-nav-link {
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--text-light);
  font-family: 'Noto Sans JP', sans-serif;
  transition: color 0.2s;
  letter-spacing: 0.05em;
}

.footer-nav-link:hover { color: var(--gold-deep); }

.footer-schedule-item {
  font-size: 0.85rem;
  font-weight: 300;
  margin-bottom: 0.5rem;
  font-family: 'Noto Sans JP', sans-serif;
  color: var(--text-light);
}

.footer-schedule-item .dept { color: var(--gold-deep); }

.footer-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 300;
}

.footer-web-reserve {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.75rem;
  font-weight: 300;
  color: var(--gold-deep);
  font-family: 'Noto Sans JP', sans-serif;
  transition: opacity 0.2s;
}

.footer-web-reserve:hover { opacity: 0.7; }

.footer-copyright {
  border-top: 1px dotted var(--border-mid);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 300;
  color: var(--text-muted);
  font-family: 'Noto Sans JP', sans-serif;
  letter-spacing: 0.05em;
}

/* ============================================================
   フローティングCTA
   ============================================================ */
/* SP版: 画面下部に横並び・幅いっぱい */
.floating-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  flex-direction: row;
  gap: 0;
  opacity: 0;
  transform: translateY(100%);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  box-shadow: 0 -2px 16px rgba(0,0,0,0.10);
}

/* PC版: 右下に縦並び（従来通り） */
@media (min-width: 768px) {
  .floating-cta {
    bottom: 1.5rem;
    right: 1.5rem;
    left: auto;
    width: auto;
    flex-direction: column;
    gap: 0.75rem;
    transform: translateY(1rem);
    box-shadow: none;
  }
}

.floating-cta.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* SP版: 各ボタンを均等幅に */
.floating-cta > a {
  flex: 1;
  justify-content: center;
}

@media (min-width: 768px) {
  .floating-cta > a {
    flex: none;
  }
}

.floating-phone {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.25rem;
  background: white;
  border: none;
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
  color: var(--text-dark);
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  transition: background 0.2s;
  text-decoration: none;
}

.floating-phone:hover {
  background: var(--surface);
}

/* ============================================================
   ページヒーロー（下層ページ共通）— 白系
   ============================================================ */
.page-hero {
  position: relative;
  padding: 7rem 0 3.5rem;
  background: var(--surface);
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

@media (min-width: 768px) { .page-hero { padding: 8rem 0 4.5rem; } }

.page-hero-bg {
  position: absolute;
  inset: 0;
}

.page-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.08;
  filter: grayscale(30%);
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(245,244,240,0.95) 0%, rgba(245,244,240,0.75) 100%);
}

.page-hero-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 80% 50%, rgba(196,163,90,0.06) 0%, transparent 60%);
}

.page-hero-content {
  position: relative;
  z-index: 10;
}

.page-hero-label {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.8rem;
  font-weight: 300;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 1.25rem;
}

.page-hero h1 {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(1.6rem, 3.5vw, 2.5rem);
  font-weight: 300;
  color: var(--text-dark);
  letter-spacing: 0.12em;
  margin-bottom: 0.5rem;
}

.page-hero-line {
  width: 2.5rem;
  height: 1px;
  background: var(--gold);
  margin: 1.25rem 0 1.5rem;
}

.page-hero-subtitle {
  font-size: 0.9rem;
  font-weight: 300;
  line-height: 2;
  color: var(--text-mid);
  font-family: 'Noto Sans JP', sans-serif;
  letter-spacing: 0.06em;
  max-width: 32rem;
}

/* パンくず */
.breadcrumb {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 0;
}

.breadcrumb-inner {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 300;
  color: var(--text-muted);
  font-family: 'Noto Sans JP', sans-serif;
  letter-spacing: 0.05em;
}

.breadcrumb-inner a {
  color: var(--text-muted);
  transition: color 0.2s;
}

.breadcrumb-inner a:hover { color: var(--gold-deep); }
.breadcrumb-inner .sep { font-size: 0.55rem; }

/* ============================================================
   セクション共通
   ============================================================ */
.section-label {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.8rem;
  font-weight: 300;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold-deep);
  display: block;
  margin-bottom: 1rem;
}

.section-title {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  font-weight: 300;
  color: var(--text-dark);
  letter-spacing: 0.1em;
}

.section-line {
  width: 2.5rem;
  height: 1px;
  background: var(--gold);
  margin: 1.25rem auto 0;
}

.section-line-left { margin: 1.25rem 0 0; }

.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

/* ============================================================
   カード
   ============================================================ */
.clinic-card {
  background: var(--white);
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.clinic-card:hover {
  border-color: var(--gold);
  box-shadow: 0 4px 24px rgba(0,0,0,0.04);
  transform: translateY(-2px);
}

/* ============================================================
   グリッド
   ============================================================ */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) { .grid-2 { grid-template-columns: 1fr 1fr; } }

.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 640px)  { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .grid-3 { grid-template-columns: 1fr 1fr 1fr; } }

.grid-4 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 640px)  { .grid-4 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .grid-4 { grid-template-columns: 1fr 1fr 1fr 1fr; } }

/* ============================================================
   フェードインアニメーション
   ============================================================ */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   診療時間テーブル
   ============================================================ */
.schedule-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
  font-weight: 300;
}

.schedule-table th {
  background: var(--surface-mid);
  color: var(--text-dark);
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 400;
  padding: 0.75rem 0.6rem;
  text-align: center;
  letter-spacing: 0.05em;
  font-size: 0.85rem;
  border-bottom: 1px solid var(--border);
}

.schedule-table th:first-child {
  background: var(--gold);
  color: #ffffff;
}

.schedule-table td {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 300;
  padding: 0.75rem 0.6rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
  color: var(--text-mid);
  background: var(--white);
}

.schedule-table tr:nth-child(even) td {
  background: var(--off-white);
}

/* ============================================================
   装飾
   ============================================================ */
.gold-gradient-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.gold-border-top {
  border-top: 1px solid var(--gold);
}

.dotted-divider {
  border: none;
  border-top: 1px dotted var(--border-mid);
  margin: 2rem 0;
}

/* ============================================================
   ユーティリティ
   ============================================================ */
.text-center { text-align: center; }
.text-left   { text-align: left; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.py-12 { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.py-16 { padding-top: 3rem; padding-bottom: 3rem; }
.py-24 { padding-top: 4.5rem; padding-bottom: 4.5rem; }
.max-w-3xl { max-width: 48rem; margin-left: auto; margin-right: auto; }
.max-w-4xl { max-width: 56rem; margin-left: auto; margin-right: auto; }
.max-w-5xl { max-width: 64rem; margin-left: auto; margin-right: auto; }

/* ============================================================
   ホームページ専用 — ヒーロー（白系）
   ============================================================ */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--surface);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  filter: none;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(20,18,16,0.72) 0%,
    rgba(20,18,16,0.45) 60%,
    rgba(20,18,16,0.15) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 10;
  padding-top: 6rem;
}

@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-text-1 { animation: heroFadeIn 1s ease-out 0.3s both; }
.hero-text-2 { animation: heroFadeIn 1s ease-out 0.5s both; }
.hero-text-3 { animation: heroFadeIn 1s ease-out 0.7s both; }
.hero-text-4 { animation: heroFadeIn 1s ease-out 0.9s both; }
.hero-text-5 { animation: heroFadeIn 1s ease-out 1.1s both; }

/* ============================================================
   アクセスページ専用
   ============================================================ */
.map-container {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%;
  overflow: hidden;
}

.map-container iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: none;
}

/* ============================================================
   モバイル対応
   ============================================================ */
@media (max-width: 767px)  { .hide-mobile { display: none !important; } }
@media (min-width: 768px)  { .show-mobile-only { display: none !important; } }

/* ============================================================
   SP最適化（max-width: 767px）
   PC表示は一切変更しない
   ============================================================ */
@media (max-width: 767px) {

  /* ---- 全体余白削減 ---- */
  section { padding-top: 2rem !important; padding-bottom: 2rem !important; }

  /* ---- ヒーロー ---- */
  .hero-section { min-height: 85vh; }
  .hero-content { padding-top: 4.5rem !important; }
  .hero-text-2 { font-size: clamp(1.3rem, 6vw, 1.8rem) !important; line-height: 1.6 !important; }

  /* ---- OUR STRENGTH: 強みカードを1列に ---- */
  .sp-strength-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 0 !important;
  }

  /* ---- OUR STRENGTH: 信頼指標バーを2列に ---- */
  .sp-trust-bar {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 1px !important;
    background: #e8e4dc !important;
  }
  .sp-trust-bar > div {
    background: #faf9f6 !important;
    padding: 0.75rem 0.5rem !important;
  }
  .sp-trust-bar .sp-divider { display: none !important; }

  /* ---- 診療科目カード: 2列に ---- */
  .sp-service-grid {
    grid-template-columns: 1fr !important;
    gap: 0.4rem !important;
  }

  /* ---- 当院の特徴: 1列に ---- */
  .sp-features-grid {
    grid-template-columns: 1fr !important;
    gap: 0.5rem !important;
  }

  /* ---- アコーディオン: SP専用 ---- */
  .sp-accordion-header {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.875rem 1rem;
    background: #faf9f6;
    border: 1px solid #e8e4dc;
    border-bottom: none;
    font-family: 'Noto Serif JP', serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: #2a2a28;
    letter-spacing: 0.04em;
    user-select: none;
  }
  .sp-accordion-header:last-of-type { border-bottom: 1px solid #e8e4dc; }
  .sp-accordion-header .sp-acc-icon {
    width: 18px; height: 18px;
    flex-shrink: 0;
    transition: transform 0.25s ease;
  }
  .sp-accordion-header.open .sp-acc-icon { transform: rotate(180deg); }
  .sp-accordion-body {
    display: none;
    padding: 0.75rem;
    background: #ffffff;
    border: 1px solid #e8e4dc;
    border-top: none;
    border-bottom: none;
  }
  .sp-accordion-body.open { display: block; }
  .sp-accordion-body:last-child { border-bottom: 1px solid #e8e4dc; }

  /* ---- GRAND CONCEPT: テキスト調整 ---- */
  .grand-concept-grid {
    grid-template-columns: 1fr !important;
  }

  /* ---- 医院案内: 2列→1列 ---- */
  .clinic-info-grid {
    grid-template-columns: 1fr !important;
  }

  /* ---- アクセス: 2列→1列 ---- */
  .access-grid {
    grid-template-columns: 1fr !important;
  }

  /* ---- 診療時間テーブル: 横スクロール ---- */
  .schedule-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* ---- ナビ: 電話番号を非表示 ---- */
  .header-phone { display: none !important; }
}

/* ============================================================
   SP専用スタイル（max-width: 767px）
   PC表示は一切変更しない
   ============================================================ */
@media (max-width: 767px) {

  /* --- ヒーローセクション --- */
  .hero-section { min-height: 85vh; }
  .hero-content { padding-top: 4.5rem !important; }
  .hero-text-2 { font-size: 1.35rem !important; line-height: 1.65 !important; }
  .hero-text-4 { font-size: 0.9rem !important; }
  .hero-text-5 { flex-direction: column !important; gap: 0.75rem !important; }
  .hero-text-5 .btn-gold,
  .hero-text-5 .btn-outline { width: 100%; justify-content: center; text-align: center; }
  /* 特徴バッジ: 縦並び */
  .hero-content > div[style*="display:flex;gap:0.75rem"] {
    flex-direction: column !important;
    gap: 0.4rem !important;
  }

  /* --- OUR STRENGTH: 4カードを1列に --- */
  .sp-strength-grid {
    grid-template-columns: 1fr !important;
  }

  /* --- 信頼指標バー: 2×2グリッドに --- */
  .sp-trust-bar {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 1rem !important;
    padding: 1rem !important;
  }
  .sp-trust-bar .sp-divider { display: none !important; }

  /* --- 診療科グループ: アコーディオン --- */
  .sp-accordion-header {
    cursor: pointer;
    user-select: none;
    padding: 0.6rem 0.5rem;
    border-bottom: 1px solid #e8e4dc;
    margin-bottom: 0 !important;
  }
  .sp-accordion-header .sp-acc-icon {
    width: 16px; height: 16px;
    transition: transform 0.25s ease;
    flex-shrink: 0;
  }
  .sp-accordion-header.open .sp-acc-icon {
    transform: rotate(180deg);
  }
  .sp-accordion-body {
    display: none;
    padding-top: 0.75rem;
  }
  .sp-accordion-body.open {
    display: block;
  }

  /* --- 診療カードグリッド: 2列に --- */
  .sp-service-grid {
    grid-template-columns: 1fr !important;
    gap: 0.4rem !important;
  }

  /* --- 当院の特徴: 2列に --- */
  .sp-features-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.75rem !important;
  }
  .sp-features-grid > div { padding: 1.25rem !important; }

  /* --- 写真バナー: 1枚だけ表示 --- */
  .sp-photo-banner {
    grid-template-columns: 1fr !important;
    height: 200px !important;
  }
  .sp-photo-banner > div:nth-child(2),
  .sp-photo-banner > div:nth-child(3) { display: none !important; }

  /* --- グランドコンセプト: 縦積み --- */
  .grand-concept-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }
  .grand-concept-grid > div:last-child {
    border-left: none !important;
    padding-left: 0 !important;
    border-top: 1px solid rgba(201,169,110,0.3);
    padding-top: 1.5rem;
  }

  /* --- 医院案内: 縦積み --- */
  .clinic-info-grid {
    grid-template-columns: 1fr !important;
  }

  /* --- アクセス: 縦積み --- */
  .access-grid {
    grid-template-columns: 1fr !important;
  }

  /* --- セクション余白を縮小 --- */
  section { padding-top: 2.5rem !important; padding-bottom: 2.5rem !important; }

  /* --- こんなお悩みカード: 1列に --- */
  .sp-concerns-grid {
    grid-template-columns: 1fr !important;
  }

  /* --- OUR STRENGTH こんなお悩みカード 2列 --- */
  .strength-concerns-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}
@media (max-width: 767px) {
  /* ---- ヒーロー: よりコンパクトに ---- */
  .hero-section { min-height: 65vh !important; }
  .hero-content { padding-top: 3.5rem !important; padding-bottom: 1.5rem !important; }
  .hero-text-1 { font-size: 0.7rem !important; margin-bottom: 0.4rem !important; }
  .hero-text-2 { font-size: 1.2rem !important; line-height: 1.55 !important; margin-bottom: 0.5rem !important; }
  .hero-text-3 { font-size: 0.7rem !important; margin-bottom: 0.5rem !important; }
  .hero-text-4 { font-size: 0.82rem !important; margin-bottom: 0.75rem !important; line-height: 1.7 !important; }
  .hero-text-5 { gap: 0.5rem !important; }
  .hero-text-5 .btn-gold,
  .hero-text-5 .btn-outline { padding: 0.55rem 1rem !important; font-size: 0.82rem !important; }
  /* ---- 当院の特徴: カードをよりコンパクトに ---- */
  .sp-features-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 0.5rem !important; }
  .sp-features-grid > div { padding: 0.875rem !important; }
  .sp-features-grid > div h3 { font-size: 0.85rem !important; margin-bottom: 0.4rem !important; }
  .sp-features-grid > div p { font-size: 0.78rem !important; line-height: 1.6 !important; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  /* ---- フッター: 2列グリッド（アコーディオンなし） ---- */
  .footer-inner {
    grid-template-columns: 1fr 1fr !important;
    gap: 1.5rem !important;
    margin-bottom: 1.5rem !important;
  }
  .footer-inner > div:first-child {
    grid-column: 1 / -1;
  }
  .footer-desc { font-size: 0.78rem !important; line-height: 1.7 !important; margin-top: 0.5rem !important; }
  .footer-section-title { font-size: 0.82rem !important; margin-bottom: 0.75rem !important; padding-bottom: 0.5rem !important; }
  .footer-nav-list { gap: 0.4rem !important; }
  .footer-nav-link { font-size: 0.8rem !important; }
  .footer-schedule-item { font-size: 0.78rem !important; margin-bottom: 0.35rem !important; }
  .footer-web-reserve { font-size: 0.75rem !important; }
  .site-footer { padding: 1.5rem 0 1.25rem !important; }
  .footer-copyright { padding-top: 1rem !important; font-size: 0.72rem !important; }
  /* ---- ヒーローキャッチコピー: SP専用スタイル ---- */
  .sp-br { display: inline; }
  .hero-catch-line1 {
    display: block;
    font-size: 1.55rem !important;
    font-weight: 600 !important;
    line-height: 1.5 !important;
    letter-spacing: 0.04em;
    margin-bottom: 0.4rem;
    text-shadow: 0 2px 12px rgba(0,0,0,0.35);
  }
  .hero-catch-line2 {
    display: block;
    font-size: 1.55rem !important;
    font-weight: 600 !important;
    line-height: 1.5 !important;
    letter-spacing: 0.04em;
    margin-bottom: 0.6rem;
    text-shadow: 0 2px 12px rgba(0,0,0,0.35);
  }
  .hero-catch-clinic {
    display: block;
    font-size: 0.88rem !important;
    font-weight: 400 !important;
    opacity: 0.85;
    letter-spacing: 0.12em;
    margin-top: 0.25rem;
  }
  .hero-text-2 { font-size: 1rem !important; line-height: 1.5 !important; margin-bottom: 0.75rem !important; }

}

/* SP専用改行・テキストスタイルをPCで無効化 */
@media (min-width: 768px) {
  .sp-br { display: none; }
}

/* SP専用改行・テキストスタイルをPCで無効化 */
@media (min-width: 768px) {
  .sp-br { display: none; }
  .hero-catch-line1,
  .hero-catch-line2,
  .hero-catch-clinic { display: inline !important; font-size: inherit !important; font-weight: inherit !important; line-height: inherit !important; }
}

@media (max-width: 767px) {
  /* line1とline2の間の<br>を非表示にして間隔を詰める */
  .sp-br-sep { display: none; }
  /* h1のline-heightをSPで縮める */
  .hero-text-2 { line-height: 1.3 !important; }
}

@media (max-width: 767px) {
  /* 「見え方の不安も、からだの変化も。」を1行に収める */
  .hero-catch-line1 .sp-br { display: none; }
  .hero-catch-line1 {
    font-size: 1.2rem !important;
    white-space: nowrap;
    overflow: hidden;
  }
}

@media (max-width: 767px) {
  /* 特徴バッジをSPでコンパクトに */
  .hero-badges-wrap {
    gap: 0.4rem !important;
    margin-bottom: 0.9rem !important;
  }
  .hero-badges-wrap span {
    padding: 0.2rem 0.55rem !important;
    font-size: 0.68rem !important;
    gap: 0.25rem !important;
    letter-spacing: 0.03em !important;
  }
  .hero-badges-wrap span svg {
    width: 10px !important;
    height: 10px !important;
  }
}

@media (max-width: 767px) {
  /* 診療カード: 1列・通常縦積み・コンパクト */
  .sp-service-grid {
    grid-template-columns: 1fr !important;
    gap: 0.4rem !important;
  }
  .sp-service-grid .clinic-card {
    display: block !important;
    padding: 0.65rem 1rem !important;
  }
  .sp-service-grid .clinic-card > div:first-child {
    margin-bottom: 0.2rem !important;
  }
  .sp-service-grid .clinic-card p:first-of-type {
    font-size: 0.88rem !important;
  }
  .sp-service-grid .clinic-card p:last-of-type {
    font-size: 0.78rem !important;
    line-height: 1.5 !important;
    margin: 0 !important;
  }
}

/* PC版: SP用スタイルの上書きをリセット */
@media (min-width: 768px) {
  .sp-service-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)) !important;
    gap: 0.75rem !important;
  }
  .sp-service-grid .clinic-card {
    display: block !important;
    padding: 1rem 1.25rem !important;
  }
  .sp-service-grid .clinic-card > div:first-child {
    margin-bottom: 0.4rem !important;
  }
  .sp-service-grid .clinic-card p:first-of-type {
    font-size: 0.95rem !important;
  }
  .sp-service-grid .clinic-card p:last-of-type {
    font-size: 0.85rem !important;
    line-height: 1.6 !important;
    margin: revert !important;
    display: block !important;
    -webkit-line-clamp: unset !important;
    overflow: visible !important;
  }
}

/* PC版: アコーディオンを無効化して通常表示に戻す */
@media (min-width: 768px) {
  /* アコーディオンヘッダーを非表示（グループ見出しはPC版では別スタイルで表示） */
  .sp-accordion-header {
    cursor: default !important;
    display: block !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    font-size: inherit !important;
  }
  .sp-accordion-header .sp-acc-icon {
    display: none !important;
  }
  /* アコーディオンボディを常時表示 */
  .sp-accordion-body {
    display: block !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
  }
}

/* PC版: sp-service-gridのグリッドを200px最小幅に戻す */
@media (min-width: 768px) {
  .sp-service-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)) !important;
    gap: 0.75rem !important;
  }
}

/* ============================================================
   フロー図: PC横並び / SP縦並び
   ============================================================ */
.flow-diagram {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: nowrap;
}
.flow-item {
  min-width: 140px;
  flex: 1;
}
.flow-arrow {
  padding: 0 0.6rem;
  flex-shrink: 0;
}

@media (max-width: 767px) {
  .flow-diagram {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .flow-item {
    min-width: 0;
    width: 100%;
  }
  .flow-arrow {
    display: flex;
    justify-content: center;
    font-size: 0 !important;
    padding: 0.1rem 0;
    line-height: 1;
  }
  .flow-arrow::after {
    content: "↓";
    font-size: 1.4rem;
    color: #c4a35a;
    display: block;
    padding: 0.15rem 0;
  }
}

/* コンタクト注文ボタン PC/SP テキスト切り替え */
.contact-btn-text { display: inline; }
.contact-pc { display: inline; }
.contact-sp { display: none; }
@media (max-width: 767px) {
  .contact-btn-text { display: none; }
  .contact-pc { display: none; }
  .contact-sp { display: inline; text-align: center; line-height: 1.2; }
}
