@charset "UTF-8";
/*
 * 記事ページの署名まわり。design/article-shiotani.html の .byline / .profile に対応。
 */

.ml-byline,
.ml-profile,
.ml-editorial-note {
  --ml-sub: #7a736c;
  --ml-ln: #efe9e1;
  --ml-soft: #f8f4ee;
  --ml-c: #7a736c;
  font-family: "IBM Plex Sans JP", system-ui, -apple-system, "Hiragino Sans", "Yu Gothic", sans-serif;
}

/* リード下の1行 */
.ml-byline {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 18px; background: var(--ml-soft);
  border-left: 3px solid var(--ml-c); margin: 0 0 30px;
}
.ml-byline-ava {
  width: 44px; height: 44px; border-radius: 50%;
  background: #ece5db; border: 1px solid var(--ml-ln);
  flex: none; object-fit: cover; display: block;
}
.ml-byline-who b { display: block; font-size: 14.5px; font-weight: 700; line-height: 1.5; }
.ml-byline-who span { font-size: 12px; color: var(--ml-sub); }

/* 記事末プロフィール */
.ml-profile { margin: 52px 0 0; border: 1px solid var(--ml-ln); background: #fff; }
.ml-profile-head {
  background: var(--ml-soft); border-bottom: 1px solid var(--ml-ln);
  padding: 11px 22px; font-size: 12px; font-weight: 600;
  letter-spacing: .08em; color: var(--ml-sub);
}
.ml-profile-body { padding: 26px 24px; display: grid; grid-template-columns: 96px 1fr; gap: 22px; }
@media (max-width: 560px) { .ml-profile-body { grid-template-columns: 1fr; gap: 16px; } }
.ml-profile-pic {
  width: 96px; height: 96px; border-radius: 50%;
  background: #ece5db; border: 1px solid var(--ml-ln);
  object-fit: cover; display: block;
}
.ml-profile-text h2 {
  font-size: 18px; font-weight: 700; margin: 0 0 2px;
  padding: 0; border: none; background: none;
}
.ml-profile-role { font-size: 12.5px; color: var(--ml-sub); margin: 0 0 14px; }
.ml-profile-text p { font-size: 14px; margin: 0 0 16px; line-height: 1.85; }

/* 編集部記事の1行 */
.ml-editorial-note {
  margin: 48px 0 0; padding: 16px 18px;
  background: var(--ml-soft); border-left: 3px solid var(--ml-ln);
  font-size: 13px; color: var(--ml-sub);
}
.ml-editorial-note a { color: inherit; text-decoration: underline; }

/* ---------------------------------------------------------------------------
 * 本文の見出し
 *
 * 見出しは2種類ある。
 *   A. API投入分   … 素の <h2> <h3>。クラスなし
 *   B. エディタ投入分 … <h2 class="jinr-heading"> が付き、JIN:R が
 *                       .d--h2-style8 / .d--h3-style1 の装飾を当てる
 *
 * 運用ルールで書き方を縛らず、CSSで両方を同じ体裁に揃える。
 * デザインは design/article-shiotani.html の .body h2 / .body h3 に準拠。
 *
 * 対象は #postContent の直下に限る。JIN:R の見出しブロック
 * （.wp-block-jinr-blocks-designtitle など）は自前のラッパー内に入るため、
 * 子結合子で除外される。
 * ------------------------------------------------------------------------- */
body.ml-cat-nursing   { --ml-c: #3fa8ae; }
body.ml-cat-care      { --ml-c: #e0975c; }
body.ml-cat-nutrition { --ml-c: #7fb455; }
body.ml-cat-clerk     { --ml-c: #7189da; }
body { --ml-c: #7a736c; }

#postContent > h2 {
	font-size: 21px;
	font-weight: 700;
	line-height: 1.6;
	letter-spacing: normal;
	margin: 46px 0 18px;
	padding: 0 0 12px;
	border: 0;
	border-bottom: 2px solid var(--ml-c);
	/* JIN:R の style8（斜めの地紋・角丸）を打ち消す */
	background: none;
	border-radius: 0;
	position: static;
}
#postContent > h3 {
	font-size: 17px;
	font-weight: 700;
	line-height: 1.65;
	letter-spacing: normal;
	margin: 34px 0 14px;
	padding: 0 0 0 13px;
	border: 0;
	border-left: 4px solid var(--ml-c);
	background: none;
	border-radius: 0;
}

/* style8 が h2 の左上に出す三角。border-top-color に !important が付いており、
   色指定だけでは消せないため content ごと打ち消す */
#postContent > h2::before,
#postContent > h2::after,
#postContent > h3::before,
#postContent > h3::after {
	content: none !important;
	display: none !important;
}

#postContent > h2:first-child,
#postContent > h3:first-child { margin-top: 0; }

/* 素の段落・リストにも本文らしい余白を与える */
#postContent > p { margin: 0 0 20px; }
#postContent > ul,
#postContent > ol { margin: 0 0 22px; padding-left: 1.5em; }
#postContent > ul li,
#postContent > ol li { margin: 0 0 6px; }
