/* kabukuri.jp /blog/ 共通スタイル（scripts/build_blog.py が生成するページ用）
   既存サイト（public_html/assets/index-*.css）の配色に寄せる。外部フォント・CDNは使わない */
:root {
  --primary: #00a692;        /* 既存 --primary: oklch(65% .12 180) */
  --primary-dark: #00796b;   /* 白背景で読める濃さのリンク色 */
  --mint: #cdeede;           /* 既存 .bg-mint */
  --mint-soft: #eef9f4;
  --coral: #fa6863;          /* 既存 .bg-coral */
  --coral-soft: #fff1f0;
  --fg: #1a222b;             /* 既存 --foreground */
  --muted: #5b646f;          /* 既存 --muted-foreground */
  --border: #d7e9e5;         /* 既存 --border */
  --bg-soft: #f6f8fa;
  --radius: 12px;
  --font: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic UI", "Yu Gothic", Meiryo, system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.8;
  color: var(--fg);
  background: #fff;
  overflow-wrap: anywhere;
}

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

a { color: var(--primary-dark); text-underline-offset: 3px; }
a:hover { color: var(--primary); }

.container { width: 100%; max-width: 760px; margin: 0 auto; padding: 0 16px; }

/* ---- ヘッダー ---- */
.site-header { border-bottom: 1px solid var(--border); background: #fff; }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 56px; }
.brand { display: inline-flex; align-items: center; gap: 8px; color: var(--fg); font-weight: 700; font-size: 18px; text-decoration: none; }
.brand img { width: 32px; height: 32px; object-fit: contain; }
.header-nav a { color: var(--fg); font-weight: 700; text-decoration: none; padding: 8px 4px; }
.header-nav a:hover { color: var(--primary); }

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

.main { padding-bottom: 48px; }

/* ---- 一覧 ---- */
.page-title { font-size: 26px; line-height: 1.4; margin: 20px 0 24px; }
.card-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.card a { display: block; padding: 18px 18px 14px; border: 1px solid var(--border); border-radius: var(--radius); color: var(--fg); text-decoration: none; background: #fff; }
.card a:hover { border-color: var(--primary); background: var(--mint-soft); }
.card-thumb { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 630; object-fit: cover; border-radius: var(--radius); margin: 0 0 12px; background: var(--mint-soft); }
.card-title { font-size: 18px; line-height: 1.5; margin: 0 0 8px; }
.card-desc { margin: 0 0 8px; color: var(--muted); font-size: 15px; line-height: 1.7; }
.card-date { margin: 0; color: var(--muted); font-size: 13px; }
.empty { color: var(--muted); padding: 24px 0; }
.notfound-links { padding-left: 1.4em; }

/* ---- 記事 ---- */
.article-header h1 { font-size: 24px; line-height: 1.45; margin: 20px 0 12px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 0 0 20px; color: var(--muted); font-size: 13px; }
.article-eyecatch { margin: 0 0 24px; }
.article-eyecatch img { display: block; width: 100%; height: auto; border-radius: var(--radius); }

.supervisor { margin: 0 0 28px; padding: 14px 16px; border-radius: var(--radius); background: var(--mint-soft); border: 1px solid var(--mint); font-size: 14px; line-height: 1.7; }
.supervisor p { margin: 0; }
.supervisor-label { display: inline-block; margin-bottom: 4px !important; padding: 0 10px; border-radius: 999px; background: var(--primary); color: #fff; font-size: 12px; font-weight: 700; }
.supervisor-name { font-weight: 700; font-size: 16px; }
.supervisor-title { font-weight: 400; font-size: 14px; }
.supervisor-profile { margin-top: 6px !important; }
.supervisor-date { margin-top: 6px !important; color: var(--muted); font-size: 13px; }

.article-body { font-size: 17px; line-height: 1.9; }
.article-body > * + * { margin-top: 1.2em; }
.article-body p { margin: 0; }
.article-body > * + p { margin-top: 1.2em; }
.article-body h2, .faq h2, .references h2 {
  font-size: 21px; line-height: 1.5; margin: 2.2em 0 0.8em; padding: 10px 14px;
  border-left: 5px solid var(--primary); background: var(--mint-soft); border-radius: 0 8px 8px 0;
}
.article-body h3 { font-size: 18px; line-height: 1.5; margin: 1.8em 0 0.6em; padding-bottom: 6px; border-bottom: 2px solid var(--mint); }
.article-body ul, .article-body ol { padding-left: 1.4em; }
.article-body li + li { margin-top: 0.4em; }
.article-body li > ul, .article-body li > ol { margin-top: 0.4em; }
.article-body strong { background: linear-gradient(transparent 62%, #fff3b0 62%); }
.article-body figure { margin: 1.6em 0; }
.article-body figure img { display: block; margin: 0 auto; border-radius: 8px; }
.article-body blockquote { margin: 1.6em 0; padding: 12px 16px; border-left: 4px solid var(--border); background: var(--bg-soft); border-radius: 0 8px 8px 0; }
.article-body blockquote > * + * { margin-top: 0.6em; }
.article-body blockquote p, .article-body blockquote ul { margin: 0; }
.article-body blockquote > * + p, .article-body blockquote > * + ul { margin-top: 0.6em; }
.article-body hr { border: 0; border-top: 1px solid var(--border); margin: 2em 0; }
.article-body code { font-size: 0.9em; padding: 0.1em 0.35em; background: var(--bg-soft); border-radius: 4px; }
.article-body pre { overflow-x: auto; padding: 12px; background: var(--bg-soft); border-radius: 8px; font-size: 14px; }
.article-body pre code { padding: 0; background: none; }

/* 表：はみ出す場合は横スクロール */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 1.6em 0; border: 1px solid var(--border); border-radius: 8px; }
.table-wrap table { border-collapse: collapse; width: 100%; min-width: 480px; font-size: 15px; line-height: 1.6; }
.table-wrap th, .table-wrap td { padding: 10px 12px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.table-wrap th { background: var(--mint-soft); font-weight: 700; white-space: nowrap; }
.table-wrap tr:last-child td { border-bottom: 0; }
.table-wrap th:first-child, .table-wrap td:first-child { position: sticky; left: 0; z-index: 1; background: #fff; }  /* 横スクロール時に先頭列を固定（背景は body と同じ白） */
.table-wrap th:first-child { background: var(--mint-soft); }  /* ヘッダ行の先頭セルはヘッダの背景色 */
.table-wrap .align-center { text-align: center; }
.table-wrap .align-right { text-align: right; }

/* 注意枠（:::note / :::warning / :::info） */
.callout { padding: 14px 16px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--bg-soft); }
.callout > * + * { margin-top: 0.6em; }
.callout p, .callout ul, .callout ol { margin: 0; }
.callout-title { font-weight: 700; }
.callout-note { background: var(--mint-soft); border-color: var(--mint); }
.callout-warning { background: var(--coral-soft); border-color: #f9c4c2; }
.callout-warning .callout-title { color: #c2413c; }

/* FAQ・参考文献 */
.faq-item { padding: 14px 0; border-bottom: 1px solid var(--border); }
.faq-q { position: relative; margin: 0 0 6px; padding-left: 2em; font-size: 17px; line-height: 1.6; }
.faq-q::before { content: "Q"; position: absolute; left: 0; top: 0; color: var(--primary); font-weight: 800; }
.faq-a { position: relative; margin: 0; padding-left: 2em; font-size: 16px; line-height: 1.8; }
.faq-a::before { content: "A"; position: absolute; left: 0; top: 0; color: var(--coral); font-weight: 800; }
.references ol { padding-left: 1.4em; font-size: 14px; line-height: 1.7; }
.references li + li { margin-top: 0.4em; }

/* 開示ブロック（自由診療の限定解除表示） */
.disclosure { margin-top: 40px; padding: 16px; border-radius: var(--radius); background: var(--bg-soft); border: 1px solid var(--border); font-size: 16px; line-height: 1.75; color: var(--fg); }
.disclosure:empty { display: none; }
.disclosure h2, .disclosure h3 { font-size: 17px; margin: 0 0 8px; }
.disclosure p, .disclosure ul, .disclosure dl { margin: 0 0 8px; }
.disclosure dt { font-weight: 700; }
.disclosure dd { margin: 0 0 8px; }

/* Web予約CTA（blog-src/partials/cta.html。記事冒頭・本文中・記事末の3か所。コーラル系のバナー風） */
.blog-cta { margin: 2.4em 0; padding: 20px 16px 16px; border-radius: var(--radius); background: linear-gradient(135deg, #e0504b 0%, #f7655f 100%); color: #fff; text-align: center; box-shadow: 0 6px 18px rgba(224, 80, 75, 0.22); }
.blog-cta p { margin: 0; }
.blog-cta-eyebrow { display: inline-block; padding: 2px 12px; border-radius: 999px; background: rgba(0, 0, 0, 0.16); font-size: 13px; font-weight: 700; line-height: 1.7; letter-spacing: 0.02em; }
.blog-cta-headline { margin-top: 10px !important; font-weight: 800; line-height: 1.35; word-break: keep-all; overflow-wrap: anywhere; }
.blog-cta-dose { display: inline-block; font-size: 20px; }
.blog-cta-price { display: inline-block; font-size: 34px; letter-spacing: 0.01em; }
.blog-cta-price small { font-size: 14px; font-weight: 700; }
.blog-cta-from { font-size: 18px; }
.blog-cta-button, .blog-cta-button:hover { color: #c93c37; }
.blog-cta-button { display: block; width: 100%; max-width: 420px; margin: 14px auto 0; padding: 14px 16px; border-radius: 999px; background: #fff; font-weight: 800; font-size: 17px; line-height: 1.5; text-decoration: none; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.16); }
.blog-cta-button:hover { background: var(--coral-soft); }
.blog-cta-button:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.blog-cta-note { margin-top: 14px !important; padding: 10px 12px; border-radius: 8px; background: rgba(255, 255, 255, 0.96); color: var(--muted); font-size: 12.5px; line-height: 1.7; text-align: left; }
.blog-cta-sub { margin-top: 10px !important; font-size: 14px; }
.blog-cta-sub a, .blog-cta-sub a:hover { color: #fff; font-weight: 700; }
@media (min-width: 768px) {
  .blog-cta { padding: 24px 28px 18px; }
  .blog-cta-dose { font-size: 22px; }
  .blog-cta-price { font-size: 40px; }
}

/* ---- フッター ---- */
.site-footer { padding: 32px 0 40px; background: linear-gradient(#fff, var(--mint-soft)); border-top: 1px solid var(--border); text-align: center; font-size: 14px; color: var(--muted); }
.footer-brand { margin-bottom: 16px; }
.footer-nav, .footer-legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; margin-bottom: 14px; }
.footer-legal { font-size: 12px; }
.site-footer nav a { color: var(--muted); text-decoration: none; }
.site-footer nav a:hover { color: var(--primary); }
.copyright { margin: 8px 0 0; font-size: 13px; }

@media (min-width: 768px) {
  .page-title { font-size: 30px; }
  .article-header h1 { font-size: 30px; }
  .article-body h2, .faq h2, .references h2 { font-size: 23px; }
  .article-body h3 { font-size: 19px; }
}
