/* === Reset & Base === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", sans-serif;
  line-height: 1.8;
  color: #333;
  background: #fafafa;
}
a { color: #1a6b3c; text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }

/* === PR Notice (Header Top) === */
.pr-notice {
  background: #f5f5f5;
  color: #888;
  font-size: 0.75rem;
  text-align: center;
  padding: 4px 0;
  border-bottom: 1px solid #eee;
}

/* === Header === */
.site-header {
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1a6b3c;
}
.site-nav ul {
  list-style: none;
  display: flex;
  gap: 24px;
}
.site-nav a { color: #555; font-size: 0.9rem; }
.site-nav a:hover { color: #1a6b3c; }
.menu-toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; }

/* === Hero === */
.hero {
  text-align: center;
  padding: 60px 20px 40px;
  background: linear-gradient(135deg, #f0f7f2, #e8f5ec);
}
.hero h1 { font-size: 1.75rem; color: #1a4d2e; margin-bottom: 12px; }
.hero-sub { color: #555; margin-bottom: 24px; line-height: 1.6; }

/* === Section === */
.section {
  max-width: 960px;
  margin: 0 auto;
  padding: 48px 20px;
}
.section h2 { font-size: 1.5rem; color: #1a4d2e; margin-bottom: 8px; }
.more-link { display: inline-block; margin-top: 16px; font-weight: 600; }

/* === Article List === */
.article-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 20px;
}
.article-card {
  background: #fff;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  transition: box-shadow 0.2s;
}
.article-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.article-card h2, .article-card h3 { font-size: 1.1rem; margin-bottom: 8px; color: #333; }
.article-card .excerpt { font-size: 0.9rem; color: #666; }
.article-card time { font-size: 0.8rem; color: #999; }

/* === Article (Single) === */
.article {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 20px;
}
.breadcrumb { font-size: 0.8rem; color: #999; margin-bottom: 16px; }
.breadcrumb a { color: #888; }
.article-header h1 { font-size: 1.6rem; color: #1a4d2e; line-height: 1.4; margin-bottom: 8px; }
.article-meta { font-size: 0.85rem; color: #888; margin-bottom: 32px; }
.category {
  background: #e8f5ec;
  color: #1a6b3c;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
  margin-left: 8px;
}

/* === TOC === */
.toc {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 32px;
}
.toc h2 { font-size: 1rem; margin-bottom: 8px; }
.toc nav ul { padding-left: 20px; }
.toc nav li { margin-bottom: 4px; font-size: 0.9rem; }

/* === Article Body === */
.article-body h2 {
  font-size: 1.35rem;
  color: #1a4d2e;
  border-left: 4px solid #1a6b3c;
  padding-left: 12px;
  margin: 40px 0 16px;
}
.article-body h3 {
  font-size: 1.15rem;
  color: #333;
  margin: 32px 0 12px;
}
.article-body p { margin-bottom: 16px; }
.article-body ul, .article-body ol { margin: 0 0 16px 24px; }
.article-body blockquote {
  border-left: 4px solid #ddd;
  padding: 12px 16px;
  margin: 16px 0;
  background: #f9f9f9;
  color: #555;
}

/* === CTA === */
.cta-box {
  background: linear-gradient(135deg, #1a6b3c, #2d8f54);
  color: #fff;
  border-radius: 12px;
  padding: 32px;
  text-align: center;
  margin: 40px 0;
}
.cta-text { font-size: 1.2rem; font-weight: 700; margin-bottom: 8px; }
.cta-sub { font-size: 0.9rem; opacity: 0.9; margin-bottom: 16px; }
.cta-button {
  display: inline-block;
  background: #fff;
  color: #1a6b3c;
  font-weight: 700;
  padding: 14px 40px;
  border-radius: 50px;
  font-size: 1rem;
  transition: transform 0.2s, box-shadow 0.2s;
}
.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  text-decoration: none;
}
.cta-yamikin { background: linear-gradient(135deg, #c0392b, #e74c3c); }
.cta-mid { margin: 32px 0; }

/* === Related === */
.related-articles { margin-top: 48px; padding-top: 32px; border-top: 1px solid #eee; }
.related-articles h2 { font-size: 1.2rem; margin-bottom: 16px; }

/* === List Page === */
.list-page {
  max-width: 960px;
  margin: 0 auto;
  padding: 32px 20px;
}
.list-page h1 { font-size: 1.5rem; color: #1a4d2e; margin-bottom: 24px; }

/* === Footer === */
.site-footer {
  background: #2c3e50;
  color: #ccc;
  padding: 40px 20px;
  margin-top: 48px;
}
.footer-inner { max-width: 960px; margin: 0 auto; text-align: center; }
.disclaimer { font-size: 0.8rem; line-height: 1.6; margin-bottom: 20px; color: #aaa; }
.footer-nav ul { list-style: none; display: flex; justify-content: center; gap: 20px; margin-bottom: 16px; }
.footer-nav a { color: #ccc; font-size: 0.85rem; }
.footer-nav a:hover { color: #fff; }
.copyright { font-size: 0.8rem; color: #888; }

/* === Responsive === */
@media (max-width: 768px) {
  .site-nav { display: none; }
  .menu-toggle { display: block; }
  .site-nav.active {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    padding: 16px 20px;
  }
  .site-nav.active ul { flex-direction: column; gap: 12px; }
  .hero h1 { font-size: 1.4rem; }
  .article-header h1 { font-size: 1.3rem; }
  .article-list { grid-template-columns: 1fr; }
  .cta-box { padding: 24px 16px; }
  .footer-nav ul { flex-direction: column; gap: 8px; }
}
