/* ==========================================================================
   はぁーとふる歯科クリニック - 実データ本番版スタイルシート (Vanilla CSS)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. デザインシステム / 変数定義
   -------------------------------------------------------------------------- */
:root {
  /* はぁーとふる歯科のテーマ「心と心をつなぐ優しいグリーン」を上質に表現 */
  --primary-hue: 142; /* クリーンなグリーン */
  --primary: hsl(var(--primary-hue), 72%, 29%);
  --primary-light: hsl(var(--primary-hue), 55%, 94%);
  --primary-dark: hsl(var(--primary-hue), 80%, 18%);

  --secondary-hue: 155; /* サブのミントグリーン */
  --secondary: hsl(var(--secondary-hue), 60%, 43%);
  --secondary-light: hsl(var(--secondary-hue), 65%, 93%);
  --secondary-dark: hsl(var(--secondary-hue), 70%, 25%);

  --accent: hsl(38, 92%, 50%); /* アクセントのウォームゴールド */
  --accent-light: hsl(38, 95%, 96%);

  /* ニュートラルカラー */
  --text-main: hsl(210, 25%, 15%);
  --text-muted: hsl(210, 15%, 45%);
  --bg-main: hsl(140, 20%, 98%); /* ほんのり緑がかった上質なオフホワイト */
  --bg-card: hsl(0, 0%, 100%);
  --border-color: hsl(140, 15%, 90%);

  /* タイポグラフィ */
  --font-family: 'Outfit', 'Noto Sans JP', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* 角丸 & 影 */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 4px 12px rgba(21, 128, 61, 0.04);
  --shadow-md: 0 12px 36px rgba(21, 128, 61, 0.08);
  --shadow-lg: 0 24px 60px rgba(21, 128, 61, 0.12);

  /* トランジション */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --------------------------------------------------------------------------
   2. リセット & ベーススタイル
   -------------------------------------------------------------------------- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  color-adjust: exact;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.8;
  overflow-x: hidden;
  font-size: 16px;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

button, input, textarea, select {
  font-family: inherit;
  color: inherit;
}

/* --------------------------------------------------------------------------
   3. 共通レイアウト
   -------------------------------------------------------------------------- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-padding {
  padding: 100px 0;
}

@media (max-width: 768px) {
  .section-padding {
    padding: 60px 0;
  }
}

.bg-light {
  background-color: var(--primary-light);
}

/* セクションヘッダー */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-tag {
  display: inline-block;
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 3px;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.section-header h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
  color: var(--primary-dark);
}

.section-sub {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

.text-center-box {
  text-align: center;
  max-width: 800px;
  margin: -20px auto 50px;
  font-size: 17px;
  color: var(--text-main);
  font-weight: 500;
}

/* グリッド */
.grid {
  display: grid;
  gap: 32px;
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 992px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .grid-3, .grid-2 {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* カード */
.card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  overflow: hidden;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
}

/* ボタン */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  font-size: 16px;
  font-weight: 700;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: background var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  box-shadow: 0 4px 15px rgba(21, 128, 61, 0.2);
}

.btn-primary:hover {
  background: linear-gradient(135deg, hsl(var(--primary-hue), 72%, 24%), hsl(var(--secondary-hue), 60%, 35%));
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(21, 128, 61, 0.3);
}

.btn-secondary {
  background: #fff;
  color: var(--primary-dark);
  border: 2px solid var(--primary-light);
}

.btn-secondary:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 16px 36px;
  font-size: 18px;
}

.btn-sm {
  padding: 6px 14px;
  font-size: 12.5px;
  border-radius: 30px;
}

.btn-full {
  width: 100%;
}

.required {
  background-color: #ef4444;
  color: #fff;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 6px;
  vertical-align: middle;
}

/* --------------------------------------------------------------------------
   4. ヘッダー
   -------------------------------------------------------------------------- */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 20px 0;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  transition: padding var(--transition-normal), background var(--transition-normal), box-shadow var(--transition-normal);
}

