/* ==========================================================================
   みかも整骨院 — サイト共通スタイル
   メインブルー #176B9A・アクセント水色 #54B9D7・白を基調にした、
   清潔感・信頼感を意識した配色。背景は白を中心に、ライトブルーを
   アクセントとして適度に使用する（単調な水色一色にしない）。
   ========================================================================== */

:root {
  --color-bg: #F7FBFD;          /* 背景ホワイト（わずかに青みを帯びた白） */
  --color-tint-100: #EEF8FC;    /* ごく薄い水色。セクションの切り替えに使用 */
  --color-tint-200: #DFF3FA;    /* ライトブルー。バッジ・ソフト背景に使用 */
  --color-surface: #FFFFFF;     /* カード等の純白 */

  --color-primary: #176B9A;     /* メインブルー */
  --color-primary-dark: #0E4A68;/* ホバー・フッター・見出しの濃い青 */
  --color-primary-soft: #DFF3FA;/* ボタン背景等のソフトな水色 */
  --color-accent: #54B9D7;      /* アクセント水色（アイコン・装飾のみに使用。
                                    本文・小さな文字色には使わない＝コントラスト不足のため） */
  --color-accent-soft: #E8F7FC;

  --color-text: #243F54;        /* 本文ダークブルーグレー */
  --color-text-muted: #53697B;
  --color-border: #D7E6EE;

  --color-caution-bg: #FBF0DE;  /* 「確認中」等の注意喚起色は青系と区別し維持 */
  --color-caution-border: #E9CC98;
  --color-caution-text: #6B4B16;

  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-sm: 8px;
  --shadow-soft: 0 10px 26px rgba(14, 74, 104, 0.10);
  --max-width: 1140px;
  --sticky-cta-height: 80px; /* ボタン内文言が2行化（200%拡大等）しても本文を隠さないよう余裕を確保 */

  font-size: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: "Zen Kaku Gothic New", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic Medium", "Yu Gothic", "Noto Sans JP", "Meiryo", sans-serif;
  font-weight: 400;
  line-height: 1.75;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 0;
  /* word-break: keep-all は句読点のない地の文をまるごと「分割不可能な1つの塊」に
     してしまい、収まりきらない時にoverflow-wrapの緊急分割で任意の文字間を
     切ってしまう（見出し「個人情報の取り扱いについて」が「...取り扱いに／ついて」
     のように不自然な位置で割れる等）。通常の日本語の文字単位での折り返し
     （ブラウザ標準のkinsoku処理）に任せ、電話番号・型番等の英数字の連続だけを
     overflow-wrap: anywhere で安全側に保護する。 */
  overflow-wrap: anywhere;
}

h1, h2, h3, h4 { line-height: 1.4; margin: 0; color: var(--color-primary-dark); }
/* Zen Kaku Gothic New 採用に伴うウェイト方針：大見出し(h1/h2)は700、
   小見出し(h3/h4)は500。本文は400（body側で指定）。ボタンは下記 .btn 参照。 */
h1, h2 { font-weight: 700; }
h3, h4 { font-weight: 500; }
p { margin: 0 0 1em; }
a { color: var(--color-primary); }
a:hover { color: var(--color-primary-dark); }
ul, ol { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
table { width: 100%; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 2px; }

.skip-link {
  position: absolute;
  left: 8px; top: -60px;
  background: var(--color-primary-dark);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  z-index: 1000;
  transition: top 0.2s ease;
  text-decoration: none;
}
.skip-link:focus-visible { top: 8px; }

/* ----- 状態バナー・注記 -----------------------------------------------
   非公開プレビュー専用の帯状バナー（.status-banner）は2026-11-22に
   全ページから削除した（一般公開を見据えた表示整理）。.verify-note は
   個別の未確認事実（住所の最終確認前であること等）に紐づく注記のため、
   プレビュー専用表示とは別物として維持する。 ------------------------- */
.verify-note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: var(--color-caution-bg);
  border: 1px solid var(--color-caution-border);
  color: var(--color-caution-text);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 0.86rem;
  margin: 12px 0 0;
}
.verify-note .verify-note-icon { flex-shrink: 0; line-height: 1.6; }

.notice-box {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-primary);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin-bottom: 20px;
  font-size: 0.92rem;
  color: var(--color-text-muted);
}

.fine-print { font-size: 0.8rem; color: var(--color-text-muted); margin-top: 14px; }

.pending-tag[hidden], .verify-note[hidden] {
  display: none;
}
.pending-tag {
  display: inline-block;
  background: var(--color-tint-100);
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 10px;
  margin-left: 6px;
  vertical-align: middle;
  white-space: nowrap;
}

/* ----- アイコンバッジ（線画アイコン用の共通枠） --------------------------- */
.icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--color-tint-200);
  color: var(--color-primary-dark);
  flex-shrink: 0;
}
.icon-badge svg { width: 20px; height: 20px; }
.icon-badge--lg { width: 52px; height: 52px; }
.icon-badge--lg svg { width: 26px; height: 26px; }
.icon-badge--on-dark { background: rgba(255,255,255,0.16); color: #fff; }

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.section-kicker .icon-badge { width: 34px; height: 34px; }
.section-kicker .icon-badge svg { width: 18px; height: 18px; }
.section-kicker-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--color-primary);
}

/* ----- ヘッダー -------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 251, 253, 0.94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow 0.2s ease;
}
.site-header.is-scrolled { box-shadow: 0 4px 16px rgba(14, 74, 104, 0.08); }
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--color-primary-dark);
  flex-shrink: 0;
}
.brand:hover { color: var(--color-primary-dark); }
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--color-surface);
  box-shadow: inset 0 0 0 1px var(--color-border);
  flex-shrink: 0;
}
/* シンボルロゴ（正方形・白地）を円形バッジの中に object-fit:cover で
   収める。画像そのものはトリミングしておらず、円形の枠が白い角を
   自動的に隠す（画像ファイルの加工なしに正方形→円形の見た目を実現）。 */
.brand-mark img { width: 100%; height: 100%; object-fit: cover; }
.brand-name { font-weight: 700; font-size: 1.05rem; white-space: nowrap; }

.header-right { display: flex; align-items: center; gap: 14px; }

/* 2026-11-22修正：ヘッダー右上は幅に関わらず常に青い電話ボタン
   （.header-call-btn）を表示する。.header-phone は電話番号未確定時の
   文字表示用として元々作られたクラスで、フッターの電話番号表示にも
   流用されているため、ヘッダー内（.header-right の中）に限定して
   非表示にする（フッター側の表示には影響しない）。 */
