:root {
  --text: #1f2430;
  --muted: #5b6472;
  --accent: #1d4ed8;
  --navy: #16283f;
  --cta: #1b9e57;
  --cta-dark: #15803d;
  --border: #e3e7ee;
  --bg-soft: #f4f6f9;
  --disc-bg: #fff8e6;
  --disc-border: #e3cd8f;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

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

.wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 20px;
}

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

/* header */
.site-header {
  border-bottom: 3px solid var(--cta);
  background: var(--navy);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
  flex-wrap: wrap;
  gap: 8px;
}
.site-logo {
  font-size: 21px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.logo-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: #fff;
  color: var(--navy);
  border-radius: 8px;
  font-size: 19px;
  font-weight: 700;
}
.site-logo:hover { text-decoration: none; color: #cdd9ec; }
.site-nav a {
  color: #c3cfe0;
  margin-left: 15px;
  font-size: 13.5px;
}
.site-nav a:hover { color: #fff; }

/* hero */
.hero {
  padding: 48px 0 8px;
}
.hero h1 {
  font-size: 34px;
  line-height: 1.4;
  margin: 0 0 10px;
  letter-spacing: 0.03em;
}
.hero .tagline {
  font-size: 18px;
  color: var(--accent);
  font-weight: 600;
  margin: 0 0 16px;
}
.hero .concept {
  color: var(--muted);
  margin: 0;
  max-width: 40em;
}

/* sections */
.section { padding: 28px 0 8px; }
.section h2 {
  font-size: 20px;
  margin: 0 0 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border);
}

/* genre cards */
.genre-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.genre-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  background: var(--bg-soft);
}
.genre-card h3 { margin: 0 0 6px; font-size: 16px; }
.genre-card p { margin: 0; font-size: 13px; color: var(--muted); }
.genre-card .badge {
  display: inline-block;
  font-size: 11px;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 1px 8px;
  margin-top: 8px;
  background: #fff;
}
.genre-card .badge.live { color: var(--accent); border-color: var(--accent); }

/* article list */
.article-list { list-style: none; margin: 0; padding: 0; }
.article-list li {
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}
.article-list .a-meta { font-size: 13px; color: var(--muted); margin: 0 0 4px; }
.article-list .a-title { font-size: 17px; font-weight: 600; margin: 0; }
.article-list .a-desc { font-size: 14px; color: var(--muted); margin: 4px 0 0; }
.empty-note { color: var(--muted); font-size: 14px; }

/* article */
.post { padding: 36px 0 8px; }
.post-meta { color: var(--muted); font-size: 13px; margin: 0 0 8px; }
.post-category {
  display: inline-block;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 1px 10px;
  margin-right: 10px;
  font-size: 12px;
}
.post-title {
  font-size: 27px;
  line-height: 1.5;
  margin: 0 0 20px;
}
.disclosure {
  background: var(--disc-bg);
  border: 1px solid var(--disc-border);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 14px;
  color: #4a4232;
  margin: 0 0 28px;
}
.disclosure p { margin: 0; }
.post-body { font-size: 16.5px; line-height: 1.95; }
.post-body h2 {
  font-size: 21px;
  margin: 36px 0 12px;
  padding: 2px 0 6px 12px;
  border-left: 4px solid var(--accent);
  border-bottom: 1px solid var(--border);
}
.post-body h3 { font-size: 18px; margin: 28px 0 10px; }
.post-body p { margin: 0 0 18px; }
.post-body ul, .post-body ol { margin: 0 0 18px; padding-left: 1.4em; }
.post-body li { margin-bottom: 6px; }
.post-byline {
  margin-top: 40px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
}

/* footer */
.site-footer {
  margin-top: 56px;
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
  padding: 24px 0 32px;
  font-size: 13px;
  color: var(--muted);
}
.footer-links { margin: 0 0 6px; }
.footer-note { margin: 0; }

/* breadcrumbs */
.breadcrumbs { font-size: 13px; color: var(--muted); margin: 0 0 14px; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--accent); }

