@charset "UTF-8";
/* ============================================================================
   みなも治療院  共通スタイルシート
   ----------------------------------------------------------------------------
   構成
     01. カラー・フォントの設定（変数）  ← 色を変えたいときはここだけ
     02. リセット・基本設定
     03. 共通パーツ（見出し／ボタン／セクション）
     04. ヘッダー・ナビゲーション
     05. 追従電話ボタン
     06. フッター
     07. TOPページ
     08. 顎関節症ページ
     09. よくあるご質問ページ
     10. 院長紹介ページ
     11. アニメーション
     12. PC表示（768px以上）
     13. ファーストビューを左右2段組に（1024px以上）
   ========================================================================== */


/* ============================================================================
   01. カラー・フォントの設定
   ▼ここを編集：サイト全体の色・フォントはこの部分で管理しています
   ========================================================================== */
:root {
  /* --- 色 ---
     鮮やかなブルーと白の2色構成。地の白を大きく残し、青は要所にはっきり効かせます。
     配色の目安：白 78% ／ ブルー 18% ／ ディープシアン 4% */
  --color-primary:    #0F6FD1;  /* 鮮やかなブルー。ロゴ・見出し・ボタンなど主役 */
  --color-primary-dk: #0A54A3;  /* ブルーの濃色。ボタンにマウスを乗せたときなど */
  --color-primary-lt: #F2F7FE;  /* ほぼ白に近い水色。セクション背景 */
  --color-accent:     #0E7C9B;  /* ディープシアン。罫線・小見出し・小さな印に少しだけ */
  --color-accent-lt:  #EAF6FA;  /* シアン極薄。セクション背景（控えめに） */
  --color-text:       #333333;
  --color-text-sub:   #666666;
  --color-bg:         #FFFFFF;
  --color-border:     #D5E3F2;  /* 罫線（青みのグレー） */

  /* --- フォント --- */
  --font-serif: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --font-sans:  "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;

  /* --- レイアウト --- */
  --width-content: 1080px;   /* 中身の最大幅 */
  --width-narrow:  760px;    /* 文章主体のページの最大幅 */
  --space-section: 56px;     /* セクションの上下余白（スマホ） */
  --header-height: 60px;
}


/* ============================================================================
   02. リセット・基本設定
   ========================================================================== */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  /* ページ内リンクで飛んだときヘッダーに隠れないように */
  scroll-padding-top: calc(var(--header-height) + 16px);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;          /* 40〜60代の方が読みやすい大きさ */
  line-height: 1.9;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-text-size-adjust: 100%;
  /* スマホ下部の追従電話ボタンに文章が隠れないための余白 */
  padding-bottom: 76px;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: bottom;
}

a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
a:hover { color: var(--color-primary-dk); }

p  { margin: 0 0 1.4em; }
p:last-child { margin-bottom: 0; }

ul, ol { margin: 0 0 1.4em; padding-left: 1.4em; }

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.6;
  margin: 0 0 0.8em;
  color: var(--color-text);
}

table { border-collapse: collapse; }


/* ============================================================================
   03. 共通パーツ
   ========================================================================== */

/* --- セクションの外枠 --- */
.section {
  padding: var(--space-section) 0;
}
.section--pale { background: var(--color-primary-lt); }
.section--aqua  { background: var(--color-accent-lt); }

.container {
  width: 100%;
  max-width: var(--width-content);
  margin: 0 auto;
  padding: 0 20px;
}
.container--narrow { max-width: var(--width-narrow); }

/* --- 見出し --- */
.section-title {
  font-size: 22px;
  text-align: center;
  margin-bottom: 0.6em;
}
.section-title::after {
  content: "";
  display: block;
  width: 40px;
  height: 1px;
  margin: 18px auto 0;
  background: var(--color-accent);
}
/* 同じページ内で2つ目以降に置く見出し（上に余白を足す） */
.section-title--spaced { margin-top: 2.4em; }

.section-lead {
  text-align: center;
  color: var(--color-text-sub);
  margin-bottom: 2em;
}

.heading-sub {
  font-size: 19px;
  color: var(--color-primary);
  padding-left: 12px;
  border-left: 3px solid var(--color-accent);
  line-height: 1.5;
}

