/*
Theme Name: Cocoon Child
Description: Cocoon専用の子テーマ（親まもりガイド）
Theme URI: https://wp-cocoon.com/
Author: 親まもりガイド
Template: cocoon-master
Version: 3.0.0
Text Domain: cocoon-child
*/

/**
 * 親まもりガイド｜記事デザイン「バランス型」正式版 v3.0
 *
 * 配置先：
 * /wp-content/themes/cocoon-child-master/style.css
 *
 * 適用範囲：
 * - 通常の投稿ページ body.single-post
 * - トップページ front-page.php には原則影響しない
 *
 * デザイン方針：
 * - 深いネイビーと青緑で信頼感を出す
 * - 本文は白を基調にし、長文の読みやすさを優先
 * - 比較表・判断カード・契約前確認を見つけやすくする
 * - 文章は狭め、比較表やカードは広く表示する
 */

/* =========================================================
   1. Design tokens
   ========================================================= */

:root {
  --oym-ink: #243a43;
  --oym-heading: #173f4b;
  --oym-navy: #163f52;
  --oym-navy-deep: #103444;
  --oym-teal: #16766d;
  --oym-teal-deep: #105f58;
  --oym-teal-soft: #eaf6f3;
  --oym-blue-soft: #e9f1f4;
  --oym-page: #f3f7f8;
  --oym-white: #ffffff;
  --oym-muted: #647980;
  --oym-line: #d9e7e5;
  --oym-line-dark: #c9dcda;
  --oym-accent: #c18645;
  --oym-accent-soft: #fbf3e8;
  --oym-danger: #9a453f;
  --oym-danger-soft: #faefed;
  --oym-info: #3c7186;
  --oym-info-soft: #edf5f8;
  --oym-gray-soft: #f4f7f7;
  --oym-shadow-card: 0 8px 26px rgba(18, 63, 73, 0.07);
  --oym-shadow-main: 0 18px 54px rgba(18, 63, 73, 0.08);
  --oym-radius-lg: 18px;
  --oym-radius-md: 13px;
  --oym-radius-sm: 9px;
  --oym-reading: 780px;
  --oym-wide: 980px;
}

/* =========================================================
   2. Page foundation
   ========================================================= */

body.single-post {
  color: var(--oym-ink);
  background: var(--oym-page) !important;
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Hiragino Sans",
    "Hiragino Kaku Gothic ProN",
    "Yu Gothic",
    "YuGothic",
    "Noto Sans JP",
    Meiryo,
    sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.single-post *,
body.single-post *::before,
body.single-post *::after {
  box-sizing: border-box;
}

body.single-post #container,
body.single-post .container,
body.single-post #content,
body.single-post .content,
body.single-post .content-in {
  background-color: transparent;
}

body.single-post .content-in {
  gap: 34px;
}

/* 記事本体 */
body.single-post #main.main {
  width: min(100%, 1100px);
  max-width: 1100px;
  margin-right: auto;
  margin-left: auto;
  padding: 0 0 64px;
  overflow: hidden;
  border: 1px solid #e0ebe9;
  border-radius: var(--oym-radius-lg);
  background: var(--oym-white) !important;
  box-shadow: var(--oym-shadow-main);
}

body.single-post .article {
  max-width: none;
  margin: 0;
}

/* =========================================================
   3. Article hero/header
   ========================================================= */

