/* ========================================
   components.css — ボタン・カード・テーブル・FAQ・フォーム等
   松原メイフラワー病院
   ======================================== */

/* ========================================
   ボタン
   ======================================== */
.c-btn--cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-sm2);
  padding: var(--sp-xl) var(--sp-4xl);
  font-size: var(--fs-md);
  font-weight: 700;
  color: var(--c-text-white);
  background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-primary-dark) 100%);
  border-radius: var(--r-xl);
  letter-spacing: 0.04em;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  text-align: center;
  box-shadow: var(--sh-accent-xl);
  border: 2px solid transparent;
}
.c-btn--cta::before {
  content: "";
  display: inline-block;
  width: 20px;
  height: 20px;
  background: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z'/%3E%3Cpath d='m22 6-10 7L2 6'/%3E%3C/svg%3E") no-repeat center / contain;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z'/%3E%3Cpath d='m22 6-10 7L2 6'/%3E%3C/svg%3E") no-repeat center / contain;
  flex-shrink: 0;
}
.c-btn--cta:hover {
  background: var(--c-primary-dark);
  box-shadow: var(--sh-accent-lg);
  transform: translateY(-1px);
}
.c-btn--cta:active {
  transform: translateY(0) scale(0.98);
  box-shadow: var(--sh-accent-md);
}

/* コンセプトカラーの目立つボタン（記事一覧へ、等） */
.c-btn--accent {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-sm);
  padding: var(--sp-lg) var(--sp-4xl);
  font-size: var(--fs-sm2);
  font-weight: 700;
  color: var(--c-text-white);
  background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-primary-dark) 100%);
  border-radius: var(--r-xl);
  letter-spacing: 0.02em;
  transition: box-shadow 0.2s, transform 0.15s;
}
.c-btn--accent:hover {
  box-shadow: var(--sh-accent-xl);
  transform: translateY(-2px);
}

/* セクション見出し横の「一覧を見る」ピルボタン */
.c-btn--pill {
  display: inline-block;
  font-size: var(--fs-base-md);
  color: var(--c-primary-dark);
  font-weight: 500;
  border: 1px solid var(--c-primary-light);
  border-radius: var(--r-4xl);
  padding: var(--sp-sm) var(--sp-xl2);
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.2s;
}

/* ========================================
   Gutenbergボタンブロックスタイル（functions.php: theme_register_block_styles）
   既存デザインのボタンパターン（.c-btn--cta / .c-btn--pill / .btn-secondary /
   .c-guide-links a のテキストリンク）をブロックスタイル化。
   ======================================== */
.wp-block-button.is-style-primary .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-sm2);
  padding: var(--sp-lg) var(--sp-4xl);
  font-weight: 700;
  color: var(--c-text-white);
  background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-primary-dark) 100%);
  border: 2px solid transparent;
  border-radius: var(--r-xl);
  letter-spacing: 0.02em;
  box-shadow: var(--sh-accent-xl);
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}
.wp-block-button.is-style-primary .wp-block-button__link:hover {
  background: var(--c-primary-dark);
  box-shadow: var(--sh-accent-lg);
  transform: translateY(-1px);
  color: var(--c-text-white);
}

.wp-block-button.is-style-secondary .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-sm) var(--sp-xl2);
  font-weight: 500;
  color: var(--c-primary-dark);
  background: transparent;
  border: 1px solid var(--c-primary-light);
  border-radius: var(--r-4xl);
  transition: background 0.2s, border-color 0.2s;
}
.wp-block-button.is-style-secondary .wp-block-button__link:hover {
  background: var(--c-bg-peach);
  border-color: var(--c-primary);
  color: var(--c-primary-dark);
}

.wp-block-button.is-style-text .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  padding: 0;
  background: none;
  border: none;
  border-radius: 0;
  color: var(--c-primary-dark);
  font-weight: 500;
  text-decoration: underline;
}
.wp-block-button.is-style-text .wp-block-button__link:hover {
  color: var(--c-primary);
  text-decoration: none;
}

.wp-block-button.is-style-invert .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-lg) var(--sp-4xl);
  font-weight: 700;
  color: var(--c-primary-dark);
  background: var(--c-bg-white);
  border: 2px solid transparent;
  border-radius: var(--r-xl);
  transition: background 0.2s, transform 0.15s;
}
.wp-block-button.is-style-invert .wp-block-button__link:hover {
  background: var(--c-primary-pale);
  transform: translateY(-1px);
}

/* 電話番号CTAブロック（TOPページ等） */
.c-tel-block {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-md);
  margin-top: var(--sp-2xl);
  padding: var(--sp-lg) var(--sp-3xl);
  background: var(--c-primary);
  border-radius: var(--r-xl);
  color: var(--c-text-white);
  font-weight: 700;
  font-size: var(--fs-xl2);
  letter-spacing: 0.03em;
}
.c-tel-block small {
  display: block;
  font-size: var(--fs-base-sm);
  font-weight: 400;
  opacity: 0.9;
}

/* ========================================
   テーブル
   ======================================== */
.c-table--info {
  width: 100%;
  border-collapse: collapse;
  margin: var(--sp-xl) 0 var(--sp-2xl2);
}
.c-table--info th,
.c-table--info td {
  padding: var(--sp-lg) var(--sp-xl);
  font-size: var(--fs-md);
  border: 1px solid var(--c-border-light);
  line-height: 1.8;
  vertical-align: top;
}
.c-table--info th {
  background: var(--c-primary-pale);
  font-weight: 700;
  color: var(--c-text-main);
  white-space: nowrap;
  width: 160px;
  text-align: left;
}
.c-table--info td {
  color: var(--c-text-sub);
}

/* スケジュール系テーブル（担当医一覧等） */
.c-table--schedule {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 500px;
  background: var(--c-bg-white);
}
.c-table--schedule th,
.c-table--schedule td {
  padding: var(--sp-sm2) var(--sp-sm2);
  text-align: center;
  font-size: var(--fs-base);
  line-height: 1.3;
  border: 1px solid var(--c-border-light);
  white-space: nowrap;
}
.c-table--schedule thead th {
  background: var(--c-primary);
  color: var(--c-text-white);
  font-weight: 700;
}
/* 左列固定（横スクロール時）。rowspanで欠けた行は td:first-child が
   本来2列目以降のセルになるため、:first-child ではなく明示クラスで指定する */
.c-table--schedule thead th:first-child,
.c-table--schedule tbody th:first-child,
.c-table--schedule tbody td.is-row-head {
  position: sticky;
  left: 0;
  z-index: 2;
  background: var(--c-bg-white);
  border-right: 2px solid var(--c-border-light);
}
.c-table--schedule thead th:first-child {
  background: var(--c-primary-dark);
  z-index: 3;
}
.c-table--schedule .c-table__dept-header {
  background: var(--c-primary-pale);
  font-weight: 700;
  text-align: left;
  padding-left: var(--sp-lg);
  color: var(--c-primary-dark);
  white-space: normal;
}
/* dept-header内のラベルだけを時間列と同様に左固定し、背景バー自体は通常どおり横スクロールさせる */
.c-table--schedule .c-table__dept-header .c-table__dept-label {
  position: sticky;
  left: var(--sp-lg);
  display: inline-block;
}
.c-table--schedule td {
  color: var(--c-text-sub);
  font-weight: 500;
}
.c-table--schedule td small {
  display: block;
  font-size: var(--fs-base-sm);
  color: var(--c-text-light);
  font-weight: 400;
}

/* core/tableブロックはclassNameを<figure>側に付与し<table>には付かないため、
   固定ページ本文（Gutenberg）で使う場合はfigure経由でも同じ見た目になるようブリッジする */
.wp-block-table.c-table--info table { width: 100%; border-collapse: collapse; margin: var(--sp-xl) 0 var(--sp-2xl2); }
.wp-block-table.c-table--info th,
.wp-block-table.c-table--info td { padding: var(--sp-lg) var(--sp-xl); font-size: var(--fs-md); border: 1px solid var(--c-border-light); line-height: 1.8; vertical-align: top; }
.wp-block-table.c-table--info th { background: var(--c-primary-pale); font-weight: 700; color: var(--c-text-main); white-space: nowrap; width: 160px; text-align: left; }
.wp-block-table.c-table--info td { color: var(--c-text-sub); }

