/* =============================================================
   本文コンテンツ共通スタイル（固定ページ・投稿[page.php / single.php]専用）
   docs/DESIGN.md のトークンに準拠

   ※ すべて body.page / body.single-post 配下に限定し、
     survey.css 側（body.single-survey 等）と衝突しないようにしている。
============================================================= */
:root {
  --content-primary:     #f2952c;
  --content-primary-500: #D4500A;
  --content-accent:      #F7C948;
  --content-dark:        #3D2B1F;
  --content-bg:          #FDF5F0;
  --content-border:      #E8D8CE;
  --content-text:        #2D2420;
  --shadow-card:         0 10px 15px -3px rgba(168,58,8,.08), 0 4px 6px -2px rgba(168,58,8,.04);
  --content-measure:     610px; /* 本文1行の最大幅。広げたい場合はここを変更 */
}

.content-inner {
  max-width: 840px;
  margin: 0 auto;
  padding: 0 20px;
}

/* =============================================================
   本文タイポグラフィ
============================================================= */
body.page .entry-content,
body.single-post .entry-content {
  margin: 30px auto;
}
/* 本文の各ブロックを読みやすい幅に収めて中央寄せ（wide / full / 左右寄せは除外） */
body.page .entry-content > *:not(.alignwide):not(.alignfull):not(.alignleft):not(.alignright),
body.single-post .entry-content > *:not(.alignwide):not(.alignfull):not(.alignleft):not(.alignright) {
  max-width: var(--content-measure);
  margin-left: auto;
  margin-right: auto;
}
body.page .entry-content,
body.single-post .entry-content {
  font-size: 16px;
  line-height: 1.85;
  color: var(--content-text);
}
body.page .entry-content h2,
body.single-post .entry-content h2 {
  font-size: 26px;
  font-weight: 800;
  color: var(--content-dark);
  line-height: 1.4;
  margin: 48px 0 20px;
  padding-bottom: 12px;
  border-bottom: 3px solid var(--content-primary);
}
body.page .entry-content h2:first-child,
body.single-post .entry-content h2:first-child { margin-top: 0; }
body.page .entry-content h3,
body.single-post .entry-content h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--content-dark);
  margin: 36px 0 14px;
  padding-left: 12px;
  border-left: 4px solid var(--content-accent);
}
body.page .entry-content h4,
body.single-post .entry-content h4 {
  font-size: 17px;
  font-weight: 700;
  color: var(--content-dark);
  margin: 28px 0 12px;
}
body.page .entry-content p,
body.single-post .entry-content p { margin: 0 0 20px; }
body.page .entry-content a,
body.single-post .entry-content a {
  color: var(--content-primary-500);
  text-decoration: underline;
  text-underline-offset: 2px;
}
body.page .entry-content a:hover,
body.single-post .entry-content a:hover { color: var(--content-primary); }
body.page .entry-content strong,
body.single-post .entry-content strong { color: var(--content-dark); font-weight: 700; }
body.page .entry-content ul,
body.page .entry-content ol,
body.single-post .entry-content ul,
body.single-post .entry-content ol {
  margin: 0 0 20px;
  padding-left: 1.4em;
}
body.page .entry-content li,
body.single-post .entry-content li { margin-bottom: 8px; }
body.page .entry-content ul li::marker,
body.single-post .entry-content ul li::marker { color: var(--content-primary); }
body.page .entry-content blockquote,
body.single-post .entry-content blockquote {
  margin: 28px 0;
  padding: 20px 24px;
  background: var(--content-bg);
  border-left: 4px solid var(--content-primary);
  border-radius: 8px;
  color: #5a4030;
  font-style: normal;
}
body.page .entry-content blockquote p:last-child,
body.single-post .entry-content blockquote p:last-child { margin-bottom: 0; }
body.page .entry-content img,
body.single-post .entry-content img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
}
body.page .entry-content figure,
body.single-post .entry-content figure { margin: 32px 0; }
body.page .entry-content figcaption,
body.single-post .entry-content figcaption {
  font-size: 13px;
  color: #8a6a50;
  text-align: center;
  margin-top: 8px;
}
body.page .entry-content hr,
body.single-post .entry-content hr {
  border: none;
  border-top: 1px solid var(--content-border);
  margin: 40px 0;
}
body.page .entry-content table,
body.single-post .entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 14px;
  border-radius: 8px;
  overflow: hidden;
}
body.page .entry-content table th,
body.page .entry-content table td,
body.single-post .entry-content table th,
body.single-post .entry-content table td {
  padding: 12px 16px;
  border: 1px solid var(--content-border);
  text-align: left;
}
body.page .entry-content table th,
body.single-post .entry-content table th {
  background: #F5EDE8;
  color: var(--content-dark);
  font-weight: 700;
}
body.page .entry-content code,
body.single-post .entry-content code {
  background: #F5EDE8;
  color: var(--content-primary-500);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
}
body.page .entry-content pre,
body.single-post .entry-content pre {
  background: var(--content-dark);
  color: #fff;
  padding: 20px;
  border-radius: 12px;
  overflow-x: auto;
  margin: 28px 0;
}
body.page .entry-content pre code,
body.single-post .entry-content pre code {
  background: none;
  color: inherit;
  padding: 0;
}

/* 見出しアンカー（目次リンク等からの遷移用） */
body.page .entry-content h2[id],
body.page .entry-content h3[id],
body.single-post .entry-content h2[id],
body.single-post .entry-content h3[id] { scroll-margin-top: 96px; }
