@charset "UTF-8";
/* =========================================================
   みなと歯科クリニック
   style.css — 1枚完結 / 外部読み込みなし / モバイルファースト
   BP: 768px（タブレット） / 1024px（PC）
   ========================================================= */

/* ---------------------------------------------------------
   1. トークン
   --------------------------------------------------------- */
:root {
  --blue: #2e86c1;          /* メイン（面・装飾） */
  --blue-deep: #1d6fa3;     /* 文字・ボタン用（白文字で 5.4:1） */
  --blue-dark: #14547c;
  --blue-tint: #e6f2f9;
  --blue-tint-2: #d3e8f4;
  --mint: #4fc3a1;          /* アクセント（面・装飾） */
  --mint-deep: #15795d;     /* 文字用（白背景で 5.3:1） */
  --mint-tint: #e4f6f0;
  --bg: #f7fbfd;
  --white: #ffffff;
  --ink: #1e2a33;
  --muted: #5a6b77;         /* 補助文字（白背景で 5.5:1） */
  --line: #dde8ee;
  --warn-bg: #fff6e5;
  --warn-line: #f0d9a8;
  --warn-ink: #7a5410;

  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 20px;
  --r-pill: 999px;

  --shadow-sm: 0 2px 8px rgba(30, 42, 51, .06);
  --shadow-md: 0 6px 20px rgba(30, 42, 51, .08);
  --shadow-lg: 0 16px 40px rgba(29, 111, 163, .14);

  --container: 1120px;
  --gutter: 20px;
  --header-h: 64px;

  --font: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", system-ui, sans-serif;
}

/* ---------------------------------------------------------
   2. ベース
   --------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.85;
  color: var(--ink);
  background: var(--bg);
  font-feature-settings: "palt" 1;
  /* スマホ固定CTAバーの高さ分 */
  padding-bottom: 68px;

  /* 日本語の改行ルール
     - anywhere は「CT」「ワイヤー」まで割ってしまうので使わない
     - strict … 行頭に「っ」「ャ」「ー」が来るのを防ぐ（禁則）
     - break-word … はみ出す長い語だけを最後の手段で折る */
  word-break: normal;
  line-break: strict;
  overflow-wrap: break-word;
  text-wrap: pretty;   /* 最終行が1文字だけ残る「孤立行」を減らす */
}

h1, h2, h3, h4 { line-height: 1.45; margin: 0; font-weight: 700; letter-spacing: .01em; text-wrap: balance; }
p { margin: 0; }

/* 途中で割ってはいけない塊（電話番号・時刻・単価・英字略語） */
.nw { white-space: nowrap; }
ul, ol { margin: 0; padding: 0; }
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-deep); }
a:hover { color: var(--blue-dark); }

:focus-visible {
  outline: 3px solid var(--blue-deep);
  outline-offset: 3px;
  border-radius: 6px;
}
/* マウス操作時に枠が出っぱなしにならないように */
:focus:not(:focus-visible) { outline: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 200;
  background: var(--blue-deep);
  color: #fff;
  padding: 10px 18px;
  border-radius: 0 0 var(--r-sm) var(--r-sm);
  text-decoration: none;
  font-weight: 700;
  transition: top .18s ease;
}
.skip-link:focus { top: 0; color: #fff; }

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

/* ---------------------------------------------------------
   3. ヘッダー / ナビ
   --------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s ease;
}
/* backdrop-filter をヘッダー自身に掛けると、ヘッダーが position:fixed の基準ブロックになり、
   中のメニューパネルが画面ではなくヘッダーの箱を基準に配置されてしまう。
   ぼかしは疑似要素へ逃がす。 */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  backdrop-filter: saturate(160%) blur(8px);
  -webkit-backdrop-filter: saturate(160%) blur(8px);
  pointer-events: none;
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); }

.header-inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  flex: none;                /* ナビに押しつぶされて改行しないように */
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  padding: 8px 0;
}
.brand-mark {
  flex: none;
  width: 38px; height: 38px;
  display: grid;
  place-items: center;
  background: linear-gradient(140deg, var(--blue) 0%, var(--mint) 130%);
  border-radius: 12px 12px 14px 14px / 12px 12px 18px 18px;
  color: #fff;
}
.brand-mark svg { width: 22px; height: 22px; }
.brand-text strong {
  display: block;
  font-size: 1.02rem;
  line-height: 1.3;
  letter-spacing: .02em;
  white-space: nowrap;
}
.brand-text small {
  display: none;
  font-size: .72rem;
  color: var(--muted);
  line-height: 1.4;
  white-space: nowrap;
}

/* ヘッダー右のCTA（PC）＋ハンバーガー */
.header-cta {
  display: flex;
  align-items: center;
  gap: 10px;
}
.header-cta .btn { min-height: 44px; padding: 8px 16px; font-size: .9rem; }
.header-cta .btn-tel { display: none; }   /* 1200px以上でだけ出す */
.header-cta .btn-book { display: none; }  /* 768px以上でだけ出す */
.header-cta .btn:hover { transform: none; }