.header-right .header-phone { display: none; }

.header-phone {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  text-align: right;
  line-height: 1.4;
}
.header-phone .phone-number {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  letter-spacing: 0.02em;
}
.header-phone a[data-phone-display],
.contact-value a[data-phone-display] {
  color: inherit;
  text-decoration: none;
}
.header-phone a[data-phone-display]:hover,
.contact-value a[data-phone-display]:hover {
  text-decoration: underline;
}

/* ヘッダー右上の青い電話ボタン。PC・タブレット・スマートフォンの
   すべての幅で常に表示する（2026-11-22修正：以前はPC幅で非表示にして
   .header-phone の文字表示だけを見せていたが、視認性の高い電話導線を
   求める要望により、全幅で統一してこのボタンを表示する方式に変更）。 */
.header-call-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-shrink: 0;
  height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--color-primary);
  color: #fff;
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 700;
  white-space: nowrap;
}
/* 2026-11-23修正：グローバルな a:hover { color: var(--color-primary-dark); }
   が、.header-call-btn のホバー時背景色（同じ --color-primary-dark）と
   詳細度の差で文字色まで上書きしてしまい、背景と文字が同色になって
   アイコン・ラベル・電話番号が見えなくなっていた（実機で再現・特定済み）。
   既存の .btn-primary:hover と同じ方式（color を明示指定）で解消する。
   focus-visible（キーボード操作時）も同じ背景・文字色に揃える。 */
.header-call-btn:hover,
.header-call-btn:focus-visible,
.header-call-btn:active {
  background: var(--color-primary-dark);
  color: #fff;
}
.header-call-btn svg { width: 18px; height: 18px; flex-shrink: 0; }
/* 電話番号本体は幅がある画面（PC・タブレット、981px以上）でのみボタン内に
   表示する。980px以下はスマートフォン用の既存デザイン（アイコン＋「電話」の
   ラベルのみ）を維持し、ナビゲーションや院名との衝突を避ける。 */
.header-call-btn-number { display: none; margin-left: 2px; font-weight: 700; }

@media (min-width: 981px) {
  .header-call-btn { padding: 0 18px; }
  .header-call-btn-number { display: inline; }
}

@media (max-width: 380px) {
  /* 320px前後では院名・電話ボタン・ハンバーガーが並びきらないため、
     電話ボタンをアイコンのみの円形に縮小する（アクセシブルネームは
     a要素のaria-labelで維持するため、ラベルを隠しても発信先は伝わる）。 */
  .header-call-btn { width: 40px; height: 40px; padding: 0; border-radius: 50%; }
  .header-call-btn-label { display: none; }
}

.primary-nav ul { display: flex; gap: 18px; flex-wrap: wrap; }
.primary-nav a {
  text-decoration: none;
  color: var(--color-text);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 4px 2px;
  border-bottom: 2px solid transparent;
}
.primary-nav a:hover { color: var(--color-primary); }
.primary-nav a[aria-current="page"] {
  color: var(--color-primary-dark);
  border-bottom-color: var(--color-accent);
  font-weight: 700;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  cursor: pointer;
  flex-shrink: 0;
}
.nav-toggle-bar { width: 20px; height: 2px; background: var(--color-primary-dark); margin: 0 auto; display: block; transition: transform 0.2s ease, opacity 0.2s ease; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* 「トップ」追加でナビ項目が6つになったため、PC表示でも重ならないよう
   ハンバーガーメニューへの切り替え幅を860pxから980pxに広げている。 */
@media (max-width: 980px) {
  .primary-nav ul { flex-direction: column; gap: 0; padding: 8px 20px 16px; }
  .primary-nav a { display: block; padding: 14px 2px; border-bottom: 1px solid var(--color-border); min-height: 44px; }

  /* メニューの開閉（折りたたみ）はJS前提の拡張。JSが無効な環境では常に展開した
     状態で表示し、重要な情報・ページへの経路を必ず利用できるようにする。 */
  html.js .primary-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
    box-shadow: var(--shadow-soft);
  }
  html.js .primary-nav.is-open { max-height: 70vh; overflow-y: auto; }
  html.js .nav-toggle { display: flex; }
}

/* ----- 受付時間ストリップ（コンパクト表示） ------------------------------- */
.info-strip {
  background: var(--color-tint-100);
  border-bottom: 1px solid var(--color-border);
  padding: 12px 20px;
}
.info-strip-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  /* 受付時間の値が「午前／午後」2行ずつの複数行になったため、横並びの
     行（flex-wrap）のままだと「受付時間」ブロックだけ背が高くなり、
     右側の「休診日」が中途半端な高さに浮いて見える。常に縦積みにして
     左端を揃える（.hours-compact の構成と統一）。 */
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.info-strip-item {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: 0.88rem;
  color: var(--color-text-muted);
  margin: 0;
}
.info-strip-item strong { color: var(--color-primary-dark); font-weight: 700; }
.info-strip-item [data-closed-display] div { display: inline; }

/* 受付時間のコンパクト表示（カード形式。ページ内で使用） */
.hours-compact {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  background: var(--color-tint-100);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  margin: 0;
}
.hours-compact-item { display: flex; align-items: baseline; gap: 6px; font-size: 0.92rem; color: var(--color-text-muted); margin: 0; }
.hours-compact-item strong { color: var(--color-primary-dark); font-weight: 700; }
.hours-compact-item [data-closed-display] div { display: inline; }

/* 受付時間の1枠（例：「午前の施術時間：9:00〜12:00」）を、時間帯の本体と
   「（最終受付 ...）」の補足に分けて2行表示する（info-strip・hours-compact
   共通。カレンダーの日付詳細 .cal-detail-hours-main/-note と同じルール）。
   午前・午後が連続して1行に流れ込み、括弧の途中で不自然に折り返される
   不具合を解消するため、各枠を独立したブロックにして間に余白を設ける。 */
[data-hours-display] .hours-line { display: block; text-align: left; }
[data-hours-display] .hours-line + .hours-line { margin-top: 10px; }
[data-hours-display] .hours-line-main { display: block; font-weight: 600; }
[data-hours-display] .hours-line-note { display: block; font-size: 0.86em; color: var(--color-text-muted); margin-top: 1px; }

/* ラベル（「受付時間」等）は短い語でも、値が長い空白無しの文字列だと
   同じ行で収まりきらずflex-shrinkで一緒に縮み、1文字ずつ縦に折り返される
   不具合があった。受付時間の値は午前／午後の2行（さらに最終受付の補足行）
   になる複数行の値のため、幅に関わらず常にラベルを値の上に積み、
   左端を揃える（以前は600px以下でのみ積んでいたが、値が複数行になった
   ことで、横並びのままだと2行目以降の左端が値側の開始位置にずれて
   見える問題が幅を問わず起こるようになったため）。 */
