/* ==========================================================================
   Diver Child (MAX UI) — 次世代型の見た目
   Diver 本体の CSS（css/style.min.css）と、カスタマイザーが出す inline CSS の後に読まれる。
   セレクタは Diver のテンプレート／style.min.css から実際に拾ったもの。
   確認: diver-max/dev/front-preview.html（ライト／ダーク、幅 1280 と 400）
   ---------------------------------------------------------------------------
   設計の決まり
   - 余白と行間: 本文 17px / 1.9。見出しは「上の余白 : 下の余白 = 2 : 1」
   - 角丸 12px（小 8px）、影 0 8px 24px rgba(0,0,0,.08)。強い影は使わない
   - 色はアクセント 1 色＋灰色。フォントは Diver の設定を継承
   - アイコンは SVG（CSS mask か inline）。絵文字は使わない
   - ダークモードは html[data-theme="dark"] で全要素を上書き（Diver の inline 色も含む）
   ========================================================================== */

/* ---------- 1. 変数（ライト） ---------- */
:root {
  --mx-accent: #5B5BD6;
  --mx-accent-rgb: 91, 91, 214;
  --mx-accent-2: #7C3AED;
  --mx-bg: #F5F6F8;
  --mx-surface: #FFFFFF;
  --mx-surface-2: #F1F3F6;
  --mx-ink: #1B1F27;
  --mx-ink-2: #4B5563;
  --mx-muted: #7B8794;
  --mx-line: #E4E8EE;
  --mx-link: #3B4BB3;
  --mx-radius: 12px;
  --mx-radius-sm: 8px;
  --mx-shadow: 0 8px 24px rgba(0, 0, 0, .08);
  --mx-shadow-hover: 0 12px 32px rgba(0, 0, 0, .12);
  --mx-img-dim: 1;
  --mx-ease: cubic-bezier(.2, .7, .2, 1);
  --mx-text: 17px;
  --mx-lh: 1.9;
  --mx-fixed-size: 44px;   /* 右下の固定ボタンの一辺 */
  --mx-fixed-gap: 16px;    /* 画面端からの距離 */
}

/* ---------- 2. 変数（ダーク） ---------- */
html[data-theme="dark"] {
  color-scheme: dark;
  --mx-bg: #0F1319;
  --mx-surface: #171C25;
  --mx-surface-2: #202836;
  --mx-ink: #E8EDF3;
  --mx-ink-2: #B7C0CC;
  --mx-muted: #8391A1;
  --mx-line: #2A3340;
  --mx-link: #A5ACFF;
  --mx-shadow: 0 8px 24px rgba(0, 0, 0, .35);
  --mx-shadow-hover: 0 12px 32px rgba(0, 0, 0, .5);
  --mx-img-dim: .88;
}

/* ---------- 3. ベース ---------- */
body.mx-ui {
  background-color: var(--mx-bg) !important;
  color: var(--mx-ink) !important;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  transition: background-color .25s var(--mx-ease), color .25s var(--mx-ease);
}
body.mx-ui #container { background: var(--mx-bg); }
body.mx-ui #main-wrap { max-width: 1200px; margin: 28px auto; }
body.mx-ui .l-main-container { gap: 28px; }
body.mx-ui #content_area { gap: 16px; }
body.mx-ui :focus-visible { outline: 2px solid var(--mx-accent); outline-offset: 2px; }

/* 本文内のリンク: 下線がすっと伸びる */
body.mx-ui .content a:not(.sc_button):not([class*="btn"]):not(.blogcard_link):not(.wp-block-button__link):not(.dm-related-link) {
  color: var(--mx-link);
  text-decoration: none;
  background-image: linear-gradient(var(--mx-accent), var(--mx-accent));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0 2px;
  transition: background-size .3s var(--mx-ease), color .2s;
}
body.mx-ui .content a:not(.sc_button):not([class*="btn"]):not(.blogcard_link):not(.wp-block-button__link):not(.dm-related-link):hover {
  background-size: 100% 2px;
  color: var(--mx-accent);
}

/* ---------- 4. ヘッダー ---------- */
body.mx-ui .header-wrap {
  box-shadow: 0 1px 0 var(--mx-line);
}
body.mx-ui .header_small_menu { border-bottom: 1px solid var(--mx-line); }
body.mx-ui .header_small_menu a { text-decoration: none; }
body.mx-ui div.logo_title { letter-spacing: -.01em; }
body.mx-ui #nav_fixed.fixed {
  box-shadow: 0 1px 0 var(--mx-line), var(--mx-shadow);
  backdrop-filter: saturate(1.2) blur(10px);
}
body.mx-ui #nav ul li a { transition: color .2s, background-color .2s; text-decoration: none; }
body.mx-ui .header-logo #nav > ul > li > a { position: relative; }
body.mx-ui .header-logo #nav > ul > li > a::after {
  content: "";
  position: absolute;
  left: .8em;
  right: .8em;
  bottom: 1em;
  height: 2px;
  border-radius: 2px;
  background: var(--mx-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s var(--mx-ease);
}
body.mx-ui .header-logo #nav > ul > li > a:hover::after,
body.mx-ui .header-logo #nav > ul > li.current-menu-item > a::after { transform: scaleX(1); }
body.mx-ui #nav ul ul,
body.mx-ui #header ul.sub-menu {
  border-radius: var(--mx-radius-sm);
  box-shadow: var(--mx-shadow);
  border: 1px solid var(--mx-line);
  overflow: hidden;
}
body.mx-ui .nav_in_btn ul li a,
body.mx-ui li.nav_in_btn > a {
  border-radius: 999px;
  background: var(--mx-accent) !important;
  color: #fff !important;
  padding: .55em 1.1em !important;
  margin: auto .4em;
  line-height: 1.4;
}
body.mx-ui #scrollnav ul li a { border-radius: 999px; }

/* 共通: 固定ボタン（ダークモード切替・トップへ戻る）は同じ形・同じ影 */
.mx-theme-btn,
.mx-totop {
  appearance: none;
  -webkit-appearance: none;
  width: var(--mx-fixed-size);
  height: var(--mx-fixed-size);
  padding: 0;
  border: 1px solid var(--mx-line);
  border-radius: var(--mx-radius);
  background: var(--mx-surface);
  color: var(--mx-ink);
  box-shadow: var(--mx-shadow);
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  line-height: 1;
  transition: transform .2s var(--mx-ease), box-shadow .2s, background-color .2s, color .2s, opacity .25s var(--mx-ease);
}
.mx-theme-btn:hover,
.mx-totop:hover { transform: translateY(-2px); box-shadow: var(--mx-shadow-hover); color: var(--mx-accent); }
.mx-theme-btn:focus-visible,
.mx-totop:focus-visible { outline: 2px solid var(--mx-accent); outline-offset: 2px; }
.mx-theme-btn svg,
.mx-totop svg { width: 20px; height: 20px; display: block; }

