/* ポケトレ比較ナビ - 共通スタイル */
:root {
  --color-bg: #fafaf8;
  --color-surface: #ffffff;
  --color-text: #1f2328;
  --color-text-muted: #5b6470;
  --color-border: #e3e6ea;
  --color-primary: #d64545;
  --color-primary-dark: #b23838;
  --color-accent: #2f7a5c;
  --color-pr: #f2994a;
  --radius: 10px;
  --max-width: 860px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Hiragino Sans", "Yu Gothic", "Noto Sans JP", -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.8;
  font-size: 16px;
}

a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; }

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ヘッダー */
.site-header {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 10;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
  max-width: 1000px;
}
.site-logo {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-text);
}
.site-logo span { color: var(--color-primary); }
.site-nav ul {
  list-style: none;
  display: flex;
  gap: 18px;
  margin: 0;
  padding: 0;
  font-size: 0.92rem;
}
.site-nav a { color: var(--color-text); font-weight: 600; }

/* PR/広告表記バナー */
.pr-banner {
  background: #fff4e8;
  border-bottom: 1px solid #f0d9b8;
  font-size: 0.82rem;
  color: #7a5623;
  text-align: center;
  padding: 6px 10px;
}
.pr-banner a { color: #7a5623; text-decoration: underline; }

/* パンくず */
.breadcrumb {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  margin: 16px 0 4px;
}
.breadcrumb a { color: var(--color-text-muted); }
.breadcrumb ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.breadcrumb li:not(:last-child)::after { content: "›"; margin-left: 4px; color: #b7bec6; }

/* ヒーロー */
.hero {
  padding: 34px 0 24px;
}
.hero h1 {
  font-size: 1.7rem;
  line-height: 1.5;
  margin: 0 0 10px;
}
.hero .lead {
  color: var(--color-text-muted);
  font-size: 1rem;
}
.updated {
  display: inline-block;
  font-size: 0.78rem;
  color: var(--color-text-muted);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 3px 12px;
  margin-top: 8px;
}

/* 直接回答ボックス(AEO/GEO用: 検索・AIエンジンに引用されやすい要約) */
.answer-box {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-accent);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin: 18px 0 28px;
}
.answer-box p { margin: 0; }
.answer-box .answer-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-accent);
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

article { padding: 4px 0 60px; }
article h2 {
  font-size: 1.32rem;
  margin: 40px 0 14px;
  padding-top: 8px;
  border-top: 1px solid var(--color-border);
}
article h2:first-of-type { border-top: none; margin-top: 20px; }
article h3 { font-size: 1.08rem; margin: 26px 0 10px; }
article p { margin: 0 0 16px; }
article ul, article ol { margin: 0 0 16px; padding-left: 1.3em; }
article li { margin-bottom: 6px; }

.note {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  background: #f2f4f6;
  border-radius: var(--radius);
  padding: 12px 16px;
  margin: 16px 0;
}
.caution {
  font-size: 0.9rem;
  background: #fdecec;
  border: 1px solid #f3c8c8;
  border-radius: var(--radius);
  padding: 14px 16px;
  margin: 16px 0;
}
.caution strong { color: var(--color-primary-dark); }

/* 比較テーブル */
.table-scroll { overflow-x: auto; margin: 20px 0; border: 1px solid var(--color-border); border-radius: var(--radius); }
table.compare {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
  font-size: 0.92rem;
  background: var(--color-surface);
}
table.compare th, table.compare td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--color-border);
  text-align: left;
  vertical-align: top;
}
table.compare thead th {
  background: #f4f5f3;
  font-weight: 700;
  white-space: nowrap;
}
table.compare tbody tr:last-child td { border-bottom: none; }

/* サービス紹介カード */
.service-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  padding: 20px 22px;
  margin: 22px 0;
}
.service-card h3 {
  margin-top: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.rank-badge {
  display: inline-block;
  background: var(--color-primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 6px;
  padding: 2px 8px;
}
.service-card dl {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 6px 12px;
  font-size: 0.9rem;
  margin: 14px 0;
}
.service-card dt { color: var(--color-text-muted); }
.service-card dd { margin: 0; }

.cta-btn {
  display: inline-block;
  background: var(--color-primary);
  color: #fff !important;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: 999px;
  text-decoration: none !important;
  margin-top: 8px;
  font-size: 0.95rem;
}
.cta-btn:hover { background: var(--color-primary-dark); }
.cta-note { font-size: 0.75rem; color: var(--color-text-muted); margin-top: 6px; }

/* FAQ */
.faq-item { border-bottom: 1px solid var(--color-border); padding: 16px 0; }
.faq-item:last-child { border-bottom: none; }
.faq-q { font-weight: 700; margin: 0 0 8px; }
.faq-q::before { content: "Q. "; color: var(--color-primary); }
.faq-a { margin: 0; color: var(--color-text); }
.faq-a::before { content: "A. "; color: var(--color-accent); font-weight: 700; }

/* 関連記事リンク */
.related-list { list-style: none; padding: 0; display: grid; gap: 10px; }
.related-list a {
  display: block;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 12px 16px;
  background: var(--color-surface);
  color: var(--color-text);
  font-weight: 600;
}

/* 著者/E-E-A-T */
.author-box {
  display: flex;
  gap: 12px;
  align-items: center;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin: 30px 0;
  font-size: 0.88rem;
}
.author-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--color-accent);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 700; flex-shrink: 0;
}

/* トップページ カードグリッド */
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin: 24px 0 40px;
}
.pillar-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 22px;
}
.pillar-card h2 { margin-top: 0; font-size: 1.15rem; border: none; padding-top: 0; }

/* フッター */
.site-footer {
  border-top: 1px solid var(--color-border);
  margin-top: 60px;
  padding: 30px 0 40px;
  font-size: 0.82rem;
  color: var(--color-text-muted);
}
.site-footer .wrap { max-width: 1000px; }
.footer-links { list-style: none; display: flex; flex-wrap: wrap; gap: 14px; padding: 0; margin: 0 0 14px; }
.footer-links a { color: var(--color-text-muted); }

@media (max-width: 640px) {
  .hero h1 { font-size: 1.4rem; }
  .site-nav ul { gap: 10px; font-size: 0.82rem; }
  .service-card dl { grid-template-columns: 92px 1fr; }
}