.nav-toggle {
  flex: none;
  width: 46px; height: 46px;
  display: grid;
  place-items: center;
  background: var(--blue-tint);
  border: 0;
  border-radius: var(--r-sm);
  cursor: pointer;
  color: var(--blue-dark);
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  display: block;
  width: 20px; height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before { position: absolute; top: -6px; left: 0; }
.nav-toggle-bars::after { position: absolute; top: 6px; left: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

/* モバイル：開閉パネル */
.global-nav {
  position: fixed;
  inset: var(--header-h) 0 auto 0;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  padding: 12px var(--gutter) 24px;
  max-height: calc(100dvh - var(--header-h));
  overflow-y: auto;
  transform: translateY(-8px);
  opacity: 0;
  visibility: hidden;
  /* visibility をアニメーション対象にすると、開いた直後はまだ hidden のままで
     focus() が効かない。開くときは即座に visible、閉じるときだけ遅延させる。 */
  transition: opacity .22s ease, transform .22s ease, visibility 0s linear .22s;
}
.global-nav.is-open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  transition: opacity .22s ease, transform .22s ease, visibility 0s;
}
.nav-list { list-style: none; }
.nav-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 4px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
}
.nav-list a::after {
  content: "";
  width: 7px; height: 7px;
  border-right: 2px solid var(--blue);
  border-bottom: 2px solid var(--blue);
  transform: rotate(-45deg);
}
.nav-list a[aria-current="page"] { color: var(--blue-deep); }
/* 開閉パネルの中のCTA（1024px未満だけ表示） */
.nav-panel-cta {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

/* ---------------------------------------------------------
   4. ボタン
   --------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 12px 22px;
  border-radius: var(--r-pill);
  border: 2px solid transparent;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.4;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, color .18s ease;
  text-align: center;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--blue-deep);
  color: #fff;
  box-shadow: 0 6px 16px rgba(29, 111, 163, .28);
}
.btn-primary:hover { background: var(--blue-dark); color: #fff; }

.btn-accent {
  background: var(--mint-deep);
  color: #fff;
  box-shadow: 0 6px 16px rgba(21, 121, 93, .24);
}
.btn-accent:hover { background: #10634b; color: #fff; }

.btn-outline {
  background: var(--white);
  color: var(--blue-deep);
  border-color: var(--blue-tint-2);
}
.btn-outline:hover { background: var(--blue-tint); color: var(--blue-dark); }

.btn-lg { min-height: 58px; font-size: 1.06rem; padding: 14px 30px; }
.btn-block { width: 100%; }

/* ---------------------------------------------------------
   5. セクション共通
   --------------------------------------------------------- */
.section { padding: 40px 0; }        /* スマホ：56 → 40 */
.section-tight { padding: 28px 0; }  /* スマホ：40 → 28 */
.section-white { background: var(--white); }
.section-tint { background: linear-gradient(180deg, var(--blue-tint) 0%, var(--bg) 100%); }

.section-head {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 24px;   /* 32 → 24 */
}
.section-head.is-left { text-align: left; margin-inline: 0; }
.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  color: var(--mint-deep);
  background: var(--mint-tint);
  border-radius: var(--r-pill);
  padding: 5px 14px;
  margin-bottom: 12px;
}
.section-title {
  font-size: 1.55rem;
  letter-spacing: .02em;
}
.section-lead {
  margin-top: 12px;
  color: var(--muted);
  font-size: .96rem;
}

/* ---------------------------------------------------------
   6. ヒーロー（トップ）
   --------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 36px 0 48px;
  background:
    radial-gradient(1000px 520px at 88% -10%, var(--blue-tint) 0%, rgba(231, 243, 250, 0) 62%),
    var(--bg);
}
/* 装飾ブロブ */
.blob {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  filter: blur(2px);
  opacity: .55;
}
.blob-1 {
  width: 300px; height: 300px;
  top: -90px; right: -110px;
  background: var(--blue);
  opacity: .14;
  border-radius: 58% 42% 38% 62% / 46% 54% 46% 54%;
  animation: blobFloat 16s ease-in-out infinite;
}
.blob-2 {
  width: 230px; height: 230px;
  bottom: -80px; left: -90px;
  background: var(--mint);
  opacity: .18;
  border-radius: 42% 58% 62% 38% / 58% 38% 62% 42%;
  animation: blobFloat 20s ease-in-out infinite reverse;
}
@keyframes blobFloat {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); }
  50% { transform: translate3d(0, -18px, 0) rotate(12deg); }
}

.hero-inner { position: relative; z-index: 1; }
.hero-copy { margin-bottom: 28px; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--white);
  border: 1px solid var(--blue-tint-2);
  color: var(--blue-dark);
  border-radius: var(--r-pill);
  padding: 6px 14px;
  font-size: .8rem;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
  margin-bottom: 16px;
}
.hero-title {
  font-size: 1.95rem;
  line-height: 1.4;
  letter-spacing: .01em;
}
.hero-title .accent {
  background: linear-gradient(transparent 62%, rgba(79, 195, 161, .42) 62%);
  padding-inline: 2px;
}
.hero-text {
  margin-top: 16px;
  color: var(--muted);
  font-size: 1rem;
}
.hero-actions {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}
.hero-note {
  margin-top: 14px;
  font-size: .82rem;
  color: var(--muted);
}

.hero-media { position: relative; }
.hero-media img {
  width: 100%;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
}
.hero-chip {
  position: absolute;
  right: 12px;
  bottom: -14px;
  background: var(--white);
  border-radius: var(--r-md);
  padding: 10px 14px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 84%;
}
.hero-chip .chip-icon {
  width: 34px; height: 34px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--mint-tint);
  color: var(--mint-deep);
}
.hero-chip .chip-icon svg { width: 18px; height: 18px; }
.hero-chip strong { display: block; font-size: .88rem; line-height: 1.3; }
.hero-chip span { font-size: .74rem; color: var(--muted); line-height: 1.3; }

