@charset "UTF-8";
/*
Theme Name: shimanoshika2026
Description: 嶋野歯科医院（茨城県古河市）のオリジナルテーマ。sync_base_theme_2026 をベースに構築。共通スタイルは assets/css/common.css（原則編集しない）、医院固有の色・スタイルはこのファイルに書く。
Author: SYNC
Version: 2.0
*/

/* ==========================================================================
   1. 変数の上書き — 配色・フォント・幅
   ========================================================================== */
:root {
  /* 基調色（デザイン案の水色系） */
  --color-primary: #42b5c4;
  --color-primary-dark: #1e879a;
  --color-primary-deep: #145071;
  --color-navy: #123f62;
  --color-accent: #cfaf79;

  --color-bg: #ffffff;
  --color-surface: #f3fafb;
  --color-light-blue: #eaf7f9;
  --color-cream: #faf5ed;
  --color-beige: #f2eee8;

  --color-text: #34383c;
  --color-heading: #20262b;
  --color-muted: #6f777b;
  --color-border: #dde4e5;

  /* タイポグラフィ: 見出しは明朝、本文はゴシック */
  --font-base: "Noto Sans JP", "Yu Gothic", YuGothic, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  --font-heading: "Noto Serif JP", "Yu Mincho", YuMincho, "Hiragino Mincho ProN", "MS PMincho", serif;
  /* 年配の患者さまが多いため本文を1px大きくしている（remで指定した文字は影響を受けない） */
  --font-size-base: 17px;
  --line-height-base: 1.9;

  --container-width: 1200px;
  --container-narrow: 860px;
  --section-space: 72px;
  --section-space-sp: 50px;

  --radius: 2px;
  --shadow: 0 4px 18px rgba(35, 65, 75, 0.1);
  --shadow-soft: 0 2px 12px rgba(35, 65, 75, 0.08);

  /* ヒーローの高さ計算に使うヘッダーの実高さ（キャッチコピー約20px＋本体82px＋境界線1px） */
  --header-height: 103px;
}

body {
  background: #f7f7f5;
}

#main {
  background: var(--color-bg);
}

h1, h2, h3, h4,
.section-heading h2 {
  font-family: var(--font-heading);
  font-weight: 500;
  line-height: 1.65;
}

/* ==========================================================================
   2. 共通パーツの調整
   ========================================================================== */

/* 中央寄せ・左右にラインの入るセクション見出し */
.section-heading-line {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 40px;
}

.section-heading-line .section-heading-en {
  color: var(--color-primary);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.section-heading-line h2 {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: clamp(1.375rem, 1.1rem + 1.2vw, 1.875rem);
  margin: 0;
}

.section-heading-line h2::before,
.section-heading-line h2::after {
  content: "";
  width: 56px;
  height: 1px;
  background: var(--color-border);
}

/* 白ボタン（デザイン案の white_button） */
.btn-white {
  background: #fff;
  color: var(--color-primary-dark);
  border: 1px solid #d9e5e6;
  box-shadow: var(--shadow-soft);
}

.btn-white:hover {
  background: var(--color-light-blue);
  color: var(--color-primary-deep);
}

.btn-primary {
  background: linear-gradient(90deg, #37afc0 0%, #56c6d1 100%);
  border: none;
}

.btn .icon {
  margin-right: 8px;
}

/* アイコンは全体的に大きめ（視認性優先）。小さなリンク内のシェブロンだけ据え置く */
.icon {
  width: 24px;
  height: 24px;
}

.column-row-more .icon,
.side-block-list .icon {
  width: 16px;
  height: 16px;
}

/* ==========================================================================
   3. サイトヘッダー
   ========================================================================== */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--color-border);
}

/* サイト最上部のキャッチコピー（TOPではh1）。見出しだが控えめに見せる */
.site-header-catch {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 5px var(--container-padding) 0;
  font-family: var(--font-base);
  font-size: 0.6875rem;
  font-weight: 400;
  line-height: 1.4;
  color: var(--color-muted);
}

.site-header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 82px;
}

.site-logo img {
  display: block;
  width: auto;
  height: 50px;
}

.site-header-body {
  display: flex;
  align-items: center;
  gap: 40px; /* ナビ ↔ 電話・予約ボタン */
  margin-left: auto;
}

.site-header-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.site-header-nav a {
  color: var(--color-heading);
  font-size: 0.875rem;
  text-decoration: none;
}

.site-header-contact {
  display: flex;
  align-items: center;
  gap: 24px; /* 電話 ↔ 予約ボタン */
}

.header-tel {
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  gap: 0 6px;
  color: var(--color-primary-dark);
  text-decoration: none;
}

.header-tel .icon {
  grid-row: span 2;
  width: 24px;
  height: 24px;
}

.header-tel-number {
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0;
  white-space: nowrap;
}

.header-tel-note {
  color: var(--color-muted);
  font-size: 0.6875rem;
  line-height: 1.2;
}

/* 文字を大きくするぶん上下の余白を詰め、ボタンの高さを据え置く
   （ヘッダーの高さは .site-header-inner の min-height:82px で決まる） */
.btn-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  padding: 8px 16px;
  line-height: 1.25;
  white-space: nowrap;
}

.btn-header-main {
  font-size: 0.9375rem;
}

.btn-header-sub {
  font-size: 0.5625rem;
  letter-spacing: 0.16em;
  opacity: 0.85;
}

/* ==========================================================================
   4. ヒーロー
   ========================================================================== */
/* ヘッダーを除いたウィンドウの高さいっぱい。短いウィンドウでは560pxを下限にする。
   dvh はスマホのアドレスバー伸縮に追従する単位（非対応ブラウザは vh にフォールバック） */
.hero-main {
  position: relative;
  min-height: max(560px, calc(100vh - var(--header-height)));
  min-height: max(560px, calc(100dvh - var(--header-height)));
  display: flex;
  align-items: center;
  overflow: hidden;
}

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

