/* ==========================================================================
   littlesparkshospital.com 共通スタイル（軽量・モバイルファースト・システムフォント）
   外部リソース依存なし（Webフォント/外部CSS/JSを読み込まない = CWV最優先）
   ========================================================================== */

/* ---- デザイントークン ------------------------------------------------- */
:root {
  --brand:        #16697a;   /* サイトブランド（信頼系ティール） */
  --brand-dark:   #0f4d5a;
  --brand-light:  #e6f0f2;
  --accent:       #f5731f;   /* CTA（高視認オレンジ） */
  --accent-dark:  #d95d0c;
  --text:         #1f2933;
  --muted:        #5b6875;
  --border:       #e2e8f0;
  --soft-bg:      #f5f8fa;
  --bg:           #ffffff;
  --note-bg:      #fff8ef;
  --note-border:  #f5c48a;
  --maxw:         860px;
}

/* ---- ベース ------------------------------------------------------------ */
* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN",
    "Hiragino Sans", "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.85;
  color: var(--text);
  background: var(--bg);
  word-break: normal;
  overflow-wrap: anywhere;
}

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

a { color: var(--brand); }
a:hover { color: var(--brand-dark); }

/* ---- ヘッダー ---------------------------------------------------------- */
.site-header {
  background: var(--brand);
  color: #fff;
  border-bottom: 3px solid var(--brand-dark);
}
.site-header .inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.site-logo {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  letter-spacing: .02em;
}
.site-catch {
  font-size: .78rem;
  color: #d7eaee;
  margin: 0;
}

/* ---- グローバルナビ ---------------------------------------------------- */
.global-nav {
  background: var(--brand-dark);
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.global-nav ul {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
}
.global-nav a {
  display: block;
  padding: 11px 14px;
  color: #eaf4f6;
  text-decoration: none;
  font-size: .9rem;
  font-weight: 600;
}
.global-nav a:hover { background: rgba(255,255,255,.12); color: #fff; }

/* ---- パンくず ---------------------------------------------------------- */
.breadcrumb {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 8px 16px;
  font-size: .78rem;
  color: var(--muted);
}
.breadcrumb ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.breadcrumb li::after { content: "›"; margin-left: 6px; color: #aab4bd; }
.breadcrumb li:last-child::after { content: ""; }
.breadcrumb a { color: var(--brand); text-decoration: none; }

/* ---- レイアウト -------------------------------------------------------- */
.site-main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 8px 16px 48px;
}

/* ---- 記事本文 ---------------------------------------------------------- */
.post-content h1 {
  font-size: 1.5rem;
  line-height: 1.5;
  margin: 18px 0 20px;
  padding-bottom: 12px;
  border-bottom: 3px solid var(--brand);
}
.post-content h2 {
  font-size: 1.28rem;
  line-height: 1.5;
  margin: 44px 0 16px;
  padding: 10px 14px;
  background: var(--brand-light);
  border-left: 6px solid var(--brand);
  border-radius: 4px;
  scroll-margin-top: 12px;
}
.post-content h3 {
  font-size: 1.08rem;
  margin: 30px 0 12px;
  padding-left: 12px;
  border-left: 4px solid var(--accent);
  scroll-margin-top: 12px;
}
.post-content p { margin: 0 0 18px; }
.post-content small { color: var(--muted); font-size: .82rem; }

.post-content a {
  color: var(--brand-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* 本文内リンク（内部回遊）を少し強調 */
.post-content p > a[href^="/"] {
  font-weight: 600;
}

/* ---- 表 ---------------------------------------------------------------- */
.table-wrap { overflow-x: auto; margin: 0 0 20px; }
.post-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: .92rem;
  min-width: 480px;
}
.post-content th,
.post-content td {
  border: 1px solid var(--border);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}
.post-content thead th {
  background: var(--brand);
  color: #fff;
  white-space: nowrap;
}
.post-content tbody tr:nth-child(even) { background: var(--soft-bg); }

/* ---- FAQ (dl) ---------------------------------------------------------- */
.post-content dl { margin: 0 0 20px; }
.post-content dt {
  font-weight: 700;
  background: var(--soft-bg);
  border-left: 4px solid var(--brand);
  padding: 10px 12px;
  margin-top: 12px;
}
.post-content dd {
  margin: 0;
  padding: 12px;
  border: 1px solid var(--border);
  border-top: none;
}

/* ---- CTA ボタン -------------------------------------------------------- */
.cta { text-align: center; margin: 26px 0; }
.cta a {
  display: inline-block;
  width: 100%;
  max-width: 560px;
  padding: 17px 22px;
  background: var(--accent);
  color: #fff;
  font-size: 1.08rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 10px;
  box-shadow: 0 4px 0 var(--accent-dark), 0 6px 14px rgba(217,93,12,.28);
  transition: transform .05s ease, box-shadow .05s ease;
}
.cta a:hover { color: #fff; filter: brightness(1.04); }
.cta a:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--accent-dark); }

.cta-text { text-align: center; margin: -8px 0 26px; }
.cta-text a {
  color: var(--accent-dark);
  font-weight: 700;
  text-decoration: underline;
}

/* ---- 目次（TOC） ------------------------------------------------------- */
.toc {
  background: var(--soft-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px 18px;
  margin: 24px 0 32px;
}
.toc-title {
  font-weight: 700;
  font-size: 1rem;
  margin: 0 0 10px;
  color: var(--brand-dark);
}
.toc ol { margin: 0; padding-left: 1.3em; }
.toc > ol { counter-reset: toc; }
.toc li { margin: 4px 0; }
.toc a { color: var(--brand-dark); text-decoration: none; }
.toc a:hover { text-decoration: underline; }
.toc ol ol { padding-left: 1.1em; margin: 4px 0; }
.toc ol ol a { color: var(--muted); font-size: .9rem; }

/* ---- 汎用ページ本文（固定ページ stub） -------------------------------- */
.page-body h1 { font-size: 1.5rem; margin: 18px 0 18px; padding-bottom: 12px; border-bottom: 3px solid var(--brand); }
.page-body h2 { font-size: 1.2rem; margin: 32px 0 12px; padding-left: 12px; border-left: 5px solid var(--brand); }
.page-body p, .page-body li { margin: 0 0 14px; }
.page-body ul { padding-left: 1.3em; }

/* ---- サイドバー的補足（aside） ---------------------------------------- */
.related-box {
  background: var(--soft-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px 18px;
  margin: 32px 0;
}
.related-box h2 {
  font-size: 1.05rem;
  margin: 0 0 10px;
  color: var(--brand-dark);
}
.related-box ul { margin: 0; padding-left: 1.2em; }
.related-box li { margin: 6px 0; }

/* ---- フッター ---------------------------------------------------------- */
.site-footer {
  background: #10333b;
  color: #cfdee2;
  margin-top: 40px;
}
.site-footer .inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 28px 16px;
  font-size: .85rem;
}
.footer-nav {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}
.footer-nav a { color: #eaf4f6; text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; }
.footer-disclaimer { color: #9fb4ba; font-size: .78rem; line-height: 1.7; margin: 0 0 14px; }
.copyright { color: #8aa2a8; font-size: .78rem; margin: 0; }

/* ---- レスポンシブ（タブレット以上） ----------------------------------- */
@media (min-width: 720px) {
  body { font-size: 17px; }
  .site-header .inner { flex-direction: row; align-items: baseline; justify-content: space-between; }
  .post-content h1 { font-size: 1.85rem; }
  .post-content h2 { font-size: 1.45rem; }
  .cta a { width: auto; }
}