/* ダークモード切替ボタン（child.js が挿入。SVG の太陽／月） */
.mx-theme-btn { margin: auto 8px auto 12px; flex: none; }
.mx-theme-btn .mx-icon-sun,
.mx-theme-btn .mx-icon-moon { display: none; }
html[data-theme="dark"] .mx-theme-btn .mx-icon-sun { display: block; }
html:not([data-theme="dark"]) .mx-theme-btn .mx-icon-moon { display: block; }
.mx-theme-btn.mx-theme-btn--fixed {
  position: fixed;
  right: var(--mx-fixed-gap);
  bottom: calc(var(--mx-fixed-gap) + var(--mx-fixed-size) + 12px);
  z-index: 9990;
  margin: 0;
}

/* ---------- 5. パンくず ---------- */
body.mx-ui #breadcrumb {
  background: transparent !important;
  color: var(--mx-muted);
  padding: 4px 4px 14px;
  font-size: .8em;
}
body.mx-ui #breadcrumb a { color: var(--mx-muted); text-decoration: none; }
body.mx-ui #breadcrumb a:hover { color: var(--mx-accent); }
body.mx-ui #breadcrumb ul li:not(:first-child):before { color: var(--mx-line); }

/* ---------- 6. 記事カード（single.php: article.hentry / .single-post-main / .content） ---------- */
body.mx-ui #single-main article.hentry,
body.mx-ui #page-main article.hentry,
body.mx-ui #main article.hentry {
  background: var(--mx-surface) !important;
  color: var(--mx-ink) !important;
  border-radius: var(--mx-radius);
  box-shadow: var(--mx-shadow);
  border: 1px solid var(--mx-line);
  overflow: hidden;
}
body.mx-ui .single-post-main,
body.mx-ui .content {
  background: transparent !important;
  color: var(--mx-ink) !important;
}
body.mx-ui .single-post-main { padding: 0 clamp(16px, 4vw, 40px) 24px; }
body.mx-ui .single-post-main .content {
  font-size: var(--mx-text);
  line-height: var(--mx-lh);
  letter-spacing: .01em;
}
body.mx-ui .content p { margin: 0 0 1.5em; }
body.mx-ui .content > :first-child { margin-top: 0; }
body.mx-ui .content img,
body.mx-ui .content figure img,
body.mx-ui .content .wp-block-image img {
  border-radius: var(--mx-radius-sm);
  height: auto;
  max-width: 100%;
  filter: brightness(var(--mx-img-dim));
}
body.mx-ui .content figure { margin: 1.6em 0; }
body.mx-ui .content figcaption { color: var(--mx-muted); font-size: .82em; margin-top: .5em; line-height: 1.6; }

