/* デザイン基礎知識コース専用UI v3（/design-basics/ 配下でのみ読み込まれる）
   区切りは「線1本」のみ。枠線+影の併用・パステル背景・意味のない装飾は使わない。 */
:root {
  --mlui-text: #353535;
  --mlui-sub: #686161;
  --mlui-line: #e2e0dd;
  --mlui-accent: #3e5c76;
}

/* ---- レッスン冒頭のメタ行 ---- */
.mlui-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 32px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--mlui-line);
  font-size: 13px;
  color: var(--mlui-sub);
  line-height: 1.6;
}
.mlui-meta__ch { font-weight: 700; color: var(--mlui-text); }
.mlui-meta__sep { color: #b3aeaa; }

/* ---- 同じ章の他レッスン ---- */
.mlui-links {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--mlui-line);
}
/* SWELL の h2 装飾（濃色バー＋吹き出しの尻尾）を打ち消す */
h2.mlui-links__ttl {
  font-size: 14px;
  font-weight: 700;
  color: var(--mlui-sub);
  letter-spacing: .02em;
  margin: 0 0 12px;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 0;
}
h2.mlui-links__ttl::before,
h2.mlui-links__ttl::after { content: none; display: none; }
/* ponytail: SWELL の .post_content ul が padding-left を持つため、同等以上の詳細度で打ち消す */
.post_content ul.mlui-links__list,
ul.mlui-links__list { list-style: none; margin: 0; padding: 0; }
.post_content ul.mlui-links__list > li,
ul.mlui-links__list > li {
  margin: 0;
  padding: 10px 0;
  border-bottom: 1px solid var(--mlui-line);
  font-size: 15px;
  line-height: 1.6;
}
.post_content ul.mlui-links__list > li::before { content: none; }
.mlui-links__list a { color: var(--mlui-text); text-decoration: none; border: 0; }
.mlui-links__list a:hover { color: var(--mlui-accent); text-decoration: underline; }

/* ---- 前へ / 次へ ---- */
/* ponytail: 片方だけのときに空カラムが残らないよう flex。両方あるときだけ左右に振り分ける */
.mlui-pager {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--mlui-line);
}
.mlui-pager__link {
  display: block;
  flex: 1 1 240px;
  text-decoration: none;
  border: 0;
  color: var(--mlui-text);
}
/* 次へが単独のときは左揃え、前へと並ぶときだけ右寄せ */
.mlui-pager__link.-prev + .mlui-pager__link.-next { text-align: right; }
.mlui-pager__dir {
  display: block;
  font-size: 12.5px;
  color: var(--mlui-sub);
  margin-bottom: 6px;
}
.mlui-pager__ttl { font-size: 15px; font-weight: 700; line-height: 1.55; }
.mlui-pager__link:hover .mlui-pager__ttl { color: var(--mlui-accent); }
@media (max-width: 599px) {
  .mlui-pager { gap: 20px; }
  .mlui-pager__link { flex: 1 1 100%; }
  .mlui-pager__link.-prev + .mlui-pager__link.-next { text-align: left; }
}

.mlui-back { margin-top: 32px; font-size: 14px; }
.mlui-back a { color: var(--mlui-sub); }

/* ---- 学習トップの目次 ---- */
/* 目次見出し(h2)はサイト共通の SWELL スタイルに委ねる */
.mlui-index { margin-top: 56px; }
.mlui-ch { margin-top: 32px; }
.mlui-ch__ttl {
  font-size: 15px;
  font-weight: 700;
  color: var(--mlui-text);
  margin: 0 0 4px;
  padding: 0;
  background: none;
  border: 0;
}
.mlui-ch__list { list-style: none; margin: 0; padding: 0; }
.mlui-ch__list li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 0;
  padding: 12px 0;
  border-bottom: 1px solid var(--mlui-line);
  font-size: 16px;
  line-height: 1.6;
}
.mlui-ch__list a { color: var(--mlui-text); text-decoration: none; border: 0; }
.mlui-ch__list a:hover { color: var(--mlui-accent); text-decoration: underline; }
.mlui-ch__min {
  margin-left: auto;
  flex: 0 0 auto;
  font-size: 13px;
  color: var(--mlui-sub);
}
.mlui-soon {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--mlui-line);
  font-size: 14px;
  line-height: 1.9;
  color: var(--mlui-sub);
}
.mlui-soon b { color: var(--mlui-text); font-weight: 700; }