body.single-post .article-header {
  margin: 0 0 42px;
  padding: 38px 52px 30px;
  color: #ffffff;
  background:
    radial-gradient(
      circle at 88% 8%,
      rgba(93, 192, 177, 0.18),
      transparent 30%
    ),
    linear-gradient(135deg, var(--oym-navy) 0%, #146b66 100%);
}

body.single-post .entry-title {
  max-width: var(--oym-wide);
  margin: 0 auto 20px;
  padding: 0;
  border: 0;
  color: #ffffff;
  background: transparent;
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Hiragino Sans",
    "Yu Gothic",
    "Noto Sans JP",
    Meiryo,
    sans-serif;
  font-size: clamp(2rem, 3.4vw, 2.65rem);
  font-weight: 820;
  line-height: 1.38;
  letter-spacing: -0.018em;
  text-wrap: pretty;
}

body.single-post .date-tags,
body.single-post .post-date,
body.single-post .post-update,
body.single-post .entry-categories,
body.single-post .entry-meta {
  max-width: var(--oym-wide);
  margin-right: auto;
  margin-left: auto;
  color: #d7e7e9;
  font-size: 0.78rem;
}

body.single-post .article-header a {
  color: #ffffff;
}

body.single-post .breadcrumb {
  max-width: var(--oym-wide);
  margin: 0 auto 18px;
  color: var(--oym-muted);
  font-size: 0.78rem;
}

body.single-post .breadcrumb a {
  color: var(--oym-teal-deep);
  text-decoration: none;
}

/* アイキャッチを使う場合 */
body.single-post .eye-catch-wrap {
  max-width: var(--oym-wide);
  margin: 0 auto 28px;
}

body.single-post .eye-catch-wrap img {
  border-radius: 12px;
}

/* =========================================================
   4. Content layout and typography
   ========================================================= */

body.single-post .entry-content {
  max-width: var(--oym-wide);
  margin-right: auto;
  margin-left: auto;
  padding: 0 clamp(22px, 5vw, 58px);
  color: var(--oym-ink);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.94;
  letter-spacing: 0.008em;
  overflow-wrap: anywhere;
}

/* 読み物は狭く、比較部品は広く */
body.single-post .entry-content > p,
body.single-post .entry-content > ul:not(.oym-checklist),
body.single-post .entry-content > ol,
body.single-post .entry-content > blockquote,
body.single-post .entry-content > h2,
body.single-post .entry-content > h3,
body.single-post .entry-content > h4,
body.single-post .entry-content > .toc,
body.single-post .entry-content > .oym-box,
body.single-post .entry-content > .oym-update-meta,
body.single-post .entry-content > .oym-source-note,
body.single-post .entry-content > .oym-limit-note,
body.single-post .entry-content > .oym-source-list,
body.single-post .entry-content > details.oym-faq,
body.single-post .entry-content > .wp-block-details {
  width: min(100%, var(--oym-reading));
  margin-right: auto;
  margin-left: auto;
}

body.single-post .entry-content p {
  margin-top: 0;
  margin-bottom: 1.48em;
}

body.single-post .entry-content > p:first-child {
  color: #184d58;
  font-size: 1.1em;
  font-weight: 760;
  line-height: 1.82;
}

body.single-post .entry-content strong {
  color: var(--oym-heading);
  font-weight: 800;
}

body.single-post .entry-content small,
body.single-post figcaption,
body.single-post .wp-element-caption {
  color: var(--oym-muted);
  font-size: 0.8rem;
  line-height: 1.65;
}

body.single-post .entry-content a:not(.oym-button):not(.oym-next-article) {
  color: var(--oym-teal-deep);
  font-weight: 680;
  text-decoration: underline;
  text-decoration-color: rgba(16, 95, 88, 0.4);
  text-decoration-thickness: 1.4px;
  text-underline-offset: 0.2em;
}

body.single-post .entry-content a:not(.oym-button):not(.oym-next-article):hover {
  color: var(--oym-accent);
  text-decoration-color: currentColor;
}

/* =========================================================
   5. Headings
   ========================================================= */

body.single-post .entry-content h2 {
  margin-top: 3.6em;
  margin-bottom: 1.15em;
  padding: 0 0 0.55em;
  border: 0 !important;
  border-bottom: 3px solid var(--oym-teal) !important;
  color: var(--oym-heading);
  background: transparent !important;
  box-shadow: none !important;
  font-family: inherit;
  font-size: clamp(1.65rem, 3vw, 2rem);
  font-weight: 820;
  line-height: 1.48;
  letter-spacing: -0.01em;
}

body.single-post .entry-content h2::before,
body.single-post .entry-content h2::after {
  display: none !important;
}

body.single-post .entry-content h3 {
  margin-top: 2.6em;
  margin-bottom: 0.9em;
  padding: 0.13em 0 0.13em 0.78em;
  border: 0 !important;
  border-left: 5px solid var(--teal, var(--oym-teal)) !important;
  color: var(--oym-heading);
  background: transparent !important;
  box-shadow: none !important;
  font-family: inherit;
  font-size: clamp(1.25rem, 2.1vw, 1.48rem);
  font-weight: 800;
  line-height: 1.55;
}

body.single-post .entry-content h4 {
  margin-top: 2em;
  margin-bottom: 0.75em;
  padding-bottom: 0.35em;
  border-bottom: 1px dashed var(--oym-line-dark);
  color: var(--oym-heading);
  font-size: 1.08rem;
  font-weight: 800;
}

body.single-post .entry-content h2,
body.single-post .entry-content h3,
body.single-post .entry-content h4 {
  scroll-margin-top: 96px;
}

/* =========================================================
   6. Lists and quotations
   ========================================================= */

body.single-post .entry-content ul,
body.single-post .entry-content ol {
  padding-left: 1.5em;
}

body.single-post .entry-content li {
  margin: 0.42em 0;
}

body.single-post .entry-content li::marker {
  color: var(--oym-teal);
  font-weight: 850;
}

body.single-post .entry-content blockquote {
  padding: 1.2em 1.35em;
  border: 0;
  border-left: 5px solid var(--oym-teal);
  border-radius: 0 var(--oym-radius-sm) var(--oym-radius-sm) 0;
  color: #45616a;
  background: var(--oym-teal-soft);
  font-style: normal;
}

/* =========================================================
   7. Table of contents
   ========================================================= */

body.single-post .toc {
  margin-top: 2em;
  margin-bottom: 2.5em;
  padding: 1.4em 1.5em;
  border: 1px solid var(--oym-line);
  border-radius: 12px;
  background: #f6faf9;
  box-shadow: none;
}

body.single-post .toc-title {
  margin-bottom: 0.75em;
  color: var(--oym-heading);
  font-size: 1rem;
  font-weight: 850;
  text-align: left;
}

body.single-post .toc-list,
body.single-post .toc-list ul {
  margin: 0;
}

body.single-post .toc a {
  color: var(--oym-teal-deep);
  font-size: 0.91rem;
  text-decoration: none;
}

/* =========================================================
   8. Shared information boxes
   ========================================================= */

body.single-post .oym-box {
  margin-top: 1.8em;
  margin-bottom: 1.8em;
  padding: 1.4em 1.5em;
  border: 1px solid var(--oym-line);
  border-left: 6px solid var(--oym-teal);
  border-radius: var(--oym-radius-md);
  background: #ffffff;
  box-shadow: var(--oym-shadow-card);
}

body.single-post .oym-box > *:last-child {
  margin-bottom: 0;
}

body.single-post .oym-box__label {
  display: flex;
  align-items: center;
  gap: 0.55em;
  margin: 0 0 0.65em !important;
  color: var(--oym-heading);
  font-size: 0.92rem;
  font-weight: 900;
  letter-spacing: 0.025em;
}

body.single-post .oym-box__label::before {
  content: "";
  width: 0.68em;
  height: 0.68em;
  flex: 0 0 auto;
  border-radius: 3px;
  background: currentColor;
}

body.single-post .oym-box--summary {
  border-color: #cae2de;
  border-left-color: var(--oym-teal);
  background: var(--oym-teal-soft);
}

body.single-post .oym-box--official {
  border-color: #d2e2e8;
  border-left-color: var(--oym-info);
  background: var(--oym-info-soft);
}

body.single-post .oym-box--official .oym-box__label {
  color: var(--oym-info);
}

body.single-post .oym-box--editorial {
  border-color: #eadcc9;
  border-left-color: var(--oym-accent);
  background: var(--oym-accent-soft);
}

body.single-post .oym-box--editorial .oym-box__label {
  color: #8c5c28;
}

body.single-post .oym-box--unverified {
  border-color: #dde5e4;
  border-left-color: #74878a;
  background: var(--oym-gray-soft);
}

body.single-post .oym-box--unverified .oym-box__label {
  color: #566c70;
}

body.single-post .oym-box--caution {
  border-color: #ead5d2;
  border-left-color: var(--oym-danger);
  background: var(--oym-danger-soft);
}

body.single-post .oym-box--caution .oym-box__label {
  color: var(--oym-danger);
}

/* =========================================================
   9. Comparison tables
   ========================================================= */

body.single-post .wp-block-table,
body.single-post .oym-table-wrap {
  width: 100%;
  margin: 1.7em auto 2.1em;
  overflow-x: auto;
  border: 1px solid var(--oym-line);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: var(--oym-shadow-card);
  -webkit-overflow-scrolling: touch;
}

body.single-post .wp-block-table table,
body.single-post .oym-table-wrap table {
  width: 100%;
  min-width: 820px;
  margin: 0;
  border: 0;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.89rem;
  line-height: 1.62;
}

body.single-post .wp-block-table th,
body.single-post .oym-table-wrap th {
  padding: 0.95em 1em;
  border: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.14);
  color: #ffffff;
  background: var(--oym-navy);
  font-weight: 830;
  text-align: left;
  vertical-align: middle;
}