/* 記事ヘッダー */
body.mx-ui article.hentry > header { padding: clamp(16px, 4vw, 40px) clamp(16px, 4vw, 40px) 0; }
body.mx-ui .hentry .post-meta .cat-tag { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
body.mx-ui .single-post-title {
  font-size: clamp(1.5em, 3.2vw, 2.1em);
  line-height: 1.4;
  letter-spacing: -.01em;
  font-weight: 800;
  margin: 14px 0 12px;
}
body.mx-ui .hentry .post-meta-bottom { gap: 14px; flex-wrap: wrap; margin-bottom: 8px; }
body.mx-ui .single-post-date { color: var(--mx-muted); font-size: .85em; }
body.mx-ui .single-post-date i { margin-right: .35em; }
body.mx-ui .post_reading_time { color: var(--mx-muted); font-size: .85em; }
body.mx-ui .hentry .single-post-category { border-radius: 999px; padding: 3px 12px !important; font-size: .75em !important; margin: 0 !important; line-height: 1.5; }
body.mx-ui .single-post-category a { color: #fff; text-decoration: none; }
body.mx-ui #single-main .post-meta .tag,
body.mx-ui #single-main .article_footer .tag,
body.mx-ui .tag_area .tag {
  background: var(--mx-surface-2) !important;
  border-radius: 999px;
  padding: 3px 12px !important;
  font-size: .75em !important;
  display: inline-block;
  margin: 0 !important;
  line-height: 1.5;
}
body.mx-ui .tag a { color: var(--mx-ink-2); text-decoration: none; }
body.mx-ui .tag a::before { content: none; }
body.mx-ui #single-main .tag_area { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 0 8px; }
body.mx-ui .post-author { margin: 0; }
body.mx-ui .post-author img { border-radius: 50%; }
body.mx-ui .single_thumbnail,
body.mx-ui .single-post-main .single_thumbnail {
  background: transparent !important;
  margin: 16px 0 8px;
}
body.mx-ui .single_thumbnail img { border-radius: var(--mx-radius-sm); filter: brightness(var(--mx-img-dim)); }
body.mx-ui .single_thumbnail figcaption { color: var(--mx-muted); font-size: .82em; padding: 8px 0 0; text-align: left; }

/* SNS シェア（sharebtn / sns-side）: 色を落ち着かせる */
body.mx-ui .share-button { padding: 14px 0 6px; }
body.mx-ui header .share-button { padding: 14px 0 8px; }
body.mx-ui .sns a {
  border-radius: var(--mx-radius-sm);
  font-size: .72em;
  transition: transform .15s var(--mx-ease), filter .2s;
}
body.mx-ui .sns a:hover { transform: translateY(-2px); filter: brightness(1.06); }
body.mx-ui .sns a.x { background: #111; }
body.mx-ui .sns a svg,
body.mx-ui .profile_sns svg { width: 1em; height: 1em; vertical-align: -.15em; }
body.mx-ui #share_plz {
  background: var(--mx-surface) !important;
  border: 1px solid var(--mx-line);
  border-radius: var(--mx-radius);
  box-shadow: var(--mx-shadow);
  padding: 8px;
  display: grid;
  gap: 6px;
}
body.mx-ui #share_plz a { margin: 0; }

/* ---------- 7. 見出し（上下の余白 2:1） ---------- */
body.mx-ui .content h2 {
  position: relative;
  padding: .5em .9em .5em 1em;
  margin: 2.4em 0 1.2em;
  font-size: 1.4em;
  line-height: 1.5;
  font-weight: 700;
  border: none;
  border-radius: var(--mx-radius-sm);
  background: var(--mx-surface-2) !important;
  color: var(--mx-ink) !important;
  box-shadow: inset 5px 0 0 var(--mx-accent);
}
body.mx-ui .content h2::before,
body.mx-ui .content h2::after,
body.mx-ui .content h3::before,
body.mx-ui .content h3::after,
body.mx-ui .content h4::before,
body.mx-ui .content h4::after { display: none; }
body.mx-ui .content h3 {
  position: relative;
  padding: .2em 0 .2em .8em;
  margin: 1.8em 0 .9em;
  font-size: 1.2em;
  line-height: 1.5;
  font-weight: 700;
  border: none;
  border-left: 4px solid var(--mx-accent);
  background: transparent !important;
  color: var(--mx-ink) !important;
  border-radius: 0;
}
body.mx-ui .content h4 {
  margin: 1.4em 0 .7em;
  padding: 0 0 .3em;
  font-size: 1.06em;
  font-weight: 700;
  border: none;
  border-bottom: 2px solid var(--mx-line);
  background: transparent !important;
  color: var(--mx-ink) !important;
}
body.mx-ui .content h5,
body.mx-ui .content h6 { margin: 1.2em 0 .6em; font-weight: 700; }
body.mx-ui .single_title,
body.mx-ui .wrap-post-title,
body.mx-ui .post_footer_author_title,
body.mx-ui .post_footer_author_title_post {
  position: relative;
  background: transparent !important;
  color: var(--mx-ink) !important;
  border: none !important;
  padding: 6px 0 6px 16px;
  margin: 28px 0 12px;
  font-size: 1.1em;
  font-weight: 800;
  border-radius: 0;
  line-height: 1.5;
}
body.mx-ui .single_title::before,
body.mx-ui .wrap-post-title::before,
body.mx-ui .post_footer_author_title::before,
body.mx-ui .post_footer_author_title_post::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 4px;
  border-radius: 999px;
  background: var(--mx-accent);
}
body.mx-ui .single_title .cat-link a { color: var(--mx-accent); text-decoration: none; }

/* ---------- 8. 記事一覧カード（loop.php: .post-box / loop-grid.php: .grid_post-box） ---------- */
body.mx-ui .post-box-contents {
  background: var(--mx-surface) !important;
  color: var(--mx-ink) !important;
  border-radius: var(--mx-radius);
  border: 1px solid var(--mx-line);
  box-shadow: var(--mx-shadow);
  overflow: hidden;
  transition: transform .3s var(--mx-ease), box-shadow .3s var(--mx-ease);
}
body.mx-ui .post-box-contents:hover {
  transform: translateY(-3px);
  box-shadow: var(--mx-shadow-hover);
}
body.mx-ui .post-box { border-color: transparent !important; margin-bottom: 18px; }
body.mx-ui .grid_post-box { padding: 8px; }
body.mx-ui .post-box-thumbnail__wrap { border-radius: 0; background: var(--mx-surface-2); }
body.mx-ui .post-box-thumbnail__wrap img {
  transition: transform .5s var(--mx-ease), filter .3s;
  filter: brightness(var(--mx-img-dim));
}
body.mx-ui .post-box-contents:hover .post-box-thumbnail__wrap img { transform: scale(1.04); }
body.mx-ui .post-meta-all { padding: 14px 16px; }
body.mx-ui .post-box .post-title,
body.mx-ui .grid_post-box .post-title { line-height: 1.5; font-weight: 700; }
body.mx-ui .post-box .post-title a,
body.mx-ui .grid_post-box .post-title a { color: var(--mx-ink); text-decoration: none; }
body.mx-ui .post-substr { color: var(--mx-ink-2); font-size: .88em; line-height: 1.7; }
body.mx-ui .post-date { color: var(--mx-muted); }
body.mx-ui .post-cat { border-radius: 999px; padding: 2px 10px; font-size: .68em; }
body.mx-ui .post-cat a { color: #fff; text-decoration: none; }
body.mx-ui .post-tag a {
  background: var(--mx-surface-2) !important;
  color: var(--mx-ink-2) !important;
  border-radius: 999px;
  padding: 2px 9px;
  text-decoration: none;
}
body.mx-ui .post-author-name a { color: var(--mx-muted); text-decoration: none; font-size: .85em; }

/* 関連記事（posts-category.php）・おすすめ（recommend.php）・著者の記事（parts-author.php） */
body.mx-ui .newpost_list,
body.mx-ui .recommend-post { padding: 0 0 8px; gap: 14px; }
body.mx-ui .post_list_wrap,
body.mx-ui .single-recommend,
body.mx-ui .author-post {
  background: var(--mx-surface) !important;
  border: 1px solid var(--mx-line);
  border-radius: var(--mx-radius);
  overflow: hidden;
  transition: transform .25s var(--mx-ease), box-shadow .25s var(--mx-ease);
}
body.mx-ui .post_list_wrap:hover,
body.mx-ui .single-recommend:hover,
body.mx-ui .author-post:hover { transform: translateY(-3px); box-shadow: var(--mx-shadow); }
body.mx-ui .post_list_wrap a,
body.mx-ui .single-recommend a,
body.mx-ui .author-post a { text-decoration: none; color: var(--mx-ink); }
body.mx-ui .post_list_wrap figure,
body.mx-ui .recommend-thumb,
body.mx-ui .author-post-thumb { border-radius: 0; background: var(--mx-surface-2) !important; }
body.mx-ui .post_list_wrap .meta,
body.mx-ui .recommend-meta,
body.mx-ui .author-post-meta { padding: 10px 12px 12px; }
body.mx-ui .post_list_wrap .title,
body.mx-ui .single-recommend .recommend-title,
body.mx-ui .author-post-title { color: var(--mx-ink); line-height: 1.5; }
body.mx-ui .post_list_wrap .date,
body.mx-ui .recommend-desc { color: var(--mx-muted); }
body.mx-ui .recommend-cat,
body.mx-ui .author-post-cat span { border-radius: var(--mx-radius-sm) 0 0 0; padding: 3px 8px; }
body.mx-ui #single-main .post-sub { background: transparent !important; }
body.mx-ui .single-recommend { width: 100%; }
body.mx-ui .author-post-wrap { gap: 12px; margin-bottom: 4px; }

/* この記事を書いた人（parts-author.php） */
body.mx-ui .post_footer_author {
  background: var(--mx-surface-2) !important;
  border: none !important;
  border-radius: var(--mx-radius);
  padding: 20px !important;
  margin: 0 0 8px;
}
body.mx-ui .post_author_user { display: flex; gap: 18px; align-items: flex-start; }
body.mx-ui .post_author_user .post_thum { flex: none; width: 88px; }
body.mx-ui .post_author_user .post_thum img { border-radius: 50%; width: 88px; height: 88px; object-fit: cover; }
body.mx-ui .post_author_user_meta { padding-left: 0; }
body.mx-ui .post_footer_author .post-author.fn { font-weight: 800; font-size: 1.05em; margin-bottom: 4px; }
body.mx-ui .post_footer_author .post-author.fn a { color: var(--mx-ink); text-decoration: none; }
body.mx-ui .post-description { color: var(--mx-ink-2); font-size: .9em; line-height: 1.7; }
body.mx-ui .profile_sns { display: flex; justify-content: center; gap: 6px; margin: 8px 0 0; padding: 0; list-style: none; }
body.mx-ui .profile_sns li a {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--mx-surface);
  color: var(--mx-ink-2);
  font-size: 14px;
  border: 1px solid var(--mx-line);
}
body.mx-ui .post_footer_author_title_post { margin-top: 20px; }

/* 前後の記事（diver_single_post_nav） */
body.mx-ui .navigation {
  background: transparent !important;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 20px 0;
}
body.mx-ui .navigation .nav-previous,
body.mx-ui .navigation .nav-next { width: auto; float: none; }
body.mx-ui .navigation a {
  display: block;
  padding: 14px 16px;
  background: var(--mx-surface) !important;
  color: var(--mx-ink) !important;
  border: 1px solid var(--mx-line);
  border-radius: var(--mx-radius);
  text-decoration: none;
  transition: transform .2s var(--mx-ease), box-shadow .2s;
}
body.mx-ui .navigation a:hover { transform: translateY(-2px); box-shadow: var(--mx-shadow); }
body.mx-ui .navigation .nav-next a { text-align: right; }
body.mx-ui .navigation .meta-nav { display: block; color: var(--mx-muted); font-size: .78em; margin-bottom: 4px; }
body.mx-ui .navigation .nav-title { font-weight: 700; font-size: .95em; line-height: 1.5; }

/* ---------- 9. サイドバー・ウィジェット（sidebar.php: #sidebar .widget / .widgettitle） ---------- */
body.mx-ui #sidebar .widget {
  background: var(--mx-surface) !important;
  color: var(--mx-ink) !important;
  border: 1px solid var(--mx-line);
  border-radius: var(--mx-radius);
  box-shadow: var(--mx-shadow);
  padding: 18px;
  margin-bottom: 20px;
}
body.mx-ui #sidebar .widgettitle,
body.mx-ui #bigfooter .widgettitle {
  background: transparent !important;
  color: var(--mx-ink) !important;
  border: none !important;
  margin: -4px 0 12px;
  padding: 0 0 10px 14px;
  font-weight: 800;
  font-size: 1em;
  position: relative;
  border-bottom: 1px solid var(--mx-line) !important;
}
body.mx-ui #sidebar .widgettitle::before,
body.mx-ui #bigfooter .widgettitle::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  height: 1em;
  width: 4px;
  border-radius: 999px;
  background: var(--mx-accent);
}
body.mx-ui #sidebar .widget a { color: var(--mx-ink-2); text-decoration: none; }
body.mx-ui #sidebar .widget a:hover { color: var(--mx-accent); }
body.mx-ui #sidebar .widget > ul:first-of-type,
body.mx-ui #sidebar .widget ul:first-child { margin: 0; }
body.mx-ui #sidebar .widget ul { list-style: none; padding: 0; margin: 0; }
body.mx-ui #sidebar .widget ul li { border-bottom: 1px solid var(--mx-line); padding: 10px 0; }
body.mx-ui #sidebar .widget ul li:last-child { border-bottom: none; padding-bottom: 0; }
body.mx-ui #sidebar .widget.widget_text li a,
body.mx-ui #sidebar .widget.widget_categories li a,
body.mx-ui #sidebar .widget.widget_recent_entries li,
body.mx-ui #sidebar .widget.widget_nav_menu li a,
body.mx-ui #sidebar .widget.widget_pages li a,
body.mx-ui #sidebar .widget.widget_archive li a,
body.mx-ui #sidebar .widget.widget_meta li a { padding: 0; }
body.mx-ui #sidebar .widget.widget_recent_entries li { padding: 10px 0; }
body.mx-ui #sidebar .widget li.cat-item { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
body.mx-ui #sidebar .widget li.cat-item a { flex: 1; }
body.mx-ui .cat-item .count,
body.mx-ui .widget li a .count {
  float: none;
  background: var(--mx-surface-2);
  color: var(--mx-muted);
  border-radius: 999px;
  padding: 1px 9px;
  font-size: .78em;
}
body.mx-ui .widget.widget_recent_entries li span.post-date { display: block; color: var(--mx-muted); font-size: .78em; margin-top: 3px; }
body.mx-ui .tagcloud { display: flex; flex-wrap: wrap; gap: 6px; }
body.mx-ui .tagcloud a {
  border: 1px solid var(--mx-line);
  border-radius: 999px;
  padding: 4px 12px;
  margin: 0;
  font-size: .82em !important;
  background: var(--mx-surface-2);
  transition: border-color .2s, color .2s;
}
body.mx-ui .tagcloud a:hover { background: var(--mx-surface-2); border-color: var(--mx-accent); }
body.mx-ui #sidebar .diver_widget_profile .post_author_user { display: grid; gap: 10px; text-align: center; }
body.mx-ui #sidebar .diver_widget_profile .post_thum img { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; }
body.mx-ui #sidebar .diver_widget_profile .post-author.fn { font-weight: 800; }
body.mx-ui #sidebar .diver_widget_profile .post-description { font-size: .88em; color: var(--mx-ink-2); }
body.mx-ui #sidebar .widget_search.widget .searchform { margin: 0; }
body.mx-ui .searchform .s {
  background: var(--mx-surface-2) !important;
  color: var(--mx-ink) !important;
  border: 1px solid var(--mx-line) !important;
  border-radius: 999px;
  padding: 11px 50px 11px 16px;
  transition: box-shadow .2s, border-color .2s;
}
body.mx-ui .searchform .s:focus {
  outline: none;
  border-color: var(--mx-accent) !important;
  box-shadow: 0 0 0 3px rgba(var(--mx-accent-rgb), .2);
}
body.mx-ui input[type="submit"].searchsubmit {
  background-color: var(--mx-accent);
  border-radius: 999px;
  top: 4px;
  bottom: 4px;
  right: 4px;
  width: 40px;
}