/* --- ページ見出し（下層ページ共通） --- */
.page-head {
  background: var(--color-primary-lt);
  padding: 36px 0;
  text-align: center;
}
.page-head h1 {
  font-size: 24px;
  margin-bottom: 0.4em;
}
.page-head p {
  font-size: 15px;
  color: var(--color-text-sub);
  margin: 0;
}

/* --- パンくず --- */
.breadcrumb {
  font-size: 13px;
  color: var(--color-text-sub);
  padding: 12px 0;
}
.breadcrumb ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.breadcrumb li + li::before {
  content: "›";
  margin-right: 6px;
  color: var(--color-border);
}

/* --- ボタン --- */
.btn-tel {
  display: block;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  padding: 16px 20px;
  background: var(--color-primary);
  color: #fff;
  text-align: center;
  text-decoration: none;
  border-radius: 6px;
  line-height: 1.5;
  transition: background-color 0.2s;
}
.btn-tel:hover {
  background: var(--color-primary-dk);
  color: #fff;
}
.btn-tel .btn-tel__label {
  display: block;
  font-size: 14px;
  letter-spacing: 0.05em;
}
.btn-tel .btn-tel__number {
  display: block;
  font-family: var(--font-serif);
  font-size: 26px;
  letter-spacing: 0.03em;
}
.btn-tel .btn-tel__note {
  display: block;
  font-size: 13px;
  opacity: 0.9;
}

.btn-line {
  display: inline-block;
  padding: 12px 28px;
  border: 1px solid var(--color-primary);
  border-radius: 4px;
  color: var(--color-primary);
  background: #fff;
  text-decoration: none;
  font-size: 15px;
  transition: background-color 0.2s, color 0.2s;
}
.btn-line:hover {
  background: var(--color-primary);
  color: #fff;
}

.btn-center { text-align: center; margin-top: 28px; }

/* --- チェックリスト --- */
.checklist {
  list-style: none;
  margin: 0;
  padding: 0;
}
.checklist li {
  position: relative;
  padding: 14px 0 14px 34px;
  border-bottom: 1px dotted var(--color-border);
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 22px;
  width: 14px;
  height: 8px;
  border-left: 2px solid var(--color-primary);
  border-bottom: 2px solid var(--color-primary);
  transform: rotate(-45deg);
}

.note {
  font-size: 15px;
  color: var(--color-text-sub);
  margin-top: 1.4em;
}

/* 画面には出さず、読み上げソフトにだけ伝えたい文字 */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* 表の下に添える注釈 */
.table-caption {
  caption-side: bottom;
  text-align: left;
  font-size: 14px;
  color: var(--color-text-sub);
  padding-top: 10px;
}

/* --- 画像プレースホルダー枠 --- */
.figure {
  margin: 0;
  background: var(--color-primary-lt);
}
.figure img { width: 100%; display: block; }


/* ============================================================================
   04. ヘッダー・ナビゲーション
   ========================================================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--color-border);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-height);
  padding: 0 16px;
  max-width: var(--width-content);
  margin: 0 auto;
}
.header__logo {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
}
.header__logo img {
  height: 36px;
  width: auto;
}
/* ロゴマーク（水面の波紋）。色は --color-primary をそのまま使います。
   ▼ここを編集：大きさを変えたいときは下の height の数字だけ変えてください */
.header__logo-mark {
  height: clamp(30px, 8.4vw, 36px);
  width: auto;
  flex-shrink: 0;
  color: var(--color-primary);
}
/* ロゴの文字部分。狭い画面では自動的に小さくなります */
.header__logo-text {
  font-family: var(--font-serif);
  font-size: clamp(15px, 4.6vw, 20px);
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--color-primary);
  white-space: nowrap;
}
/* 電話番号・受付時間・住所のまとまり */
.header__contact {
  margin-left: auto;
  margin-right: 12px;
  order: 3;
  text-align: right;
  line-height: 1.3;
}
.header__tel {
  display: block;
  text-decoration: none;
  color: var(--color-primary);
  line-height: 1.3;
}
/* 住所はスマホでは場所が足りないため出しません（フッターに掲載） */
.header__addr { display: none; }
.header__tel .num {
  display: block;
  font-family: var(--font-serif);
  font-size: 17px;
}
.header__tel .time {
  display: block;
  font-size: 11px;
  color: var(--color-text-sub);
}
/* 特に狭い画面では、ヘッダーの受付時間は省略します
   （画面下部の追従ボタンに受付時間を出しているため） */