.info-strip-item, .hours-compact-item {
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}
.info-strip-item strong, .hours-compact-item strong { white-space: nowrap; flex-shrink: 0; }

/* ----- モバイル下部固定CTA --------------------------------------------- */
.sticky-cta {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 90;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  box-shadow: 0 -8px 20px rgba(14, 74, 104, 0.12);
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
  gap: 10px;
}
.sticky-cta a {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  text-align: center;
  white-space: nowrap;
  padding: 0 6px;
  overflow: hidden;
}
.sticky-cta .cta-fees { background: var(--color-primary-soft); color: var(--color-primary-dark); }
.sticky-cta .cta-contact { background: var(--color-primary); color: #fff; }
.sticky-cta .cta-label-short { display: none; }
@media (max-width: 860px) {
  .sticky-cta { display: flex; }
  body.has-sticky-cta { padding-bottom: calc(var(--sticky-cta-height) + env(safe-area-inset-bottom, 0px)); }
}
/* 320/375/390px幅でも2つのボタンの文字がはみ出さないよう、狭幅では短い表記に切り替える */
@media (max-width: 400px) {
  .sticky-cta { padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0px)); gap: 8px; }
  .sticky-cta a { font-size: 0.84rem; }
  .sticky-cta .cta-label-full { display: none; }
  .sticky-cta .cta-label-short { display: inline; }
}

/* ----- ボタン ----------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn-primary { background: var(--color-primary); color: #fff; }
.btn-primary:hover { background: var(--color-primary-dark); color: #fff; }
.btn-outline { background: transparent; color: var(--color-primary-dark); border-color: var(--color-primary); }
.btn-outline:hover { background: var(--color-primary-soft); color: var(--color-primary-dark); }

/* ----- ブレッドクラム ---------------------------------------------------- */
.breadcrumb {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 12px 20px 0;
  font-size: 0.82rem;
  color: var(--color-text-muted);
}
.breadcrumb a { color: var(--color-text-muted); text-decoration: underline; }
.breadcrumb a:hover { color: var(--color-primary); }
.breadcrumb .current { color: var(--color-primary-dark); font-weight: 600; }

/* ----- ヒーロー（連結パネル＋写真帯） -------------------------------------
   2026-11-22修正：住所・院名・キャッチコピー・注意書き・CTAボタンを
   先に読んでから写真を見る順序に変更（モバイル・PC共通、DOM順そのもの）。
   文字パネルは水色の塗り背景のまま写真帯の直前まで続き、写真帯の左右・
   下の余白は`.hero`自体の背景グラデーション（tint-100→bg）がそのまま
   見えるレターボックスになるため、色の境目を作らず自然につながる。 */
.hero {
  position: relative;
  padding: 0 0 40px;
  background: linear-gradient(180deg, var(--color-tint-100) 0%, var(--color-bg) 100%);
  overflow: hidden;
}
.hero::before, .hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
}
.hero::before {
  width: 420px; height: 420px;
  background: radial-gradient(circle, var(--color-tint-200) 0%, rgba(223,243,250,0) 70%);
  top: -180px; right: -120px;
}
.hero::after {
  width: 260px; height: 260px;
  background: radial-gradient(circle, var(--color-accent-soft) 0%, rgba(232,247,252,0) 70%);
  bottom: -120px; left: -80px;
}

/* 写真帯：.hero の左右パディングを超えて画面幅いっぱいに広がる。
   文字パネルの直下に来るため、このコンテキストのみ角丸・影を外す。 */
.hero-photo-band {
  position: relative;
  z-index: 1;
  margin-inline: calc(50% - 50vw);
  margin-top: 6px;
}
.hero-photo-band .carousel-viewport {
  /* aspect-ratio ではなく height を直接指定する。幅いっぱいの要素に
     aspect-ratio と max-height を併用すると、ブラウザが高さを先に
     クランプしたうえで幅をアスペクト比から逆算してしまい、
     フルブリードのはずの写真帯が中央に縮んでしまうため。 */
  aspect-ratio: auto;
  height: min(58vh, 620px);
}
.hero-photo-band .carousel-footer { margin-top: 10px; }

/* PC（横幅1024px以上）の写真帯。本文と同じ最大幅（var(--max-width)=
   1140px）に収めて中央配置し、表示枠の縦横比を固定することで、画面幅が
   変わってもheroパネルとの高さバランスが崩れないようにしている。
   2026-11-22修正：aspect-ratioを2/1から2.5/1に変更し、写真の表示高さを
   従来の約80%に縮小した（幅は不変のため、高さだけが80%になる＝
   height = width / aspect-ratio なので、aspect-ratioを1/0.8=1.25倍すると
   heightはちょうど0.8倍になる）。1140px幅の場合、高さは570px→456pxになる。
   合わせて、下の「PC幅：写真の表示方式」ブロックで全スライドを
   object-fit:contain＋ぼかし背景に変更したため、表示枠が元写真（4:3や
   3:4）よりワイドでも建物や証明書の内容が切れることはなく、余った左右の
   帯には同じ写真のぼかし背景が自然に収まる。スマートフォン（1024px未満）
   は高さ・表示方式とも変更しない。 */
@media (min-width: 1024px) {
  .hero-photo-band .carousel {
    max-width: var(--max-width);
    margin-inline: auto;
  }
  .hero-photo-band .carousel-viewport {
    height: auto;
    aspect-ratio: 2.5 / 1;
  }

  /* PC幅：写真の表示方式。元々 .carousel-slide--fit （証明書等4枚）だけに
     使っていた「ぼかし拡大版を背景に敷き、本体はobject-fit:containで
     全体を見せる」パターンを、ヒーローの全10枚に拡張する。各
     .carousel-slide 要素には中のimgと同じ画像をstyle="background-image:
     url(...)"で指定済み（index.html参照）なので、::beforeの
     background-image:inherit でそのまま読み取れる。セレクタの詳細度が
     既存の .carousel-slide--fit / .carousel-slide img より高いため、
     記述順を気にせずPC幅でのみ上書きできる。 */
  .hero-photo-band .carousel-slide {
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
  }
  .hero-photo-band .carousel-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: inherit;
    background-size: cover;
    background-position: center;
    filter: blur(18px) brightness(0.72);
    transform: scale(1.15);
  }
  .hero-photo-band .carousel-slide img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
}

