/* ==========================================================
   テック比較ジャーナル ─ AIセクション共通スタイル
   インクブラック基調 ＋ セクション副色（AI：バイオレット）
   明朝（Noto Serif JP）× 英字ジオメトリックサンス（Plus Jakarta Sans）
   ========================================================== */

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

:root {
  /* ベース色 */
  --ink:           #0E1116;
  --ink-2:         #1C2230;
  --body:          #2A2F3A;
  --mute:          #6B7280;
  --line:          #E5E3DC;
  --line-strong:   #C9C5B8;
  --paper:         #FFFFFF;
  --bg:            #F6F4EE;
  --tint:          #EFEDE5;
  --highlight:     #FFF3A8;
  --gold:          #B8893B;
  /* 旧変数のエイリアス（既存コードとの後方互換） */
  --navy:          #0E1116;
  --gray:          #2A2F3A;
  --gray-light:    #6B7280;
  --shadow:        0 1px 2px rgba(14,17,22,0.06);
  --shadow-md:     0 6px 18px rgba(14,17,22,0.10);

  /* セクション副色（このサイトはAI＝バイオレット） */
  --section:       #5B4FE9;
  --section-dark:  #4538C7;
  --section-soft:  #EEEBFF;
  --accent:        #5B4FE9;       /* 後方互換 */
  --accent-dark:   #4538C7;
  --tint-section:  #EEEBFF;

  --f-serif: 'Noto Serif JP', 'Yu Mincho', 'Hiragino Mincho ProN', serif;
  --f-sans:  'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Hiragino Sans', sans-serif;
  --f-en:    'Plus Jakarta Sans', -apple-system, sans-serif;
}