@media (max-width: 400px) {
  .header__inner { padding: 0 12px; }
  .header__logo { margin-right: 8px; }
  .header__contact { margin-right: 8px; }
  .header__tel .num { font-size: 15px; }
  .header__tel .time { display: none; }
}

/* ハンバーガーボタン */
.nav-toggle {
  order: 4;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  position: relative;
}
.nav-toggle span {
  display: block;
  position: absolute;
  left: 11px;
  width: 22px;
  height: 1.5px;
  background: var(--color-primary);
  transition: transform 0.3s, opacity 0.3s;
}
.nav-toggle span:nth-child(1) { top: 15px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 27px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* スマホのメニュー本体（ヘッダーの下に開きます） */
.nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  background: #fff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.06);
}
.nav.is-open { display: block; }
.nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav li { border-bottom: 1px solid var(--color-border); }
.nav a {
  display: block;
  padding: 16px 20px;
  text-decoration: none;
  color: var(--color-text);
}
.nav a:hover { background: var(--color-primary-lt); }


/* ============================================================================
   05. 追従電話ボタン（スマホ画面下部に固定）
   ========================================================================== */
.tel-fixed {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 12px;
  padding-bottom: calc(10px + env(safe-area-inset-bottom));
  background: var(--color-primary);
  color: #fff;
  text-decoration: none;
  text-align: center;
  line-height: 1.35;
  box-shadow: 0 -1px 6px rgba(0, 0, 0, 0.12);
}
.tel-fixed:hover { color: #fff; background: var(--color-primary-dk); }
.tel-fixed__icon {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  fill: #fff;
}
.tel-fixed__text { font-size: 12px; display: block; }
.tel-fixed__num {
  font-family: var(--font-serif);
  font-size: 19px;
  letter-spacing: 0.02em;
  display: block;
}


/* ============================================================================
   06. フッター
   ========================================================================== */
.footer {
  background: var(--color-primary-lt);
  padding: 40px 0 32px;
  font-size: 15px;
}
.footer__name {
  font-family: var(--font-serif);
  font-size: 19px;
  margin-bottom: 0.6em;
}
.footer__info {
  margin: 0 0 24px;
  color: var(--color-text);
}
.footer__info p { margin-bottom: 0.5em; }
.footer__nav ul {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  border-top: 1px solid var(--color-border);
}
.footer__nav li { border-bottom: 1px solid var(--color-border); }
.footer__nav a {
  display: block;
  padding: 12px 0;
  color: var(--color-text);
  text-decoration: none;
}
.footer__nav a:hover { color: var(--color-primary); }
.footer__copy {
  font-size: 12px;
  color: var(--color-text-sub);
  text-align: center;
  margin: 0;
}


/* ============================================================================
   07. TOPページ
   ========================================================================== */

/* --- ファーストビュー --- */
/* 写真を使わない状態。藍の極薄を地にしています */
.hero {
  position: relative;
  background-color: var(--color-primary-lt);
  border-bottom: 1px solid var(--color-border);
}
/* 院内写真を敷きたいときは、HTML側を
     <section class="hero hero--photo">
   に変え、images/main.jpg を置いてください。
   白の半透明レイヤーが重なり、文字の読みやすさを保ちます。 */
.hero--photo {
  background-image: url("../images/main.jpg");
  background-size: cover;
  background-position: center;
}
.hero--photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.82);
}
.hero__inner {
  position: relative;
  padding: 52px 20px 44px;
  max-width: var(--width-content);
  margin: 0 auto;
}
.hero__catch {
  font-family: var(--font-serif);
  /* 画面幅に応じて 19px〜22px の間で自動調整（狭い端末でも収まるように） */
  font-size: clamp(19px, 4.9vw, 22px);
  line-height: 2.1;
  margin: 0 0 28px;
  /* ▼ここを編集：キャッチコピーの色
     3行とも同じ色にしています。濃紺で、背景の淡い水色になじみます */
  color: #10375C;
}
.hero__catch .line { display: block; }
/* この単位の途中では改行しない */
.hero__catch .nw { display: inline-block; }
/* 3行目も同じ色（色を変えたい場合はここに color を指定します） */
.hero__catch .accent { color: inherit; }
/* --- ファーストビューの写真（スマホでは文字の下）
   16:9 のまま表示するので、顔が切り取られません --- */
