/* AI navi - メインCSS */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --accent: #f97316;
  --accent-dark: #ea6c0a;
  --text: #1e293b;
  --text-light: #64748b;
  --bg: #f8fafc;
  --white: #ffffff;
  --border: #e2e8f0;
  --success: #22c55e;
  --card-shadow: 0 2px 12px rgba(0,0,0,0.08);
  --radius: 12px;
}

body { font-family: 'Hiragino Sans', 'Yu Gothic', sans-serif; color: var(--text); background: var(--bg); line-height: 1.7; font-size: 16px; }

/* ナビゲーション */
header { background: var(--white); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
nav { max-width: 1100px; margin: 0 auto; padding: 0 20px; display: flex; align-items: center; justify-content: space-between; height: 60px; }
.logo { font-size: 1.4rem; font-weight: 700; color: var(--primary); text-decoration: none; }
.logo span { color: var(--accent); }
nav ul { list-style: none; display: flex; gap: 24px; }
nav ul a { text-decoration: none; color: var(--text-light); font-size: 0.9rem; font-weight: 500; transition: color .2s; }
nav ul a:hover { color: var(--primary); }

/* ヒーロー */
.hero { background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 50%, #0ea5e9 100%); color: white; text-align: center; padding: 64px 20px; }
.hero h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 800; line-height: 1.4; margin-bottom: 16px; }
.hero p { font-size: 1.05rem; opacity: 0.9; max-width: 600px; margin: 0 auto 32px; }
.hero-badge { display: inline-flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-bottom: 32px; }
.badge { background: rgba(255,255,255,0.2); border: 1px solid rgba(255,255,255,0.4); border-radius: 20px; padding: 6px 16px; font-size: 0.85rem; }

/* CTAボタン */
.btn { display: inline-block; padding: 14px 32px; border-radius: 8px; font-weight: 700; font-size: 1rem; text-decoration: none; transition: all .2s; cursor: pointer; border: none; }
.btn-primary { background: var(--accent); color: white; }
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-2px); box-shadow: 0 4px 16px rgba(249,115,22,0.4); }
.btn-outline { background: transparent; color: white; border: 2px solid white; }
.btn-outline:hover { background: white; color: var(--primary); }
.btn-sm { padding: 10px 20px; font-size: 0.9rem; }

/* セクション */
section { max-width: 1100px; margin: 0 auto; padding: 48px 20px; }
.section-title { font-size: 1.5rem; font-weight: 700; text-align: center; margin-bottom: 8px; }
.section-sub { text-align: center; color: var(--text-light); margin-bottom: 32px; }
.section-divider { border: none; border-top: 2px solid var(--border); margin: 48px 0; }