.logo-brand-container {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-icon-img {
  height: 24px;
  width: 24px;
  object-fit: contain;
  display: block;
  transition: height var(--transition-normal), width var(--transition-normal);
  filter: drop-shadow(0 1px 2px rgba(21, 128, 61, 0.1));
}

.logo-text-group {
  display: flex;
  flex-direction: column;
}

.logo-site-title {
  font-family: 'Outfit', 'Noto Sans JP', sans-serif;
  font-size: 19px;
  font-weight: 700;
  color: var(--primary-dark);
  line-height: 1.2;
  letter-spacing: 0.5px;
  transition: font-size var(--transition-normal);
}

.logo-site-sub {
  font-family: 'Outfit', sans-serif;
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 2px;
  line-height: 1.2;
  margin-top: 2px;
  transition: font-size var(--transition-normal);
}

header.scrolled .logo-icon-img {
  height: 20px;
  width: 20px;
}

header.scrolled .logo-site-title {
  font-size: 17px;
}

header.scrolled .logo-site-sub {
  font-size: 9px;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 28px;
}

.nav-list a {
  font-weight: 700;
  font-size: 15px;
  color: var(--text-main);
  position: relative;
  padding: 8px 0;
}

.nav-list a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width var(--transition-fast);
}

.nav-list a:hover {
  color: var(--primary);
}

.nav-list a:hover::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.tel-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--primary-dark);
  font-weight: 700;
}

.tel-num {
  font-family: 'Outfit', sans-serif;
  font-size: 18px;
}

.reserve-btn {
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 700;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
}

/* モバイル用トグル */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 110;
}

.hamburger {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-main);
  position: relative;
  transition: background var(--transition-fast);
}

.hamburger::before, .hamburger::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 2px;
  background: var(--text-main);
  transition: transform var(--transition-fast), top var(--transition-fast);
}

.hamburger::before { top: -8px; }
.hamburger::after { top: 8px; }

/* CSSスクロール駆動アニメーション */
@supports ((animation-timeline: scroll()) and (animation-range: 0% 100%)) {
  header {
    animation: shrink-header auto linear both;
    animation-timeline: scroll(root);
    animation-range: 0px 80px;
  }
  .logo-icon-img {
    animation: shrink-logo auto linear both;
    animation-timeline: scroll(root);
    animation-range: 0px 80px;
  }
  .logo-site-title {
    animation: shrink-title auto linear both;
    animation-timeline: scroll(root);
    animation-range: 0px 80px;
  }
  .logo-site-sub {
    animation: shrink-sub auto linear both;
    animation-timeline: scroll(root);
    animation-range: 0px 80px;
  }
}

@keyframes shrink-logo {
  to {
    height: 20px;
    width: 20px;
  }
}

@keyframes shrink-title {
  to {
    font-size: 17px;
  }
}

@keyframes shrink-sub {
  to {
    font-size: 9px;
  }
}

@keyframes shrink-header {
  to {
    padding: 10px 0;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 20px rgba(21, 128, 61, 0.08);
    border-bottom-color: rgba(21, 128, 61, 0.05);
  }
}

/* --------------------------------------------------------------------------
   5. ヒーローセクション
   -------------------------------------------------------------------------- */
.hero {
  padding-top: 180px;
  padding-bottom: 120px;
  background: radial-gradient(circle at 80% 20%, var(--primary-light) 0%, transparent 60%);
  position: relative;
  overflow: hidden;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 60px;
}

.hero-content {
  flex: 1.2;
}

.hero-tag {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 24px;
  border: 1px solid var(--border-color);
}

.hero-title {
  font-size: 50px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 24px;
  letter-spacing: -1px;
  color: var(--primary-dark);
}

.hero-title .highlight {
  color: var(--primary);
  background: linear-gradient(120deg, var(--primary-light) 0%, var(--primary-light) 100%);
  background-repeat: no-repeat;
  background-size: 100% 35%;
  background-position: 0 85%;
}

