/*
Theme Name: AIワークシフト
Theme URI: https://virtual-lunchclub.jp/
Author: NOTE INC.
Description: AIワークシフト カスタムテーマ。トップ（front-page）は支給デザイン（Claude Design / KVカフェ版）をclassベースで移植。他テンプレは骨格。
Version: 0.4.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: aiworkshift
*/

/* ===== 骨格の最小構造（他テンプレ用） ===== */
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, -apple-system, "Hiragino Sans", Meiryo, sans-serif; line-height: 1.8; color: #212529; }
img { max-width: 100%; height: auto; }
.site-header__inner, .site-footer__inner, .site-main, .archive, .entry, .page-entry { max-width: 1080px; margin-inline: auto; padding-inline: 20px; }
.post-list { list-style: none; padding: 0; margin: 0; }
.entry__content pre { overflow-x: auto; }

/* =====================================================================
 * front-page（支給デザイン移植・デスクトップは元の見た目を維持）
 * 元はインラインstyle102箇所。値はそのまま class 化。min-width:1200px は撤廃。
 * ===================================================================== */
.fp-root { color: #212529; line-height: normal; } /* front-pageは元デザインの既定line-heightに合わせる（骨格の本文1.8を持ち込まない） */
.fp-root a { text-decoration: none; }

/* --- ヒーロー --- */
.fp-hero { background: #102b4d; position: relative; overflow: hidden; }
.fp-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; z-index: 0; }
.fp-hero__overlay { position: absolute; inset: 0; z-index: 1;
  background: radial-gradient(ellipse at center, rgba(4,30,66,.50) 0%, rgba(4,30,66,.42) 38%, rgba(4,30,66,.12) 76%, rgba(4,30,66,.16) 100%),
              linear-gradient(165deg, rgba(4,30,66,.24) 0%, rgba(6,38,79,.18) 54%, rgba(13,90,153,.12) 100%); }
.fp-hero__waves { position: absolute; inset: 0; opacity: .5; z-index: 2; pointer-events: none; }
.fp-header { position: relative; z-index: 3; display: flex; align-items: center; justify-content: space-between; padding: 0 56px; height: 76px; }
.fp-logo { font-family: "Noto Serif JP", serif; font-size: 22px; font-weight: 700; color: #fff; letter-spacing: .03em; text-decoration: none; }
.fp-nav { display: flex; align-items: center; gap: 30px; font-size: 14px; font-weight: 500; color: #c3d2e4; }
.fp-nav a { color: #c3d2e4; }
.fp-linebtn { display: inline-flex; align-items: center; gap: 8px; background: #06C755; color: #fff; font-weight: 700; border-radius: 8px; }
.fp-nav__cta { gap: 7px; font-size: 13px; padding: 10px 18px; border-radius: 6px; }
.fp-hero__inner { position: relative; z-index: 3; max-width: 1140px; margin: 0 auto; padding: 76px 20px 120px; text-align: center; }
.fp-eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 12.5px; font-weight: 700; color: #7fd8e8; letter-spacing: .18em; }
.fp-eyebrow span { width: 28px; height: 1px; background: #7fd8e8; }
.fp-hero__title { margin: 28px 0 0; font-family: "Noto Serif JP", serif; font-size: 58px; line-height: 1.5; font-weight: 700; color: #fff; letter-spacing: .04em; text-wrap: pretty; }
.fp-hero__lead { margin: 22px auto 0; font-size: 15px; line-height: 2; color: #b9c9dd; max-width: 560px; text-wrap: pretty; }
.fp-hero__cta { margin-top: 30px; font-size: 15px; padding: 15px 32px; }

/* --- カテゴリカード（ヒーローに-64pxで重ねる） --- */
.fp-cats { max-width: 1140px; margin: -64px auto 0; padding: 0 20px; position: relative; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 18px; }
.fp-cat { display: block; background: #fff; border: 1px solid #dde6ef; border-radius: 10px; box-shadow: 0 10px 30px rgba(4,30,66,.12); padding: 22px 24px; color: inherit; }
.fp-cat__icon { width: 40px; height: 40px; border-radius: 8px; background: linear-gradient(135deg,#0d6db8,#2ec4dd); display: grid; place-items: center; }
.fp-cat__name { margin-top: 14px; font-size: 16.5px; font-weight: 700; color: #06264f; }
.fp-cat__desc { margin: 6px 0 0; font-size: 12.5px; line-height: 1.75; color: #5c6b80; }
.fp-cat__more { margin-top: 12px; font-size: 12px; font-weight: 700; color: #0d6db8; }

/* --- セクション見出し --- */
.fp-sec { max-width: 1140px; margin: 0 auto; padding: 64px 20px 0; }
.fp-sec__head { display: flex; align-items: baseline; justify-content: space-between; }
.fp-sec__head--gap { margin-top: 56px; }
.fp-h2 { margin: 0; font-size: 22px; font-weight: 900; color: #06264f; display: flex; align-items: center; gap: 12px; }
.fp-h2__bar { width: 6px; height: 24px; background: linear-gradient(180deg,#0d6db8,#2ec4dd); border-radius: 3px; }
.fp-more { font-size: 12.5px; font-weight: 700; color: #0d6db8; }

/* --- 注目（横長）記事カード --- */
.fp-feat { margin-top: 20px; display: flex; gap: 28px; border: 1px solid #dde6ef; border-radius: 12px; overflow: hidden; color: inherit; background: #fff; box-shadow: 0 4px 16px rgba(4,30,66,.06); }
.fp-feat__thumb { flex: none; width: 460px; aspect-ratio: 16/9; background: linear-gradient(135deg,#eef3f9,#dcebf7); display: grid; place-items: center; color: #8aa0bd; font-size: 12px; }
.fp-feat__thumb img { width: 100%; height: 100%; object-fit: cover; }
.fp-feat__body { flex: 1; padding: 28px 32px 28px 4px; display: flex; flex-direction: column; justify-content: center; }
.fp-feat__cat { display: flex; align-items: center; gap: 8px; font-size: 11.5px; font-weight: 700; color: #0d6db8; }
.fp-badge { padding: 3px 9px; background: linear-gradient(90deg,#0d6db8,#2ec4dd); color: #fff; border-radius: 3px; font-size: 10px; letter-spacing: .06em; }
.fp-feat__title { margin-top: 12px; font-size: 22px; font-weight: 900; line-height: 1.6; color: #06264f; text-wrap: pretty; }
.fp-feat__excerpt { margin: 12px 0 0; font-size: 13.5px; line-height: 1.8; color: #5c6b80; text-wrap: pretty; }
.fp-feat__meta { margin-top: 14px; font-size: 11.5px; color: #8aa0bd; }

/* --- 新着記事グリッド --- */
.fp-grid { margin-top: 20px; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; }
.fp-card { display: block; border: 1px solid #dde6ef; border-radius: 10px; overflow: hidden; color: inherit; background: #fff; }
.fp-card__thumb { aspect-ratio: 16/9; background: #eef3f9; display: grid; place-items: center; color: #8aa0bd; font-size: 11px; }
.fp-card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.fp-card__body { padding: 16px 18px 18px; }
.fp-card__cat { font-size: 11px; font-weight: 700; color: #0d6db8; }
.fp-card__title { margin-top: 6px; font-size: 14.5px; font-weight: 700; line-height: 1.65; color: #212529; text-wrap: pretty; }
.fp-card__date { margin-top: 8px; font-size: 11px; color: #8aa0bd; }

/* --- LINE CTA（マグネット）ブロック --- */
.fp-magnet { margin-top: 64px; background: #06264f; border-radius: 12px; padding: 40px 48px; color: #fff; display: flex; align-items: center; gap: 36px; position: relative; overflow: hidden; }
.fp-magnet__bar { position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg,#0d6db8,#2ec4dd); }
.fp-magnet__book { flex: none; width: 104px; height: 134px; background: #fff; border-radius: 5px; display: grid; place-items: center; color: #06264f; font-size: 11px; font-weight: 700; text-align: center; line-height: 1.6; border: 3px solid #2ec4dd; }
.fp-magnet__body { flex: 1; min-width: 0; }
.fp-magnet__eyebrow { font-size: 12px; font-weight: 900; letter-spacing: .1em; color: #7fd8e8; }
.fp-magnet__title { margin-top: 8px; font-size: 23px; font-weight: 900; line-height: 1.6; text-wrap: pretty; }
.fp-magnet__text { margin: 8px 0 0; font-size: 13.5px; line-height: 1.8; color: #b9c9dd; }
.fp-magnet__cta { flex: none; font-size: 15px; padding: 15px 30px; white-space: nowrap; }

/* --- 運営者ボックス --- */
.fp-author { margin-top: 32px; border: 1px solid #dde6ef; border-radius: 12px; padding: 26px 32px; display: flex; gap: 22px; align-items: center; background: #fafbfd; }
.fp-author__avatar { flex: none; width: 68px; height: 68px; border-radius: 50%; background: #e8ecf1; display: grid; place-items: center; font-size: 22px; font-weight: 700; color: #5c6b80; }
.fp-author__body { flex: 1; font-size: 13.5px; line-height: 1.8; color: #5c6b80; }
.fp-author__role { font-size: 11.5px; font-weight: 700; letter-spacing: .06em; color: #0d6db8; }
.fp-author__name { font-size: 15.5px; color: #212529; }
.fp-author__link { flex: none; font-size: 13px; font-weight: 700; color: #06264f; border: 1px solid #c9d4e2; border-radius: 6px; padding: 11px 20px; background: #fff; }

/* --- フッター --- */
.fp-footer { margin-top: 72px; background: #041e42; color: #fff; }
.fp-footer__inner { max-width: 1140px; margin: 0 auto; padding: 40px 20px; display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; }
.fp-footer__brand { font-family: "Noto Serif JP", serif; font-size: 18px; font-weight: 700; letter-spacing: .03em; }
.fp-footer__tag { margin-top: 8px; font-size: 11.5px; color: #8fa4c0; }
.fp-footer__cols { display: flex; gap: 56px; font-size: 12.5px; line-height: 1.6; }
.fp-footer__col { display: grid; gap: 10px; }
.fp-footer__col > span { font-weight: 700; color: #7fd8e8; font-size: 11px; letter-spacing: .08em; }
.fp-footer__col a { color: #c3d2e4; }
.fp-footer__copy { font-size: 10.5px; color: #8fa4c0; }

/* =====================================================================
 * レスポンシブ（375px〜。デザインのトーンを保って段組み解除）
 * ===================================================================== */
@media (max-width: 960px) {
  .fp-cats, .fp-grid { grid-template-columns: 1fr 1fr; }
  .fp-header { padding: 0 20px; }
  .fp-hero__title { font-size: 44px; }
  .fp-feat__thumb { width: 320px; }
  .fp-footer__inner { flex-wrap: wrap; }
}
@media (max-width: 680px) {
  .fp-nav { gap: 14px; font-size: 13px; }
  .fp-nav a:not(.fp-nav__cta) { display: none; } /* カテゴリ文字リンクは畳む。ロゴ＋無料特典は残す */
  .fp-hero__inner { padding: 56px 20px 96px; }
  .fp-hero__title { font-size: 33px; }
  .fp-hero__lead { font-size: 14px; }
  .fp-cats { grid-template-columns: 1fr; margin-top: -48px; }
  .fp-grid { grid-template-columns: 1fr; }
  .fp-feat { flex-direction: column; }
  .fp-feat__thumb { width: 100%; }
  .fp-feat__body { padding: 22px 22px 24px; }
  .fp-feat__title { font-size: 19px; }
  .fp-magnet { flex-direction: column; align-items: flex-start; padding: 32px 24px; gap: 20px; }
  .fp-magnet__cta { width: 100%; justify-content: center; }
  .fp-author { flex-direction: column; align-items: flex-start; }
  .fp-author__link { width: 100%; text-align: center; }
  .fp-footer__inner { flex-direction: column; gap: 24px; }
  .fp-footer__cols { gap: 32px; }
}

/* =====================================================================
 * single（記事詳細）— 支給デザイン（article_clean）移植。デスクトップは元の値のまま。
 * 本文コンテンツ（the_content）は .entry__content 内の要素セレクタで装飾。
 * ===================================================================== */
.art-page { line-height: normal; color: #212529; }
.art-page a { color: #06264f; text-decoration: underline; text-underline-offset: 3px; }
.art-page a:hover { color: #0d6db8; }

/* ヘッダー（白地・下線・現在地強調） */
.art-header { display: flex; align-items: center; justify-content: space-between; padding: 0 56px; height: 76px; border-bottom: 1px solid #e8ecf1; }
.art-logo { font-family: "Noto Serif JP", serif; font-size: 22px; font-weight: 700; color: #06264f; letter-spacing: .03em; text-decoration: none; }
.art-nav { display: flex; align-items: center; gap: 30px; font-size: 14px; font-weight: 500; }
.art-nav a { color: #3c4a5e; text-decoration: none; }
.art-nav a.is-current { color: #06264f; font-weight: 700; border-bottom: 2px solid #06264f; padding-bottom: 2px; }
.art-linebtn { display: inline-flex; align-items: center; gap: 8px; background: #06C755; color: #fff; font-weight: 700; border-radius: 6px; text-decoration: none; }
.art-nav__cta { gap: 7px; font-size: 13px; padding: 10px 18px; }

/* レイアウト */
.art-main { max-width: 1140px; margin: 0 auto; padding: 36px 20px 72px; display: flex; gap: 44px; }
.art-body { width: 760px; flex: none; min-width: 0; }
.art-side { flex: 1; min-width: 280px; }

/* 記事ヘッダ */
.art-breadcrumb { font-size: 12.5px; color: #7a8699; display: flex; gap: 8px; flex-wrap: wrap; }
.art-breadcrumb a { color: #7a8699; text-decoration: none; }
.art-breadcrumb .art-breadcrumb__cur { color: #3c4a5e; }
.art-title { margin: 20px 0 0; font-family: "Noto Serif JP", serif; font-size: 34px; line-height: 1.55; font-weight: 700; color: #06264f; text-wrap: pretty; }
.art-metarow { margin-top: 18px; display: flex; align-items: center; gap: 14px; font-size: 13px; color: #5c6b80; flex-wrap: wrap; }
.art-metarow__cat { display: inline-flex; align-items: center; gap: 6px; border: 1px solid #c9d4e2; border-radius: 999px; padding: 4px 12px; font-size: 12px; font-weight: 700; color: #06264f; text-decoration: none; }
.art-metarow__sup { display: inline-flex; align-items: center; gap: 7px; }
.art-avatar { width: 26px; height: 26px; border-radius: 50%; background: #e8ecf1; display: grid; place-items: center; font-size: 11px; font-weight: 700; color: #5c6b80; }
.art-eyecatch { margin-top: 22px; aspect-ratio: 16/9; background: linear-gradient(135deg,#eef3f9,#e2ebf5); border-radius: 8px; display: grid; place-items: center; color: #8aa0bd; font-size: 13px; overflow: hidden; }
.art-eyecatch img { width: 100%; height: 100%; object-fit: cover; }

/* 本文中の目次box */
.art-toc { margin: 32px 0 0; border: 1.5px solid #06264f; border-radius: 6px; padding: 30px 36px; }
.art-toc__title { font-size: 15px; font-weight: 700; color: #06264f; display: flex; align-items: center; gap: 8px; }
.art-toc__list { margin: 14px 0 0; padding-left: 22px; font-size: 14.5px; line-height: 2.15; color: #212529; }
.art-toc__list ol { margin: 0; padding-left: 18px; font-size: 13.5px; color: #5c6b80; list-style: lower-alpha; }

/* 本文（the_content）要素装飾 */
.entry__content { margin-top: 8px; }
.entry__content p { margin: 24px 0 0; font-size: 16px; line-height: 1.8; text-wrap: pretty; }
.entry__content > p:first-child { margin-top: 32px; }
.entry__content table + p, .entry__content .line-cta + p { margin-top: 36px; }
.entry__content h2 { margin: 52px 0 0; padding: 15px 22px 13px; background: linear-gradient(90deg,#0d6db8,#2ec4dd); color: #fff; font-size: 24px; line-height: 1.5; font-weight: 700; border-radius: 5px; }
.entry__content h3 { margin: 44px 0 0; padding-bottom: 8px; border-bottom: 2px solid #06264f; font-size: 20px; line-height: 1.6; font-weight: 700; color: #06264f; }
.entry__content ul, .entry__content ol { margin: 20px 0 0; padding-left: 1.4em; font-size: 16px; line-height: 1.9; }
.entry__content pre { margin: 24px 0 0; background: #0f1720; border: 1px solid #1e2936; border-radius: 8px; padding: 18px 20px; overflow-x: auto; }
.entry__content pre code, .entry__content pre { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13.5px; line-height: 1.8; color: #dbe7f3; }
.entry__content :not(pre) > code { font-family: ui-monospace, Menlo, monospace; font-size: .9em; background: #eef3f9; border: 1px solid #dde3ea; border-radius: 5px; padding: 1px 6px; }
.entry__content table { border-collapse: collapse; font-size: 14.5px; line-height: 1.7; width: 100%; margin: 20px 0 0; }
.entry__content th { padding: 10px 14px; background: #06264f; color: #fff; font-weight: 700; border: 1px solid #06264f; text-align: left; }
.entry__content td { padding: 10px 14px; border: 1px solid #dde3ea; background: #fff; font-variant-numeric: tabular-nums; }
.entry__content tbody td:first-child { background: #f5f7fa; }
.entry__content .table-scroll { overflow-x: auto; }

/* 「実データ風」ダークコードブロック（PROMPTヘッダ付き）= [code_block] ショートコード用 */
.art-code { margin: 24px 0 0; border-radius: 8px; overflow: hidden; background: #0f1720; border: 1px solid #1e2936; }
.art-code__bar { display: flex; align-items: center; justify-content: space-between; padding: 9px 16px; background: #0a111a; border-bottom: 1px solid #1e2936; }
.art-code__label { display: flex; align-items: center; gap: 8px; font-family: ui-monospace, Menlo, monospace; font-size: 11px; letter-spacing: .08em; color: #7d93ac; }
.art-code__dot { width: 8px; height: 8px; border-radius: 50%; background: #2ec4dd; }
.art-code__copy { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; color: #7d93ac; border: 1px solid #2a3a4d; border-radius: 5px; padding: 4px 10px; background: none; cursor: pointer; }
.art-code pre { margin: 0; padding: 18px 20px; background: none; border: 0; border-radius: 0; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13.5px; line-height: 1.8; color: #dbe7f3; white-space: pre-wrap; overflow-x: auto; }

/* LINE CTA：中盤=コンパクト / 末尾=フル（骨格の .line-cta に対応） */
.line-cta--compact { display: block; margin: 40px 0 0; border: 1px solid #c9d4e2; border-radius: 8px; background: #f5f9fd; padding: 20px 24px; }
.line-cta--compact .line-cta__row { display: flex; align-items: center; gap: 18px; }
.line-cta--compact .line-cta__book { flex: none; width: 56px; height: 72px; background: linear-gradient(160deg,#06264f,#0d6db8); border-radius: 4px; display: grid; place-items: center; color: #fff; font-size: 9px; text-align: center; line-height: 1.5; }
.line-cta--compact .line-cta__eyebrow { font-size: 12px; font-weight: 700; color: #0d6db8; }
.line-cta--compact .line-cta__title { margin-top: 4px; font-size: 16px; font-weight: 700; line-height: 1.55; color: #06264f; text-wrap: pretty; }
.line-cta--compact .line-cta__btn { flex: none; display: inline-flex; align-items: center; gap: 7px; background: #06C755; color: #fff; font-size: 14px; font-weight: 700; padding: 12px 22px; border-radius: 6px; white-space: nowrap; text-decoration: none; }
.line-cta--compact .line-cta__body { flex: 1; min-width: 0; }

.line-cta--full { display: block; margin: 56px 0 0; border: 2px solid #06264f; border-radius: 10px; overflow: hidden; }
.line-cta--full .line-cta__bar { background: linear-gradient(90deg,#0d6db8,#2ec4dd); color: #fff; padding: 10px 24px; font-size: 13px; font-weight: 700; letter-spacing: .08em; }
.line-cta--full .line-cta__row { padding: 26px 28px; display: flex; align-items: center; gap: 24px; }
.line-cta--full .line-cta__book { flex: none; width: 88px; height: 114px; background: linear-gradient(160deg,#06264f,#0d6db8); border-radius: 5px; display: grid; place-items: center; color: #fff; font-size: 10px; text-align: center; line-height: 1.6; }
.line-cta--full .line-cta__body { flex: 1; min-width: 0; }
.line-cta--full .line-cta__title { font-size: 20px; font-weight: 700; line-height: 1.6; color: #06264f; text-wrap: pretty; }
.line-cta--full .line-cta__text { margin: 8px 0 0; font-size: 14px; line-height: 1.75; color: #5c6b80; }
.line-cta--full .line-cta__btn { margin-top: 16px; display: inline-flex; align-items: center; gap: 8px; background: #06C755; color: #fff; font-size: 15px; font-weight: 700; padding: 14px 30px; border-radius: 8px; text-decoration: none; }

/* 監修者box（記事末） */
.art-author { margin: 48px 0 0; border: 1px solid #dde3ea; border-radius: 8px; padding: 22px 24px; display: flex; gap: 18px; background: #fafbfd; }
.art-author__avatar { flex: none; width: 64px; height: 64px; border-radius: 50%; background: #e8ecf1; display: grid; place-items: center; font-size: 20px; font-weight: 700; color: #5c6b80; }
.art-author__body { font-size: 13.5px; line-height: 1.75; color: #5c6b80; }
.art-author__role { font-size: 11.5px; font-weight: 700; letter-spacing: .06em; color: #0d6db8; }
.art-author__name { font-size: 15.5px; color: #212529; }
.art-author__org { font-size: 12.5px; }

/* 関連記事 */
.art-related { margin: 48px 0 0; }
.art-related__head { font-size: 18px; font-weight: 900; color: #06264f; display: flex; align-items: center; gap: 10px; }
.art-related__bar { width: 5px; height: 20px; background: linear-gradient(180deg,#0d6db8,#2ec4dd); border-radius: 3px; }
.art-related__grid { margin-top: 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.art-relcard { display: block; border: 1px solid #dde3ea; border-radius: 8px; overflow: hidden; color: inherit; text-decoration: none; }
.art-relcard__thumb { aspect-ratio: 16/9; background: #eef3f9; display: grid; place-items: center; color: #8aa0bd; font-size: 10px; }
.art-relcard__thumb img { width: 100%; height: 100%; object-fit: cover; }
.art-relcard__body { padding: 12px 14px 14px; }
.art-relcard__cat { font-size: 10.5px; font-weight: 700; color: #0d6db8; }
.art-relcard__title { margin-top: 5px; font-size: 13.5px; font-weight: 700; line-height: 1.6; color: #212529; text-wrap: pretty; }

/* サイドバー */
.art-side__sticky { position: sticky; top: 20px; }
.art-side__toc { border: 1.5px solid #06264f; border-radius: 6px; overflow: hidden; }
.art-side__toc-h { padding: 10px 16px; background: #06264f; color: #fff; font-size: 12.5px; font-weight: 700; letter-spacing: .06em; }
.art-side__toc-list { padding: 8px 0 10px; font-size: 13px; line-height: 1.6; }
.art-side__toc-item { padding: 8px 16px; border-left: 3px solid transparent; color: #5c6b80; text-decoration: none; display: block; }
.art-side__toc-item.is-active { padding-left: 13px; border-left: 3px solid #0d6db8; background: #f0f7fc; font-weight: 700; color: #06264f; }
.art-side__cta { margin-top: 18px; border: 1px solid #c9d4e2; border-radius: 8px; background: #f5f9fd; padding: 18px; text-align: center; }
.art-side__cta-e { font-size: 11.5px; font-weight: 700; color: #0d6db8; }
.art-side__cta-t { margin-top: 6px; font-size: 13.5px; font-weight: 700; line-height: 1.6; color: #06264f; }
.art-side__cta-btn { margin: 12px auto 0; display: inline-flex; align-items: center; gap: 6px; background: #06C755; color: #fff; font-size: 12.5px; font-weight: 700; padding: 10px 18px; border-radius: 6px; text-decoration: none; }
.art-side__cats { margin-top: 18px; border: 1px solid #dde3ea; border-radius: 6px; overflow: hidden; }
.art-side__cats-h { padding: 10px 16px; background: #f5f7fa; font-size: 12px; font-weight: 700; color: #5c6b80; letter-spacing: .06em; }
.art-side__cats a { display: block; padding: 10px 16px; border-bottom: 1px solid #eef2f6; color: #3c4a5e; text-decoration: none; font-size: 13px; }
.art-side__cats a:last-child { border-bottom: 0; color: #06264f; font-weight: 700; }

/* --- 記事レスポンシブ（2カラム→1カラム。目次はスマホで本文冒頭=.art-toc、サイドバー目次は隠す） --- */
@media (max-width: 960px) {
  .art-main { flex-direction: column; gap: 32px; }
  .art-body { width: auto; }
  .art-side { min-width: 0; }
  .art-side__sticky { position: static; }
  .art-side__toc { display: none; } /* スマホは本文冒頭の目次box(.art-toc)を使う */
  .art-title { font-size: 28px; }
}
@media (max-width: 680px) {
  .art-header { padding: 0 20px; }
  .art-nav a:not(.art-nav__cta) { display: none; }
  .art-title { font-size: 24px; }
  .art-toc { padding: 22px 20px; }
  .entry__content h2 { font-size: 20px; padding: 13px 16px 11px; }
  .entry__content table { display: block; overflow-x: auto; white-space: nowrap; }
  .line-cta--compact .line-cta__row { flex-direction: column; align-items: flex-start; }
  .line-cta--compact .line-cta__btn { width: 100%; justify-content: center; }
  .line-cta--full .line-cta__row { flex-direction: column; align-items: flex-start; }
  .line-cta--full .line-cta__btn { width: 100%; justify-content: center; }
  .art-related__grid { grid-template-columns: 1fr; }
  .art-author { flex-direction: column; }
  .fp-footer__inner { flex-direction: column; gap: 24px; }
}