.wp-block-table.c-table--schedule table { width: 100%; border-collapse: separate; border-spacing: 0; min-width: 500px; background: var(--c-bg-white); }
.wp-block-table.c-table--schedule th,
.wp-block-table.c-table--schedule td { padding: var(--sp-sm2); text-align: center; font-size: var(--fs-base); line-height: 1.3; border: 1px solid var(--c-border-light); white-space: nowrap; }
.wp-block-table.c-table--schedule thead th { background: var(--c-primary); color: var(--c-text-white); font-weight: 700; }
.wp-block-table.c-table--schedule td { color: var(--c-text-sub); font-weight: 500; }
.wp-block-table.c-table--schedule thead th:first-child,
.wp-block-table.c-table--schedule tbody th:first-child,
.wp-block-table.c-table--schedule tbody td.is-row-head {
  position: sticky;
  left: 0;
  z-index: 2;
  background: var(--c-bg-white);
  border-right: 2px solid var(--c-border-light);
}
.wp-block-table.c-table--schedule thead th:first-child {
  background: var(--c-primary-dark);
  z-index: 3;
}
.wp-block-table.c-table--schedule .c-table__dept-header {
  background: var(--c-primary-pale);
  font-weight: 700;
  text-align: left;
  padding-left: var(--sp-lg);
  color: var(--c-primary-dark);
  white-space: normal;
}
.wp-block-table.c-table--schedule .c-table__dept-header .c-table__dept-label {
  position: sticky;
  left: var(--sp-lg);
  display: inline-block;
}
.wp-block-table.c-table--schedule td small {
  display: block;
  font-size: var(--fs-base-sm);
  color: var(--c-text-light);
  font-weight: 400;
}

/* バリアフリー状況テーブル（hospital.html） */
.c-table--barrier-free-wrap {
  overflow-x: auto;
  margin-top: var(--sp-xl);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-sm2);
  -webkit-overflow-scrolling: touch;
}
.c-table--barrier-free {
  width: 100%;
  min-width: 800px;
  background: var(--c-bg-white);
}
.c-table--barrier-free thead th {
  background: var(--c-primary-pale);
  color: var(--c-text-main);
  padding: var(--sp-md2) var(--sp-sm);
  font-size: var(--fs-sm2);
  font-weight: 700;
  text-align: center;
  border: 1px solid var(--c-border-light);
  vertical-align: middle;
  line-height: 1.4;
  white-space: nowrap;
}
.c-table--barrier-free tbody td {
  padding: var(--sp-lg) var(--sp-sm);
  border: 1px solid var(--c-border-light);
  text-align: center;
  vertical-align: top;
  background: var(--c-bg-white);
}
.c-table--barrier-free tbody td img {
  margin: var(--sp-xs) auto;
  width: 39px;
}
@media (max-width: 768px) {
  .c-table--barrier-free { min-width: 700px; }
  .c-table--barrier-free thead th { font-size: var(--fs-sm); padding: var(--sp-sm2) var(--sp-xs2); }
  .c-table--barrier-free tbody td { padding: var(--sp-md) var(--sp-xs2); }
  .c-table--barrier-free tbody td img { width: 34px; }
}

/* ========================================
   注意ボックス・補足
   ======================================== */
.c-note-box {
  background: var(--c-bg-warm);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: var(--sp-2xl) var(--sp-2xl2);
  margin: var(--sp-2xl) 0;
  font-size: var(--fs-base);
  color: var(--c-text-sub);
  line-height: 1.9;
}
.c-note-box strong {
  color: var(--c-text-main);
}

.c-alert-box {
  background: var(--c-accent-red-light);
  border: 1px solid #F5C6C6;
  border-radius: var(--r-lg);
  padding: var(--sp-2xl) var(--sp-2xl2);
  margin: var(--sp-2xl) 0;
  font-size: var(--fs-base);
  color: var(--c-accent-red-dark);
  line-height: 1.9;
}

/* ========================================
   PDFリンク
   ======================================== */
.c-pdf-link {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-sm);
  padding: var(--sp-md) var(--sp-2xl);
  background: var(--c-bg-section);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  font-size: var(--fs-base);
  color: var(--c-primary-dark);
  font-weight: 500;
  margin: var(--sp-sm) var(--sp-sm) var(--sp-sm) 0;
  transition: background 0.2s;
}
.c-pdf-link svg {
  width: 20px;
  height: 20px;
  fill: var(--c-accent-red);
  flex-shrink: 0;
}

/* ========================================
   医師紹介（doctor.html / hospital.html / nurse.html）
   ======================================== */
.c-doctor-profile {
  margin-bottom: var(--sp-6xl);
  padding-bottom: var(--sp-6xl);
  border-bottom: 1px solid var(--c-border-light);
}
.c-doctor-profile:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}
.c-doctor-header {
  display: flex;
  gap: var(--sp-2xl2);
  align-items: flex-start;
  margin-bottom: var(--sp-xl);
}
.c-doctor-photo {
  width: 160px;
  height: 200px;
  flex-shrink: 0;
  border-radius: var(--r-xl);
  overflow: hidden;
}
.c-doctor-photo .c-img-placeholder {
  width: 100%;
  height: 100%;
  border-radius: var(--r-xl);
}
.c-doctor-name-area {
  flex: 1;
}
.c-doctor-role {
  font-size: var(--fs-base-md);
  color: var(--c-primary-dark);
  font-weight: 700;
  margin-bottom: var(--sp-xs2);
}
.c-doctor-name {
  font-family: var(--ff-accent);
  font-size: var(--fs-2xl);
  font-weight: 700;
  color: var(--c-text-main);
  margin-bottom: var(--sp-sm2);
  line-height: 1.4;
}
.c-doctor-specialty {
  font-size: var(--fs-base);
  color: var(--c-text-sub);
  margin-bottom: var(--sp-md);
}
.c-doctor-badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-sm);
}
.c-doctor-badge {
  display: inline-block;
  padding: 5px var(--sp-md2);
  border-radius: var(--r-4xl);
  font-size: var(--fs-base-sm);
  font-weight: 700;
  letter-spacing: 0.02em;
}
.c-doctor-badge--best { background: #FFF8E1; color: #B8860B; border: 1px solid #E6C861; }
.c-doctor-badge--professor { background: #EDF5FF; color: #2C5282; border: 1px solid #90CDF4; }
.c-doctor-badge--harvard { background: #FFF0F0; color: #9B2C2C; border: 1px solid #FEB2B2; }
.c-doctor-badge--specialist { background: var(--c-accent-green-light); color: #2D6A2D; border: 1px solid #9AE6B4; }

.c-doctor-message {
  background: var(--c-primary-pale);
  border-radius: var(--r-lg);
  padding: var(--sp-xl) var(--sp-2xl);
  margin-bottom: var(--sp-lg);
  font-size: var(--fs-base);
  color: var(--c-text-sub);
  line-height: 1.9;
}
.c-doctor-creds {
  font-size: var(--fs-base-md);
  color: var(--c-text-light);
  line-height: 2;
}

/* ========================================
   お知らせ一覧・通信アーカイブ（news.html）
   ※ 旧subpage.cssには align-items:baseline / padding:20px の重複定義が
     あったが news.html自身の<style>（後勝ち）で実質無効化されていたため、
     実際に表示されている後者の値のみを採用して統合する
   ======================================== */
.c-news-list li {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: var(--sp-lg);
  padding: var(--sp-lg2) 0;
  border-bottom: 1px solid var(--c-border-light);
}
.c-news-list li:first-child { padding-top: 0; }
@media (max-width: 768px) {
  .c-news-list li { gap: var(--sp-sm2); padding: var(--sp-md2) 0; }
}
.c-news-list .news-date {
  flex-shrink: 0;
  font-size: var(--fs-sm2);
  color: var(--c-text-light);
  width: 100px;
}
.c-news-list .news-category {
  flex-shrink: 0;
  font-size: var(--fs-xs);
  font-weight: 700;
  padding: 3px 12px;
  border-radius: var(--r-xs);
  background: var(--c-bg-section);
  color: var(--c-text-sub);
}
.c-news-list .news-category.cat-info { background: var(--c-accent-blue-light); color: var(--c-accent-blue-dark); }
.c-news-list .news-category.cat-important { background: var(--c-accent-red-light); color: var(--c-accent-red-dark); }
.c-news-list .news-category.cat-news { background: var(--c-accent-green-light); color: var(--c-accent-green-dark); }

/* お知らせ詳細ページ（single.php）のヘッダー部：日付＋カテゴリバッジ */
.c-post-meta {
  display: flex;
  align-items: center;
  gap: var(--sp-lg);
}
.c-post-meta .news-date {
  font-size: var(--fs-sm2);
  color: var(--c-text-light);
}
.c-post-meta .news-category {
  flex-shrink: 0;
  font-size: var(--fs-xs);
  font-weight: 700;
  padding: 3px 12px;
  border-radius: var(--r-xs);
  background: var(--c-bg-section);
  color: var(--c-text-sub);
}
.c-post-meta .news-category.cat-info { background: var(--c-accent-blue-light); color: var(--c-accent-blue-dark); }
.c-post-meta .news-category.cat-important { background: var(--c-accent-red-light); color: var(--c-accent-red-dark); }
.c-post-meta .news-category.cat-news { background: var(--c-accent-green-light); color: var(--c-accent-green-dark); }

/* お知らせ詳細ページ本文：移行元サイトのレイアウト用<table>（罫線・固定幅指定）を
   通常のテキストとして流し込み表示になるよう無効化する */
.l-page-content table {
  width: 100% !important;
  height: auto !important;
  border: none !important;
  border-collapse: collapse;
  margin: var(--sp-lg) 0;
}
.l-page-content table td,
.l-page-content table th {
  width: auto !important;
  height: auto !important;
  padding: 0;
  border: none;
  text-align: left;
  line-height: 1.8;
}
.c-news-list .news-title {
  font-size: var(--fs-base);
  color: var(--c-text-sub);
  line-height: 1.6;
}
a.news-title:hover { text-decoration: underline; }

/* お知らせ一覧のページャー */
.c-pagination {
  margin-top: var(--sp-3xl);
}
.c-pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: var(--sp-sm);
}
.c-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 var(--sp-md);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  font-size: var(--fs-base-sm);
  color: var(--c-text-sub);
  background: var(--c-bg-white);
}
.c-pagination a.page-numbers:hover {
  border-color: var(--c-primary);
  color: var(--c-primary);
}
.c-pagination .page-numbers.current {
  background: var(--c-primary);
  border-color: var(--c-primary);
  color: var(--c-text-white);
  font-weight: 700;
}
.c-pagination .page-numbers.dots {
  border: none;
  background: none;
}

.c-report-year {
  margin-bottom: var(--sp-4xl);
}
.c-report-year h4 {
  border-left: none;
  padding-left: 0;
  margin-top: 0;
}
.c-report-items {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-lg);
}
.c-report-item {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-sm);
  padding: var(--sp-sm2) var(--sp-xl);
  background: var(--c-bg-section);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  font-size: var(--fs-base);
  color: var(--c-primary-dark);
  font-weight: 500;
}
.c-report-item svg {
  width: 18px; height: 18px;
  fill: var(--c-accent-red);
}
a.c-report-item:hover {
  border-color: var(--c-primary);
  background: var(--c-bg-white);
}