/* ---------- 10. ボタン・フォーム ---------- */
body.mx-ui .content .sc_button,
body.mx-ui .content .wp-block-button__link,
body.mx-ui .textwidget .sc_button,
body.mx-ui input[type="submit"].searchsubmit {
  transition: transform .15s var(--mx-ease), box-shadow .2s, filter .2s;
}
body.mx-ui .content .wp-block-button__link,
body.mx-ui .textwidget .sc_button {
  display: inline-block;
  border-radius: 999px;
  background: var(--mx-accent);
  color: #fff !important;
  padding: .7em 1.6em;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 6px 16px rgba(var(--mx-accent-rgb), .25);
}
body.mx-ui .content .sc_button:hover,
body.mx-ui .content .wp-block-button__link:hover,
body.mx-ui .textwidget .sc_button:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
}
body.mx-ui .wp-block-buttons { margin: 1.6em 0; }
body.mx-ui input[type="text"],
body.mx-ui input[type="email"],
body.mx-ui input[type="url"],
body.mx-ui input[type="search"],
body.mx-ui input[type="tel"],
body.mx-ui input[type="number"],
body.mx-ui textarea,
body.mx-ui select {
  background: var(--mx-surface-2);
  color: var(--mx-ink);
  border: 1px solid var(--mx-line);
  border-radius: var(--mx-radius-sm);
  font: inherit;
}
body.mx-ui textarea:focus,
body.mx-ui input:focus { outline: none; border-color: var(--mx-accent); box-shadow: 0 0 0 3px rgba(var(--mx-accent-rgb), .2); }
body.mx-ui input[type="submit"]:not(.searchsubmit),
body.mx-ui button.submit,
body.mx-ui #comment-area .submit {
  border-radius: 999px;
  background: var(--mx-accent);
  color: #fff;
  border: none;
  padding: .7em 1.6em;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