/* おすすめTop3 */
.top3 { background: linear-gradient(135deg, #fef9f0, #fff7ed); border-radius: var(--radius); padding: 32px 24px; margin-bottom: 48px; border: 2px solid #fed7aa; }
.top3-title { font-size: 1.3rem; font-weight: 800; margin-bottom: 24px; color: var(--accent-dark); text-align: center; }
.top3-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.top3-card { background: white; border-radius: 10px; padding: 20px; box-shadow: var(--card-shadow); display: flex; flex-direction: column; gap: 12px; }
.rank-badge { font-size: 1.1rem; font-weight: 800; }
.rank-1 { color: #f59e0b; }
.rank-2 { color: #94a3b8; }
.rank-3 { color: #b45309; }
.tool-name { font-size: 1.15rem; font-weight: 700; }
.tool-desc { font-size: 0.9rem; color: var(--text-light); }
.tool-merit { font-size: 0.85rem; background: #f0fdf4; color: #15803d; padding: 8px 12px; border-radius: 6px; }

/* 比較表 */
.compare-table-wrap { overflow-x: auto; margin: 24px 0; }
.compare-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.compare-table th { background: var(--primary); color: white; padding: 12px 16px; text-align: left; }
.compare-table td { padding: 12px 16px; border-bottom: 1px solid var(--border); }
.compare-table tr:nth-child(even) td { background: #f8fafc; }
.compare-table tr:hover td { background: #eff6ff; }
.tag-free { background: #dcfce7; color: #15803d; padding: 3px 8px; border-radius: 4px; font-size: 0.8rem; font-weight: 600; }
.tag-paid { background: #fef3c7; color: #92400e; padding: 3px 8px; border-radius: 4px; font-size: 0.8rem; font-weight: 600; }
.tag-best { background: #dbeafe; color: #1d4ed8; padding: 3px 8px; border-radius: 4px; font-size: 0.8rem; font-weight: 600; }

/* ツールカード */
.tools-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin: 24px 0; }
.tool-card { background: white; border-radius: var(--radius); padding: 24px; box-shadow: var(--card-shadow); border: 1px solid var(--border); transition: transform .2s, box-shadow .2s; }
.tool-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.12); }
.tool-card-header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.tool-icon { width: 48px; height: 48px; border-radius: 10px; background: var(--primary); display: flex; align-items: center; justify-content: center; color: white; font-weight: 700; font-size: 1.1rem; }
.tool-card h3 { font-size: 1.1rem; font-weight: 700; }
.tool-price { font-size: 0.85rem; color: var(--text-light); }
.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 12px 0; font-size: 0.85rem; }
.pros li::before { content: "✓ "; color: var(--success); }
.cons li::before { content: "✗ "; color: #ef4444; }
.pros, .cons { list-style: none; }
.pros li, .cons li { margin-bottom: 4px; }

/* CTA ブロック */
.cta-block { background: linear-gradient(135deg, #1e3a8a, #2563eb); color: white; border-radius: var(--radius); padding: 32px 24px; text-align: center; margin: 32px 0; }
.cta-block h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 8px; }
.cta-block p { opacity: 0.85; margin-bottom: 20px; font-size: 0.95rem; }
.cta-note { font-size: 0.8rem; opacity: 0.7; margin-top: 10px; }

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: white; border-radius: 8px; border: 1px solid var(--border); overflow: hidden; }
.faq-q { padding: 16px 20px; font-weight: 600; cursor: pointer; display: flex; justify-content: space-between; }
.faq-q::after { content: "＋"; color: var(--primary); font-weight: 700; }
.faq-a { padding: 0 20px 16px; color: var(--text-light); font-size: 0.95rem; }

/* パンくず */
.breadcrumb { font-size: 0.85rem; color: var(--text-light); padding: 12px 20px; max-width: 1100px; margin: 0 auto; }
.breadcrumb a { color: var(--primary); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* 記事ページ */
.article-wrap { max-width: 860px; margin: 0 auto; padding: 32px 20px; }
.article-header { margin-bottom: 32px; }
.article-header h1 { font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 800; line-height: 1.5; margin-bottom: 12px; }
.article-meta { display: flex; gap: 16px; font-size: 0.85rem; color: var(--text-light); flex-wrap: wrap; }
.article-toc { background: #f8fafc; border: 1px solid var(--border); border-radius: 8px; padding: 20px 24px; margin: 24px 0; }
.article-toc h2 { font-size: 1rem; margin-bottom: 12px; }
.article-toc ol { padding-left: 20px; font-size: 0.9rem; line-height: 2; }
.article-toc a { color: var(--primary); text-decoration: none; }
.article-body h2 { font-size: 1.3rem; font-weight: 700; margin: 40px 0 16px; padding-left: 12px; border-left: 4px solid var(--primary); }
.article-body h3 { font-size: 1.1rem; font-weight: 700; margin: 28px 0 12px; }
.article-body p { margin-bottom: 16px; }
.article-body ul, .article-body ol { padding-left: 24px; margin-bottom: 16px; line-height: 2; }
.summary-box { background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 8px; padding: 20px 24px; margin: 20px 0; }
.summary-box h3 { color: var(--primary); margin-bottom: 8px; }
.price-table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 0.92rem; }
.price-table th { background: #1e3a8a; color: white; padding: 10px 14px; }
.price-table td { padding: 10px 14px; border-bottom: 1px solid var(--border); }
.price-table tr:nth-child(even) td { background: #f8fafc; }

/* フッター */
footer { background: #1e293b; color: #94a3b8; text-align: center; padding: 32px 20px; font-size: 0.85rem; }
footer a { color: #60a5fa; text-decoration: none; }
.footer-nav { display: flex; gap: 20px; justify-content: center; margin-bottom: 16px; flex-wrap: wrap; }
.affiliate-disc { background: #0f172a; padding: 12px 20px; border-radius: 6px; font-size: 0.8rem; margin-bottom: 16px; }

/* レスポンシブ */
@media (max-width: 768px) {
  nav ul { display: none; }
  .hero { padding: 40px 16px; }
  .top3-grid { grid-template-columns: 1fr; }
  .tools-grid { grid-template-columns: 1fr; }
  .pros-cons { grid-template-columns: 1fr; }
  .article-wrap { padding: 20px 16px; }
}