/* ---- サイドバーのコース目次（SWELL共通ウィジェットと同じ体裁で並べる） ---- */
.mlui-side { font-size: 14px; line-height: 1.6; }
.mlui-side__ch {
  margin: 14px 0 4px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--mlui-sub);
}
.mlui-side__ch:first-child { margin-top: 0; }
.mlui-side__list { list-style: none; margin: 0; padding: 0; }
.mlui-side__list li {
  margin: 0;
  padding: 7px 0;
  border-bottom: 1px solid var(--mlui-line);
}
.mlui-side__list a { color: var(--mlui-sub); text-decoration: none; border: 0; }
.mlui-side__list a:hover { color: var(--mlui-accent); }
.mlui-side__top { margin: 14px 0 0; font-size: 13px; }
.mlui-side__top a { color: var(--mlui-sub); }

/* ============================================================
   v4: 読み物としての体裁（参考: hataraku.vivivit.com の記事ページ）
   背景を白に / 本文18px・行間2.0 / 見出しの装飾を外す
   ============================================================ */

/* 背景を真っ白に（SWELLの淡色地を打ち消す） */
html.mlui-page,
html.mlui-page #content,
html.mlui-page .l-mainContent,
html.mlui-page .post_content { background: #fff; }

/* 本文 */
html.mlui-page .post_content {
  font-size: 18px;
  line-height: 2;
  color: #302e2f;
  letter-spacing: .01em;
}
html.mlui-page .post_content p { margin: 0 0 1.6em; }
html.mlui-page .post_content strong { font-weight: 700; color: #0d0c0c; }

/* 見出し: SWELLの濃色バー・吹き出しの尻尾を外す
   ponytail: SWELL 側は :where() で詳細度0のため、html.mlui-page を足せば確実に勝つ */
html.mlui-page .post_content h2,
html.mlui-page .post_content h2:where(:not([class^="swell-block-"]):not(.faq_q):not(.p-postList__title)) {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.5;
  color: #0d0c0c;
  background: none;
  border: 0;
  border-radius: 0;
  padding: 0;
  margin: 3.4em 0 1em;
}
html.mlui-page .post_content h2::before,
html.mlui-page .post_content h2::after,
html.mlui-page .post_content h2:where(:not([class^="swell-block-"]):not(.faq_q):not(.p-postList__title))::before,
html.mlui-page .post_content h2:where(:not([class^="swell-block-"]):not(.faq_q):not(.p-postList__title))::after {
  content: none;
  display: none;
}
html.mlui-page .post_content h3,
html.mlui-page .post_content h3:where(:not([class^="swell-block-"])) {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.6;
  color: #0d0c0c;
  background: none;
  border: 0;
  padding: 0;
  margin: 2.6em 0 .8em;
}
html.mlui-page .post_content h3::before,
html.mlui-page .post_content h3::after { content: none; display: none; }

/* 図解の前後に余白 */
html.mlui-page .post_content figure { margin: 2.4em 0; }

/* ---- 記事末のナビを分かりやすく ---- */
.mlui-links__ttl, .mlui-pager__dir { font-size: 13px; }
.mlui-pager {
  gap: 16px;
  margin-top: 56px;
  padding-top: 0;
  border-top: 0;
}
.mlui-pager__link {
  border: 1px solid var(--mlui-line);
  border-radius: 10px;
  padding: 18px 22px;
  background: #fff;
}
.mlui-pager__link:hover { border-color: var(--mlui-accent); }
.mlui-pager__dir {
  color: var(--mlui-sub);
  margin-bottom: 4px;
  font-weight: 700;
  letter-spacing: .04em;
}
.mlui-pager__ttl { font-size: 17px; }
.post_content ul.mlui-links__list > li,
ul.mlui-links__list > li { font-size: 16px; padding: 12px 0; }
.mlui-back { margin-top: 40px; font-size: 15px; }