.hero__figure {
  margin: 30px 0 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--color-primary-lt);
  border-radius: 2px;
}
/* 枠の比率を写真（16:9）に合わせているので、切り抜きは起きません。
   別の比率の写真に差し替えて上下が切れる場合は、下の 38% を
   上下させると切り抜き位置を調整できます（小さいほど上寄り）。 */
.hero__figure img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
}

/* --- 本文中に挿し込む写真（横長） --- */
.section-figure {
  margin: 0 0 32px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--color-primary-lt);
  border-radius: 2px;
}
.section-figure img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- 症状チェック --- */
/* 写真＋最初のチェックリスト（スマホは縦、PCは横並び） */
.symptom-lead__figure {
  margin-bottom: 24px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.symptom-lead__figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.symptom-group + .symptom-group,
.symptom-lead + .symptom-group { margin-top: 36px; }
.symptom-group__title {
  font-size: 17px;
  font-family: var(--font-sans);
  color: var(--color-accent);
  margin-bottom: 0.6em;
}

/* --- 当院について（3カラム） --- */
.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 20px;
}
.feature {
  background: #fff;
  border: 1px solid var(--color-border);
  border-top: 3px solid var(--color-primary);
  border-radius: 4px;
  padding: 26px 22px;
}
.feature__num {
  display: block;
  font-family: var(--font-serif);
  font-size: 13px;
  letter-spacing: 0.2em;
  color: var(--color-accent);
  margin-bottom: 8px;
}
.feature h3 {
  font-size: 18px;
  margin-bottom: 0.6em;
}
.feature p {
  font-size: 15px;
  color: var(--color-text-sub);
  margin: 0;
}

/* --- 院長紹介（TOPページ） --- */
.profile { display: grid; gap: 24px; }
.profile__figure {
  max-width: 260px;
  margin: 0 auto;
  border-radius: 4px;
  overflow: hidden;
}
.profile__name {
  font-family: var(--font-serif);
  font-size: 22px;
  margin: 0 0 0.3em;
}
.profile__role {
  font-size: 14px;
  color: var(--color-text-sub);
  margin: 0 0 1.2em;
}
.profile__list {
  list-style: none;
  margin: 0 0 1.2em;
  padding: 0;
  font-size: 15px;
}
.profile__list li {
  padding: 10px 0;
  border-bottom: 1px dotted var(--color-border);
}
.profile__list li:first-child { border-top: 1px dotted var(--color-border); }
.profile__more { font-size: 15px; margin: 0; }

/* --- 院長メッセージ --- */
.message__figure {
  margin: 0 0 24px;
  max-width: 280px;
}
.message__figure img { border-radius: 4px; }
.message__name {
  text-align: right;
  font-family: var(--font-serif);
  font-size: 16px;
  margin-top: 1.4em;
}
.message__name .small {
  display: block;
  font-size: 13px;
  color: var(--color-text-sub);
  font-family: var(--font-sans);
}

/* --- 料金・受付時間 --- */
.info-table {
  width: 100%;
  font-size: 16px;
  margin-bottom: 24px;
}
.info-table th,
.info-table td {
  border: 1px solid var(--color-border);
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
}
.info-table th {
  background: var(--color-primary-lt);
  font-weight: 500;
  white-space: nowrap;
  width: 34%;
}

/* 受付時間の○×表：スマホでも横スクロールなしで収まる幅設計 */
.hours-table {
  width: 100%;
  table-layout: fixed;
  text-align: center;
  background: #fff;
}
.hours-table th,
.hours-table td {
  border: 1px solid var(--color-border);
  padding: 10px 2px;
  font-size: 15px;
}
.hours-table thead th {
  background: var(--color-primary-lt);
  font-weight: 500;
}
.hours-table tbody th {
  background: var(--color-accent-lt);
  font-weight: 500;
  font-size: 13px;
}
.hours-table .mark-open  { color: var(--color-primary); font-size: 17px; }
.hours-table .mark-close { color: var(--color-text-sub); font-size: 17px; }