/* ヒーロー下の3つの実用情報 */
.hero-facts {
  margin-top: 34px;
  display: grid;
  gap: 10px;
  list-style: none;
}
/* flex にすると「平日」「9:30-13:00」「/」がそれぞれ別のフレックスアイテムになり、
   幅が足りない768pxで1文字ずつ改行されてしまう。
   アイコンを絶対配置にして、本文は普通のインライン流し込みにする。 */
.hero-facts li {
  position: relative;
  padding: 12px 14px 12px 42px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  font-size: .9rem;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}
.hero-facts svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px; height: 20px;
  color: var(--blue-deep);
}

/* ---------------------------------------------------------
   7. カード / グリッド
   --------------------------------------------------------- */
.grid { display: grid; gap: 18px; }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  display: flex;
  flex-direction: column;
}
.card-body { padding: 20px; flex: 1 1 auto; }
.card-title {
  font-size: 1.1rem;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.card-text { color: var(--muted); font-size: .92rem; }
.card img { width: 100%; }

/* リンクカード（診療科目） */
a.card { text-decoration: none; color: inherit; }
a.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--blue-tint-2);
  color: inherit;
}
.card-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  color: var(--blue-deep);
  font-weight: 700;
  font-size: .88rem;
}
.card-more::after {
  content: "";
  width: 6px; height: 6px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
  transition: transform .2s ease;
}
a.card:hover .card-more::after { transform: rotate(-45deg) translate(2px, 2px); }
.card-price {
  margin-top: 10px;
  font-size: .82rem;
  color: var(--ink);
  background: var(--blue-tint);
  border-radius: var(--r-sm);
  padding: 6px 10px;
  display: inline-block;
}

/* 選ばれる理由 */
.reason-card { position: relative; }
.reason-num {
  position: absolute;
  top: 12px; left: 12px;
  z-index: 1;
  width: 38px; height: 38px;
  display: grid;
  place-items: center;
  background: var(--white);
  color: var(--blue-deep);
  border-radius: 50%;
  font-weight: 700;
  font-size: .92rem;
  box-shadow: var(--shadow-sm);
}
.reason-card .card-title { color: var(--ink); }
.reason-list {
  list-style: none;
  margin-top: 12px;
  display: grid;
  gap: 6px;
  font-size: .86rem;
}
/* check-list / hero-facts と同じ理由で flex をやめ、アイコンは絶対配置にする */
.reason-list li {
  position: relative;
  padding-left: 24px;
  color: var(--ink);
}
.reason-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--mint-tint);
  box-shadow: inset 0 0 0 2px var(--mint);
}

/* ---------------------------------------------------------
   8. 院内の様子（ギャラリー）
   --------------------------------------------------------- */
.gallery { display: grid; gap: 14px; }
.gallery figure {
  margin: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.gallery img { width: 100%; }
.gallery figcaption {
  padding: 10px 14px;
  font-size: .84rem;
  color: var(--muted);
}

/* ---------------------------------------------------------
   9. お知らせ
   --------------------------------------------------------- */
.news-list { list-style: none; display: grid; gap: 4px; }
.news-item {
  display: grid;
  gap: 4px;
  padding: 16px 4px;
  border-bottom: 1px solid var(--line);
}
.news-meta { display: flex; align-items: center; gap: 10px; }
.news-date { font-size: .82rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.news-tag {
  font-size: .72rem;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: var(--r-pill);
  background: var(--blue-tint);
  color: var(--blue-dark);
}
.news-tag.is-mint { background: var(--mint-tint); color: var(--mint-deep); }
.news-title { font-size: .95rem; font-weight: 600; }

/* ---------------------------------------------------------
   10. 診療時間テーブル
   --------------------------------------------------------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.hours-table {
  width: 100%;
  min-width: 460px;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  font-size: .92rem;
}
.hours-table th,
.hours-table td {
  border: 1px solid var(--line);
  padding: 12px 8px;
  text-align: center;
}
.hours-table thead th {
  background: var(--blue-tint);
  color: var(--blue-dark);
  font-weight: 700;
}
.hours-table tbody th {
  background: var(--bg);
  text-align: left;
  white-space: nowrap;
  font-weight: 600;
}
.hours-table .mark { color: var(--blue-deep); font-weight: 700; }
.hours-table .none { color: var(--muted); }
.hours-note {
  margin-top: 12px;
  font-size: .86rem;
  color: var(--muted);
}

/* 情報リスト（住所・電話など） */
.info-list { list-style: none; display: grid; gap: 14px; }
.info-list > li {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 12px;
  align-items: start;
}
.info-list svg { width: 22px; height: 22px; color: var(--blue-deep); margin-top: 3px; }
.info-list dt, .info-label {
  font-size: .78rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: .04em;
}
.info-value { font-size: 1rem; font-weight: 600; }
.info-value a { text-decoration: none; }
.info-value a:hover { text-decoration: underline; }

/* ---------------------------------------------------------
   11. CTA 帯
   --------------------------------------------------------- */
.cta {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--blue-deep) 0%, var(--blue) 55%, #15795d 145%);
  color: #fff;
  border-radius: var(--r-lg);
  padding: 34px 22px;
  text-align: center;
}
.cta::before,
.cta::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
  pointer-events: none;
}
.cta::before { width: 220px; height: 220px; top: -90px; right: -60px; }
.cta::after { width: 160px; height: 160px; bottom: -80px; left: -40px; }
.cta > * { position: relative; z-index: 1; }
.cta h2 { font-size: 1.4rem; }
.cta p { margin-top: 12px; font-size: .94rem; color: rgba(255, 255, 255, .92); }
.cta-actions {
  display: grid;
  gap: 10px;
  margin-top: 22px;
  max-width: 380px;
  margin-inline: auto;
}
.cta .btn-outline { border-color: transparent; }
.cta-tel {
  margin-top: 16px;
  font-size: .86rem;
  color: rgba(255, 255, 255, .92);
}
.cta-tel strong { font-size: 1.2rem; letter-spacing: .04em; }