/* ========================================
   救急セクション（再利用／現状未使用・将来利用に備え保持）
   ======================================== */
.c-emergency {
  background: var(--c-accent-red);
  padding: var(--sp-7xl) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.c-emergency::before {
  content: "";
  position: absolute;
  top: -40px; right: -40px;
  width: 200px; height: 200px;
  border: 40px solid rgba(255,255,255,0.06);
  border-radius: var(--r-full);
}
.c-emergency h3 {
  font-size: var(--fs-2xl2);
  color: var(--c-text-white);
  margin-bottom: var(--sp-lg);
  border: none;
  padding: 0;
}
.c-emergency p {
  color: rgba(255,255,255,0.9);
  margin-bottom: var(--sp-2xl);
}
.c-emergency__tel-link {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-md2);
  background: var(--c-text-white);
  padding: var(--sp-lg2) var(--sp-4xl);
  border-radius: var(--r-2xl);
}
.c-emergency__tel-icon {
  width: 44px; height: 44px;
  background: var(--c-accent-red);
  border-radius: var(--r-full);
  display: flex;
  align-items: center;
  justify-content: center;
}
.c-emergency__tel-icon svg {
  width: 22px; height: 22px;
  fill: var(--c-text-white);
}
.c-emergency__tel-num {
  font-size: var(--fs-3xl2);
  font-weight: 900;
  color: var(--c-accent-red);
  letter-spacing: 0.03em;
}
@media (max-width: 768px) {
  .c-emergency__tel-link { padding: var(--sp-md2) var(--sp-2xl2); }
  .c-emergency__tel-num { font-size: var(--fs-2xl); }
}

/* ========================================
   CTAバナー（ページ下部の問い合わせ導線）
   ======================================== */
.c-cta-banner {
  background: var(--c-bg-white);
  padding: var(--sp-8xl) 0;
  border-top: 1px solid var(--c-border-light);
}
.c-cta-banner__inner {
  display: flex;
  align-items: center;
  gap: var(--sp-3xl);
  padding: var(--sp-5xl) var(--sp-6xl);
  background: var(--c-bg-white);
  border-radius: var(--r-2xl);
  box-shadow: var(--sh-accent-sm);
}
.c-cta-banner__text {
  flex: 1;
}
.c-cta-banner__text h3 {
  font-size: var(--fs-lg);
  margin-bottom: var(--sp-sm);
  border: none;
  padding: 0;
}
.c-cta-banner__text p {
  font-size: var(--fs-base);
  margin-bottom: 0;
}
.c-cta-banner__actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: var(--sp-lg);
  flex-shrink: 0;
  min-width: 260px;
}
.c-cta-banner__divider {
  display: flex;
  align-items: center;
  gap: var(--sp-md);
  color: var(--c-text-light);
  font-size: var(--fs-base-sm);
}
.c-cta-banner__divider::before,
.c-cta-banner__divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--c-border);
}
.c-cta-banner__tel {
  flex-shrink: 0;
  text-align: center;
  padding: var(--sp-sm2) 0 0;
}
.c-cta-banner__tel .tel-label {
  font-size: var(--fs-base-sm);
  color: var(--c-text-light);
  margin-bottom: var(--sp-2xs);
}
.c-cta-banner__tel .number {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-xs2);
  font-size: var(--fs-2xl);
  font-weight: 900;
  color: var(--c-primary-dark);
  letter-spacing: 0.03em;
}
.c-cta-banner__tel .number::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 18px;
  background: var(--c-primary);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M6.62 10.79c1.44 2.83 3.76 5.14 6.59 6.59l2.2-2.2c.27-.27.67-.36 1.02-.24 1.12.37 2.33.57 3.57.57.55 0 1 .45 1 1V20c0 .55-.45 1-1 1-9.39 0-17-7.61-17-17 0-.55.45-1 1-1h3.5c.55 0 1 .45 1 1 0 1.25.2 2.45.57 3.57.11.35.03.74-.25 1.02l-2.2 2.2z'/%3E%3C/svg%3E") no-repeat center / contain;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M6.62 10.79c1.44 2.83 3.76 5.14 6.59 6.59l2.2-2.2c.27-.27.67-.36 1.02-.24 1.12.37 2.33.57 3.57.57.55 0 1 .45 1 1V20c0 .55-.45 1-1 1-9.39 0-17-7.61-17-17 0-.55.45-1 1-1h3.5c.55 0 1 .45 1 1 0 1.25.2 2.45.57 3.57.11.35.03.74-.25 1.02l-2.2 2.2z'/%3E%3C/svg%3E") no-repeat center / contain;
  flex-shrink: 0;
}
.c-cta-banner__tel .sub {
  font-size: var(--fs-base-sm);
  color: var(--c-text-light);
}
@media (max-width: 768px) {
  .c-cta-banner__inner { flex-direction: column; text-align: center; padding: var(--sp-2xl2) var(--sp-2xl); }
  .c-cta-banner__actions { width: 100%; min-width: 0; }
  .c-btn--cta { width: 100%; padding: var(--sp-lg) var(--sp-2xl); }
}

/* ========================================
   目次ボックス
   ======================================== */
.c-toc-box {
  background: var(--c-bg-section);
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  padding: var(--sp-2xl2) var(--sp-3xl);
  margin-bottom: var(--sp-5xl);
}
.c-toc-box h4 {
  margin: 0 0 var(--sp-lg);
  padding-left: 0;
  border-left: none;
  font-size: var(--fs-md2);
}
.c-toc-box ol {
  list-style: decimal;
  padding-left: var(--sp-xl);
  margin: 0;
}
.c-toc-box ol li {
  margin-bottom: var(--sp-sm);
}
.c-toc-box ol li a {
  font-size: var(--fs-base);
  color: var(--c-primary-dark);
}

/* ========================================
   FAQ（よくある質問）
   ======================================== */