.hero-main-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
}

.hero-main-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.88) 42%, rgba(255, 255, 255, 0) 72%);
}

/* 下側の余白を大きく取ることで、中央寄せのテキストを上に寄せている */
.hero-main-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  padding-block: 48px 200px;
}

/* 見出しが意図した3行で収まるだけの幅を確保する */
.hero-main-text {
  max-width: 64%;
}

/* h1ではなくpになったので、見出し用の書体をここで明示する */
.hero-main-title {
  font-family: var(--font-heading);
  font-weight: 500;
  line-height: 1.65;
  font-size: clamp(1.75rem, 1.1rem + 2.6vw, 3rem);
  color: #30383c;
  margin: 0 0 20px;
}

.hero-main-line {
  display: block;
}

/* PC幅では配列の1行がそのまま1行になるよう折り返しを禁止し、
   「で」「す」だけが次行に落ちるのを防ぐ。
   狭い幅では溢れてしまうため、通常の折り返しに戻す */
@media (min-width: 1151px) {
  .hero-main-line {
    white-space: nowrap;
  }
}

.hero-main-highlight {
  color: #36aebe;
  font-size: 1.25em;
}

.hero-main-lead {
  color: var(--color-text);
  font-size: 1.1875rem; /* 17px → 19px */
  margin-bottom: 28px;
}

/* 配列の1要素を1行として出す */
.hero-main-lead-line {
  display: block;
}

.hero-main-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-main-actions .btn {
  min-height: 54px;
  padding-inline: 26px;
}

/* 右端の縦書きボタン */
/* 中央寄せは translate プロパティで行う。transform は js-fadein の
   アニメーションが使うため、ここでは使わない（併用すると打ち消し合う） */
.hero-side-button {
  position: absolute;
  top: 50%;
  right: 0;
  z-index: 2;
  translate: 0 -50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 26px 16px;
  background: #2298af;
  color: #fff;
  font-size: 0.9375rem;
  text-decoration: none;
  border-radius: var(--radius) 0 0 var(--radius);
}

.hero-side-button .icon {
  width: 28px;
  height: 28px;
}

/* アイコンを上、縦書きのラベルを下に並べる */
.hero-side-button span {
  writing-mode: vertical-rl;
}

.hero-side-button:hover {
  background: var(--color-primary-deep);
  color: #fff;
}

/* ヒーロー下の特徴ストリップ */
/* ヒーロー下端から少し浮かせて、影で写真の上に乗っているように見せる */
.hero-features {
  position: absolute;
  left: 0;
  bottom: 15px;
  z-index: 1;
  width: 100%;
}

/* 帯そのものは l-container（1200px）の中に収め、右寄せで配置する */
/* 「経験豊富な歯科医師による」「カウンセリングを重視した」を1行に収めるため、
   帯の幅は文字サイズに合わせて広げている（nowrap で折り返しも禁止） */
.hero-features-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 1040px;
  margin-left: auto;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(2px);
  border-radius: var(--radius);
  box-shadow: 0 12px 32px rgba(20, 50, 65, 0.22);
}

.hero-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 16px;
}

.hero-feature + .hero-feature {
  border-left: 1px solid var(--color-border);
}

.hero-feature-icon {
  flex-shrink: 0;
  width: 52px;
  height: auto;
}

.hero-feature-text {
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--color-muted);
  white-space: nowrap;
}

.hero-feature-text strong {
  display: block;
  color: var(--color-heading);
  font-size: 1rem;
}

/* ==========================================================================
   5. コラム（3カテゴリー横断）
   ========================================================================== */
.section-column {
  background: #f4f2ee;
}

.column-row {
  display: grid;
  grid-template-columns: 232px 1fr;
  gap: 4px;
  margin-bottom: 4px;
}

.column-row-head {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 6px;
  padding: 24px 22px;
}

.column-row-navy .column-row-head {
  background: linear-gradient(135deg, #143e66 0%, #174d75 100%);
  color: #fff;
}

.column-row-blue .column-row-head {
  background: linear-gradient(135deg, #56bbc8 0%, #79ced6 100%);
  color: #fff;
}

.column-row-cream .column-row-head {
  background: linear-gradient(135deg, #faf3e8 0%, #fff9f1 100%);
  color: #b68a51;
}

.column-row-icon {
  width: 44px;
  height: auto;
}

.column-row-title {
  font-size: 1.25rem;
  margin: 0;
  color: inherit;
}

.column-row-en {
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  opacity: 0.8;
}

.column-row-more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 10px;
  padding: 7px 16px;
  border: 1px solid currentColor;
  color: inherit;
  font-size: 0.75rem;
  text-decoration: none;
}

.column-row-more:hover {
  background: rgba(255, 255, 255, 0.18);
  color: inherit;
}

.column-row-cream .column-row-more:hover {
  background: rgba(182, 138, 81, 0.1);
}

.column-row-articles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}

.column-row-empty {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 40px;
  background: #fff;
  color: var(--color-muted);
  font-size: 0.875rem;
}

/* 記事カード（画像の上にタイトルを重ねる） */
.column-card {
  position: relative;
  display: block;
  overflow: hidden;
  background: #222;
  color: #fff;
  text-decoration: none;
}

.column-card-thumb {
  display: block;
  aspect-ratio: 1.35 / 1;
}

.column-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.column-card:hover .column-card-thumb img {
  transform: scale(1.04);
}

.column-card-body {
  position: absolute;
  inset: auto 0 0 0;
  padding: 14px;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0) 100%);
}

.column-card-date {
  display: block;
  font-size: 0.6875rem;
  opacity: 0.85;
}

.column-card-title {
  display: block;
  font-size: 0.8125rem;
  line-height: 1.6;
  color: #fff;
}