/* ---------------------------------------------------------
   12. 下層ページヘッダー
   --------------------------------------------------------- */
.page-head {
  position: relative;
  overflow: hidden;
  padding: 34px 0 30px;
  background:
    radial-gradient(700px 320px at 85% 0%, var(--blue-tint) 0%, rgba(231, 243, 250, 0) 70%),
    var(--white);
  border-bottom: 1px solid var(--line);
}
.page-head .blob-1 { width: 210px; height: 210px; top: -80px; right: -60px; opacity: .12; }
.page-head .blob-2 { width: 150px; height: 150px; bottom: -70px; left: -50px; opacity: .14; }
.page-head-inner { position: relative; z-index: 1; }
.page-title { font-size: 1.7rem; margin-top: 6px; }
.page-lead { margin-top: 12px; color: var(--muted); max-width: 640px; font-size: .96rem; }

.breadcrumb {
  font-size: .78rem;
  color: var(--muted);
  padding: 12px 0 0;
}
.breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.breadcrumb li::after { content: "›"; margin-left: 6px; color: var(--line); }
.breadcrumb li:last-child::after { content: none; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--blue-deep); text-decoration: underline; }

/* ---------------------------------------------------------
   13. 医院紹介
   --------------------------------------------------------- */
.director {
  display: grid;
  gap: 24px;
}
.director-photo img {
  width: 100%;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
}
.director-sign {
  margin-top: 20px;
  font-weight: 700;
  font-size: 1.05rem;
}
.director-sign small { display: block; font-size: .78rem; color: var(--muted); font-weight: 600; }
.prose > * + * { margin-top: 1.1em; }
.prose p { color: #34434e; }

.timeline { list-style: none; border-left: 2px solid var(--blue-tint-2); padding-left: 18px; }
.timeline li { position: relative; padding: 6px 0 6px 2px; }
.timeline li::before {
  content: "";
  position: absolute;
  left: -25px; top: 15px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: inset 0 0 0 3px var(--blue);
}
.timeline .t-year {
  font-size: .8rem;
  font-weight: 700;
  color: var(--blue-deep);
  font-variant-numeric: tabular-nums;
}
.timeline .t-body { font-size: .94rem; }

.staff-grid { display: grid; gap: 18px; }
.staff-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.staff-card img {
  width: 110px; height: 110px;
  border-radius: 50%;
  margin: 0 auto 14px;
  object-fit: cover;
  border: 4px solid var(--blue-tint);
}
.staff-role {
  font-size: .74rem;
  font-weight: 700;
  color: var(--mint-deep);
  background: var(--mint-tint);
  border-radius: var(--r-pill);
  padding: 3px 12px;
  display: inline-block;
  margin-bottom: 8px;
}
.staff-name { font-size: 1.05rem; }
.staff-text { font-size: .86rem; color: var(--muted); margin-top: 8px; text-align: left; }

/* ---------------------------------------------------------
   14. 診療案内
   --------------------------------------------------------- */
.tx-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin-bottom: 32px;
}
.tx-nav a {
  display: inline-block;
  padding: 8px 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  font-size: .86rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink);
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.tx-nav a:hover { background: var(--blue-tint); border-color: var(--blue-tint-2); color: var(--blue-dark); }

.tx-block {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-bottom: 28px;
  scroll-margin-top: calc(var(--header-h) + 20px);
}
.tx-block > img { width: 100%; }
.tx-body { padding: 22px 20px 24px; }
.tx-title {
  font-size: 1.28rem;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}
.tx-icon {
  width: 36px; height: 36px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--blue-tint);
  color: var(--blue-dark);
}
.tx-icon svg { width: 20px; height: 20px; }
.tx-sub { font-size: .82rem; color: var(--muted); letter-spacing: .06em; }
.tx-lead { margin-top: 14px; color: #34434e; font-size: .95rem; }

.tx-h { font-size: .96rem; margin: 22px 0 10px; display: flex; align-items: center; gap: 8px; }
.tx-h::before {
  content: "";
  width: 4px; height: 16px;
  border-radius: 2px;
  background: var(--mint);
}
.check-list { list-style: none; display: grid; gap: 8px; font-size: .92rem; }
/* li を flex にすると <strong> が独立したフレックスアイテムになり、
   「ワイヤー」が2文字幅に潰れて改行されてしまう。
   アイコンは絶対配置にして、本文は普通のインライン流し込みのままにする。 */
.check-list li { position: relative; padding-left: 28px; }
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--mint-tint);
  background-image: linear-gradient(var(--mint-deep), var(--mint-deep)), linear-gradient(var(--mint-deep), var(--mint-deep));
  background-repeat: no-repeat;
  background-size: 5px 2px, 8px 2px;
  background-position: 4px 9px, 7px 8px;
  box-shadow: inset 0 0 0 1px rgba(21, 121, 93, .25);
}

