/* ============================================================
   オンライン英会話比較サイト - 基本スタイル
   ============================================================ */

:root {
  --color-primary: #2563eb;
  --color-cta: #ff6b35;
  --color-cta-hover: #e55a2b;
  --color-pros: #059669;
  --color-cons: #dc2626;
  --color-bg: #ffffff;
  --color-bg-alt: #f8fafc;
  --color-text: #1e293b;
  --color-text-light: #64748b;
  --color-border: #e2e8f0;
  --max-width: 800px;
}

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

body {
  font-family: "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.8;
  font-size: 16px;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem;
}

/* ── Header ── */
.site-header {
  border-bottom: 2px solid var(--color-primary);
  padding: 1rem 0;
}
.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.site-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-primary);
  text-decoration: none;
}
.site-nav a {
  margin-left: 1.2rem;
  color: var(--color-text);
  text-decoration: none;
  font-size: 0.9rem;
}
.site-nav a:hover { color: var(--color-primary); }

/* ── Article ── */
.article { padding: 2rem 0; }
.article h1 { font-size: 1.6rem; margin-bottom: 0.5rem; line-height: 1.4; }
.article-meta { color: var(--color-text-light); font-size: 0.85rem; margin-bottom: 1.5rem; }
.article-content h2 { font-size: 1.3rem; margin: 2rem 0 0.8rem; padding-bottom: 0.3rem; border-bottom: 2px solid var(--color-primary); }
.article-content h3 { font-size: 1.1rem; margin: 1.5rem 0 0.5rem; }
.article-content p { margin-bottom: 1rem; }
.article-content ul, .article-content ol { margin: 0.5rem 0 1rem 1.5rem; }
.article-content li { margin-bottom: 0.3rem; }

/* ── TOC ── */
.toc {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 1rem 1.5rem;
  margin-bottom: 2rem;
}
.toc h2 { font-size: 1rem; margin-bottom: 0.5rem; border: none; }
.toc ul { list-style: none; margin: 0; padding: 0; }
.toc li { margin: 0.3rem 0; }
.toc a { color: var(--color-primary); text-decoration: none; font-size: 0.9rem; }

/* ── CTA ── */
.cta-box {
  text-align: center;
  margin: 2rem 0;
}
.cta-button {
  display: inline-block;
  background: var(--color-cta);
  color: #fff;
  padding: 1rem 2.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
  transition: background 0.2s;
}
.cta-button:hover { background: var(--color-cta-hover); }

/* ── Comparison Table ── */
.comparison-table-wrapper {
  overflow-x: auto;
  margin: 1.5rem 0;
}
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.comparison-table th {
  background: var(--color-primary);
  color: #fff;
  padding: 0.6rem 0.8rem;
  text-align: left;
  white-space: nowrap;
}
.comparison-table td {
  padding: 0.6rem 0.8rem;
  border-bottom: 1px solid var(--color-border);
}
.comparison-table tr:nth-child(even) { background: var(--color-bg-alt); }
.comparison-table tr.highlight { background: #fef3c7; }
.comparison-table .service-name { font-weight: 700; white-space: nowrap; }

/* ── Pros / Cons ── */
.pros-cons {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 1.2rem 1.5rem;
  margin: 1.5rem 0;
}
.pros-cons-title { font-size: 1rem; margin-bottom: 0.8rem; }
.pros-heading { color: var(--color-pros); margin-bottom: 0.3rem; }
.cons-heading { color: var(--color-cons); margin-top: 1rem; margin-bottom: 0.3rem; }
.pros-cons ul { margin: 0 0 0 1.2rem; }
.pros-cons li { margin-bottom: 0.2rem; font-size: 0.95rem; }

/* ── Article List ── */
.article-list { margin: 1.5rem 0; }
.article-card {
  padding: 1rem 0;
  border-bottom: 1px solid var(--color-border);
}
.article-card h2, .article-card h3 { font-size: 1.1rem; margin-bottom: 0.3rem; }
.article-card a { color: var(--color-text); text-decoration: none; }
.article-card a:hover { color: var(--color-primary); }
.article-card p { color: var(--color-text-light); font-size: 0.9rem; }

/* ── Hero ── */
.hero {
  text-align: center;
  padding: 3rem 0 2rem;
}
.hero h1 { font-size: 1.8rem; margin-bottom: 0.8rem; }
.hero p { color: var(--color-text-light); font-size: 1rem; }
.featured, .latest { margin: 2rem 0; }
.featured h2, .latest h2 { font-size: 1.3rem; margin-bottom: 1rem; border-bottom: 2px solid var(--color-primary); padding-bottom: 0.3rem; }

/* ── Footer ── */
.site-footer {
  border-top: 1px solid var(--color-border);
  padding: 1.5rem 0;
  margin-top: 3rem;
  text-align: center;
  color: var(--color-text-light);
  font-size: 0.85rem;
}

/* ── Responsive ── */
@media (max-width: 600px) {
  .site-header .container { flex-direction: column; align-items: flex-start; }
  .site-nav a { margin-left: 0; margin-right: 1rem; }
  .article h1 { font-size: 1.3rem; }
  .cta-button { padding: 0.8rem 1.5rem; font-size: 1rem; }
}
