/* ===================================================
   現役人事ワーママの転職ノート - Main CSS
   Inspired by: SWELL/SANGO (Japan top blog themes)
   2025 Design Trends: Minimal, Card-based, Mobile-first
   =================================================== */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  /* カラーパレット（変更なし） */
  --navy: #1a2d5e;
  --blue: #2d4a8a;
  --mid: #4e7ec5;
  --light: #c8dbf0;
  --pale: #eaf3fb;
  --bg: #f5f7fc;
  --white: #ffffff;
  --text: #2d3a50;
  --muted: #7a8aaa;
  --border: rgba(200,219,240,0.7);
  --radius: 12px;
  --shadow-sm: 0 1px 8px rgba(26,45,94,0.06);
  --shadow: 0 4px 20px rgba(26,45,94,0.08);
  --shadow-lg: 0 8px 32px rgba(26,45,94,0.14);
  /* カテゴリカラー */
  --c-jinji: #3a72c0;
  --c-telework: #2a8fa8;
  --c-money: #4060b0;
  --c-diary: #7058c0;
  --c-books: #3a70a8;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Meiryo', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.9;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--mid); text-decoration: none; }
a:hover { text-decoration: underline; color: var(--blue); }
img { max-width: 100%; height: auto; display: block; }

/* ========== HEADER ========== */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}
.header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 62px;
  gap: 16px;
}
.site-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.site-logo:hover { text-decoration: none; }
.logo-icon { font-size: 1.5em; line-height: 1; display: inline-flex; align-items: center; }
.logo-icon img { width: 38px; height: 38px; display: block; object-fit: contain; }
.logo-title { font-size: 1.0em; font-weight: 700; color: var(--navy); line-height: 1.3; }
.logo-sub { font-size: 0.61em; color: var(--muted); margin-top: 1px; }
.site-nav { display: flex; gap: 1px; align-items: center; }
.site-nav a {
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.84em;
  font-weight: 500;
  color: var(--muted);
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
.site-nav a:hover { background: var(--pale); color: var(--blue); text-decoration: none; }
.nav-toggle {
  display: none;
  background: none;
  border: 1.5px solid var(--light);
  border-radius: 6px;
  font-size: 1.1em;
  cursor: pointer;
  padding: 5px 9px;
  color: var(--blue);
  line-height: 1;
}

/* ========== HERO (D案: アクアパステル + クリームアクセント) ========== */
.hero {
  background: linear-gradient(135deg, #e8f5fa 0%, #d5ecf0 50%, #fff5e1 100%);
  padding: 52px 24px 44px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 92% 18%, rgba(159,217,217,0.30) 0px, transparent 80px),
    radial-gradient(circle at 8% 86%, rgba(255,217,160,0.25) 0px, transparent 90px);
  pointer-events: none;
}
.hero-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
  position: relative;
}
.hero-text { max-width: 560px; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #fff8e7;
  color: #8a6e2a;
  font-size: 0.76em;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 30px;
  margin-bottom: 16px;
  border: 1px solid #f5dfa6;
  letter-spacing: 0.03em;
}
.hero h1 {
  font-size: 1.85em;
  color: #1d6e7e;
  margin-bottom: 12px;
  line-height: 1.44;
  font-weight: 700;
  letter-spacing: -0.015em;
}
.hero h1 span {
  background: linear-gradient(transparent 60%, #ffd9a0 60%);
  padding: 0 2px;
}
.hero-desc {
  color: #3a6e7a;
  font-size: 0.92em;
  margin-bottom: 22px;
  line-height: 1.85;
}
.hero-tags { display: flex; gap: 7px; flex-wrap: wrap; }
.hero-tag {
  background: #fff;
  color: #1d6e7e;
  border: 1px solid #b5dde0;
  padding: 4px 12px;
  border-radius: 30px;
  font-size: 0.77em;
  font-weight: 600;
  box-shadow: 0 1px 4px rgba(29,110,126,0.06);
}

/* ヒーロー右側：信頼性ボックス（クリームベース） */
.hero-stats {
  background: #fff8e7;
  border-radius: 16px;
  padding: 18px 22px;
  min-width: 200px;
  box-shadow: 0 4px 20px rgba(138,110,42,0.12);
  border: 1px solid #f5dfa6;
}
.hero-stat-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px dashed #f0d89d;
}
.hero-stat-item:last-child { border-bottom: none; padding-bottom: 0; }
.hero-stat-item:first-child { padding-top: 0; }
.hero-stat-icon { width: 38px; height: 38px; border-radius: 50%; background: #f3e7c8; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.hero-stat-text { }
.hero-stat-num { font-size: 1.3em; font-weight: 700; color: #8a6e2a; line-height: 1; }
.hero-stat-label { font-size: 0.72em; color: #a08855; margin-top: 2px; }
.hero-illust { display: none; } /* 旧SVGを非表示 */

/* ========== CONTAINER ========== */
.container { max-width: 1120px; margin: 0 auto; padding: 48px 24px 80px; }
.content-grid { display: grid; grid-template-columns: 1fr 300px; gap: 44px; align-items: start; }

/* ========== SECTION HEADER ========== */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--light);
}
.section-title {
  font-size: 1.1em;
  font-weight: 700;
  color: var(--navy);
}
.see-all {
  font-size: 0.8em;
  color: var(--mid);
  font-weight: 600;
  padding: 4px 12px;
  border: 1.5px solid var(--light);
  border-radius: 20px;
  transition: all 0.15s;
}
.see-all:hover { background: var(--pale); text-decoration: none; color: var(--blue); }

/* ========== POST CARDS ========== */
.posts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.post-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s cubic-bezier(0.2,0,0.2,1), box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.post-card:hover .post-card-img { filter: brightness(1.05); }

/* カード サムネイル */
.post-card-img {
  height: 155px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 12px 14px;
  transition: filter 0.2s;
}

/* 装飾：右上の大きな円 */
.post-card-img::after {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  pointer-events: none;
}

/* 装飾：斜めライン */
.post-card-img::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: repeating-linear-gradient(
    -45deg,
    rgba(255,255,255,0) 0px,
    rgba(255,255,255,0) 12px,
    rgba(255,255,255,0.035) 12px,
    rgba(255,255,255,0.035) 13px
  );
  pointer-events: none;
}