/* 費用テーブル */
.fee-table {
  width: 100%;
  min-width: 380px;
  border-collapse: collapse;
  font-size: .9rem;
  background: var(--white);
}
.fee-table th, .fee-table td {
  border-bottom: 1px solid var(--line);
  padding: 12px 10px;
  text-align: left;
  vertical-align: top;
}
.fee-table thead th {
  background: var(--bg);
  font-size: .8rem;
  color: var(--muted);
  letter-spacing: .04em;
  white-space: nowrap;
}
.fee-table td:last-child { white-space: nowrap; font-weight: 700; text-align: right; }
.fee-note {
  margin-top: 10px;
  font-size: .8rem;
  color: var(--muted);
}

/* 治療の流れ */
.flow { list-style: none; counter-reset: flow; display: grid; gap: 0; }
.flow li {
  counter-increment: flow;
  position: relative;
  padding: 0 0 22px 44px;
  font-size: .92rem;
}
.flow li::before {
  content: counter(flow);
  position: absolute;
  left: 0; top: 2px;
  width: 28px; height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--blue-deep);
  color: #fff;
  font-size: .8rem;
  font-weight: 700;
}
.flow li::after {
  content: "";
  position: absolute;
  left: 13px; top: 34px; bottom: 6px;
  width: 2px;
  background: var(--blue-tint-2);
}
.flow li:last-child { padding-bottom: 0; }
.flow li:last-child::after { display: none; }
.flow strong { display: block; font-size: .95rem; margin-bottom: 2px; }
.flow span { color: var(--muted); font-size: .88rem; }

/* 注意書きボックス */
.notice {
  background: var(--warn-bg);
  border: 1px solid var(--warn-line);
  color: var(--warn-ink);
  border-radius: var(--r-md);
  padding: 14px 16px;
  font-size: .86rem;
  margin-top: 20px;
}
.notice strong { display: block; margin-bottom: 4px; }

/* ---------------------------------------------------------
   15. アクセス
   --------------------------------------------------------- */
.map-placeholder {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  background: var(--white);
}
.map-placeholder img { width: 100%; display: block; }
/* 略図を入れたので、注記は地図に重ねず下に置く */
.map-placeholder .map-note {
  border-top: 1px solid var(--line);
  padding: 12px 16px;
  font-size: .8rem;
  color: var(--muted);
  background: var(--white);
}
.route-step {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.route-step img { width: 100%; }
.route-step .card-body { padding: 20px; }
.route-list { list-style: none; counter-reset: r; display: grid; gap: 10px; margin-top: 12px; }
.route-list li {
  counter-increment: r;
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 10px;
  font-size: .9rem;
}
.route-list li::before {
  content: counter(r);
  width: 24px; height: 24px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--blue-tint);
  color: var(--blue-dark);
  font-size: .78rem;
  font-weight: 700;
  margin-top: 3px;
}

/* ---------------------------------------------------------
   16. FAQ（アコーディオン）
   --------------------------------------------------------- */
.faq-cat { margin-bottom: 36px; }
.faq-cat-title {
  font-size: 1.15rem;
  margin-bottom: 14px;
  padding-left: 12px;
  border-left: 5px solid var(--mint);
  scroll-margin-top: calc(var(--header-h) + 20px);
}
.faq-list { display: grid; gap: 12px; }
.faq-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.faq-item.is-open { border-color: var(--blue-tint-2); }
.faq-q {
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 18px;
  background: none;
  border: 0;
  font: inherit;
  font-weight: 700;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  line-height: 1.6;
}
.faq-q:hover { background: var(--blue-tint); }
.faq-q .q-mark {
  flex: none;
  width: 26px; height: 26px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--blue-tint);
  color: var(--blue-dark);
  font-size: .82rem;
  font-weight: 700;
}
.faq-q:hover .q-mark { background: var(--white); }
.faq-q .q-text { flex: 1 1 auto; font-size: .96rem; }
.faq-q .q-icon {
  flex: none;
  width: 20px; height: 20px;
  position: relative;
  margin-top: 3px;
}
.faq-q .q-icon::before,
.faq-q .q-icon::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  background: var(--blue-deep);
  border-radius: 2px;
  transform: translate(-50%, -50%);
  transition: transform .25s ease, opacity .25s ease;
}
.faq-q .q-icon::before { width: 14px; height: 2px; }
.faq-q .q-icon::after { width: 2px; height: 14px; }
.faq-q[aria-expanded="true"] .q-icon::after { transform: translate(-50%, -50%) rotate(90deg); opacity: 0; }

.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  visibility: hidden;              /* 閉じている間は読み上げ・タブ移動から外す */
  transition: grid-template-rows .28s ease, visibility .28s;
}
.faq-item.is-open .faq-a { grid-template-rows: 1fr; visibility: visible; }
.faq-a > div { overflow: hidden; }
.faq-a-inner {
  display: flex;
  gap: 12px;
  padding: 0 18px 18px;
  font-size: .93rem;
  color: #34434e;
}
.faq-a-inner .a-mark {
  flex: none;
  width: 26px; height: 26px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--mint-tint);
  color: var(--mint-deep);
  font-size: .82rem;
  font-weight: 700;
}
.faq-a-inner p + p { margin-top: .8em; }