/* 2026-11-22修正：文字パネルが写真より先（ヘッダー直下）に来るように
   なったため、縦に長くなりすぎないよう上下の余白を詰めている
   （以前：28px 20px 8px → 現在：22px 20px 14px）。背景色は写真帯の
   ぼかし背景の余白と同じ`.hero`グラデーションに自然に溶け込むよう、
   パネル下端の約28pxだけ透明へフェードさせている（色の境目を作らない）。 */
.hero-panel {
  position: relative;
  z-index: 1;
  background: linear-gradient(180deg, var(--color-tint-100) 0%, var(--color-tint-100) calc(100% - 28px), rgba(223, 243, 250, 0) 100%);
  margin-inline: calc(50% - 50vw);
  padding: 22px 20px 14px;
}
.hero-panel-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}
.hero-eyelet { display: inline-block; background: var(--color-surface); color: var(--color-primary-dark); font-size: 0.78rem; font-weight: 700; padding: 4px 12px; border-radius: 999px; margin-bottom: 12px; box-shadow: var(--shadow-soft); }
/* 写真より先に読まれる、ファーストビューで最初に目に入る要素になったため、
   文字サイズはそのままに太字度合いを強め院名を明確に目立たせている。 */
.hero-title { font-size: clamp(1.9rem, 4.6vw, 2.8rem); font-weight: 800; margin-bottom: 8px; }
.hero-sub { font-size: 1.04rem; color: var(--color-text-muted); margin-bottom: 8px; }
/* キャッチコピーを「けがや身体の痛み、」「まずはお気軽にご相談ください。」の
   2つの意味のまとまりに分け、それぞれをnowrapにする。句読点だけが次行へ
   孤立したり、「ください」等の単語の途中で割れたりするのを防ぎつつ、
   幅が十分な画面では2つのまとまりがそのまま1行に収まる（固定<br>は使わない）。 */
.hero-sub-chunk { white-space: nowrap; }
.hero-disclaimer { font-size: 0.82rem; color: var(--color-text-muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 14px 0 0; }

/* ----- 簡易ページヘッダー（下層ページ用） -------------------------------- */
.page-hero { padding: 38px 20px 32px; background: linear-gradient(180deg, var(--color-tint-100) 0%, var(--color-bg) 100%); border-bottom: 1px solid var(--color-border); }
.page-hero-inner { max-width: var(--max-width); margin: 0 auto; }
.page-hero-eyelet { display: inline-block; background: var(--color-surface); color: var(--color-primary-dark); font-size: 0.76rem; font-weight: 700; padding: 4px 12px; border-radius: 999px; margin-bottom: 14px; box-shadow: var(--shadow-soft); }
.page-hero h1 { font-size: clamp(1.6rem, 3.6vw, 2.2rem); margin-bottom: 8px; font-weight: 700; }
.page-hero-subtitle { font-size: clamp(1.05rem, 2.2vw, 1.3rem); font-weight: 500; color: var(--color-primary-dark); margin: 0 0 10px; }
.page-hero-lead { color: var(--color-text-muted); max-width: 70ch; margin: 0; }

/* ----- セクション共通 ----------------------------------------------------- */
.section { padding: 48px 20px; }
.section-alt { background: var(--color-tint-100); }
.section-tint { background: var(--color-tint-200); }
.section-inner { max-width: var(--max-width); margin: 0 auto; }
.section-title { font-size: clamp(1.4rem, 3vw, 1.9rem); margin-bottom: 14px; font-weight: 700; letter-spacing: 0.01em; }
.section-lead { color: var(--color-text-muted); max-width: 70ch; margin-bottom: 22px; }
.section-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; margin-top: 4px; }
@media (max-width: 600px) {
  .section { padding: 36px 20px; }
}

/* ----- 写真プレースホルダー枠 ---------------------------------------------- */
.photo-frame {
  position: relative;
  display: block;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-tint-200);
  box-shadow: var(--shadow-soft);
}
.photo-frame img { width: 100%; height: 100%; object-fit: cover; }
.photo-frame[data-ratio="16x10"] { aspect-ratio: 16 / 10; }
.photo-frame[data-ratio="4x3"] { aspect-ratio: 4 / 3; }
.photo-frame[data-ratio="3x4"] { aspect-ratio: 3 / 4; }
.photo-frame[data-ratio="1x1"] { aspect-ratio: 1 / 1; }
.photo-frame-caption {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  margin-top: 8px;
}

/* ----- カードグリッド各種 -------------------------------------------------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
@media (hover: hover) {
  .card:hover { transform: translateY(-3px); box-shadow: 0 16px 32px rgba(14, 74, 104, 0.14); }
}
/* 2026-11-20修正：以前は1つ置き（奇数番目）だけにアクセント線を付けて
   いたが、同じグリッド内で線がある/ないカードが混在して見える不具合が
   あったため（例：「目印の看板」にはあり「入口」にはない）、同じ
   .card-gridの中のカードは全て左側アクセント線で統一する。 */
.card-grid .card { border-left: 3px solid var(--color-accent); }
.card .icon-badge { margin-bottom: 10px; }
.card h3 { font-size: 1.02rem; margin-bottom: 6px; }
.card p { font-size: 0.9rem; color: var(--color-text-muted); margin: 0; }
.card-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 10px;
}

/* トップページ：施術機器の見つけやすさ向上のための静的サムネイルグリッド
   （新規カルーセルは作らず、既存4枚の写真を再利用するだけの軽量な部品）。 */
.equipment-thumb-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.equipment-thumb {
  position: relative;
  display: block;
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  box-shadow: var(--shadow-soft);
  text-decoration: none;
}
.equipment-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.equipment-thumb span {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 6px 6px 5px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
  text-align: center;
  background: rgba(14, 74, 104, 0.8);
}
@media (max-width: 480px) {
  .equipment-thumb-grid { grid-template-columns: repeat(2, 1fr); }
}

/* 一般的な例の参考タグ（確定メニューではないことを示すための控えめな表示） */
.example-pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.example-pills[hidden] { display: none; }
.example-pill {
  display: inline-block;
  background: var(--color-tint-100);
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  border-radius: 999px;
  font-size: 0.84rem;
  padding: 6px 14px;
}