.c-faq-list {
  margin-top: var(--sp-xl);
}
.c-faq-item {
  border: 1px solid var(--c-border-light);
  border-radius: var(--r-xl);
  padding: var(--sp-xl) var(--sp-2xl);
  margin-bottom: var(--sp-md2);
  background: var(--c-bg-white);
}
.c-faq-item:last-child { margin-bottom: 0; }
.c-faq-item .c-faq-item__q {
  display: flex;
  gap: var(--sp-sm2);
  font-weight: 700;
  color: var(--c-text-main);
  font-size: var(--fs-md);
  line-height: 1.7;
  margin-bottom: var(--sp-sm2);
}
.c-faq-item .c-faq-item__q .c-faq-item__mark {
  flex: none;
  color: var(--c-primary);
  font-weight: 900;
}
.c-faq-item .c-faq-item__a {
  display: flex;
  gap: var(--sp-sm2);
  color: var(--c-text-sub);
  font-size: var(--fs-base-sm);
  line-height: 1.9;
}
.c-faq-item .c-faq-item__a .c-faq-item__mark {
  flex: none;
  color: var(--c-primary-dark);
  font-weight: 900;
}

/* ========================================
   関連ページ（記事間の内部リンク）
   ======================================== */
.c-related-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--sp-md);
  margin-top: var(--sp-lg);
}
.c-related-links a {
  display: block;
  padding: var(--sp-lg) var(--sp-lg2);
  background: var(--c-primary-pale);
  border-radius: var(--r-lg);
  color: var(--c-text-main);
  font-size: var(--fs-base-sm);
  font-weight: 500;
  line-height: 1.6;
  transition: background 0.15s;
}
.c-related-links a:hover { background: var(--c-primary-light); }

/* 参考情報（外部リンク） */
.c-ref-list {
  margin: var(--sp-lg) 0 0;
}
.c-ref-list li {
  padding: var(--sp-sm2) 0;
  border-bottom: 1px solid var(--c-border-light);
  font-size: var(--fs-base-sm);
}
.c-ref-list li:last-child { border-bottom: none; }
.c-ref-list a {
  color: var(--c-primary-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ========================================
   記事一覧（ハブページ）カード
   ======================================== */
.c-article-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--sp-xl);
  margin-top: var(--sp-2xl);
}
.c-article-card {
  display: block;
  background: var(--c-bg-white);
  border: 1px solid var(--c-border);
  border-radius: var(--r-2xl);
  padding: var(--sp-2xl);
  transition: box-shadow 0.2s;
}
.c-article-card:hover { box-shadow: var(--sh-lg); }
.c-article-card .c-article-card__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  background: var(--c-primary);
  color: var(--c-white);
  font-weight: 900;
  font-size: var(--fs-sm2);
  border-radius: var(--r-full);
  margin-bottom: var(--sp-md2);
}
.c-article-card h3 {
  font-size: var(--fs-base);
  font-weight: 700;
  color: var(--c-text-main);
  line-height: 1.6;
  margin-bottom: var(--sp-sm2);
}
.c-article-card p {
  font-size: var(--fs-sm2);
  line-height: 1.8;
  color: var(--c-text-sub);
}

/* ========================================
   ページ内画像
   ======================================== */
.c-page-img {
  margin: var(--sp-2xl2) 0;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--sh-lg);
}
.c-page-img img {
  width: 100%;
  height: auto;
}
.c-page-img .c-img-placeholder {
  width: 100%;
  border-radius: var(--r-xl);
}
/* content-section内の.c-page-imgだけ右寄せ＋テキスト回り込み */
.l-content-section > .c-page-img {
  float: right;
  width: 46%;
  margin: var(--sp-xs) 0 var(--sp-xl) var(--sp-3xl);
  shape-outside: margin-box;
}
.l-content-section::after {
  content: "";
  display: table;
  clear: both;
}
@media (max-width: 768px) {
  .l-content-section > .c-page-img {
    float: none;
    width: 100%;
    margin: var(--sp-lg) 0;
  }
}

/* ========================================
   状態クラス（is-*）
   ======================================== */
.is-active { }
.is-open { }
.is-scrolled { }
.is-row-head { }

/* ========================================
   ユーティリティ（u-*）
   実際にインラインstyleとして多用されていた値を置き換える最小セット
   ======================================== */
.u-text-center { text-align: center; }
.u-mt-8 { margin-top: var(--sp-sm); }
.u-mt-12 { margin-top: var(--sp-md); }
.u-mt-16 { margin-top: var(--sp-lg); }
.u-mt-20 { margin-top: var(--sp-xl); }
.u-mt-24 { margin-top: var(--sp-2xl); }
.u-mb-8 { margin-bottom: var(--sp-sm); }
.u-mb-16 { margin-bottom: var(--sp-lg); }
.u-flex-wrap-gap-8 { display: flex; flex-wrap: wrap; gap: var(--sp-sm); }
.u-text-small { font-size: var(--fs-sm2); color: var(--c-text-light); }
.u-fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.u-fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}
/* フェードイン JS未動作時のフォールバック */
@keyframes u-fadeInSafety {
  to { opacity: 1; transform: none; }
}
.u-fade-in {
  animation: u-fadeInSafety 0.5s 1.5s both;
}
.u-fade-in.is-visible {
  animation: none;
}

/* ========================================
   プレースホルダー共通
   ======================================== */
.c-img-placeholder {
  background: var(--c-placeholder);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #9CA3AF;
  font-size: var(--fs-base-sm);
  line-height: 1.6;
  text-align: center;
  position: relative;
}
.c-img-placeholder .ph-path { font-weight: 700; margin-bottom: var(--sp-2xs); }
.c-img-placeholder .ph-size { font-size: var(--fs-sm2); }

/* ========================================
   お問い合わせフォーム（contact.html）
   ======================================== */
.c-form {
  max-width: 720px;
  margin: 0 auto;
}
.c-form__group {
  margin-bottom: var(--sp-2xl2);
}
.c-form__group label {
  display: block;
  font-size: var(--fs-base-md);
  font-weight: 700;
  color: var(--c-text-main);
  margin-bottom: var(--sp-sm);
}
.c-form__group label .c-form__badge {
  display: inline-block;
  font-size: var(--fs-2xs);
  font-weight: 700;
  padding: 2px var(--sp-sm);
  border-radius: var(--r-xs);
  margin-left: var(--sp-sm);
  vertical-align: middle;
}
.c-form__badge--required { background: var(--c-accent-red); color: var(--c-white); }
.c-form__badge--optional { background: var(--c-border); color: var(--c-text-sub); }
.c-form__group input[type="text"],
.c-form__group input[type="email"],
.c-form__group input[type="tel"],
.c-form__group select,
.c-form__group textarea {
  width: 100%;
  padding: var(--sp-md2) var(--sp-lg);
  font-size: var(--fs-base-md);
  font-family: var(--ff-main);
  color: var(--c-text-main);
  background: var(--c-bg-white);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
  appearance: none;
}
.c-form__group input:focus,
.c-form__group select:focus,
.c-form__group textarea:focus {
  outline: none;
  border-color: var(--c-primary);
  box-shadow: var(--sh-accent-focus);
}
.c-form__group textarea {
  min-height: 180px;
  resize: vertical;
}
.c-form__group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235C574F' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--sp-lg) center;
  padding-right: var(--sp-5xl);
}
.c-form__group .c-form__note {
  font-size: var(--fs-sm);
  color: var(--c-text-light);
  margin-top: var(--sp-xs2);
  line-height: 1.7;
}
.c-form__submit {
  text-align: center;
  margin-top: var(--sp-5xl);
}
.c-form__submit button,
.c-form__submit input[type="submit"] {
  display: inline-block;
  padding: var(--sp-lg2) var(--sp-8xl);
  font-size: var(--fs-base);
  font-weight: 700;
  font-family: var(--ff-main);
  color: var(--c-text-white);
  background: var(--c-primary);
  border: none;
  border-radius: var(--r-lg);
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s, opacity 0.2s;
}
.c-form__submit button:hover,
.c-form__submit input[type="submit"]:hover {
  background: var(--c-primary-dark);
}
.c-form__submit button:active,
.c-form__submit input[type="submit"]:active {
  transform: scale(0.98);
}
.c-form__submit input[type="submit"]:disabled,
.c-form__submit input[type="submit"].is-disabled {
  background: var(--c-border-gray);
  cursor: not-allowed;
  transform: none;
}
.c-form__privacy-check {
  text-align: center;
  margin-top: var(--sp-2xl);
  margin-bottom: var(--sp-sm);
}
.c-form__privacy-check label {
  font-size: var(--fs-base-sm);
  color: var(--c-text-sub);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: var(--sp-sm);
}
.c-form__privacy-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--c-primary);
}

