
:root {
  --bg: #f7f5f0;
  --surface: #ffffff;
  --primary: #2f7a6b;
  --primary-dark: #1f5a4e;
  --primary-light: #eaf3f0;
  --accent: #e8a33d;
  --accent-light: #fdf6ea;
  --alert: #c25b4e;
  --alert-light: #fdf0ee;
  --text: #2b2b2b;
  --text-sub: #6d6d6d;
  --border: #e6e0d6;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow: 0 2px 12px rgba(31, 90, 78, 0.06);
  --shadow-hover: 0 8px 26px rgba(31, 90, 78, 0.14);
  --max: 880px;
  --font-display: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Hiragino Sans", sans-serif;
  --font-body: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.9;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

/* ---------- header ---------- */
.site-header {
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 20;
}
.site-header__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.site-header__logo img { height: 42px; width: auto; }
.site-header__text { display: flex; flex-direction: column; line-height: 1.35; }
.site-header__title {
  font-family: var(--font-display);
  font-size: 15.5px;
  font-weight: 700;
  color: var(--primary-dark);
  letter-spacing: .02em;
}
.site-header__sub { font-size: 11.5px; color: var(--text-sub); }
.site-header__cta { margin-left: auto; display: flex; gap: 8px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 9px 17px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  transition: .18s;
}
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 2px 8px rgba(47,122,107,.28); }
.btn-primary:hover { background: var(--primary-dark); text-decoration: none; transform: translateY(-1px); }
.btn-outline { background: #fff; color: var(--primary-dark); border: 1.5px solid var(--primary); }
.btn-outline:hover { background: var(--primary-light); text-decoration: none; }

/* ---------- hero ---------- */
.hero-visual {
  position: relative;
  min-height: 340px;
  display: flex;
  align-items: flex-end;
  background: linear-gradient(180deg, rgba(31,90,78,.15) 0%, rgba(31,90,78,.72) 100%),
              url('clinic-exterior.jpg') center 42% / cover no-repeat;
}
.hero-visual__inner {
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
  padding: 40px 20px 34px;
  color: #fff;
}
.hero-visual__eyebrow {
  display: inline-block;
  background: rgba(255,255,255,.22);
  border: 1px solid rgba(255,255,255,.5);
  padding: 4px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 14px;
  backdrop-filter: blur(4px);
}
.hero-visual h1 {
  font-family: var(--font-display);
  font-size: 30px;
  line-height: 1.45;
  margin: 0 0 12px;
  text-shadow: 0 2px 14px rgba(0,0,0,.3);
}
.hero-visual p {
  margin: 0;
  font-size: 14.5px;
  max-width: 640px;
  opacity: .96;
  text-shadow: 0 1px 8px rgba(0,0,0,.35);
}

main { max-width: var(--max); margin: 0 auto; padding: 0 20px 60px; }

/* ---------- category nav ---------- */
.section-label {
  font-family: var(--font-display);
  font-size: 19px;
  color: var(--primary-dark);
  margin: 40px 0 4px;
  display: flex;
  align-items: center;
  gap: 9px;
}
.section-label::before {
  content: "";
  width: 5px; height: 20px;
  background: var(--accent);
  border-radius: 3px;
}
.section-note { font-size: 13px; color: var(--text-sub); margin: 0 0 16px; }

.category-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 8px; }
.category-nav a {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 7px 15px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--text);
  transition: .16s;
}
.category-nav a:hover {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--primary-dark);
  text-decoration: none;
}

/* ---------- faq cards ---------- */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px 18px 22px;
  display: block;
  position: relative;
  overflow: hidden;
  transition: .18s;
}
.faq-card::before {
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--primary);
  opacity: .22;
  transition: .18s;
}
.faq-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-hover);
  text-decoration: none;
  transform: translateY(-2px);
}
.faq-card:hover::before { opacity: 1; }
.faq-card__tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: var(--primary-dark);
  background: var(--primary-light);
  padding: 3px 11px;
  border-radius: 999px;
  margin-bottom: 8px;
}
.faq-card__q {
  font-family: var(--font-display);
  font-size: 16.5px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 6px;
  line-height: 1.6;
}
.faq-card__q::before { content: "Q. "; color: var(--accent); }
.faq-card__excerpt { font-size: 13px; color: var(--text-sub); margin: 0; line-height: 1.75; }