body.single-post .wp-block-table td,
body.single-post .oym-table-wrap td {
  padding: 0.92em 1em;
  border: 0;
  border-right: 1px solid var(--oym-line);
  border-bottom: 1px solid var(--oym-line);
  color: #304851;
  background: #ffffff;
  text-align: left;
  vertical-align: top;
}

body.single-post .wp-block-table tr:nth-child(even) td,
body.single-post .oym-table-wrap tr:nth-child(even) td {
  background: #f2f7f8;
}

body.single-post .wp-block-table tr:last-child td,
body.single-post .oym-table-wrap tr:last-child td {
  border-bottom: 0;
}

body.single-post .wp-block-table th:last-child,
body.single-post .wp-block-table td:last-child,
body.single-post .oym-table-wrap th:last-child,
body.single-post .oym-table-wrap td:last-child {
  border-right: 0;
}

body.single-post .oym-table-note {
  max-width: var(--oym-wide);
  margin: -1.2em auto 1.9em;
  color: var(--oym-muted);
  font-size: 0.78rem;
  line-height: 1.65;
}

/* =========================================================
   10. Cards: method, fit/not fit
   ========================================================= */

body.single-post .oym-method-grid,
body.single-post .oym-card-grid,
body.single-post .oym-fit-grid {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.05em;
  margin: 1.55em auto 2em;
}

