/* ==========================================================================
   UNLITD CAREER 記事ページ（single.php）整えCSS  2026-09-04
   読み込み: functions.php unlitd_media_article_assets()  ― 投稿ページのみ
   目的: style.css に 256 件積み重なった .article-content の指定と、
         記事本文に埋め込まれた AI 生成の色付き inline style（青い見出し線、
         オレンジ/赤/緑の枚組ボックス）を、ブランド（黒 #060001 / 黄 #F4D31E）
         の一貫した見た目に揃える。style.css は照合アンカーなので触らない。
   方針: style.css 側が !important を多用しているため、こちらも !important で
         後勝ち（読み込み順が後ろ）にする。セレクタは body.single で 1 段上げる。
   ========================================================================== */

body.single {
  --ma-ink:    #17150f;
  --ma-text:   #2f2d26;
  --ma-muted:  #6f6b60;
  --ma-line:   #e9e6dc;
  --ma-soft:   #f8f6ef;
  --ma-yellow: #F4D31E;
  --ma-yellow-soft: #fff7c9;
  --ma-gold:   #8a6d08;
  --ma-red:    #b9483f;
  --ma-red-soft: #fbf1ef;
  --ma-green:  #3f7a4c;
  --ma-green-soft: #f1f7f2;
}

/* ---- ヒーロー（タイトル部） ---- */
body.single .article-hero-clean { background: linear-gradient(180deg, #fffdf3 0%, #fff 100%) !important; padding: 28px 0 0 !important; border-bottom: 1px solid var(--ma-line) !important; }
body.single .breadcrumb { color: var(--ma-muted) !important; font-size: 12px !important; font-weight: 600 !important; margin: 0 0 22px !important; letter-spacing: .02em !important; }
body.single .breadcrumb a { color: var(--ma-gold) !important; }
body.single .article-hero-card,
body.single .article-hero-card-stack {
  max-width: 860px !important; margin: 0 auto !important; padding: 0 0 40px !important;
  background: transparent !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important;
}
body.single .article-category { display: inline-flex !important; height: 28px !important; align-items: center !important; padding: 0 12px !important; border-radius: 999px !important; background: var(--ma-yellow-soft) !important; color: var(--ma-gold) !important; font-size: 12px !important; font-weight: 700 !important; margin: 0 0 16px !important; }
body.single .article-title { font-size: clamp(26px, 3.4vw, 40px) !important; line-height: 1.45 !important; letter-spacing: -.01em !important; font-weight: 800 !important; color: var(--ma-ink) !important; margin: 0 0 18px !important; max-width: none !important; }
body.single .article-meta { display: flex !important; flex-wrap: wrap !important; gap: 8px 18px !important; margin: 0 0 26px !important; color: var(--ma-muted) !important; font-size: 13px !important; font-weight: 600 !important; font-family: 'Inter', system-ui, sans-serif !important; letter-spacing: .03em !important; }
body.single .article-image-frame { max-width: none !important; margin: 0 !important; border-radius: 18px !important; overflow: hidden !important; background: var(--ma-soft) !important; box-shadow: none !important; border: 1px solid var(--ma-line) !important; }
body.single .article-image-frame img { display: block !important; width: 100% !important; height: auto !important; aspect-ratio: 16/9 !important; object-fit: cover !important; }
body.single .article-lead { max-width: none !important; margin: 22px 0 0 !important; color: var(--ma-text) !important; font-size: 15.5px !important; line-height: 1.9 !important; font-weight: 500 !important; }
body.single .article-lead:empty { display: none !important; }

/* 順序: カテゴリ → タイトル → メタ → 画像 → リード（DOM 順は画像→リード→メタなので flex で並べ替え） */
body.single .article-hero-card-stack { display: flex !important; flex-direction: column !important; align-items: flex-start !important; }
body.single .article-hero-card-stack .article-category { order: 1; }
body.single .article-hero-card-stack .article-title { order: 2; }
body.single .article-hero-card-stack .article-meta { order: 3; }
body.single .article-hero-card-stack .article-image-frame { order: 4; width: 100%; }
body.single .article-hero-card-stack .article-lead { order: 5; }

/* ---- 2カラムレイアウト ---- */
body.single .article-layout { display: grid !important; grid-template-columns: minmax(0, 1fr) 300px !important; gap: 64px !important; padding: 44px 0 0 !important; align-items: start !important; }
body.single .article-content { max-width: 720px !important; min-width: 0 !important; width: auto !important; padding: 0 !important; background: none !important; border: 0 !important; box-shadow: none !important; color: var(--ma-text) !important; font-size: 16.5px !important; line-height: 1.95 !important; font-weight: 400 !important; overflow-wrap: anywhere; }
body.single .article-sidebar { position: sticky !important; top: 96px !important; display: block !important; width: auto !important; min-width: 0 !important; }

/* ---- 本文タイポグラフィ ---- */
body.single .article-content p { margin: 0 0 1.55em !important; font-size: inherit !important; line-height: inherit !important; color: inherit !important; font-weight: 400 !important; }
body.single .article-content p:last-child { margin-bottom: 0 !important; }
body.single .article-content strong { font-weight: 700 !important; color: var(--ma-ink) !important; background: linear-gradient(transparent 64%, var(--ma-yellow-soft) 64%) !important; padding: 0 .05em !important; }
body.single .article-content mark { background: linear-gradient(transparent 58%, var(--ma-yellow) 58%) !important; color: inherit !important; }
body.single .article-content a:not(.wp-block-button__link):not(.article-btn):not(.aff-btn):not(.aff-link) { color: var(--ma-gold) !important; text-decoration: underline !important; text-decoration-color: rgba(138,109,8,.35) !important; text-underline-offset: 3px !important; background: none !important; }
body.single .article-content a:not(.wp-block-button__link):not(.article-btn):not(.aff-btn):not(.aff-link):hover { color: var(--ma-ink) !important; text-decoration-color: var(--ma-yellow) !important; }
body.single .article-content hr, body.single .article-content .wp-block-separator { border: 0 !important; height: 1px !important; background: var(--ma-line) !important; margin: 48px 0 !important; width: 100% !important; }

/* 見出し：inline style（border-bottom:3px solid #2563eb 等）も含めて全部ここで統一 */
body.single .article-content h2 {
  position: relative !important; margin: 72px 0 28px !important; padding: 0 0 14px !important;
  font-size: clamp(22px, 2.2vw, 27px) !important; line-height: 1.5 !important; font-weight: 800 !important; letter-spacing: -.01em !important;
  color: var(--ma-ink) !important; background: none !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important;
  border-bottom: 1px solid var(--ma-line) !important;
}
body.single .article-content h2::before { content: none !important; }
body.single .article-content h2::after { content: "" !important; position: absolute !important; left: 0 !important; bottom: -1px !important; width: 64px !important; height: 3px !important; background: var(--ma-yellow) !important; border-radius: 2px !important; color: transparent !important; font-size: 0 !important; opacity: 1 !important; }
body.single .article-content h3 {
  position: relative !important; margin: 52px 0 18px !important; padding: 0 0 0 16px !important;
  font-size: clamp(18px, 1.7vw, 21px) !important; line-height: 1.55 !important; font-weight: 700 !important;
  color: var(--ma-ink) !important; background: none !important; border: 0 !important; border-left: 4px solid var(--ma-yellow) !important; border-radius: 0 !important; box-shadow: none !important;
}
body.single .article-content h3::before, body.single .article-content h3::after { content: none !important; }
body.single .article-content h4 { margin: 36px 0 14px !important; padding: 0 !important; font-size: 17px !important; font-weight: 700 !important; color: var(--ma-ink) !important; background: none !important; border: 0 !important; }
body.single .article-content h4::before { content: none !important; }
body.single .article-content h2 + h3 { margin-top: 28px !important; }
body.single .article-content h2:first-child, body.single .article-content > div:first-child + h2 { margin-top: 0 !important; }

/* リスト */
body.single .article-content ul, body.single .article-content ol { margin: 0 0 1.6em !important; padding: 0 0 0 1.4em !important; background: none !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; }
body.single .article-content ul { list-style: none !important; padding-left: 0 !important; }
body.single .article-content ul > li { position: relative !important; padding-left: 20px !important; margin: 0 0 .55em !important; color: inherit !important; font-weight: 400 !important; line-height: 1.85 !important; }
body.single .article-content ul > li::before { content: "" !important; position: absolute !important; left: 2px !important; top: .78em !important; width: 7px !important; height: 7px !important; border-radius: 50% !important; background: var(--ma-yellow) !important; box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--ma-line) !important; }
/* 行頭が ✅ などの絵文字で始まる項目は、黄色ドットと二重になるのでドットを消す */
body.single .article-content ul > li:has(> img.emoji:first-child)::before,
body.single .article-content ul > li.li-marked::before { content: none !important; }
body.single .article-content ul > li:has(> img.emoji:first-child),
body.single .article-content ul > li.li-marked { padding-left: 0 !important; }
/* 記号付き項目は本文中の ol でも番号が二重になるので、マーカーを消す */
body.single .article-content ol > li.li-marked { list-style: none !important; margin-left: -1.4em !important; padding-left: 0 !important; }
body.single .article-content ol > li { margin: 0 0 .55em !important; padding-left: 4px !important; color: inherit !important; font-weight: 400 !important; line-height: 1.85 !important; }
body.single .article-content ol > li::marker { color: var(--ma-gold) !important; font-weight: 800 !important; font-family: 'Inter', system-ui, sans-serif !important; }
body.single .article-content li > ul, body.single .article-content li > ol { margin: .5em 0 0 !important; }
body.single .article-content li strong { background: none !important; }

/* 画像 */
body.single .article-content figure.wp-block-image, body.single .article-content .wp-block-image { margin: 36px 0 !important; }
/* 本文画像は幅いっぱいにせず 90% で中央寄せ（2026-09-07 要望） */
body.single .article-content figure.wp-block-image, body.single .article-content .wp-block-image { width: 90% !important; max-width: 90% !important; margin-left: auto !important; margin-right: auto !important; }
body.single .article-content img:not(.emoji) { display: block !important; width: 100% !important; max-width: 100% !important; height: auto !important; margin: 0 auto !important; border-radius: 14px !important; box-shadow: none !important; border: 1px solid var(--ma-line) !important; }
body.single .article-content p > img:not(.emoji), body.single .article-content > img:not(.emoji), body.single .article-content div > img:not(.emoji) { width: 90% !important; max-width: 90% !important; }
/* WP が絵文字を <img class="emoji"> に変換する。画像ルールに巻き込むと 📌✅ が縮んで浮くので除外 */
body.single .article-content img.emoji { display: inline !important; width: 1.1em !important; height: 1.1em !important; margin: 0 .12em !important; padding: 0 !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; vertical-align: -.15em !important; background: none !important; }
body.single .article-content figcaption { margin-top: 10px !important; text-align: center !important; font-size: 12.5px !important; color: var(--ma-muted) !important; }

/* 引用 */
body.single .article-content blockquote, body.single .article-content .wp-block-quote {
  position: relative !important; margin: 32px 0 !important; padding: 22px 24px 22px 28px !important;
  background: var(--ma-soft) !important; border: 0 !important; border-left: 4px solid var(--ma-yellow) !important; border-radius: 0 14px 14px 0 !important; box-shadow: none !important;
  font-size: 15.5px !important; color: var(--ma-text) !important;
}
body.single .article-content blockquote::before, body.single .article-content .wp-block-quote::before { content: none !important; }
body.single .article-content blockquote p { margin: 0 0 .8em !important; color: inherit !important; font-style: normal !important; }
body.single .article-content blockquote p:last-child { margin-bottom: 0 !important; }
body.single .article-content blockquote cite { display: block !important; margin-top: 10px !important; font-size: 12.5px !important; color: var(--ma-muted) !important; font-style: normal !important; }

/* テーブル：スマホで横スクロール（はみ出しの主因） */
body.single .article-content figure.wp-block-table, body.single .article-content .table-wrap { margin: 32px 0 !important; overflow-x: auto !important; -webkit-overflow-scrolling: touch !important; border-radius: 12px !important; border: 1px solid var(--ma-line) !important; }
body.single .article-content table { width: 100% !important; min-width: 560px !important; margin: 0 !important; border-collapse: collapse !important; border: 0 !important; box-shadow: none !important; background: #fff !important; font-size: 14.5px !important; line-height: 1.7 !important; }
body.single .article-content th, body.single .article-content td { padding: 12px 14px !important; border: 0 !important; border-bottom: 1px solid var(--ma-line) !important; border-right: 1px solid var(--ma-line) !important; text-align: left !important; vertical-align: top !important; color: var(--ma-text) !important; background: transparent !important; }
body.single .article-content th:last-child, body.single .article-content td:last-child { border-right: 0 !important; }
body.single .article-content tr:last-child td { border-bottom: 0 !important; }
body.single .article-content thead th, body.single .article-content tr:first-child th { background: var(--ma-yellow-soft) !important; color: var(--ma-ink) !important; font-weight: 700 !important; white-space: nowrap !important; }
body.single .article-content tbody th { background: var(--ma-soft) !important; font-weight: 700 !important; color: var(--ma-ink) !important; }
body.single .article-content tbody tr:nth-child(even) td { background: #fcfbf7 !important; }
body.single .article-content table p { margin: 0 !important; font-size: inherit !important; }

/* ---- inline style で作られた色付きボックスを統一 ----
   出現パターン: border-left 黄 / 緑背景 #e8f5e9 系 / 赤背景 #fdecea 系 / グラデ(amber・blue・red・green) */
body.single .article-content div[style],
body.single .article-content section[style] {
  background: var(--ma-soft) !important; border: 1px solid var(--ma-line) !important; border-left: 4px solid var(--ma-yellow) !important;
  border-radius: 0 14px 14px 0 !important; padding: 20px 22px !important; margin: 32px 0 !important; box-shadow: none !important; color: var(--ma-text) !important;
}
/* 赤系（注意・デメリット） */
body.single .article-content div[style*="fdecea"], body.single .article-content div[style*="e74c3c"], body.single .article-content div[style*="fef2f2"], body.single .article-content div[style*="ef4444"], body.single .article-content div[style*="fee2e2"], body.single .article-content div[style*="dc2626"] { background: var(--ma-red-soft) !important; border-left-color: var(--ma-red) !important; }
/* 緑系（メリット・OK） */
body.single .article-content div[style*="4caf50"], body.single .article-content div[style*="e8f5e9"], body.single .article-content div[style*="f0fdf4"], body.single .article-content div[style*="22c55e"], body.single .article-content div[style*="dcfce7"], body.single .article-content div[style*="2ecc71"] { background: var(--ma-green-soft) !important; border-left-color: var(--ma-green) !important; }
/* ボックス内部：見出し風 p・ul の二重枠・色指定を打ち消す */
body.single .article-content div[style] > p[style], body.single .article-content div[style] > p:first-child { margin: 0 0 10px !important; font-weight: 700 !important; font-size: 16px !important; color: var(--ma-ink) !important; }
body.single .article-content div[style] > p:last-child { margin-bottom: 0 !important; }
body.single .article-content div[style] ul, body.single .article-content div[style] ol { margin: 0 !important; padding: 0 !important; background: none !important; border: 0 !important; box-shadow: none !important; }
body.single .article-content div[style] ol { padding-left: 1.3em !important; }
body.single .article-content div[style] li { color: var(--ma-text) !important; margin: 0 0 .4em !important; font-size: 15.5px !important; }
body.single .article-content div[style] li:last-child { margin-bottom: 0 !important; }
body.single .article-content div[style] h3, body.single .article-content div[style] h4 { margin: 0 0 10px !important; padding: 0 !important; border: 0 !important; font-size: 16px !important; }
body.single .article-content div[style] h3::before { content: none !important; }
body.single .article-content div[style] div[style] { margin: 12px 0 0 !important; padding: 0 !important; background: none !important; border: 0 !important; }
body.single .article-content p[style], body.single .article-content li[style], body.single .article-content td[style], body.single .article-content th[style] { font-size: inherit !important; }
body.single .article-content p[style] { color: inherit !important; }
/* 既存テーマのボックス class も同じトーンに */
body.single .article-content .note-box, body.single .article-content .check-box, body.single .article-content .warning-box, body.single .article-content .point-box, body.single .article-content .tip-card, body.single .article-content .article-link-card { background: var(--ma-soft) !important; border: 1px solid var(--ma-line) !important; border-left: 4px solid var(--ma-yellow) !important; border-radius: 0 14px 14px 0 !important; box-shadow: none !important; padding: 20px 22px !important; margin: 32px 0 !important; }
body.single .article-content .warning-box { background: var(--ma-red-soft) !important; border-left-color: var(--ma-red) !important; }
body.single .article-content .summary-box { background: var(--ma-ink) !important; color: #fff !important; border-radius: 14px !important; padding: 24px 26px !important; box-shadow: none !important; }
body.single .article-content .summary-box p, body.single .article-content .summary-box li { color: #fff !important; }
body.single .article-content .wp-block-button__link, body.single .article-content a.article-btn { background: var(--ma-ink) !important; color: #fff !important; border-radius: 999px !important; padding: 14px 28px !important; font-weight: 700 !important; box-shadow: none !important; text-decoration: none !important; }
body.single .article-content .wp-block-button__link:hover, body.single .article-content a.article-btn:hover { background: var(--ma-gold) !important; }

/* ---- サイドバー ---- */
body.single .side-card { background: #fff !important; border: 1px solid var(--ma-line) !important; border-radius: 16px !important; padding: 20px 20px 18px !important; margin: 0 0 20px !important; box-shadow: none !important; }
body.single .side-title, body.single .side-card h3 { font-size: 13px !important; font-weight: 800 !important; letter-spacing: .14em !important; color: var(--ma-gold) !important; margin: 0 0 14px !important; padding: 0 0 10px !important; border: 0 !important; border-bottom: 1px solid var(--ma-line) !important; background: none !important; }
body.single .toc-card { max-height: calc(100vh - 140px) !important; overflow-y: auto !important; scrollbar-width: thin !important; }
body.single .toc a, body.single .toc-list a { display: block !important; padding: 8px 0 !important; border: 0 !important; border-bottom: 1px solid #f1eee5 !important; color: var(--ma-text) !important; font-size: 13px !important; font-weight: 600 !important; line-height: 1.55 !important; text-decoration: none !important; }
body.single .toc a:hover, body.single .toc-list a:hover { color: var(--ma-gold) !important; }
body.single .toc-list .toc-level-3 { padding-left: 14px !important; color: var(--ma-muted) !important; font-weight: 500 !important; font-size: 12.5px !important; }
body.single .toc-list .toc-level-3::before { content: "– " !important; color: #c9c3b0 !important; }
body.single .toc-list .toc-level-4, body.single .toc-list .toc-level-5 { padding-left: 24px !important; font-size: 12px !important; color: var(--ma-muted) !important; }
body.single .side-post { display: grid !important; grid-template-columns: 24px 72px 1fr !important; gap: 10px !important; align-items: center !important; padding: 10px 0 !important; border: 0 !important; border-bottom: 1px solid #f1eee5 !important; text-decoration: none !important; color: var(--ma-text) !important; }
body.single .side-post:last-child { border-bottom: 0 !important; }
body.single .rank-num { display: inline-flex !important; align-items: center !important; justify-content: center !important; width: 24px !important; height: 24px !important; border-radius: 6px !important; background: var(--ma-ink) !important; color: var(--ma-yellow) !important; font-size: 12px !important; font-weight: 800 !important; font-family: 'Inter', system-ui, sans-serif !important; }
body.single .side-post img, body.single .side-post .thumb-placeholder { width: 72px !important; height: 48px !important; flex: 0 0 72px !important; border-radius: 8px !important; object-fit: cover !important; background: var(--ma-soft) !important; }
body.single .side-post span:last-child { font-size: 12.5px !important; font-weight: 600 !important; line-height: 1.5 !important; display: -webkit-box !important; -webkit-line-clamp: 2 !important; -webkit-box-orient: vertical !important; overflow: hidden !important; }
body.single .side-categories { display: flex !important; flex-wrap: wrap !important; gap: 8px !important; }
body.single .side-categories a { display: inline-flex !important; align-items: center !important; padding: 6px 12px !important; border-radius: 999px !important; border: 1px solid var(--ma-line) !important; background: #fff !important; color: var(--ma-text) !important; font-size: 12.5px !important; font-weight: 600 !important; text-decoration: none !important; transition: all .2s !important; }
body.single .side-categories a:hover { border-color: var(--ma-ink) !important; background: var(--ma-ink) !important; color: #fff !important; }
body.single .side-muted { color: var(--ma-muted) !important; font-size: 13px !important; }

/* ---- 関連記事 ---- */
body.single .related { width: min(1160px, calc(100% - 48px)) !important; margin: 96px auto 0 !important; padding: 64px 0 80px !important; border-top: 1px solid var(--ma-line) !important; }
body.single .related h2 { text-align: left !important; font-size: clamp(20px, 2.2vw, 26px) !important; font-weight: 800 !important; margin: 0 0 28px !important; padding: 0 !important; border: 0 !important; background: none !important; color: var(--ma-ink) !important; }
body.single .related .post-grid { display: grid !important; grid-template-columns: repeat(4, 1fr) !important; gap: 28px 24px !important; }
body.single .related .post-card { background: none !important; border: 0 !important; box-shadow: none !important; padding: 0 !important; border-radius: 0 !important; }
body.single .related .post-card a { display: block !important; text-decoration: none !important; color: var(--ma-ink) !important; }
body.single .related .post-thumb { display: block !important; width: 100% !important; aspect-ratio: 16/10 !important; object-fit: cover !important; border-radius: 14px !important; background: var(--ma-soft) !important; border: 1px solid var(--ma-line) !important; margin: 0 0 12px !important; box-shadow: none !important; transition: transform .35s cubic-bezier(.2,.7,.2,1) !important; }
body.single .related .post-card a:hover .post-thumb { transform: translateY(-4px) !important; }
body.single .related .badge { display: inline-block !important; padding: 3px 10px !important; border-radius: 999px !important; background: var(--ma-yellow-soft) !important; color: var(--ma-gold) !important; font-size: 11.5px !important; font-weight: 700 !important; margin: 0 0 8px !important; }
body.single .related h3 { font-size: 15px !important; line-height: 1.55 !important; font-weight: 700 !important; margin: 0 0 8px !important; padding: 0 !important; border: 0 !important; background: none !important; color: var(--ma-ink) !important; }
body.single .related .date { font-family: 'Inter', system-ui, sans-serif !important; font-size: 12px !important; color: var(--ma-muted) !important; letter-spacing: .04em !important; }

/* ---- レスポンシブ ---- */
@media (max-width: 1080px) {
  body.single .article-layout { grid-template-columns: minmax(0, 1fr) 270px !important; gap: 44px !important; }
}
@media (max-width: 980px) {
  body.single .article-layout { grid-template-columns: 1fr !important; gap: 40px !important; padding: 40px 20px 0 !important; }   /* 左右20px: media-header.css の .container 指定より後に読まれるのでここでも明示 */
  body.single .article-content { max-width: none !important; }
  body.single .article-sidebar { position: static !important; }
  body.single .toc-card { max-height: none !important; overflow: visible !important; }
  body.single .related .post-grid { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 640px) {
  body.single .article-hero-clean { padding-top: 20px !important; }
  body.single .article-hero-card-stack { padding-bottom: 28px !important; }
  body.single .article-title { font-size: 24px !important; line-height: 1.45 !important; margin-bottom: 14px !important; }
  body.single .article-image-frame { border-radius: 14px !important; }
  body.single .article-lead { font-size: 14.5px !important; }
  body.single .article-layout { padding: 32px 20px 0 !important; gap: 36px !important; }
  body.single .article-content { font-size: 15.5px !important; line-height: 1.9 !important; }
  body.single .article-content h2 { margin: 52px 0 22px !important; font-size: 20px !important; }
  body.single .article-content h3 { margin: 40px 0 14px !important; font-size: 17.5px !important; }
  body.single .article-content div[style], body.single .article-content section[style], body.single .article-content blockquote, body.single .article-content .wp-block-quote { padding: 16px 16px !important; margin: 26px 0 !important; }
  body.single .article-content table { font-size: 13.5px !important; }
  body.single .article-content th, body.single .article-content td { padding: 10px 12px !important; }
  body.single .related { width: calc(100% - 28px) !important; margin-top: 64px !important; padding: 44px 0 56px !important; }
  body.single .related .post-grid { grid-template-columns: 1fr !important; gap: 24px !important; }
}

/* ---- アフィリエイトボタン（inc/affiliate-links.php が出力） ---- */
body.single .article-content .aff-wrap { display: flex !important; flex-wrap: wrap !important; align-items: center !important; gap: 10px !important; margin: 20px 0 28px !important; }
body.single .article-content a.aff-btn {
  display: inline-flex !important; align-items: center !important; gap: 12px !important; min-height: 52px !important; padding: 10px 26px !important;
  border-radius: 999px !important; background: var(--ma-ink) !important; color: #fff !important; font-weight: 700 !important; font-size: 15px !important; line-height: 1.4 !important;
  text-decoration: none !important; box-shadow: 0 10px 24px rgba(6,0,1,.14) !important; transition: transform .25s ease, box-shadow .25s ease, background .25s !important;
}
body.single .article-content a.aff-btn:hover { transform: translateY(-2px) !important; background: #2b2a25 !important; color: #fff !important; box-shadow: 0 14px 30px rgba(6,0,1,.2) !important; }
body.single .article-content a.aff-btn .aff-btn__arrow { color: var(--ma-yellow) !important; font-weight: 800 !important; }
body.single .article-content a.aff-btn--big { width: 100% !important; justify-content: center !important; min-height: 60px !important; font-size: 16.5px !important; background: var(--ma-yellow) !important; color: var(--ma-ink) !important; box-shadow: 0 12px 28px rgba(244,211,30,.35) !important; }
body.single .article-content a.aff-btn--big:hover { background: #ffdd3c !important; color: var(--ma-ink) !important; }
body.single .article-content a.aff-btn--big .aff-btn__arrow { color: var(--ma-ink) !important; }
body.single .article-content .aff-pr { font-family: 'Inter', system-ui, sans-serif !important; font-size: 10px !important; font-weight: 700 !important; letter-spacing: .12em !important; color: var(--ma-muted) !important; border: 1px solid var(--ma-line) !important; border-radius: 4px !important; padding: 2px 6px !important; }
body.single .article-content a.aff-link { color: var(--ma-gold) !important; font-weight: 700 !important; text-decoration: underline !important; text-underline-offset: 3px !important; }
body.single .article-content div[style] .aff-wrap { margin: 12px 0 0 !important; }
@media (max-width: 640px) {
  body.single .article-content a.aff-btn { width: 100% !important; justify-content: center !important; }
}