[data-section="ai"]     { --section:#5B4FE9; --section-dark:#4538C7; --section-soft:#EEEBFF; --accent:#5B4FE9; --accent-dark:#4538C7; }
[data-section="saas"]   { --section:#0F7C6C; --section-dark:#0A5C4F; --section-soft:#E2F1ED; --accent:#0F7C6C; --accent-dark:#0A5C4F; }
[data-section="gadget"] { --section:#B45B2E; --section-dark:#8A4220; --section-soft:#F8ECDF; --accent:#B45B2E; --accent-dark:#8A4220; }

body {
  font-family: var(--f-sans);
  background: var(--bg);
  color: var(--body);
  font-size: 16px;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.label { font-family: var(--f-en); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: 11.5px; color: var(--ink); }
.caption { font-size: 13px; color: var(--mute); }
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ===== HEADER（共通：黒バー） ===== */
.gheader { background: var(--ink); color: #fff; position: sticky; top: 0; z-index: 200; }
.gheader-top { max-width: 1180px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; height: 62px; gap: 22px; }
.glogo {
  font-family: var(--f-serif); font-weight: 900; font-size: 21px; letter-spacing: .03em;
  text-decoration: none; color: #fff; line-height: 1; display: flex; align-items: baseline; gap: 10px;
  white-space: nowrap; flex-shrink: 0;
}
.glogo .en { font-family: var(--f-en); font-weight: 800; font-size: 13px; letter-spacing: .14em; color: #B8BCC4; padding-left: 10px; border-left: 1px solid #2A2F3A; }
.gheader-search { flex: 1; max-width: 360px; position: relative; }
.gheader-search input {
  width: 100%; padding: 8px 14px 8px 36px; border: 1px solid #2A2F3A; background: #1C2230; color: #fff;
  font-family: inherit; font-size: 13px; outline: none; transition: border-color .15s, background .15s;
}
.gheader-search input::placeholder { color: #8893A8; }
.gheader-search input:focus { border-color: var(--section); background: #0C141F; }
.gheader-search .icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); opacity: .6; font-size: 13px; pointer-events: none; }
.gnav { display: flex; gap: 22px; margin-left: auto; }
.gnav a {
  font-family: var(--f-en); font-weight: 700; letter-spacing: .12em; font-size: 12.5px; color: #B8BCC4;
  text-decoration: none; padding: 22px 0; border-bottom: 3px solid transparent; transition: color .15s, border-color .15s;
}
.gnav a:hover { color: #fff; }
.gnav a.active { color: #fff; border-bottom-color: var(--section); }
.gnav .ja { font-family: var(--f-sans); font-weight: 500; letter-spacing: .04em; font-size: 12.5px; color: #B8BCC4; margin-left: 6px; }

/* ===== BRAND HERO（トップ用） ===== */
.brand-hero { background: var(--ink); color: #fff; padding: 60px 24px 70px; position: relative; overflow: hidden; }
.brand-hero::before { content: ""; position: absolute; inset: 18px; border: 1px solid rgba(255,255,255,.12); pointer-events: none; }
.brand-hero-inner { max-width: 1180px; margin: 0 auto; position: relative; }
.kicker { display: inline-block; font-family: var(--f-en); font-weight: 700; letter-spacing: .2em; font-size: 11px; color: #B8BCC4; border-top: 1px solid rgba(255,255,255,.3); border-bottom: 1px solid rgba(255,255,255,.3); padding: 5px 0; margin-bottom: 22px; }
.brand-hero h1 { font-family: var(--f-serif); font-weight: 900; color: #fff; font-size: clamp(28px, 4.2vw, 46px); line-height: 1.4; letter-spacing: .01em; margin-bottom: 20px; max-width: 920px; }
.brand-hero h1 em { font-style: normal; background: linear-gradient(transparent 62%, var(--section) 62%, var(--section) 86%, transparent 86%); padding: 0 6px; }
.brand-hero p { color: #C7CFDC; font-size: 15.5px; max-width: 720px; }
.brand-hero-facts { display: flex; gap: 32px; margin-top: 28px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.15); flex-wrap: wrap; }
.brand-hero-fact { font-size: 13px; color: #B8BCC4; display: flex; align-items: baseline; gap: 8px; }
.brand-hero-fact b { font-family: var(--f-en); color: #fff; font-size: 22px; font-weight: 800; }

/* ===== セクション見出し ===== */
.section-head {
  max-width: 1180px; margin: 56px auto 20px; padding: 0 24px 10px;
  display: flex; justify-content: space-between; align-items: flex-end; gap: 16px;
  border-bottom: 2px solid var(--ink);
}
.section-head h2 { font-family: var(--f-serif); font-weight: 700; color: var(--ink); font-size: 24px; line-height: 1.4; display: flex; align-items: center; gap: 12px; }
.section-head h2::before { content: ""; display: inline-block; width: 6px; height: 22px; background: var(--ink); }
.section-head .sub, .section-head .more { font-family: var(--f-en); font-size: 12px; letter-spacing: .14em; color: var(--mute); text-decoration: none; }
.section-head .more:hover { color: var(--ink); }

/* ===== 編集部の信頼ボックス ===== */
.editor-note {
  background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--ink);
  padding: 14px 18px; font-size: 13px; color: var(--body); margin-bottom: 22px; line-height: 1.85;
}
.editor-note strong { color: var(--ink); }
.editor-note .tag {
  display: inline-block; background: var(--ink); color: #fff; font-family: var(--f-en); font-size: 10.5px;
  font-weight: 800; letter-spacing: .14em; padding: 3px 9px; margin-right: 8px;
}

/* ===== 結論ボックス ===== */
.verdict {
  background: var(--paper); border: 1px solid var(--line); border-top: 5px solid var(--section);
  padding: 26px 30px; position: relative; box-shadow: var(--shadow); margin-bottom: 18px;
}
.verdict::before { content: ""; position: absolute; inset: 4px; border: 1px solid var(--line); pointer-events: none; }
.verdict__label { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; color: var(--mute); font-family: var(--f-en); font-size: 11.5px; letter-spacing: .14em; flex-wrap: wrap; gap: 8px; }
.verdict__label .tag { color: var(--section); font-weight: 800; }
.verdict__title { font-family: var(--f-serif); font-weight: 700; font-size: 20px; line-height: 1.55; color: var(--ink); margin-bottom: 12px; }
.verdict__points { list-style: none; }
.verdict__points li { padding: 9px 0 9px 26px; border-top: 1px dashed var(--line); position: relative; font-size: 14px; line-height: 1.8; }
.verdict__points li::before { content: "→"; position: absolute; left: 4px; color: var(--section); font-weight: 700; font-family: var(--f-serif); }
.verdict__bottom { margin-top: 14px; display: flex; justify-content: space-between; font-family: var(--f-en); font-size: 11.5px; letter-spacing: .1em; color: var(--mute); }
.verdict__bottom a { color: var(--section); font-weight: 700; text-decoration: none; }

/* ===== IF-THEN テーブル ===== */
.if-then { width: 100%; border-collapse: collapse; background: var(--paper); border: 1px solid var(--line); }
.if-then th { background: var(--ink); color: #fff; text-align: left; padding: 12px 18px; font-family: var(--f-en); font-size: 11.5px; font-weight: 800; letter-spacing: .12em; }
.if-then td { padding: 16px 18px; border-bottom: 1px solid var(--line); vertical-align: top; font-size: 14px; line-height: 1.75; }
.if-then tr:last-child td { border-bottom: none; }
.if-then td b { display: inline-block; background: var(--highlight); padding: 0 6px; font-weight: 700; margin-right: 6px; font-style: normal; }
.if-then .pick { font-family: var(--f-serif); font-weight: 700; color: var(--section); font-size: 17px; white-space: nowrap; }

/* ===== VS HERO（深掘り比較） ===== */
.vs-hero { background: var(--ink); color: #fff; padding: 56px 24px; position: relative; overflow: hidden; }
.vs-hero::before { content: ""; position: absolute; inset: 16px; border: 1px solid rgba(255,255,255,.15); pointer-events: none; }
.vs-hero-inner { max-width: 980px; margin: 0 auto; text-align: center; position: relative; }
.vs-hero__kicker { display: inline-block; font-family: var(--f-en); font-weight: 800; letter-spacing: .2em; font-size: 11px; color: var(--section); padding: 4px 14px; border: 1px solid var(--section); margin-bottom: 20px; }
.vs-hero__match { display: grid; grid-template-columns: 1fr auto 1fr; gap: 30px; align-items: center; margin: 14px auto 16px; max-width: 760px; }
.vs-hero__side h3 { font-family: var(--f-en); font-weight: 800; font-size: clamp(26px, 4vw, 46px); color: #fff; letter-spacing: .02em; }
.vs-hero__side .ja { font-family: var(--f-sans); font-size: 13px; color: #B8BCC4; margin-top: 4px; }
.vs-hero__vs { font-family: var(--f-serif); font-style: italic; font-weight: 700; font-size: clamp(26px, 4vw, 42px); color: var(--section); }
.vs-hero__sub { font-family: var(--f-serif); font-size: 20px; color: #fff; margin-top: 12px; line-height: 1.55; }
.vs-hero__cta { display: inline-block; margin-top: 20px; padding: 12px 30px; font-family: var(--f-en); font-weight: 700; letter-spacing: .12em; font-size: 13px; background: var(--section); color: #fff; text-decoration: none; }

/* ===== ランキング（大数字・明朝） ===== */
.ranking-list { background: var(--paper); border: 1px solid var(--line); margin: 0 auto; max-width: 1180px; }
.rank-item {
  display: grid; grid-template-columns: 92px 1fr auto; gap: 22px; align-items: center;
  padding: 18px 26px; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit;
  transition: background .15s;
}
.rank-item:last-child { border-bottom: none; }
.rank-item:hover { background: var(--tint); }
.rank-item:hover .rank-name { color: var(--section); }
.rank-num { font-family: var(--f-serif); font-weight: 900; color: var(--ink); font-size: 54px; line-height: 1; text-align: center; }
.rank-item:nth-child(1) .rank-num,
.rank-item:nth-child(2) .rank-num,
.rank-item:nth-child(3) .rank-num { color: var(--section); }
.rank-badge, .rank-label { display: none; }  /* 旧バッジ非表示・明朝大数字に統一 */
.rank-main { min-width: 0; }
.rank-title-row { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 4px; }
.rank-name { font-family: var(--f-serif); font-weight: 700; font-size: 19px; color: var(--ink); line-height: 1.5; }
.rank-cat { font-family: var(--f-en); font-size: 10.5px; letter-spacing: .12em; color: var(--mute); border: 1px solid var(--line-strong); padding: 1px 7px; }
.rank-desc { font-size: 13px; color: var(--body); line-height: 1.8; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rank-stars { font-family: var(--f-en); font-size: 12px; color: var(--gold); margin-top: 6px; letter-spacing: 1px; }
.rank-stars .score { color: var(--ink); font-weight: 700; margin-left: 8px; letter-spacing: 0; }
.rank-cta { font-family: var(--f-en); font-size: 11px; letter-spacing: .14em; color: var(--mute); white-space: nowrap; }
.rank-cta span { display: inline-block; padding: 7px 14px; border: 1px solid var(--ink); color: var(--ink); }
.rank-item:hover .rank-cta span { background: var(--ink); color: #fff; }

/* ===== 比較表 ===== */
.compare-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 1180px; margin: 0 auto; }
.compare-table { width: 100%; min-width: 640px; border-collapse: collapse; background: var(--paper); border: 1px solid var(--line); font-size: 13.5px; }
.compare-table thead th { background: var(--ink); color: #fff; padding: 12px 14px; font-family: var(--f-en); font-size: 11.5px; font-weight: 800; letter-spacing: .12em; text-align: center; white-space: nowrap; }
.compare-table thead th:first-child { text-align: left; }
.compare-table tbody td { padding: 13px 14px; border-bottom: 1px solid var(--line); text-align: center; color: var(--body); }
.compare-table tbody tr:last-child td { border-bottom: none; }
.compare-table tbody tr:nth-child(even) { background: #FBF9F4; }
.compare-table tbody tr:hover { background: var(--section-soft); }
.compare-table .c-name { text-align: left; font-family: var(--f-serif); font-weight: 700; color: var(--ink); white-space: nowrap; }
.compare-table .c-name a { color: var(--ink); text-decoration: none; }
.compare-table .c-name a:hover { color: var(--section); }
.compare-table .c-rank { display: inline-block; width: 22px; height: 22px; line-height: 22px; background: var(--ink); color: #fff; text-align: center; font-family: var(--f-serif); font-weight: 700; font-size: 12px; margin-right: 8px; }
.yes { color: #2E7D4F; font-weight: 700; }
.no  { color: var(--mute); }
.c-score { color: var(--gold); letter-spacing: 1px; }
.c-cta { background: var(--ink); color: #fff !important; text-decoration: none; padding: 5px 12px; font-family: var(--f-en); font-weight: 700; font-size: 11.5px; letter-spacing: .08em; white-space: nowrap; }
.c-cta:hover { background: var(--section); }

/* ===== カテゴリタブ ===== */
.categories-wrap { position: sticky; top: 62px; background: var(--bg); z-index: 100; padding: 14px 24px 12px; border-bottom: 1px solid var(--line); margin: 0 auto; max-width: 1180px; }
.categories { display: flex; gap: 6px; flex-wrap: wrap; }
.cat-btn {
  padding: 6px 14px; border: 1px solid var(--line-strong); background: var(--paper);
  font-family: var(--f-sans); font-size: 12.5px; color: var(--body); cursor: pointer; transition: all .15s;
  white-space: nowrap; font-weight: 500;
}
.cat-btn:hover { border-color: var(--ink); color: var(--ink); }
.cat-btn.active { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ===== コンテンツ+サイドバー ===== */
.main { max-width: 1180px; margin: 0 auto; padding: 0 24px 64px; }
.content-wrap { display: grid; grid-template-columns: 1fr 290px; gap: 30px; align-items: start; }
.results-info { font-size: 12.5px; color: var(--mute); margin-bottom: 14px; font-weight: 500; font-family: var(--f-en); letter-spacing: .04em; }
.results-info span { color: var(--section); font-weight: 700; }

/* ===== ツールグリッド（40件） ===== */
.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(248px, 1fr)); gap: 0; background: var(--paper); border: 1px solid var(--line); overflow: hidden; }
.tool-card { padding: 18px 18px 16px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background .15s; text-decoration: none; color: inherit; display: flex; flex-direction: column; position: relative; }
.tool-card:hover { background: #FBF9F4; }
.tool-card:hover .tool-name { color: var(--section); }
.tool-header { display: flex; align-items: center; gap: 10px; margin-bottom: 9px; }
.tool-mark { width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; font-family: var(--f-en); font-size: 14px; font-weight: 800; color: #fff; flex-shrink: 0; }
.tool-meta { flex: 1; min-width: 0; }
.tool-name { font-family: var(--f-serif); font-weight: 700; font-size: 15px; color: var(--ink); line-height: 1.45; transition: color .15s; }
.tool-category-label { font-family: var(--f-en); font-size: 10px; letter-spacing: .1em; color: var(--mute); margin-top: 2px; }
.tool-badge { padding: 2px 7px; font-family: var(--f-en); font-size: 10px; font-weight: 800; letter-spacing: .08em; white-space: nowrap; flex-shrink: 0; align-self: flex-start; }
.badge-hot  { background: var(--section); color: #fff; }
.badge-free { background: #2E7D4F; color: #fff; }
.badge-new  { background: var(--ink-2); color: #fff; }
.badge-rec  { background: var(--gold); color: #fff; }
.tool-desc { font-size: 12.5px; color: var(--body); line-height: 1.8; margin-bottom: 11px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; flex: 1; }
.tool-tags { display: flex; gap: 5px; flex-wrap: wrap; padding-top: 10px; border-top: 1px dotted var(--line); }
.tool-tag { color: var(--mute); font-size: 10.5px; font-family: var(--f-en); letter-spacing: .04em; }
.tool-tag::before { content: '#'; color: var(--mute); }
.tool-arrow { position: absolute; right: 14px; bottom: 14px; font-family: var(--f-serif); font-size: 14px; color: var(--mute); transition: transform .15s, color .15s; }
.tool-card:hover .tool-arrow { color: var(--section); transform: translateX(3px); }

/* ===== 広告枠 ===== */
.ad-zone { max-width: 1180px; margin: 24px auto 0; padding: 0 24px; }
.ad-banner, .ad-inline, .ad-article, .sidebar-ad {
  background: var(--paper); border: 1px dashed var(--line-strong); color: var(--mute);
  font-family: var(--f-en); font-size: 11px; letter-spacing: .1em;
  display: flex; align-items: center; justify-content: center; text-align: center;
}
.ad-banner { min-height: 90px; }
.ad-inline { grid-column: 1 / -1; min-height: 90px; }
.ad-article { min-height: 100px; margin: 24px 0; }
.ad-label { font-family: var(--f-en); font-size: 10px; letter-spacing: .2em; color: var(--mute); text-align: center; margin-top: 6px; }
.no-results { grid-column: 1 / -1; padding: 52px 24px; text-align: center; color: var(--mute); font-size: 14px; line-height: 2; }

/* ===== サイドバー ===== */
.sidebar { position: sticky; top: 132px; }
.sidebar-ad { min-height: 250px; margin-bottom: 16px; }
.sidebar-widget { background: var(--paper); border: 1px solid var(--line); margin-bottom: 16px; overflow: hidden; }
.widget-title { font-family: var(--f-en); font-weight: 800; letter-spacing: .12em; font-size: 11.5px; color: #fff; background: var(--ink); padding: 10px 16px; }
.widget-body { padding: 6px 16px 10px; }
.widget-list { list-style: none; }
.widget-list li { padding: 8px 0; border-bottom: 1px dotted var(--line); font-size: 13px; }
.widget-list li:last-child { border-bottom: none; }
.widget-list a { color: var(--body); text-decoration: none; display: flex; align-items: center; justify-content: space-between; transition: color .15s; }
.widget-list a:hover { color: var(--section); }
.widget-count { font-family: var(--f-en); background: var(--tint); padding: 1px 7px; font-size: 11px; color: var(--mute); }
.mini-rank { list-style: none; }
.mini-rank li { display: flex; gap: 9px; padding: 9px 0; border-bottom: 1px dotted var(--line); align-items: center; }
.mini-rank li:last-child { border-bottom: none; }
.mini-rank .m-num { flex-shrink: 0; font-family: var(--f-serif); font-weight: 900; color: var(--ink); font-size: 22px; width: 24px; text-align: center; line-height: 1; }
.mini-rank li:nth-child(1) .m-num,
.mini-rank li:nth-child(2) .m-num,
.mini-rank li:nth-child(3) .m-num { color: var(--section); }
.mini-rank a { font-family: var(--f-serif); font-size: 13px; color: var(--ink); font-weight: 500; text-decoration: none; }
.mini-rank a:hover { color: var(--section); }

/* ===== 編集部メタバー（E-E-A-T） ===== */
.meta-bar { background: var(--paper); border: 1px solid var(--line); padding: 16px 22px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; max-width: 1180px; margin: 0 auto; }
.meta-bar__avatar { width: 50px; height: 50px; border-radius: 50%; background: var(--tint); display: flex; align-items: center; justify-content: center; font-family: var(--f-serif); font-weight: 700; font-size: 20px; color: var(--ink); flex-shrink: 0; }
.meta-bar__name { font-family: var(--f-serif); font-weight: 700; font-size: 15.5px; color: var(--ink); }
.meta-bar__bio { font-size: 12.5px; color: var(--mute); margin-top: 2px; }
.meta-bar__status { margin-left: auto; display: flex; align-items: center; gap: 8px; font-family: var(--f-en); font-size: 11.5px; letter-spacing: .12em; color: var(--mute); }
.meta-bar__status .dot { width: 8px; height: 8px; background: #2E7D4F; border-radius: 50%; box-shadow: 0 0 0 3px #D5EBD9; }

/* ===== FOOTER ===== */
.gfooter { background: var(--ink); color: #B8BCC4; padding: 52px 24px 26px; margin-top: 56px; }
.gfooter-inner { max-width: 1180px; margin: 0 auto; }
.gfooter-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 36px; padding-bottom: 24px; border-bottom: 1px solid #2A2F3A; }
.gfooter-brand h4 { font-family: var(--f-serif); font-weight: 900; font-size: 20px; color: #fff; margin-bottom: 10px; }
.gfooter-brand p { font-size: 12.5px; line-height: 1.85; max-width: 340px; }
.gfooter-col h5 { font-family: var(--f-en); font-weight: 800; font-size: 11.5px; letter-spacing: .16em; color: #fff; margin-bottom: 12px; }
.gfooter-col ul { list-style: none; }
.gfooter-col li { margin-bottom: 8px; }
.gfooter-col a { font-size: 12.5px; text-decoration: none; color: #B8BCC4; }
.gfooter-col a:hover { color: #fff; }
.gfooter-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; padding-top: 18px; }
.gfooter-bottom p { font-size: 11.5px; color: #707C92; }

/* ==========================================================
   固定ページ・記事ページ・ツール詳細ページ
   ========================================================== */
.page { max-width: 1180px; margin: 0 auto; padding: 24px 24px 60px; }
.page-narrow { max-width: 780px; }
.breadcrumb { font-family: var(--f-en); font-size: 11.5px; letter-spacing: .08em; color: var(--mute); margin-bottom: 18px; }
.breadcrumb a { color: var(--body); text-decoration: none; }
.breadcrumb a:hover { color: var(--section); }

/* ツール詳細：記事ヘッダー */
.tool-hero {
  background: var(--paper); border: 1px solid var(--line); border-top: 5px solid var(--section);
  padding: 28px 32px; margin-bottom: 22px; position: relative; box-shadow: var(--shadow);
}
.tool-hero::before { content: ""; position: absolute; inset: 4px; border: 1px solid var(--line); pointer-events: none; }
.tool-hero .th-cat { font-family: var(--f-en); font-weight: 800; font-size: 11px; letter-spacing: .14em; color: var(--section); margin-bottom: 10px; }
.tool-hero h1 { font-family: var(--f-serif); font-weight: 700; font-size: 26px; line-height: 1.5; color: var(--ink); margin-bottom: 12px; }
.tool-hero .th-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 14px; padding-top: 14px; border-top: 1px dotted var(--line); }
.th-mark { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; font-family: var(--f-en); color: #fff; font-weight: 800; font-size: 18px; flex-shrink: 0; }
.th-score { font-size: 12px; color: var(--mute); }
.th-score .stars { color: var(--gold); letter-spacing: 1px; }
.th-score b { color: var(--ink); font-family: var(--f-en); font-size: 15px; }
.th-badge { background: var(--ink); color: #fff; font-family: var(--f-en); font-size: 10.5px; font-weight: 800; letter-spacing: .12em; padding: 4px 9px; }

/* 記事本文 2カラム */
.article-layout { display: grid; grid-template-columns: 1fr 290px; gap: 30px; align-items: start; }
.page-body { background: var(--paper); border: 1px solid var(--line); padding: 32px 38px; }
.page-body h2 { font-family: var(--f-serif); font-weight: 700; font-size: 20px; color: var(--ink); margin: 32px 0 12px; padding: 6px 0 8px 14px; border-left: 5px solid var(--section); background: var(--tint); }
.page-body h2:first-child { margin-top: 0; }
.page-body h3 { font-family: var(--f-sans); font-weight: 700; font-size: 16px; color: var(--ink); margin: 24px 0 8px; padding-bottom: 6px; border-bottom: 1px dotted var(--line); }
.page-body p { margin-bottom: 14px; font-size: 14.5px; line-height: 1.95; }
.page-body ul, .page-body ol { margin: 0 0 16px 22px; }
.page-body li { margin-bottom: 6px; line-height: 1.85; }
.page-body a { color: var(--section); }
.page-body table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 13.5px; }
.page-body th, .page-body td { border: 1px solid var(--line); padding: 9px 12px; text-align: left; }
.page-body th { background: var(--ink); color: #fff; font-family: var(--f-en); font-size: 11.5px; letter-spacing: .08em; font-weight: 800; }
.page-body .note { background: var(--tint); border-left: 4px solid var(--ink); padding: 12px 16px; margin: 16px 0; font-size: 13.5px; }

/* CTAボックス */
.cta-box { background: var(--ink); padding: 26px 28px; text-align: center; margin: 28px 0; position: relative; }
.cta-box::before { content: ""; position: absolute; inset: 5px; border: 1px solid rgba(255,255,255,.15); pointer-events: none; }
.cta-box p { color: #C7CFDC; font-size: 13.5px; margin-bottom: 14px; position: relative; }
.cta-btn { display: inline-block; background: var(--section); color: #fff; text-decoration: none; padding: 13px 32px; font-family: var(--f-en); font-weight: 800; letter-spacing: .1em; font-size: 13.5px; position: relative; transition: background .15s; }
.cta-btn:hover { background: var(--section-dark); }

/* 記事一覧カード（ブログ用） */
.article-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.article-card { background: var(--paper); border: 1px solid var(--line); padding: 22px; text-decoration: none; color: inherit; transition: all .15s; display: flex; flex-direction: column; position: relative; }
.article-card::before { content: ""; position: absolute; inset: 4px; border: 1px solid var(--line); pointer-events: none; }
.article-card:hover { box-shadow: var(--shadow-md); border-color: var(--ink); }
.article-card .a-cat { font-family: var(--f-en); font-size: 10.5px; letter-spacing: .14em; color: var(--section); font-weight: 800; margin-bottom: 8px; position: relative; }
.article-card .a-title { font-family: var(--f-serif); font-weight: 700; font-size: 16px; line-height: 1.55; color: var(--ink); margin-bottom: 8px; position: relative; }
.article-card .a-excerpt { font-size: 12.5px; color: var(--body); line-height: 1.8; flex: 1; position: relative; }
.article-card .a-date { font-family: var(--f-en); font-size: 11px; letter-spacing: .08em; color: var(--mute); margin-top: 12px; position: relative; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .content-wrap, .article-layout { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .gfooter-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 15px; }
  .gheader-search { display: none; }
  .gnav { gap: 14px; }
  .gnav .ja { display: none; }
  .brand-hero { padding: 44px 20px 50px; }
  .brand-hero::before { inset: 12px; }
  .section-head { margin: 44px auto 18px; padding: 0 16px 10px; }
  .section-head h2 { font-size: 21px; }
  .rank-item { grid-template-columns: 60px 1fr; padding: 14px 18px; gap: 14px; }
  .rank-num { font-size: 38px; }
  .rank-cta { display: none; }
  .vs-hero__match { grid-template-columns: 1fr; gap: 14px; }
  .vs-hero__vs { font-size: 26px; }
  .tool-grid { grid-template-columns: 1fr; }
  .tool-hero { padding: 22px 20px; }
  .tool-hero h1 { font-size: 22px; }
  .page-body { padding: 24px 20px; }
  .categories-wrap { top: 62px; }
  .main, .page, .ad-zone { padding-left: 14px; padding-right: 14px; }
  .gfooter-top { grid-template-columns: 1fr; }
  .gfooter-bottom { flex-direction: column; text-align: center; }
}