/* ---------------------------------------------------------
   17. フォーム
   --------------------------------------------------------- */
.form-layout { display: grid; gap: 28px; }
.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 22px 20px 26px;
  box-shadow: var(--shadow-sm);
}
.form-row { margin-bottom: 20px; }
.form-row > label,
.form-legend {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: .92rem;
  margin-bottom: 8px;
}
fieldset { border: 0; margin: 0 0 20px; padding: 0; }
.form-legend { padding: 0; }
.req, .opt {
  font-size: .68rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--r-pill);
  letter-spacing: .04em;
}
.req { background: #fdeaea; color: #b3261e; }
.opt { background: var(--bg); color: var(--muted); border: 1px solid var(--line); }

.input,
.textarea,
.select {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--bg);
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease;
}
.textarea { min-height: 130px; resize: vertical; line-height: 1.8; }
.select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--blue-deep) 50%), linear-gradient(135deg, var(--blue-deep) 50%, transparent 50%);
  background-position: calc(100% - 20px) 22px, calc(100% - 14px) 22px;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 40px;
}
.input:hover, .textarea:hover, .select:hover { border-color: var(--blue-tint-2); }
.input:focus, .textarea:focus, .select:focus {
  outline: none;
  background: var(--white);
  border-color: var(--blue-deep);
  box-shadow: 0 0 0 3px rgba(46, 134, 193, .16);
}
.input:focus-visible, .textarea:focus-visible, .select:focus-visible { outline: 2px solid var(--blue-deep); outline-offset: 1px; }
.field-help { margin-top: 6px; font-size: .8rem; color: var(--muted); }

.choice-grid { display: grid; gap: 10px; }
.choice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 13px 14px;
  background: var(--bg);
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  cursor: pointer;
  font-size: .93rem;
  transition: border-color .18s ease, background-color .18s ease;
}
.choice:hover { border-color: var(--blue-tint-2); background: var(--blue-tint); }
.choice input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--blue-deep); flex: none; }
.choice:has(input:checked) { border-color: var(--blue-deep); background: var(--blue-tint); }
.choice:has(input:focus-visible) { outline: 3px solid var(--blue-deep); outline-offset: 2px; }

.form-submit { margin-top: 26px; }
.demo-alert {
  display: none;
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: var(--r-md);
  background: var(--warn-bg);
  border: 1px solid var(--warn-line);
  color: var(--warn-ink);
  font-size: .9rem;
  font-weight: 600;
}
.demo-alert.is-shown { display: block; }
.form-demo-note {
  background: var(--blue-tint);
  border: 1px dashed var(--blue);
  color: var(--blue-dark);
  border-radius: var(--r-md);
  padding: 14px 16px;
  font-size: .86rem;
  margin-bottom: 24px;
}

.aside-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}
.aside-card + .aside-card { margin-top: 18px; }
.aside-title {
  font-size: 1.02rem;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.tel-big {
  display: block;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--blue-deep);
  text-decoration: none;
  font-variant-numeric: tabular-nums;
}
.tel-big:hover { color: var(--blue-dark); }

/* ---------------------------------------------------------
   18. フッター
   --------------------------------------------------------- */