.hero-text {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 520px;
}

.hero-timetable-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin-bottom: 24px;
  max-width: 520px;
  box-shadow: var(--shadow-sm);
  text-align: left;
}

.hero-timetable-card .card-badge {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary-dark);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 12px;
}

.hero-timetable-card .table-wrapper {
  border: none;
  overflow-x: visible;
  margin-bottom: 10px;
}

.hero-timetable-card .timetable {
  min-width: auto;
  width: 100%;
}

.hero-timetable-card .timetable th,
.hero-timetable-card .timetable td {
  padding: 6px 4px;
  font-size: 11px;
  font-weight: 500;
}

.hero-timetable-card .timetable th {
  padding: 4px 4px;
}

.hero-timetable-card .timetable td:first-child {
  font-family: 'Outfit', sans-serif;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.hero-timetable-card .table-caption {
  font-size: 11px;
  line-height: 1.5;
  margin-top: 8px;
}

@media (max-width: 576px) {
  .hero-timetable-card {
    margin: 0 auto 24px;
    padding: 12px 12px;
  }
  .hero-timetable-card .timetable th,
  .hero-timetable-card .timetable td {
    padding: 5px 2px;
    font-size: 10px;
  }
  .hero-timetable-card .timetable td:first-child {
    font-size: 9px;
  }
}

.hero-actions {
  display: flex;
  gap: 16px;
  align-items: center;
}

.hero-notice {
  font-size: 14px;
  font-weight: 700;
  color: #ef4444;
  margin-bottom: 24px;
  background-color: #fef2f2;
  border: 1px solid #fee2e2;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  display: inline-block;
  text-align: left;
}

.hero-nav-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-visual {
  flex: 0.8;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.hero-old-logo-wrapper {
  width: 100%;
  max-width: 440px;
  background: #ffffff;
  padding: 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  display: flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
}

.hero-old-logo {
  max-width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

.hero-img-wrapper {
  position: relative;
  width: 100%;
  max-width: 440px;
}

.hero-img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 4px solid #fff;
  z-index: 2;
  position: relative;
}

.hero-img-wrapper .abstract-graphic {
  position: absolute;
  top: -20px;
  left: -20px;
  width: 100%;
  height: 100%;
  background: var(--secondary-light);
  border-radius: var(--radius-lg);
  z-index: 1;
}

@media (max-width: 992px) {
  .hero-container {
    flex-direction: column-reverse;
    gap: 40px;
    text-align: center;
  }
  .hero {
    padding-top: 140px;
    padding-bottom: 60px;
  }
  .hero-title {
    font-size: 38px;
  }
  .hero-text {
    margin: 0 auto 32px;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-visual {
    width: 80%;
    margin: 0 auto;
    gap: 16px;
  }
}

/* --------------------------------------------------------------------------
   6. 特徴（Concept）セクション
   -------------------------------------------------------------------------- */
.concept-banner {
  max-width: 900px;
  margin: 0 auto;
  padding: 50px;
  background: linear-gradient(135deg, var(--bg-card) 0%, var(--primary-light) 100%);
  text-align: center;
  border-left: 6px solid var(--primary);
}

.concept-text-box .lead-text {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary-dark);
  line-height: 1.6;
  margin-bottom: 20px;
}

.concept-text-box .sub-text {
  color: var(--text-muted);
  font-size: 15px;
}

@media (max-width: 768px) {
  .concept-banner {
    padding: 30px 20px;
  }
  .concept-text-box .lead-text {
    font-size: 18px;
  }
}

/* --------------------------------------------------------------------------
   7. 医院案内（Annai）セクション
   -------------------------------------------------------------------------- */
.facility-card {
  display: flex;
  flex-direction: column;
}

.facility-img-wrapper {
  overflow: hidden;
  position: relative;
  aspect-ratio: 4/3;
  background: #f1f5f9;
}

.facility-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.facility-card:hover .facility-img {
  transform: scale(1.05);
}

.facility-content {
  padding: 24px;
  flex-grow: 1;
}

.facility-content h3 {
  font-size: 18px;
  margin-bottom: 12px;
  color: var(--primary-dark);
  font-weight: 700;
  border-bottom: 2px solid var(--primary-light);
  padding-bottom: 6px;
  display: inline-block;
}

.facility-content p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   8. 診療案内（Services）セクション
   -------------------------------------------------------------------------- */
.services-intro {
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 40px;
  margin-bottom: 50px;
}

.services-intro-content {
  flex: 1.2;
  font-size: 17px;
  line-height: 1.8;
  font-weight: 500;
}

.services-intro-visual {
  flex: 0.8;
  display: flex;
  justify-content: center;
}

.services-family-img {
  max-width: 180px;
  border-radius: var(--radius-md);
  background-color: var(--primary-light);
  padding: 16px;
  box-shadow: var(--shadow-sm);
}

@media (max-width: 768px) {
  .services-intro {
    flex-direction: column;
    padding: 24px;
    text-align: center;
  }
}

.service-list .service-card {
  padding: 32px;
  text-align: left;
}

.service-icon-box {
  width: 48px;
  height: 48px;
  background-color: var(--primary-light);
  color: var(--primary);
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  margin-bottom: 20px;
}

.service-card h3 {
  font-size: 20px;
  margin-bottom: 16px;
  color: var(--primary-dark);
  font-weight: 700;
}

.service-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   9. ドクター・スタッフ紹介セクション
   -------------------------------------------------------------------------- */
.doctor-profile-card {
  display: flex;
  max-width: 960px;
  margin: 0 auto 40px;
}

.doctor-image-container {
  flex: 0.8;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
  border-right: 1px solid var(--border-color);
}

.doctor-img {
  width: 100%;
  max-width: 220px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  border: 4px solid #fff;
}

.doctor-info {
  flex: 1.2;
  padding: 50px;
}

.doctor-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--secondary);
  letter-spacing: 2px;
  display: block;
  margin-bottom: 8px;
}