/* ----- 情報テーブル -------------------------------------------------------- */
.info-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.info-table th, .info-table td { text-align: left; padding: 13px 18px; border-bottom: 1px solid var(--color-border); font-size: 0.92rem; vertical-align: top; }
.info-table th { width: 32%; color: var(--color-text-muted); font-weight: 600; background: var(--color-tint-100); }
.info-table tr:last-child th, .info-table tr:last-child td { border-bottom: none; }
@media (max-width: 480px) {
  /* 「最寄駅・バス停からのアクセス」等、長いラベルが縦に細長く
     折り返され続けるのを避けるため、狭幅ではラベルを値の上に積む。
     table/tbody/tr もまとめてdisplay:blockにしないと、匿名tableボックスが
     生成されて孤立したセルが縮んでしまう（price-tableと同じ不具合）。 */
  .info-table, .info-table tbody, .info-table tr, .info-table th, .info-table td {
    display: block; width: 100%;
  }
  .info-table th, .info-table td { padding: 10px 16px; }
  .info-table th { padding-bottom: 2px; border-bottom: none; }
  .info-table td { padding-top: 0; }
}

/* 単一の「見出し：短い値」を2列テーブルのth幅制約で詰めずに表示するための部品
   （例：お支払い方法）。狭幅では縦積みに切り替える。 */
.kv-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  padding: 14px 18px;
  margin-top: 20px;
}
.kv-row-label { font-weight: 700; color: var(--color-primary-dark); flex: 0 0 auto; white-space: nowrap; }
.kv-row-value { color: var(--color-text); }
@media (max-width: 420px) {
  .kv-row { flex-direction: column; gap: 2px; }
}

/* 料金ページ: 横幅が狭い時は横スクロールさせず、カード表示に切替える */
.fee-table-wrap { overflow-x: auto; }
.fee-cards { display: grid; gap: 14px; }
.fee-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  box-shadow: var(--shadow-soft);
}
.fee-card h3 { font-size: 1rem; margin-bottom: 6px; }
.fee-card .fee-value { font-weight: 700; color: var(--color-primary-dark); }
.fee-card p { font-size: 0.88rem; color: var(--color-text-muted); margin: 6px 0 0; }

/* ----- 手順リスト（流れ） --------------------------------------------------- */
.flow-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 18px; margin-bottom: 20px; }
.flow-step { background: var(--color-surface); border-radius: var(--radius-md); padding: 20px; box-shadow: var(--shadow-soft); position: relative; }
.flow-marker { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: var(--color-primary); color: #fff; font-weight: 700; margin-bottom: 10px; }
.flow-step h3 { font-size: 1rem; margin-bottom: 6px; }
.flow-step p { font-size: 0.88rem; color: var(--color-text-muted); margin: 0; }

/* ----- FAQ（native details/summary、JS無効でも開閉可能） ------------------- */
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); overflow: hidden; }
.faq-item summary {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 20px;
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--color-text);
  cursor: pointer;
  list-style: none;
  min-height: 44px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:focus-visible { outline: 3px solid var(--color-accent); outline-offset: -3px; }
.faq-item summary:hover { color: var(--color-primary); }
.faq-icon { flex-shrink: 0; width: 18px; height: 18px; position: relative; }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; background: var(--color-primary); transition: transform 0.2s ease; }
.faq-icon::before { width: 100%; height: 2px; top: 8px; left: 0; }
.faq-icon::after { width: 2px; height: 100%; left: 8px; top: 0; }
.faq-item[open] summary .faq-icon::after { transform: scaleY(0); }
.faq-answer { padding: 0 20px 18px; color: var(--color-text-muted); font-size: 0.92rem; }
.faq-answer p:last-child { margin-bottom: 0; }

/* ----- アクセスページ ------------------------------------------------------- */
.access-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 24px; align-items: start; }
@media (max-width: 860px) { .access-grid { grid-template-columns: 1fr; } }

/* ----- Googleマップ埋め込み（レスポンシブ。固定600pxを使わず幅いっぱいに追従） --- */
.map-embed {
  position: relative;
  width: 100%;
  height: 380px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  background: var(--color-tint-100);
}
.map-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.map-embed--compact { height: 260px; }
.map-embed-link { margin-top: 12px; }
@media (max-width: 600px) {
  .map-embed { height: 320px; }
  .map-embed--compact { height: 240px; }
}

/* ----- お問い合わせページ --------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-bottom: 20px; }
.contact-panel { background: var(--color-surface); border-radius: var(--radius-md); padding: 20px; box-shadow: var(--shadow-soft); }
.contact-panel h3 { font-size: 1rem; margin-bottom: 10px; }
.contact-value { font-weight: 700; color: var(--color-primary-dark); margin-bottom: 6px; font-size: 1.1rem; letter-spacing: 0.02em; }
.contact-note { font-size: 0.85rem; color: var(--color-text-muted); margin: 0; }

.contact-card { background: var(--color-surface); border-radius: var(--radius-md); padding: 24px; box-shadow: var(--shadow-soft); max-width: 560px; }
.form-field { display: block; margin-bottom: 14px; font-size: 0.9rem; font-weight: 600; color: var(--color-text); }
.form-field span { display: block; margin-bottom: 6px; }
.form-field input, .form-field textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--color-border); border-radius: var(--radius-sm); font: inherit; min-height: 44px; }
.form-field textarea { min-height: 96px; }
.form-field input:focus-visible, .form-field textarea:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 1px; }
.form-status { font-size: 0.88rem; margin-top: 10px; }
.form-status.is-error { color: #b3261e; }
.form-status.is-pending { color: var(--color-primary-dark); }

/* ----- 個人情報ページ ------------------------------------------------------- */
.policy-section { margin-bottom: 26px; }
.policy-section h2 { font-size: 1.15rem; margin-bottom: 10px; }
.policy-section h3 { font-size: 1rem; margin: 16px 0 6px; }