/* ---------- article ---------- */
.breadcrumb { font-size: 12px; color: var(--text-sub); padding: 18px 0 0; }
.breadcrumb a { color: var(--text-sub); }

article.qa {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 34px 32px;
  margin-top: 16px;
  box-shadow: var(--shadow);
}
article.qa .qa-question {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.55;
  color: var(--primary-dark);
  margin: 0 0 20px;
  padding-bottom: 18px;
  border-bottom: 2px dotted var(--border);
}
article.qa .qa-question::before { content: "Q "; color: var(--accent); }
.qa-answer-label {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
  letter-spacing: .04em;
}
article.qa h2 {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--primary-dark);
  margin: 34px 0 12px;
  padding-left: 13px;
  border-left: 4px solid var(--accent);
  line-height: 1.55;
}
article.qa p { margin: 0 0 15px; font-size: 15.2px; }
article.qa ul, article.qa ol { margin: 0 0 16px; padding-left: 1.3em; font-size: 15.2px; }
article.qa li { margin-bottom: 7px; }
article.qa li::marker { color: var(--primary); }
article.qa strong { color: var(--primary-dark); }

/* 受診の目安の強調 */
article.qa p > strong:only-child {
  display: block;
  margin-top: 18px;
  font-size: 15px;
}

.notice-box {
  background: var(--accent-light);
  border: 1px solid #f0ddb0;
  border-left: 4px solid var(--accent);
  border-radius: 10px;
  padding: 15px 17px;
  font-size: 13.2px;
  line-height: 1.8;
  color: #6b5a2e;
  margin: 26px 0 0;
}