/* ---------- 11. テーブル・引用・コード・リスト ---------- */
body.mx-ui .content table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--mx-line);
  border-radius: var(--mx-radius-sm);
  overflow: hidden;
  margin: 1.6em 0;
  font-size: .94em;
  line-height: 1.7;
}
body.mx-ui .content table th,
body.mx-ui .content table td {
  padding: .75em 1em;
  border: none;
  border-bottom: 1px solid var(--mx-line);
  vertical-align: top;
  background: transparent;
}
body.mx-ui .content table th {
  background: var(--mx-surface-2) !important;
  color: var(--mx-ink) !important;
  font-weight: 700;
  text-align: left;
}
body.mx-ui .content table tr:last-child td,
body.mx-ui .content table tr:last-child th { border-bottom: none; }
body.mx-ui .content table tbody tr:nth-child(even) td { background: rgba(var(--mx-accent-rgb), .04); }
body.mx-ui .content .table_wrap,
body.mx-ui .content .wp-block-table { overflow-x: auto; }
body.mx-ui .content blockquote {
  position: relative;
  background: var(--mx-surface-2);
  color: var(--mx-ink-2);
  border: none;
  border-left: 4px solid var(--mx-accent);
  border-radius: var(--mx-radius-sm);
  padding: 1em 1.4em;
  margin: 1.6em 0;
  font-size: .97em;
}
body.mx-ui .content blockquote::before,
body.mx-ui .content blockquote::after { display: none; }
body.mx-ui .content blockquote p:last-child { margin-bottom: 0; }
body.mx-ui .content blockquote cite { display: block; margin-top: .6em; font-size: .85em; color: var(--mx-muted); font-style: normal; }
body.mx-ui .content pre {
  border-radius: var(--mx-radius-sm);
  background: #0B1020;
  color: #D6E4FF;
  padding: 1em 1.2em;
  margin: 1.6em 0;
  overflow: auto;
  font-size: .9em;
  line-height: 1.7;
}
body.mx-ui .content pre code { background: none !important; color: inherit; padding: 0; border-radius: 0; font-size: inherit; }
body.mx-ui .content code:not([class*="language-"]) {
  background: var(--mx-surface-2);
  color: var(--mx-ink);
  padding: .1em .45em;
  border-radius: 6px;
  font-size: .9em;
}
body.mx-ui .content .sc_frame,
body.mx-ui .content .sc_balloon { border-radius: var(--mx-radius-sm); }
body.mx-ui .content ul,
body.mx-ui .content ol { margin: 0 0 1.5em; padding-left: 1.5em; }
body.mx-ui .content ul li,
body.mx-ui .content ol li { margin-bottom: .4em; }
body.mx-ui .content ul li::marker { color: var(--mx-accent); }
body.mx-ui .content ol li::marker { color: var(--mx-accent); font-weight: 700; }
body.mx-ui .content hr { border: none; border-top: 1px solid var(--mx-line); margin: 2em 0; }

/* Diver MAX の広告枠（ads.css）と関連記事（related.css）を本文のトーンに合わせる */
body.mx-ui .dm-ad-label { color: var(--mx-muted); }
body.mx-ui .content .dm-related-title {
  padding: 0 0 .5em;
  margin: 0 0 1em;
  font-size: 1.1em;
  background: transparent !important;
  box-shadow: none;
  border-bottom: 1px solid var(--mx-line);
  border-radius: 0;
}

/* ---------- 12. 目次（Table of Contents Plus / Easy Table of Contents / Diver の .toc） ---------- */
body.mx-ui #toc_container,
body.mx-ui .ez-toc-container,
body.mx-ui .content .toc {
  background: var(--mx-surface-2) !important;
  border: 1px solid var(--mx-line) !important;
  border-radius: var(--mx-radius) !important;
  padding: 18px 22px !important;
  margin: 1.6em 0 2em !important;
  width: 100% !important;
  max-width: 100%;
  box-shadow: none;
  font-size: .94em;
  line-height: 1.7;
}
body.mx-ui #toc_container .toc_title,
body.mx-ui .ez-toc-title,
body.mx-ui .content .toc_title { font-weight: 800; color: var(--mx-ink); margin: 0 0 8px; text-align: left; }
body.mx-ui #toc_container ul,
body.mx-ui .ez-toc-container ul,
body.mx-ui .content .toc ul { margin: 0; padding-left: 1.2em; }
body.mx-ui #toc_container ul li,
body.mx-ui .content .toc ul li { margin: 0 0 .25em; }
body.mx-ui #toc_container ul ul { margin-top: .25em; }
body.mx-ui #toc_container a,
body.mx-ui .ez-toc-container a,
body.mx-ui .content .toc a {
  color: var(--mx-ink-2);
  background: none !important;
  text-decoration: none;
  border-radius: 6px;
  padding: 2px 6px;
  margin-left: -6px;
  transition: color .2s, background-color .2s;
}
body.mx-ui #toc_container a:hover,
body.mx-ui .ez-toc-container a:hover,
body.mx-ui .content .toc a:hover { color: var(--mx-accent); }
body.mx-ui #toc_container a.mx-toc-active,
body.mx-ui .ez-toc-container a.mx-toc-active,
body.mx-ui .content .toc a.mx-toc-active {
  color: var(--mx-accent);
  background: rgba(var(--mx-accent-rgb), .12) !important;
  font-weight: 700;
}

