/* ==========================================================================
   POCKET PROJECT — media.css
   「AI × 道具 × 1人仕事の情報メディア」デザイン刷新版。
   docs/design/reference/ の2枚のモックを実装仕様の基準として作成。
   全公開ページ共通のstylesheet。admin CSSはこのファイルに巻き込まない。

   旧Rundown系CSS(home/tools/guide/guides/news/article/project/projects/
   about/contact/privacy/sitemap-rundown.css)は、本ファイルへの切替に伴い
   includes/header.phpからの読み込みを停止する(段階的廃止)。
   ただし components.css の note-box/check-box等(=記事本文HTML内に
   直接class名が保存されているクラス)はクラス名を変えずに本ファイルで
   再定義し、既存39記事の本文を書き換えずに新デザインへ追従させる。
   ========================================================================== */

:root {
  /* ---- design tokens ---- */
  --ink: #111318;
  --text: #24272c;
  --muted: #737982;
  --line: #e3e6ea;
  --surface: #ffffff;
  --surface-soft: #f6f8fa;

  --blue: #3366ff;
  --blue-pale: #eaf0ff;
  --cyan: #3bd4e6;
  --mint: #67e6c2;
  --mint-pale: #effcf7;
  --yellow: #ffe86a;
  --yellow-pale: #fff8e7;
  --orange: #ff7a3d;
  --orange-pale: #fff1ea;
  --purple: #7657ff;
  --purple-pale: #f3f1ff;
  --red: #e14b4b;
  --red-pale: #fdecec;
  --green: #2e9e6d;

  --radius-s: 4px;
  --radius-m: 6px;
  --radius-l: 8px;
  --pill: 999px;

  --page-max: 1440px;
  --content-max: 1360px;
  --pad-x: 32px;
  --pad-x-mobile: 16px;

  --font-body: -apple-system, BlinkMacSystemFont, "Helvetica Neue",
    "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;

  --shadow-none: none;
}