/* ==========================================================================
   6. 嶋野歯科の特徴（4カラム）
   ========================================================================== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.feature-card {
  padding: 0 24px;
}

.feature-card + .feature-card {
  border-left: 1px solid #e4e5e1;
}

.feature-card-image {
  width: 100%;
  height: auto;
  margin-bottom: 14px;
}

.feature-card-number {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.75rem;
  color: #dde1df;
  line-height: 1;
  margin-bottom: 8px;
}

.feature-card-title {
  font-size: 1.25em;
  color: #7e684b;
  margin: 0 0 10px;
}

.feature-card-text {
  font-size: 1em; /* ベース（17px）に合わせる */
  line-height: 1.8;
  color: #545b5e;
  margin: 0;
}

.feature-card-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 12px;
  color: var(--color-primary-dark);
  font-size: 0.9375em;
  text-decoration: none;
}

.feature-card-link .icon {
  width: 16px;
  height: 16px;
  transition: transform 0.25s;
}

.feature-card-link:hover {
  color: var(--color-primary-deep);
}

.feature-card-link:hover .icon {
  transform: translateX(4px);
}

/* ==========================================================================
   7. 院長紹介
   ========================================================================== */
.section-doctor {
  background: var(--color-beige);
}

.doctor-grid {
  display: grid;
  grid-template-columns: 46% 46%;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
}

.doctor-image img {
  width: 100%;
  height: auto;
  box-shadow: 0 5px 20px rgba(20, 50, 65, 0.12);
}

.doctor-heading {
  font-size: clamp(1.25rem, 1rem + 1vw, 1.625rem);
  margin: 0 0 20px;
}

.doctor-body p {
  font-size: 1em; /* ベース（17px）に合わせる */
  margin-bottom: 0.9em;
}

.doctor-signature {
  display: block;
  width: auto;
  height: 50px;
  margin: 24px 0 20px auto;
}

/* ==========================================================================
   8. 診療内容・インプラント治療の工程
   ========================================================================== */
.section-treatment {
  background: #eff8fa;
}

/* リード文の列は狭め、円形写真の列に幅を回す */
.treatment-grid {
  display: grid;
  grid-template-columns: 25% 1fr;
  align-items: center;
  gap: 48px;
}

.treatment-heading {
  font-size: clamp(1.25rem, 1rem + 1vw, 1.625rem);
  margin: 0 0 14px;
}

.treatment-body p {
  font-size: 1em; /* ベース（17px）に合わせる */
  margin-bottom: 20px;
}

/* 診療の種類。円形の写真＋その下のラベルを1つのリンクとして扱う */
.treatment-items {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 22px 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.treatment-item-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  color: inherit;
  text-decoration: none;
}

/* 白フチ＋細いリングを box-shadow で重ねる（円形なので border では出せない） */
.treatment-item-photo {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  background: #fff;
  border-radius: 50%;
  overflow: hidden;
  box-shadow:
    0 0 0 4px #fff,
    0 0 0 5px var(--color-border),
    0 6px 16px rgba(20, 50, 65, 0.12);
  transition: box-shadow 0.35s ease, transform 0.35s ease;
}

/* 横長の帯画像を円に収めるため、切り出す位置は --focus で個別に指定する */
.treatment-item-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--focus, 50%) center;
  transition: transform 0.5s ease;
}

.treatment-item-label {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-family: var(--font-heading);
  font-size: 1.0625em;
  line-height: 1.4;
  color: var(--color-heading);
  text-align: center;
  transition: color 0.25s;
}

.treatment-item-label .icon {
  width: 15px;
  height: 15px;
  color: var(--color-primary);
  transition: transform 0.25s;
}

/* 写真・ラベルどちらに触れてもリンク全体が反応する */
.treatment-item-link:hover .treatment-item-photo,
.treatment-item-link:focus-visible .treatment-item-photo {
  transform: translateY(-5px);
  box-shadow:
    0 0 0 4px #fff,
    0 0 0 5px var(--color-primary),
    0 12px 24px rgba(20, 50, 65, 0.2);
}

.treatment-item-link:hover .treatment-item-photo img,
.treatment-item-link:focus-visible .treatment-item-photo img {
  transform: scale(1.08);
}

.treatment-item-link:hover .treatment-item-label,
.treatment-item-link:focus-visible .treatment-item-label {
  color: var(--color-primary-dark);
}

.treatment-item-link:hover .treatment-item-label .icon {
  transform: translateX(3px);
}

.treatment-item-link:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 6px;
  border-radius: var(--radius);
}

/* ==========================================================================
   9. 院内設備
   ========================================================================== */
.section-facility {
  padding-block: 0;
}

.facility-gallery {
  position: relative;
  line-height: 0;
}

.facility-gallery > img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* ==========================================================================
   10. アクセス・診療時間
   ========================================================================== */
.access-grid {
  display: grid;
  grid-template-columns: 43% 1fr;
  gap: 40px;
  align-items: start;
}

.access-heading {
  font-size: clamp(1.25rem, 1rem + 1vw, 1.625rem);
  margin: 0 0 20px;
}

/* 目に見えないがスクリーンリーダーには読まれるテキスト */
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* 曜日8列＋時間列の9列。曜日側は詰めて時間列に幅を回す */
.schedule-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375em;
  table-layout: fixed;
}

.schedule-table th,
.schedule-table td {
  padding: 11px 2px;
  border: 1px solid var(--color-border);
  text-align: center;
  white-space: nowrap;
}

.schedule-table thead th:first-child,
.schedule-table tbody th {
  width: 7.5em;
}

.schedule-table td.is-open {
  color: var(--color-primary-dark);
  font-size: 1.05em;
}

.schedule-table thead th {
  background: var(--color-light-blue);
  color: var(--color-primary-deep);
  font-weight: 500;
}

.schedule-table tbody th {
  background: #fafcfc;
  white-space: nowrap;
  font-weight: 400;
}