/* ---------- 13. ページ送り ---------- */
body.mx-ui .pagination a.page-numbers,
body.mx-ui .pagination span.page-numbers {
  background: var(--mx-surface) !important;
  color: var(--mx-ink) !important;
  border: 1px solid var(--mx-line);
  border-radius: 999px;
  margin: 2px;
  transition: transform .15s, background-color .2s, color .2s;
}
body.mx-ui .pagination a.page-numbers:hover { transform: translateY(-2px); border-color: var(--mx-accent); color: var(--mx-accent) !important; }
body.mx-ui .pagination .page-numbers.current {
  background: var(--mx-accent) !important;
  color: #fff !important;
  border-color: var(--mx-accent);
}
body.mx-ui .content-pager-link .post-page-numbers {
  background: var(--mx-surface);
  color: var(--mx-ink);
  border-radius: 999px;
  box-shadow: 0 0 0 1px var(--mx-line);
}
body.mx-ui .content-pager-link .post-page-numbers.current { background: var(--mx-accent); color: #fff; }

/* ---------- 14. フッター ---------- */
body.mx-ui #bigfooter {
  background: var(--mx-surface) !important;
  color: var(--mx-ink-2) !important;
  border-top: 1px solid var(--mx-line);
  margin-top: 24px;
}
body.mx-ui #bigfooter a { color: var(--mx-ink-2) !important; text-decoration: none; }
body.mx-ui #bigfooter a:hover { color: var(--mx-accent) !important; }
body.mx-ui #bigfooter .widget { background: transparent !important; padding: 0; }
body.mx-ui #bigfooter .widget ul { list-style: none; padding: 0; margin: 0; }
body.mx-ui #bigfooter .widget ul li { padding: 6px 0; }
body.mx-ui #bigfooter .widget ul li a { display: block; padding: 0; }
body.mx-ui #bigfooter .textwidget { font-size: .92em; line-height: 1.8; }
body.mx-ui #footer {
  background: var(--mx-surface) !important;
  color: var(--mx-muted) !important;
  border-top: 1px solid var(--mx-line);
  font-size: 13px;
}
body.mx-ui #footer a { color: var(--mx-muted) !important; text-decoration: none; }
body.mx-ui #footer a:hover { color: var(--mx-accent) !important; }
body.mx-ui .footer_content { padding: 22px 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
body.mx-ui .footer_navi ul { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 4px 16px; }
body.mx-ui .footer_navi ul li { padding: 0; }
body.mx-ui #copyright { float: none; padding: 0; }

/* ---------- 15. ダークモード: Diver が inline で色を付ける要素を変数で反転 ---------- */
html[data-theme="dark"] body.mx-ui .header-wrap,
html[data-theme="dark"] body.mx-ui #header ul.sub-menu,
html[data-theme="dark"] body.mx-ui #header ul.children,
html[data-theme="dark"] body.mx-ui #scrollnav,
html[data-theme="dark"] body.mx-ui .description_sp,
html[data-theme="dark"] body.mx-ui #nav_fixed.fixed,
html[data-theme="dark"] body.mx-ui #nav_fixed #nav ul ul,
html[data-theme="dark"] body.mx-ui #nav ul ul,
html[data-theme="dark"] body.mx-ui #onlynav,
html[data-theme="dark"] body.mx-ui #onlynav ul ul,
html[data-theme="dark"] body.mx-ui .header_small_menu,
html[data-theme="dark"] body.mx-ui .navigation,
html[data-theme="dark"] body.mx-ui .in_loop,
html[data-theme="dark"] body.mx-ui .pickup-cat-list,
html[data-theme="dark"] body.mx-ui .maintop-widget,
html[data-theme="dark"] body.mx-ui .mainbottom-widget,
html[data-theme="dark"] body.mx-ui .sticky-post-box,
html[data-theme="dark"] body.mx-ui .catpage_content_wrap,
html[data-theme="dark"] body.mx-ui .cat-post-main,
html[data-theme="dark"] body.mx-ui #footer_sticky_menu,
html[data-theme="dark"] body.mx-ui .footermenu_col,
html[data-theme="dark"] body.mx-ui .drawer-nav,
html[data-theme="dark"] body.mx-ui #header_search,
html[data-theme="dark"] body.mx-ui .page_title,
html[data-theme="dark"] body.mx-ui #comment-area,
html[data-theme="dark"] body.mx-ui .comment_title,
html[data-theme="dark"] body.mx-ui div#comment-area .single_title,
html[data-theme="dark"] body.mx-ui .diver_widget_profile,
html[data-theme="dark"] body.mx-ui .sc_frame,
html[data-theme="dark"] body.mx-ui .sc_balloon,
html[data-theme="dark"] body.mx-ui .diver_rel_kiji,
html[data-theme="dark"] body.mx-ui .blogcard,
html[data-theme="dark"] body.mx-ui .p-entry__push,
html[data-theme="dark"] body.mx-ui .p-entry__tw-follow,
html[data-theme="dark"] body.mx-ui .drawer_content_title,
html[data-theme="dark"] body.mx-ui .searchbox_content_title {
  background: var(--mx-surface) !important;
  color: var(--mx-ink) !important;
  border-color: var(--mx-line) !important;
}
html[data-theme="dark"] body.mx-ui .header-wrap a,
html[data-theme="dark"] body.mx-ui #nav_fixed.fixed a,
html[data-theme="dark"] body.mx-ui #scrollnav a,
html[data-theme="dark"] body.mx-ui #onlynav ul li a,
html[data-theme="dark"] body.mx-ui div.logo_title,
html[data-theme="dark"] body.mx-ui .header_small_menu a,
html[data-theme="dark"] body.mx-ui .drawer-nav a,
html[data-theme="dark"] body.mx-ui #header_search a,
html[data-theme="dark"] body.mx-ui .header_search_btn {
  color: var(--mx-ink) !important;
}
html[data-theme="dark"] body.mx-ui .header-wrap a:hover,
html[data-theme="dark"] body.mx-ui #nav_fixed.fixed a:hover { color: var(--mx-accent) !important; }
html[data-theme="dark"] body.mx-ui .drawer-nav-btn span { background-color: var(--mx-ink) !important; }
html[data-theme="dark"] body.mx-ui .drawer-nav-btn:before,
html[data-theme="dark"] body.mx-ui .drawer-nav-btn:after { border-color: var(--mx-ink) !important; }
html[data-theme="dark"] body.mx-ui #scrollnav ul li a,
html[data-theme="dark"] body.mx-ui #onlynav ul > li:hover > a,
html[data-theme="dark"] body.mx-ui #header ul.sub-menu li a,
html[data-theme="dark"] body.mx-ui #nav ul ul li a {
  background: var(--mx-surface-2) !important;
  color: var(--mx-ink) !important;
}
html[data-theme="dark"] body.mx-ui .content,
html[data-theme="dark"] body.mx-ui .content p,
html[data-theme="dark"] body.mx-ui .content li,
html[data-theme="dark"] body.mx-ui .content td,
html[data-theme="dark"] body.mx-ui .content th,
html[data-theme="dark"] body.mx-ui .content h2,
html[data-theme="dark"] body.mx-ui .content h3,
html[data-theme="dark"] body.mx-ui .content h4,
html[data-theme="dark"] body.mx-ui .content h5,
html[data-theme="dark"] body.mx-ui .content h6 {
  color: var(--mx-ink) !important;
}
html[data-theme="dark"] body.mx-ui .content .sc_frame_title,
html[data-theme="dark"] body.mx-ui .content .sc_frame_text { color: var(--mx-ink); }
html[data-theme="dark"] body.mx-ui .content a:not(.sc_button):not([class*="btn"]):not(.blogcard_link):not(.wp-block-button__link):not(.dm-related-link) { color: var(--mx-link); }
html[data-theme="dark"] body.mx-ui .content pre { background: #05070F; }
html[data-theme="dark"] body.mx-ui .content blockquote { color: var(--mx-ink-2); }
html[data-theme="dark"] body.mx-ui .single-post-title,
html[data-theme="dark"] body.mx-ui .post-box .post-title a,
html[data-theme="dark"] body.mx-ui .grid_post-box .post-title a,
html[data-theme="dark"] body.mx-ui .post_list_wrap .title,
html[data-theme="dark"] body.mx-ui .single-recommend .recommend-title,
html[data-theme="dark"] body.mx-ui .author-post-title,
html[data-theme="dark"] body.mx-ui .single_title,
html[data-theme="dark"] body.mx-ui .wrap-post-title,
html[data-theme="dark"] body.mx-ui .post_footer_author_title,
html[data-theme="dark"] body.mx-ui .post_footer_author_title_post,
html[data-theme="dark"] body.mx-ui #sidebar .widget,
html[data-theme="dark"] body.mx-ui #sidebar .widget a,
html[data-theme="dark"] body.mx-ui .post-substr,
html[data-theme="dark"] body.mx-ui .post-box-contents,
html[data-theme="dark"] body.mx-ui .post-box-contents a,
html[data-theme="dark"] body.mx-ui .content-pager-link .post-page-numbers,
html[data-theme="dark"] body.mx-ui .post_footer_author .post-author.fn a,
html[data-theme="dark"] body.mx-ui .navigation a,
html[data-theme="dark"] body.mx-ui .post_footer_author {
  color: var(--mx-ink) !important;
}
html[data-theme="dark"] body.mx-ui .post-box-contents,
html[data-theme="dark"] body.mx-ui #sidebar .widget,
html[data-theme="dark"] body.mx-ui article.hentry,
html[data-theme="dark"] body.mx-ui .post_list_wrap,
html[data-theme="dark"] body.mx-ui .single-recommend,
html[data-theme="dark"] body.mx-ui .author-post,
html[data-theme="dark"] body.mx-ui .navigation a,
html[data-theme="dark"] body.mx-ui #share_plz {
  background: var(--mx-surface) !important;
}
html[data-theme="dark"] body.mx-ui .post_footer_author,
html[data-theme="dark"] body.mx-ui .single_thumbnail { background: var(--mx-surface-2) !important; }
html[data-theme="dark"] body.mx-ui .post-description,
html[data-theme="dark"] body.mx-ui .recommend-desc,
html[data-theme="dark"] body.mx-ui .post_list_wrap .date,
html[data-theme="dark"] body.mx-ui .single-post-date,
html[data-theme="dark"] body.mx-ui .navigation .meta-nav { color: var(--mx-muted) !important; }
html[data-theme="dark"] body.mx-ui .post-tag a,
html[data-theme="dark"] body.mx-ui .tag,
html[data-theme="dark"] body.mx-ui #single-main .post-meta .tag,
html[data-theme="dark"] body.mx-ui #single-main .article_footer .tag { background: var(--mx-surface-2) !important; color: var(--mx-ink-2) !important; }
html[data-theme="dark"] body.mx-ui .tag a { color: var(--mx-ink-2) !important; }
html[data-theme="dark"] body.mx-ui .tagcloud a { color: var(--mx-ink-2); }
html[data-theme="dark"] body.mx-ui .profile_sns li a { background: var(--mx-surface); color: var(--mx-ink-2); }
html[data-theme="dark"] body.mx-ui img { filter: brightness(var(--mx-img-dim)); }
html[data-theme="dark"] body.mx-ui .drawer-overlay { background: rgba(0, 0, 0, .7); }
html[data-theme="dark"] body.mx-ui select,
html[data-theme="dark"] body.mx-ui .widget_archive select,
html[data-theme="dark"] body.mx-ui .widget_categories select {
  background: var(--mx-surface-2);
  color: var(--mx-ink) !important;
  border-color: var(--mx-line);
}
html[data-theme="dark"] body.mx-ui .content table tbody tr:nth-child(even) td { background: rgba(255, 255, 255, .03); }
html[data-theme="dark"] body.mx-ui .sns a.x { background: #2A3340; }
/* Diver MAX の表示側（front.css / related.css / ads.css / consult.css）もダークに追従 */
html[data-theme="dark"] body.mx-ui .dm-ad-overlay,
html[data-theme="dark"] body.mx-ui .dm-ad-card,
html[data-theme="dark"] body.mx-ui .dm-ad-fullscreen,
html[data-theme="dark"] body.mx-ui .dm-ad-x,
html[data-theme="dark"] body.mx-ui .dm-ad-fs-close:not(.ready) {
  background: var(--mx-surface);
  color: var(--mx-ink);
  border-color: var(--mx-line);
}
html[data-theme="dark"] body.mx-ui .dm-ad-fullscreen { background: rgba(15, 19, 25, .98); }
html[data-theme="dark"] body.mx-ui .dm-consult-board,
html[data-theme="dark"] body.mx-ui .dm-consult-composer,
html[data-theme="dark"] body.mx-ui .dm-consult-msg-ai .dm-consult-bubble,
html[data-theme="dark"] body.mx-ui .dm-consult-bookmark,
html[data-theme="dark"] body.mx-ui .dm-consult-url {
  background: var(--mx-surface);
  color: var(--mx-ink);
  border-color: var(--mx-line);
}
html[data-theme="dark"] body.mx-ui .dm-consult-messages { background: var(--mx-bg); }
html[data-theme="dark"] body.mx-ui .dm-consult-lead,
html[data-theme="dark"] body.mx-ui .dm-consult-welcome { color: var(--mx-ink-2); }

/* ---------- 16. 読了バー・トップへ戻る（child.js が挿入） ---------- */
.mx-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  z-index: 10001;
  border-radius: 0 2px 2px 0;
  background: var(--mx-accent);
  transition: width .1s linear;
  pointer-events: none;
}
body.admin-bar .mx-progress { top: 32px; }
@media (max-width: 782px) { body.admin-bar .mx-progress { top: 46px; } }