/* --- アクセス --- */
.map {
  position: relative;
  width: 100%;
  padding-top: 66%;
  margin-top: 24px;
  background: var(--color-primary-lt);
}
.map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* --- 予約案内 --- */
.cta {
  background: var(--color-primary-lt);
  text-align: center;
}
.cta .section-title::after { background: var(--color-primary); }
.cta__note {
  font-size: 15px;
  color: var(--color-text-sub);
  margin-top: 16px;
}


/* ============================================================================
   08. 顎関節症ページ
   ========================================================================== */
/* --- 顎関節症と全身の関係：3つのつながりを示した図 --- */
.relation-chart {
  display: block;
  width: 100%;
  max-width: 640px;
  height: auto;
  margin: 0 auto 36px;
}
.relation-chart .node {
  fill: var(--color-primary-lt);
  stroke: var(--color-primary);
  stroke-width: 1.5;
}
.relation-chart .label {
  fill: var(--color-primary-dk);
  font-family: var(--font-serif);
  font-size: 30px;
  text-anchor: middle;
}
.relation-chart .link {
  stroke: var(--color-accent);
  stroke-width: 2.5;
}
.relation-chart .head { fill: var(--color-accent); }

.relation-list {
  display: grid;
  gap: 24px;
}
.relation {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  padding: 24px 20px;
}
.relation h3 {
  font-size: 18px;
  color: var(--color-primary);
  padding-bottom: 12px;
  margin-bottom: 0.8em;
  border-bottom: 1px solid var(--color-border);
}
.relation p {
  font-size: 16px;
  margin: 0;
}

/* --- 施術の流れ --- */
.flow {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: flow;
}
.flow > li {
  position: relative;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  padding: 24px 20px;
  margin-bottom: 40px;
}
/* ステップ間の矢印 */
.flow > li:not(:last-child)::after {
  content: "";
  position: absolute;
  bottom: -28px;
  left: 50%;
  width: 12px;
  height: 12px;
  border-right: 2px solid var(--color-accent);
  border-bottom: 2px solid var(--color-accent);
  transform: translateX(-50%) rotate(45deg);
}
.flow__step {
  display: inline-block;
  font-family: var(--font-serif);
  font-size: 13px;
  letter-spacing: 0.15em;
  color: #fff;
  background: var(--color-primary);
  padding: 3px 14px;
  border-radius: 20px;
  margin-bottom: 14px;
}
.flow h3 {
  font-size: 19px;
  margin-bottom: 0.7em;
}
.flow .figure { margin-bottom: 18px; }
.flow p { font-size: 16px; }


/* ============================================================================
   09. よくあるご質問ページ
   ========================================================================== */
.faq-list { margin: 0; }
.faq-item {
  border: 1px solid var(--color-border);
  border-radius: 4px;
  background: #fff;
  margin-bottom: 14px;
}
.faq-item > summary {
  position: relative;
  display: block;           /* デフォルトの三角マークを消す */
  padding: 18px 52px 18px 48px;
  cursor: pointer;
  font-size: 17px;
  line-height: 1.7;
  list-style: none;
}
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary::before {
  content: "Q";
  position: absolute;
  left: 18px;
  top: 18px;
  font-family: var(--font-serif);
  color: var(--color-primary);
  font-size: 18px;
  line-height: 1.6;
}
/* 開閉の＋／−マーク */
.faq-item > summary::after {
  content: "";
  position: absolute;
  right: 22px;
  top: 30px;
  width: 12px;
  height: 12px;
  border-right: 2px solid var(--color-accent);
  border-bottom: 2px solid var(--color-accent);
  transform: translateY(-4px) rotate(45deg);
  transition: transform 0.25s;
}
.faq-item[open] > summary::after {
  transform: translateY(2px) rotate(-135deg);
}
.faq-item > summary:hover { background: var(--color-primary-lt); }
.faq-item__body {
  position: relative;
  padding: 4px 22px 22px 48px;
  font-size: 16px;
  color: var(--color-text);
  border-top: 1px dotted var(--color-border);
  padding-top: 18px;
}
.faq-item__body::before {
  content: "A";
  position: absolute;
  left: 18px;
  top: 18px;
  font-family: var(--font-serif);
  color: var(--color-accent);
  font-size: 18px;
  line-height: 1.6;
}