/* カテゴリ別背景 — 6カテゴリすべてパステル画像化完了（2026-05-06 18号） */
.post-card-img.cat-jinji    { background: url('/assets/cards/cat-jinji.png') center/cover, #F5E6D3; }
.post-card-img.cat-money    { background: url('/assets/cards/cat-money.png') center/cover, #C5E8D5; }
.post-card-img.cat-trend    { background: url('/assets/cards/cat-trend.png') center/cover, #FFE0E0; }
.post-card-img.cat-telework { background: url('/assets/cards/cat-telework.png') center/cover, #D4F0EC; }
.post-card-img.cat-diary    { background: url('/assets/cards/cat-diary.png') center/cover, #E8DFFF; }
.post-card-img.cat-books    { background: url('/assets/cards/cat-books.png') center/cover, #FFF1D6; }

/* カード内：カテゴリタグ（左下） */
.card-cat-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(0,0,0,0.25);
  color: rgba(255,255,255,0.96);
  font-size: 0.69em;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.25);
  backdrop-filter: blur(6px);
  position: relative;
  z-index: 2;
  width: fit-content;
  letter-spacing: 0.02em;
}

.post-card-body { padding: 14px 16px 16px; flex: 1; display: flex; flex-direction: column; }
.post-category {
  display: none; /* カード内のcategory span は非表示（サムネイルに移動） */
}
.post-card h2 {
  font-size: 0.89em;
  line-height: 1.62;
  margin-bottom: 10px;
  color: var(--text);
  font-weight: 600;
}
.post-card h2 a { color: inherit; }
.post-card h2 a:hover { color: var(--mid); text-decoration: none; }
.post-meta {
  font-size: 0.72em;
  color: var(--muted);
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}
.post-card.wide { flex-direction: row; min-height: 108px; }
.post-card.wide .post-card-img { width: 140px; height: auto; min-height: 108px; flex-shrink: 0; padding: 10px 12px; }
.post-card.wide .post-card-body { padding: 12px 14px 14px; }
.post-card.wide h2 { font-size: 0.88em; }

/* ========== SIDEBAR ========== */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: sticky;
  top: 80px;
  /* 2026-05-18 34号追加：flex親で sticky を効かせるため自己整列のみ（max-height/overflowは関連記事見切れるので削除）*/
  align-self: flex-start;
}
/* 親 flex-container の align-items: stretch を回避 */
.article-layout {
  align-items: flex-start;
}
.sidebar-widget {
  background: var(--white);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}
.widget-title {
  font-size: 0.84em;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--light);
}
.profile-widget {
  background: linear-gradient(160deg, var(--pale) 0%, #f8fbff 100%);
  text-align: center;
}
.profile-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--light), #ddeaf8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2em;
  margin: 0 auto 10px;
  border: 3px solid var(--white);
  box-shadow: 0 3px 12px rgba(45,74,138,0.14);
}
.profile-name { font-weight: 700; font-size: 1.05em; color: var(--navy); margin-bottom: 5px; }
.profile-bio { font-size: 0.79em; color: var(--muted); line-height: 1.7; }
.profile-btn {
  display: inline-block;
  margin-top: 12px;
  background: var(--blue);
  color: white !important;
  padding: 7px 18px;
  border-radius: 30px;
  font-size: 0.79em;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none !important;
  transition: background 0.15s;
}
.profile-btn:hover { background: var(--navy); text-decoration: none !important; }
.category-list { list-style: none; display: flex; flex-direction: column; gap: 2px; }
.category-list li a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 7px;
  font-size: 0.84em;
  color: var(--text);
  transition: all 0.15s;
  font-weight: 500;
}
.category-list li a:hover { background: var(--pale); color: var(--blue); padding-left: 14px; text-decoration: none; }

/* ========== 著者ボックス ========== */
.author-box {
  display: flex;
  gap: 12px;
  align-items: center;
  background: var(--pale);
  border-radius: 10px;
  padding: 14px 16px;
  margin: 0 0 22px;
  border: 1px solid var(--light);
}
.author-avatar-sm {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--light), #ddeaf8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5em;
  flex-shrink: 0;
}
.author-info { flex: 1; }
.author-name-sm { font-size: 0.77em; color: var(--muted); margin-bottom: 3px; }
.author-name-sm strong { color: var(--navy); font-weight: 700; }
.author-desc-sm { font-size: 0.79em; color: var(--muted); line-height: 1.65; margin: 0; }

/* ========== この記事でわかること ========== */
.article-wakaru {
  background: var(--pale);
  border: 1px solid var(--light);
  border-radius: 10px;
  padding: 14px 18px;
  margin: 0 0 18px;
}
.article-wakaru > strong { display: block; color: var(--navy); font-size: 0.88em; font-weight: 700; margin-bottom: 8px; }
/* 2026-05-19 35号変更：disc消去で✅と二重表示防止（旧定義書換） */
.article-wakaru ul { margin: 0; padding-left: 0; list-style: none; }
.article-wakaru li { font-size: 0.84em; color: var(--blue); margin-bottom: 4px; line-height: 1.65; padding-left: 0; list-style: none; }

/* ========== 目次 ========== */
.article-toc {
  background: #f8faff;
  border: 1px solid var(--light);
  border-radius: 10px;
  padding: 14px 18px;
  margin: 0 0 28px;
}
.toc-title {
  font-weight: 700;
  color: var(--navy);
  font-size: 0.86em;
  margin-bottom: 10px;
  padding-bottom: 7px;
  border-bottom: 1px dashed var(--light);
  cursor: pointer;
}

/* ===== 目次UI：開閉アフォーダンス（HTML span方式）stage50 2026-05-20 ===== */
/* Safariで::after content の日本語が逆さ表示されるバグ回避のため、HTML内のspanをCSSで切替 */
/* stage55: ブラウザデフォルト disclosure triangle を完全削除（marker強制潰し） */
/* ※ display:flex だと marker削除が効かないため display:block。さらに font-size:0 で残存markerを潰す */
details summary {
  list-style: none !important;
  list-style-type: none !important;
  list-style-image: none !important;
}
details summary::-webkit-details-marker { display: none !important; }
details summary::marker { content: "" !important; font-size: 0 !important; }
details.article-toc > summary.toc-title {
  list-style: none !important;
  list-style-type: none !important;
  display: block !important;
  cursor: pointer;
}
details.article-toc > summary.toc-title::-webkit-details-marker { display: none !important; width: 0 !important; }
details.article-toc > summary.toc-title::marker { content: "" !important; font-size: 0 !important; }
/* span は inline で横並び（flexを使わない） */
details.article-toc > summary.toc-title > .toc-label,
details.article-toc > summary.toc-title > .toc-hint-closed,
details.article-toc > summary.toc-title > .toc-hint-open {
  display: inline;
}
details.article-toc > summary.toc-title > .toc-hint-closed,
details.article-toc > summary.toc-title > .toc-hint-open {
  margin-left: 0.4em;
}
details.article-toc > summary.toc-title > .toc-label {
  display: inline-block;
}
details.article-toc > summary.toc-title > .toc-hint-closed,
details.article-toc > summary.toc-title > .toc-hint-open {
  font-size: 0.9em;
  color: #5a6a7e;
  font-weight: normal;
}
/* 閉じ時：toc-hint-closed表示、toc-hint-open非表示（!important で iOS Safari二重表示対策 stage51） */
details.article-toc:not([open]) > summary.toc-title > .toc-hint-open { display: none !important; }
details.article-toc:not([open]) > summary.toc-title > .toc-hint-closed { display: inline !important; }
details.article-toc:not([open]) > summary.toc-title > .toc-hint-closed::after {
  content: " ▼";
}
/* 開時：toc-hint-open表示、toc-hint-closed非表示 */
details.article-toc[open] > summary.toc-title > .toc-hint-closed { display: none !important; }
details.article-toc[open] > summary.toc-title > .toc-hint-open { display: inline !important; }
details.article-toc[open] > summary.toc-title > .toc-hint-open::after {
  content: " ▲";
}
.article-toc ol { margin: 0; padding-left: 17px; }
.article-toc li { font-size: 0.83em; margin-bottom: 5px; line-height: 1.65; }
.article-toc li a { color: var(--mid); }
.article-toc li a:hover { color: var(--blue); }

/* ========== 読了時間 ========== */
.reading-time {
  display: inline-flex;
  align-items: center;
  font-size: 0.86em;
  color: #6b7a99;
  margin-left: 4px;
  white-space: nowrap;
}

