/* =============================================================
   neumee 記事トンマナ CSS  （design.md 準拠 / 2026-07-10）
   仕様書: Documents/案件/マイピル/リブランディング/design.md
   核: 温かみ / 清潔感 / ミニマル

   スコープ方針:
   - 記事本文 .post_content とその見出しにのみ適用。
   - SWELL 本体（ヘッダー/フッター/ナビ）の font-family は上書きしない。
   - 角丸はネストスケール 32/24/16/8 のみ。影はオフセットのみのフラット。
   - メイン=コーラル #FF704A / サブ=ネイビー #404890（男性向け=AGA）。
   ============================================================= */

:root {
  --color-font: #3C3C3C;
  --color-font-gray: #A1ACB9;
  --color-background: #F2F6FA;
  --color-white: #FFFFFF;
  --color-bg-orange: #FFF1ED;
  --color-bg-green: #F1F9F4;
  --color-border: #CED4DB;
  --color-border-light: #EAECEF;
  --color-main: #FF704A;
  --color-marker: #FFE2DB;
  --color-navy: #404890;
  --shadow-flat: 0px 4px 0 rgba(117, 133, 153, .2);
  --shadow-flat-light: 0px 2px 0 rgba(161, 172, 185, .1);
}

/* ---- 本文タイポグラフィ（フォントは SWELL 設定=Noto Sans JP に委ねる。色のみ指定）---- */
.post_content,
.post_content p,
.post_content li,
.post_content th,
.post_content td,
.post_content dd,
.post_content dt {
  color: var(--color-font);
}
.post_content {
  line-height: 1.9;
  letter-spacing: .02em;
}
.post_content p {
  margin: 0 0 1.4em;
}

/* 見出し（h2/h3/h4）は SWELL 本体のデザインに委ねる。
   （2026-07-10 撤去：独自の背景バンド/ボーダー等がSWELL標準と競合し見出しが崩れたため） */

/* ---- strong 強調（マーカーなしの素の強調） ---- */
.post_content strong {
  font-weight: 700;
  color: var(--color-font);
}

/* ---- リンク: コーラル + 下線 ---- */
.post_content a {
  color: var(--color-main);
  text-decoration: underline;
  text-underline-offset: .15em;
  text-decoration-thickness: 1px;
  transition: opacity .2s ease;
}
.post_content a:hover { opacity: .75; }

/* ---- リスト: コーラルのマーカー ---- */
.post_content ul > li::marker { color: var(--color-main); }
.post_content ol > li::marker { color: var(--color-main); font-weight: 600; }
.post_content ul,
.post_content ol { margin: 0 0 1.5em; padding-left: 1.4em; }
.post_content li { margin: .4em 0; }

/* ---- テーブル: ネイビーのヘッダ + 角丸12px + フラット外観 ---- */
.post_content table {
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--color-border-light);
  border-radius: 12px;
  overflow: hidden;
  width: 100%;
  margin: 1.6em 0;
}
.post_content table th {
  background: var(--color-navy);
  color: #fff;
  font-weight: 700;
  text-align: left;
  padding: .7em .9em;
  border: none;
}
.post_content table td {
  padding: .7em .9em;
  border: none;
  border-top: 1px solid var(--color-border-light);
  background: var(--color-white);
}
.post_content table tr:nth-child(even) td { background: var(--color-background); }

/* blockquote（監修医師コメント等）は SWELL 標準デザインに委ねる
   （2026-07-10 撤去：独自装飾をやめ、SWELLデフォルトの引用スタイルを使用） */

/* ---- 図表画像: 角丸16px + 軽いフラット影 ---- */
.post_content figure img,
.post_content .wp-block-image img {
  border-radius: 16px;
}
.post_content figure {
  margin: 1.8em 0;
}
.post_content figcaption {
  color: var(--color-font-gray);
  font-size: .85em;
  text-align: center;
  margin-top: .6em;
}

/* ---- マーカー（marker-under とは別に、素の <mark> にもブランド色） ---- */
.post_content mark {
  background: linear-gradient(transparent 55%, var(--color-marker) 55%);
  color: inherit;
  padding: 0 .1em;
}

/* ---- 法務・固定ページ（about/law/privacy/terms/contact）---- */
.post_content .legal-updated {
  text-align: right;
  color: var(--color-font-gray);
  font-size: .9em;
  margin-top: 2rem;
}
.post_content .legal-callout {
  margin: 2rem 0;
  padding: 1.5rem;
  border: 1px solid var(--color-border-light);
  border-radius: 16px;
  background: var(--color-bg-orange);
  text-align: center;
}
.post_content .legal-callout p { margin: 0 0 .75rem; }
.post_content .legal-callout p:last-child { margin: 0; }
.post_content .legal-callout .legal-email { font-size: 1.3em; font-weight: 700; }
.post_content .legal-callout a { text-decoration: none; }

/* ---- モバイル微調整 ---- */
@media (max-width: 640px) {
  .post_content { line-height: 1.85; }
  /* 横長テーブルは横スクロール可能に（はみ出し防止） */
  .post_content table { display: block; overflow-x: auto; white-space: nowrap; }
}