.schedule-table td.is-closed {
  color: var(--color-muted);
}

.schedule-notes {
  list-style: none;
  margin: 12px 0 20px;
  padding: 0;
  color: var(--color-muted);
  font-size: 0.75rem;
  line-height: 1.7;
}

.access-address {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.9375rem;
  margin-bottom: 10px;
}

.access-address .icon {
  flex-shrink: 0;
  margin-top: 4px;
  color: var(--color-primary);
}

.access-transportation {
  list-style: disc;
  margin: 0 0 20px;
  padding-left: 1.4em;
  font-size: 1em; /* ベース（17px）に合わせる */
  color: var(--color-text);
}

.access-map iframe {
  display: block;
  width: 100%;
  min-height: 380px;
  border: 1px solid var(--color-border);
}

/* 地図の直下に置くボタン。地図と同じ幅に広げる */
.access-map-link {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: 16px;
}

/* ==========================================================================
   10-2. SNS（Facebook・Instagram）
   ========================================================================== */
.section-social {
  background: var(--color-surface);
}

/* 並びは Instagram / Facebook / X。Instagram を広く、X を狭くしている
   （合計は3fr のままなので全体幅は変わらない） */
.social-grid {
  display: grid;
  grid-template-columns: 1.2fr 1.05fr 0.75fr;
  gap: 24px;
  align-items: start;
}

.social-item {
  background: #fff;
  padding: 20px;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-soft);
}

.social-item-title {
  font-family: var(--font-heading);
  font-size: 1.125em;
  color: var(--color-primary-deep);
  margin: 0 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--color-border);
}

/* X は埋め込みを使わずリンクのみ */
.social-x {
  padding: 24px 4px;
  text-align: center;
}

.social-x-handle {
  font-family: var(--font-heading);
  font-size: 1.25em;
  color: var(--color-heading);
  margin: 0 0 10px;
}

.social-x-text {
  font-size: 0.9375em;
  color: var(--color-muted);
  margin: 0 0 20px;
}

/* Facebookページプラグインは指定した width までしか広がらない */
.social-facebook {
  display: block;
  width: 100%;
  max-width: 500px;
  margin-inline: auto;
}

.social-empty {
  margin: 0;
  padding: 40px 10px;
  color: var(--color-muted);
  font-size: 0.875em;
  text-align: center;
}

/* ==========================================================================
   11. 電話・予約のCTA帯
   ========================================================================== */
.contact-bar {
  background: linear-gradient(90deg, #27a8b9 0%, #54c5cf 100%);
}

.contact-bar-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  min-height: 78px;
}

.contact-bar-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px;
  color: #fff;
  text-decoration: none;
}

.contact-bar-item + .contact-bar-item {
  border-left: 1px solid rgba(255, 255, 255, 0.28);
}

.contact-bar-item:hover {
  color: #fff;
  opacity: 0.85;
}

.contact-bar-label {
  font-size: 0.75rem;
  opacity: 0.9;
}

.contact-bar-value {
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.contact-bar-reserve .contact-bar-value {
  font-size: 1.0625rem;
}

/* ==========================================================================
   12. フッター
   ========================================================================== */
/* common.css が .site-footer に font-size:0.875rem を指定しているため、
   フッター内の 1em がベース(17px)になるようここで基準を戻す */
.site-footer {
  background: #fff;
  color: var(--color-text);
  font-size: var(--font-size-base);
  padding-block: 38px 24px;
}

.site-footer-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 40px;
  align-items: start;
}

.site-footer .site-logo img {
  height: 48px;
}

.site-footer-address {
  margin-top: 14px;
  font-size: 0.95em;
  font-style: normal;
  line-height: 1.9;
  color: var(--color-muted);
}

/* 提携クリニックのバナー */
.site-footer-banner {
  display: inline-block;
  margin-top: 4px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: opacity 0.25s, box-shadow 0.25s;
}

.site-footer-banner img {
  display: block;
  width: 100%;
  max-width: 340px;
  height: auto;
}

.site-footer-banner:hover {
  opacity: 0.8;
  box-shadow: var(--shadow-soft);
}

.site-footer-nav {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.site-footer-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer-nav-heading {
  font-family: var(--font-heading);
  font-size: 1.0625em;
  color: var(--color-primary-deep);
  margin: 0 0 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--color-border);
}

.site-footer-nav li a {
  display: block;
  padding: 5px 0;
  color: var(--color-text);
  font-size: 1em; /* ベース（17px）に合わせる */
  line-height: 1.6;
  text-decoration: none;
}

.site-footer-nav li a:hover {
  color: var(--color-primary);
}

.site-footer-copyright {
  display: block;
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid var(--color-border);
  color: var(--color-muted);
  font-size: 0.6875rem;
  text-align: center;
}

/* ==========================================================================
   12-1. 旧サイトから引き継いだ本文のクラス（互換用）
   --------------------------------------------------------------------------
   本文はWordPressの管理画面で管理しており、旧テーマ shimanoshika2017 時代の
   クラスがそのまま入っている。新テーマにも同じ見た目を用意して崩れを防ぐ。
   本文を書き直す際は .post-content の標準マークアップに寄せていく。
   ========================================================================== */

/* 画像（本文中に48箇所） */
.post-content .page-img {
  margin: 0 0 20px;
}

.post-content .page-img img {
  width: auto;
  height: auto;
  max-width: 65%;
  border-radius: var(--radius);
}

.post-content .page-img-all img {
  width: 80%;
  max-width: 80%;
}

.post-content .page-img-max img {
  width: 100%;
  max-width: 100%;
}

.post-content .page-img-col img {
  width: 31%;
  max-width: 31%;
  margin-right: 2%;
  float: left;
}

/* Q&A（審美歯科のホワイトニング等） */
.post-content .qaa {
  margin: 0 0 20px;
  padding: 18px 20px;
  background: var(--color-surface);
  border-left: 3px solid var(--color-primary);
  border-radius: var(--radius);
}