/* ============================================================================
   10. 院長紹介ページ
   ========================================================================== */
.doctor-intro__figure {
  margin: 0 auto 28px;
  max-width: 300px;
}
.doctor-intro__figure img { border-radius: 4px; }
.doctor-intro__name {
  text-align: center;
  font-family: var(--font-serif);
  font-size: 22px;
  margin-bottom: 0.3em;
}
.doctor-intro__role {
  text-align: center;
  font-size: 14px;
  color: var(--color-text-sub);
  margin-bottom: 2em;
}
.story h2 {
  font-size: 20px;
  color: var(--color-primary);
  margin-top: 2.2em;
  margin-bottom: 0.8em;
}
.story h2:first-child { margin-top: 0; }
.career-list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 16px;
}
.career-list li {
  padding: 14px 4px;
  border-bottom: 1px dotted var(--color-border);
}
.career-list li:first-child { border-top: 1px dotted var(--color-border); }


/* ============================================================================
   11. アニメーション（スクロールでふわりと表示）
   ========================================================================== */
.js .fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.js .fade-in.is-visible {
  opacity: 1;
  transform: none;
}
/* 動きを控えたい設定の方には表示しない */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .fade-in { opacity: 1; transform: none; transition: none; }
}


/* ============================================================================
   12. PC表示（768px以上）
   ========================================================================== */