body.single-post .oym-method-card,
body.single-post .oym-card,
body.single-post .oym-fit-card,
body.single-post .oym-not-fit-card {
  padding: 1.28em 1.35em;
  border: 1px solid var(--oym-line);
  border-radius: var(--oym-radius-md);
  background: #ffffff;
  box-shadow: var(--oym-shadow-card);
}

body.single-post .oym-method-card,
body.single-post .oym-card {
  position: relative;
}

body.single-post .oym-method-card h3,
body.single-post .oym-card h3 {
  width: auto !important;
  margin: 0 0 0.65em !important;
  padding: 0 !important;
  border: 0 !important;
  color: var(--oym-navy);
  font-size: 1.12rem !important;
}

body.single-post .oym-method-number {
  display: inline-grid;
  width: 2em;
  height: 2em;
  margin-bottom: 0.75em;
  place-items: center;
  border-radius: 8px;
  color: #ffffff;
  background: var(--oym-teal);
  font-size: 0.8rem;
  font-weight: 900;
}

body.single-post .oym-fit-card {
  border-top: 5px solid var(--oym-teal);
  background: #f1f8f6;
}

body.single-post .oym-not-fit-card {
  border-top: 5px solid var(--oym-accent);
  background: #fcf6ed;
}

body.single-post .oym-fit-card__title {
  margin: 0 0 0.65em;
  color: var(--oym-teal-deep);
  font-size: 1rem;
  font-weight: 900;
}

body.single-post .oym-not-fit-card .oym-fit-card__title {
  color: #855725;
}

body.single-post .oym-method-card > *:last-child,
body.single-post .oym-card > *:last-child,
body.single-post .oym-fit-card > *:last-child,
body.single-post .oym-not-fit-card > *:last-child {
  margin-bottom: 0;
}