/* ---- CF7標準出力（バリデーションtip・送信結果メッセージ） ---- */
.c-form .wpcf7-not-valid-tip {
  display: block;
  font-size: var(--fs-sm);
  color: var(--c-accent-red-dark);
  margin-top: var(--sp-xs2);
}
.c-form__group input.wpcf7-not-valid,
.c-form__group select.wpcf7-not-valid,
.c-form__group textarea.wpcf7-not-valid {
  border-color: var(--c-accent-red);
}
.c-form .wpcf7-response-output {
  max-width: 720px;
  margin: 0 auto var(--sp-2xl2);
  padding: var(--sp-lg) var(--sp-xl);
  border-radius: var(--r-md);
  font-size: var(--fs-base-sm);
  line-height: 1.7;
  border: 1px solid var(--c-border);
  color: var(--c-text-sub);
}
.wpcf7-form.invalid .wpcf7-response-output,
.wpcf7-form.aborted .wpcf7-response-output,
.wpcf7-form.failed .wpcf7-response-output {
  background: var(--c-accent-red-light);
  border-color: var(--c-accent-red);
  color: var(--c-accent-red-dark);
}
.wpcf7-form.sent .wpcf7-response-output {
  background: var(--c-accent-green-light);
  border-color: var(--c-accent-green);
  color: var(--c-accent-green-dark);
}
.wpcf7-form.submitting .c-form__submit button,
.wpcf7-form.submitting .c-form__submit input[type="submit"] {
  opacity: 0.6;
  pointer-events: none;
}
.c-form .wpcf7-spinner { margin: 0 0 0 var(--sp-md); }

/* ========================================
   FAQアコーディオン（details/summary、contact.html）
   ※ 記事ページの静的FAQ（.c-faq-item）とは別コンポーネント
   ======================================== */
.c-faq-accordion__intro {
  background: var(--c-bg-peach-2);
  border-left: 4px solid var(--c-primary);
  padding: var(--sp-lg2) var(--sp-xl2);
  border-radius: var(--r-sm);
  margin-bottom: var(--sp-2xl2);
  font-size: var(--fs-base-md);
  line-height: 1.8;
}
.c-faq-accordion__intro strong { color: var(--c-primary-dark); }
.c-faq-accordion__group {
  margin-bottom: var(--sp-3xl);
}
.c-faq-accordion__group-title {
  font-size: var(--fs-md);
  font-weight: 700;
  color: var(--c-primary-dark);
  margin: 0 0 var(--sp-md) 0;
  padding-bottom: var(--sp-sm);
  border-bottom: 2px solid var(--c-primary);
  display: inline-block;
}
.c-faq-accordion__item {
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  margin-bottom: var(--sp-sm2);
  background: var(--c-bg-white);
  overflow: hidden;
}
.c-faq-accordion__item summary {
  padding: var(--sp-lg) 56px var(--sp-lg) var(--sp-xl);
  cursor: pointer;
  font-weight: 700;
  font-size: var(--fs-base-md);
  color: var(--c-text-main);
  position: relative;
  line-height: 1.6;
  transition: background 0.15s;
}
.c-faq-accordion__item summary:hover {
  background: var(--c-bg-peach);
}
.c-faq-accordion__item summary::-webkit-details-marker { display: none; }
.c-faq-accordion__item summary::before {
  content: "Q.";
  color: var(--c-primary);
  font-weight: 700;
  margin-right: var(--sp-sm);
}
.c-faq-accordion__item summary::after {
  content: "";
  position: absolute;
  right: var(--sp-xl);
  top: 50%;
  width: 14px;
  height: 14px;
  border-right: 2px solid var(--c-primary);
  border-bottom: 2px solid var(--c-primary);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.2s;
}
.c-faq-accordion__item[open] summary::after {
  transform: translateY(-30%) rotate(-135deg);
}
.c-faq-accordion__answer {
  padding: 0 var(--sp-xl) var(--sp-lg2) var(--sp-xl);
  font-size: var(--fs-base-sm);
  line-height: 1.8;
  color: var(--c-text-sub);
  border-top: 1px solid var(--c-border);
  padding-top: var(--sp-md2);
  margin-top: 0;
}
.c-faq-accordion__answer::before {
  content: "A. ";
  color: var(--c-primary);
  font-weight: 700;
}
.c-faq-accordion__cta {
  text-align: center;
  padding: var(--sp-xl);
  background: #f9f5ee;
  border-radius: var(--r-md);
  margin-top: var(--sp-2xl);
  font-size: var(--fs-base-md);
}
.c-faq-accordion__cta a {
  color: var(--c-primary-dark);
  font-weight: 700;
  text-decoration: underline;
}
@media (max-width: 768px) {
  .c-faq-accordion__group-title { font-size: var(--fs-md2); }
  .c-faq-accordion__item summary { font-size: var(--fs-base-sm); padding: var(--sp-md2) 48px var(--sp-md2) var(--sp-lg); }
  .c-faq-accordion__item summary::after { right: var(--sp-lg); width: 12px; height: 12px; }
  .c-faq-accordion__answer { padding: var(--sp-md) var(--sp-lg) var(--sp-lg) var(--sp-lg); font-size: var(--fs-sm2); }
}

/* ========================================
   時間外診療ヒーロー（outofhourcare.html）
   ======================================== */
.c-emergency-hero {
  background: var(--c-accent-blue);
  padding: var(--sp-7xl) 0 52px;
  position: relative;
  overflow: hidden;
}
.c-emergency-hero::before {
  content: "";
  position: absolute;
  top: -40px; right: -40px;
  width: 200px; height: 200px;
  border: 40px solid rgba(255,255,255,0.06);
  border-radius: var(--r-full);
}
.c-emergency-hero__inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--sp-6xl);
  align-items: center;
  position: relative;
  z-index: 1;
}
.c-emergency-hero__text { text-align: left; }
.c-emergency-hero__image {
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--sh-2xl);
}
.c-emergency-hero__image img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.c-emergency-hero__badge-24h {
  display: inline-block;
  background: rgba(255,255,255,0.2);
  color: var(--c-white);
  font-size: var(--fs-sm2); font-weight: 700;
  padding: var(--sp-xs2) var(--sp-2xl);
  border-radius: var(--r-4xl);
  letter-spacing: 0.08em;
  margin-bottom: var(--sp-lg);
  border: 1px solid rgba(255,255,255,0.3);
}
.c-emergency-hero h2 {
  font-size: var(--fs-3xl2); font-weight: 700;
  color: var(--c-white);
  margin-bottom: var(--sp-sm2);
  line-height: 1.4;
}
.c-emergency-hero p { color: rgba(255,255,255,0.95); font-size: var(--fs-base); line-height: 1.7; }
@media (max-width: 768px) {
  .c-emergency-hero__inner { grid-template-columns: 1fr; gap: var(--sp-2xl); }
  .c-emergency-hero h2 { font-size: var(--fs-2xl); }
}

.c-symptom-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--sp-md);
  margin-top: var(--sp-xl);
}
.c-symptom-card {
  background: var(--c-primary-pale);
  border-radius: var(--r-lg);
  padding: var(--sp-lg) var(--sp-lg2);
  font-size: var(--fs-base-sm);
  font-weight: 500;
  color: var(--c-text-main);
  display: flex;
  align-items: center;
  gap: var(--sp-sm2);
}
.c-symptom-card::before {
  content: "";
  display: block;
  width: 8px; height: 8px;
  background: var(--c-primary);
  border-radius: var(--r-full);
  flex-shrink: 0;
}

.c-step-list {
  counter-reset: step;
}
.c-step-list li {
  counter-increment: step;
  display: flex;
  gap: var(--sp-lg);
  padding: var(--sp-xl) 0;
  border-bottom: 1px solid var(--c-border);
  align-items: flex-start;
}
.c-step-list li:last-child { border-bottom: none; }
.c-step-list li::before {
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 36px; height: 36px;
  background: var(--c-primary);
  color: var(--c-white);
  font-weight: 700;
  border-radius: var(--r-full);
  font-size: var(--fs-base-md);
  flex-shrink: 0;
}
.c-step-list li .c-step-list__text { font-size: var(--fs-base-sm); line-height: 1.8; }
.c-step-list li .c-step-list__text strong { color: var(--c-text-main); }
.c-step-list__note {
  display: block;
  font-size: var(--fs-sm);
  color: var(--c-text-light);
  margin-top: var(--sp-xs);
}

