/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", sans-serif;
  color: #1f2937;
  background: #f8fafc;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

a { color: #2563eb; text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }

/* ===== Header ===== */
.site-header {
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-logo {
  font-size: 20px;
  font-weight: 800;
  color: #1e3a5f;
  letter-spacing: 1px;
}
.site-logo a { color: inherit; }
.site-logo a:hover { text-decoration: none; }
.site-nav { display: flex; gap: 24px; }
.site-nav a {
  color: #4b5563;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}
.site-nav a:hover { color: #2563eb; text-decoration: none; }

/* ===== Hero (Top page) ===== */
.hero {
  background: linear-gradient(135deg, #1e3a5f 0%, #2563eb 100%);
  color: #fff;
  text-align: center;
  padding: 80px 24px 60px;
}
.hero h1 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.4;
}
.hero p {
  font-size: 16px;
  opacity: 0.85;
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.8;
}

/* ===== Article Cards (Top page) ===== */
.articles-section {
  max-width: 960px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}
.section-title {
  font-size: 22px;
  font-weight: 700;
  color: #1e3a5f;
  margin-bottom: 32px;
  padding-bottom: 12px;
  border-bottom: 3px solid #2563eb;
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
.card-color {
  height: 8px;
}
.card-body {
  padding: 24px;
}
.card-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 12px;
}
.card-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 12px;
}
.card-title a { color: #1f2937; }
.card-title a:hover { color: #2563eb; text-decoration: none; }
.card-excerpt {
  font-size: 14px;
  color: #6b7280;
  line-height: 1.7;
  margin-bottom: 16px;
}
.card-link {
  font-size: 14px;
  font-weight: 600;
  color: #2563eb;
}

/* ===== Article Page ===== */
.article-hero {
  text-align: center;
  padding: 60px 24px 40px;
  border-radius: 0;
}
.article-hero .label {
  font-size: 13px;
  letter-spacing: 3px;
  font-weight: 600;
  margin-bottom: 16px;
}
.article-hero h1 {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.5;
  max-width: 700px;
  margin: 0 auto;
}
.article-hero .divider {
  width: 60px;
  height: 3px;
  margin: 24px auto 0;
  border-radius: 2px;
}

.article-body {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}
.article-body p {
  font-size: 16px;
  line-height: 2;
  margin-bottom: 20px;
}
.article-body h2 {
  font-size: 21px;
  font-weight: 700;
  margin: 48px 0 20px;
  padding-bottom: 10px;
  border-bottom-width: 3px;
  border-bottom-style: solid;
}
.article-body h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 32px 0 16px;
}
.article-body strong { font-weight: 700; }

/* Callout box (personal story) */
.callout {
  border-radius: 10px;
  padding: 24px;
  margin: 24px 0;
  font-size: 15px;
  line-height: 2;
  border-left: 4px solid;
}
.callout p { font-size: 15px; margin-bottom: 12px; }
.callout p:last-child { margin-bottom: 0; }

/* Info box (check marks, tips) */
.info-box {
  border-radius: 10px;
  padding: 20px 24px;
  margin: 24px 0;
}
.info-box p { font-size: 15px; line-height: 2.2; margin-bottom: 0; }

/* Warning box */
.warn-box {
  background: #fef2f2;
  border-radius: 10px;
  padding: 20px 24px;
  margin: 24px 0;
}
.warn-box p { font-size: 15px; line-height: 2.2; margin-bottom: 0; }
.warn-box.has-title { padding: 20px 24px; margin: 16px 0; }
.warn-box .warn-title {
  font-size: 16px;
  font-weight: 700;
  color: #dc2626;
  margin-bottom: 8px;
}

/* Highlight banner */
.highlight-banner {
  border-radius: 8px;
  padding: 14px 20px;
  text-align: center;
  font-weight: 700;
  margin: 24px 0;
}

/* Comparison columns */
.compare-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 24px 0;
}
.compare-card {
  border-radius: 10px;
  padding: 24px;
  text-align: center;
}
.compare-card .label { font-size: 14px; font-weight: 700; margin-bottom: 8px; }
.compare-card .value { font-size: 28px; font-weight: 800; margin-bottom: 4px; }
.compare-card .sub { font-size: 13px; color: #6b7280; }

/* Two-column feature cards */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 24px 0;
}
.feature-card {
  border-radius: 10px;
  padding: 24px;
}
.feature-card .icon { font-size: 28px; text-align: center; margin-bottom: 8px; }
.feature-card .feature-title {
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 8px;
}
.feature-card p { font-size: 14px; line-height: 1.9; color: #374151; margin-bottom: 0; }

/* Numbered item card */
.item-card {
  border: 2px solid;
  border-radius: 10px;
  padding: 24px;
  margin: 16px 0;
}
.item-card .item-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 12px;
}
.item-card p { font-size: 15px; line-height: 2; margin-bottom: 12px; }
.item-card p:last-child { margin-bottom: 0; }
.item-card .callout { margin: 12px 0 0; padding: 14px 18px; font-size: 14px; }

/* Stats row (5-column) */
.stats-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin: 24px 0;
}
.stat-card {
  border-radius: 8px;
  padding: 14px 10px;
  text-align: center;
}
.stat-card .stat-icon { font-size: 22px; margin-bottom: 4px; }
.stat-card .stat-label { font-size: 12px; font-weight: 700; margin-bottom: 4px; }
.stat-card .stat-value { font-size: 12px; font-weight: 700; line-height: 1.5; }

/* CTA footer */
.article-cta {
  border-radius: 12px;
  padding: 32px;
  text-align: center;
  color: #fff;
  margin: 40px 0 0;
}
.article-cta p {
  color: #fff;
  font-size: 16px;
  line-height: 2;
  margin-bottom: 0;
}

/* ===== Footer ===== */
.site-footer {
  background: #1e293b;
  color: #94a3b8;
  text-align: center;
  padding: 32px 24px;
  font-size: 13px;
}

/* ===== Responsive ===== */
@media (max-width: 640px) {
  .hero h1 { font-size: 24px; }
  .article-hero h1 { font-size: 22px; }
  .compare-row, .feature-row { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: repeat(3, 1fr); }
  .site-nav { gap: 16px; }
  .site-nav a { font-size: 13px; }
  .header-inner { padding: 12px 16px; }
}