/* =========================================================
   11. Checklist and flow
   ========================================================= */

body.single-post .oym-checklist {
  display: grid;
  width: min(100%, var(--oym-reading));
  gap: 0.7em;
  margin: 1.5em auto 2em;
  padding: 1.25em 1.35em;
  border: 1px solid var(--oym-line);
  border-radius: var(--oym-radius-md);
  background: #ffffff;
  box-shadow: var(--oym-shadow-card);
  list-style: none;
}

body.single-post .oym-checklist li {
  position: relative;
  margin: 0;
  padding-left: 1.85em;
}

body.single-post .oym-checklist li::before {
  content: "✓";
  position: absolute;
  top: 0.08em;
  left: 0;
  display: grid;
  width: 1.28em;
  height: 1.28em;
  place-items: center;
  border-radius: 5px;
  color: #ffffff;
  background: var(--oym-teal);
  font-size: 0.82em;
  font-weight: 900;
}

body.single-post .oym-flow {
  display: grid;
  width: min(100%, var(--oym-reading));
  gap: 0;
  margin: 1.8em auto;
  padding: 1.1em;
  border: 1px solid var(--oym-line);
  border-radius: var(--oym-radius-md);
  background: var(--oym-blue-soft);
}

body.single-post .oym-flow__step {
  position: relative;
  padding: 1em 1.1em;
  border: 1px solid var(--oym-line-dark);
  border-radius: var(--oym-radius-sm);
  background: #ffffff;
  text-align: center;
  font-weight: 780;
}

body.single-post .oym-flow__step:not(:last-child) {
  margin-bottom: 2.1em;
}

body.single-post .oym-flow__step:not(:last-child)::after {
  content: "↓";
  position: absolute;
  left: 50%;
  bottom: -1.75em;
  color: var(--oym-teal);
  font-size: 1.2rem;
  font-weight: 900;
  transform: translateX(-50%);
}

/* =========================================================
   12. Update/source notes
   ========================================================= */

body.single-post .oym-update-meta,
body.single-post .oym-source-note,
body.single-post .oym-limit-note {
  margin-top: 1.45em;
  margin-bottom: 1.45em;
  padding: 1em 1.15em;
  border: 1px solid var(--oym-line);
  border-radius: var(--oym-radius-sm);
  color: #536c74;
  background: #f7faf9;
  font-size: 0.84rem;
  line-height: 1.7;
}

body.single-post .oym-update-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4em 1.3em;
}

body.single-post .oym-update-meta strong,
body.single-post .oym-source-note strong,
body.single-post .oym-limit-note strong {
  color: var(--oym-heading);
}

body.single-post .oym-source-list {
  margin-top: 1.5em;
  margin-bottom: 1.5em;
  padding: 1.2em 1.3em;
  border: 1px solid var(--oym-line);
  border-radius: var(--oym-radius-sm);
  background: #f7faf9;
  font-size: 0.86rem;
}

body.single-post .oym-source-list__title {
  margin: 0 0 0.65em;
  color: var(--oym-heading);
  font-weight: 900;
}

/* =========================================================
   13. FAQ
   ========================================================= */

body.single-post .wp-block-details,
body.single-post details.oym-faq {
  margin-top: 0;
  margin-bottom: 0.9em;
  overflow: hidden;
  border: 1px solid var(--oym-line);
  border-radius: var(--oym-radius-md);
  background: #ffffff;
  box-shadow: 0 4px 16px rgba(18, 63, 73, 0.04);
}

body.single-post .wp-block-details summary,
body.single-post details.oym-faq summary {
  position: relative;
  padding: 1em 3.1em 1em 1.2em;
  color: var(--oym-heading);
  background: #f4f8f8;
  font-weight: 820;
  line-height: 1.6;
  cursor: pointer;
  list-style: none;
}

body.single-post .wp-block-details summary::-webkit-details-marker,
body.single-post details.oym-faq summary::-webkit-details-marker {
  display: none;
}