.c-caution-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-sm);
  margin-top: var(--sp-md);
}
.c-caution-list li {
  background: #FFF4F4;
  color: #B33A3A;
  font-size: var(--fs-sm2);
  font-weight: 500;
  padding: var(--sp-xs2) var(--sp-lg);
  border-radius: var(--r-4xl);
  border: 1px solid #F5DADA;
}

.c-feature-highlight {
  background: linear-gradient(135deg, var(--c-primary-pale) 0%, #fff 100%);
  border-left: 4px solid var(--c-primary);
  border-radius: 0 var(--r-xl) var(--r-xl) 0;
  padding: var(--sp-2xl) var(--sp-2xl2);
  margin-top: var(--sp-xl);
}
.c-feature-highlight p {
  margin: 0;
  font-size: var(--fs-base-sm);
  line-height: 1.9;
}
/* fibromyalgia.htmlの.advice-boxと同一パターンでpadding/radiusのみ大きい派生形 */
.c-feature-highlight--lg {
  border-radius: 0 var(--r-2xl) var(--r-2xl) 0;
  padding: var(--sp-2xl2) var(--sp-2xl2);
}
.c-feature-highlight--lg p {
  font-size: var(--fs-base-sm);
  line-height: 2;
  margin-bottom: var(--sp-md);
}
.c-feature-highlight--lg p:last-child { margin-bottom: 0; }

/* ========================================
   ハイライトグリッド（2カラムの強調ボックス）
   rheumatism.html .approach-box と fibromyalgia.html .trigger-box を統合
   ======================================== */
.c-highlight-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-lg);
  margin-top: var(--sp-lg);
}
@media (max-width: 600px) {
  .c-highlight-grid { grid-template-columns: 1fr; }
}
.c-highlight-item {
  background: var(--c-primary-pale);
  border-radius: var(--r-xl);
  padding: var(--sp-xl) var(--sp-xl2);
  text-align: left;
}
.c-highlight-item__label {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--c-primary);
  background: rgba(255,255,255,0.8);
  padding: 3px var(--sp-md2);
  border-radius: var(--r-xl);
  margin-bottom: var(--sp-sm2);
}
.c-highlight-item h4 {
  font-size: var(--fs-base-md);
  font-weight: 700;
  color: var(--c-text-main);
  margin-bottom: var(--sp-sm);
}
.c-highlight-item p {
  font-size: var(--fs-sm2);
  color: var(--c-text-sub);
  line-height: 1.7;
  margin: 0;
}

/* ========================================
   症状カードグリッド（fibromyalgia.html）
   ======================================== */
.c-detail-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--sp-lg);
  margin-top: var(--sp-xl);
}
.c-detail-card {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--r-2xl);
  padding: var(--sp-xl2) var(--sp-2xl);
}
.c-detail-card h4 {
  font-size: var(--fs-base-md);
  font-weight: 700;
  color: var(--c-primary-dark);
  margin-bottom: var(--sp-sm2);
  padding-bottom: var(--sp-sm);
  border-bottom: 2px solid var(--c-primary-pale);
}
.c-detail-card p {
  font-size: var(--fs-sm2);
  line-height: 1.8;
  color: var(--c-text-sub);
}

/* 診断基準ボックス（fibromyalgia.html） */
.c-note-box--diagnosis {
  background: #FFF8F2;
  border-color: #F5E0CC;
  border-radius: var(--r-2xl);
  padding: var(--sp-2xl) var(--sp-2xl2);
}
.c-note-box--diagnosis h4 {
  font-size: var(--fs-base-sm);
  font-weight: 700;
  color: var(--c-primary-dark);
  margin-bottom: var(--sp-sm);
}
.c-note-box--diagnosis p {
  font-size: var(--fs-sm2);
  line-height: 1.8;
  color: var(--c-text-sub);
  margin-bottom: var(--sp-md);
}
.c-note-box--diagnosis p:last-child { margin-bottom: 0; }

/* ボーダー付き小見出し（fibromyalgia.html 治療セクション見出し） */
.c-subheading--bordered {
  margin-top: var(--sp-lg);
}
.c-subheading--bordered h4 {
  font-size: var(--fs-base-md);
  font-weight: 700;
  color: var(--c-text-main);
  margin-bottom: var(--sp-sm);
  padding-left: var(--sp-md2);
  border-left: 3px solid var(--c-primary);
}

/* シンプルな下線リンク一覧 */
.c-link-list li {
  padding: var(--sp-sm) 0;
  font-size: var(--fs-sm2);
}
.c-link-list li a {
  color: var(--c-primary-dark);
  text-decoration: underline;
}
.c-link-list li a:hover { text-decoration: none; }

.c-author-note {
  text-align: right;
  font-size: var(--fs-sm2);
  color: var(--c-text-light);
  margin-top: var(--sp-2xl);
  padding-top: var(--sp-lg);
  border-top: 1px solid var(--c-border);
}

/* ========================================
   タブ切り替え（news.html）
   ======================================== */
.c-tabs {
  display: flex;
  gap: var(--sp-xs);
  margin-bottom: var(--sp-3xl);
  border-bottom: 2px solid var(--c-border);
}
.c-tabs button {
  flex: 1;
  padding: var(--sp-lg) var(--sp-xl);
  background: transparent;
  font-size: var(--fs-base);
  font-weight: 700;
  font-family: var(--ff-main);
  color: var(--c-text-light);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.c-tabs button:hover {
  color: var(--c-primary-dark);
  background: var(--c-bg-peach);
}
.c-tabs button.is-active {
  color: var(--c-primary-dark);
  border-bottom-color: var(--c-primary);
}
.c-tabs__panel { display: none; }
.c-tabs__panel.is-active { display: block; }
@media (max-width: 768px) {
  .c-tabs button { font-size: var(--fs-base-sm); padding: var(--sp-md2) var(--sp-sm2); }
}

/* ========================================
   ページ冒頭キャッチコピー
   rheumatism.html .ra-concept と orthopedics.html .ortho-concept は
   完全に同一のパターンだったため統合
   ======================================== */
.c-page-concept {
  text-align: center;
  padding: var(--sp-xl) 0 var(--sp-sm);
}
.c-page-concept .c-page-concept__catchcopy {
  font-family: var(--ff-accent);
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--c-primary-dark);
  letter-spacing: 0.06em;
  line-height: 1.6;
}
.c-page-concept .c-page-concept__catchcopy em {
  font-style: normal;
  display: inline-block;
  border-bottom: 3px solid var(--c-primary);
  padding-bottom: 2px;
}

/* ========================================
   柱カード（rheumatism.html .pillar-*）
   ======================================== */
.c-pillar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--sp-xl);
  margin-top: var(--sp-2xl);
}
.c-pillar-card {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--r-2xl);
  padding: var(--sp-2xl2) var(--sp-2xl);
  text-align: center;
  transition: box-shadow 0.2s;
}
.c-pillar-card:hover { box-shadow: var(--sh-lg); }
.c-pillar-card .c-pillar-card__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  background: var(--c-primary);
  color: #fff;
  font-weight: 900;
  font-size: var(--fs-md);
  border-radius: var(--r-full);
  margin-bottom: var(--sp-md2);
}
.c-pillar-card h4 {
  font-size: var(--fs-base);
  font-weight: 700;
  color: var(--c-text-main);
  margin-bottom: var(--sp-md);
}
.c-pillar-card p { font-size: var(--fs-sm2); line-height: 1.8; color: var(--c-text-sub); text-align: left; }

/* ========================================
   特徴カード（orthopedics.html .feature-*）
   ======================================== */
.c-feature-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--sp-xl);
  margin-top: var(--sp-2xl);
}
.c-feature-card {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--r-2xl);
  padding: var(--sp-2xl2) var(--sp-2xl);
  transition: box-shadow 0.2s;
}
.c-feature-card:hover { box-shadow: var(--sh-lg); }
.c-feature-card .c-feature-card__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  background: var(--c-primary);
  color: #fff;
  font-weight: 900;
  font-size: var(--fs-base-md);
  border-radius: var(--r-full);
  margin-bottom: var(--sp-md2);
}
.c-feature-card h4 { font-size: var(--fs-base); font-weight: 700; color: var(--c-text-main); margin-bottom: var(--sp-sm2); }
.c-feature-card p { font-size: var(--fs-sm2); line-height: 1.8; color: var(--c-text-sub); }