.post-content .qaa strong {
  display: block;
  margin-bottom: 6px;
  color: var(--color-primary-dark);
}

/* 注意書きの囲み */
.post-content .glinediv {
  margin: 0 0 24px;
  padding: 18px 20px;
  border: 2px solid var(--color-primary);
  border-radius: var(--radius);
}

.post-content .glinediv span {
  display: block;
  margin-bottom: 6px;
  color: var(--color-heading);
  font-weight: 700;
}

/* 料金表 */
.post-content table.tableb {
  width: 100%;
  margin: 0 0 28px;
  border-collapse: collapse;
}

.post-content table.tableb th,
.post-content table.tableb td {
  padding: 10px;
  border: 1px solid var(--color-border);
  text-align: center;
}

.post-content table.tableb th {
  background: var(--color-light-blue);
  color: var(--color-primary-deep);
  font-weight: 700;
}

.post-content table.table-price th,
.post-content table.table-price td {
  width: 33%;
}

/* 旧テーマのフロート解除 */
.post-content .clearfix::after {
  content: "";
  display: block;
  clear: both;
}

/* ---- Contact Form 7（旧テーマのクラスで組まれたフォーム） ---- */
.post-content .formpage-contents {
  margin-bottom: 24px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
}

.post-content .formpage-parts {
  display: grid;
  grid-template-columns: 34% 1fr;
  border-bottom: 1px solid var(--color-border);
}

.post-content .formpage-parts:last-child {
  grid-template-columns: 1fr;
  border-bottom: 0;
}

.post-content .formparts-l {
  padding: 16px 18px;
  background: var(--color-surface);
  color: var(--color-heading);
  font-weight: 700;
  line-height: 1.6;
}

.post-content .formparts-r {
  padding: 14px 18px;
}

.post-content .formred {
  margin-left: 4px;
  color: #c0392b;
  font-size: 0.8125em;
  font-weight: 400;
  white-space: nowrap;
}

/* size 属性による幅指定を打ち消して枠内いっぱいに広げる */
.post-content .formparts-r input[type="text"],
.post-content .formparts-r input[type="email"],
.post-content .formparts-r input[type="tel"],
.post-content .formparts-r select,
.post-content .formparts-r textarea {
  width: 100%;
  max-width: 100%;
  padding: 11px 12px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1em;
  line-height: 1.6;
}

.post-content .formparts-r textarea {
  min-height: 160px;
}

.post-content .formparts-r input:focus,
.post-content .formparts-r select:focus,
.post-content .formparts-r textarea:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 1px;
  border-color: var(--color-primary);
}

/* チェックボックス（性別など）は横並びにする */
.post-content .wpcf7-list-item {
  display: inline-block;
  margin: 0 24px 0 0;
}

.post-content .wpcf7-list-item label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.post-content .wpcf7-list-item input {
  width: 20px;
  height: 20px;
  accent-color: var(--color-primary);
}

/* 送信ボタン */
.post-content .formpage-parts input[type="submit"] {
  display: block;
  width: min(100%, 340px);
  margin: 22px auto;
  padding: 16px 24px;
  background: linear-gradient(90deg, #37afc0 0%, #56c6d1 100%);
  color: #fff;
  font-family: inherit;
  font-size: 1.0625em;
  font-weight: 700;
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
  transition: opacity 0.25s;
}

.post-content .formpage-parts input[type="submit"]:hover {
  opacity: 0.85;
}

.post-content .wpcf7-spinner {
  display: block;
  margin: 0 auto;
}

.post-content .wpcf7-not-valid-tip {
  margin-top: 5px;
  color: #c0392b;
  font-size: 0.875em;
}

.post-content .wpcf7-response-output {
  margin: 0 0 24px;
  padding: 14px 18px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 0.9375em;
}

@media (max-width: 767px) {
  .post-content .formpage-parts,
  .post-content .formpage-parts:last-child {
    grid-template-columns: 1fr;
  }

  .post-content .formparts-l {
    padding: 12px 14px;
  }

  .post-content .formparts-r {
    padding: 12px 14px;
  }
}

@media (max-width: 767px) {
  .post-content .page-img img,
  .post-content .page-img-all img {
    max-width: 100%;
    width: auto;
  }

  .post-content .page-img-col img {
    width: 48%;
    max-width: 48%;
  }

  .post-content table.tableb th,
  .post-content table.tableb td {
    padding: 7px 5px;
    font-size: 0.875em;
  }
}

/* ==========================================================================
   12-1b. 下層ページ
   ========================================================================== */

/* タイトル帯を薄くして、直後のメイン画像を主役にする */
.page-header {
  padding-block: 42px 32px;
  background: var(--color-surface);
}

.page-header + .section {
  padding-top: 28px;
}

/* 各ページ冒頭のメイン画像（1060×353の帯）を主役として見せる。
   各ページに1枚だけ置かれているので :first-child には依存させない */
.post-content > .page-img-max {
  margin: 0 0 44px;
  max-width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(20, 50, 65, 0.12);
}

.post-content > .page-img-max img {
  display: block;
  width: 100%;
  height: auto;
}

/* 1カラムページ: 本文の行長を900pxに抑える。
   子要素を1つずつ margin:auto で中央寄せすると、inline-block の見出し（h4）
   だけ auto が効かず左端に寄ってしまうため、親側で幅を決めて左右を揃える */
.l-onecolumn .post-content,
.l-onecolumn > .treatment-lead {
  max-width: 900px;
  margin-inline: auto;
}

/* メイン画像だけは本文幅（900px）からはみ出させ、コンテンツ幅と同じ
   1160px（コンテナ1200px−左右padding）で中央に見せる。
   max-width:100% が生きていると width が 900px に潰されて左に寄るので解除する */
.l-onecolumn .post-content > .page-img-max {
  width: min(1160px, calc(100vw - 40px));
  max-width: none;
  margin-inline: calc((100% - min(1160px, 100vw - 40px)) / 2);
}

/* マーカー。common.css は金色だが、サイトの基調に合わせて水色系に置き換える */
.post-content .marker {
  background: linear-gradient(transparent 56%, color-mix(in srgb, var(--color-primary) 24%, transparent) 56%);
  font-weight: 700;
}

/* ---- 本文の見出し（旧サイトの原稿をそのまま活かすためのスタイル） ---- */
.post-content h2 {
  position: relative;
  margin: 2.8em 0 1.1em;
  padding-bottom: 14px;
  font-size: clamp(1.25rem, 1.05rem + 0.8vw, 1.625rem);
  border-bottom: 1px solid var(--color-border);
}

.post-content h2:first-child {
  margin-top: 0;
}

.post-content h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 72px;
  height: 3px;
  background: var(--color-primary);
}