/* ---------- reset ---------- */
.media-root, .media-root *, .media-root *::before, .media-root *::after { box-sizing: border-box; }
.media-root { margin: 0; padding: 0; }
.media-root {
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
.media-root img { max-width: 100%; height: auto; display: block; }
.media-root a { color: inherit; text-decoration: none; }
.media-root ul, .media-root ol { list-style: none; margin: 0; padding: 0; }
.media-root h1, .media-root h2, .media-root h3, .media-root h4, .media-root p, .media-root figure { margin: 0; }
.media-root button { font-family: inherit; cursor: pointer; background: none; border: none; }
.media-root .line-clamp-2 {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.media-root .line-clamp-3 {
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

.media-shell {
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

/* ==========================================================================
   EDITORIAL COVER（hero_imageが無いときのタイポグラフィ型フォールバック）
   「画像準備中」は使わない。type別の配色＋見出し＋タイトルで
   「意図されたデザイン」に見せる。ダミー写真は使わない。
   ========================================================================== */
.editorial-cover {
  width: 100%; height: 100%;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 16px; position: relative; overflow: hidden;
}
.editorial-cover__eyebrow { font-size: 10.5px; font-weight: 800; letter-spacing: .1em; }
.editorial-cover strong {
  font-size: 17px; font-weight: 800; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.editorial-cover .m-ec-meta { font-size: 10.5px; font-weight: 700; opacity: .75; }
.editorial-cover--update { background: var(--blue-pale); color: var(--blue); }
.editorial-cover--guide { background: var(--orange-pale); color: var(--orange); }
.editorial-cover--tool { background: linear-gradient(135deg, var(--cyan) 0%, var(--mint) 100%); color: #0d2b2b; }
.editorial-cover--project { background: var(--purple-pale); color: var(--purple); }
/* PICK UP等、大きい面積のcoverではtitleをもう一段大きく */
.m-u-thumb .editorial-cover strong { font-size: 19px; -webkit-line-clamp: 3; }
.m-u-thumb .editorial-cover { justify-content: flex-end; gap: 10px; }
.m-u-thumb .editorial-cover::before {
  content: "AI"; position: absolute; top: 14px; right: 16px;
  font-size: 34px; font-weight: 900; opacity: .22; letter-spacing: -.02em;
}
/* GUIDE fallbackのtag連動バリアント（orange系のまま、ごく薄い色差のみ） */
.editorial-cover--guide-b { background: #fff3e2; }
.editorial-cover--guide-c { background: #fdeee0; }
.editorial-cover--guide-d { background: #fff6ea; }

/* ==========================================================================
   HEADER
   ========================================================================== */
.m-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  height: 68px;
  display: flex;
  align-items: center;
}
.m-header .media-shell {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
}
.m-header-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}
.m-header-logo {
  font-weight: 900;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--ink);
  white-space: nowrap;
}
.m-header-divider { width: 1px; height: 18px; background: var(--line); display: none; }
.m-header-tagline {
  font-size: 12.5px;
  color: var(--muted);
  white-space: nowrap;
  display: none;
}
.m-header-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
}
.m-header-nav a {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
}
.m-header-nav a:hover, .m-header-nav a.is-active { color: var(--blue); }
.m-nav-toggle {
  display: none;
  width: 32px; height: 32px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex-shrink: 0;
}
.m-nav-toggle span { width: 20px; height: 2px; background: var(--ink); display: block; }

@media (min-width: 821px) {
  .m-header-divider, .m-header-tagline { display: block; }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.m-footer {
  background: var(--ink);
  color: #c7cad1;
  padding: 48px 0 32px;
}
.m-footer .media-shell {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 32px;
}
.m-footer-brand .m-footer-logo { font-weight: 900; font-size: 18px; color: #fff; margin-bottom: 10px; }
.m-footer-brand p { font-size: 13px; line-height: 1.8; color: #9196a0; max-width: 32em; }
.m-footer-col h4 { font-size: 12px; font-weight: 700; color: #9196a0; letter-spacing: .04em; margin-bottom: 14px; }
.m-footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.m-footer-col a { font-size: 13.5px; color: #d5d7dc; }
.m-footer-col a:hover { color: #fff; }
.m-footer-bottom {
  max-width: var(--content-max);
  margin: 36px auto 0;
  padding: 20px var(--pad-x) 0;
  border-top: 1px solid rgba(255,255,255,.12);
  font-size: 12px;
  color: #7a7f8a;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.m-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 46px;
  padding: 0 22px;
  border-radius: var(--pill);
  font-size: 14px;
  font-weight: 700;
  border: 1.5px solid transparent;
  white-space: nowrap;
}
.m-btn-fill,
.m-btn-fill:link,
.m-btn-fill:visited { background: var(--ink); color: #fff; }
.m-btn-outline,
.m-btn-outline:link,
.m-btn-outline:visited { background: var(--surface); border-color: var(--line); color: var(--ink); }
.m-btn-fill:hover,
.m-btn-fill:focus-visible { background: #2b2e36; color: #fff; }
.m-btn-outline:hover,
.m-btn-outline:focus-visible { background: var(--surface-soft); color: var(--ink); }
.m-btn-fill:active { background: var(--ink); color: #fff; }
.m-btn-outline:active { background: var(--surface-soft); color: var(--ink); }

/* ==========================================================================
   SECTION / HEADING 共通
   ========================================================================== */
.m-section {
  border-top: 1px solid var(--line);
  padding: 32px 0;
}
.m-section.is-plain { border-top: none; }
/* TOP(body.pocket-home)限定: Golden Masterに合わせて情報密度を上げる(他ページのm-sectionは変更しない) */
body.pocket-home .m-section { padding: 16px 0; }
body.pocket-home .m-section-head { margin-bottom: 12px; }
.m-section-head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin-bottom: 20px;
}
.m-section-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 22px;
  font-weight: 800;
  color: var(--ink);
}
.m-section-title .m-dot {
  width: 10px; height: 10px; border-radius: 3px; flex-shrink: 0;
}
.m-section-desc { font-size: 13px; color: var(--muted); }
.m-section-all {
  margin-left: auto;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}
.m-section-all:hover { color: var(--blue); }

/* 色付きセクションアイコン(dot)のバリエーション */
.m-dot--blue { background: var(--blue); }
.m-dot--mint { background: var(--mint); }
.m-dot--orange { background: var(--orange); }
.m-dot--red { background: var(--red); }
.m-dot--purple { background: var(--purple); }

/* ==========================================================================
   HERO (TOP)
   ========================================================================== */
.m-hero { padding: 16px 0 0; }
.m-hero-grid {
  display: grid;
  grid-template-columns: 52fr 48fr;
  gap: 32px;
  align-items: stretch;
  min-height: 280px;
}
.m-hero-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 16px 0;
}
.m-hero-eyebrow {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .14em;
  color: var(--muted);
  margin-bottom: 14px;
}
.m-hero h1 {
  font-size: 44px;
  font-weight: 900;
  line-height: 1.22;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.m-hero-line { display: block; }
/* 2行目("1人の仕事はもっと面白くなる。")は実フォント(Hiragino/Yu Gothic系)だと、
   素のfont-size/grid比率のままではwide desktop(media-shellがcontent-max上限に
   達する1360px以上)以外の帯で自然幅が左カラム幅を超え、span内部で再度折り返って
   3行化する。実測の結果、1100〜1359px(ノートPCの非最大化ウィンドウ等でよくある
   normal desktop帯)が特に不足するため、この帯だけ専用にfont-size/grid比率を
   詰めて2行固定にする。1099px以下(tablet以下)は無理に1行へ詰めず、自然な
   折返し(3行以上も許容)でoverflowを避ける。 */
@media (min-width: 1360px) {
  .m-hero-line:nth-child(2) { white-space: nowrap; }
}
@media (min-width: 1100px) and (max-width: 1359.98px) {
  .m-hero-grid { grid-template-columns: 56fr 44fr; }
  .m-hero h1 { font-size: 38px; }
  .m-hero-line:nth-child(2) { white-space: nowrap; }
}
.m-hero-desc {
  margin-top: 14px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
  max-width: 560px;
}
.m-hero-cta { margin-top: 18px; display: flex; gap: 12px; flex-wrap: wrap; }

.m-hero-visual {
  position: relative;
  border-radius: var(--radius-l);
  overflow: hidden;
  display: grid;
  grid-template-columns: 78fr 22fr;
}
.m-hero-photo { aspect-ratio: 16/10.2; background: var(--surface-soft); overflow: hidden; }
.m-hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.m-hero-strip {
  background: linear-gradient(170deg, var(--yellow) 0%, var(--yellow) 48%, var(--blue) 48%, var(--blue) 100%);
  display: flex;
  align-items: flex-end;
  padding: 16px 10px;
}
.m-hero-strip span {
  writing-mode: vertical-rl;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  color: #1c1d22;
}

/* ==========================================================================
   AI UPDATE: 5記事を完全均等なimage上/text下カードで並べる(LATEST独立パネル・
   PICK UP専用サイズは廃止。先頭カードのみ画像上にPICK UPバッジを残す)。
   ========================================================================== */
.m-update-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }

.m-u-card {
  display: block;
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  overflow: hidden;
  padding-bottom: 12px;
}
.m-u-thumb { position: relative; aspect-ratio: 16/9; background: var(--surface-soft); overflow: hidden; }
/* hero画像全体を縮小表示する(トリミングしない)。枠と比率が異なる画像は
   contain指定により上下または左右に淡い背景色の余白が入る。 */
.m-u-thumb img { width: 100%; height: 100%; object-fit: contain; object-position: center; display: block; }
.m-u-pick-badge {
  position: absolute; top: 10px; left: 10px;
  background: var(--yellow); color: #1c1d22;
  font-size: 10.5px; font-weight: 800; letter-spacing: .04em;
  padding: 4px 9px; border-radius: var(--radius-s);
}
.m-u-meta { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 11.5px; padding: 0 14px; }
.m-u-type-label { color: var(--blue); font-weight: 700; }
.m-u-date { color: var(--muted); }
.m-u-card h3 { margin: 8px 14px 0; font-size: 14.5px; font-weight: 700; line-height: 1.4; color: var(--ink); }
.m-u-card-meta { margin-top: 6px; padding: 0 14px; }

/* ==========================================================================
   道具箱 (TOOLS tiles)
   ========================================================================== */
.m-tool-row { display: grid; grid-template-columns: repeat(8, 1fr); gap: 12px; }
.m-tool-row.has-cta { grid-template-columns: repeat(8, 1fr) 1.6fr; }
.m-tool-tile {
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: 12px 13px;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  min-height: 168px;
}
.m-tool-tile:hover { border-color: var(--blue); }
.m-tool-mark {
  width: 36px; height: 36px; border-radius: var(--radius-s);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800; color: var(--ink);
  background: var(--surface-soft);
  margin-bottom: 12px;
}
/* 道具箱(TOOLBOX/TOP)だけiconを大きくする。/tools/ 側(.m-feature-card内の.m-tool-mark・
   .m-tool-dir-row内の.m-tool-mark)は元のサイズのまま変更しない。
   カード全体の高さは増やさず、paddingとiconのmargin-bottomをtrimして収める。
   アイコンだけカード内で水平中央に揃え、name/desc/tagは左揃えのまま残す
   (.m-tool-tileがflex-direction:columnのため、align-selfで水平方向を制御)。 */
.m-tool-tile .m-tool-mark {
  width: 80px; height: 80px; border-radius: var(--radius-m);
  font-size: 38px; margin-bottom: 12px;
  align-self: center;
}
/* 正規化済み{slug}-top.webp自体に8〜12%程度の安全余白を持たせてあるため、
   ここでCSS側の追加paddingは入れない(入れると視覚サイズが再び縮む)。 */
.m-tool-tile img.m-tool-mark { object-fit: contain; background: var(--surface-soft); }
.m-tool-name { font-size: 15px; font-weight: 800; color: var(--ink); }
.m-tool-desc {
  font-size: 12px; color: var(--muted); line-height: 1.6; margin-top: 6px; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.m-tool-tag {
  align-self: flex-start;
  margin-top: 12px;
  font-size: 10.5px; font-weight: 700;
  padding: 4px 9px; border-radius: var(--radius-s);
  background: var(--blue-pale); color: var(--blue);
}
.m-tool-cta {
  border-radius: var(--radius-l);
  background: var(--mint-pale);
  padding: 18px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.m-tool-cta p { font-size: 13.5px; font-weight: 700; line-height: 1.6; color: var(--ink); }
.m-tool-cta .m-btn { margin-top: 14px; height: 40px; padding: 0 16px; font-size: 12.5px; }

/* ==========================================================================
   GUIDE feature ※ .m-feature-* は NEWS/GUIDE/TOOLS一覧ページで使用中のため
   base定義は変更しない。TOPの「使い方」は .m-home-card を使用する(下記)。
   ========================================================================== */
.m-feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.m-feature-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 210px;
}
.m-feature-img { aspect-ratio: 3/2; background: var(--surface-soft); overflow: hidden; }
.m-feature-img img { width: 100%; height: 100%; object-fit: contain; object-position: center; }
.m-feature-body { padding: 14px 16px 16px; flex: 1; display: flex; flex-direction: column; }
.m-badge {
  align-self: flex-start;
  font-size: 10px; font-weight: 800; letter-spacing: .03em;
  padding: 3px 8px; border-radius: var(--radius-s);
  margin-bottom: 8px;
}
.m-badge--guide { background: var(--orange-pale); color: var(--orange); }
.m-badge--update { background: var(--blue-pale); color: var(--blue); }
.m-badge--tool { background: var(--yellow); color: #4a3c00; }
.m-feature-body h3 { font-size: 16.5px; font-weight: 800; line-height: 1.5; color: var(--ink); }
.m-feature-body p { margin-top: 6px; font-size: 12.5px; color: var(--muted); line-height: 1.6; }

/* ==========================================================================
   TOP共通記事カード: image上/text下 (WORKSPACEのGUIDE・LABのSTORYで共有)。
   AI UPDATE(.m-u-card/.m-update-grid)と視覚リズムを統一するため、
   5列grid・16:9画像・border/radius・title font-sizeをAI UPDATE側に揃えている。
   category badge色だけ呼び出し側のm-badge--*で変える。
   ========================================================================== */
.m-home-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
/* HERO直下「まず読みたい記事」。.m-home-cardは共有するが3枚固定なので列数だけ専用にする。 */
.m-pick-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.m-home-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  overflow: hidden;
  transition: border-color .15s ease;
}
.m-home-card:hover { border-color: #c7ccd4; }
.m-home-card-media { aspect-ratio: 16/9; overflow: hidden; background: var(--surface-soft); }
.m-home-card-media img {
  display: block; width: 100%; height: 100%;
  object-fit: contain; object-position: center;
}
.m-home-card-body { flex: 1; min-width: 0; padding: 10px 14px 12px; display: flex; flex-direction: column; }
.m-home-card-title { font-size: 14.5px; font-weight: 800; line-height: 1.4; color: var(--ink); margin-top: 4px; }
.m-home-card-excerpt { font-size: 12px; color: var(--muted); margin-top: 6px; line-height: 1.55; }
.m-badge--story { background: var(--red-pale); color: var(--red); }
.m-badge--news { background: var(--blue-pale); color: var(--blue); }
.m-badge--project { background: var(--purple-pale); color: var(--purple); }
.m-badge--money { background: var(--green-pale); color: var(--green); }

/* ==========================================================================
   PROJECT一覧(/projects/)の行リスト。
   2026-11-18: 過去のリファクタ(TOP専用.m-home-project-*への移行)で誤って
   このブロック自体が削除され、/projects/ 一覧のサムネイルが無スタイルに
   なっていたため復元する。hero画像全体を縮小表示するため、cover(切り出し)
   ではなくcontainを使う。
   ========================================================================== */
.m-project-list { display: flex; flex-direction: column; }
.m-project-row { display: flex; align-items: center; gap: 16px; border-bottom: 1px solid var(--line); }
.m-project-row:last-child { border-bottom: none; }
.m-project-thumb { border-radius: var(--radius-s); background: var(--surface-soft); overflow: hidden; flex-shrink: 0; }
.m-project-thumb img { display: block; width: 100%; height: 100%; object-fit: contain; object-position: center; }
.m-project-num { font-size: 11px; font-weight: 800; color: var(--purple); }
.m-project-row h3 { font-size: 15.5px; font-weight: 800; color: var(--ink); margin-top: 2px; }
.m-project-row p { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.m-project-arrow { margin-left: auto; color: var(--muted); flex-shrink: 0; }

/* ==========================================================================
   PROJECT: TOP専用の独立3カラムパネル(画像なし、PROJ.番号+title+phase+矢印)。
   ※ .m-project-list/.m-project-row/.m-project-thumb/.m-project-num/
   .m-project-arrow は上記の /projects/ 一覧ページ定義と共有。
   TOPの新カードは別クラス(.m-home-project-*)で実装する。
   ========================================================================== */
.m-home-project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.m-home-project-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: 18px 16px;
  min-height: 132px;
  transition: border-color .15s ease;
}
.m-home-project-card:hover { border-color: #c7ccd4; }
.m-home-project-card h3 { font-size: 15px; font-weight: 800; color: var(--ink); margin-top: 6px; }
.m-home-project-card p { font-size: 12px; color: var(--muted); margin-top: 6px; line-height: 1.5; flex: 1; }

/* ==========================================================================
   ARTICLE LAYOUT（TOOL/GUIDE/NEWS/PROJECT共通）
   ========================================================================== */
.m-article-breadcrumb {
  font-size: 12.5px; color: var(--muted); margin-bottom: 24px;
  display: flex; flex-wrap: wrap; gap: 4px;
}
.m-article-breadcrumb a { color: var(--muted); }
.m-article-breadcrumb a:hover { color: var(--blue); }
.m-article-badges { display: flex; gap: 8px; margin-bottom: 14px; }
.m-article-badge {
  font-size: 11px; font-weight: 800; padding: 4px 10px; border-radius: var(--radius-s);
}
.m-article-badge--type { background: var(--yellow); color: #4a3c00; }
.m-article-badge--cat { background: var(--surface-soft); color: var(--text); border: 1px solid var(--line); text-decoration: none; }
.m-article-badge--cat:hover { border-color: var(--blue); color: var(--blue); }
.m-article-date { font-size: 12px; color: var(--muted); margin-left: 4px; }

.m-article-head h1 {
  font-size: 52px;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--ink);
  max-width: 900px;
}
.m-article-lead {
  margin-top: 18px;
  font-size: 19px;
  line-height: 1.8;
  color: var(--muted);
  max-width: 760px;
}

.m-article-hero { margin: 20px 0 28px; border-radius: var(--radius-m); overflow: hidden; background: var(--surface-soft); }
.m-article-hero img { display: block; width: 100%; height: auto; }

/* シリーズ所属記事のみ表示するタイトル直上のナビ行（/series/{slug}/への導線）。 */
.m-series-kicker { font-size: 12.5px; color: var(--muted); margin-bottom: 8px; }
.m-series-kicker a { color: var(--blue); font-weight: 700; }

.m-article-layout { display: grid; grid-template-columns: 1fr 360px; gap: 32px; align-items: start; margin-top: 8px; }
.m-article-main { max-width: 800px; min-width: 0; }
.m-article-sidebar { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 88px; }

.m-article-meta-row { display: flex; align-items: baseline; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.m-article-meta-org { font-size: 13px; font-weight: 800; color: var(--ink); }
.m-article-meta-sub { font-size: 12.5px; color: var(--muted); }

/* PR表記（アフィリエイト広告を含む記事のみ表示）。タイトル直下、最初に見える位置(ファーストビュー)。
   A8.net「PR等の表記」ガイドライン(認識しやすい位置・文字の大きさ・色)に沿って、
   サイドバー等の補足的な小文字(var(--muted))より明確に視認できる濃さ・太さにしている。 */
.m-pr-disclosure {
  margin: 12px 0 0;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
  font-weight: 800;
  color: var(--ink);
}

/* アフィリエイト広告枠。ASPコード自体は改変せずそのまま表示し、"PR"タグで
   通常の公式リンク(sidebar「公式情報」パネル)とは明確に区別する。 */
.m-affiliate-block {
  position: relative;
  border: 1px solid var(--line);
  border-left: 4px solid var(--orange);
  border-radius: 0 var(--radius-s) var(--radius-s) 0;
  padding: 18px 18px 18px 44px;
  margin: 0 0 20px;
  font-size: 0.93rem;
}
.m-affiliate-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .04em;
  color: var(--orange);
  border: 1px solid var(--orange);
  border-radius: var(--radius-s);
  padding: 1px 5px;
  line-height: 1.5;
}

/* 全記事種別共通の本文下バナー広告枠。枠の外側に「広告」ラベルを常に出す。
   カード化・影・大きな角丸は使わず、罫線1本と余白だけで区切るノート風の構成。
   画像はwidth/height属性(DB保存値)で縦横比を保ったまま、横幅だけビューポートに
   合わせて縮小する(拡大・切り抜きはしない)。ASP広告コード側の固定幅要素も
   max-width:100%の対象にし、はみ出した場合のみ横スクロールをこの枠内に閉じ込める
   (ページ全体の横スクロールを発生させない)。 */
.m-ad-banner { margin: 28px 0; padding-top: 18px; border-top: 1px solid var(--line); text-align: center; }
.m-ad-banner-label {
  display: block;
  font-family: var(--font-hand);
  font-size: 12px;
  color: var(--ink-soft);
  margin-bottom: 10px;
}
.m-ad-banner-body { display: inline-block; max-width: 100%; overflow-x: auto; }
.m-ad-banner-body img { display: block; max-width: 100%; height: auto; margin: 0 auto; }
.m-ad-banner-body a { display: inline-block; }
.m-ad-banner-body iframe { max-width: 100%; }

/* 記事サイドバー最上部(PC専用)の広告枠。.m-panel(カード)とは異なり、罫線+余白だけの
   軽い枠にする(サイドバー最上部を広告のためだけに重いカードにしない)。広告が無い場合は
   includes/ad_banner.phpのpocket_render_sidebar_ad_banner()自体が何も出力しないため、
   枠線・最小高さ・余白は一切残らず、.m-article-sidebarのgapにより目次等の次要素が
   詰まる。SPでの非表示は1080px以下のレイアウト切り替えと同じブレークポイントで行う
   (下の@mediaを参照)。 */
.m-sidebar-ad { border: 1px solid var(--line); padding: 12px; text-align: center; }
.m-sidebar-ad-label {
  display: block;
  font-family: var(--font-hand);
  font-size: 11px;
  color: var(--ink-soft);
  margin-bottom: 8px;
}
.m-sidebar-ad-body { display: inline-block; max-width: 100%; overflow-x: auto; }
.m-sidebar-ad-body img { display: block; max-width: 100%; height: auto; margin: 0 auto; }
.m-sidebar-ad-body a { display: inline-block; }
.m-sidebar-ad-body iframe { max-width: 100%; }

/* 記事本文中央のインフィード広告枠。.article-body内のトップレベル要素として挿入される
   (includes/ad_banner.phpのpocket_insert_infeed_ad())ため、.m-article-main(max-width:800px)
   の幅にそのまま収まる。広告が無い場合・安全な挿入位置が無い場合は本文へ一切出力されない
   ため、枠線・余白は残らない。PC・SP両方で表示する(サイドバー広告と異なり非表示にしない)。 */
.m-infeed-ad { margin: 36px 0; padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); text-align: center; }
.m-infeed-ad-label {
  display: block;
  font-family: var(--font-hand);
  font-size: 12px;
  color: var(--ink-soft);
  margin-bottom: 10px;
}
.m-infeed-ad-body { display: inline-block; max-width: 100%; overflow-x: auto; }
.m-infeed-ad-body img { display: block; max-width: 100%; height: auto; margin: 0 auto; }
.m-infeed-ad-body a { display: inline-block; }
.m-infeed-ad-body iframe { max-width: 100%; }

/* 本文内H2の連番(CSS counter、HTMLへ番号は保存しない) */
.m-article-main .article-body { counter-reset: m-h2; }
.m-article-main .article-body h2 {
  counter-increment: m-h2;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.4;
  color: var(--ink);
  margin: 52px 0 18px;
  padding-bottom: 0;
  border-bottom: none;
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.m-article-main .article-body h2::before {
  content: counter(m-h2, decimal-leading-zero);
  font-size: 15px;
  font-weight: 800;
  color: var(--blue);
  flex-shrink: 0;
}
.m-article-main .article-body h2 .num { display: none; }
.m-article-main .article-body h3 {
  font-size: 21px; font-weight: 800; margin: 32px 0 12px; color: var(--ink);
}
.m-article-main .article-body p { font-size: 16.5px; line-height: 1.9; color: var(--text); margin: 0 0 18px; }
.m-article-main .article-body a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }

/* TOOLBOX詳細ページ(type=tool)専用「{ツール名}の関連記事」セクション。本文(article-body)の
   外側、affiliateブロックの直後に配置する独立section。既存のnote-box(薄い青背景のテキストリスト)
   から、クリック可能な単位であることが分かるカード型へ変更(2026-11-18)。
   分類(basics/guide/practice/updates)ごとにグループ化し、各グループ先頭2件のみ常時表示、
   残りは<details>(HTML標準・アクセシブル・SEO上もDOMに残るため検索エンジンに認識される)で
   展開する。 */
.m-tool-related { margin: 40px 0 20px; padding-top: 32px; border-top: 1px solid var(--line); }
.m-tool-related-head h2 { font-size: 24px; font-weight: 800; color: var(--ink); margin: 0; }
.m-tool-related-head p { font-size: 13.5px; color: var(--muted); margin: 8px 0 0; line-height: 1.7; }
.m-tool-related-group { margin-top: 26px; }
.m-tool-related-group-label { font-size: 12px; font-weight: 800; color: var(--muted); letter-spacing: .02em; margin-bottom: 12px; }
.m-tool-related-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.m-tool-related-card {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  background: var(--surface);
  padding: 14px 16px;
  text-decoration: none;
  transition: border-color .15s ease, background-color .15s ease;
}
.m-tool-related-card:hover, .m-tool-related-card:focus-visible {
  border-color: var(--blue);
  background: var(--surface-soft);
}
.m-tool-related-card:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.m-tool-related-card .m-badge { margin: 0; flex-shrink: 0; }
.m-tool-related-card-title { font-size: 14px; font-weight: 700; line-height: 1.5; color: var(--ink); flex: 1; min-width: 0; }
.m-tool-related-card-arrow { color: var(--muted); flex-shrink: 0; }
.m-tool-related-card:hover .m-tool-related-card-arrow, .m-tool-related-card:focus-visible .m-tool-related-card-arrow { color: var(--blue); }
.m-tool-related-more { margin-top: 12px; }
.m-tool-related-more summary {
  font-size: 13px;
  font-weight: 700;
  color: var(--blue);
  cursor: pointer;
  list-style: none;
  padding: 8px 0;
}
.m-tool-related-more summary::-webkit-details-marker { display: none; }
.m-tool-related-more summary::after { content: " ›"; }
.m-tool-related-more[open] summary::after { content: " ‹"; }
.m-tool-related-more .m-tool-related-grid { margin-top: 12px; }

/* 「公式情報」パネル内、記事の根拠となる情報源(article_sources)より上に表示する
   ツール公式サイトへのボタン(includes/tool_hub.phpのpocket_get_tool_meta())。
   スマホでも押しやすいよう最小タップ高さを確保する。 */
.m-official-link { padding: 12px; border-bottom: 1px solid var(--line); }
.m-official-link:last-child { border-bottom: none; }
.m-official-link-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  border: 1px solid var(--blue);
  border-radius: var(--radius-m);
  background: var(--blue-pale);
  padding: 10px 14px;
  text-decoration: none;
  transition: background-color .15s ease;
}
.m-official-link-btn:hover, .m-official-link-btn:focus-visible { background: #dbe8fa; }
.m-official-link-btn:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.m-official-link-body { flex: 1; min-width: 0; }
.m-official-link-name { display: block; font-size: 13.5px; font-weight: 800; color: var(--blue); }
.m-official-link-note { display: block; font-size: 11.5px; color: var(--muted); margin-top: 3px; line-height: 1.5; }
.m-official-link-arrow { font-size: 16px; font-weight: 800; color: var(--blue); flex-shrink: 0; }

/* サイドバーpanel共通 */
.m-panel { border: 1px solid var(--line); border-radius: var(--radius-l); background: var(--surface); overflow: hidden; }
.m-panel-head { display: flex; align-items: center; gap: 8px; padding: 14px 16px; border-bottom: 1px solid var(--line); font-weight: 800; font-size: 14px; }
.m-panel-head .m-panel-icon { width: 18px; height: 18px; border-radius: 4px; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; color: #fff; flex-shrink: 0; }

.toc-panel ol { padding: 6px 0; }
.toc-panel li { display: flex; gap: 10px; padding: 11px 16px; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.toc-panel li:last-child { border-bottom: none; }
.toc-panel .m-toc-num { font-size: 11px; font-weight: 800; color: #9db4e0; flex-shrink: 0; width: 16px; }
.toc-panel a { color: var(--ink); }
.toc-panel a:hover { color: var(--blue); }

/* 目次が長い記事(例: /tool/chatgpt/)で、PC表示時にサイドバーの追従(.m-article-sidebar
   のposition:sticky; top:88px)範囲より目次が縦に長くなると、下部の項目が画面外に出て
   選べなくなる問題への対応。.toc-panel自体の高さを「画面高さ−追従開始位置(88px)−
   下余白(24px)」に制限し、.m-panel-head(「目次」ラベル)は固定したまま、項目一覧(ol)
   だけをoverflow-y: autoでスクロール可能にする(同じサイドバー内の広告・公式情報・
   関連ガイドパネルはこの制限の対象外)。目次がこの高さに収まる場合は通常のflexの
   auto-sizingでそのまま収まり、余分な空白やスクロールバーは出ない。
   対象はサイドバー目次が追従表示される画面幅のみ(.m-article-sidebarがposition:static
   になる max-width:1080px以下では制限しない)。
   --toc-max-height: サイドバー最上部に広告(.m-sidebar-ad)がある記事では、目次の実際の
   開始位置がサイドバーの追従開始位置(88px)より広告の高さ分だけ下にずれるため、
   固定のcalc()だけでは目次の下端が画面外にはみ出すことがある(2026-11-19実機確認、
   /news/chatgpt-codex-shared-usage-2026/で発生)。assets/js/main.jsが広告の実高さを
   実測してこの変数を上書きするため、ここでは広告が無い場合のfallback値として
   calc()を指定するだけに留める。 */
@media (min-width: 1081px) {
  .toc-panel {
    display: flex;
    flex-direction: column;
    max-height: var(--toc-max-height, calc(100vh - 88px - 24px));
  }
  .toc-panel ol {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
  }
}

.source-panel ul { padding: 8px; display: flex; flex-direction: column; gap: 4px; }
.source-panel li a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 8px; border-radius: var(--radius-s);
}
.source-panel li a:hover { background: var(--surface-soft); }
.source-panel .m-src-mark {
  width: 26px; height: 26px; border-radius: var(--radius-s); background: var(--blue-pale); color: var(--blue);
  display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; flex-shrink: 0;
}
.source-panel .m-src-text { min-width: 0; }
.source-panel .m-src-name { font-size: 13px; font-weight: 700; color: var(--ink); }
.source-panel .m-src-domain { font-size: 11px; color: var(--muted); }

.related-panel ul { padding: 10px; display: flex; flex-direction: column; gap: 10px; }
.related-panel li a { display: flex; gap: 10px; align-items: center; }
.related-panel .m-rel-thumb { width: 72px; height: 54px; border-radius: var(--radius-s); background: var(--surface-soft); overflow: hidden; flex-shrink: 0; }
.related-panel .m-rel-thumb img { width: 100%; height: 100%; object-fit: contain; object-position: center; }
.related-panel h5 { font-size: 13px; font-weight: 700; line-height: 1.5; color: var(--ink); }
.related-panel .m-badge { margin-top: 4px; }

.m-sidebar-cta { border-radius: var(--radius-l); background: var(--yellow-pale); padding: 18px; }
.m-sidebar-cta .m-eyebrow { font-size: 10.5px; font-weight: 800; letter-spacing: .06em; color: var(--muted); }
.m-sidebar-cta p { font-size: 14px; font-weight: 700; color: var(--ink); margin-top: 6px; line-height: 1.6; }
.m-sidebar-cta .m-btn { margin-top: 14px; height: 40px; padding: 0 16px; font-size: 12.5px; width: 100%; justify-content: center; }

/* ==========================================================================
   content box群（記事本文HTML内のclass名はそのまま。配色のみ新トークンへ）
   note-box / check-box / warning-box / ai-prompt-box / result-box / update-box
   goal-box / summary3-box / split-box / skip-box / toc-box / author-box /
   project-status / article-image / tag-chip / tag-list / card-grid / article-card
   ========================================================================== */
.media-root .article-body ul.plain, .media-root .article-body ol.plain { margin: 0 0 18px; padding-left: 1.4em; }
.media-root .article-body ul.plain { list-style: disc; }
.media-root .article-body ol.plain { list-style: decimal; }
.media-root .article-body mark { background: linear-gradient(transparent 60%, var(--yellow) 60%); color: inherit; padding: 0 2px; }
.media-root .article-body code { background: var(--surface-soft); padding: 2px 6px; border-radius: 4px; font-size: .92em; }
/* class="code-block"ラッパーを伴わない素の<pre><code>（記事本文側で付与漏れした場合の保険）。
   折返しできずbody幅を押し広げる事故を防ぐため、はみ出す前に折り返す。 */
.media-root .article-body > pre {
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: anywhere;
  max-width: 100%;
  background: var(--surface-soft);
  border-radius: var(--radius-m);
  padding: 16px 18px;
  margin: 0 0 18px;
  font-size: 14.5px;
  line-height: 1.75;
}
.media-root .article-body .editorial-highlight {
  border-radius: var(--radius-l); padding: 28px 30px 8px; margin: 36px 0;
}
.media-root .article-body .editorial-highlight--blue { background: #f1f7ff; }
.media-root .article-body .editorial-highlight--mint { background: var(--mint-pale); }
.media-root .article-body .editorial-highlight > h2:first-child { margin-top: 0; }
.media-root .article-body .code-block { background: var(--ink); border-radius: var(--radius-m); padding: 18px 20px; overflow-x: auto; margin: 0 0 18px; }
.media-root .article-body .code-block pre { margin: 0; white-space: pre; }
.media-root .article-body .code-block code { background: none; padding: 0; color: #e7e9ee; font-size: 13.5px; line-height: 1.7; }

.media-root .note-box, .media-root .check-box, .media-root .warning-box,
.media-root .ai-prompt-box, .media-root .result-box, .media-root .update-box,
.media-root .goal-box {
  border-radius: var(--radius-l);
  padding: 22px 24px;
  margin: 0 0 20px;
  border: none;
}
.media-root .note-box { background: #f1f7ff; }
.media-root .check-box { background: var(--mint-pale); }
.media-root .warning-box { background: var(--yellow-pale); }
.media-root .ai-prompt-box { background: var(--purple-pale); }
.media-root .result-box { background: #f3f4ff; }
.media-root .update-box { background: var(--surface-soft); border: 1px solid var(--line); }
.media-root .goal-box { background: var(--surface-soft); border: 1px solid var(--line); }
.media-root .note-box .label, .media-root .check-box .label, .media-root .warning-box .label,
.media-root .ai-prompt-box .label, .media-root .result-box .label, .media-root .update-box .label,
.media-root .goal-box .label {
  font-size: 12px; font-weight: 800; color: var(--muted); margin-bottom: 10px; letter-spacing: .02em;
}
.media-root .check-box ul { display: flex; flex-direction: column; gap: 8px; }
.media-root .check-box li { font-size: 14.5px; padding-left: 22px; position: relative; color: var(--text); }
.media-root .check-box li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 800; }
.media-root .goal-box blockquote { font-size: 15.5px; line-height: 1.85; color: var(--ink); font-weight: 700; margin: 0; }

.media-root .summary3-box { background: var(--surface-soft); border-radius: var(--radius-l); padding: 20px 22px; margin: 0 0 20px; display: flex; flex-direction: column; gap: 10px; }
.media-root .summary3-box .line { display: flex; gap: 12px; font-size: 14.5px; line-height: 1.7; }
.media-root .summary3-box .line .n {
  flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--blue); color: #fff;
  font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center;
}
.media-root .split-box { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 0 0 20px; }
.media-root .split-box .col { border: 1px solid var(--line); border-radius: var(--radius-l); padding: 18px 20px; }
.media-root .split-box .col h4 { font-size: 13px; font-weight: 800; margin-bottom: 8px; }
.media-root .split-box .col.human h4 { color: var(--green); }
.media-root .split-box .col.ai h4 { color: var(--blue); }
.media-root .split-box .col p { font-size: 13.5px; line-height: 1.75; color: var(--text); }
.media-root .skip-box { border: 1px dashed var(--line); border-radius: var(--radius-l); padding: 16px 20px; font-size: 13px; color: var(--muted); margin: 0 0 20px; }
.media-root .skip-box .label { font-weight: 800; color: var(--text); margin-bottom: 6px; display: block; }

.media-root .author-box { border: 1px solid var(--line); border-radius: var(--radius-l); padding: 18px; }
.media-root .author-box .a-label { font-size: 11px; font-weight: 800; color: var(--muted); margin-bottom: 10px; }
.media-root .author-box .a-avatar {
  width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 800; margin-bottom: 10px;
}
.media-root .author-box .a-name { font-weight: 800; margin-bottom: 6px; }
.media-root .author-box .a-desc { font-size: 12.5px; color: var(--muted); line-height: 1.7; }
.media-root .stat-card { border: 1px solid var(--line); border-radius: var(--radius-l); padding: 16px; margin-bottom: 14px; }
.media-root .stat-card h4 { font-size: 13px; font-weight: 800; margin-bottom: 10px; }
.media-root .stat-row { display: flex; justify-content: space-between; font-size: 13px; padding: 6px 0; border-top: 1px solid var(--line); }
.media-root .stat-row:first-of-type { border-top: none; }

.media-root .project-status {
  background: var(--surface-soft); border-radius: var(--radius-l); padding: 18px 20px; margin: 20px 0;
}
.media-root .project-status .ps-head { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; color: var(--ink); margin-bottom: 14px; }
.media-root .project-status .ps-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); }
.media-root .project-status.is-finished .ps-dot { background: var(--green); }
.media-root .project-status.is-paused .ps-dot { background: var(--muted); }
.media-root .project-status .ps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.media-root .project-status .ps-item .k { font-size: 11px; color: var(--muted); margin-bottom: 4px; }
.media-root .project-status .ps-item .v { font-size: 17px; font-weight: 800; color: var(--ink); }
.media-root .project-status .ps-item .v.plus { color: var(--green); }
.media-root .project-status .ps-item .v.minus { color: var(--red); }
.media-root .proj-badge { display: inline-block; font-size: 11px; font-weight: 800; padding: 4px 10px; border-radius: var(--radius-s); background: var(--purple-pale); color: var(--purple); }
.media-root .proj-status-label { font-size: 12px; color: var(--muted); margin-left: 8px; }

.media-root .article-image { margin: 0 0 20px; }
.media-root .article-image img { border-radius: var(--radius-m); }
.media-root .article-image figcaption { font-size: 12.5px; color: var(--muted); margin-top: 8px; text-align: center; }

.media-root .tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.media-root .tag-chip { font-size: 11.5px; font-weight: 700; padding: 5px 11px; border-radius: var(--pill); background: var(--surface-soft); color: var(--text); border: 1px solid var(--line); text-decoration: none; }
.media-root .tag-chip:hover { border-color: var(--blue); color: var(--blue); }

.media-root .card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.media-root .article-card { display: block; border: 1px solid var(--line); border-radius: var(--radius-l); padding: 16px; }
.media-root .article-card:hover { border-color: var(--blue); }
.media-root .article-card .date { font-size: 11.5px; color: var(--muted); }
.media-root .article-card h3 { font-size: 15.5px; font-weight: 800; color: var(--ink); margin: 6px 0; line-height: 1.5; }
.media-root .article-card .desc { font-size: 12.5px; color: var(--muted); line-height: 1.6; }

.media-root .pr-empty-note, .media-root .rd-empty-note { font-size: 13px; color: var(--muted); }
.media-root .section-title { font-size: 22px; font-weight: 800; color: var(--ink); }
.media-root .deco-underline { border-bottom: 3px solid var(--blue); padding-bottom: 4px; }

/* ==========================================================================
   PROJECT DETAIL（/projects/{slug}/）— editorial story化
   ========================================================================== */
.m-project-hero { display: grid; grid-template-columns: 58fr 42fr; gap: 32px; padding: 28px 0; align-items: start; }
.m-project-hero h1 { font-size: 38px; font-weight: 900; letter-spacing: -0.02em; color: var(--ink); margin: 10px 0 14px; }
.m-project-hero .m-page-lead { margin-top: 0; max-width: none; }
.m-project-visual { border-radius: var(--radius-m); overflow: hidden; aspect-ratio: 16/10; background: var(--surface-soft); margin-bottom: 14px; }
.m-project-visual img { width: 100%; height: 100%; object-fit: cover; }
.m-project-side { border-top: 1px solid var(--line); padding-top: 14px; display: flex; flex-wrap: wrap; gap: 20px; }
.m-project-side div { flex: 1; min-width: 110px; }
.m-project-side .k { font-size: 11px; color: var(--muted); margin-bottom: 4px; }
.m-project-side .v { font-size: 14px; font-weight: 700; color: var(--ink); }
.m-project-side .v.is-note { font-weight: 400; font-size: 12.5px; line-height: 1.6; }

.project-index {
  max-width: var(--content-max); margin-inline: auto; padding-inline: var(--pad-x);
  border-top: 1px solid var(--line); padding-block: 32px; display: grid; grid-template-columns: 90px 1fr; gap: 16px;
}
.project-index .m-chapter-num { font-size: 48px; font-weight: 900; color: var(--purple-pale); line-height: 1; }
.project-index h2 { font-size: 22px; font-weight: 800; color: var(--ink); margin-bottom: 4px; }
.m-chapter-list { display: flex; flex-direction: column; }
.m-chapter-row { display: flex; align-items: baseline; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.m-chapter-row:last-child { border-bottom: none; }
.m-chapter-row .m-c-date { font-size: 11.5px; color: var(--muted); flex-shrink: 0; width: 70px; }
.m-chapter-row .m-c-text { min-width: 0; flex: 1; }
.m-chapter-row h3 { font-size: 15.5px; font-weight: 700; color: var(--ink); }
.m-chapter-row p { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.m-chapter-row .m-rel-arrow { color: var(--muted); flex-shrink: 0; }

.m-coming-next { border-top: 1px solid var(--line); padding: 28px 0 40px; }
.m-coming-next .m-cn-label { font-size: 11px; font-weight: 800; letter-spacing: .1em; color: var(--muted); margin-bottom: 12px; }
.m-coming-next ul { display: flex; flex-wrap: wrap; gap: 10px; }
.m-coming-next li { font-size: 12.5px; color: var(--muted); padding: 6px 14px; border: 1px solid var(--line); border-radius: var(--pill); }

/* 実験ノート: box連打をやめ、罫線+kicker中心のeditorial sectionへ */
.m-notebook-section { border-top: 1px solid var(--line); padding: 20px 0; }
.m-notebook-section:first-child { border-top: none; }
.m-notebook-kicker { font-size: 11px; font-weight: 800; letter-spacing: .08em; color: var(--muted); margin-bottom: 10px; }
.m-notebook-section p { font-size: 14.5px; line-height: 1.85; color: var(--text); margin: 0; }
.m-notebook-section.is-next { background: var(--mint-pale); border-radius: var(--radius-l); border-top: none; padding: 20px 22px; margin-top: 8px; }
.m-notebook-section.is-next ul { display: flex; flex-direction: column; gap: 8px; }
.m-notebook-section.is-next li { font-size: 14px; padding-left: 20px; position: relative; color: var(--text); }
.m-notebook-section.is-next li::before { content: "→"; position: absolute; left: 0; color: var(--green); }

/* 実験ログ: timeline */
.m-log-timeline { display: flex; flex-direction: column; }
.m-log-row { display: flex; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.m-log-row:last-child { border-bottom: none; }
.m-log-date { font-size: 12.5px; font-weight: 700; color: var(--purple); flex-shrink: 0; width: 90px; }
.m-log-note { font-size: 13.5px; color: var(--text); line-height: 1.7; }

/* ==========================================================================
   固定ページ共通（About/Privacy/Contact/Sitemap）
   ========================================================================== */
.m-static-head { padding: 36px 0 8px; }
.m-static-head h1 { font-size: 40px; font-weight: 900; letter-spacing: -0.02em; color: var(--ink); }
.m-static-head .lead { margin-top: 10px; font-size: 15.5px; color: var(--muted); }
.ab-intro { font-size: 16.5px; line-height: 1.9; color: var(--text); margin-top: 14px; max-width: 760px; }
.ab-section { border-top: 1px solid var(--line); padding: 32px 0; }
.ab-section h2 { font-size: 24px; font-weight: 800; color: var(--ink); margin-bottom: 16px; }
.ab-section p { font-size: 15px; line-height: 1.9; color: var(--text); margin-bottom: 14px; max-width: 760px; }
.ab-list { display: flex; flex-direction: column; gap: 8px; }
.ab-list li { font-size: 15px; color: var(--text); padding-left: 20px; position: relative; }
.ab-list li::before { content: "—"; position: absolute; left: 0; color: var(--muted); }
.ab-topics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.ab-topic { border: 1px solid var(--line); border-radius: var(--radius-l); padding: 18px; }
.ab-topic h3 { font-size: 15px; font-weight: 800; color: var(--ink); margin-bottom: 8px; }
.ab-topic p { font-size: 12.5px; color: var(--muted); line-height: 1.7; margin: 0; }
.ab-closing { border-top: 1px solid var(--line); padding: 36px 0; text-align: center; }
.ab-closing p { font-size: 19px; font-weight: 700; color: var(--ink); line-height: 1.7; }
.ab-links { display: flex; gap: 20px; flex-wrap: wrap; padding: 24px 0 48px; }
.ab-links a { font-size: 14px; font-weight: 700; color: var(--blue); }
@media (max-width: 900px) { .ab-topics { grid-template-columns: 1fr 1fr; } }

.pf-hero { display: grid; grid-template-columns: 56fr 44fr; gap: 32px; align-items: center; padding: 36px 0; }
.pf-hero-eyebrow { font-size: 11px; font-weight: 800; letter-spacing: .12em; color: var(--muted); margin-bottom: 10px; }
.pf-hero h1 { font-size: 40px; font-weight: 900; color: var(--ink); margin-bottom: 14px; }
.pf-hero-img { border-radius: var(--radius-l); overflow: hidden; aspect-ratio: 4/3; background: var(--surface-soft); }
.pf-split { border-top: 1px solid var(--line); padding: 32px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.pf-split-kicker { font-size: 11px; font-weight: 800; color: var(--muted); letter-spacing: .06em; }
.pf-split h2 { font-size: 24px; font-weight: 800; color: var(--ink); margin-top: 8px; line-height: 1.5; }
.pf-split p { font-size: 14.5px; line-height: 1.85; color: var(--text); margin-bottom: 12px; }
.pf-dark { background: var(--ink); color: #d5d7dc; padding: 40px var(--pad-x); border-radius: var(--radius-l); margin: 32px 0; }
.pf-dark-eyebrow { font-size: 11px; font-weight: 800; color: #9196a0; letter-spacing: .08em; }
.pf-dark h2 { font-size: 22px; font-weight: 800; color: #fff; margin: 10px 0 14px; }
.pf-dark p { font-size: 14px; line-height: 1.85; margin-bottom: 10px; max-width: 700px; }
@media (max-width: 900px) { .pf-hero, .pf-split { grid-template-columns: 1fr; } }

/* ==========================================================================
   簡易固定ページ（Contact/Privacy/Sitemap）
   モックの対象外ページのため、トークンを使った最小限の可読性確保のみ行う。
   ========================================================================== */
.media-root .article-head { padding-bottom: 20px; }
.media-root .article-head h1 { font-size: 34px; font-weight: 900; color: var(--ink); }
.media-root .lead { font-size: 15px; color: var(--muted); margin-top: 10px; }
.ct-page, .pv-page, .sm-page { font-size: 15px; line-height: 1.85; color: var(--text); }
.ct-page h2, .pv-page h2, .sm-page h2 { font-size: 20px; font-weight: 800; color: var(--ink); margin: 28px 0 12px; }
.ct-page p, .pv-page p { margin-bottom: 12px; }
.pv-section { border-top: 1px solid var(--line); padding-top: 20px; margin-top: 20px; }
.pv-list { padding-left: 1.4em; list-style: disc; }
.ct-hp { position: absolute; width: 1px; height: 1px; overflow: hidden; left: -9999px; }
.ct-info { margin-top: 24px; }
.ct-info-section { border-top: 1px solid var(--line); padding: 18px 0; }
.ct-info-section:first-child { border-top: none; padding-top: 0; }
.ct-info-section h2 { font-size: 15px; font-weight: 800; color: var(--ink); margin: 0 0 8px; padding-left: 10px; border-left: 3px solid var(--blue); }
.ct-info-section p { font-size: 14px; color: var(--muted); line-height: 1.85; margin-bottom: 0; }
.ct-form-block { border-top: 1px solid var(--line); margin-top: 32px; padding-top: 28px; }
.ct-form-heading { font-size: 18px; font-weight: 800; color: var(--ink); margin: 0 0 20px; }
.ct-field { margin-bottom: 16px; }
.ct-field label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.ct-field input, .ct-field textarea, .ct-field select {
  width: 100%; border: 1px solid var(--line); border-radius: var(--radius-s); padding: 10px 12px; font: inherit;
}
.ct-required { color: var(--red); font-size: 11px; font-weight: 700; margin-left: 6px; }
.ct-optional { color: var(--muted); font-size: 11px; margin-left: 6px; }
.ct-purpose { font-size: 12.5px; color: var(--muted); margin: 4px 0 16px; }
.ct-agree label { display: flex; align-items: flex-start; gap: 8px; font-size: 13.5px; color: var(--text); cursor: pointer; }
.ct-agree input { margin-top: 3px; }
.ct-agree a { color: var(--blue); }
.media-root .ct-submit { height: 46px; padding: 0 24px; border-radius: var(--pill); background: var(--ink); color: #fff; font-weight: 700; border: none; margin-top: 8px; cursor: pointer; }
.media-root .ct-submit:hover,
.media-root .ct-submit:focus-visible { background: #2b2e36; }
.ct-errors { background: var(--red-pale); color: var(--red); padding: 12px 16px; border-radius: var(--radius-m); margin-bottom: 16px; }
.ct-errors ul { padding-left: 1.2em; margin: 0; }
.ct-success { border-top: 1px solid var(--line); margin-top: 24px; padding-top: 24px; }
.ct-success-title { font-size: 20px; font-weight: 800; color: var(--ink); }
.ct-success-sub { font-size: 14px; color: var(--muted); margin-top: 8px; }
.sm-section { border-top: 1px solid var(--line); padding: 20px 0; }
.sm-section-row { display: flex; justify-content: space-between; align-items: center; }
.sm-link-list { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.sm-link-list a { color: var(--blue); }
.sm-tag, .sm-count { font-size: 11px; color: var(--muted); }

/* ==========================================================================
   GUIDE一覧: editorial index（featured + secondary + compact list）
   ========================================================================== */
.m-guide-featured {
  display: grid; grid-template-columns: 45fr 55fr; gap: 28px; align-items: stretch;
  padding-bottom: 32px; margin-bottom: 32px; border-bottom: 1px solid var(--line);
}
.m-guide-featured-img { border-radius: var(--radius-m); overflow: hidden; background: var(--surface-soft); aspect-ratio: 4/3; }
.m-guide-featured-img img { width: 100%; height: 100%; object-fit: contain; object-position: center; }
.m-guide-featured-body { display: flex; flex-direction: column; justify-content: center; }
.m-guide-featured-body h2 { font-size: 26px; font-weight: 800; line-height: 1.4; color: var(--ink); margin: 10px 0 12px; }
.m-guide-featured-body p { font-size: 14.5px; color: var(--muted); line-height: 1.8; margin-bottom: 14px; }

.m-guide-secondary { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 32px; }

.m-guide-list { display: flex; flex-direction: column; }
.m-guide-list-row {
  display: flex; align-items: center; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line);
}
.m-guide-list-row:first-child { padding-top: 0; }
.m-guide-list-thumb { width: 120px; height: 84px; border-radius: var(--radius-s); overflow: hidden; flex-shrink: 0; background: var(--surface-soft); }
.m-guide-list-thumb img { width: 100%; height: 100%; object-fit: contain; object-position: center; }
.m-guide-list-thumb .editorial-cover { padding: 8px; }
.m-guide-list-thumb .editorial-cover strong { font-size: 10.5px; -webkit-line-clamp: 3; }
.m-guide-list-thumb .editorial-cover .editorial-cover__eyebrow { font-size: 8px; }
.m-guide-list-body { min-width: 0; flex: 1; }
.m-guide-list-body h3 { font-size: 15.5px; font-weight: 700; color: var(--ink); line-height: 1.5; }
.m-guide-list-body p { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.m-guide-list-row .m-rel-arrow { color: var(--muted); flex-shrink: 0; }
@media (max-width: 900px) {
  .m-guide-featured, .m-guide-secondary { grid-template-columns: 1fr; }
  .m-guide-list-thumb { width: 84px; height: 64px; }
}

/* ==========================================================================
   TOOLS directory row（開発環境・計測・収益化など、card化しない一覧）
   ========================================================================== */
.m-tool-directory { display: flex; flex-direction: column; }
.m-tool-dir-row { display: flex; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.m-tool-dir-row:first-child { padding-top: 0; }
.m-tool-dir-row .m-tool-mark { width: 32px; height: 32px; font-size: 11px; margin-bottom: 0; flex-shrink: 0; }
.m-tool-dir-text { min-width: 0; flex: 1; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.m-tool-dir-text .m-tool-dir-name { font-size: 14.5px; font-weight: 700; color: var(--ink); }
.m-tool-dir-text .m-tool-dir-desc { font-size: 12.5px; color: var(--muted); }
.m-tool-dir-tag { font-size: 10.5px; font-weight: 700; padding: 3px 9px; border-radius: var(--radius-s); background: var(--surface-soft); color: var(--muted); flex-shrink: 0; }
.m-tool-dir-row .m-rel-arrow { color: var(--muted); flex-shrink: 0; }

/* ==========================================================================
   LIST PAGES (/news/ /guides/ /tools/ /projects/) 共通
   ========================================================================== */
.m-page-head { padding: 20px 0 28px; }
.m-page-eyebrow { font-size: 11px; font-weight: 800; letter-spacing: .12em; color: var(--muted); margin-bottom: 10px; }
.m-page-head h1 { font-size: 40px; font-weight: 900; letter-spacing: -0.02em; color: var(--ink); }
.m-page-lead { margin-top: 12px; font-size: 15.5px; color: var(--text); max-width: 640px; }

.m-list-feature {
  display: grid; grid-template-columns: 55fr 45fr; gap: 28px; align-items: stretch;
  border-bottom: 1px solid var(--line); padding-bottom: 32px; margin-bottom: 32px;
}
.m-list-feature-img { border-radius: var(--radius-m); overflow: hidden; background: var(--surface-soft); aspect-ratio: 16/10; }
.m-list-feature-img img { width: 100%; height: 100%; object-fit: contain; object-position: center; }
.m-list-feature-body { display: flex; flex-direction: column; justify-content: center; }
.m-list-feature-body h2 { font-size: 26px; font-weight: 800; line-height: 1.4; color: var(--ink); margin: 10px 0 12px; }
.m-list-feature-body p { font-size: 14px; color: var(--muted); line-height: 1.8; }

.m-list-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 32px; }

.m-topic-nav { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.m-topic-nav a { font-size: 13px; font-weight: 700; padding: 8px 16px; border: 1px solid var(--line); border-radius: var(--pill); color: var(--text); }
.m-topic-nav a:hover, .m-topic-nav a.is-active { border-color: var(--blue); color: var(--blue); }

/* ==========================================================================
   mobile
   ========================================================================== */
@media (max-width: 1180px) {
  .m-tool-row { grid-template-columns: repeat(4, 1fr); }
  .m-tool-row.has-cta { grid-template-columns: repeat(4, 1fr); }
  .m-tool-cta { grid-column: span 4; flex-direction: row; align-items: center; justify-content: space-between; }
  .m-update-grid { grid-template-columns: repeat(3, 1fr); }
  .m-home-grid { grid-template-columns: repeat(3, 1fr); }
  .m-tool-tile .m-tool-mark { width: 68px; height: 68px; font-size: 32px; }
}
@media (max-width: 1080px) {
  .m-home-project-grid { grid-template-columns: repeat(2, 1fr); }
  .m-article-layout { grid-template-columns: 1fr; }
  .m-article-sidebar { position: static; }
  .m-sidebar-ad { display: none; }
}
@media (max-width: 900px) {
  .m-tool-related-grid { grid-template-columns: 1fr; }
  .media-shell, .project-index { padding-inline: var(--pad-x-mobile); }
  .m-footer .media-shell { grid-template-columns: 1fr 1fr; }
  .m-footer-brand { grid-column: span 2; }
  .m-hero-grid { grid-template-columns: 1fr; min-height: 0; }
  .m-hero-text { order: 1; padding: 0; }
  .m-hero-cta { order: 2; }
  .m-hero-visual { order: 3; margin-top: 4px; }
  .m-hero h1 { font-size: 34px; }
  .m-hero-photo { aspect-ratio: 16/11; }
  .m-page-head h1 { font-size: 32px; }
  .m-article-head h1 { font-size: 34px; }
  .m-article-lead { font-size: 16px; }
  .m-section-title { font-size: 20px; }
  .m-section { padding: 28px 0; }
  body.pocket-home .m-section { padding: 20px 0; }

  .m-update-grid { grid-template-columns: repeat(2, 1fr); }
  .m-home-grid { grid-template-columns: repeat(2, 1fr); }
  .m-pick-grid { grid-template-columns: 1fr; }

  .m-tool-row, .m-tool-row.has-cta { grid-template-columns: repeat(2, 1fr); }
  .m-tool-cta { grid-column: span 2; flex-direction: column; align-items: flex-start; }
  .m-tool-tile .m-tool-mark { width: 60px; height: 60px; font-size: 28px; }

  .m-feature-grid, .m-list-grid { grid-template-columns: 1fr; }
  .m-home-project-grid { grid-template-columns: 1fr; }
  .m-home-card-body { padding: 12px 14px; }
  .m-side-row { align-items: flex-start; }
  .m-list-feature { grid-template-columns: 1fr; }
  .m-project-hero { grid-template-columns: 1fr; }
  .project-index { grid-template-columns: 1fr; }
  .project-index .m-chapter-num { font-size: 28px; }

  .m-nav-toggle { display: flex; margin-left: auto; }
  .m-header-nav {
    position: fixed; inset: 68px 0 0 0; background: var(--surface);
    flex-direction: column; align-items: flex-start; gap: 0; padding: 8px var(--pad-x-mobile);
    display: none;
  }
  .m-header-nav.is-open { display: flex; }
  .m-header-nav a { width: 100%; padding: 14px 0; border-bottom: 1px solid var(--line); }

  .split-box { grid-template-columns: 1fr; }
  .project-status .ps-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .m-hero h1 { font-size: 32px; }
  .m-article-head h1 { font-size: 28px; }
  .m-update-grid { grid-template-columns: 1fr; }
  .m-home-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   TOOLBOX ハブページ(/tool/{slug}/、public_html/tools/view.php)専用。
   他ページのm-*クラスは再利用のみで変更しない(このブロックのみ新規追加)。
   ========================================================================== */
.m-tool-hub-head { padding-bottom: 24px; }
.m-tool-hub-identity { display: flex; align-items: center; gap: 16px; margin-top: 6px; }
.m-tool-hub-icon {
  width: 64px; height: 64px; border-radius: var(--radius-m);
  object-fit: contain; background: var(--surface-soft); flex-shrink: 0;
}
.m-tool-hub-icon--fallback {
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; font-weight: 800; color: var(--ink);
}
.m-tool-hub-identity h1 { font-size: 32px; font-weight: 900; letter-spacing: -0.02em; color: var(--ink); }
.m-tool-hub-tagline { font-size: 13px; font-weight: 700; color: var(--blue); margin-top: 4px; }
.m-tool-hub-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 16px; }
.m-tool-hub-vendor { font-size: 12.5px; color: var(--muted); }
.m-tool-hub-official { font-size: 12.5px; font-weight: 800; color: var(--blue); }
@media (max-width: 560px) {
  .m-tool-hub-identity { gap: 12px; }
  .m-tool-hub-icon { width: 48px; height: 48px; }
  .m-tool-hub-identity h1 { font-size: 24px; }
}