/* ========== 記事ページ ========== */
.article-layout {
  max-width: 1120px;
  margin: 0 auto;
  padding: 40px 24px 80px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 44px;
  align-items: start;
}
.article-header { margin-bottom: 22px; }
.article-category {
  display: inline-block;
  font-size: 0.74em;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 4px;
  margin-bottom: 12px;
  background: var(--pale);
  color: var(--blue);
  border: 1px solid var(--light);
  letter-spacing: 0.02em;
}
.article-title {
  font-size: 1.65em;
  line-height: 1.46;
  margin-bottom: 12px;
  color: var(--navy);
  letter-spacing: -0.01em;
  font-weight: 700;
}
.article-meta { font-size: 0.79em; color: var(--muted); display: flex; gap: 14px; flex-wrap: wrap; }
.affiliate-note {
  background: #f0f7ff;
  border-left: 3px solid var(--light);
  padding: 7px 12px;
  font-size: 0.78em;
  color: #5a88c0;
  border-radius: 0 5px 5px 0;
  margin: 14px 0 24px;
}

/* ========== 本カード ========== */
.book-card {
  background: linear-gradient(135deg, #fef8ff, #fff5fb);
  border: 1.5px solid #e8c0d8;
  border-radius: 10px;
  padding: 14px 18px;
  margin: 4px 0 20px;
}
.book-card-title {
  font-size: 1.05em;
  font-weight: 700;
  color: #c04870;
  display: block;
  margin-bottom: 3px;
  line-height: 1.4;
}
.book-card-author {
  font-size: 0.8em;
  color: #999;
  display: block;
  margin-bottom: 8px;
}
.book-card-links { display: flex; gap: 8px; flex-wrap: wrap; }
.book-btn-rakuten {
  display: inline-block;
  background: #c04870;
  color: white !important;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 0.77em;
  font-weight: 700;
  text-decoration: none !important;
  transition: background 0.15s;
}
.book-btn-rakuten:hover { background: #a03858; text-decoration: none !important; }
.book-btn-amazon {
  display: inline-block;
  background: #ff9900;
  color: white !important;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 0.77em;
  font-weight: 700;
  text-decoration: none !important;
  transition: background 0.15s;
}
.book-btn-amazon:hover { background: #e68800; text-decoration: none !important; }

/* ========== 記事本文（モバイル可読性改善・32号 2026-05-16）========== */
/* 設計原則：段落間 1.6em / 見出し前 52-36px / line-height 2.0 / モバイル左右余白 */
/* ハイライト（<mark>・linear-gradient背景）は1-2行最大に。4行以上は読者疲労につながるので避ける */
.article-body { line-height: 2.0; color: var(--text); }
.article-body h2 {
  font-size: 1.34em;
  margin: 56px 0 18px;
  padding: 14px 18px 14px 20px;
  background: linear-gradient(135deg, #fef0f4 0%, #fdf5f8 100%);
  border-left: 6px solid #e8608a;
  border-radius: 0 8px 8px 0;
  color: #1a2d5e;
  font-weight: 800;
  line-height: 1.5;
  /* 2026-05-18 34号追加：二桁数字の「10.」が大きく見える問題対策
     tnum=tabular-numbers で半角数字を等幅化、文字サイズの視覚不均衡を解消 */
  font-feature-settings: "tnum" 1;
  font-variant-numeric: tabular-nums;
}
.article-body h3 {
  font-size: 1.03em;
  margin: 36px 0 12px;
  color: #c04870;
  padding-bottom: 6px;
  border-bottom: 2px dashed #f0b8cc;
  font-weight: 700;
  line-height: 1.55;
}
.article-body h4 {
  font-size: 0.98em;
  margin: 28px 0 10px;
  color: #6e4060;
  font-weight: 700;
  line-height: 1.55;
}
.article-body p { margin: 0 0 1.6em; line-height: 2.0; }
.article-body ul, .article-body ol { margin: 0 0 1.6em 20px; }
.article-body li { margin-bottom: 10px; line-height: 1.95; }
.article-body a { color: var(--mid); border-bottom: 1px dotted var(--light); font-weight: 500; }
.article-body a:hover { color: var(--blue); border-bottom-color: var(--mid); text-decoration: none; }
.article-body strong { color: var(--navy); font-weight: 700; }
.article-body mark {
  background: linear-gradient(transparent 65%, #ffe89a 65%, #ffe89a 95%, transparent 95%);
  padding: 0 2px;
  font-weight: 600;
  color: inherit;
}
.article-body blockquote {
  border-left: 4px solid var(--light);
  padding: 14px 18px;
  margin: 28px 0;
  background: var(--pale);
  border-radius: 0 8px 8px 0;
  color: var(--muted);
  line-height: 1.95;
}
.info-box {
  background: linear-gradient(135deg, var(--pale), #f5f9ff);
  border: 1.5px solid var(--light);
  border-radius: 10px;
  padding: 20px 22px;
  margin: 28px 0;
  line-height: 1.95;
}
.info-box strong { color: var(--navy); }
.info-box a { color: var(--mid); font-weight: 600; }

/* ========== ページヘッダー ========== */
.page-header {
  background: linear-gradient(135deg, #e8f5fa 0%, #d5ecf0 50%, #fff5e1 100%);
  padding: 44px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 92% 20%, rgba(159,217,217,0.20) 0px, transparent 60px),
    radial-gradient(circle at 8% 80%, rgba(255,217,160,0.18) 0px, transparent 70px);
  pointer-events: none;
}
.page-header h1 { font-size: 1.5em; color: #1d6e7e; font-weight: 700; margin-bottom: 6px; position: relative; }
.page-header p { color: #3a6e7a; font-size: 0.88em; position: relative; }

/* ========== プロフィールページ ========== */
.about-hero {
  background: linear-gradient(135deg, #e8f5fa 0%, #d5ecf0 50%, #fff5e1 100%);
  padding: 56px 24px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.about-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 88% 18%, rgba(159,217,217,0.22) 0px, transparent 80px),
    radial-gradient(circle at 12% 82%, rgba(255,217,160,0.20) 0px, transparent 90px);
  pointer-events: none;
}
.about-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--light), #ddeaf8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3em;
  margin: 0 auto 14px;
  box-shadow: 0 6px 24px rgba(45,74,138,0.18);
  border: 4px solid rgba(255,255,255,0.92);
  position: relative;
}
.about-content { max-width: 680px; margin: 0 auto; padding: 44px 24px 80px; }
.about-content h2 {
  font-size: 1.1em;
  color: var(--blue);
  margin: 32px 0 12px;
  padding: 9px 15px;
  background: var(--pale);
  border-left: 4px solid var(--mid);
  border-radius: 0 8px 8px 0;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 9px;
}
.about-content p { margin-bottom: 16px; line-height: 1.95; font-size: 0.97em; }
.profile-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 28px 0;
}
.stat-card {
  background: var(--white);
  border-radius: 10px;
  padding: 16px 12px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}
.stat-number { font-size: 1.7em; font-weight: 700; color: var(--blue); line-height: 1; margin-bottom: 5px; }
.stat-label { font-size: 0.73em; color: var(--muted); }

/* ========== フッター（③1段明るめ版：アクア寄り・27号B案）========== */
.site-footer {
  background: linear-gradient(135deg, #5a9eaf 0%, #3d8a9e 50%, #2a6e7e 100%);
  color: #e8f5fa;
  padding: 44px 24px 24px;
}
.footer-inner { max-width: 1120px; margin: 0 auto; text-align: center; }
.footer-logo { font-size: 1.05em; color: white; font-weight: 700; margin-bottom: 8px; }
.footer-desc { font-size: 0.82em; line-height: 1.8; margin-bottom: 16px; opacity: 0.95; }
.footer-nav { display: flex; gap: 20px; justify-content: center; margin-bottom: 12px; flex-wrap: wrap; }
.footer-nav a { color: #c8e8e8; font-size: 0.81em; transition: color 0.15s; }
.footer-nav a:hover { color: white; text-decoration: none; }
.footer-blogs {
  font-size: 0.78em;
  background: #fff8e7;
  color: #8a6e2a;
  padding: 8px 16px;
  border-radius: 20px;
  display: inline-block;
  margin: 8px 0;
}
.footer-blogs a { color: #1d6e7e; font-weight: 600; }
.footer-blogs a:hover { color: #0f5060; text-decoration: underline; }
.footer-copy { font-size: 0.73em; color: rgba(232,245,250,0.7); margin-top: 12px; }

/* ========== RESPONSIVE: Tablet (900px) ========== */
@media (max-width: 900px) {
  .content-grid { grid-template-columns: 1fr !important; gap: 28px; }
  .article-layout {
    display: flex !important;
    flex-direction: column !important;
    padding: 28px 18px 60px;
    gap: 28px;
  }
  .article-layout article { order: 1; }
  .article-layout aside.sidebar { order: 2; }
  .sidebar { position: static; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-stats { display: none; } /* タブレットではstatsを非表示 */
}

/* ========== RESPONSIVE: Mobile (768px) ========== */
@media (max-width: 768px) {
  /* ヘッダー */
  .site-nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 62px;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 6px 18px rgba(26,45,94,0.09);
    z-index: 999;
  }
  .site-nav.open { display: flex; }
  .site-nav a { color: var(--text); padding: 10px 12px; font-size: 0.91em; border-radius: 6px; }
  .site-nav a:hover { padding-left: 16px; }
  .nav-toggle { display: block; }
  .logo-sub { display: none; }

  /* ヒーロー */
  .hero { padding: 34px 18px 30px; }
  .hero-inner { gap: 20px; }
  .hero h1 { font-size: 1.42em; }
  .hero-desc { font-size: 0.88em; }
  .hero-tags { gap: 6px; }
  .hero-stats { display: none; }

  /* カード */
  .posts-grid { grid-template-columns: 1fr; gap: 12px; }
  .post-card.wide { flex-direction: column; }
  .post-card.wide .post-card-img { width: 100%; height: 128px; }
  .post-card-img { height: 140px; }
  .container { padding: 28px 16px 56px; }

  /* 記事本文 - 読みやすさ最優先 */
  .article-layout { padding: 22px 16px 52px; }
  .article-title { font-size: 1.28em; line-height: 1.52; }
  .article-body { font-size: 1.01em; line-height: 2.06; }
  .article-body p { margin-bottom: 22px; }
  .article-body h2 { font-size: 1.22em; padding: 11px 14px; margin: 38px 0 13px; }
  .article-body h3 { font-size: 1.0em; margin: 24px 0 9px; }
  .article-body li { line-height: 1.95; margin-bottom: 7px; }
  .article-toc, .article-wakaru { padding: 12px 14px; }
  .article-toc li { font-size: 0.86em; }
  .article-wakaru li { font-size: 0.86em; }

  /* 2026-05-17 33号：旧JS折り畳み目次CSS（.toc-open class依存）を削除。
     details/summary方式に統一済（style.css末尾の details.article-toc 系で制御）。
     旧CSSが残っていると details[open] でも ol が display:none で隠れる事故が発生していた。 */
  .author-box { padding: 11px 13px; gap: 10px; flex-wrap: wrap; }

  /* プロフィール */
  .about-hero { padding: 40px 18px 36px; }
  .about-content { padding: 28px 16px 52px; }
  .profile-stats { gap: 8px; }
  .stat-card { padding: 12px 8px; }
  .stat-number { font-size: 1.45em; }
}

/* ===== Xフォローボタン（オレンジグラデ・記事16のハート要素と統一）===== */
.x-follow-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #e89640, #d97f2e);
  color: #fff !important;
  padding: 11px 18px;
  border-radius: 24px;
  font-size: 0.88em;
  font-weight: 700;
  text-decoration: none !important;
  transition: background 0.2s;
  justify-content: center;
  margin-top: 4px;
}
.x-follow-btn:hover { background: linear-gradient(135deg, #d97f2e, #c66f1f); }
.x-cta-box {
  background: linear-gradient(135deg, #e8f5fa 0%, #fff5e1 100%);
  border: 1px solid #d5dde0;
  border-radius: 14px;
  padding: 20px 22px;
  margin: 32px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.x-cta-box p { color: #1d6e7e !important; position: relative; }
.x-cta-box p { font-size: 0.9em; color: #444; margin-bottom: 12px; line-height: 1.7; }

/* ===== まとめボックス（2026-05-19 36号最終確定：パターンC 薄ミントグリーン・みぃさん選択） ===== */
/* インラインstyle上書きのため!important全強制・全周border統一（左borderも復活させて4辺均等に） */
.matome-box {
  background: #f3f9f6 !important;
  border: 1px solid #c5e0d2 !important;
  border-radius: 10px !important;
  padding: 1.6em 1.5em !important;
  margin: 2em 0 !important;
  line-height: 1.8;
}
.matome-box h2 {
  font-size: 1.18em !important;
  font-weight: bold !important;
  color: #1a4d3a !important;
  margin: 0 0 0.9em !important;
  padding: 0 0 0.6em !important;
  border: none !important;
  border-bottom: 1px solid #c5e0d2 !important;
  background: none !important;
  line-height: 1.5;
}
.matome-box p {
  margin: 0 0 1em;
  line-height: 1.85;
  font-size: 0.98em;
  color: #1f2937;
}
.matome-box ul {
  margin: 0 0 1.1em;
  padding-left: 1.4em;
}
.matome-box li {
  margin: 0 0 0.65em;
  line-height: 1.75;
  font-size: 0.96em;
  color: #1f2937;
}
.matome-box li:last-child {
  margin-bottom: 0;
}
/* matome-box内の補足ボックス：白背景でコントラスト確保（!important強制でインラインstyle上書き・全周border統一） */
.matome-box > div[style] {
  background: #fff !important;
  border: 1px solid #c5e0d2 !important;
  border-radius: 8px !important;
  padding: 1em 1.2em !important;
  margin-top: 1em !important;
}
.matome-box > div[style] p {
  color: #1f2937 !important;
  font-size: 0.95em !important;
}

/* ===== FAQセクション ===== */
.faq-section {
  margin: 40px 0;
}
.faq-section h2 {
  font-size: 1.35em;
  color: #1a3a5c;
  margin: 0 0 22px;
  padding: 0 0 10px;
  border-bottom: 2px solid #e0e0e0;
  line-height: 1.5;
}
.faq-item {
  background: #fafbfc;
  border: 1px solid #e8eaed;
  border-radius: 10px;
  padding: 18px 22px;
  margin: 0 0 14px;
}
.faq-item:last-child {
  margin-bottom: 0;
}
.faq-q {
  font-weight: 700;
  color: #1a3a5c;
  font-size: 1em;
  line-height: 1.7;
  margin: 0 0 10px;
  padding: 0 0 8px;
  border-bottom: 1px dashed #d0d4d9;
}
.faq-a {
  color: #333;
  font-size: 0.95em;
  line-height: 1.95;
  margin: 0;
}

@media (max-width: 600px) {
  .matome-box {
    padding: 20px 18px;
    margin: 28px 0;
  }
  .matome-box h2 { font-size: 1.12em; }
  .matome-box p, .matome-box li { font-size: 0.95em; line-height: 1.9; }
  .faq-section h2 { font-size: 1.18em; }
  .faq-item { padding: 16px 16px; }
  .faq-q { font-size: 0.96em; line-height: 1.7; }
  .faq-a { font-size: 0.92em; line-height: 1.9; }
}


/* ========== PREP結論ボックス（案A：左に太いオレンジバー＋大きめ結論文字） ========== */
.lp-lead-box {
  /* 2026-05-19 36号変更：黄色枠 → 白背景＋薄いグレー枠（Gemini新提案A・みぃさん選択B） */
  background: #ffffff;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  padding: 20px 24px;
  margin: 24px 0;
}
.lp-lead-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1a3a5c;
  margin: 0 0 12px;
  line-height: 1.5;
}
.lp-lead-box p:not(.lp-lead-title) {
  margin: 0;
  font-size: 1em;
  line-height: 1.85;
  color: #333;
}
/* 2026-05-18 34号追加：3段構造テンプレ「要点」リスト */
.lp-lead-points {
  margin: 14px 0;
  padding: 14px 18px 14px 36px;
  background: #fffbea;
  border-left: 3px solid #fbbf24;
  border-radius: 0 8px 8px 0;
  list-style: none;
  position: relative;
}
.lp-lead-points li {
  position: relative;
  padding-left: 4px;
  margin: 6px 0;
  font-size: 0.96em;
  line-height: 1.75;
  color: #2d1a2e;
}
.lp-lead-points li::before {
  content: '✓';
  position: absolute;
  left: -22px;
  top: 1px;
  color: #f59e0b;
  font-weight: 800;
  font-size: 1em;
}
.lp-lead-points-label {
  font-weight: 700;
  color: #92400e;
  font-size: 0.95em;
  margin: 0 0 8px;
  letter-spacing: 0.04em;
}
.lp-lead-headline {
  font-weight: 800;
  color: #1a3a5c;
  font-size: 1.08em;
  margin: 0 0 12px !important;
  line-height: 1.55;
}
.lp-lead-promise {
  font-size: 0.92em !important;
  color: #5a6a7e;
  margin: 12px 0 0 !important;
  line-height: 1.7;
  border-top: 1px dashed #fde68a;
  padding-top: 10px;
}

/* 2026-05-18 34号追加：最終版v2（結論ひと回り大きく・サーモンピンクmark・行間広げ） */
.lp-lead-box {
  padding: 1.5em 1.3em !important;
  line-height: 1.8;
}
.lp-lead-box > p:first-of-type {
  font-size: 1.18em;
  line-height: 1.7;
  margin: 0 0 1em;
  font-weight: 700;
  color: #1a1a1a;
}
.lp-lead-box p {
  margin: 0 0 12px;
  font-size: 1em;
  line-height: 1.85;
  color: #1a1a1a;
}
.lp-lead-box p:last-child {
  margin-bottom: 0;
}
.lp-lead-box p strong {
  font-weight: 700;
  color: #000;
}
.lp-lead-box mark {
  /* 2026-05-19 36号最終確定：白背景＋ピンクマーカー（みぃさん最終巻き戻し・本番＝ローカル整合） */
  background: linear-gradient(transparent 65%, #ffb7a8 65%);
  padding: 0 0.05em;
  color: inherit;
  font-weight: inherit;
}
/* 2026-05-19 35号変更：白背景巻き戻し → 行930の黄色背景（#fff8e1）に復元（みぃさん指示） */
.lp-lead-box ul {
  margin: 1em 0;
  padding-left: 1.5em;
  list-style-type: disc;
}
.lp-lead-box ul li {
  margin-bottom: 0.8em;
  line-height: 1.7;
  color: #1a1a1a;
  font-size: 0.96em;
}
.lp-lead-box ul li:last-child {
  margin-bottom: 0;
}
.lp-lead-box ul li::marker {
  color: #1a1a1a;
}
.lp-lead-box ul li strong {
  font-weight: 700;
  color: #000;
}
.lp-lead-box .example-text {
  font-size: 0.92em;
  color: #888;
}
/* 2026-05-18 34号追加：わかること青枠は ✅ で統一（・を消す）!important強制 */
.article-wakaru ul,
.article-wakaru ol {
  list-style: none !important;
  list-style-type: none !important;
  padding-left: 0 !important;
  margin-left: 0 !important;
}
.article-wakaru ul li,
.article-wakaru ol li {
  padding-left: 0 !important;
  margin-bottom: 0.5em;
  list-style: none !important;
}
.article-wakaru ul li::marker,
.article-wakaru ol li::marker {
  content: '' !important;
}
/* 2026-05-18 34号追加：目次の自動番号を消す（h2内に番号があるため二重防止）!important強制 */
details.article-toc ol,
details.article-toc ul,
.article-toc ol,
.article-toc ul {
  list-style: none !important;
  list-style-type: none !important;
  padding-left: 0 !important;
  margin-left: 0 !important;
  counter-reset: none !important;
}
details.article-toc ol li,
details.article-toc ul li,
.article-toc ol li,
.article-toc ul li {
  padding-left: 0 !important;
  list-style: none !important;
}
details.article-toc ol li::marker,
.article-toc ol li::marker {
  content: '' !important;
}
details.article-toc ol li::before,
.article-toc ol li::before {
  content: '' !important;
  display: none !important;
}

@media (max-width: 600px) {
  .lp-lead-box { padding: 18px 20px; }
  .lp-lead-title { font-size: 1.12rem; }
  .lp-lead-points { padding: 12px 14px 12px 32px; }
  .lp-lead-points li { font-size: 0.92em; }
  .lp-lead-box ul {
    padding-left: 1.3em;
  }
  .lp-lead-box ul li {
    font-size: 0.92em;
  }
}

/* === デザイン破損監査エージェント (2026-05-13) === */
/* モバイル幅で広いテーブルが画面幅をはみ出してページ全体が横スクロールになるのを防ぐ */
@media (max-width: 768px) {
  .article-body table {
    display: block;
    overflow-x: auto;
    max-width: 100%;
    -webkit-overflow-scrolling: touch;
  }
}

/* 長文 p / li で長い英単語・URL がコンテナをはみ出すのを防ぐ（td/th は別ルール） */
.article-body p,
.article-body li {
  overflow-wrap: break-word;
  word-break: normal;
}

/* === みぃさん指摘 #1+#3 緊急修正 (2026-05-13 16:50 → 17:10 統合) ===
   - #1: data-viz-box のセル内 「14.5%」が縦割れ
   - #3: 記事117 .comparison-table の 5社サービス名・特徴ラベルが全列縦割れ
   原因: word-break / overflow-wrap がCJK＋数値混在で「。」や半角境界で
   折り返し優先発火していたこと。
   → 全テーブル系で word-break: keep-all を強制し、モバイル幅では
     親テーブルを横スクロールコンテナに切替（min-width: 700px で PC幅キープ）。 */

/* セル単位：CJK でも単語境界で折る・強制折り返し抑制 */
.data-viz-box td,
.data-viz-box th,
.data-viz-table td,
.data-viz-table th,
.vs-table td,
.vs-table th,
.comparison-table td,
.comparison-table th,
.comparison-table-wrap td,
.comparison-table-wrap th,
.rank-table td,
.rank-table th,
.kaisei-table td,
.kaisei-table th {
  word-break: keep-all;
  overflow-wrap: normal;
  white-space: normal;
}

/* PC/タブレット幅では数値・サービス名列 nowrap（先頭列＝項目見出しは折り返し許可） */
.data-viz-box td:not(:first-child),
.data-viz-table td:not(:first-child),
.vs-table td:not(:first-child),
.rank-table td:not(:first-child),
.kaisei-table td:not(:first-child) {
  white-space: nowrap;
}

/* 2026-05-14: comparison-table は3列以上で長文セル含む → 全列折り返し許可＋親で横スクロール
   （サイドバー重なり問題 fix・記事54で発覚） */
.comparison-table td,
.comparison-table-wrap td {
  white-space: normal;
}
.comparison-table-wrap {
  overflow-x: auto;
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
}

/* モバイル幅 ≤768px：テーブル自体を横スクロールに切替 */
@media (max-width: 768px) {
  .data-viz-box,
  .data-viz-table,
  .vs-table,
  .comparison-table,
  .comparison-table-wrap,
  .rank-table,
  .kaisei-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
  }
  /* 主要比較表はPC幅キープして横スクロール（読みやすさ優先） */
  .comparison-table,
  .comparison-table-wrap table {
    min-width: 700px;
  }
  /* 各社詳細テーブル（rank-table）は2列なのでviewport幅でOK */
  .rank-table {
    min-width: 0;
  }
  /* スクロール内では nowrap を維持してサービス名・数値を保護 */
  .data-viz-box td,
  .data-viz-table td,
  .vs-table td,
  .comparison-table td,
  .comparison-table-wrap td {
    min-width: max-content;
  }
  /* セル内が押し潰されないよう padding 確保 */
  .comparison-table td,
  .comparison-table th,
  .comparison-table-wrap td,
  .comparison-table-wrap th {
    padding: 0.75em 0.9em;
  }
}

/* スクロールヒント表示（テーブル末尾にメッセージ）*/
@media (max-width: 768px) {
  .comparison-table::after,
  .comparison-table-wrap::after {
    content: "← 横にスクロールできます →";
    display: block;
    text-align: center;
    font-size: 0.82em;
    color: #999;
    margin-top: 0.4em;
    padding: 0.2em;
  }
}

/* === みぃさん指摘 #2 緊急修正 (2026-05-13 16:50) ===
   モバイルで段落が詰まって読みにくい問題。article-body 内の段落間に
   余白を確保して圧迫感を緩和。 */
.article-body p {
  margin-top: 0;
  margin-bottom: 1.1em;
  line-height: 1.95;
}
@media (max-width: 600px) {
  .article-body p {
    margin-bottom: 1.25em;     /* モバイルではさらに余白を */
    line-height: 2;            /* 行間も少し広く */
  }
}

/* === モバイル読みやすさ全体監査エージェント (2026-05-13 18:00) ===
   実機モバイル(viewport ~390-606px)で 28 記事中 18 記事(64%) に
   横スクロール overflow（最大 1922px）が発生していた問題を一括解消。
   原因: .article-layout の flex 子要素 article/aside が
         `min-width: auto` のため、内部のテーブル/長文 nowrap が
         viewport より広い場合に flex item 自体が viewport をはみ出していた。
   対策: 子要素に `min-width: 0; max-width: 100%` を付与し、
         テーブル等は article 内で `overflow-x: auto` で横スクロール化される。
   検証: 78/56/35/102/81 など overflow 100-1900px の記事すべてで
         max-width:100% 適用後 overflow=0 を確認済み。
   PC幅: .article-layout は grid(1fr 300px) で article は 1fr 制約のため、
         max-width:100% は無影響（むしろ防御的に安全）。 */
.article-layout > article,
.article-layout > aside {
  min-width: 0;
  max-width: 100%;
}


/* ヘッダーナビ アクティブ表示 */
.site-nav a.nav-active {
  font-weight: 700;
  color: #c46e3e !important;
  border-bottom: 2px solid #c46e3e;
}

/* ========== モバイル可読性改善（32号 2026-05-16）========== */
/* 設計：段落間 1.6em-1.7em / 見出し前 32-44px / line-height 1.95-2.0
   ボックス左右の閉塞感解消（負marginで横幅確保） */
@media (max-width: 768px) {
  body { font-size: 15px; }
  .article-body { padding: 0 2px; }
  .article-body h2 {
    font-size: 1.1em;
    margin: 44px 0 14px;
    padding: 10px 14px;
    line-height: 1.55;
  }
  .article-body h3 {
    font-size: 1.0em;
    margin: 32px 0 10px;
    line-height: 1.55;
  }
  .article-body h4 {
    font-size: 0.96em;
    margin: 24px 0 8px;
  }
  .article-body p { margin: 0 0 1.7em; line-height: 1.95; }
  .article-body ul, .article-body ol { margin: 0 0 1.7em 18px; }
  .article-body li { margin-bottom: 10px; line-height: 1.9; }
  .article-body blockquote { padding: 12px 14px; margin: 24px 0; line-height: 1.9; }
  .info-box { padding: 16px 16px; margin: 24px 0; line-height: 1.9; }
  /* ボックス系：左右の閉塞感解消＋上下余白UP */
  .lp-lead-box, .matome-box, .article-wakaru, .article-toc, .sources-box, .related-posts, .cross-blog-link, .main-cta, .sub-rec-box {
    padding-left: 16px;
    padding-right: 16px;
    margin-top: 28px;
    margin-bottom: 28px;
  }
}

@media (max-width: 480px) {
  body { font-size: 14.5px; }
  .article-body p { line-height: 1.95; }
  .article-body h2 { font-size: 1.2em; margin: 42px 0 12px; }
  .article-body h3 { font-size: 0.98em; margin: 28px 0 9px; }
}

/* ============================================
   2026-05-17 33号追加：UX横スクロール暴走防止
   問題：記事117の比較表をスワイプするとブログ全体が動く
   対策：document レベルで overflow-x:hidden / table は scroll-wrapper 内で個別スクロール
   ============================================ */

html, body {
  overflow-x: hidden;
  max-width: 100vw;
  position: relative;
}

main, .article-body, .article {
  max-width: 100%;
  overflow-x: hidden;
}

/* table は親 wrapper 内で横スクロール許可（document には伝播させない）*/
.comparison-table,
.comparison-table-wrap,
.scroll-wrapper,
.data-viz-box {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;  /* ← bodyへのスクロール伝播を遮断する核 */
}

/* table 内のセル幅暴走防止 */
.article-body table,
.comparison-table {
  max-width: 100%;
  word-wrap: break-word;
  word-break: break-word;
}

/* ============================================
   2026-05-17 33号追加：NG/OK早見表 モバイルカード化＋フォント統一
   記事02-resume の3列比較表（NG/採用側評価/OK改善例）
   みぃさん指摘「OK文字が大きい」「横スクロールが分かりにくい」対応
   ============================================ */

/* デスクトップ：全列フォント統一 */
.ng-ok-table th,
.ng-ok-table td {
  font-size: 0.95em;
  line-height: 1.65;
  vertical-align: top;
}

/* モバイル（768px以下）：縦並びカード化 */
@media (max-width: 768px) {
  .ng-ok-table-wrap {
    overflow-x: visible !important; /* 横スクロール禁止 */
  }
  .ng-ok-table {
    display: block;
    width: 100%;
  }
  .ng-ok-table thead {
    display: none;
  }
  .ng-ok-table tbody {
    display: block;
  }
  .ng-ok-table tr {
    display: block;
    margin-bottom: 16px;
    border: 1px solid #d6e6ff;
    border-radius: 10px;
    padding: 14px 16px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  }
  .ng-ok-table td {
    display: block !important;
    padding: 10px 0 !important;
    border: none !important;
    border-bottom: 1px dashed #eef2f7 !important;
    font-size: 0.95em !important;
    line-height: 1.6 !important;
  }
  /* 2026-05-18 34号追加：OK列だけ大きく見える問題対策
     全セルの子孫（span/strong/em等）も親tdのfont-sizeを継承し強制統一 */
  .ng-ok-table td span,
  .ng-ok-table td strong,
  .ng-ok-table td em,
  .ng-ok-table td b,
  .ng-ok-table td small {
    font-size: inherit !important;
    line-height: inherit !important;
  }
  .ng-ok-table td:last-child {
    border-bottom: none !important;
  }
  /* 各セルに役割ラベル追加 */
  .ng-ok-table td:nth-child(1)::before {
    content: "❌ NGパターン";
    display: block;
    font-weight: 700;
    color: #dc2626;
    font-size: 0.82em;
    margin-bottom: 6px;
    letter-spacing: 0.04em;
  }
  .ng-ok-table td:nth-child(2)::before {
    content: "👀 採用側の評価";
    display: block;
    font-weight: 700;
    color: #f59e0b;
    font-size: 0.82em;
    margin-bottom: 6px;
    letter-spacing: 0.04em;
  }
  .ng-ok-table td:nth-child(3)::before {
    content: "✅ OK改善例";
    display: block;
    font-weight: 700;
    color: #16a34a;
    font-size: 0.82em;
    margin-bottom: 6px;
    letter-spacing: 0.04em;
  }
}

/* ============================================
   2026-05-17 33号追加：折り畳み目次（details/summary方式・A案）
   全120記事に適用済。デフォルト開・ユーザー操作で開閉可能
   ============================================ */
/* stage55-fix: 旧トグル実装の display:flex と ::after '▾'（小さい三角の元凶）を削除 */
details.article-toc summary.toc-title {
  cursor: pointer;
  list-style: none;
  user-select: none;
}
details.article-toc summary.toc-title:hover {
  opacity: 0.78;
}
/* モバイル：閉じた状態のヒント */
@media (max-width: 768px) {
  details.article-toc:not([open]) {
    padding-bottom: 12px;
  }
}

/* モバイル：比較表のスクロールヒント */
@media (max-width: 768px) {
  .comparison-table-wrap,
  .scroll-wrapper {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    position: relative;
  }
  /* 比較表を含む article-body もモバイルでオーバーフロー遮断 */
  .article-body { overflow-x: hidden; }
}


/* ============================================
   2026-05-19 36号追加：NG/OK早見表 OK列「大きく見える」錯覚解消
   - 全列のメイン+例文ヒエラルキーを明確化
   - OK列の親td color削除→メインテキスト内strong限定で緑
   - 例文(.ok-example-text)はサイズ＆色で控えめ
   ============================================ */
.ng-ok-table .ok-example-text {
  display: inline-block;
  margin-top: 4px;
  font-size: 0.88em !important;
  color: #6b7280 !important;
  font-weight: 400 !important;
  line-height: 1.55 !important;
}
@media (max-width: 768px) {
  .ng-ok-table .ok-example-text {
    font-size: 0.85em !important;
    color: #6b7280 !important;
  }
  /* OK列の親tdカラー強制クリア（インラインstyleがあっても） */
  .ng-ok-table td:nth-child(3) {
    color: var(--text, #1a1a1a) !important;
  }
}


/* ============================================
   2026-05-19 36号追加：左ボーダーライン全削除（みぃさん指示）
   全インラインstyleの border-left を!importantで上書き
   ※ .matome-box は別途パターンCで全周border統一するため除外
   ============================================ */
.article-body div[style*="border-left"]:not(.matome-box):not(.matome-box *),
.lp-lead-box,
.article-wakaru,
.lp-lead-points,
.matome-tsuki,
.tsuki-box,
.affiliate-note,
.quote-box {
  border-left: none !important;
}
.article-body blockquote {
  border-left: none !important;
  background: #f8fafc;
  padding: 14px 18px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
}
/* h2の左border（archive風）も無効化 */
.article-body h2[style*="border-left"] {
  border-left: none !important;
}


/* ============================================
   2026-05-19 36号追加：紺色CTAボックス（味方に）モバイル可読性
   タイトル/注記の文字サイズをclamp()で自動調整
   ============================================ */
.cta-mikata-box {
  padding: 22px 18px !important;
}
.cta-mikata-box > p:first-of-type {
  font-size: clamp(0.98em, 3.6vw, 1.16em) !important;
  line-height: 1.5 !important;
}
@media (max-width: 480px) {
  /* CTAボタン用のflexコンテナ：モバイル時は縦並びで折り返さない */
  div[style*="display:flex"][style*="flex-wrap:wrap"] > a[style*="min-width:220px"] {
    min-width: 0 !important;
    width: 100% !important;
  }
}


/* ============================================
   2026-05-19 36号追加：スマホ最適化（余白・行間・フォントサイズ）
   ============================================ */
@media (max-width: 600px) {
  /* 本文の読みやすさ：行間広げ・段落余白圧縮 */
  .article-body { font-size: 15px; line-height: 1.9; }
  .article-body p { margin: 0 0 1.25em; }
  .article-body h2 {
    font-size: 1.18em !important;
    line-height: 1.45;
    padding: 11px 14px;
    margin: 32px 0 14px;
  }
  .article-body h3 {
    font-size: 1.06em !important;
    line-height: 1.5;
    margin: 26px 0 10px;
    padding: 8px 12px;
  }
  .article-body h4 {
    font-size: 1.0em !important;
    margin: 22px 0 8px;
  }
  /* リスト：余白圧縮 */
  .article-body ul,
  .article-body ol {
    margin: 0 0 1.2em 0;
    padding-left: 1.4em;
  }
  .article-body li {
    margin: 0 0 0.55em;
    line-height: 1.8;
    font-size: 0.96em;
  }
  /* 結論ボックスのモバイル余白圧縮 */
  .lp-lead-box {
    padding: 1.2em 1em !important;
    margin: 1.5em 0 !important;
  }
  .lp-lead-box > p:first-of-type {
    font-size: 1.05em !important;
    line-height: 1.65 !important;
  }
  .lp-lead-box ul {
    padding-left: 1.3em !important;
  }
  .lp-lead-box li {
    margin-bottom: 0.7em !important;
    font-size: 0.93em !important;
  }
  /* わかること青枠の余白圧縮 */
  .article-wakaru {
    padding: 14px 14px !important;
    margin: 0 0 18px !important;
  }
  .article-wakaru li {
    font-size: 0.88em !important;
    line-height: 1.7 !important;
    margin-bottom: 6px !important;
  }
  /* 目次（article-toc）モバイル余白圧縮 */
  .article-toc {
    padding: 14px 14px !important;
  }
  .article-toc li {
    font-size: 0.9em !important;
    margin-bottom: 6px !important;
    line-height: 1.65 !important;
  }
  /* まとめボックス（薄ミント）モバイル余白圧縮 */
  .matome-box {
    padding: 1.3em 1.1em !important;
    margin: 1.8em 0 !important;
  }
  .matome-box h2 {
    font-size: 1.08em !important;
  }
  .matome-box li {
    font-size: 0.93em !important;
    line-height: 1.7 !important;
  }
  /* FAQ：モバイル余白圧縮 */
  .faq-item {
    padding: 14px 14px !important;
    margin-bottom: 10px !important;
  }
  .faq-q {
    font-size: 0.95em !important;
    line-height: 1.65 !important;
  }
  .faq-a {
    font-size: 0.92em !important;
    line-height: 1.85 !important;
  }
  /* 表のレスポンシブ：横スクロール可 */
  .article-body table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    font-size: 0.9em;
  }
  /* blockquote モバイル */
  .article-body blockquote {
    padding: 12px 14px !important;
    margin: 18px 0 !important;
    font-size: 0.93em !important;
  }
}


/* ============================================
   2026-05-19 36号追加：横スクロール表ヒント注釈
   ============================================ */
.scroll-table-hint {
  font-size: 0.85em;
  color: #888;
  text-align: center;
  margin: 0.6em 0 0.3em;
  font-style: italic;
}
/* PCでは非表示（モバイルだけ表示） */
@media (min-width: 769px) {
  .scroll-table-hint {
    display: none;
  }
}


/* ============================================
   2026-05-20 36号追加：サイドバー新ウィジェット
   ============================================ */
.agent-widget {
  background: linear-gradient(135deg, #fff8e1 0%, #fff5e1 100%) !important;
  border: 1px solid #f5dfa6 !important;
}
.agent-widget-desc {
  font-size: 0.84em;
  color: #5c3a00;
  line-height: 1.7;
  margin: 0 0 10px;
}
.agent-widget-btn {
  display: inline-block;
  background: #ff6f00;
  color: #fff !important;
  font-weight: 700;
  font-size: 0.88em;
  padding: 10px 14px;
  border-radius: 8px;
  text-decoration: none;
  text-align: center;
  width: 100%;
  box-shadow: 0 2px 6px rgba(255,111,0,0.25);
  box-sizing: border-box;
}
.agent-widget-btn:hover {
  background: #e65f00;
  text-decoration: none;
}
.contact-widget {
  background: #f0f7ff !important;
  border: 1px solid #b5dde0 !important;
}
.contact-widget-desc {
  font-size: 0.84em;
  color: #3a6e7a;
  line-height: 1.7;
  margin: 0 0 10px;
}
.contact-widget-btn {
  display: inline-block;
  background: #1d6e7e;
  color: #fff !important;
  font-weight: 700;
  font-size: 0.88em;
  padding: 10px 14px;
  border-radius: 8px;
  text-decoration: none;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
}
.contact-widget-btn:hover {
  background: #155a68;
  text-decoration: none;
}

/* ===== 番号付きリスト（①②③）の disc マーカー「・」を削除 stage58 ===== */
.article-body ul.numbered-list {
  list-style: none !important;
  padding-left: 0.3em;
}
.article-body ul.numbered-list li {
  padding-left: 0;
}

/* ===== CTAボタン：モバイルで縦並び＋横幅フル（押しやすく）stage57 ===== */
@media (max-width: 768px) {
  .main-cta > div[style*="display:flex"],
  .main-cta > div[style*="display: flex"] {
    flex-direction: column !important;
    align-items: stretch !important;
  }
  .main-cta > div[style*="display:flex"] > a,
  .main-cta > div[style*="display: flex"] > a {
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }
}

/* ===== 見出し・CTAの日本語改行ルール統一 stage57/60/61 =====
   word-break: auto-phrase（iOS17+/Chrome119+：文節単位で自然改行）
   → 非対応ブラウザは keep-all にフォールバック（CJKを語中で割らない）
   → 長い見出しのはみ出し保険に overflow-wrap: anywhere */
.main-cta p,
.main-cta a,
.article-body h2,
.article-body h3,
.article-body h4,
.lp-lead-box p,
.article-wakaru,
.pattern-title,
.ng-ok-title,
.cta-title {
  word-break: keep-all;        /* フォールバック（古いブラウザ） */
  word-break: auto-phrase;     /* 対応ブラウザ：文節単位で自然改行 */
  overflow-wrap: anywhere;     /* 長語のはみ出し保険 */
  line-break: strict;
}

/* ===== NG/OKカード（NG例・OK例・失敗例・成功例の視覚区別） stage48 2026-05-20 ===== */
.ng-ok-box {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 1em 1.2em;
  margin: 1em 0;
}
.ng-ok-title {
  font-size: 1.05em;
  font-weight: bold;
  margin: 0 0 0.6em 0;
  padding: 0 0 0.4em;
  border-bottom: 1px dashed #e0e0e0;
  line-height: 1.5;
  background: none;
  border-left: none;
}
.ng-title { color: #dc2626; }
.ok-title { color: #16a34a; }
.ng-ok-box p { margin: 0.5em 0; line-height: 1.75; font-size: 0.97em; color: #1f2937; }
.ng-ok-box p:first-of-type { margin-top: 0; }
.ng-ok-box p:last-child { margin-bottom: 0; }
@media (max-width: 600px) {
  .ng-ok-box { padding: 0.9em 1em; }
  .ng-ok-title { font-size: 1em; }
  .ng-ok-box p { font-size: 0.95em; line-height: 1.85; }
}

/* ===== パターンカード（パターン/タイプ列挙のカード化） 2026-05-20 追加 ===== */
/* stage43 2026-05-20: 左に紺色アクセント追加（視認性UP・matome-boxとも差別化） */
.pattern-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-left: 3px solid #1a3a5c;
  border-radius: 8px;
  padding: 1.2em 1.2em 1.2em 1.3em;
  margin: 1em 0;
}
.pattern-card .pattern-title {
  font-size: 1.05em;
  font-weight: bold;
  margin: 0 0 0.7em;
  padding: 0 0 0.5em;
  border-bottom: 1px dashed #e0e0e0;
  color: #1a1a1a;
  line-height: 1.5;
}
.pattern-card p {
  margin: 0.5em 0;
  line-height: 1.75;
  font-size: 0.97em;
  color: #1f2937;
}
.pattern-card p:first-of-type { margin-top: 0; }
.pattern-card p:last-child { margin-bottom: 0; }
/* h3 を中見出しとして使う場合（h3列挙型のカード化）*/
.pattern-card > h3 {
  font-size: 1.08em;
  font-weight: bold;
  margin: 0 0 0.7em;
  padding: 0 0 0.5em;
  border-bottom: 1px dashed #e0e0e0;
  color: #1a1a1a;
  line-height: 1.5;
  background: none;
  border-left: none;
}
@media (max-width: 600px) {
  .pattern-card { padding: 1em 0.95em; }
  .pattern-card .pattern-title { font-size: 1em; }
  .pattern-card > h3 { font-size: 1.02em; }
  .pattern-card p { font-size: 0.95em; line-height: 1.85; }
}