body.single-post .wp-block-details summary::after,
body.single-post details.oym-faq summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 1.05em;
  display: grid;
  width: 1.75em;
  height: 1.75em;
  place-items: center;
  border-radius: 7px;
  color: #ffffff;
  background: var(--oym-teal);
  font-size: 1rem;
  transform: translateY(-50%);
}

body.single-post .wp-block-details[open] summary::after,
body.single-post details.oym-faq[open] summary::after {
  content: "−";
}

body.single-post .wp-block-details > *:not(summary),
body.single-post details.oym-faq > *:not(summary) {
  margin-right: 1.2em;
  margin-left: 1.2em;
}

body.single-post .wp-block-details > *:last-child,
body.single-post details.oym-faq > *:last-child {
  margin-bottom: 1.1em;
}

/* =========================================================
   14. CTA / internal link
   ========================================================= */

body.single-post .oym-button,
body.single-post .wp-block-button__link {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0.72em 1.25em;
  border: 1px solid var(--oym-teal);
  border-radius: 8px;
  color: #ffffff !important;
  background: var(--oym-teal);
  box-shadow: 0 8px 20px rgba(22, 118, 109, 0.18);
  font-weight: 850;
  text-align: center;
  text-decoration: none !important;
  transition: 0.18s ease;
}

body.single-post .oym-button:hover,
body.single-post .wp-block-button__link:hover {
  transform: translateY(-2px);
  background: var(--oym-teal-deep);
}