.doctor-info h3 {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 24px;
  border-bottom: 2px solid var(--primary-light);
  padding-bottom: 8px;
  display: flex;
  align-items: baseline;
  gap: 12px;
  color: var(--primary-dark);
}

.doctor-info h3 .en-name {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-muted);
}

.doctor-message {
  margin-bottom: 24px;
}

.doctor-message h4 {
  font-size: 16px;
  color: var(--primary);
  margin-bottom: 8px;
}

.doctor-career h4 {
  font-size: 16px;
  margin-bottom: 8px;
}

.doctor-career ul {
  list-style: none;
}

.doctor-career li {
  font-size: 14px;
  color: var(--text-muted);
  position: relative;
  padding-left: 20px;
  margin-bottom: 6px;
}

.doctor-career li::before {
  content: '•';
  color: var(--primary);
  font-size: 18px;
  position: absolute;
  left: 4px;
  top: -2px;
}

/* スタッフメッセージカード */
.staff-message-card {
  display: flex;
  max-width: 960px;
  margin: 0 auto;
  align-items: center;
}

.staff-visual-container {
  flex: 0.8;
  padding: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.staff-illustration {
  max-width: 140px;
  border-radius: 50%;
  background: var(--accent-light);
  padding: 16px;
  box-shadow: var(--shadow-sm);
}

.staff-info {
  flex: 1.2;
  padding: 40px;
}

.staff-info h3 {
  font-size: 20px;
  color: var(--primary-dark);
  margin-bottom: 16px;
  font-weight: 700;
}

.staff-desc {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.staff-decoration {
  opacity: 0.8;
}

.deco-gif {
  max-height: 20px;
}

@media (max-width: 768px) {
  .doctor-profile-card, .staff-message-card {
    flex-direction: column;
  }
  .doctor-image-container {
    border-right: none;
    border-bottom: 1px solid var(--border-color);
    padding: 40px 20px;
  }
  .doctor-info, .staff-info {
    padding: 30px 20px;
  }
  .staff-visual-container {
    padding: 30px 20px;
    border-bottom: 1px solid var(--border-color);
    width: 100%;
  }
}

/* --------------------------------------------------------------------------
   10. アクセス・診療時間セクション
   -------------------------------------------------------------------------- */
.access-top-grid {
  max-width: 960px;
  margin: 0 auto 40px;
}

.access-info {
  padding: 40px;
}

.access-info h3 {
  font-size: 24px;
  color: var(--primary-dark);
  margin-bottom: 24px;
}

.info-table-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 30px;
}

.info-item {
  display: flex;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 12px;
}

.info-item:last-child {
  border-bottom: none;
}

.info-item .label {
  width: 100px;
  font-weight: 700;
  color: var(--primary);
  flex-shrink: 0;
}

.info-item .val {
  color: var(--text-main);
  font-weight: 500;
}

/* タイムテーブル (表形式) */
.table-wrapper {
  overflow-x: auto;
  margin-bottom: 20px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
}

.timetable {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 500px;
}

.timetable th, .timetable td {
  padding: 12px 10px;
  text-align: center;
  border-right: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.timetable th:last-child, .timetable td:last-child {
  border-right: none;
}

.timetable tr:last-child td {
  border-bottom: none;
}

.timetable th {
  background-color: var(--primary-light);
  color: var(--primary-dark);
  font-weight: 700;
}

.timetable td {
  background-color: #fff;
}

.table-caption {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 30px;
  line-height: 1.6;
}

.access-actions {
  display: flex;
}

.tel-link {
  display: inline-block;
  background: var(--accent-light);
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 700;
  transition: all var(--transition-fast);
}

.tel-link:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-2px);
}