@media (min-width: 768px) {
  :root {
    --space-section: 84px;
    --header-height: 92px;
  }

  body {
    font-size: 17px;
    padding-bottom: 0;   /* PCでは下部固定ボタンを出さないため余白不要 */
  }

  .container { padding: 0 32px; }

  .section-title { font-size: 28px; }
  .heading-sub   { font-size: 21px; }

  /* --- ヘッダー ---
     ヘッダーだけは本文より広い幅を使い、ロゴ・メニュー・連絡先の間に
     余裕を持たせています */
  .header__inner {
    max-width: 1320px;
    padding: 10px 32px;
    gap: 32px;
  }
  .header__logo { flex-shrink: 0; }
  .header__contact { flex-shrink: 0; }
  .header__logo img { height: 46px; }
  .header__logo-mark { height: 42px; }
  .header__logo-text { font-size: 26px; }
  .header__contact { margin-left: 0; margin-right: 0; }
  .header__tel .num { font-size: 21px; }
  .header__tel .time { font-size: 12px; }

  /* 画面に余裕があるときだけ、ヘッダーにも住所を出します */
  @media (min-width: 1240px) {
    .header__addr {
      display: block;
      font-size: 12px;
      color: var(--color-text-sub);
      line-height: 1.6;
      margin-top: 5px;
      white-space: nowrap;   /* 中途半端な位置で折り返さないように */
    }
  }

  /* ロゴ＋メニュー6項目＋電話番号を横一列に並べるには、実測で 1120px 必要です。
     それより狭い画面では「≡ を押して開くメニュー」のままにします。
     幅が足りないまま横並びにすると、項目が1文字ずつ折り返したり、
     電話番号が画面の外にはみ出したりするためです。 */
  @media (min-width: 1120px) {
    .nav-toggle { display: none; }

    /* PCではヘッダーの中に横並びで表示 */
    .nav {
      display: block;
      position: static;
      order: 2;
      margin-left: auto;
      margin-right: auto;   /* 左右に余白を配分して、ロゴにも連絡先にも寄せない */
      border: 0;
      box-shadow: none;
    }
    .nav ul { display: flex; gap: 4px; }
    .nav li { border-bottom: 0; }
    .nav a {
      padding: 8px 11px;
      font-size: 15px;
      border-bottom: 2px solid transparent;
      white-space: nowrap;   /* 項目名の途中では折り返さない */
    }
    .nav a:hover {
      background: transparent;
      border-bottom-color: var(--color-primary);
      color: var(--color-primary);
    }
    .nav a[aria-current="page"] {
      color: var(--color-primary);
      border-bottom-color: var(--color-primary);
    }
  }

  /* --- 追従電話ボタンはPCでは右下に控えめに --- */
  .tel-fixed {
    left: auto;
    right: 24px;
    bottom: 24px;
    width: auto;
    padding: 12px 20px;
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(79, 66, 105, 0.25);
  }
  .tel-fixed__text { font-size: 12px; }
  .tel-fixed__num  { font-size: 20px; }

  /* --- ページ見出し --- */
  .page-head { padding: 52px 0; }
  .page-head h1 { font-size: 30px; }

  /* --- ファーストビュー：左にコピー、右に縦長写真 ---
     写真の幅と文字の大きさは画面幅に応じて伸縮します。
     文字が写真に押しつぶされないよう、上限・下限を決めてあります。 */
  /* --- ファーストビュー：コピーの下に横長写真 --- */
  .hero__inner {
    max-width: 1400px;
    padding: 60px 32px 64px;
  }
  .hero__catch {
    font-size: clamp(26px, 3vw, 40px);
    line-height: 1.85;
    margin-bottom: 0;
    white-space: nowrap;   /* 3行それぞれを1行に保つ */
  }
  /* 写真は元画像と同じ 16:9 のまま表示するので、顔が切れません。
     画面が低いときは、切り取らずに写真ごと小さくなります。 */
  .hero__figure {
    margin: 34px 0 0;
    aspect-ratio: 16 / 9;
    height: auto;
    width: min(100%, 900px, 50vh * 16 / 9);
  }

  /* 本文中の写真は、文章の幅に合わせて少し低めに */
  .section-figure { aspect-ratio: 21 / 9; }

  /* --- ファーストビューの写真：PCでは横3枚 --- */
  .photo-strip {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }
  .photo-strip li,
  .photo-strip li:first-child {
    grid-column: auto;
    aspect-ratio: 3 / 2;
  }

  /* --- 3カラム --- */
  .feature-list {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }


  /* --- 院長紹介：写真を左、プロフィールを右 --- */
  .profile {
    grid-template-columns: 260px 1fr;
    gap: 44px;
    align-items: center;
  }
  .profile__figure { margin: 0; }

  /* --- 症状：写真を左、チェックリストを右 --- */
  .symptom-lead {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 36px;
    align-items: center;
  }
  .symptom-lead__figure { margin-bottom: 0; }

  /* --- 症状チェックリストを2列に --- */
  .checklist--2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 32px;
  }

  /* --- 顎関節症と全身の関係：3カラム --- */
  .relation-list { grid-template-columns: repeat(3, 1fr); }

  /* --- 施術の流れ：写真を左、文章を右 --- */
  .flow > li { padding: 32px 36px; }
  .flow__body {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 32px;
    align-items: start;
  }
  .flow .figure { margin-bottom: 0; }

  /* --- 料金・アクセスを横並びに --- */
  .two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
  }

  .map { padding-top: 56%; }

  /* --- フッター --- */
  .footer { padding: 56px 0 32px; }
  .footer__body {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 40px;
  }
  .footer__nav ul { border-top: 0; }
  .footer__nav li { border-bottom: 0; }
  .footer__nav a { padding: 6px 0; }
  .footer__copy { margin-top: 32px; }

  /* --- 院長紹介 --- */
  .doctor-intro {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 44px;
    align-items: center;
    margin-bottom: 56px;
  }
  .doctor-intro__figure { margin: 0; max-width: none; }
  .doctor-intro__name,
  .doctor-intro__role { text-align: left; }
  .doctor-intro__role { margin-bottom: 1.2em; }
}


/* ============================================================================
   13. ファーストビューを左右2段組に（1024px以上）
   ----------------------------------------------------------------------------
   左は「最長の行がちょうど収まる幅」の文字欄、右の写真は残り全部。
   写真は元画像と同じ 16:9 のままなので、顔が切り取られません。
   ========================================================================== */
@media (min-width: 1024px) {
  .hero__inner {
    display: grid;
    grid-template-columns: minmax(0, max-content) minmax(320px, 1fr);
    gap: 56px;
    align-items: center;
    padding: 76px 32px 80px;
  }
  .hero__catch { font-size: clamp(24px, 2.2vw, 30px); }
  .hero__figure {
    margin: 0;
    width: 100%;
    aspect-ratio: 16 / 9;
  }
}