.post-content h3 {
  margin: 2.2em 0 0.8em;
  padding-left: 14px;
  font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.25rem);
  border-left: 3px solid var(--color-primary);
  line-height: 1.5;
}

/* h4・h5は色だけだと階層が伝わらないので、面と記号で差をつける */
.post-content h4 {
  display: inline-block;
  margin: 2em 0 0.7em;
  padding: 5px 16px;
  background: var(--color-light-blue);
  border-radius: var(--radius);
  color: var(--color-primary-deep);
  font-size: 1.0625em;
}

/* チップ見出しが連続して並ぶとき（咬合器システム3種など）は行間を詰める */
.post-content h4 + h4 {
  margin-top: 0.35em;
  margin-right: 0.5em;
}

.post-content h5 {
  position: relative;
  margin: 1.6em 0 0.5em;
  padding-left: 18px;
  font-size: 1em;
  color: var(--color-heading);
}

.post-content h5::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 9px;
  height: 9px;
  background: var(--color-accent);
  border-radius: 50%;
}

/* ---- お問い合わせページの連絡先ブロック ---- */
.contact-lead-image {
  margin-bottom: 0;
}

.contact-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 900px;
  margin: 0 auto 44px;
}

/* ボックスが1つだけのとき（電話のみ）は中央に置く */
.contact-info-item:only-child {
  grid-column: 1 / -1;
  width: min(100%, 480px);
  margin-inline: auto;
}

/* 電話のみのときは1カラムにする */
.contact-info-single {
  grid-template-columns: 1fr;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 22px 24px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

.contact-info-item .icon {
  flex-shrink: 0;
  margin-top: 4px;
  color: var(--color-primary);
}

.contact-info-item p {
  margin: 0;
}

.contact-info-label {
  color: var(--color-muted);
  font-size: 0.8125em;
}

.contact-info-value {
  display: block;
  color: var(--color-primary-deep);
  font-family: var(--font-heading);
  font-size: 1.5em;
  font-weight: 500;
  line-height: 1.4;
  text-decoration: none;
}

a.contact-info-value:hover {
  color: var(--color-primary);
}

.contact-info-note {
  margin-top: 4px !important;
  color: var(--color-muted);
  font-size: 0.8125em;
  line-height: 1.7;
}

@media (max-width: 767px) {
  .contact-info {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-bottom: 28px;
  }
}

/* ---- 診療案内の一覧カード ---- */
.treatment-lead {
  margin-bottom: 40px;
  text-align: center;
}

.treatment-menu {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.treatment-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.treatment-card-photo {
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 1;
}

.treatment-card-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.treatment-card:hover .treatment-card-photo img {
  transform: scale(1.04);
}

.treatment-card-body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  padding: 22px 24px 24px;
}

.treatment-card-title {
  font-family: var(--font-heading);
  font-size: 1.375em;
  font-weight: 500;
  color: var(--color-heading);
  margin-bottom: 10px;
}

.treatment-card-text {
  flex-grow: 1;
  font-size: 0.9375em;
  line-height: 1.8;
  color: var(--color-text);
}

.treatment-card-more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 16px;
  color: var(--color-primary-dark);
  font-size: 0.9375em;
}

.treatment-card-more .icon {
  width: 16px;
  height: 16px;
  transition: transform 0.25s;
}

.treatment-card:hover .treatment-card-more .icon {
  transform: translateX(4px);
}

@media (max-width: 767px) {
  .page-header {
    padding-block: 28px 22px;
  }

  .page-header + .section {
    padding-top: 20px;
  }

  .post-content > .page-img-max:first-child {
    margin-bottom: 28px;
  }

  .treatment-menu {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .treatment-lead {
    margin-bottom: 28px;
    text-align: left;
  }
}

/* サイドバーの電話ブロック */
.side-tel {
  padding: 20px;
  margin-bottom: 24px;
  background: var(--color-light-blue);
  border-radius: var(--radius);
  text-align: center;
}

.side-tel-label {
  margin: 0 0 4px;
  font-size: 0.8125em;
  color: var(--color-muted);
}

.side-tel-number {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 1.375em;
  font-weight: 700;
  color: var(--color-primary-deep);
  text-decoration: none;
}

.side-tel-note {
  margin: 2px 0 14px;
  font-size: 0.75em;
  color: var(--color-muted);
}

.side-tel .btn {
  width: 100%;
  justify-content: center;
}

/* --------------------------------------------------------------------------
   院内の様子 — 9室を章立てにし、54機材をカードで整列させる1カラム構成
   （PHP側の sync_guide_sections() が本文を部屋ごとに組み直している）
   -------------------------------------------------------------------------- */

/* 導入文と部屋の目次 */
.guide-opening {
  padding-bottom: 0;
}

.guide-intro {
  max-width: var(--container-narrow);
  margin: 0 auto 44px;
  text-align: center;
}

/* 「カウンセリング室」が折り返さない幅を確保する */
.guide-index {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
}

.guide-index-item {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  color: var(--color-heading);
  text-decoration: none;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}

.guide-index-item:hover {
  border-color: var(--color-primary);
  color: var(--color-primary-deep);
  box-shadow: var(--shadow-soft);
  transform: translateY(-2px);
}

.guide-index-num {
  font-family: var(--font-heading);
  font-size: 1.125em;
  color: var(--color-primary);
  letter-spacing: 0.04em;
}

.guide-index-title {
  font-size: 0.9375em;
  white-space: nowrap;
}

/* 部屋のセクション。白と淡い水色を交互に敷いてリズムを作る */
.guide-room {
  padding-block: var(--section-space);
  scroll-margin-top: calc(var(--header-height) + 12px);
}

.guide-room:nth-of-type(even) {
  background: var(--color-surface);
}

.guide-room-head {
  display: flex;
  align-items: baseline;
  gap: 20px;
  padding-bottom: 16px;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--color-border);
}