.tel-big {
  font-family: 'Outfit', sans-serif;
  font-size: 20px;
}

/* ダブル地図レイアウト (GoogleMap と デフォルメ画像) */
.double-map-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  max-width: 960px;
  margin: 0 auto;
}

.map-card {
  display: flex;
  flex-direction: column;
  height: 450px;
}

.card-header-tag {
  background-color: var(--primary-light);
  color: var(--primary-dark);
  font-weight: 700;
  padding: 12px 20px;
  font-size: 14px;
  border-bottom: 1px solid var(--border-color);
}

.map-iframe-wrapper {
  flex-grow: 1;
  width: 100%;
  height: 100%;
}

.map-img-wrapper {
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  padding: 20px;
  overflow: hidden;
}

.clinic-map-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

@media (max-width: 768px) {
  .access-info {
    padding: 24px;
  }
  .info-item {
    flex-direction: column;
    gap: 4px;
  }
  .double-map-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .map-card {
    height: 380px;
  }
}

/* --------------------------------------------------------------------------
   11. フッター
   -------------------------------------------------------------------------- */
footer {
  background-color: var(--primary-dark);
  color: #fff;
  padding: 80px 0 0;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-brand {
  max-width: 400px;
}

.footer-desc {
  font-size: 14px;
  opacity: 0.7;
}

.footer-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-end;
}

.footer-nav a {
  opacity: 0.8;
  font-size: 15px;
}

.footer-nav a:hover {
  opacity: 1;
  color: var(--primary-light);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 30px 0;
  text-align: center;
  font-size: 13px;
  opacity: 0.6;
}

@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    text-align: center;
  }
  .footer-brand {
    margin: 0 auto;
  }
  .footer-nav ul {
    align-items: center;
  }
}

/* --------------------------------------------------------------------------
   12. モバイルドロワー
   -------------------------------------------------------------------------- */
