:root {
  --bg: #fdfdfb;
  --fg: #1a1a1a;
  --muted: #6b6b6b;
  --accent: #2b8a5e;
  --accent-dark: #1c5c3e;
  --accent-soft: #e7f5ee;
  --border: #e5e3dd;
  --ad-bg: #fff8e6;
  --ad-border: #f0c94a;
  --content-max: 1120px;
}

* { box-sizing: border-box; }

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

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

/* ── バナー ── */
.banner {
  background: linear-gradient(135deg, var(--accent-dark), var(--accent));
  color: #fff;
  text-align: center;
  padding: 40px 20px 34px;
}
.banner-title {
  color: #fff;
  text-decoration: none;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.banner-tagline {
  margin-top: 8px;
  color: rgba(255,255,255,0.85);
  font-size: 13.5px;
}

/* ── トップナビ ── */
.topnav { background: #1a1a1a; }
.topnav .inner {
  max-width: var(--content-max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.topnav a {
  color: #e6e6e6;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 600;
  padding: 12px 16px;
  display: inline-block;
}
.topnav a:hover { background: rgba(255,255,255,0.08); color: #fff; }

/* ── パンくず ── */
.breadcrumb {
  background: #fff;
  border-bottom: 1px solid var(--border);
  font-size: 12.5px;
  color: var(--muted);
}
.breadcrumb .inner { max-width: var(--content-max); margin: 0 auto; padding: 10px 20px; }
.breadcrumb a { color: var(--muted); }

/* ── 全体レイアウト ── */
.layout {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 28px 20px 60px;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 36px;
  align-items: start;
}
@media (max-width: 860px) {
  .layout { grid-template-columns: 1fr; }
}

.page-heading { font-size: 20px; margin: 4px 0 20px; }
.empty-note { color: var(--muted); font-size: 14px; }

/* ── サイドバー ── */
.sidebar { display: flex; flex-direction: column; gap: 20px; }
.widget {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 18px;
}
.widget h3 {
  font-size: 13px;
  margin: 0 0 10px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--accent);
  color: var(--fg);
}
.widget p { font-size: 13.5px; color: var(--muted); margin: 0; }
.widget-list { list-style: none; margin: 0; padding: 0; }
.widget-list li { border-bottom: 1px solid var(--border); }
.widget-list li:last-child { border-bottom: none; }
.widget-list a { display: block; padding: 8px 2px; font-size: 14px; text-decoration: none; color: var(--fg); }
.widget-list a:hover { color: var(--accent-dark); }
.widget-link {
  display: inline-block;
  margin-top: 10px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

/* ── 記事カード（一覧） ── */
.article-card {
  display: block;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
}
.article-card:hover .article-title { color: var(--accent-dark); text-decoration: underline; }
.article-card img.thumb { width: 100%; max-height: 260px; object-fit: cover; border-radius: 6px; margin-bottom: 12px; }
.category-tag {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 999px;
}
.article-date { font-size: 12px; color: var(--muted); margin-left: 8px; }
.article-title { font-size: 19px; font-weight: 700; margin: 6px 0 0; line-height: 1.5; }

/* ── 記事本文 ── */
article.post h1.title { font-size: 25px; line-height: 1.5; margin: 12px 0 8px; }
article.post img.header-image { width: 100%; border-radius: 8px; margin-bottom: 24px; }
article.post h2 { font-size: 19px; margin-top: 38px; border-left: 5px solid var(--accent); padding-left: 10px; }
article.post p { margin: 1em 0; }
article.post table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: 15px; }
article.post th, article.post td { border: 1px solid var(--border); padding: 8px 10px; text-align: left; }
article.post th { background: var(--accent-soft); }

.ad-slot {
  background: var(--ad-bg);
  border: 1px dashed var(--ad-border);
  border-radius: 8px;
  padding: 14px 16px;
  margin: 1.4em 0;
  font-size: 14px;
}
.ad-slot .ad-label { font-size: 11px; font-weight: 700; color: #9c7a00; letter-spacing: 0.05em; display: block; margin-bottom: 4px; }

.pr-badge {
  display: inline-block;
  font-size: 11px;
  color: #9c7a00;
  background: var(--ad-bg);
  border: 1px solid var(--ad-border);
  border-radius: 4px;
  padding: 1px 6px;
  margin-bottom: 12px;
}

.disclaimer {
  margin-top: 48px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 12.5px;
  color: var(--muted);
}

.back-link { display: inline-block; margin-top: 40px; font-size: 14px; }

footer.site-footer {
  border-top: 1px solid var(--border);
  padding: 26px 20px 46px;
  max-width: var(--content-max);
  margin: 0 auto;
  color: var(--muted);
  font-size: 12.5px;
}

@media (max-width: 480px) {
  body { font-size: 16px; }
  .banner { padding: 30px 20px 26px; }
  .banner-title { font-size: 22px; }
}