.cta-box {
  margin-top: 26px;
  background: linear-gradient(135deg, #379083 0%, #1f5a4e 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 28px 26px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(31,90,78,.22);
}
.cta-box p { margin: 0 0 15px; font-size: 14.5px; opacity: .96; }
.cta-box .btn-primary { background: #fff; color: var(--primary-dark); box-shadow: 0 3px 12px rgba(0,0,0,.16); }
.cta-box .btn-primary:hover { background: #f2f2f2; }
.cta-box .tel { font-size: 21px; letter-spacing: .5px; padding: 12px 28px; }

/* 監修表示（E-E-A-T） */
.author-box {
  display: flex;
  align-items: center;
  gap: 15px;
  background: var(--primary-light);
  border-radius: var(--radius);
  padding: 15px 18px;
  margin-top: 26px;
}
.author-box img {
  width: 58px; height: 58px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 18%;
  background: #fff;
  flex-shrink: 0;
  border: 2px solid #fff;
}
.author-box__text { font-size: 12.8px; line-height: 1.75; color: var(--text-sub); }
.author-box__text strong { display: block; font-size: 14px; color: var(--primary-dark); font-family: var(--font-display); }

.related { margin-top: 26px; }
.related h3 { font-size: 13px; color: var(--text-sub); margin: 0 0 10px; font-weight: 500; }
.related ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.related li { margin: 0; }
.related a {
  display: block;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 13.8px;
  transition: .16s;
}
.related a:hover { border-color: var(--primary); background: var(--primary-light); text-decoration: none; }

/* ---------- clinic info ---------- */
.clinic-info {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 26px;
  margin-top: 44px;
  box-shadow: var(--shadow);
}
.clinic-info h2 {
  font-family: var(--font-display);
  font-size: 19px;
  color: var(--primary-dark);
  margin: 0 0 18px;
  text-align: center;
}
.hours-table { width: 100%; border-collapse: collapse; font-size: 13.5px; margin-bottom: 14px; }
.hours-table th, .hours-table td {
  border: 1px solid var(--border);
  padding: 9px 4px;
  text-align: center;
}
.hours-table thead th { background: var(--primary-light); color: var(--primary-dark); font-weight: 700; }
.hours-table tbody th { background: #faf9f6; font-weight: 500; white-space: nowrap; font-size: 12.5px; padding: 9px 8px; }
.hours-table .mark { color: var(--primary); font-weight: 700; }
.hours-table .closed { color: var(--alert); font-size: 12.5px; }
.hours-note { font-size: 12.3px; color: var(--text-sub); margin: 0 0 4px; }

.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 20px; }
.info-item {
  background: var(--bg);
  border-radius: 12px;
  padding: 13px 15px;
  font-size: 13.2px;
  line-height: 1.75;
}
.info-item strong { display: block; color: var(--primary-dark); font-size: 12px; margin-bottom: 3px; }

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 44px;
  padding: 30px 20px 44px;
  text-align: center;
  color: var(--text-sub);
  font-size: 12.4px;
  line-height: 1.85;
}
.site-footer a { color: var(--text-sub); text-decoration: underline; }
.site-footer .clinic-name {
  font-family: var(--font-display);
  color: var(--text);
  font-size: 15px;
  margin-bottom: 8px;
}
.site-footer p { margin: 0 0 6px; }

/* ---------- responsive ---------- */
@media (max-width: 600px) {
  body { font-size: 15.5px; }
  .hero-visual { min-height: 270px; }
  .hero-visual h1 { font-size: 23px; }
  .hero-visual__inner { padding: 30px 18px 26px; }
  .site-header__sub { display: none; }
  .site-header__cta .btn { padding: 8px 13px; font-size: 12px; }
  article.qa { padding: 24px 19px; border-radius: var(--radius); }
  article.qa .qa-question { font-size: 19px; }
  article.qa h2 { font-size: 16.5px; }
  .info-grid { grid-template-columns: 1fr; }
  .clinic-info { padding: 22px 18px; }
  .hours-table { font-size: 12.5px; }
  .hours-table tbody th { font-size: 11.5px; padding: 8px 4px; }
}

/* ---------- 緊急度ボックス ---------- */
.urgency {
  border-radius: 14px;
  padding: 16px 18px 14px;
  margin: 18px 0;
  border: 1px solid;
}
.urgency h3 {
  margin: 0 0 9px;
  font-family: var(--font-display);
  font-size: 15.5px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.urgency ul { margin: 0; padding-left: 1.25em; font-size: 14.6px; }
.urgency li { margin-bottom: 5px; }
.urgency--alert {
  background: var(--alert-light);
  border-color: #eec4bd;
}
.urgency--alert h3 { color: var(--alert); }
.urgency--alert h3::before { content: "🚨"; font-size: 15px; }
.urgency--alert li::marker { color: var(--alert); }
.urgency--warn {
  background: var(--accent-light);
  border-color: #f0ddb0;
}
.urgency--warn h3 { color: #b07d22; }
.urgency--warn h3::before { content: "⚠️"; font-size: 15px; }
.urgency--warn li::marker { color: var(--accent); }

/* ---------- 比較表 ---------- */
.table-wrap { overflow-x: auto; margin: 18px 0; -webkit-overflow-scrolling: touch; }
.cmp-table {
  width: 100%;
  min-width: 420px;
  border-collapse: collapse;
  font-size: 14px;
  background: #fff;
}
.cmp-table th, .cmp-table td {
  border: 1px solid var(--border);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}
.cmp-table thead th {
  background: var(--primary-light);
  color: var(--primary-dark);
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
}
.cmp-table tbody th {
  background: #faf9f6;
  font-weight: 500;
  white-space: nowrap;
  font-size: 13.4px;
}

/* ---------- チェックリスト ---------- */
.checklist {
  background: var(--primary-light);
  border: 1px solid #cfe3dd;
  border-radius: 14px;
  padding: 17px 19px 14px;
  margin: 18px 0;
}
.checklist h3 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 15.5px;
  color: var(--primary-dark);
}
.checklist ul { list-style: none; margin: 0; padding: 0; font-size: 14.6px; }
.checklist li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 7px;
  line-height: 1.75;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: .45em;
  width: 15px; height: 15px;
  border: 2px solid var(--primary);
  border-radius: 4px;
  background: #fff;
}

/* ---------- 出典 ---------- */
.sources {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px dashed var(--border);
}
.sources h3 {
  font-size: 13px;
  color: var(--text-sub);
  margin: 0 0 9px;
  font-weight: 700;
}
.sources ul { margin: 0; padding-left: 1.2em; }
.sources li { font-size: 12.7px; margin-bottom: 5px; line-height: 1.7; color: var(--text-sub); }
.sources a { color: var(--primary); word-break: break-word; }

/* ---------- 記事内 目次 ---------- */
.toc {
  background: #fff;
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: 12px;
  padding: 16px 20px;
  margin: 22px 0;
}
.toc__title {
  font-family: var(--font-display);
  font-size: 14.5px;
  color: var(--primary-dark);
  margin: 0 0 9px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.toc__title::before { content: "📋"; font-size: 14px; }
.toc ol { margin: 0; padding-left: 1.3em; }
.toc li { margin-bottom: 5px; font-size: 14px; }
.toc li::marker { color: var(--primary); font-weight: 700; }
.toc a { color: var(--text); }
.toc a:hover { color: var(--primary); }

/* ---------- 検索窓 ---------- */
.search-wrap { margin: 26px 0 6px; position: relative; }
.search-box {
  width: 100%;
  padding: 14px 18px 14px 46px;
  font-size: 15px;
  font-family: var(--font-body);
  border: 1.5px solid var(--border);
  border-radius: 999px;
  background: #fff url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232f7a6b' stroke-width='2.2' stroke-linecap='round'><circle cx='11' cy='11' r='7'/><path d='M20 20l-3.6-3.6'/></svg>") no-repeat 16px center / 20px 20px;
  transition: .18s;
  color: var(--text);
}
.search-box:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(47,122,107,.12);
}
.search-box::placeholder { color: #a8a8a8; }
.search-status {
  font-size: 13px;
  color: var(--text-sub);
  margin: 12px 0 0;
  min-height: 20px;
}
.search-status strong { color: var(--primary-dark); }
.no-result {
  text-align: center;
  padding: 34px 20px;
  color: var(--text-sub);
  font-size: 14px;
  background: #fff;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
}

/* ---------- ページ内リンク調整 ---------- */
section[id], article h2[id] { scroll-margin-top: 76px; }

@media (max-width: 600px) {
  .urgency ul, .checklist ul { font-size: 14px; }
  .cmp-table { font-size: 13px; }
  .search-box { font-size: 14.5px; padding: 12px 16px 12px 42px; }
}

/* ---------- 人気キーワードタグ ---------- */
.quick-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin: 4px 0 8px;
}
.quick-tags__label {
  font-size: 12px;
  color: var(--text-sub);
  margin-right: 2px;
  white-space: nowrap;
}
.quick-tags a {
  font-size: 12.5px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 13px;
  color: var(--text);
  transition: .16s;
}
.quick-tags a:hover {
  background: var(--accent-light);
  border-color: var(--accent);
  color: #8a6519;
  text-decoration: none;
}

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

/* ヒーロー画像の見せ方を調整 */
.hero-visual {
  background-position: center 38%, center 38%;
}

@media (max-width: 600px) {
  .quick-tags__label { width: 100%; margin-bottom: 2px; }
  .quick-tags a { font-size: 12px; padding: 5px 11px; }
}



/* ---------- 同カテゴリの他の記事 ---------- */
.more-in-cat { margin-top: 26px; }
.more-in-cat h3 {
  font-size: 13px;
  color: var(--text-sub);
  margin: 0 0 10px;
  font-weight: 500;
}
.more-in-cat__list { display: flex; flex-wrap: wrap; gap: 7px; }
.more-in-cat__list a {
  font-size: 12.8px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 13px;
  color: var(--text);
  transition: .16s;
}
.more-in-cat__list a:hover {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--primary-dark);
  text-decoration: none;
}
.more-in-cat__all {
  display: inline-block;
  margin-top: 10px;
  font-size: 13px;
}

/* ---------- 更新日 ---------- */
.updated {
  font-size: 12px;
  color: var(--text-sub);
  text-align: right;
  margin: 18px 0 0;
}

/* ---------- 印刷 ---------- */
@media print {
  .site-header, .mobile-cta, .cta-box, .quick-tags, .search-wrap,
  .category-nav, .more-in-cat, .related, .hero-visual { display: none !important; }
  body { background: #fff; padding-bottom: 0; font-size: 11pt; line-height: 1.7; }
  main { max-width: 100%; padding: 0; }
  article.qa { border: none; box-shadow: none; padding: 0; border-radius: 0; }
  article.qa h2 { page-break-after: avoid; }
  .urgency, .checklist, .notice-box, .toc { break-inside: avoid; }
  .sources a::after { content: " (" attr(href) ")"; font-size: 9pt; color: #555; }
  a { color: #000; text-decoration: none; }
}

/* ---------- SNSリンク ---------- */
.sns {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 16px 0 4px;
}
.sns a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  border: 1.5px solid var(--border);
  background: #fff;
  color: var(--text);
  transition: .16s;
}
.sns a:hover { text-decoration: none; transform: translateY(-1px); box-shadow: var(--shadow-hover); }
.sns svg { width: 17px; height: 17px; flex-shrink: 0; }
.sns .sns-ig:hover { border-color: #c1358a; color: #c1358a; }
.sns .sns-fb:hover { border-color: #1877f2; color: #1877f2; }
.sns .sns-gg:hover { border-color: #1a73e8; color: #1a73e8; }

.sns-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 22px;
  margin-top: 20px;
  text-align: center;
  box-shadow: var(--shadow);
}
.sns-block h2 {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--primary-dark);
  margin: 0 0 6px;
}
.sns-block p { font-size: 13.5px; color: var(--text-sub); margin: 0; }

/* ---------- 医師紹介 ---------- */
.doctors {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 20px;
}
.doctor-card {
  flex: 1 1 190px;
  max-width: 230px;
  background: var(--bg);
  border-radius: var(--radius);
  padding: 16px 14px 14px;
  text-align: center;
}
.doctor-card img {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 16%;
  margin: 0 auto 10px;
  background: #fff;
  border: 3px solid #fff;
  box-shadow: 0 2px 10px rgba(31,90,78,.12);
}
.doctor-card__role {
  font-family: var(--font-display);
  font-size: 14.5px;
  color: var(--primary-dark);
  margin: 0 0 4px;
}
.doctor-card__desc { font-size: 12.4px; color: var(--text-sub); margin: 0; line-height: 1.7; }

@media (max-width: 600px) {
  .sns a { font-size: 12.4px; padding: 8px 13px; }
  .doctor-card { flex: 1 1 140px; padding: 13px 10px 11px; }
  .doctor-card img { width: 74px; height: 74px; }
}

/* ================================================================
   スマホ表示の最適化
   ================================================================ */
@media (max-width: 700px) {
  /* 読みやすさ：本文をやや大きく、行間を詰めすぎない */
  body { font-size: 16px; line-height: 1.85; }
  article.qa p,
  article.qa ul,
  article.qa ol { font-size: 15.5px; }

  /* 見出しの窮屈さを解消 */
  article.qa .qa-question { font-size: 20px; line-height: 1.5; }
  article.qa h2 { font-size: 17px; margin: 30px 0 11px; }

  /* 目次は折りたためるように（details化した場合の見た目） */
  .toc { padding: 14px 16px; }
  .toc li { margin-bottom: 7px; }

  /* タップ領域を最低44pxに */
  .category-nav a,
  .quick-tags a,
  .more-in-cat__list a,
  .sns a { min-height: 40px; display: inline-flex; align-items: center; }
  .related a { padding: 13px 14px; }
  .toc a { display: inline-block; padding: 3px 0; }

  /* 横スクロールの発生を防ぐ */
  body { overflow-x: hidden; }
  article.qa { word-break: break-word; overflow-wrap: anywhere; }

  /* ヒーローの文字量を調整 */
  .hero-visual h1 { font-size: 24px; }
  .hero-visual p { font-size: 14px; }
}

/* 目次の折りたたみ（details/summary） */
details.toc > summary {
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-size: 14.5px;
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  gap: 6px;
}
details.toc > summary::-webkit-details-marker { display: none; }
details.toc > summary::before { content: "📋"; font-size: 14px; }
details.toc > summary::after {
  content: "▼";
  margin-left: auto;
  font-size: 10px;
  color: var(--text-sub);
  transition: transform .2s;
}
details.toc[open] > summary::after { transform: rotate(180deg); }
details.toc > ol { margin-top: 10px; }

/* ================================================================
   表示モード切り替え（スマホでPC版レイアウトを見る）
   ================================================================ */
.view-toggle {
  text-align: center;
  padding: 4px 0 18px;
}
.view-toggle button {
  font-family: var(--font-body);
  font-size: 12.5px;
  color: var(--text-sub);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 18px;
  cursor: pointer;
  transition: .16s;
}
.view-toggle button:hover { border-color: var(--primary); color: var(--primary-dark); }

/* PC版表示を強制されたとき：viewportを固定幅にしてPCレイアウトを再現 */
html.force-desktop body { min-width: 1024px; }
html.force-desktop .site-header__cta { display: flex !important; }
html.force-desktop .site-header__sub { display: block !important; }
html.force-desktop .mobile-cta { display: none !important; }
html.force-desktop body { padding-bottom: 0 !important; }
html.force-desktop .info-grid { grid-template-columns: 1fr 1fr !important; }
html.force-desktop .hero-visual { min-height: 340px !important; }
html.force-desktop .hero-visual h1 { font-size: 30px !important; }

/* PC表示ではトグル自体を隠す（スマホ幅のときだけ出す） */
.view-toggle { display: none; }
@media (max-width: 700px) { .view-toggle { display: block; } }
html.force-desktop .view-toggle { display: block !important; }

/* ================================================================
   フローティング導線（電話・地図・公式HP）
   ================================================================ */

/* --- スマホ：画面下部に固定 --- */
.mobile-cta {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 40;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--border);
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
  gap: 7px;
}
.mobile-cta a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 48px;
  padding: 7px 4px;
  border-radius: 12px;
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
}
.mobile-cta a:hover { text-decoration: none; }
.mobile-cta svg { width: 19px; height: 19px; }
.mobile-cta__tel { background: var(--primary); color: #fff; flex: 1.5 !important; }
.mobile-cta__map { background: #fff; color: var(--primary-dark); border: 1.5px solid var(--primary); }
.mobile-cta__hp  { background: #fff; color: var(--text-sub); border: 1.5px solid var(--border); }

@media (max-width: 900px) {
  .mobile-cta { display: flex; }
  body { padding-bottom: 76px; }
}
@media (max-width: 700px) {
  .site-header__cta { display: none; }
}

/* --- PC：右下に浮かせる --- */
.float-cta {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 9px;
  align-items: flex-end;
}
.float-cta a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(31,90,78,.22);
  transition: .16s;
  white-space: nowrap;
}
.float-cta a:hover { text-decoration: none; transform: translateY(-2px); box-shadow: 0 7px 22px rgba(31,90,78,.3); }
.float-cta svg { width: 17px; height: 17px; flex-shrink: 0; }
.float-cta__tel { background: var(--primary); color: #fff; }
.float-cta__tel:hover { background: var(--primary-dark); }
.float-cta__map { background: #fff; color: var(--primary-dark); border: 1.5px solid var(--primary); }
.float-cta__map:hover { background: var(--primary-light); }

@media (max-width: 900px) { .float-cta { display: none; } }
html.force-desktop .float-cta { display: flex !important; }
html.force-desktop .mobile-cta { display: none !important; }

@media print { .float-cta { display: none !important; } }

/* ---------- ヘッダー：標榜8科目を折り返して表示 ---------- */
.site-header__inner { align-items: flex-start; }
.site-header__logo img { margin-top: 2px; }
.site-header__text { flex: 1 1 auto; min-width: 0; }
.site-header__sub {
  font-size: 11px;
  line-height: 1.5;
  color: var(--text-sub);
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.site-header__cta { align-self: center; }

@media (max-width: 900px) {
  /* スマホ・タブレットでは診療科目を1行に省略（フッターに全科目を記載済み） */
  .site-header__sub {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 10.5px;
  }
  .site-header__inner { align-items: center; }
}

/* ---------- 年度依存の情報であることの明示 ---------- */
.fy-note {
  background: var(--accent-light);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  padding: 11px 14px;
  font-size: 13.5px;
  line-height: 1.75;
  color: #6b5a2e;
  margin: 0 0 14px;
}
.fy-note strong { color: #8a6519; }

/* ---------- 参照した公的な相談窓口の注記 ---------- */
.std-note {
  background: #f3f7f6;
  border: 1px solid #d8e6e1;
  border-radius: 10px;
  padding: 12px 15px;
  font-size: 13.4px;
  line-height: 1.8;
  color: #4a5f59;
  margin: 0 0 16px;
}
.std-note strong { color: var(--primary-dark); }

/* ---------- 監修表示（画像なしの版） ---------- */
.author-box {
  display: block;
  border-left: 4px solid var(--primary);
  padding: 15px 18px;
}
.author-box__text strong { margin-bottom: 4px; }

/* 医師紹介ブロックは使用しなくなったため無効化 */
.doctors { display: none; }