@media (max-width: 992px) {
  .nav-list {
    position: fixed;
    top: 0;
    right: -100%;
    width: 75%;
    max-width: 320px;
    height: 100vh;
    background: #fff;
    flex-direction: column;
    padding: 100px 40px 40px;
    box-shadow: var(--shadow-lg);
    z-index: 105;
    transition: right var(--transition-normal);
    gap: 24px;
  }

  .nav-list.active {
    right: 0;
  }

  .menu-toggle {
    display: block;
  }

  .menu-toggle[aria-expanded="true"] .hamburger {
    background: transparent;
  }

  .menu-toggle[aria-expanded="true"] .hamburger::before {
    transform: rotate(45deg);
    top: 0;
  }

  .menu-toggle[aria-expanded="true"] .hamburger::after {
    transform: rotate(-45deg);
    top: 0;
  }

  .header-actions {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   13. フローティング通話ボタン (スマホ専用)
   -------------------------------------------------------------------------- */
.floating-action-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 90;
  pointer-events: none;
}

.floating-tel-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 16px 28px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 16px;
  box-shadow: 0 8px 30px rgba(245, 158, 11, 0.4);
  cursor: pointer;
  pointer-events: auto;

  visibility: hidden;
  opacity: 0;
  transform: translateY(20px);
  transition: visibility var(--transition-normal), opacity var(--transition-normal), transform var(--transition-normal);
}

.floating-tel-btn:hover {
  background: hsl(38, 92%, 45%);
  transform: translateY(-2px);
}

.scroller {
  container-type: scroll-state;
}

@container scroll-state(scrollable: top) {
  .floating-tel-btn {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
  }
}