.mx-totop {
  position: fixed;
  right: var(--mx-fixed-gap);
  bottom: var(--mx-fixed-gap);
  z-index: 9990;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity .25s var(--mx-ease), transform .25s var(--mx-ease), box-shadow .2s, color .2s;
}
.mx-totop.mx-on { opacity: 1; transform: none; pointer-events: auto; }
.mx-totop.mx-on:hover { transform: translateY(-2px); }
/* Diver 標準の「上へ」ボタンと二重にならないように */
body.mx-ui.mx-totop-on #page-top { display: none !important; }
/* Diver のフッター固定メニュー（スマホ）がある場合はその上に */
body.mx-ui.mx-has-footer-menu .mx-totop { bottom: calc(var(--mx-fixed-gap) + 56px); }
body.mx-ui.mx-has-footer-menu .mx-theme-btn--fixed { bottom: calc(var(--mx-fixed-gap) + 56px + var(--mx-fixed-size) + 12px); }
/* Diver MAX の相談ランチャー（右下）がある場合は、その 90px 上に置く */
body.mx-ui.mx-has-launcher .mx-totop { bottom: calc(var(--mx-fixed-gap) + 90px); }
body.mx-ui.mx-has-launcher .mx-theme-btn--fixed { bottom: calc(var(--mx-fixed-gap) + 90px + var(--mx-fixed-size) + 12px); }
body.mx-ui.mx-has-launcher.mx-has-footer-menu .mx-totop { bottom: calc(var(--mx-fixed-gap) + 90px + 56px); }
body.mx-ui.mx-has-launcher.mx-has-footer-menu .mx-theme-btn--fixed { bottom: calc(var(--mx-fixed-gap) + 90px + 56px + var(--mx-fixed-size) + 12px); }
/* ランチャーが左下なら右下はそのまま */
body.mx-ui.mx-has-launcher.mx-launcher-left .mx-totop { bottom: var(--mx-fixed-gap); }
body.mx-ui.mx-has-launcher.mx-launcher-left .mx-theme-btn--fixed { bottom: calc(var(--mx-fixed-gap) + var(--mx-fixed-size) + 12px); }