/* ----- フッター -------------------------------------------------------------- */
.site-footer { background: var(--color-primary-dark); color: #E7F3F8; padding: 44px 20px 22px; }
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 26px;
}
.footer-brand p { color: #C9E3EE; font-size: 0.88rem; margin-top: 8px; max-width: 32ch; word-break: keep-all; overflow-wrap: break-word; }
/* 2026-11-22修正：フッターの電話番号は .header-phone クラスを流用して
   いるが、このクラスはヘッダー用に text-align: right が指定されており、
   フッター内では住所（通常のpタグ、既定で左揃え）と電話番号の左端が
   揃わず、電話番号だけ右にずれて見える不具合の原因になっていた。
   フッターの文脈だけ左揃えに上書きする。 */
.footer-brand .header-phone { text-align: left; }
/* 2026-11-19：文字入りロゴ（name.webp、シンボル＋「みかも整骨院」）
   1枚に戻す。以前（本日の前回修正）はシンボル画像＋HTMLテキストの
   二重表記を解消するためにシンボル単体へ変更していたが、院名が画像内に
   既に含まれる文字入りロゴを使う場合はHTMLテキスト側を完全に取り除く
   ことで、二重表記を発生させずに文字入りロゴを使用できる。白地の正方形
   画像のため、ダークブルーの背景に浮かないよう白いカードに乗せる。 */
.footer-logo { margin-bottom: 16px; }
.footer-logo-link {
  display: inline-flex;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 14px 20px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}
.footer-logo-img { width: 150px; height: auto; display: block; }
@media (max-width: 420px) {
  .footer-logo-img { width: 120px; }
}
.footer-nav-group h4,
.footer-map-card h4 { color: #fff; font-size: 0.82rem; margin-bottom: 10px; letter-spacing: 0.04em; }
.footer-nav { display: flex; flex-direction: column; gap: 8px; }
.footer-nav a { color: #E7F3F8; text-decoration: none; font-size: 0.88rem; }
.footer-nav a:hover { text-decoration: underline; color: #fff; }

/* 中央：アクセスマップ案内カード */
.footer-map-card-row { display: flex; align-items: center; gap: 10px; margin: 0; }
.footer-map-link { color: #E7F3F8; text-decoration: none; font-size: 0.88rem; font-weight: 600; }
.footer-map-link:hover { color: #fff; text-decoration: underline; }
.footer-map-link[aria-disabled="true"] { color: #AFD1DF; pointer-events: none; font-weight: 400; }

.footer-copy { max-width: var(--max-width); margin: 0 auto; font-size: 0.78rem; color: #AFD1DF; }

@media (max-width: 860px) {
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .footer-brand, .footer-map-card, .footer-nav-group { margin-bottom: 4px; }
  .footer-map-card-row { flex-wrap: wrap; }
  .footer-nav a,
  .footer-map-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
  .footer-nav a { border-bottom: 1px solid rgba(255,255,255,0.12); }
  .footer-nav a:last-child { border-bottom: none; }
}

/* ----- 404ページ -------------------------------------------------------------- */
.error-page { padding: 72px 20px; text-align: center; }
.error-page h1 { font-size: clamp(2rem, 6vw, 3rem); margin-bottom: 16px; }
.error-page p { color: var(--color-text-muted); max-width: 50ch; margin: 0 auto 24px; }

/* ----- 控えめな出現演出（JS有効時のみ適用、reduced-motionでは即時表示） ------- */
.reveal {
  opacity: 1;
  transform: none;
}
/* 2026-11-22修正：開始タイミングを少し遅らせる調整（script.js側の
   IntersectionObserver rootMargin）に合わせて、動き自体も0.5s→0.8sへ
   ゆっくりにし、移動距離も14px→20pxへわずかに増やして「動きがしっかり
   認識できる」落ち着いた出現に調整した。イージングは単純なeaseではなく、
   終盤でなめらかに減速するカーブ（cubic-bezier）にして高級感のある
   止まり方にしている。 */
body.js-reveal .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
body.js-reveal .reveal.is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  body.js-reveal .reveal { opacity: 1; transform: none; }
}

/* .reveal と併用する控えめな時間差演出。直接の子要素に80ms刻みの
   transition-delayを付与し、写真とテキストが同時にではなく
   わずかにずれて現れるようにする（親の.revealがis-visibleになった
   時点で子にも同じopacity/transformのtransitionが働く）。 */
body.js-reveal .reveal-stagger > * {
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
body.js-reveal .reveal-stagger > *:nth-child(1) { transition-delay: 0ms; }
body.js-reveal .reveal-stagger > *:nth-child(2) { transition-delay: 90ms; }
body.js-reveal .reveal-stagger > *:nth-child(3) { transition-delay: 180ms; }
body.js-reveal .reveal-stagger > *:nth-child(4) { transition-delay: 270ms; }
@media (prefers-reduced-motion: reduce) {
  body.js-reveal .reveal-stagger > * { transition-delay: 0ms !important; }
}

@media (max-width: 820px) {
  /* スマホでは写真帯の縦寸法を抑え、キャッチコピー・電話導線が
     最初の画面内に収まりやすくする（ファーストビューの表示速度・
     可読性を優先し、写真を過度に大きくしない）。
     2026-11-22修正：文字パネルが写真より先に来るため、パネル自体の
     上下余白もスマホ向けに詰め、文字エリアが縦に長くなりすぎない
     ようにしている（タイトル等の行間・ボタン間隔はPCと共通のまま）。 */
  .hero-photo-band .carousel-viewport { height: min(46vh, 420px); }
  .hero-panel { padding: 16px 20px 12px; }
  .hero::before { width: 300px; height: 300px; top: -140px; right: -100px; }
  .hero::after { width: 180px; height: 180px; }
}

/* ----- トップページ・お問い合わせページ：直近のお知らせ・通常受付時間の1行サマリー ---- */
.upcoming-list { display: flex; flex-direction: column; gap: 8px; margin: 0; }
.upcoming-list li { font-size: 0.9rem; color: var(--color-text-muted); }
.upcoming-list li strong { color: var(--color-primary-dark); font-weight: 700; }
[data-weekly-summary] { font-weight: 600; color: var(--color-text); }

/* ----- 受付時間・営業日カレンダー（月間グリッド） -------------------------------
   トップページではファーストビュー直後の目立つ位置に配置されるため、
   PC幅で横に間延びしないよう、この見出し・お知らせ・カレンダー・
   リンクをまとめた列全体を適度な幅に制限する（カレンダー機能自体は
   変更しない）。#schedule-infoセクションに限定したスコープ。 */
#schedule-info .section-inner { max-width: 640px; }
.schedule-calendar {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-soft);
}
.cal-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.cal-month-label { font-size: 1.05rem; margin: 0; min-width: 8ch; text-align: center; }
.cal-nav-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--color-border); background: var(--color-tint-100);
  color: var(--color-primary-dark); font-size: 1.15rem; line-height: 1; cursor: pointer;
}
.cal-nav-btn:hover { background: var(--color-tint-200); }

.cal-legend { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-bottom: 14px; font-size: 0.78rem; color: var(--color-text-muted); }
.cal-legend-item { display: flex; align-items: center; gap: 6px; }
.cal-dot { width: 13px; height: 13px; border-radius: 3px; display: inline-block; border: 1px solid rgba(36, 63, 84, 0.18); }
.cal-dot--open { background: #DFF3FA; }
.cal-dot--half { background: linear-gradient(135deg, #DFF3FA 50%, #FBE3E1 50%); }
.cal-dot--closed { background: #FBE3E1; }
.cal-dot--special { background: #FDF3C8; }
.cal-dot--unknown { background: #EDEFF1; }

.cal-grid { width: 100%; border-collapse: collapse; table-layout: fixed; }
.cal-grid th { font-size: 0.74rem; font-weight: 700; color: var(--color-text-muted); padding: 4px 0; text-align: center; }
.cal-grid td { padding: 2px; text-align: center; vertical-align: middle; }
.cal-day {
  width: 100%; max-width: 44px; aspect-ratio: 1 / 1; margin: 0 auto;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1px; border-radius: 8px; border: 2px solid transparent;
  background: var(--color-tint-100); color: var(--color-text);
  cursor: pointer; font: inherit; padding: 0;
}
.cal-day-num { font-size: 0.82rem; font-weight: 600; line-height: 1.1; }
.cal-day-glyph { font-size: 0.6rem; line-height: 1; color: var(--color-text-muted); }
.cal-day--open { background: #DFF3FA; }
.cal-day--half { background: linear-gradient(135deg, #DFF3FA 50%, #FBE3E1 50%); }
.cal-day--closed { background: #FBE3E1; }
.cal-day--special { background: #FDF3C8; }
.cal-day--unknown { background: #EDEFF1; color: var(--color-text-muted); }
.cal-day--today { border-color: var(--color-primary); }
.cal-day[aria-pressed="true"] { outline: 3px solid var(--color-accent); outline-offset: 1px; }
.cal-day:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 1px; }
.cal-day:hover { filter: brightness(0.96); }

.cal-detail { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--color-border); }
.cal-detail-date { font-weight: 700; color: var(--color-primary-dark); margin: 0 0 8px; }
.cal-detail-status {
  display: inline-block; font-size: 0.8rem; font-weight: 700;
  padding: 2px 12px; border-radius: 999px; margin: 0 0 10px;
}
.cal-detail-status--open { background: #DFF3FA; color: #0E4A68; }
.cal-detail-status--closed { background: #FBE3E1; color: #8A2E22; }
.cal-detail-status--special { background: #FDF3C8; color: #6B5405; }
.cal-detail-status--unknown { background: #EDEFF1; color: var(--color-text-muted); }
.cal-detail-hours { margin: 0 0 8px; padding-left: 0; list-style: none; }
.cal-detail-hours li { font-size: 0.92rem; color: var(--color-text); }
.cal-detail-hours li + li { margin-top: 8px; }
.cal-detail-hours-main { display: block; font-weight: 600; }
.cal-detail-hours-note { display: block; font-size: 0.82rem; color: var(--color-text-muted); margin-top: 1px; }

@media (max-width: 420px) {
  .cal-day { max-width: 36px; }
  .cal-day-num { font-size: 0.76rem; }
  .cal-nav-btn { width: 36px; height: 36px; }
  .cal-month-label { font-size: 0.96rem; }
}

/* ----- トップページ：写真カルーセル -------------------------------------------
   スライドの横移動そのものはCSSの scroll-snap（ブラウザ標準機能）が行うため、
   JavaScriptが無効でも1枚目が表示され、スワイプ/トラックパッドでの送りは
   可能。矢印・ドットはJS前提の拡張のため、他のJS前提UI（モバイルメニュー等）
   と同じく html.js スコープでのみ表示する（押しても反応しないボタンを
   作らないため）。 ------------------------------------------------------- */
.carousel { position: relative; }
.carousel-viewport {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  background: var(--color-tint-200);
}
.carousel-track {
  display: flex;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  list-style: none;
  /* ループカルーセルの複製スライド補正（JSでscrollLeftを瞬時にジャンプ
     させる処理）で、ブラウザが遠く離れた位置を再描画する際に一瞬ちらつく
     ことがあるため、スクロール位置の変化をあらかじめGPUコンポジットの
     対象にしておく（スクロール自体の見た目は変えない）。 */
  will-change: scroll-position;
}
.carousel-track::-webkit-scrollbar { display: none; height: 0; }
.carousel-track:focus-visible { outline: 3px solid var(--color-accent); outline-offset: -3px; }
.carousel-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}
.carousel-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* 証明書・掲示物等、内容（文字）が写真の全体に及ぶスライド専用の表示方式。
   object-fit:coverだけでは、特にヒーローの写真帯のように横長な表示領域に
   縦長・内容密度の高い写真を収めると、内容の大部分が切れてしまう
   （例：高さ方向の表示可能割合が実測で3割以下になる場合がある）。
   かといって全スライドをcontainにすると余白だらけになってしまうため、
   このクラスを付けたスライドだけ、ぼかした拡大版を背景に敷いたうえで
   本体をcontain表示にし、内容を全て見せつつ余白を目立たなくする。 */
.carousel-slide--fit {
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}
.carousel-slide--fit::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: inherit;
  background-size: cover;
  background-position: center;
  filter: blur(18px) brightness(0.72);
  transform: scale(1.15);
}
.carousel-slide--fit img {
  position: relative;
  z-index: 1;
  object-fit: contain;
}

.carousel-arrow {
  display: none; /* JS確認後（html.js）のみ表示 */
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px; height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.88);
  color: var(--color-primary-dark);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  box-shadow: 0 2px 10px rgba(14, 74, 104, 0.22);
}
.carousel-arrow--prev { left: 10px; }
.carousel-arrow--next { right: 10px; }
.carousel-arrow:hover { background: #fff; }
.carousel-arrow:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 2px; }
html.js .carousel-arrow { display: flex; }

.carousel-footer { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 12px; }
/* 自動再生の一時停止/再生ボタン。既存の矢印・ドットと同じ配色・角丸言語に
   揃えた小さな円形ボタン。ドット・カウンターと並べてもレイアウトが
   崩れないよう、.carousel-footer の既存flexレイアウトにそのまま収める。 */
.carousel-autoplay-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  padding: 6px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-primary-dark);
  cursor: pointer;
}
.carousel-autoplay-toggle:hover { background: var(--color-tint-100); }
.carousel-autoplay-toggle:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 2px; }
.carousel-autoplay-toggle[aria-pressed="true"] { background: var(--color-primary-soft); }
.carousel-autoplay-toggle svg { width: 100%; height: 100%; }
.carousel-dots { display: flex; align-items: center; gap: 2px; }
.carousel-dot {
  width: 26px; height: 26px;
  display: flex; align-items: center; justify-content: center;
  background: transparent; border: none; padding: 0; cursor: pointer;
}
.carousel-dot::after {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--color-border);
  transition: width 0.2s ease, border-radius 0.2s ease, background 0.2s ease;
}
.carousel-dot[aria-current="true"]::after { background: var(--color-primary); width: 18px; border-radius: 4px; }
.carousel-dot:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 2px; border-radius: 6px; }

.carousel-counter { font-size: 0.82rem; color: var(--color-text-muted); margin: 0; min-width: 4.5ch; text-align: center; }

@media (max-width: 600px) {
  .carousel-arrow { width: 34px; height: 34px; font-size: 1.1rem; }
  .carousel-arrow--prev { left: 6px; }
  .carousel-arrow--next { right: 6px; }
}

/* ----- 施術機器カルーセル（写真＋機器名＋説明。トップの写真カルーセルとは
   別インスタンスだが、同じ carousel.js / 基本CSSを再利用する） ------------- */
.carousel--equipment .carousel-viewport { aspect-ratio: auto; background: transparent; box-shadow: none; }
.carousel--equipment .carousel-slide { height: auto; flex: 0 0 76%; margin-right: 12px; }
.equipment-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
/* 機器写真は背の高い実機を撮影したものが多く、幅いっぱいにcoverで
   トリミングすると上下が欠けるため、高さを揃えたうえでcontain表示にする
   （実機の見切れを防ぎ、カードの高さもスライド間で揃う）。 */
.equipment-card .photo-frame {
  border-radius: 0;
  box-shadow: none;
  aspect-ratio: auto;
  height: 190px;
  background: var(--color-tint-100);
}
.equipment-card .photo-frame img { object-fit: contain; }
/* 矢印は .carousel-viewport（写真＋説明文をまとめた高さ）の中央ではなく、
   写真エリア（.photo-frame、高さはブレークポイントごとに上の height と
   揃える）の中央付近に来るよう top を上書きする。説明文に重ならないため。 */
.carousel--equipment .carousel-arrow { top: 95px; }
.equipment-card-body { padding: 14px 16px 16px; }
.equipment-card-body h3 { font-size: 1rem; margin-bottom: 2px; }
.equipment-card-type { font-size: 0.78rem; font-weight: 700; color: var(--color-primary); margin: 0 0 8px; }
.equipment-card-body p:not(.equipment-card-type):not(.fine-print) { font-size: 0.9rem; color: var(--color-text-muted); margin: 0 0 8px; }

@media (min-width: 480px) {
  .equipment-card .photo-frame { height: 220px; }
  .carousel--equipment .carousel-arrow { top: 110px; }
}
@media (min-width: 600px) {
  .carousel--equipment .carousel-slide { flex: 0 0 calc(50% - 8px); margin-right: 16px; }
}
@media (min-width: 860px) {
  .carousel--equipment .carousel-slide { flex: 0 0 calc(33.333% - 11px); }
  .equipment-card .photo-frame { height: 240px; }
  .carousel--equipment .carousel-arrow { top: 120px; }
}

/* ----- 院のご案内：院内・設備カルーセル（写真＋一言キャプションのみ。
   機種名の詳しい説明は施術案内ページの機器カルーセルに集約し、重複させない） -- */
.carousel--facility .carousel-viewport { aspect-ratio: auto; background: transparent; box-shadow: none; }
.carousel--facility .carousel-slide { height: auto; flex: 0 0 85%; margin-right: 12px; }
.facility-card { position: relative; border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-soft); background: var(--color-surface); }
/* 写真は横長（4x3）・縦長（3x4）が混在するため、aspect-ratio任せだと
   スライドごとにカード高さがバラバラになる（施術機器カルーセルと同じ
   不具合）。高さを揃えたうえでcontain表示にし、縦横どちらの写真も
   欠けずに同じ枠内へ収める。 */
.facility-card .photo-frame {
  border-radius: 0;
  box-shadow: none;
  aspect-ratio: auto;
  height: 190px;
  background: var(--color-tint-100);
}
.facility-card .photo-frame img { object-fit: contain; }
/* キャプションを写真の下に重ねて表示する（参考サイトの「写真タイル＋
   ラベル帯」に着想を得た独自表現）。短いキャプション（2〜6文字）のみを
   想定しており、帯の高さは写真の下約25%以内に収めている。機種名等の
   長い説明文が必要な施術機器カード（.equipment-card）には適用しない。 */
.facility-card-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  margin: 0;
  padding: 18px 14px 8px;
  font-size: 0.86rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(transparent, rgba(14, 74, 104, 0.72) 60%);
}
@media (min-width: 480px) {
  .facility-card .photo-frame { height: 220px; }
}
@media (min-width: 600px) {
  .carousel--facility .carousel-slide { flex: 0 0 calc(50% - 8px); }
}
@media (min-width: 860px) {
  .carousel--facility .carousel-slide { flex: 0 0 calc(33.333% - 11px); }
  .facility-card .photo-frame { height: 240px; }
}

/* ----- 料金表（PCは通常の表、狭幅ではカード形式に切り替える。横スクロールさせない） --- */
.price-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.price-table caption {
  display: block; /* table-caption のままだと table が display:block になる
    480px以下で孤立し、匿名tableボックスに縮んで1文字ずつ改行される不具合があった */
  width: 100%;
  text-align: left; font-size: 0.82rem; color: var(--color-text-muted); margin-bottom: 10px; caption-side: top;
}
.price-table th, .price-table td { padding: 12px 14px; border-bottom: 1px solid var(--color-border); font-size: 0.92rem; }
.price-table thead th { background: var(--color-tint-100); color: var(--color-primary-dark); font-weight: 700; text-align: right; }
.price-table thead th:first-child { text-align: left; }
.price-table tbody th { text-align: left; font-weight: 600; color: var(--color-text); background: var(--color-surface); white-space: nowrap; }
.price-table tbody td { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.price-table tr:last-child th, .price-table tr:last-child td { border-bottom: none; }

@media (max-width: 480px) {
  .price-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
  .price-table, .price-table tbody, .price-table tr, .price-table th, .price-table td { display: block; width: 100%; }
  .price-table tr {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    margin-bottom: 10px;
    padding: 10px 14px;
    box-shadow: var(--shadow-soft);
  }
  .price-table tr:last-child { margin-bottom: 0; }
  .price-table tbody th {
    border-bottom: 1px solid var(--color-border);
    padding: 0 0 8px; margin-bottom: 8px;
    white-space: normal;
  }
  .price-table tbody td {
    display: flex; justify-content: space-between; align-items: baseline;
    padding: 4px 0; border: none; text-align: right; white-space: normal;
  }
  .price-table tbody td::before {
    content: attr(data-label);
    color: var(--color-text-muted);
    font-size: 0.82rem;
    text-align: left;
    margin-right: 10px;
    white-space: nowrap;
  }
}