.site-footer {
  margin-top: 56px;
  background: var(--ink);
  color: #cdd7de;
  padding: 40px 0 22px;
  font-size: .9rem;
}
.footer-grid { display: grid; gap: 30px; }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; color: #fff; }
.footer-brand .brand-mark { border-radius: 12px; }
.footer-brand strong { font-size: 1.05rem; }
.footer-address { font-style: normal; line-height: 1.9; }
.footer-address a { color: #9fd0ea; text-decoration: none; }
.footer-address a:hover { color: #c7e6f7; text-decoration: underline; }
.footer-nav-title {
  font-size: .82rem;
  letter-spacing: .1em;
  color: #8ea3b1;
  margin-bottom: 12px;
}
.footer-nav ul { list-style: none; display: grid; gap: 10px; }
.footer-nav a { color: #cdd7de; text-decoration: none; }
.footer-nav a:hover { color: #fff; text-decoration: underline; }
.footer-hours {
  background: rgba(255, 255, 255, .06);
  border-radius: var(--r-md);
  padding: 14px 16px;
  line-height: 1.9;
}
.footer-hours dt { font-size: .78rem; color: #8ea3b1; }
.footer-hours dd { margin: 0 0 8px; font-weight: 600; color: #fff; }
.footer-hours dd:last-child { margin-bottom: 0; }
.footer-bottom {
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  display: grid;
  gap: 8px;
}
.copyright { font-size: .8rem; color: #8ea3b1; }
.demo-disclaimer {
  font-size: .68rem;
  color: #6e8492;
  line-height: 1.6;
}

/* ---------------------------------------------------------
   19. スマホ固定CTAバー（メインビジュアルを抜けてから出す）
   --------------------------------------------------------- */
.mobile-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 90;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -4px 18px rgba(30, 42, 51, .08);

  /* 初期状態は隠す。ヒーローを通り過ぎたらJSが .is-visible を付ける */
  visibility: hidden;
  opacity: 0;
  transform: translateY(100%);
  transition: transform .32s cubic-bezier(.22, .61, .36, 1), opacity .32s ease, visibility 0s linear .32s;
}
.mobile-cta.is-visible {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
  transition: transform .32s cubic-bezier(.22, .61, .36, 1), opacity .32s ease, visibility 0s;
}
.mobile-cta .btn { min-height: 52px; font-size: .95rem; padding: 10px 12px; }
.mobile-cta .btn:hover { transform: none; }

@media (prefers-reduced-motion: reduce) {
  .mobile-cta { transition: opacity .01s, visibility 0s linear .01s; transform: none; }
  .mobile-cta.is-visible { transition: opacity .01s, visibility 0s; }
}

/* ---------------------------------------------------------
   20. スクロール演出
   --------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .7s cubic-bezier(.22, .61, .36, 1), transform .7s cubic-bezier(.22, .61, .36, 1);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .08s; }
.reveal-d2 { transition-delay: .16s; }
.reveal-d3 { transition-delay: .24s; }

/* JSが無効でも中身が見えるように */
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
  .btn:hover, a.card:hover { transform: none; }
}

/* ---------------------------------------------------------
   21. タブレット（768px〜）
   --------------------------------------------------------- */
@media (min-width: 768px) {
  :root { --gutter: 32px; --header-h: 76px; }

  body { padding-bottom: 0; }
  .mobile-cta { display: none; }

  .brand-mark { width: 44px; height: 44px; }
  .brand-mark svg { width: 25px; height: 25px; }
  .brand-text strong { font-size: 1.16rem; }

  /* タブレットはハンバーガーのまま。ヘッダー右に予約ボタンだけ出す */
  .header-cta .btn-book { display: inline-flex; }

  .section { padding: 54px 0; }        /* PC：76 → 54 */
  .section-tight { padding: 36px 0; }  /* PC：52 → 36 */
  .section-title { font-size: 2rem; }
  .section-lead { font-size: 1rem; }

  .hero { padding: 44px 0 52px; }   /* 56/70 → 44/52 */
  .hero-title { font-size: 2.5rem; }
  .hero-text { font-size: 1.05rem; }
  .hero-actions { grid-template-columns: repeat(2, auto); justify-content: start; }
  .hero-facts { grid-template-columns: repeat(3, 1fr); margin-top: 44px; }
  .blob-1 { width: 420px; height: 420px; }
  .blob-2 { width: 320px; height: 320px; }

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

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

  .news-item {
    grid-template-columns: 190px 1fr;
    align-items: center;
    gap: 16px;
    padding: 18px 6px;
  }

  .cta { padding: 52px 40px; }
  .cta h2 { font-size: 1.8rem; }
  .cta-actions { grid-template-columns: repeat(2, 1fr); max-width: 560px; }

  .page-head { padding: 44px 0 40px; }
  .page-title { font-size: 2.2rem; }

  .director { grid-template-columns: 320px 1fr; gap: 40px; align-items: start; }
  .staff-grid { grid-template-columns: repeat(3, 1fr); }

  /* 画像列を固定340pxにすると、768pxでは本文に364pxしか残らず、
     中の2カラム（tx-cols）が潰れて「冷た／いも／のが」と2文字ずつ改行されていた。
     画像列は可変にし、本文側には min-width:0 を入れて潰れを止める。
     tx-cols の2カラム化は、幅に余裕のある1024px以上だけにする。 */
  .tx-block { display: grid; grid-template-columns: minmax(220px, 300px) minmax(0, 1fr); }
  .tx-block > img { height: 100%; object-fit: cover; }
  .tx-body { padding: 30px 32px 32px; min-width: 0; }
  .tx-title { font-size: 1.45rem; }
  .tx-cols { display: grid; grid-template-columns: 1fr; gap: 24px 32px; }

  .form-layout { grid-template-columns: 1fr 320px; align-items: start; }
  .form-card { padding: 32px 30px 36px; }
  .form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
  .choice-grid-2 { grid-template-columns: 1fr 1fr; }

  .split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
  .split-media img { border-radius: var(--r-lg); box-shadow: var(--shadow-md); width: 100%; }

  .footer-grid { grid-template-columns: 1.5fr 1fr 1.2fr; gap: 40px; }
  .footer-bottom {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
  .demo-disclaimer { text-align: right; }

  .route-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
}

/* ---------------------------------------------------------
   22. PC（1024px〜）
   --------------------------------------------------------- */
@media (min-width: 1024px) {
  :root { --gutter: 40px; }

  /* ここからが本来のPCナビ（横並び） */
  .brand-text small { display: block; }
  .nav-toggle { display: none; }
  .global-nav {
    position: static;
    display: block;
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
    max-height: none;
    overflow: visible;
    transform: none;
    opacity: 1;
    visibility: visible;
  }
  .nav-panel-cta { display: none; }
  .nav-list { display: flex; gap: 2px; }
  .nav-list a {
    border: 0;
    padding: 10px 12px;
    font-size: .92rem;
    border-radius: var(--r-sm);
    white-space: nowrap;
  }
  .nav-list a::after { display: none; }
  .nav-list a:hover { background: var(--blue-tint); color: var(--blue-dark); }
  .nav-list a[aria-current="page"] { background: var(--blue-tint); color: var(--blue-dark); }

  .hero {
    padding: 70px 0 84px;
  }
  .hero-inner {
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    gap: 56px;
    align-items: center;
  }
  .hero-copy { margin-bottom: 0; }
  .hero-title { font-size: 3rem; }
  /* 2カラムのヒーロー内で、実用情報の帯は横いっぱいに */
  .hero-facts { grid-column: 1 / -1; margin-top: 52px; }

  .section-title { font-size: 2.15rem; }
  .tx-block { grid-template-columns: 400px minmax(0, 1fr); }
  .tx-cols { grid-template-columns: 1fr 1fr; }   /* 幅に余裕が出てから2カラムにする */
  .cta { padding: 64px 56px; }
  .cta h2 { font-size: 2rem; }
}

/* ---------------------------------------------------------
   23. ワイドPC（1200px〜）: 電話番号ボタンも並べる余裕がある
   --------------------------------------------------------- */
@media (min-width: 1200px) {
  .header-cta .btn-tel { display: inline-flex; }
  .nav-list a { padding: 10px 14px; font-size: .95rem; }
}

/* ---------------------------------------------------------
   24. 印刷
   --------------------------------------------------------- */
@media print {
  .site-header, .mobile-cta, .cta, .nav-toggle { display: none !important; }
  body { padding-bottom: 0; background: #fff; }
  .reveal { opacity: 1 !important; transform: none !important; }
}


/* ---------------------------------------------------------
   日本語の改行：見出し・リード文は「文節」で折る
   auto-phrase … 「内訳を出す会／社」のような語中改行を防ぎ、意味の切れ目で改行する
   （未対応ブラウザは normal のまま。@supports で安全に足す）
   --------------------------------------------------------- */
@supports (word-break: auto-phrase) {
  /* 見出しだけでなく本文・リスト・キャプションまで文節改行にする
     （ヒーロー文で「京／都」と割れるなど、pタグ側でも語中改行が起きるため） */
  h1, h2, h3, h4, p, li, dd, dt, figcaption, blockquote, th, td, summary {
    word-break: auto-phrase;
  }
}


/* ---------------------------------------------------------
   Googleマップの埋め込み枠
   iframe は縦横比を指定しないと高さ0になるので aspect-ratio で確保する
   --------------------------------------------------------- */
.map-embed {
  position: relative;
  aspect-ratio: 3 / 2;
  background: var(--blue-tint);
}
.map-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* メニュー展開中は背面をスクロールさせない */
body.nav-open { overflow: hidden; }
@media (min-width: 1024px) { body.nav-open { overflow: auto; } }

.footer-privacy { margin-bottom: 6px; font-size: .82rem; }
.footer-privacy a { color: #cdd7de; }   /* 暗色フッター上で 9.5:1 */

/* ロゴマーク（SVG画像に差し替え。旧インラインSVGのグラデ背景は不要になった） */
.brand-mark { background: none !important; border-radius: 0; width: 40px; height: 40px; }
.brand-mark .logo-img { width: 40px; height: 40px; display: block; }
.footer .brand-mark, .footer .brand-mark .logo-img { width: 36px; height: 36px; }

/* ---------------------------------------------------------
   ホームへ戻るときのロード画面
   ロゴ（サイト名）を押したときだけ出す。0.6秒見せてから遷移する。
   --------------------------------------------------------- */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  background: #f7fbfd;
  opacity: 0;
  transition: opacity .28s ease;
}
.page-loader[hidden] { display: none; }
.page-loader.is-shown { opacity: 1; }
.page-loader__inner { display: grid; justify-items: center; gap: 16px; }
.page-loader__logo { width: 72px; height: 72px; display: block; animation: loaderPulse 1.4s ease-in-out infinite; }
.page-loader__name {
  color: #1e2a33;
  font-family: "Hiragino Sans","Noto Sans JP",system-ui,sans-serif;
  font-size: 1.05rem;
  letter-spacing: .16em;
}
.page-loader__bar {
  width: 160px; height: 2px;
  background: rgba(128,128,128,.25);
  overflow: hidden;
}
.page-loader__bar span {
  display: block;
  width: 40%; height: 100%;
  background: #2e86c1;
  animation: loaderSlide 1.1s ease-in-out infinite;
}
@keyframes loaderPulse { 0%,100% { opacity: 1; } 50% { opacity: .55; } }
@keyframes loaderSlide { 0% { transform: translateX(-100%); } 100% { transform: translateX(350%); } }

@media (prefers-reduced-motion: reduce) {
  .page-loader__logo, .page-loader__bar span { animation: none; }
  .page-loader { transition: none; }
}

.page-loader__text { font-size: .8rem; letter-spacing: .1em; color: var(--muted); }

/* ---------------------------------------------------------
   文末の改行（<br class="sb">）
   「。」ごとに改行して読みやすくする指定。
   ただし極端に狭い画面では、1文が数行に折り返したうえで
   さらに改行が入り、行が飛び飛びに見えるため無効にする。
   --------------------------------------------------------- */
br.sb { display: inline; }
@media (max-width: 359px) {
  br.sb { display: none; }
}

/* ---------------------------------------------------------
   法務ページ（個人情報の取り扱い）
   リセットで h2/p の margin を 0 にしているため、
   このページ専用に行間・段落間を戻す
   --------------------------------------------------------- */
.legal h2 { margin: 34px 0 10px; font-size: 1.12rem; line-height: 1.6; }
.legal h2:first-of-type { margin-top: 0; }
.legal p { margin-bottom: 16px; line-height: 1.95; }
.legal .note { margin-top: 30px; font-size: .85rem; opacity: .8; }