/* ---------- 17. ふわっと表示 ---------- */
body.mx-ui.mx-fade .mx-reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .6s var(--mx-ease), transform .6s var(--mx-ease);
  will-change: opacity, transform;
}
body.mx-ui.mx-fade .mx-reveal.mx-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  body.mx-ui .mx-reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  body.mx-ui *, body.mx-ui *::before, body.mx-ui *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ---------- 18. タブレット・モバイル ---------- */
@media screen and (max-width: 1200px) {
  body.mx-ui #main-wrap { width: 96%; }
}
@media screen and (max-width: 959px) {
  body.mx-ui #main-wrap { width: 96%; margin: 16px auto; }
  body.mx-ui .l-main-container { gap: 18px; }
  body.mx-ui #sidebar { margin-top: 20px; }
}
@media screen and (max-width: 767px) {
  body.mx-ui #main-wrap { width: 100%; margin: 8px auto; }
  body.mx-ui #main, body.mx-ui #single-main { padding: 0 8px !important; }
  body.mx-ui #breadcrumb { padding: 4px 6px 10px; }
  body.mx-ui article.hentry > header { padding: 16px 16px 0; }
  body.mx-ui .single-post-main { padding: 0 16px 16px; }
  body.mx-ui .single-post-main .content { font-size: 16px; line-height: 1.85; }
  body.mx-ui .content h2 { font-size: 1.25em; margin: 2.2em 0 1.1em; }
  body.mx-ui .content h3 { font-size: 1.12em; }
  body.mx-ui .content table { font-size: .9em; }
  body.mx-ui .content table th,
  body.mx-ui .content table td { padding: .6em .7em; }
  body.mx-ui #sidebar .widget { padding: 14px; }
  body.mx-ui .grid_post-box { padding: 5px; }
  body.mx-ui .post-meta-all { padding: 10px 12px; }
  body.mx-ui .navigation { grid-template-columns: 1fr; }
  body.mx-ui .navigation .nav-next a { text-align: left; }
  body.mx-ui .post_author_user { flex-direction: column; align-items: center; text-align: center; }
  body.mx-ui .post_author_user .post_thum { width: auto; }
  body.mx-ui .newpost_list,
  body.mx-ui .recommend-post { grid-template-columns: 1fr 1fr; gap: 10px; }
  body.mx-ui .post_list_wrap .meta,
  body.mx-ui .recommend-meta { padding: 8px 10px 10px; }
  body.mx-ui .footer_content { justify-content: center; text-align: center; padding: 18px 12px; }
  body.mx-ui .footer_navi ul { justify-content: center; }
  /* ヘッダー内では場所が無いので固定表示に切り替える */
  .header-logo .mx-theme-btn {
    position: fixed;
    right: var(--mx-fixed-gap);
    bottom: calc(var(--mx-fixed-gap) + var(--mx-fixed-size) + 12px);
    z-index: 9990;
    margin: 0;
  }
  body.mx-ui.mx-has-launcher .header-logo .mx-theme-btn { bottom: calc(var(--mx-fixed-gap) + 90px + var(--mx-fixed-size) + 12px); }
  body.mx-ui.mx-has-launcher.mx-launcher-left .header-logo .mx-theme-btn { bottom: calc(var(--mx-fixed-gap) + var(--mx-fixed-size) + 12px); }
  body.mx-ui.mx-has-footer-menu .header-logo .mx-theme-btn { bottom: calc(var(--mx-fixed-gap) + 56px + var(--mx-fixed-size) + 12px); }
  #nav_fixed .mx-theme-btn { display: none; }
}
@media screen and (max-width: 480px) {
  body.mx-ui .newpost_list,
  body.mx-ui .recommend-post { grid-template-columns: 1fr; }
  body.mx-ui .post_list_wrap a { flex-direction: row; align-items: stretch; }
  body.mx-ui .post_list_wrap a figure { width: 38%; flex: none; }
  body.mx-ui .post_list_wrap .meta { display: flex; flex-direction: column; justify-content: center; }
  body.mx-ui .author-post-wrap { grid-template-columns: 1fr 1fr; }
  body.mx-ui .single-post-title { font-size: 1.35em; }
}