/* 手術メニュー（orthopedics.html） */
.c-surgery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--sp-xl); margin-top: var(--sp-xl); }
.c-surgery-item { background: var(--c-primary-pale); border-radius: var(--r-xl); padding: var(--sp-2xl) var(--sp-xl2); }
.c-surgery-item h4 { font-size: var(--fs-base-md); font-weight: 700; color: var(--c-primary-dark); margin-bottom: var(--sp-sm2); }
.c-surgery-item p { font-size: var(--fs-sm2); color: var(--c-text-sub); line-height: 1.7; }

/* 対応症例カテゴリ（orthopedics.html） */
.c-case-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--sp-lg); margin-top: var(--sp-xl); }
.c-case-category { background: var(--c-bg-section); border-radius: var(--r-xl); padding: var(--sp-xl) var(--sp-xl2); border: 1px solid var(--c-border-light); }
.c-case-category h4 { font-size: var(--fs-base-sm); font-weight: 700; color: var(--c-primary-dark); margin-bottom: var(--sp-sm2); padding-bottom: var(--sp-sm); border-bottom: 2px solid var(--c-primary); }
.c-case-category ul li { padding: 5px 0 5px var(--sp-lg2); font-size: var(--fs-sm2); color: var(--c-text-sub); line-height: 1.6; position: relative; }
.c-case-category ul li::before { content: "・"; position: absolute; left: 0; color: var(--c-primary); }

/* 症状チェックボックス（orthopedics.html） */
.c-symptom-box { background: var(--c-primary-pale); border: 1px solid var(--c-border); border-radius: var(--r-2xl); padding: var(--sp-2xl) var(--sp-2xl2); margin-top: var(--sp-xl); }
.c-symptom-box h4 { font-size: var(--fs-base-md); font-weight: 700; color: var(--c-primary-dark); margin-bottom: var(--sp-md); }
.c-symptom-box ul li { padding: var(--sp-xs2) 0 var(--sp-xs2) var(--sp-xl2); font-size: var(--fs-base-sm); line-height: 1.7; position: relative; }
.c-symptom-box ul li::before { content: "✓"; position: absolute; left: 0; color: var(--c-primary); font-weight: 700; }
/* 症状リスト＋イラスト 2カラム */
.c-symptom-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-2xl2); align-items: stretch; margin-top: var(--sp-xl); }
.c-symptom-row .c-symptom-box { margin-top: 0; }
.c-symptom-illust { background: #fff; border: 1px solid var(--c-border); border-radius: var(--r-2xl); padding: var(--sp-lg); box-shadow: var(--sh-md); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.c-symptom-illust img { max-height: 100%; object-fit: contain; border-radius: var(--r-md); }
@media (max-width: 768px) { .c-symptom-row { grid-template-columns: 1fr; gap: var(--sp-lg); } }

body .c-emergency-badge-inline { display: inline-flex; align-items: center; gap: var(--sp-sm); background: var(--c-accent-red); color: #fff; font-size: var(--fs-sm2); font-weight: 700; padding: var(--sp-sm) var(--sp-xl); border-radius: var(--r-md); margin-top: var(--sp-md); }
body .c-pdf-link { color: var(--c-primary-dark); }
body .c-highlight-item__label { color: var(--c-primary); }
body .c-author-note { color: var(--c-text-light); }
body .c-doctor-role { color: var(--c-primary-dark); }
body .c-doctor-name { color: var(--c-text-main); }
body .c-doctor-creds { color: var(--c-text-light); }
body .c-faq-accordion__group-title { color: var(--c-primary-dark); }
body .c-symptom-card { color: var(--c-text-main); }

/* ========================================
   メッセージボックス（rheumatism.html / orthopedics.html 共通）
   ======================================== */
.c-message-box {
  background: linear-gradient(135deg, var(--c-primary-dark) 0%, #A85518 100%);
  border-radius: var(--r-3xl);
  padding: var(--sp-4xl) var(--sp-3xl);
  text-align: center;
  margin-top: var(--sp-3xl);
}
.c-message-box .c-message-box__title {
  font-family: var(--ff-accent);
  font-size: var(--fs-xl);
  font-weight: 700;
  color: #fff;
  margin-bottom: var(--sp-lg);
  letter-spacing: 0.04em;
}
.c-message-box p {
  font-size: var(--fs-base-sm);
  line-height: 1.9;
  color: rgba(255,255,255,0.9);
}

/* ========================================
   写真＋テキスト横並び（rheumatism.html）
   ======================================== */
.c-photo-text {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-3xl);
  align-items: center;
  margin-top: var(--sp-xl);
}
.c-photo-text .c-photo-placeholder {
  aspect-ratio: 4 / 3;
  background: var(--c-primary-pale);
  border-radius: var(--r-2xl);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.c-photo-text .c-photo-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.c-photo-text .c-photo-placeholder .ph-text {
  font-size: var(--fs-sm);
  color: var(--c-text-light);
  text-align: center;
  padding: var(--sp-xl);
}
@media (max-width: 768px) {
  .c-photo-text { grid-template-columns: 1fr; gap: var(--sp-xl); }
}

/* ========================================
   医師紹介ミニカード（rheumatism.html）
   ======================================== */
.c-doctor-mini-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--sp-lg);
  margin-top: var(--sp-xl);
}
.c-doctor-mini {
  background: var(--c-bg-section);
  border-radius: var(--r-2xl);
  padding: var(--sp-2xl) var(--sp-xl);
  text-align: center;
  border: 1px solid var(--c-border-light);
}
.c-doctor-mini .c-doctor-mini__photo {
  width: 120px;
  height: 120px;
  border-radius: var(--r-full);
  background: var(--c-primary-pale);
  margin: 0 auto var(--sp-md2);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.c-doctor-mini .c-doctor-mini__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.c-doctor-mini .c-doctor-mini__photo .ph-icon {
  font-size: var(--fs-sm);
  color: var(--c-text-light);
}
.c-doctor-mini .c-doctor-mini__name {
  font-size: var(--fs-md);
  font-weight: 700;
  color: var(--c-text-main);
  margin-bottom: var(--sp-xs2);
}
.c-doctor-mini .c-doctor-mini__title {
  font-size: var(--fs-sm2);
  color: var(--c-text-light);
  line-height: 1.6;
}
@media (max-width: 768px) {
  .c-doctor-mini-cards { grid-template-columns: repeat(2, 1fr); }
}

/* ========================================
   看護単位グリッド（nurse.html）
   ======================================== */
.c-nurse-unit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-3xl);
  align-items: start;
  margin-top: var(--sp-lg);
}
.c-nurse-unit-photo {
  border-radius: var(--r-xl);
  overflow: hidden;
  position: sticky;
  top: 100px;
}
@media (max-width: 768px) {
  .c-nurse-unit-grid {
    grid-template-columns: 1fr;
    gap: var(--sp-xl);
  }
  .c-nurse-unit-photo { position: static; }
}

/* disease-tags（rheumatism.html） */
.c-disease-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-sm);
  margin-top: var(--sp-md);
}
.c-disease-tags span {
  background: var(--c-primary-pale);
  color: var(--c-primary-dark);
  font-size: var(--fs-sm2);
  font-weight: 500;
  padding: var(--sp-xs2) var(--sp-lg);
  border-radius: var(--r-4xl);
  border: 1px solid rgba(200,120,50,0.15);
}

/* safety-box（rheumatism.html） */
.c-safety-box {
  background: var(--c-primary-pale);
  border: 1px solid var(--c-border);
  border-radius: var(--r-2xl);
  padding: var(--sp-2xl) var(--sp-2xl2);
  margin-top: var(--sp-xl);
}
.c-safety-box h4 {
  font-size: var(--fs-base-md);
  font-weight: 700;
  color: var(--c-primary-dark);
  margin-bottom: var(--sp-md);
}
.c-safety-box ul li {
  padding: var(--sp-xs2) 0;
  font-size: var(--fs-base-sm);
  line-height: 1.7;
  padding-left: var(--sp-xl);
  position: relative;
}
.c-safety-box ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--c-primary);
  font-weight: 700;
}

/* ========================================
   ヘッダーナビ関連（旧header.jsのJS注入<style>から移設）
   ======================================== */