.scrolled .floating-tel-btn {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
   【スクロール駆動アニメーション（ビューポートエントリー効果）】
   ========================================================================== */
@supports ((animation-timeline: view()) and (animation-range: entry)) {
  .facility-card,
  .service-card,
  .doctor-profile-card,
  .staff-message-card,
  .access-info,
  .map-card {
    animation: fade-up-in auto linear both;
    animation-timeline: view();
    animation-range: entry 10% entry 75%;
  }
}

@keyframes fade-up-in {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* --------------------------------------------------------------------------
   14. アクセシビリティ (モーション減速)
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *, ::before, ::after {
    animation-delay: -1ms !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    background-attachment: initial !important;
    scroll-behavior: auto !important;
    transition-duration: 0s !important;
    transition-delay: 0s !important;
  }
}

/* ==========================================================================
   施設基準・届出事項（独立ページ）
   ========================================================================== */
.standards-main {
  padding-top: 88px;
}

.standards-hero {
  position: relative;
  overflow: hidden;
  padding: 92px 0 82px;
  background:
    radial-gradient(circle at 88% 18%, rgba(34, 197, 94, 0.15), transparent 28%),
    linear-gradient(135deg, #f0fdf4 0%, #f8faf9 55%, #ecfdf5 100%);
  border-bottom: 1px solid var(--border-color);
}

.standards-hero::after {
  content: '';
  position: absolute;
  right: 6%;
  bottom: -120px;
  width: 320px;
  height: 320px;
  border: 54px solid rgba(21, 128, 61, 0.06);
  border-radius: 50%;
  pointer-events: none;
}

.breadcrumb {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 42px;
  color: var(--text-muted);
  font-size: 13px;
}

.breadcrumb a {
  color: var(--primary);
  font-weight: 700;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.standards-hero .section-tag {
  margin-bottom: 16px;
}

.standards-hero h1 {
  max-width: 760px;
  margin-bottom: 24px;
  color: var(--primary-dark);
  font-size: clamp(38px, 6vw, 68px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.04em;
}

.standards-hero > .container > p {
  max-width: 760px;
  color: var(--text-muted);
  font-size: 17px;
  line-height: 2;
}

.standards-content {
  background: var(--bg-main);
}

.standards-container {
  max-width: 1040px;
}

.standards-review-notice {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 20px;
  align-items: start;
  margin-bottom: 64px;
  padding: 26px 30px;
  border: 1px solid #f3c46f;
  border-radius: var(--radius-md);
  background: #fffaf0;
  color: #684b1d;
}

.review-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 50%;
  background: #d97706;
  color: #fff;
  font-family: 'Outfit', sans-serif;
  font-size: 24px;
  font-weight: 700;
}

.review-title {
  margin-bottom: 5px;
  color: #8a4d08;
  font-size: 17px;
  font-weight: 700;
}

.standards-summary {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
  margin-bottom: 34px;
  padding: 36px 40px;
  border-radius: var(--radius-lg);
  background: var(--primary-dark);
  color: #fff;
  box-shadow: var(--shadow-md);
}

.summary-label {
  display: inline-block;
  margin-bottom: 8px;
  color: #86efac;
  font-family: 'Outfit', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.standards-summary h2 {
  margin-bottom: 8px;
  font-size: 28px;
}

.standards-summary p {
  color: #d1fae5;
}

.summary-count {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding-left: 36px;
  border-left: 1px solid rgba(255, 255, 255, 0.25);
}

.summary-count strong {
  font-family: 'Outfit', sans-serif;
  font-size: 58px;
  line-height: 1;
}

.summary-count span {
  color: #bbf7d0;
  font-size: 13px;
}

.standards-cards {
  display: grid;
  gap: 18px;
}

.standard-card {
  display: grid;
  grid-template-columns: minmax(290px, 0.85fr) 1.15fr;
  overflow: hidden;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.standard-card-heading {
  position: relative;
  padding: 30px 32px;
  background: var(--primary-light);
  border-right: 1px solid var(--border-color);
}

.standard-index {
  position: absolute;
  top: 20px;
  right: 24px;
  color: rgba(21, 128, 61, 0.13);
  font-family: 'Outfit', sans-serif;
  font-size: 52px;
  font-weight: 700;
  line-height: 1;
}

.standard-code {
  position: relative;
  z-index: 1;
  margin-bottom: 12px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
}

.standard-card h2 {
  position: relative;
  z-index: 1;
  color: var(--primary-dark);
  font-size: 21px;
  line-height: 1.6;
}

.standard-card-body {
  padding: 30px 34px;
  color: var(--text-muted);
}

.standard-card-body > p + p {
  margin-top: 15px;
}

.confirmation-item {
  padding: 13px 15px;
  border-left: 3px solid #d97706;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: #fff8e8;
  color: #72501f;
  font-size: 13px;
}

.confirmation-item span {
  display: inline-block;
  margin-right: 6px;
  padding: 2px 7px;
  border-radius: 4px;
  background: #d97706;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.standards-source-box {
  margin-top: 46px;
  padding: 36px 40px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: #fff;
}

.standards-source-box h2 {
  margin-bottom: 10px;
  color: var(--primary-dark);
  font-size: 23px;
}

.standards-source-box p {
  margin-bottom: 24px;
  color: var(--text-muted);
}

.standards-back {
  margin-top: 44px;
  text-align: center;
}

.standards-page .nav-list a[aria-current="page"] {
  color: var(--primary);
}

.standards-page .nav-list a[aria-current="page"]::after {
  width: 100%;
}

@media (max-width: 768px) {
  .standards-main {
    padding-top: 76px;
  }

  .standards-hero {
    padding: 60px 0 54px;
  }

  .breadcrumb {
    margin-bottom: 28px;
  }

  .standards-hero > .container > p {
    font-size: 15px;
  }

  .standards-review-notice {
    grid-template-columns: 1fr;
    padding: 22px;
  }

  .standards-summary {
    grid-template-columns: 1fr;
    padding: 28px 24px;
  }

  .summary-count {
    padding: 22px 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    border-left: 0;
  }

  .standard-card {
    grid-template-columns: 1fr;
  }

  .standard-card-heading {
    padding: 26px 24px;
    border-right: 0;
    border-bottom: 1px solid var(--border-color);
  }

  .standard-card-body {
    padding: 25px 24px;
  }

  .standards-source-box {
    padding: 28px 24px;
  }
}