.guide-room-num {
  flex-shrink: 0;
  font-family: var(--font-heading);
  font-size: clamp(2.25rem, 1.6rem + 2.4vw, 3.5rem);
  line-height: 0.9;
  color: #a9d4dc;
  letter-spacing: 0.02em;
}

.guide-room-title {
  margin: 0;
  font-size: clamp(1.375rem, 1.1rem + 1.2vw, 1.875rem);
}

/* 部屋そのものの写真と説明（機材の前に置かれる） */
.guide-room-lead {
  display: grid;
  grid-template-columns: 46% 1fr;
  gap: 36px;
  align-items: center;
  margin-bottom: 48px;
}

.guide-room-lead:only-child {
  margin-bottom: 0;
}

/* 写真が未用意の機材に出すダミー画像。実写真と区別できるよう淡く見せる */
.guide-item-noimage {
  background: var(--color-beige);
  opacity: 0.55;
}

/* 縦長・横長が混在しているので4:3に揃える（はみ出た分は中央基準で切る） */
.guide-room-photo {
  margin: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: 0 5px 20px rgba(20, 50, 65, 0.12);
}

.guide-room-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
}

.guide-room-text p:last-child {
  margin-bottom: 0;
}

/* 機材カード */
/* 画面幅で列数が変わらないよう固定にする（PC3列・スマホ2列） */
.guide-items {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.guide-item {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.3s, transform 0.3s;
}

.guide-item:hover {
  box-shadow: 0 10px 26px rgba(20, 50, 65, 0.14);
  transform: translateY(-3px);
}

.guide-item-photo {
  margin: 0;
  aspect-ratio: 4 / 3;
  background: var(--color-surface);
  overflow: hidden;
}

.guide-item-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.guide-item:hover .guide-item-photo img {
  transform: scale(1.04);
}

/* 1項目に複数枚ある場合は横に並べる */
.guide-item-photo:has(img + img) {
  display: grid;
  grid-auto-flow: column;
  gap: 2px;
}

.guide-item-body {
  flex: 1;
  padding: 20px 22px 24px;
  border-top: 3px solid var(--color-primary);
}

.guide-item-title {
  margin: 0 0 10px;
  font-size: 1.125em;
  line-height: 1.5;
  color: var(--color-heading);
}

.guide-item-text {
  font-size: 0.9375em;
  line-height: 1.85;
  color: var(--color-text);
}

.guide-item-text p:last-child {
  margin-bottom: 0;
}

/* 写真も説明もない項目（機材名だけ）はカードを詰めて出す */
.guide-item-plain {
  background: transparent;
  border-style: dashed;
}

.guide-item-plain .guide-item-body {
  padding: 14px 18px;
  border-top: 0;
  border-left: 3px solid var(--color-border);
}

.guide-item-plain .guide-item-title {
  margin-bottom: 0;
  font-size: 1em;
  color: var(--color-muted);
}

/* 料金例 */
.page-price .post-content table.tableb th:first-child,
.page-price .post-content table.tableb td:first-child {
  text-align: left;
}

.price-note {
  margin-top: 24px;
  padding: 16px 18px;
  background: var(--color-surface);
  border-radius: var(--radius);
  font-size: 0.875em;
  color: var(--color-muted);
}

/* サイトマップ（プラグインが生成するリストを整える） */
.page-sitemap .post-content ul {
  list-style: none;
  padding-left: 0;
}

.page-sitemap .post-content ul ul {
  padding-left: 1.5em;
}

.page-sitemap .post-content li {
  border-bottom: 1px solid var(--color-border);
}

.page-sitemap .post-content li a {
  display: block;
  padding: 12px 4px;
  text-decoration: none;
}

.page-sitemap .post-content li a:hover {
  color: var(--color-primary);
}

@media (max-width: 767px) {
  .guide-room {
    padding-block: var(--section-space-sp);
  }

  .guide-room-head {
    gap: 14px;
    margin-bottom: 28px;
  }

  .guide-room-lead {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 32px;
  }

  /* 2列になるぶん、カード内の余白と文字を詰める */
  .guide-items {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .guide-item-body {
    padding: 14px 14px 16px;
  }

  .guide-item-title {
    margin-bottom: 8px;
    font-size: 1em;
  }

  .guide-item-text {
    font-size: 0.875em;
    line-height: 1.75;
  }

  .guide-index {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .guide-index-item {
    padding: 12px 14px;
  }
}

/* ==========================================================================
   12-2. ページの先頭へ戻るボタン
   ========================================================================== */
.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 800;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  cursor: pointer;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s, visibility 0.3s, transform 0.3s, background-color 0.25s;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.back-to-top:hover {
  background: var(--color-primary-dark);
}

.back-to-top .icon {
  width: 26px;
  height: 26px;
}

@media (prefers-reduced-motion: reduce) {
  .back-to-top {
    transition: opacity 0.01ms, visibility 0.01ms;
    transform: none;
  }
}

/* ==========================================================================
   13. レスポンシブ（ヘッダーのみ 1150px 以下でハンバーガーに切り替える）
   --------------------------------------------------------------------------
   ナビ・電話・予約ボタンが横に並びきらず折り返すため、共通の767pxより早く
   モバイル表示にする。common.css の @media (min-width:768px) が
   .site-header-body[hidden] を display:flex で強制表示しているので、
   ここで打ち消してJSの開閉に従わせる（style.css は common.css より後に読まれる）。
   ========================================================================== */
@media (max-width: 1150px) {

  .nav-toggle {
    display: flex;
    margin-left: auto; /* ロゴの反対（右端）に寄せる */
    align-self: center; /* ロゴと縦位置をそろえる */
    gap: 4px;
    padding: 6px 2px 6px 12px;
  }

  .nav-toggle-bar,
  .nav-toggle-bar::before,
  .nav-toggle-bar::after {
    width: 30px;
  }

  .site-header-body {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 100;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 20px 20px;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow);
  }

  .site-header-body[hidden] {
    display: none;
  }

  .site-header-nav {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .site-header-nav a {
    padding: 12px 4px;
    border-bottom: 1px solid var(--color-border);
  }

  .site-header-contact {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 14px 0;
  }

  .header-tel {
    justify-content: center;
  }
}

/* --------------------------------------------------------------------------
   1150px以下は特徴帯が4カラムのままでは1行に収まらないので、文字とアイコンを
   詰めて折り返しを許可する（1行表示が効くのは1151px以上）
   -------------------------------------------------------------------------- */
@media (max-width: 1150px) {
  .hero-feature {
    gap: 8px;
    padding: 14px 10px;
  }

  .hero-feature-icon {
    width: 42px;
  }

  .hero-feature-text {
    font-size: 0.6875rem;
    white-space: normal;
  }

  .hero-feature-text strong {
    font-size: 0.8125rem;
  }
}

/* ==========================================================================
   14. レスポンシブ（767px以下）
   ========================================================================== */
@media (max-width: 767px) {

  :root {
    --header-height: 89px;
  }

  .site-header-catch {
    font-size: 0.625rem;
  }

  .site-header-inner {
    min-height: 68px;
  }

  .site-logo img {
    height: 40px;
  }

  /* ヒーロー */
  .hero-main {
    min-height: max(640px, calc(100vh - var(--header-height)));
    min-height: max(640px, calc(100dvh - var(--header-height)));
    align-items: flex-start;
  }

  .hero-main-bg img {
    object-position: 68% center;
  }

  .hero-main-bg::after {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.78) 58%, rgba(255, 255, 255, 0.2) 100%);
  }

  .hero-main-inner {
    padding-block: 32px 150px;
  }

  .hero-main-text {
    max-width: 100%;
  }

  /* 幅に収まる大きさまで文字を縮めて、行末に1〜2文字だけ落ちるのを防ぐ。
     4.6vw なら 375px 幅で約17文字ぶん確保できる */
  .hero-main-title {
    font-size: min(1.625rem, 4.6vw);
  }

  .hero-main-lead {
    font-size: min(1.0625rem, 3.9vw);
  }

  .hero-main-actions {
    flex-direction: column;
  }

  .hero-main-actions .btn {
    justify-content: center;
  }

  .hero-side-button {
    display: none;
  }

  .hero-features-strip {
    grid-template-columns: repeat(2, 1fr);
    max-width: none;
    margin-left: 0;
  }

  .hero-feature-icon {
    width: 38px;
  }

  .hero-feature-text {
    font-size: 0.625rem;
  }

  .hero-feature-text strong {
    font-size: 0.75rem;
  }

  .hero-feature:nth-child(odd) + .hero-feature {
    border-left: 1px solid var(--color-border);
  }

  .hero-feature:nth-child(n + 3) {
    border-top: 1px solid var(--color-border);
  }

  /* コラム */
  .column-row {
    grid-template-columns: 1fr;
  }

  .column-row-head {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
  }

  .column-row-more {
    margin-top: 0;
    margin-left: auto;
  }

  /* スマホは2件だけ横並びにする（3件目は is-hide-sp で隠す） */
  .column-row-articles {
    grid-template-columns: repeat(2, 1fr);
  }

  .column-card.is-hide-sp {
    display: none;
  }

  /* 特徴 */
  .feature-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .feature-card {
    padding: 0;
  }

  .feature-card + .feature-card {
    border-left: none;
    border-top: 1px solid #e4e5e1;
    padding-top: 28px;
  }

  /* 院長・診療内容・アクセス */
  .doctor-grid,
  .treatment-grid,
  .access-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .doctor-signature {
    margin-right: 0;
  }

  /* 円が小さくなりすぎないよう3列で折り返す（3枚＋2枚） */
  .treatment-items {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px 10px;
  }

  .treatment-item-link {
    gap: 10px;
  }

  .treatment-item-label {
    font-size: 0.9375em;
  }

  .access-map iframe {
    min-height: 260px;
  }

  .social-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* CTA帯はスマホでは画面下部に固定 */
  .contact-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 900;
  }

  .contact-bar-inner {
    min-height: 64px;
  }

  .contact-bar-label {
    display: none;
  }

  .contact-bar-value,
  .contact-bar-reserve .contact-bar-value {
    font-size: 0.9375rem;
  }

  body {
    padding-bottom: 64px; /* 固定CTA帯の高さ分 */
  }

  /* 画面下部に固定されたCTA帯と重ならない位置に置く */
  .back-to-top {
    right: 14px;
    bottom: 78px;
    width: 46px;
    height: 46px;
  }

  .back-to-top .icon {
    width: 22px;
    height: 22px;
  }

  /* フッター */
  .site-footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

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