.l-nav-menu li { position: relative; }
.l-nav-menu .c-nav-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--c-bg-white);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  border-radius: 0 0 10px 10px;
  z-index: 200;
  padding: 6px 0;
}
.l-nav-menu .is-has-dropdown:hover > .c-nav-dropdown,
.l-nav-menu .is-has-dropdown:focus-within > .c-nav-dropdown {
  display: block;
}
.l-nav-menu .c-nav-dropdown li { flex: none; text-align: left; }
.l-nav-menu .c-nav-dropdown li a {
  display: block;
  padding: 12px 22px;
  font-size: 14px;
  color: var(--c-text-sub);
  border-right: none;
  transition: background 0.15s, color 0.15s;
}
.l-nav-menu .c-nav-dropdown li a:hover {
  background: var(--c-primary-pale);
  color: var(--c-primary-dark);
}
.l-nav-menu .is-has-dropdown > a::after {
  content: "";
  display: inline-block;
  width: 0; height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid rgba(255,255,255,0.7);
  margin-left: 6px;
  vertical-align: middle;
}
.c-pc-shortcuts {
  display: flex;
  gap: 6px;
  margin-right: 16px;
}
.c-pc-shortcut {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 64px;
  padding: 6px 10px;
  border-radius: 6px;
  background: var(--c-primary-tint);
  color: var(--c-primary-dark);
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid var(--c-primary);
  transition: background 0.15s, color 0.15s;
  line-height: 1.2;
}
.c-pc-shortcut:hover {
  background: var(--c-primary);
  color: #fff;
}
.c-pc-shortcut svg { width: 18px; height: 18px; stroke: currentColor; }
@media (max-width: 980px) {
  .c-pc-shortcuts { display: none; }
}

/* モバイルメニュー セクションラベル */
.c-mobile-section-label {
  font-size: 12px !important;
  font-weight: 700 !important;
  color: var(--c-primary) !important;
  letter-spacing: 0.06em;
  padding: 14px 0 4px !important;
  border-bottom: none !important;
  display: block;
}
.c-mobile-section-label a { color: inherit; font: inherit; letter-spacing: inherit; }

/* 目的から選ぶ（モバイルメニュー入口ボタン） */
.c-mobile-gateway-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--c-text-light);
  letter-spacing: 0.06em;
  margin: 4px 2px 8px;
}
.c-mobile-gateway-title--all {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--c-border-light);
}
.c-mobile-gateway {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 4px;
}
.c-mobile-gateway .c-gateway-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  background: var(--c-bg-white);
  border: 1.5px solid var(--c-primary);
  border-radius: 10px;
  text-decoration: none;
  color: var(--c-primary-dark);
  line-height: 1.2;
}
.c-mobile-gateway .c-gateway-btn:active { background: #fdf6ec; }
.c-mobile-gateway .c-gateway-btn__icon {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  color: var(--c-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}
.c-mobile-gateway .c-gateway-btn__icon svg { width: 100%; height: 100%; }
.c-mobile-gateway .c-gateway-btn__name {
  flex: 1 1 auto;
  font-size: 17px;
  font-weight: 700;
}
.c-mobile-gateway .c-gateway-btn__arrow {
  flex: 0 0 auto;
  font-size: 20px;
  color: var(--c-primary);
  opacity: 0.7;
}
.c-mobile-gateway .c-gateway-btn--emergency {
  border-color: #d9534f;
  color: #d9534f;
}
.c-mobile-gateway .c-gateway-btn--emergency .c-gateway-btn__icon,
.c-mobile-gateway .c-gateway-btn--emergency .c-gateway-btn__arrow { color: #d9534f; }

/* ========================================
   追従ボタン・診療時間モーダル・トップへ戻る（旧footer.jsのJS注入<style>から移設）
   ======================================== */
.sticky-fab {
  position: fixed;
  right: 18px;
  z-index: 95;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  text-decoration: none;
  color: #fff;
  box-shadow: 0 6px 20px rgba(0,0,0,0.18);
  font-family: inherit;
  transition: transform 0.15s, box-shadow 0.15s;
}
.sticky-fab:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,0.22); }
.sticky-fab svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.sticky-fab .fab-label { font-size: 10px; font-weight: 700; line-height: 1; letter-spacing: 0.04em; }
.sticky-fab.fab-recruit { bottom: 100px; background: var(--c-primary); }
.sticky-fab.fab-schedule { bottom: 24px; background: var(--c-accent-blue); }
.sticky-fab.fab-recruit.is-solo,
.sticky-fab.fab-schedule.is-solo { bottom: 24px; }

@media (max-width: 768px) {
  .sticky-fab {
    right: auto;
    bottom: 0 !important;
    width: 50%;
    height: 56px;
    border-radius: 0;
    flex-direction: row;
    gap: 8px;
    box-shadow: 0 -2px 12px rgba(0,0,0,0.12);
  }
  .sticky-fab:hover { transform: none; box-shadow: 0 -2px 12px rgba(0,0,0,0.12); }
  .sticky-fab.fab-recruit { left: 0; }
  .sticky-fab.fab-schedule { right: 0; }
  .sticky-fab svg { width: 18px; height: 18px; }
  .sticky-fab .fab-label { font-size: 14px; }
  .sticky-fab.is-solo { width: 100%; left: 0; right: 0; }
}

.schedule-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
}
.schedule-modal-overlay.is-open { opacity: 1; visibility: visible; }
.schedule-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 92%;
  max-width: 760px;
  max-height: 88vh;
  background: var(--c-bg-white);
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  z-index: 201;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
}
.schedule-modal.is-open { opacity: 1; visibility: visible; }
.schedule-modal-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--c-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}
.schedule-modal-header h3 {
  font-family: var(--ff-accent);
  font-size: 18px;
  font-weight: 700;
  color: var(--c-primary-dark);
  margin: 0;
}
.schedule-modal-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: #f4efe5;
  color: var(--c-text-main);
  font-size: 18px;
  cursor: pointer;
  line-height: 1;
}
.schedule-modal-body {
  padding: 20px 24px;
  overflow-y: auto;
  flex: 1;
}
.schedule-modal-body h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--c-primary-dark);
  margin: 0 0 10px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--c-primary);
  display: inline-block;
}
.schedule-modal-section { margin-bottom: 22px; }
.schedule-modal-table-wrap { overflow-x: auto; border-radius: 8px; }
.schedule-modal-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 14px;
}
.schedule-modal-table th, .schedule-modal-table td {
  padding: 10px 8px;
  text-align: center;
  line-height: 1.3;
  border: 1px solid var(--c-border-light);
}
.schedule-modal-table thead th {
  background: var(--c-primary);
  color: #fff;
  font-weight: 700;
}
.schedule-modal-table tbody th {
  background: var(--c-primary-pale);
  text-align: left;
  padding-left: 12px;
  font-weight: 700;
}
.schedule-modal-table .dept-row {
  background: #fdf6ec;
  font-weight: 700;
  text-align: left;
  padding-left: 12px;
}
.schedule-modal-table .closed { color: var(--c-text-light); }
.schedule-modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--c-border);
  display: flex;
  gap: 10px;
  flex-shrink: 0;
  flex-wrap: wrap;
}
.schedule-modal-footer a {
  flex: 1;
  min-width: 0;
  padding: 12px 16px;
  border-radius: 8px;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.schedule-modal-footer .btn-primary {
  background: var(--c-primary);
  color: #fff;
}
.schedule-modal-footer .btn-primary:hover { background: var(--c-primary-dark); }
.schedule-modal-footer .btn-secondary {
  background: #f4efe5;
  color: var(--c-primary-dark);
  border: 1px solid var(--c-primary);
}
.schedule-modal-footer .btn-secondary:hover { background: #fdf6ec; }
@media (max-width: 768px) {
  .schedule-modal { width: 94%; max-height: 90vh; }
  .schedule-modal-header { padding: 14px 18px; }
  .schedule-modal-header h3 { font-size: 16px; }
  .schedule-modal-body { padding: 16px 18px; }
  .schedule-modal-table { font-size: 12px; }
  .schedule-modal-table th, .schedule-modal-table td { padding: 8px 4px; }
  .schedule-modal-footer { padding: 12px 18px; }
  .schedule-modal-footer a { font-size: 13px; padding: 10px 12px; }
}

.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 200px;
  z-index: 94;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(60, 60, 60, 0.7);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity 0.3s, visibility 0.3s, transform 0.3s, background 0.2s;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover { background: rgba(60, 60, 60, 0.9); }
.back-to-top svg { width: 20px; height: 20px; fill: #fff; }
body.has-solo-fab .back-to-top { bottom: 100px; }
@media (max-width: 768px) {
  .back-to-top {
    right: 14px;
    bottom: 72px;
    width: 40px;
    height: 40px;
  }
  body.has-solo-fab .back-to-top { bottom: 72px; }
}
