/* ================================================================
   池田内科医院 統合スタイルシート
   ================================================================ */

/* --- 共通ベース（TOP + 共通コンポーネント） --- */

:root {
  --text: #3a3530;
  --text-light: #5a4e42;
  --heading: #3d2e1e;
  --accent: #51B0B2;
  --accent-dark: #49a2a4;
  --accent-deep: #3d8a8c;
  --accent-pale: #eaf5f5;
  --warm: #f8f9f7;
  --bg: #ffffff;
  --border: #e8edeb;
  --card-dark: #6D9BC4;
  --gold: #c8a96e;
}
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "メイリオ", Meiryo, "Hiragino Kaku Gothic ProN", sans-serif;
  color: var(--text); font-size: 17px; line-height: 1.9; word-break: keep-all; overflow-wrap: break-word; background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent-dark); text-decoration: none; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.serif { font-family: "Zen Old Mincho", "Hiragino Mincho ProN", serif; font-weight: 400; }
.wrap { max-width: 1400px; margin: 0 auto; padding: 0 32px; }

/* ===== ヘッダー ===== */
.header-top {
  padding: 16px 48px 16px; max-width: 1680px; margin: 0 auto;
}
.h-meta { font-size: 12px; color: rgba(255,255,255,.6); letter-spacing: .06em; margin-bottom: 10px; }
.header-main {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.h-logo { font-size: 35px; color: #fff; letter-spacing: .06em; line-height: 1.3; white-space: nowrap; }
.h-logo a { color: inherit; text-decoration: none; display: inline-flex; align-items: center; }
.h-logo-img { height: 44px; width: auto; margin-right: 12px; }
.header-nav {
  display: flex; align-items: center; gap: 0;
}
.header-nav a {
  display: block; padding: 10px 18px; font-size: 17px; font-weight: 500;
  color: rgba(255,255,255,.88); letter-spacing: .08em;
  transition: color .2s; white-space: nowrap;
}
.header-nav a:hover { color: #fff; }
.header-nav .h-tel {
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 20px; font-weight: 700; color: #fff;
  letter-spacing: .06em; white-space: nowrap;
  padding-left: 24px;
}

/* ===== ヒーロー 全面画像＋テキストカード ===== */
.hero-full {
  margin-top: 96px; position: relative; height: min(85vh, 700px); overflow: hidden;
}
.hero-full .hero-img-slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1.2s ease;
}
.hero-full .hero-img-slide.active { opacity: 1; }
.hero-card {
  position: absolute; left: 48px; bottom: 48px; z-index: 10;
  display: grid;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-radius: 16px; padding: 44px 48px 36px;
  max-width: 520px;
}
.hero-text-slide {
  grid-area: 1 / 1;
  opacity: 0; transition: opacity .45s ease; pointer-events: none;
}
.hero-text-slide.active {
  opacity: 1; pointer-events: auto;
  transition: opacity .6s ease .4s;
}
.hero-card .hero-dots { grid-area: 2 / 1; }
.hero-card .hero-label {
  font-size: 12px; color: var(--accent); letter-spacing: .3em;
  text-transform: uppercase; margin-bottom: 16px; font-weight: 700;
}
.hero-card h1 {
  font-size: 34px; line-height: 1.6; color: var(--heading); letter-spacing: .06em;
}
.hero-card .hero-sub {
  font-size: 15px; color: var(--text-light); font-weight: 500; margin-top: 16px;
  line-height: 2; letter-spacing: .03em;
}
.hero-card .hero-dots {
  display: flex; gap: 10px; margin-top: 20px;
}
.hero-card .hero-dots button {
  width: 10px; height: 10px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--border); transition: background .3s; padding: 0;
}
.hero-card .hero-dots button.active { background: var(--accent); }

/* ===== ご挨拶 ===== */
.symptoms { padding: 72px 0; position: relative; overflow: hidden; }
.symptoms-watermark {
  position: absolute; top: -20px; left: 50%; transform: translateX(-50%);
  font-size: 160px; font-weight: 100; opacity: .1; color: var(--accent);
  pointer-events: none; font-family: "Helvetica Neue", Arial, sans-serif;
  letter-spacing: .2em; white-space: nowrap;
  text-transform: uppercase;
}
.symptoms .section-title { margin-bottom: 40px; }
br.sp-only { display: none; }
.symptom-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 0;
  max-width: 1000px; margin: 0 auto;
  border-top: 1px solid var(--border); border-left: 1px solid var(--border);
}
.sg-item {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; padding: 28px 12px; text-align: center;
  border-right: 1px solid var(--border); border-bottom: 1px solid var(--border);
  color: var(--text-light);
}
.sg-item svg { color: #999; flex-shrink: 0; }
.sg-item span { font-size: 15px; line-height: 1.6; color: var(--text); }
.sg-note {
  text-align: center; font-size: 14px; color: var(--text-light); margin-top: 20px;
}

/* ===== ご挨拶 ===== */
.greeting { padding: 75px 0; }
.greeting .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.greeting-text h2 { font-size: 34px; color: var(--heading); letter-spacing: .06em; margin-bottom: 22px; }
.greeting-text p { font-size: 17.5px; color: var(--text-light); line-height: 2.1; }
.greeting-photo img { width: 100%; height: 380px; object-fit: cover; border-radius: 14px; }

/* 大腸がん訴求セクション */
.appeal { padding: 90px 0; position: relative; overflow: hidden; }
.appeal-watermark {
  position: absolute; top: -20px; left: 50%; transform: translateX(-50%); z-index: 0;
  font-size: 160px; font-weight: 200; opacity: .1; color: var(--accent);
  pointer-events: none; font-family: "Helvetica Neue", Arial, sans-serif;
  letter-spacing: .2em; white-space: nowrap;
  text-transform: uppercase; font-weight: 100;
}
.appeal .wrap { position: relative; z-index: 1; }
.appeal-heading { text-align: center; margin-bottom: 16px; }
.appeal-heading h2 { font-size: 38px; color: var(--heading); letter-spacing: .06em; line-height: 1.7; }
.appeal-en { text-align: center; font-size: 14px; color: var(--accent); letter-spacing: .06em; margin-bottom: 56px; }
.appeal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.appeal-text p { font-size: 18px; color: var(--text-light); line-height: 2.2; margin-bottom: 20px; }
.appeal-text .emphasis {
  background: linear-gradient(transparent 60%, rgba(108,181,173,.18) 60%);
  font-weight: 700; color: var(--text);
}
.appeal-photo img { width: 100%; height: 420px; object-fit: cover; border-radius: 28px 0 28px 0; }

/* 共通 */
.section-label { font-size: 12px; font-weight: 700; letter-spacing: .35em; color: var(--accent); text-transform: uppercase; margin-bottom: 12px; }
.section-title { font-size: 40px; color: var(--heading); letter-spacing: .06em; margin-bottom: 18px; }
.section-desc { font-size: 17.5px; color: var(--text-light); line-height: 2.1; max-width: 38em; margin-bottom: 56px; }

/* ===== 内視鏡 ===== */
.endo {
  background: #fff;
  color: var(--text);
  padding: 75px 0 80px; position: relative; overflow: hidden;
}
/* SVG曲線：検討中 */
.endo-watermark {
  position: absolute; top: -20px; left: 50%; transform: translateX(-50%); z-index: 1;
  font-size: 160px; font-weight: 100; opacity: .1; color: var(--accent);
  pointer-events: none;
  font-family: "Helvetica Neue", Arial, sans-serif;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.endo .section-label { color: var(--accent); text-align: center; }
.endo .section-title { color: var(--heading); text-align: center; }
.endo .section-desc { color: var(--text-light); text-align: center; margin-left: auto; margin-right: auto; }
.endo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-bottom: 64px; }
.endo-nav {
  list-style: none; max-width: 560px; margin: 0 auto 56px;
}
.endo-nav li {
  border-bottom: 1px dashed var(--border); 
}
.endo-nav li:first-child { border-top: 1px dashed var(--border); }
.endo-nav a {
  display: flex; align-items: center; gap: 14px;
  padding: 18px 4px; font-size: 17px; color: var(--text);
  transition: color .2s;
}
.endo-nav a::before { content: "→"; color: var(--accent); font-size: 14px; }
.endo-nav a:hover { color: var(--accent-dark); }
.endo-card { background: #fff; border-radius: 28px 0 28px 0; overflow: hidden; color: var(--text); box-shadow: 0 2px 16px rgba(0,0,0,.06); }
.endo-card img { width: 100%; height: 240px; object-fit: cover; }
.endo-card .body { padding: 28px 28px 32px; }
.endo-card h3 { font-size: 28px; color: var(--heading); margin-bottom: 4px; letter-spacing: .06em; }
.endo-card .endo-en { font-size: 13px; color: var(--accent); letter-spacing: .1em; margin-bottom: 14px; }
.endo-card > p, .endo-card .body > p { font-size: 16px; color: var(--text-light); line-height: 2; margin-bottom: 20px; }
.endo-links {
  background: var(--warm); border-radius: 12px; padding: 6px 20px;
}
.endo-links a {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 0; font-size: 16px; color: var(--text);
  border-bottom: 1px dashed var(--border); transition: color .2s;
}
.endo-links a:last-child { border-bottom: none; }
.endo-links a::before { content: "→"; color: var(--accent); font-size: 13px; }
.endo-links a:hover { color: var(--accent-dark); }

/* 検査日 */
.schedule { background: rgba(228,228,228,.6); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-radius: 28px 0 28px 0; padding: 48px 52px; color: var(--text); }
.schedule-header { display: flex; align-items: baseline; gap: 16px; margin-bottom: 6px; justify-content: center; }
.schedule-header h3 { font-size: 40px; color: var(--heading); }
.schedule-badge { font-size: 11px; font-weight: 700; color: var(--gold); background: rgba(200,169,110,.12); padding: 3px 14px; border-radius: 20px; }
.schedule-sub { font-size: 16px; color: var(--text-light); margin-bottom: 32px; text-align: center; }
.cal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }
.mini-cal h4 { font-size: 20px; color: var(--heading); font-weight: 400; font-family: 'Zen Old Mincho', serif; margin-bottom: 16px; text-align: center; letter-spacing: .08em; }
.mini-cal table { width: 100%; border-collapse: separate; border-spacing: 1px; text-align: center; font-size: 14px; }
.mini-cal th { font-size: 11.5px; font-weight: 700; color: #999; padding: 0 0 6px; }
.mini-cal th:nth-child(6) { color: #94afc4; }
.mini-cal th:last-child { color: #d4a8a8; }
.mini-cal td { padding: 0; color: var(--text); font-size: 15px; font-weight: 500; height: 38px; vertical-align: middle; border: 1px solid rgba(0,0,0,.06); border-radius: 4px; background: #fff; }
.mini-cal td.sun { color: #d4a8a8; }
.mini-cal td.sat { color: #94afc4; }
.mini-cal td.empty { color: transparent; }
.mini-cal td.exam {
  background: var(--accent); color: #fff; border-radius: 6px;
  font-weight: 700; box-shadow: 0 2px 6px rgba(108,181,173,.25);
}
.schedule-legend { display: flex; align-items: center; gap: 8px; margin-top: 28px; margin-bottom: 6px; }
.schedule-legend .dot { width: 14px; height: 14px; border-radius: 4px; background: var(--accent); }
.schedule-legend span { font-size: 13px; color: var(--text-light); }
.schedule-foot { font-size: 15px; color: var(--text-light); margin-top: 4px; }
.schedule-note { font-size: 15px; color: var(--text-light); margin-top: 8px; line-height: 2; }
.schedule-tel { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; font-size: 20px; font-weight: 700; color: var(--accent); }

/* ===== 診療案内（白カード） ===== */
.guide { padding: 75px 0; background: none; position: relative; overflow: hidden; }
.guide::before {
  content: ""; position: absolute; inset: 0;
  background-image: url('../../../uploads/2026/08/IMG_0819_edited-1-scaled.jpg');
  background-size: cover; background-position: center;
  background-color: rgba(74, 122, 118, .92);
  background-blend-mode: overlay;
}
.guide::after {
  content: ""; position: absolute; inset: 0;
  background: rgba(45, 48, 56, .6);
}
.guide .wrap { position: relative; z-index: 2; }
.guide .section-label { color: rgba(255,255,255,.7); }
.guide .section-title { color: #fff; }
.guide .section-desc { color: rgba(255,255,255,.9); }
.guide-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.guide-card {
  background: var(--bg); border-radius: 16px; padding: 32px 28px 28px;
  color: var(--text); display: flex; flex-direction: column;
  border: 1px solid var(--border);
  transition: border-color .2s, box-shadow .2s; cursor: pointer;
  min-height: 260px;
  overflow: hidden;
}
.guide-card:hover { border-color: var(--accent); box-shadow: 0 4px 20px rgba(108,181,173,.12); }
.guide-card .card-top { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.guide-card .icon { width: 48px; height: 48px; flex-shrink: 0; background: var(--accent-pale); border-radius: 50%; padding: 10px; }
.guide-card .icon svg { width: 100%; height: 100%; filter: brightness(0) saturate(100%) invert(45%) sepia(15%) saturate(800%) hue-rotate(120deg) brightness(90%); }
.guide-card .icon svg { width: 100%; height: 100%; }
.guide-card h3 { font-size: 26px; letter-spacing: .06em; color: var(--heading); font-family: 'Zen Old Mincho', serif; font-weight: 400; }
.guide-card .card-sep { border: none; border-top: 1px dashed var(--border); margin: 0 0 14px; }
.guide-card .card-desc { font-size: 14.5px; color: var(--text-light); line-height: 1.9; margin-bottom: 16px; flex: 1; }
.guide-card .card-link {
  font-size: 14px; font-weight: 500; color: var(--accent-dark);
  display: inline-flex; align-items: center; gap: 8px; margin-top: auto;
}
.guide-card .card-link::after { content: "→"; transition: transform .2s; }
.guide-card:hover .card-link::after { transform: translateX(4px); }

/* ===== お知らせ ===== */
.news { padding: 75px 0; background: var(--bg); position: relative; overflow: hidden; }
.news-watermark {
  position: absolute; top: -20px; left: 50%; transform: translateX(-50%);
  font-size: 160px; font-weight: 100; opacity: .1; color: var(--accent);
  pointer-events: none; font-family: "Helvetica Neue", Arial, sans-serif;
  letter-spacing: .2em; white-space: nowrap;
  text-transform: uppercase;
}
.news .wrap { max-width: 1000px; }
.news-header { text-align: center; margin-bottom: 48px; }
.news-header .all-link { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--accent-dark); font-weight: 500; margin-top: 16px; }
.news-header .all-link::after { content: "→"; }

.news-list { list-style: none; }
.news-list li {
  display: grid; grid-template-columns: 7em auto 1fr auto; align-items: center; gap: 20px;
  padding: 28px 0; border-bottom: 1px solid var(--border);
}
.news-list li:first-child { padding-top: 0; }
.news-list li:last-child { border-bottom: none; }
.news-list time {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 15px; color: var(--text-light); letter-spacing: .04em; font-weight: 500;
}
.news-cat {
  font-size: 12px; padding: 4px 14px; border-radius: 2px;
  border: 1px solid #ccc; color: var(--text-light); white-space: nowrap;
  text-align: center; letter-spacing: .06em;
}
.news-list a.news-title { color: var(--text); font-size: 17px; font-weight: 500; }
.news-list a.news-title:hover { color: var(--accent-dark); }
.news-arrow { color: var(--text-light); font-size: 16px; opacity: .35; letter-spacing: .1em; }


/* ===== フッター ===== */
.site-footer {
  background: none; position: relative; overflow: hidden;
}
.site-footer::before {
  content: ""; position: absolute; inset: 0;
  background-image: url('../../../uploads/2026/08/IMG_0819_edited-1-scaled.jpg');
  background-size: cover; background-position: center;
  background-color: rgba(74, 122, 118, .92);
  background-blend-mode: overlay;
}
.site-footer::after {
  content: ""; position: absolute; inset: 0;
  background: rgba(45, 48, 56, .6);
}
.site-footer .footer-content,
.site-footer .footer-copy-bar { position: relative; z-index: 2; }
/* フッター白文字 */
.site-footer .fi-sub { color: var(--accent); font-size: 15px; }
.site-footer .fi-sub .tag { display: inline-block; border: 1px solid var(--accent); padding: 4px 14px; border-radius: 3px; margin-right: 8px; font-size: 14px; letter-spacing: .06em; }
.site-footer .fi-name { color: #fff; }
.site-footer .fi-tel-label { color: #fff; }
.site-footer .fi-tel { color: #fff; }
.site-footer .fi-addr { color: #fff; }
.site-footer table.hours { font-size: 18px; }
.site-footer table.hours th,
.site-footer table.hours td { color: #fff; border-bottom: 1px solid rgba(255,255,255,.2); padding: 12px 8px; }
.site-footer table.hours thead th { color: #fff; font-weight: 700; border-bottom: 2px solid rgba(255,255,255,.35); font-size: 16px; padding-bottom: 18px; }
.site-footer table.hours tbody th { font-size: 17px; }
.site-footer .mark-on { color: #fff; font-size: 30px; }
.site-footer .mark-exam { color: #fff; font-size: 30px; }
.site-footer .mark-off { color: rgba(255,255,255,.3); font-size: 17px; }
.site-footer .hours-notes { color: #fff; }
.site-footer .hours-notes li::before { color: #fff; }
.site-footer .section-label { color: var(--accent); }
.site-footer .section-title { color: #fff; }
.site-footer .access-tags span {
  color: #fff; background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.2);
}
.site-footer .footer-copy-bar {
  border-top-color: rgba(255,255,255,.15); color: rgba(255,255,255,.5);
}
/* 医院情報 */
.fi-sub { font-size: 13px; color: var(--accent); letter-spacing: .14em; margin-bottom: 6px; }
.fi-name { font-size: 35px; color: var(--heading); letter-spacing: .06em; margin-bottom: 20px; }
.fi-tel-line { display: flex; align-items: baseline; gap: 4px; margin-bottom: 8px; }
.fi-tel-label { font-family: "Helvetica Neue", Arial, sans-serif; font-size: 18px; font-weight: 700; color: var(--heading); }
.fi-tel {
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 32px; font-weight: 700; color: var(--heading); letter-spacing: .06em;
}
.fi-addr { font-size: 16px; color: var(--text-light); margin-bottom: 28px; }
/* フッターコンテンツ */
.footer-content { padding: 72px 0 48px; border-top: none; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: stretch; }
.footer-left table.hours { margin-bottom: 0; }
table.hours { width: 100%; border-collapse: collapse; font-size: 16px; }
table.hours th, table.hours td { font-family: 'Helvetica Neue', Arial, sans-serif; }
table.hours tbody th { font-family: 'Zen Kaku Gothic New', sans-serif; }
table.hours th, table.hours td { padding: 14px 8px; text-align: center; border-bottom: 1px solid var(--border); }
table.hours thead th { font-size: 13px; font-weight: 500; color: var(--text-light); padding-bottom: 16px; border-bottom: 2px solid var(--border); }
table.hours tbody th { text-align: left; font-weight: 500; padding-left: 0; white-space: nowrap; font-size: 14px; }
.mark-on { color: var(--accent); font-weight: 700; font-size: 20px; }
.mark-exam { color: #2c5f9e; font-weight: 700; font-size: 20px; }
.mark-off { color: #d0d0d0; font-size: 16px; }
.hours-notes { font-size: 15px; color: var(--text-light); margin-top: 20px; list-style: none; }
.hours-notes li { padding-left: 1.2em; position: relative; margin-bottom: 6px; }
.hours-notes li::before { content: "※"; position: absolute; left: 0; }
.access-col h3 { font-size: 20px; color: var(--heading); margin-bottom: 14px; }
.access-col p { font-size: 15px; color: var(--text-light); margin-bottom: 20px; line-height: 2; }
.map-placeholder {
  background: var(--warm); border: 1px solid var(--border); border-radius: 8px;
  height: 200px; display: flex; align-items: center; justify-content: center;
  color: var(--text-light); font-size: 13px; margin-bottom: 20px;
}
.access-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.access-tags span { font-size: 12.5px; color: var(--text-light); background: var(--warm); padding: 6px 16px; border-radius: 24px; border: 1px solid var(--border); }
/* コピーライト */
.footer-copy-bar {
  border-top: 1px solid var(--border); padding: 20px 0;
  text-align: center; font-size: 12px; color: var(--text-light); opacity: .6;
}
.footer-legal {
  margin-top: 24px; padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.15);
}
.footer-legal a {
  display: inline-block; font-size: 13px; color: #fff; font-weight: 700;
  margin-right: 20px; margin-bottom: 6px;
  transition: color .2s;
}
.footer-legal a:hover { color: rgba(255,255,255,.7); }
.footer-legal a::before {
  content: "›"; margin-right: 6px; font-size: 11px;
}

/* 内視鏡ページ専用 */

/* 医院概要ページ専用 */
.doctor-card-inner {
  display: grid; grid-template-columns: 280px 1fr; gap: 40px; align-items: start;
}
.doctor-photo-placeholder img { width: 100%; height: 100%; object-fit: cover; }
.doctor-photo-placeholder {
  width: 100%; aspect-ratio: 3/4; background: var(--warm);
  border: 1px solid var(--border); border-radius: 28px 0 28px 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; color: var(--text-light);
}
.doctor-role {
  font-size: 14px; color: var(--accent); font-weight: 700;
  letter-spacing: .1em; margin-bottom: 4px;
}
.doctor-name {
  font-size: 32px; color: var(--heading); letter-spacing: .08em; margin-bottom: 16px;
}
.doctor-message {
  font-size: 20px; color: var(--heading); line-height: 1.8;
  margin-bottom: 20px; padding-bottom: 20px;
  border-bottom: 1px dashed var(--border);
}
.doctor-career { margin-top: 24px; }
.doctor-career h4 {
  font-size: 16px; color: var(--heading); font-weight: 700;
  margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--border);
}
.doctor-career dl {
  display: grid; grid-template-columns: auto 1fr; gap: 8px 20px;
  font-size: 15px; color: var(--text-light); line-height: 1.8;
}
.doctor-career dt { font-weight: 500; color: var(--text); white-space: nowrap; }

.about-service-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 28px;
  max-width: 100%; overflow: hidden;
}
.about-service-item {
  padding: 28px; background: var(--warm);
  border: 1px solid var(--border); border-radius: 12px;
  min-width: 0;
}
.about-service-item h4 {
  font-size: 20px; color: var(--heading); margin-bottom: 12px;
}
.about-service-item p {
  font-size: 15px; color: var(--text-light); line-height: 1.9;
}

.about-table {
  width: 100%; border-collapse: collapse; margin-top: 8px;
}
.about-table th, .about-table td {
  padding: 16px 20px; border-bottom: 1px solid var(--border);
  font-size: 16px; text-align: left; vertical-align: top;
}
.about-table th {
  width: 160px; font-weight: 700; color: var(--heading);
  background: var(--warm); white-space: nowrap;
}
.about-table td { color: var(--text-light); }

.facility-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 24px;
}
.facility-placeholder img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; }
.facility-placeholder {
  width: 100%; aspect-ratio: 4/3; background: var(--warm);
  border: 1px solid var(--border); border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; color: var(--text-light);
}
.facility-item p {
  font-size: 13px; color: var(--text-light); text-align: center; margin-top: 8px;
}

/* コンテンツ内スライダー */
.content-slider {
  position: relative; width: 100%; aspect-ratio: 16/9;
  border-radius: 12px; overflow: hidden;
}
.content-slider img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0; transition: opacity 1.2s ease;
}
.content-slider img.active { opacity: 1; }
.content-slider .slider-dots {
  position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%);
  z-index: 5; display: flex; gap: 8px;
}
.content-slider .slider-dots button {
  width: 10px; height: 10px; border-radius: 50%; border: none;
  background: rgba(255,255,255,.4); cursor: pointer; padding: 0;
  transition: background .3s;
}
.content-slider .slider-dots button.active { background: #fff; }

/* アクセスページ専用 */
.access-hero-photo { margin-bottom: 8px; }
.access-hero-photo .content-slider {
  aspect-ratio: 16 / 7; border-radius: 28px 0 28px 0;
}
@media (max-width: 768px) {
  .access-hero-photo .content-slider { aspect-ratio: 4 / 3; }
}
.access-hours-table {
  width: 100%; border-collapse: collapse; font-size: 17px;
}
.access-hours-table th, .access-hours-table td {
  padding: 10px 12px; text-align: center;
  border-bottom: 1px solid var(--border);
  font-family: "Helvetica Neue", Arial, sans-serif;
}
.access-hours-table thead th {
  font-size: 15px; font-weight: 700; color: var(--text);
  border-bottom: 2px solid var(--accent); padding: 12px 12px 10px;
  border-top: 2px solid var(--accent);
}
.access-hours-table tbody th {
  text-align: left; font-weight: 700; font-size: 15px; white-space: nowrap;
  font-family: "メイリオ", Meiryo, sans-serif; padding-left: 0;
  color: var(--text);
}
.access-hours-table .on { color: var(--accent-deep); font-weight: 700; font-size: 24px; }
.access-hours-table .exam { color: #2c5f9e; font-weight: 700; font-size: 24px; }
.access-hours-table .off { color: #c0c0c0; font-size: 16px; }
.access-hours-table .exam-row th { font-size: 14px; color: #2c5f9e; font-weight: 700; }
.access-map {
  width: 100%; height: 480px; border-radius: 12px; overflow: hidden;
  margin-bottom: 20px;
}
.access-map iframe { width: 100%; height: 100%; }
.access-tags-row {
  display: flex; flex-wrap: wrap; gap: 10px;
}
.access-tags-row span {
  font-size: 14px; color: var(--text-light);
  background: var(--warm); padding: 8px 18px;
  border-radius: 24px; border: 1px solid var(--border);
}

/* 内視鏡ページ専用 */
.endo-feature-block {
  margin-bottom: 36px; padding-bottom: 36px; border-bottom: 1px dashed var(--border);
}
.endo-feature-block:last-of-type { border-bottom: none; margin-bottom: 24px; padding-bottom: 0; }
.endo-feature-title {
  font-size: 26px; color: var(--heading); letter-spacing: .06em;
  margin-bottom: 16px;
  display: inline;
  background: linear-gradient(transparent 60%, rgba(108,181,173,.2) 60%);
}

/* 特徴ブロック 画像+テキスト 2カラム */
.endo-feature-grid {
  display: grid; grid-template-columns: 380px 1fr; gap: 36px; align-items: start;
}
.endo-feature-photo {
  width: 100%; aspect-ratio: 4/3; background: var(--warm);
  border: 1px solid var(--border); border-radius: 12px; overflow: hidden;
}
.endo-feature-photo img { width: 100%; height: 100%; object-fit: cover; }
.endo-feature-photo .ph { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 13px; color: var(--text-light); }

/* フローステップ 画像付き */
.endo-flow-grid {
  display: grid; grid-template-columns: 1fr 320px; gap: 28px; align-items: start;
}
.endo-flow-photo {
  width: 100%; aspect-ratio: 4/3; background: var(--warm);
  border-radius: 8px; overflow: hidden;
}
.endo-flow-photo img { width: 100%; height: 100%; object-fit: cover; }
.endo-flow-photo .ph { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 12px; color: var(--text-light); }
.endo-notice {
  background: #f3edf6; border: 1px solid #d4c2de;
  border-radius: 12px; padding: 24px 28px; margin-top: 8px;
}
.endo-notice h4 { font-size: 17px; color: #6e4a8a; margin-bottom: 8px; font-weight: 700; }
.endo-notice p { font-size: 15px; color: var(--text-light); line-height: 1.9; margin-bottom: 8px; }
.endo-notice p:last-child { margin-bottom: 0; }

.endo-flow { margin-top: 24px; display: flex; flex-direction: column; gap: 20px; }
.endo-flow-step {
  display: block; padding: 32px 36px;
  background: var(--warm);
  border-top: 3px solid var(--accent);
  border-radius: 0 0 8px 8px;
}
.endo-flow-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: auto; height: auto; padding: 4px 14px;
  background: var(--accent); color: #fff; border-radius: 4px;
  font-size: 13px; font-weight: 700;
  font-family: "Helvetica Neue", Arial, sans-serif;
  margin-bottom: 12px;
}
.endo-flow-content h4 {
  font-size: 26px; color: var(--heading);
  font-family: "Zen Old Mincho", "Hiragino Mincho ProN", serif;
  font-weight: 400; letter-spacing: .06em;
  margin-bottom: 14px;
}
.endo-flow-content p {
  font-size: 16px; color: var(--text-light); line-height: 1.9;
}
.page-gastroscopy .endo-flow-step { border-top-color: #6D9BC4; }
.page-gastroscopy .endo-flow-num { background: #6D9BC4; }
.page-colonoscopy .endo-flow-step { border-top-color: #9370AB; }
.page-colonoscopy .endo-flow-num { background: #9370AB; }

.symptom-list-card {
  background: var(--warm); border: 1px solid var(--border);
  border-radius: 12px; padding: 8px 32px 20px; margin-top: 20px;
}
.symptom-list-2col {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
}
.symptom-list-2col li {
  padding: 14px 0 14px 1.4em; position: relative;
  font-size: 16px; color: var(--text); line-height: 1.6;
  border-bottom: 1px solid var(--border);
}
.symptom-list-2col li::before {
  content: "●"; position: absolute; left: 0; top: 14px;
  font-size: 8px; color: var(--accent-deep);
}
.symptom-list-etc {
  text-align: right; font-size: 15px; color: var(--text-light);
  margin-top: 12px; padding-right: 8px;
}

/* 内視鏡費用テーブル */
.endo-cost-table {
  width: 100%; border-collapse: collapse; margin-top: 24px;
}
.endo-cost-table thead th {
  background: #3a3a40; color: #fff; font-size: 16px; font-weight: 700;
  padding: 16px 20px; text-align: center; letter-spacing: .06em;
}
.endo-cost-table thead th:first-child { text-align: left; }
.endo-cost-table tbody th {
  padding: 24px 20px; font-size: 16px; font-weight: 500;
  color: var(--text); text-align: left; vertical-align: middle;
  border-bottom: 1px solid var(--border); background: #fff;
}
.endo-cost-table tbody td {
  padding: 24px 20px; text-align: center; vertical-align: middle;
  border-bottom: 1px solid var(--border); background: #fff;
  font-family: "Helvetica Neue", Arial, sans-serif;
}
.endo-cost-table .price {
  font-size: 28px; font-weight: 700; color: var(--accent-deep);
}
.endo-cost-table .price-unit {
  font-size: 14px; color: var(--text-light); font-weight: 400;
}
.endo-cost-notes {
  margin-top: 20px; font-size: 14px; color: var(--text-light); line-height: 2;
}
.endo-cost-notes p { padding-left: 1.2em; position: relative; }
.endo-cost-notes p::before { content: "※"; position: absolute; left: 0; }

.faq-list { margin-top: 8px; }
.faq-item {
  padding: 24px 0; border-bottom: 1px solid var(--border);
}
.faq-item:last-child { border-bottom: none; }
.faq-q {
  font-size: 18px; color: var(--heading); font-weight: 700;
  margin-bottom: 10px; padding-left: 28px; position: relative;
}
.faq-q::before {
  content: "Q"; position: absolute; left: 0; top: 0;
  font-size: 16px; font-weight: 700; color: var(--accent);
  font-family: "Helvetica Neue", Arial, sans-serif;
}
.faq-a {
  font-size: 16px; color: var(--text-light); line-height: 1.9;
  padding-left: 28px;
}

/* アコーディオン */
.accordion-list {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
}
.accordion-item {
  border: 1px solid var(--border); border-radius: 8px; overflow: hidden;
}
.accordion-item summary {
  padding: 16px 20px; font-size: 17px; font-weight: 700;
  color: var(--heading); cursor: pointer; list-style: none;
  display: flex; align-items: center;
  transition: background .2s;
}
.accordion-item summary::-webkit-details-marker { display: none; }
.accordion-item summary::before {
  content: "+"; font-size: 20px; color: var(--accent); font-weight: 400;
  flex-shrink: 0; margin-right: 12px;
  font-family: "Helvetica Neue", Arial, sans-serif;
  width: 24px; text-align: center;
}
.accordion-item[open] summary::before { content: "−"; }
.accordion-item summary:hover { background: var(--warm); }
.accordion-item[open] summary {
  border-bottom: 1px solid var(--border); background: var(--warm);
}
.accordion-body {
  padding: 20px 24px; font-size: 15px; color: var(--text-light); line-height: 1.9;
}
.accordion-body p { margin-bottom: 12px; }
.accordion-body p:last-child { margin-bottom: 0; }

/* お知らせ一覧 */
.news-article {
  padding: 36px 0; border-bottom: none;
}
.news-article:nth-child(even) {
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  padding-left: calc(50vw - 50%);
  padding-right: calc(50vw - 50%);
  background: #f9f9f9;
}
.news-article:first-child { padding-top: 0; }
.news-article-header {
  margin-bottom: 16px; display: flex; align-items: baseline;
  flex-wrap: wrap; gap: 8px 16px;
}
.news-article-header time {
  font-size: 14px; color: var(--text-light);
  font-family: "Helvetica Neue", Arial, sans-serif;
}
.news-cat {
  display: inline-block; font-size: 12px; padding: 3px 14px;
  border-radius: 3px; font-weight: 700; letter-spacing: .04em;
  background: var(--accent); color: #fff;
}
/* カテゴリー別カラー */
.news-cat-exam { background: var(--accent); }
.news-cat-closed { background: #9370AB; }
.news-cat-vaccine { background: #6D9BC4; }
.news-article-header h2 {
  font-size: 26px; color: var(--heading); letter-spacing: .04em;
  font-weight: 400; width: 100%;
  font-family: "Zen Old Mincho", "Hiragino Mincho ProN", serif;
}
.news-article-body {
  font-size: 16px; color: var(--text-light); line-height: 2;
}
.news-article-body p { margin-bottom: 12px; }
.news-article-body p:last-child { margin-bottom: 0; }

/* スマホ */
.mobile-tel { display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 200; background: var(--accent); color: #fff; text-align: center; padding: 14px; font-size: 18px; font-weight: 700; box-shadow: 0 -2px 16px rgba(0,0,0,.12); }
.mobile-tel small { font-weight: 400; font-size: 12px; display: block; opacity: .9; }



/* --- 下層ページ専用 --- */
/* ===== 下層ヘッダー（白背景） ===== */
.sub-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: rgba(255,255,255,.72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.sub-header .header-top {
  padding: 0 300px 0 48px; max-width: 1680px; margin: 0 auto;
  height: 96px;
}
.sub-header .header-main {
  display: flex; align-items: center; justify-content: space-between;
  height: 100%;
}
.sub-header .h-logo {
  font-size: 34px; color: var(--heading); letter-spacing: .06em; line-height: 1.3; white-space: nowrap;
}
.sub-header .h-logo a { color: inherit; }
.sub-header .h-logo svg { vertical-align: middle; margin-right: 10px; }
.sub-header .header-nav {
  display: flex; align-items: center; gap: 0;
}
.sub-header .header-nav a {
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  padding: 8px 14px; white-space: nowrap;
  transition: color .2s;
}
.sub-header .header-nav .nav-en {
  font-family: "Zen Old Mincho", serif;
  font-size: 10px; letter-spacing: .18em; color: var(--accent);
  text-transform: uppercase; line-height: 1;
  transition: color .2s;
}
.sub-header .header-nav .nav-ja {
  font-size: 15px; font-weight: 500; color: var(--text-light);
  letter-spacing: .06em; line-height: 1.4;
  transition: color .2s;
}
.sub-header .header-nav a:hover .nav-ja { color: var(--accent-dark); }
.sub-header .header-nav a.nav-current .nav-ja { font-weight: 700; }
.sub-header .header-nav a.nav-current { border-bottom: 2px solid var(--accent); padding-bottom: 6px; }
.h-tel-block {
  position: absolute; top: 0; right: 0; bottom: 0;
  display: flex; flex-direction: column; justify-content: center;
  padding: 0 32px;
  background: rgba(81,176,178,.82);
  text-align: left; white-space: nowrap;
}
.sub-header .header-nav a.h-tel-num,
.sub-header .header-nav a.h-tel-num:hover {
  color: #fff;
}
.h-tel-num {
  display: flex; align-items: center;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 22px; font-weight: 700; color: var(--heading);
  letter-spacing: .04em; line-height: 1.2;
}
.h-tel-badge {
  display: inline-block; margin-right: 8px;
  padding: 3px 8px; border-radius: 4px;
  background: #fff; color: var(--accent-dark);
  font-size: 11px; font-weight: 700; letter-spacing: .1em; line-height: 1;
}
.h-tel-hours {
  margin: 4px 0 0; font-size: 11.5px; color: rgba(255,255,255,.9);
  letter-spacing: .04em; line-height: 1.4;
}

/* ===== ページバナー ===== */
.page-banner {
  margin-top: 96px; position: relative;
}
.page-banner::before {
  content: ""; display: block; height: 260px;
  background-image: url('../../../uploads/2026/08/IMG_0819_edited-1-scaled.jpg');
  background-size: cover; background-position: center 40%;
}
.page-banner::after { content: none; }
.page-banner .wrap {
  padding: 48px 0 0;
  text-align: center;
}
.page-banner .page-label {
  font-size: 13px; color: var(--accent); letter-spacing: .3em;
  text-transform: uppercase; margin-bottom: 10px; font-weight: 700;
}
.page-banner h1 {
  font-size: 40px; color: var(--heading); letter-spacing: .08em; line-height: 1.4;
}

/* パンくず */
.breadcrumb {
  padding: 16px 0; border-bottom: 1px solid var(--border); margin-bottom: 0;
}
.breadcrumb .wrap {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--text-light);
}
.breadcrumb a { color: var(--text-light); }
.breadcrumb a:hover { color: var(--accent-dark); }
.breadcrumb .sep { color: #ccc; font-size: 11px; }

/* ===== コンテンツ共通 ===== */
.page-content { padding: 64px 0 0; }
.content-wrap { max-width: 1280px; margin: 0 auto; padding: 0 32px; }

.page-lead {
  font-family: "Zen Old Mincho", "Hiragino Mincho ProN", serif;
  font-size: 19px; font-weight: 400; color: var(--text-light); line-height: 2.2;
  text-align: center; max-width: 700px; margin: 0 auto 72px;
}

/* ページ内リンクナビ */
.page-nav {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
  margin-bottom: 72px;
}
.page-nav a {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 20px; font-size: 16px; font-weight: 500;
  color: rgba(150, 114, 78, .9);
  border: 1px solid rgba(150, 114, 78, .9);
  border-radius: 28px 0 28px 0;
  transition: background .2s, color .2s;
  white-space: nowrap; text-align: center;
}
.page-nav a::after { content: "↓"; font-size: 13px; }
.page-nav a:hover {
  background: rgba(150, 114, 78, .9); color: #fff;
}

/* セクション共通 */
.sec { padding: 56px 0; border-bottom: 1px solid var(--border); }
.sec:last-child { border-bottom: none; padding-bottom: 72px; }
.sec-header { margin-bottom: 32px; }
.sec-label {
  font-size: 12px; letter-spacing: .3em; color: var(--accent);
  text-transform: uppercase; margin-bottom: 8px;
}
.sec-title {
  font-size: 40px; color: var(--heading); letter-spacing: .06em; line-height: 1.5;
}
.sec-title-accent {
  display: inline-block; width: 36px; height: 3px;
  background: var(--accent); border-radius: 2px;
  margin-left: 14px; vertical-align: middle;
}
.sec-body { font-size: 17px; color: var(--text-light); line-height: 2.1; }
.sec-body p { margin-bottom: 18px; }
.sec-body p:last-child { margin-bottom: 0; }

/* 2カラムレイアウト */
.sec-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start;
}
.sec-grid.reverse { direction: rtl; }
.sec-grid.reverse > * { direction: ltr; }
.sec-photo img {
  width: 100%; height: 300px; object-fit: cover;
  border-radius: 28px 0 28px 0;
}

/* 症状タグ */
.symptom-tags {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px;
}
.symptom-tags span {
  font-size: 14px; color: var(--text-light);
  background: var(--accent-pale); padding: 6px 16px;
  border-radius: 24px; white-space: nowrap;
}

/* 詳細リンクボタン */
.detail-link {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 24px; padding: 14px 28px;
  font-size: 15px; font-weight: 500; color: #fff;
  background: var(--accent); border-radius: 28px 0 28px 0;
  transition: background .2s;
}
.detail-link:hover { background: var(--accent-deep); color: #fff; }
.detail-link::after { content: "→"; font-size: 14px; }
.detail-link.gold { background: rgba(150, 114, 78, .9); }
.detail-link.gold:hover { background: rgba(135, 102, 68, .95); }

/* 内視鏡リンクカード */
.endo-link-cards {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 28px;
}
.endo-link-card {
  display: flex; align-items: center; gap: 20px;
  padding: 24px 28px; background: var(--warm);
  border: 1px solid var(--border); border-radius: 28px 0 28px 0;
  transition: border-color .2s, box-shadow .2s;
}
.endo-link-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 20px rgba(108,181,173,.12);
}
.endo-link-card .elc-icon {
  width: 80px; height: 80px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent-deep);
}
.endo-link-card .elc-icon svg { width: 100%; height: 100%; }
.endo-link-card .elc-text h4 {
  font-size: 26px; color: var(--heading); letter-spacing: .04em;
  margin-bottom: 2px;
}
.endo-link-card .elc-text .elc-en {
  font-size: 12px; color: var(--accent); letter-spacing: .08em;
  margin-bottom: 6px;
}
.endo-link-card .elc-text p {
  font-size: 14px; color: var(--text-light); line-height: 1.7;
}
.endo-link-card .elc-arrow {
  margin-left: auto; color: var(--accent); font-size: 18px; flex-shrink: 0;
}

/* 予防接種テーブル */
.vaccine-table {
  width: 100%; border-collapse: collapse; margin-top: 24px; font-size: 15px;
}
.vaccine-table th, .vaccine-table td {
  padding: 14px 16px; text-align: left;
  border-bottom: 1px solid var(--border);
}
.vaccine-table thead th {
  font-size: 13px; font-weight: 700; color: var(--text-light);
  border-bottom: 2px solid var(--border); padding-bottom: 12px;
}
.vaccine-table tbody th {
  font-weight: 500; color: var(--heading); white-space: nowrap;
}
.vaccine-table tbody td { color: var(--text-light); }
.vaccine-note {
  font-size: 14px; color: var(--text-light); margin-top: 16px;
  padding-left: 1.2em; position: relative;
}
.vaccine-note::before { content: "※"; position: absolute; left: 0; }

/* 健診リスト */
.checkup-list {
  list-style: none; margin-top: 20px;
}
.checkup-list li {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 0; border-bottom: 1px dashed var(--border);
  font-size: 16px; color: var(--text);
}
.checkup-list li:last-child { border-bottom: none; }
.checkup-list li::before {
  content: ""; width: 8px; height: 8px; border-radius: 2px;
  background: var(--accent); flex-shrink: 0;
}

/* 初めて受診される方へ */
.first-visit {
  padding: 72px 0; background: var(--warm);
  border-top: 1px solid var(--border);
}
.first-visit .content-wrap { max-width: 1280px; margin: 0 auto; padding: 0 32px; }
.fv-header { text-align: center; margin-bottom: 48px; }
.fv-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
  margin-bottom: 40px;
}
.fv-card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 12px; padding: 24px 28px;
  display: flex; align-items: flex-start; gap: 16px;
}
.fv-card.full { grid-column: 1 / -1; }
.fv-icon {
  width: 42px; height: 42px; flex-shrink: 0;
  background: var(--accent-pale); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; color: var(--accent-deep); font-weight: 700;
  font-family: "Helvetica Neue", Arial, sans-serif;
}
.fv-icon.brown {
  background: rgba(150,114,78,.1); color: rgba(150,114,78,.9);
}
.fv-card h4 {
  font-size: 26px; color: var(--heading); letter-spacing: .06em;
  margin-bottom: 6px; font-weight: 400;
  font-family: "Zen Old Mincho", "Hiragino Mincho ProN", serif;
}
.fv-card p, .fv-card ul {
  font-size: 15px; color: var(--text-light); line-height: 1.9;
}
.fv-card ul {
  list-style: none; margin: 0; padding: 0;
}
.fv-card ul li {
  padding: 2px 0 2px 1.2em; position: relative;
}
.fv-card ul li::before {
  content: ""; position: absolute; left: 0; top: 12px;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
}
.fv-flow {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px;
  margin-top: 12px;
}
.fv-step {
  text-align: center; position: relative;
}
.fv-step-num {
  width: 36px; height: 36px; margin: 0 auto 8px;
  background: var(--accent); color: #fff; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 700;
  font-family: "Helvetica Neue", Arial, sans-serif;
}
.fv-step-text {
  font-size: 14px; color: var(--text-light); line-height: 1.6;
}
.fv-step::after {
  content: ""; position: absolute; top: 18px; right: -8px;
  width: 6px; height: 1px; background: var(--accent);
}
.fv-step:last-child::after { display: none; }

.fv-notice {
  background: #f3edf6; border: 1px solid #d4c2de;
  border-radius: 12px; padding: 20px 24px;
  margin-bottom: 28px; display: flex; align-items: flex-start; gap: 16px;
}
.fv-notice-icon {
  width: 42px; height: 42px; flex-shrink: 0;
  background: rgba(142, 108, 168, .15); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.fv-notice h4 {
  font-size: 17px; color: #6e4a8a; margin-bottom: 6px; font-weight: 700;
}
.fv-notice p {
  font-size: 15px; color: var(--text-light); line-height: 1.9;
}

/* フッター掲示リンク */
.footer-legal {
  margin-top: 24px; padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.15);
}
.footer-legal a {
  display: inline-block; font-size: 13px; color: #fff; font-weight: 700;
  margin-right: 20px; margin-bottom: 6px;
  transition: color .2s;
}
.footer-legal a:hover { color: rgba(255,255,255,.7); }
.footer-legal a::before {
  content: "›"; margin-right: 6px; font-size: 11px;
}

/* 下部CTA */
.page-cta {
  margin-top: 0; padding: 64px 0;
  background: #f8f8f8; text-align: center;
}
/* コンテンツ内からフルワイドに広がるCTA */
.page-cta-break {
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  width: 100vw; padding: 64px 32px;
  background: #f8f8f8; text-align: center;
}
.page-cta h2 {
  font-size: 40px; color: var(--heading); letter-spacing: .06em;
  margin-bottom: 12px;
}
.page-cta .cta-sub {
  font-size: 19px; color: var(--text-light); margin-bottom: 28px;
}
.page-cta .cta-tel {
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 36px; font-weight: 700; color: var(--accent-deep);
  letter-spacing: .06em; margin-bottom: 8px;
}
.page-cta .cta-hours {
  font-size: 14px; color: var(--text-light);
}
.page-cta .cta-schedule {
  margin-top: 20px;
}

/* ===== フッター（トップと同一） ===== */
.site-footer { background: none; position: relative; overflow: hidden; }
.site-footer::before {
  content: ""; position: absolute; inset: 0;
  background-image: url('../../../uploads/2026/08/IMG_0819_edited-1-scaled.jpg');
  background-size: cover; background-position: center;
  background-color: rgba(74, 122, 118, .92);
  background-blend-mode: overlay;
}
.site-footer::after {
  content: ""; position: absolute; inset: 0;
  background: rgba(45, 48, 56, .6);
}
.site-footer .footer-content,
.site-footer .footer-copy-bar { position: relative; z-index: 2; }
.site-footer .fi-sub { color: var(--accent); font-size: 15px; }
.site-footer .fi-sub .tag { display: inline-block; border: 1px solid var(--accent); padding: 4px 14px; border-radius: 3px; margin-right: 8px; font-size: 14px; letter-spacing: .06em; }
.site-footer .fi-name { color: #fff; }
.site-footer .fi-tel-label { color: #fff; }
.site-footer .fi-tel { color: #fff; }
.site-footer .fi-addr { color: #fff; }
.site-footer table.hours { font-size: 18px; }
.site-footer table.hours th,
.site-footer table.hours td { color: #fff; border-bottom: 1px solid rgba(255,255,255,.2); padding: 12px 8px; }
.site-footer table.hours thead th { color: #fff; font-weight: 700; border-bottom: 2px solid rgba(255,255,255,.35); font-size: 16px; padding-bottom: 18px; }
.site-footer table.hours tbody th { font-size: 17px; }
.site-footer .mark-on { color: #fff; font-size: 30px; }
.site-footer .mark-exam { color: #fff; font-size: 30px; }
.site-footer .mark-off { color: rgba(255,255,255,.3); font-size: 17px; }
.site-footer .hours-notes { color: #fff; }
.site-footer .hours-notes li::before { color: #fff; }
.site-footer .access-tags span {
  color: #fff; background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.2);
}
.site-footer .footer-copy-bar {
  border-top-color: rgba(255,255,255,.15); color: rgba(255,255,255,.5);
}
.fi-sub { font-size: 13px; color: var(--accent); letter-spacing: .14em; margin-bottom: 6px; }
.fi-name { font-size: 35px; color: var(--heading); letter-spacing: .06em; margin-bottom: 20px; }
.fi-tel-line { display: flex; align-items: baseline; gap: 4px; margin-bottom: 8px; }
.fi-tel-label { font-family: "Helvetica Neue", Arial, sans-serif; font-size: 18px; font-weight: 700; color: var(--heading); }
.fi-tel {
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 32px; font-weight: 700; color: var(--heading); letter-spacing: .06em;
}
.fi-addr { font-size: 16px; color: var(--text-light); margin-bottom: 28px; }
.footer-content { padding: 72px 0 48px; border-top: none; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: stretch; }
.footer-left table.hours { margin-bottom: 0; }
table.hours { width: 100%; border-collapse: collapse; font-size: 16px; }
table.hours th, table.hours td { font-family: 'Helvetica Neue', Arial, sans-serif; }
table.hours tbody th { font-family: 'メイリオ', Meiryo, sans-serif; }
table.hours th, table.hours td { padding: 14px 8px; text-align: center; border-bottom: 1px solid var(--border); }
table.hours thead th { font-size: 13px; font-weight: 500; color: var(--text-light); padding-bottom: 16px; border-bottom: 2px solid var(--border); }
table.hours tbody th { text-align: left; font-weight: 500; padding-left: 0; white-space: nowrap; font-size: 14px; }
.mark-on { color: var(--accent); font-weight: 700; font-size: 20px; }
.mark-exam { color: #2c5f9e; font-weight: 700; font-size: 20px; }
.mark-off { color: #d0d0d0; font-size: 16px; }
.hours-notes { font-size: 15px; color: var(--text-light); margin-top: 20px; list-style: none; }
.hours-notes li { padding-left: 1.2em; position: relative; margin-bottom: 6px; }
.hours-notes li::before { content: "※"; position: absolute; left: 0; }
.access-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.access-tags span { font-size: 12.5px; color: var(--text-light); background: var(--warm); padding: 6px 16px; border-radius: 24px; border: 1px solid var(--border); }
.footer-copy-bar {
  border-top: 1px solid var(--border); padding: 20px 0;
  text-align: center; font-size: 12px; color: var(--text-light); opacity: .6;
}



/* ================================================================
   レスポンシブ（SP 860px以下）
   ================================================================ */

/* --- TOP レスポンシブ --- */
@media (max-width: 860px) {
  .wrap { padding: 0 20px; }
  body { overflow-x: hidden; word-break: normal; }

  /* ===== ヘッダー ===== */
  .header-top { padding: 14px 20px 10px; }
  .h-meta { display: none; }
  .header-main { flex-direction: column; align-items: flex-start; gap: 8px; }
  .h-logo { font-size: 24px; }
  .h-logo svg { width: 30px; height: 30px; }
  .header-nav { flex-wrap: wrap; gap: 0; }
  .header-nav a { padding: 6px 12px; font-size: 13px; letter-spacing: .04em; }
  .header-nav .h-tel { font-size: 16px; padding-left: 12px; }

  /* ===== ヒーロー ===== */
  .hero-full { margin-top: 64px; height: min(70vh, 500px); }
  .hero-card {
    left: 16px; right: 16px; bottom: 16px;
    padding: 28px 24px 24px; max-width: none;
  }
  .hero-card h1 { font-size: 24px; }
  .hero-card .hero-sub { font-size: 13px; }

  /* ===== 訴求セクション ===== */
  .appeal { padding: 40px 0; }
  .appeal-heading { display: block; }
  .appeal-heading h2 {
    font-size: clamp(22px, 6.6vw, 26px);
    line-height: 1.8; letter-spacing: .03em;
  }
  .appeal-en { display: block; font-size: 11px; letter-spacing: .12em; margin-bottom: 36px; }
  .endo-sec-photo img { aspect-ratio: 1280 / 923; }
  .appeal-grid { grid-template-columns: 1fr; gap: 32px; }
  .appeal-text p { font-size: 16px; }
  .appeal-photo img { height: 260px; }
  .appeal-watermark { display: none; }

  /* ===== 共通 ===== */
  .section-title { font-size: 34px; }
  .section-desc { font-size: 15px; margin-bottom: 36px; }
  .section-label { font-size: 11px; }

  /* ===== 内視鏡 ===== */
  .endo { padding: 40px 0 48px; }
  .endo-watermark { display: none; }
  .endo-grid { grid-template-columns: 1fr; gap: 24px; }
  .endo-card { border-radius: 16px 0 16px 0; }
  .endo-card img { height: 200px; }
  .endo-card .body { padding: 22px 20px 24px; }
  .endo-card h3 { font-size: 23px; }
  .endo-links { padding: 4px 16px; }
  .endo-links a { font-size: 16px; padding: 12px 0; }
  .schedule { padding: 28px 20px; border-radius: 16px 0 16px 0; }
  .schedule-header h3 { font-size: 28px; }
  .cal-grid { grid-template-columns: 1fr; gap: 32px; }
  .mini-cal h4 { font-size: 18px; }

  /* ===== Message ===== */
  .greeting { padding: 56px 0; }
  .greeting .wrap { grid-template-columns: 1fr; gap: 28px; }
  .greeting-text h2 { font-size: 26px; }

  .symptoms { padding: 48px 0; }
  .symptoms-watermark { display: none; }
  .symptoms .section-title { font-size: 24px; margin-bottom: 28px; }
  br.sp-only { display: inline; }
  .symptom-grid { grid-template-columns: repeat(2, 1fr); max-width: 100%; }
  .sg-item { padding: 20px 10px; }
  .sg-item span { font-size: 15px; }
  .greeting-photo img { height: 240px; border-radius: 16px 0 16px 0; }

  /* ===== 診療案内 ===== */
  .guide { padding: 56px 0; }
  .guide::before, .guide::after { border-radius: 0; }
  .guide-grid { grid-template-columns: 1fr; gap: 16px; }
  .guide-card { border-radius: 12px; padding: 24px 20px 22px; min-height: auto; }
  .guide-card .card-top { gap: 14px; }
  .guide-card .icon { width: 42px; height: 42px; padding: 8px; }
  .guide-card h3 { font-size: 20px; }
  .guide-card .card-desc { font-size: 15.5px; }
  .guide-card .card-link { font-size: 16px; }

  .doctor-card-inner { grid-template-columns: 1fr; gap: 24px; }
  .accordion-list { grid-template-columns: 1fr; }
  .endo-feature-grid { grid-template-columns: 1fr; gap: 20px; }
  .endo-feature-photo { max-width: 280px; }
  .endo-flow-grid { grid-template-columns: 1fr; gap: 16px; }
  .endo-flow-photo { max-width: 240px; }
  .doctor-photo-placeholder img { width: 100%; height: 100%; object-fit: cover; }
.doctor-photo-placeholder { max-width: 240px; }
  .doctor-name { font-size: 26px; }
  .doctor-message { font-size: 18px; }
  .about-service-grid { grid-template-columns: 1fr; }
  .about-table th { width: 120px; font-size: 14px; }
  .facility-grid { grid-template-columns: repeat(2, 1fr); }

  /* ===== お知らせ ===== */
  .news { padding: 40px 0; }
  .news .wrap { max-width: 100%; }
  .news-watermark { display: none; }
  .news-list li {
    grid-template-columns: 1fr auto;
    gap: 8px 12px; padding: 18px 0;
  }
  .news-list a.news-title { grid-column: 1 / -1; font-size: 15px; }
  .news-arrow { display: none; }

  /* ===== フッター ===== */
  .footer-content { padding: 48px 0 32px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .fi-name { font-size: 26px; }
  .fi-tel { font-size: 28px; }
  .site-footer table.hours { font-size: 15px; }
  .site-footer .mark-on { font-size: 24px; }
  .site-footer .mark-exam { font-size: 24px; }
  .map-embed { min-height: 280px !important; }
  .footer-copy-bar { padding: 16px 0; }
  .site-footer { padding-bottom: 80px; }

  /* ===== スマホ：ハンバーガーメニュー ===== */
  .header-nav { display: none !important; }
  .side-tabs { display: none !important; }
  .hamburger {
    display: flex !important; flex-direction: column; align-items: center; gap: 7px; cursor: pointer;
    padding: 14px 16px 10px; position: fixed; top: 12px; right: 16px; z-index: 300;
    background: rgba(108, 181, 173, .9); border-radius: 6px;
  }
  .hamburger span {
    display: block; width: 32px; height: 2px; background: #fff;
    transition: transform .3s, opacity .3s;
  }
  .hamburger .menu-label {
    font-size: 10px; color: #fff; letter-spacing: .2em; margin-top: 2px;
    font-family: "Zen Old Mincho", serif;
  }
  .hamburger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .hamburger.open span:nth-child(2) { opacity: 0; }
  .hamburger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .mobile-menu {
    display: none; position: fixed; inset: 0; z-index: 250;
    background: rgba(240, 241, 239, .97); backdrop-filter: blur(12px);
    flex-direction: column; align-items: center; justify-content: center; gap: 0;
  }
  .mobile-menu.open { display: flex; }
  .mobile-menu a {
    display: block; padding: 18px 0; font-size: 24px; color: var(--heading); font-family: "Zen Old Mincho", serif; font-weight: 400;
    letter-spacing: .12em; text-align: center; border-bottom: 1px solid rgba(0,0,0,.08);
    width: 260px;
  }
  .mobile-menu a:hover { color: var(--accent); }
  .mobile-menu .mm-sub {
    display: block; font-size: 14px; color: var(--accent);
    font-family: 'Zen Kaku Gothic New', sans-serif; font-weight: 500;
    margin-top: 4px; letter-spacing: .06em;
  }
  .mobile-menu .mm-close {
    position: absolute; top: 20px; right: 20px; width: 44px; height: 44px;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    font-size: 28px; color: var(--text-light);
  }
  .mobile-menu .mm-tel {
    margin-top: 28px; font-family: "Helvetica Neue", Arial, sans-serif;
    font-size: 24px; font-weight: 700; color: var(--heading); letter-spacing: .06em;
  }
  .mobile-menu .mm-addr {
    margin-top: 12px; font-size: 13px; color: var(--text-light);
  }

  /* ===== スマホ：折りたたみ電話バー ===== */
  .mobile-tel { display: none; }
  .mobile-contact {
    display: block; position: fixed; bottom: 0; left: 0; right: 0; z-index: 200;
  }
  .mobile-contact-bar {
    background: rgba(108, 181, 173, .92); backdrop-filter: blur(10px);
    color: #fff; text-align: center; padding: 14px 20px;
    font-size: 16px; letter-spacing: .1em; cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 10px;
  }
  .mobile-contact-bar .arrow {
    display: inline-block; font-size: 12px; transition: transform .3s;
  }
  .mobile-contact-bar.open .arrow { transform: rotate(180deg); }
  .mobile-contact-panel {
    display: none; background: #fff; padding: 28px 24px;
    box-shadow: 0 -4px 20px rgba(0,0,0,.1);
  }
  .mobile-contact-panel.open { display: block; }
  .mobile-contact-panel .mc-title {
    text-align: center; font-size: 17px; color: var(--text); margin-bottom: 20px;
  }
  .mobile-contact-panel .mc-schedule {
    display: flex; align-items: center; gap: 16px;
    padding: 16px 20px; margin-bottom: 12px;
    background: rgba(150, 114, 78, .9); border-radius: 12px;
    text-decoration: none; color: #fff; font-size: 17px; font-weight: 500;
  }
  .mobile-contact-panel .mc-schedule .mc-sched-icon { font-size: 22px; flex-shrink: 0; display: flex; align-items: center; }
  .mobile-contact-panel .mc-schedule .mc-phone-arrow { margin-left: auto; color: rgba(255,255,255,.6); }
  .mobile-contact-panel .mc-phone {
    display: flex; align-items: center; gap: 16px;
    padding: 16px 20px; border: 2px solid var(--border); border-radius: 12px;
    text-decoration: none; color: var(--text);
  }
  .mobile-contact-panel .mc-phone-icon {
    width: 44px; height: 44px; background: rgba(108, 181, 173, .15); border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-size: 20px;
    flex-shrink: 0;
  }
  .mobile-contact-panel .mc-phone-num {
    font-family: "Helvetica Neue", Arial, sans-serif;
    font-size: 26px; font-weight: 700; color: var(--heading); letter-spacing: .04em;
  }
  .mobile-contact-panel .mc-phone-note {
    font-size: 13px; color: var(--text-light); margin-top: 2px;
  }
  .mobile-contact-panel .mc-phone-arrow {
    margin-left: auto; font-size: 20px; color: var(--text-light);
  }
  .mobile-contact { display: block !important; }
}
.hamburger { display: none; }
.mobile-menu { display: none; }
.mobile-contact { display: none; }

/* 右端固定タブ（PC） */
.side-tabs {
  position: fixed; right: 0; top: 50%; transform: translateY(-50%);
  z-index: 100; display: flex; flex-direction: column; gap: 4px;
}
.side-tabs a {
  display: flex; align-items: center; justify-content: center;
  writing-mode: vertical-rl; text-orientation: mixed;
  padding: 20px 14px; font-size: 15px; letter-spacing: .12em;
  color: #fff; text-decoration: none;
  border-radius: 8px 0 0 8px;
  transition: padding .2s;
  font-weight: 500;
}
.side-tabs a:hover { padding: 20px 18px; }
.side-tabs .tab-schedule {
  background: #51B0B2;
}
.side-tabs .tab-gastro {
  background: #6D9BC4;
}
.side-tabs .tab-colono {
  background: #9370AB;
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }


/* --- 下層 レスポンシブ（上書き・追加） --- */
@media (max-width: 1360px) {
  .sub-header .header-nav a { padding: 8px 9px; }
  .sub-header .header-nav .nav-ja { font-size: 13.5px; }
  .sub-header .header-top { padding-right: 240px; }
  .h-tel-block { padding: 0 18px; }
  .h-tel-num { font-size: 19px; }
}
@media (max-width: 860px) {
  .wrap { padding: 0 20px; }
  .content-wrap { padding: 0 20px; }
  body { overflow-x: hidden; word-break: normal; }

  .sub-header .header-top { padding: 0 20px; height: 64px; }
  .sub-header .h-logo { font-size: 25px; }
  .h-logo-img { height: 36px; margin-right: 8px; }
  .sub-header .header-nav { display: none !important; }
  .side-tabs { display: none !important; }

  .page-banner { margin-top: 64px; }
  .page-banner::before { height: 120px; }
  .page-banner .wrap { padding: 32px 0 0; }
  .page-banner h1 { font-size: 28px; }

  .breadcrumb .wrap { font-size: 12px; }

  .page-content { padding: 40px 0 0; }
  .page-lead { font-size: 18px; margin-bottom: 48px; text-align: left; }

  .page-cta .cta-sub { font-size: 17px; }
  .page-nav { grid-template-columns: repeat(2, 1fr); gap: 8px; margin-bottom: 48px; }
  .page-nav a { padding: 12px 14px; font-size: 14px; }

  .sec { padding: 40px 0; }
  .sec-title { font-size: 34px; }
  .sec-body p { font-size: 16px; }
  .sec-grid { grid-template-columns: 1fr; gap: 28px; }
  .sec-grid.reverse { direction: ltr; }
  .sec-photo img { height: 220px; }
  .symptom-tags span { font-size: 15px; }

  .endo-link-cards { grid-template-columns: 1fr; gap: 16px; }
  .endo-link-card { padding: 20px; }
  .endo-link-card .elc-icon { width: 60px; height: 60px; }
  .endo-link-card .elc-text h4 { font-size: 23px; }
  .endo-link-card .elc-text p { font-size: 16px; }

  .page-cta h2 { font-size: 34px; }
  .page-cta .cta-tel { font-size: 28px; }
  .page-cta .cta-sub { font-size: 16px; }

  .first-visit { padding: 48px 0; }
  .first-visit .content-wrap { padding: 0 20px; }
  .first-visit .sec-title { font-size: 28px; }
  .fv-grid { grid-template-columns: 1fr; }
  .fv-card.full { grid-column: auto; }
  .fv-card h4 { font-size: 22px; }
  .fv-card p, .fv-card ul { font-size: 15px; }

  .checkup-list li { font-size: 16px; }

  .footer-content { padding: 48px 0 32px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .fi-name { font-size: 26px; }
  .fi-tel { font-size: 28px; }
  .site-footer table.hours { font-size: 15px; }
  .site-footer .mark-on { font-size: 24px; }
  .site-footer .mark-exam { font-size: 24px; }
  .map-embed { min-height: 280px !important; }
  .footer-copy-bar { padding: 16px 0; }
  .site-footer { padding-bottom: 80px; }

  .hamburger {
    display: flex !important; flex-direction: column; align-items: center; gap: 7px; cursor: pointer;
    padding: 14px 16px 10px; position: fixed; top: 12px; right: 16px; z-index: 300;
    background: rgba(108, 181, 173, .9); border-radius: 6px;
  }
  .hamburger span {
    display: block; width: 32px; height: 2px; background: #fff;
    transition: transform .3s, opacity .3s;
  }
  .hamburger .menu-label {
    font-size: 10px; color: #fff; letter-spacing: .2em; margin-top: 2px;
    font-family: "Zen Old Mincho", serif;
  }
  .hamburger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .hamburger.open span:nth-child(2) { opacity: 0; }
  .hamburger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .mobile-menu {
    display: none; position: fixed; inset: 0; z-index: 250;
    background: rgba(240, 241, 239, .97); backdrop-filter: blur(12px);
    flex-direction: column; align-items: center; justify-content: center; gap: 0;
  }
  .mobile-menu.open { display: flex; }
  .mobile-menu a {
    display: block; padding: 18px 0; font-size: 24px; color: var(--heading); font-family: "Zen Old Mincho", serif; font-weight: 400;
    letter-spacing: .12em; text-align: center; border-bottom: 1px solid rgba(0,0,0,.08);
    width: 260px;
  }
  .mobile-menu a:hover { color: var(--accent); }
  .mobile-menu .mm-sub {
    display: block; font-size: 14px; color: var(--accent);
    font-family: 'メイリオ', Meiryo, sans-serif; font-weight: 500;
    margin-top: 4px; letter-spacing: .06em;
  }
  .mobile-menu .mm-close {
    position: absolute; top: 20px; right: 20px; width: 44px; height: 44px;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    font-size: 28px; color: var(--text-light);
  }
  .mobile-menu .mm-tel {
    margin-top: 28px; font-family: "Helvetica Neue", Arial, sans-serif;
    font-size: 24px; font-weight: 700; color: var(--heading); letter-spacing: .06em;
  }
  .mobile-menu .mm-addr {
    margin-top: 12px; font-size: 13px; color: var(--text-light);
  }

  .mobile-tel { display: none; }
  .mobile-contact {
    display: block; position: fixed; bottom: 0; left: 0; right: 0; z-index: 200;
  }
  .mobile-contact-bar {
    background: rgba(108, 181, 173, .92); backdrop-filter: blur(10px);
    color: #fff; text-align: center; padding: 14px 20px;
    font-size: 16px; letter-spacing: .1em; cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 10px;
  }
  .mobile-contact-bar .arrow {
    display: inline-block; font-size: 12px; transition: transform .3s;
  }
  .mobile-contact-bar.open .arrow { transform: rotate(180deg); }
  .mobile-contact-panel {
    display: none; background: #fff; padding: 28px 24px;
    box-shadow: 0 -4px 20px rgba(0,0,0,.1);
  }
  .mobile-contact-panel.open { display: block; }
  .mobile-contact-panel .mc-schedule {
    display: flex; align-items: center; gap: 16px;
    padding: 16px 20px; margin-bottom: 12px;
    background: rgba(150, 114, 78, .9); border-radius: 12px;
    text-decoration: none; color: #fff; font-size: 17px; font-weight: 500;
  }
  .mobile-contact-panel .mc-schedule .mc-sched-icon { font-size: 22px; flex-shrink: 0; display: flex; align-items: center; }
  .mobile-contact-panel .mc-schedule .mc-phone-arrow { margin-left: auto; color: rgba(255,255,255,.6); }
  .mobile-contact-panel .mc-phone {
    display: flex; align-items: center; gap: 16px;
    padding: 16px 20px; border: 2px solid var(--border); border-radius: 12px;
    text-decoration: none; color: var(--text);
  }
  .mobile-contact-panel .mc-phone-icon {
    width: 44px; height: 44px; background: rgba(108, 181, 173, .15); border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-size: 20px;
    flex-shrink: 0;
  }
  .mobile-contact-panel .mc-phone-num {
    font-family: "Helvetica Neue", Arial, sans-serif;
    font-size: 26px; font-weight: 700; color: var(--heading); letter-spacing: .04em;
  }
  .mobile-contact-panel .mc-phone-note {
    font-size: 13px; color: var(--text-light); margin-top: 2px;
  }
  .mobile-contact-panel .mc-phone-arrow {
    margin-left: auto; font-size: 20px; color: var(--text-light);
  }
  .mobile-contact { display: block !important; }
}
.hamburger { display: none; }
.mobile-menu { display: none; }
.mobile-contact { display: none; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }


/* ===== 中間幅対応（ウィンドウを縮めた時の重なり防止） ===== */

/* 1201〜1560px：ロゴとメニューを段階的に縮小して1段を維持 */
@media (max-width: 1560px) {
  .sub-header .h-logo { font-size: 28px; }
  .h-logo-img { height: 38px; margin-right: 10px; }
  .sub-header .header-nav a { padding: 8px 10px; }
  .sub-header .header-nav .nav-ja { font-size: 14px; }
  .sub-header .header-top { padding-right: 260px; }
  .h-tel-num { font-size: 20px; }
  .h-tel-block { padding: 0 22px; }
}

/* 861〜1200px：PCメニューをたたみ、ハンバーガーに切り替え */
@media (min-width: 861px) and (max-width: 1200px) {
  .sub-header .header-nav { display: none !important; }
  .side-tabs { display: none !important; }
  .sub-header .header-top { padding: 0 20px 0 32px; }
  .hamburger {
    display: flex !important; flex-direction: column; align-items: center; gap: 7px; cursor: pointer;
    padding: 14px 16px 10px; position: fixed; top: 16px; right: 20px; z-index: 300;
    background: rgba(108, 181, 173, .9); border-radius: 6px;
  }
  .hamburger span {
    display: block; width: 32px; height: 2px; background: #fff;
    transition: transform .3s, opacity .3s;
  }
  .hamburger .menu-label {
    font-size: 10px; color: #fff; letter-spacing: .2em; margin-top: 2px;
    font-family: "Zen Old Mincho", serif;
  }
  .hamburger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .hamburger.open span:nth-child(2) { opacity: 0; }
  .hamburger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .mobile-menu {
    display: none; position: fixed; inset: 0; z-index: 250;
    background: rgba(240, 241, 239, .97); backdrop-filter: blur(12px);
    flex-direction: column; align-items: center; justify-content: center; gap: 0;
  }
  .mobile-menu.open { display: flex; }
  .mobile-menu a {
    display: block; padding: 18px 0; font-size: 24px; color: var(--heading); font-family: "Zen Old Mincho", serif; font-weight: 400;
    letter-spacing: .12em; text-align: center; border-bottom: 1px solid rgba(0,0,0,.08);
    width: 260px;
  }
  .mobile-menu a:hover { color: var(--accent); }
  .mobile-menu .mm-sub {
    display: block; font-size: 14px; color: var(--accent);
    font-family: 'Zen Kaku Gothic New', sans-serif; font-weight: 500;
    margin-top: 4px; letter-spacing: .06em;
  }
  .mobile-menu .mm-close {
    position: absolute; top: 20px; right: 20px; width: 44px; height: 44px;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    font-size: 28px; color: var(--text-light);
  }
  .mobile-menu .mm-tel {
    margin-top: 28px; font-family: "Helvetica Neue", Arial, sans-serif;
    font-size: 24px; font-weight: 700; color: var(--heading); letter-spacing: .06em;
  }
  .mobile-menu .mm-addr {
    margin-top: 12px; font-size: 13px; color: var(--text-light);
  }
}

/* ログイン中：WordPress管理バーの分だけヘッダーを下げる */
body.admin-bar .sub-header { top: 32px; }
@media (max-width: 782px) {
  body.admin-bar .sub-header { top: 46px; }
}

/* SP専用改行 */
.br-sp { display: none; }
.ttl-l1 { display: inline; }

/* 医院概要 内視鏡セクションの写真 */
.endo-sec-photo { margin-top: 28px; }
.endo-sec-photo img {
  width: 100%; max-width: 720px; margin: 0 auto;
  aspect-ratio: 1280 / 923; object-fit: cover;
  border-radius: 12px; display: block;
}
.page-about-endo .endo-link-cards { margin-top: 24px; }

/* ===== SP調整 2026-08-30 v2 ===== */
@media (max-width: 860px) {
  /* ① ヘッダー: 医院名を上下中央に、ハンバーガーもヘッダー高に合わせる */
  .sub-header .header-top {
    padding: 0 16px; height: 60px;
    display: flex; align-items: center;
  }
  .sub-header .header-main { height: 100%; display: flex; flex-direction: row; justify-content: flex-start; align-items: center; gap: 0; width: 100%; }
  .sub-header .h-logo { font-size: 22px; letter-spacing: .04em; line-height: 1; }
  .sub-header .h-logo a { display: inline-flex; align-items: center; }
  .h-logo-img { height: 30px; margin-right: 8px; }
  .hero-full { margin-top: 60px; }
  .page-banner { margin-top: 60px; }
  .hamburger { top: 6px; right: 10px; padding: 10px 12px 7px; gap: 6px; }
  .hamburger span { width: 28px; }
  .hamburger .menu-label { font-size: 9px; }

  /* ② FV: SPはテキストカード無しで写真をフルに見せ、直下の訴求見出しで補う */
  .hero-full { height: min(62vh, 480px); }
  .hero-card { display: none; }
  .appeal { padding-top: 44px; }
  .ttl-l1 { display: block; }

  /* ③ 内視鏡ページの画像: 全幅でおさまりよく */
  .endo-feature-photo { max-width: none; width: 100%; }
  .endo-flow-photo { max-width: none; width: 100%; }
  .endo-feature-photo img, .endo-flow-photo img { border-radius: 12px; }

  /* ④ 医院概要 掲示バナー群: 全幅・間隔を詰めて統一感 */
  .disclosure-links { flex-direction: column; gap: 10px !important; margin-top: 16px !important; }
  .disclosure-links .detail-link {
    display: flex; align-items: center; justify-content: space-between;
    width: 100%; box-sizing: border-box;
    font-size: 14.5px; line-height: 1.5; text-align: left;
    padding: 14px 18px;
  }

  /* ⑤ 見出し: 1行に収まるサイズに調整、収まらない場合は左端まで使って折返し */
  .sec-title { font-size: 27px; letter-spacing: .04em; }
  .page-cta h2 { font-size: 27px; }
  .page-cta-break h2 { font-size: 26px; }
  .cta-break h2 { font-size: 26px; }

  /* ⑥ 医師写真: 中央寄せ */
  .doctor-photo-placeholder { margin-left: auto; margin-right: auto; }

  /* ⑦ 医院概要 Endoscopyバナー2本も全幅に(院内掲示と同じ形) */
  .endo-links { flex-direction: column; gap: 10px !important; margin-top: 16px !important; }
  .endo-links .detail-link {
    display: flex; align-items: center; justify-content: space-between;
    width: 100%; box-sizing: border-box;
    font-size: 14.5px; line-height: 1.5; text-align: left;
    padding: 14px 18px;
  }
}

/* ===== フッター視認性(緑背景対応): タグと電話番号を白に ===== */
.site-footer .fi-sub { color: rgba(255,255,255,.95); }
.site-footer .fi-sub .tag { border-color: rgba(255,255,255,.75); color: #fff; }
.site-footer .fi-tel, .site-footer .fi-tel a { color: #fff; }
.site-footer .fi-tel-line a { color: #fff; }
.site-footer .access-tags span { border-color: rgba(255,255,255,.75); color: #fff; }
.site-footer a { color: #fff; }