/* table of contents */
.toc {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 20px 10px;
  margin: 0 0 30px;
}
.toc-title { font-weight: 700; margin: 0 0 6px; font-size: 15px; }
.toc ol { margin: 0; padding-left: 1.5em; }
.toc li { margin-bottom: 5px; font-size: 14.5px; }

/* author box */
.author-box {
  display: flex;
  gap: 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-soft);
  padding: 18px;
  margin-top: 44px;
}
.author-icon { border-radius: 12px; flex-shrink: 0; }
.author-name { font-weight: 700; margin: 0 0 4px; font-size: 16px; }
.author-profile { margin: 0; font-size: 13.5px; color: var(--muted); line-height: 1.75; }
.author-link { margin: 6px 0 0; font-size: 13.5px; }

/* related articles */
.related { margin-top: 40px; }
.related h2 {
  font-size: 19px;
  margin: 0 0 6px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border);
}

/* chips in article cards */
.chip {
  display: inline-block;
  background: var(--navy);
  color: #fff;
  border-radius: 999px;
  padding: 0 9px;
  font-size: 11.5px;
  line-height: 1.7;
  margin-right: 4px;
}

/* hero extras */
.hero-links { margin: 20px 0 0; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.genre-count { color: var(--muted); font-size: 13.5px; margin: 10px 0 0; }
.genre-card h3 a { color: var(--text); }
.genre-card h3 a:hover { color: var(--accent); }

/* ---- conversion components (usable from Markdown HTML) ---- */
.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--cta);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.4;
  min-height: 52px;
  padding: 12px 28px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(22, 40, 63, 0.18);
  width: 100%;
  max-width: 420px;
  text-align: center;
}
.cta-btn:hover { background: var(--cta-dark); text-decoration: none; color: #fff; }
.cta-btn.sub {
  background: var(--accent);
  width: auto;
  min-height: 46px;
  padding: 10px 22px;
  font-size: 15px;
}
.cta-btn.sub:hover { background: #1e40af; }
.cta-box {
  border: 2px solid var(--cta);
  border-radius: 12px;
  padding: 18px;
  margin: 26px 0;
  text-align: center;
  background: #f2fbf6;
}
.cta-box p { margin: 0 0 12px; font-weight: 600; }
.cta-box .micro { margin: 10px 0 0; font-size: 12.5px; color: var(--muted); font-weight: 400; }
.cta-box .cta-btn { margin: 0 auto; }
.point-box {
  background: var(--bg-soft);
  border-left: 4px solid var(--accent);
  border-radius: 0 10px 10px 0;
  padding: 14px 18px;
  margin: 24px 0;
}
.point-box p { margin: 0 0 8px; }
.point-box p:last-child { margin-bottom: 0; }
.merit-demerit { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 24px 0; }
.merit-demerit .col { border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px; }
.merit-demerit .col h4 { margin: 0 0 8px; font-size: 15px; }
.merit-demerit ul { margin: 0; padding-left: 1.3em; font-size: 14.5px; }
.table-wrap { overflow-x: auto; margin: 24px 0; }
.compare-table, .post-body table {
  border-collapse: collapse;
  width: 100%;
  font-size: 14.5px;
  margin: 24px 0;
}
.compare-table th, .compare-table td,
.post-body table th, .post-body table td {
  border: 1px solid var(--border);
  padding: 9px 12px;
  text-align: left;
  vertical-align: top;
}
.compare-table th, .post-body table th { background: var(--navy); color: #fff; font-weight: 600; }
.compare-table tr.recommend td { background: #f2fbf6; font-weight: 600; }
.faq { margin: 24px 0; }
.faq dt { font-weight: 700; margin-top: 16px; }
.faq dd { margin: 4px 0 0; color: var(--text); }

@media (max-width: 640px) {
  .genre-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 32px; }
  .hero h1 { font-size: 28px; }
  .post-title { font-size: 23px; }
  .site-nav a { margin-left: 12px; }
  .author-box { flex-direction: column; }
  .merit-demerit { grid-template-columns: 1fr; }
  .cta-btn { max-width: none; }
}