body.single-post .oym-next-article {
  position: relative;
  display: block;
  width: min(100%, var(--oym-reading));
  margin: 2.2em auto;
  padding: 1.3em 3.4em 1.3em 1.4em;
  border: 1px solid #cde1de;
  border-radius: var(--oym-radius-md);
  color: var(--oym-ink) !important;
  background: linear-gradient(135deg, #ffffff 0%, var(--oym-teal-soft) 100%);
  box-shadow: var(--oym-shadow-card);
  text-decoration: none !important;
  transition: 0.18s ease;
}

body.single-post .oym-next-article::after {
  content: "→";
  position: absolute;
  top: 50%;
  right: 1.2em;
  display: grid;
  width: 2em;
  height: 2em;
  place-items: center;
  border-radius: 8px;
  color: #ffffff;
  background: var(--oym-teal);
  font-weight: 900;
  transform: translateY(-50%);
}

body.single-post .oym-next-article:hover {
  transform: translateY(-2px);
  border-color: var(--oym-teal);
  box-shadow: 0 14px 34px rgba(18, 63, 73, 0.11);
}

body.single-post .oym-next-article__label {
  display: block;
  margin-bottom: 0.3em;
  color: var(--oym-accent);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

body.single-post .oym-next-article__title {
  display: block;
  color: var(--oym-heading);
  font-size: 1.06rem;
  font-weight: 850;
  line-height: 1.55;
}

body.single-post .oym-next-article__description {
  display: block;
  margin-top: 0.4em;
  color: var(--oym-muted);
  font-size: 0.85rem;
  line-height: 1.65;
}

/* =========================================================
   15. Images / Cocoon extras
   ========================================================= */

body.single-post .entry-content img {
  height: auto;
  border-radius: var(--oym-radius-sm);
}

body.single-post .entry-content figure {
  margin: 1.8em auto;
}

body.single-post .related-entry-heading,
body.single-post .comment-title,
body.single-post .footer-meta {
  color: var(--oym-heading);
}

body.single-post .related-entry-card-wrap {
  border-radius: var(--oym-radius-sm);
  transition: background-color 0.18s ease;
}

body.single-post .related-entry-card-wrap:hover {
  background: var(--oym-teal-soft);
}

/* =========================================================
   16. Accessibility
   ========================================================= */

body.single-post a:focus-visible,
body.single-post button:focus-visible,
body.single-post summary:focus-visible {
  outline: 3px solid rgba(193, 134, 69, 0.52);
  outline-offset: 3px;
  border-radius: 5px;
}

/* =========================================================
   17. Responsive
   ========================================================= */

@media (max-width: 1023px) {
  body.single-post #main.main {
    width: min(100% - 24px, 1000px);
  }

  body.single-post .entry-content {
    padding-right: 30px;
    padding-left: 30px;
  }
}

@media (max-width: 767px) {
  body.single-post {
    background: #ffffff !important;
  }

  body.single-post #main.main {
    width: 100%;
    margin: 0;
    padding-bottom: 44px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  body.single-post .article-header {
    margin-bottom: 30px;
    padding: 34px 18px 27px;
  }

  body.single-post .entry-title {
    font-size: clamp(1.82rem, 7vw, 2.25rem);
    line-height: 1.42;
  }

  body.single-post .entry-content {
    padding-right: 17px;
    padding-left: 17px;
    font-size: 16px;
    line-height: 1.9;
  }

  body.single-post .entry-content > p:first-child {
    font-size: 1.06em;
  }

  body.single-post .entry-content h2 {
    margin-top: 3.15em;
    font-size: clamp(1.42rem, 6vw, 1.72rem);
  }

  body.single-post .entry-content h3 {
    margin-top: 2.3em;
    font-size: clamp(1.16rem, 5vw, 1.36rem);
  }

  body.single-post .oym-method-grid,
  body.single-post .oym-card-grid,
  body.single-post .oym-fit-grid {
    grid-template-columns: 1fr;
  }

  body.single-post .oym-box,
  body.single-post .oym-method-card,
  body.single-post .oym-card,
  body.single-post .oym-fit-card,
  body.single-post .oym-not-fit-card {
    padding: 1.1em 1.05em;
  }

  body.single-post .wp-block-table table,
  body.single-post .oym-table-wrap table {
    min-width: 760px;
    font-size: 0.83rem;
  }

  body.single-post .wp-block-table th,
  body.single-post .wp-block-table td,
  body.single-post .oym-table-wrap th,
  body.single-post .oym-table-wrap td {
    padding: 0.75em 0.78em;
  }

  body.single-post .oym-update-meta {
    display: grid;
    gap: 0.3em;
  }

  body.single-post .oym-button,
  body.single-post .wp-block-button,
  body.single-post .wp-block-button__link {
    width: 100%;
  }
}

/* =========================================================
   18. Reduced motion / print
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
  body.single-post *,
  body.single-post *::before,
  body.single-post *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media print {
  body.single-post,
  body.single-post #main.main {
    color: #000;
    background: #fff !important;
    box-shadow: none;
  }

  body.single-post #main.main {
    border: 0;
  }

  body.single-post .article-header {
    padding: 0 0 24px;
    color: #000;
    background: #fff;
  }

  body.single-post .entry-title,
  body.single-post .date-tags,
  body.single-post .post-date,
  body.single-post .post-update,
  body.single-post .entry-categories,
  body.single-post .entry-meta {
    color: #000;
  }

  body.single-post .sns-share,
  body.single-post .sns-follow,
  body.single-post .sidebar,
  body.single-post .oym-button {
    display: none !important;
  }

  body.single-post .oym-box,
  body.single-post .oym-method-card,
  body.single-post .oym-card,
  body.single-post .oym-fit-card,
  body.single-post .oym-not-fit-card,
  body.single-post .oym-next-article {
    break-inside: avoid;
    box-shadow: none;
  }
}

/* 記事タイトルの不自然な単語分割を防ぐ */
@media (min-width: 768px) {
  body.single-post .article-header {
    margin-bottom: 26px;
    padding: 34px 48px 28px;
  }

  body.single-post .entry-title {
    max-width: 1180px;
    font-size: clamp(2rem, 3vw, 2.55rem);
    line-height: 1.34;
    word-break: keep-all;
    overflow-wrap: normal;
    text-wrap: balance;
  }
}

/* 記事タイトルを中央揃えにする */
body.single-post .entry-title {
  max-width: 1100px;
  margin-right: auto;
  margin-left: auto;
  text-align: center;
  word-break: keep-all;
  overflow-wrap: normal;
  text-wrap: balance;
}

/* 投稿日も中央へ移動する */
body.single-post .date-tags,
body.single-post .entry-meta {
  justify-content: center;
  text-align: center;
}

body.single-post .post-date,
body.single-post .post-update {
  float: none;
  display: inline-block;
}