:root {
  --brand: #1f4e46;
  --brand-light: #e8f1ef;
  --ink: #22303a;
  --muted: #6b7a86;
  --line: #e3e8ec;
  --bg: #f7f8f9;
  --card: #ffffff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family:
    "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", Meiryo,
    system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.8;
}

a {
  color: var(--brand);
}

.container {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Notification bar */
.site-notice {
  background: #fff8e6;
  border-bottom: 1px solid #f0e0b8;
  color: #6b5a2e;
  font-size: 13px;
  line-height: 1.5;
  padding: 10px 20px;
  text-align: center;
}

/* Header */
.site-header {
  background: var(--card);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  font-size: 20px;
}

.brand-text {
  font-weight: 700;
  letter-spacing: 0.04em;
}

.brand-text small {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0.1em;
}

.header-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  font-size: 13px;
}

.header-nav a {
  text-decoration: none;
  color: var(--muted);
  padding: 4px 2px;
  border-bottom: 2px solid transparent;
}

.header-nav a:hover,
.header-nav a.active {
  color: var(--brand);
  border-bottom-color: var(--brand);
}

/* Hero */
.hero {
  text-align: center;
  padding: 48px 0 24px;
}

.hero h1 {
  font-size: 30px;
  margin: 0 0 8px;
}

.hero p {
  color: var(--muted);
  margin: 0 0 20px;
}

/* Sections */
.section {
  margin: 40px 0;
}

.section h2 {
  font-size: 20px;
  border-left: 4px solid var(--brand);
  padding-left: 10px;
}

/* Category grid */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}

.category-card {
  display: block;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px;
  text-decoration: none;
  color: var(--ink);
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}

.category-card:hover {
  border-color: var(--brand);
  box-shadow: 0 2px 10px rgba(31, 78, 70, 0.1);
}

.category-icon {
  font-size: 24px;
  display: block;
}

.category-name {
  display: block;
  font-weight: 700;
  margin: 6px 0 4px;
}

.category-desc {
  display: block;
  font-size: 12px;
  color: var(--muted);
}

/* Popular list */
.popular-list {
  list-style: none;
  margin: 0;
  padding: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.popular-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}

.popular-list li:last-child {
  border-bottom: none;
}

.popular-category {
  flex-shrink: 0;
  font-size: 11px;
  color: var(--brand);
  background: var(--brand-light);
  border-radius: 999px;
  padding: 2px 10px;
}

/* Breadcrumbs */
.breadcrumbs {
  font-size: 12px;
  margin: 18px 0;
}

.breadcrumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  color: var(--muted);
}

.breadcrumbs li + li::before {
  content: "›";
  margin-right: 6px;
}

/* Category page */
.page-head h1 {
  font-size: 24px;
  margin-bottom: 4px;
}

.page-head p {
  color: var(--muted);
  margin-top: 0;
}

.article-list {
  list-style: none;
  margin: 24px 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.article-item a {
  display: flex;
  gap: 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px 18px;
  text-decoration: none;
  color: var(--ink);
}

.article-item a:hover {
  border-color: var(--brand);
}

.article-q {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
}

.article-title {
  display: block;
  font-weight: 700;
}

.article-summary {
  display: block;
  font-size: 12px;
  color: var(--muted);
}

/* Article page */
.faq-article {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 28px 32px;
  margin-bottom: 32px;
}

.article-category {
  font-size: 12px;
  color: var(--brand);
  margin: 0;
}

.faq-article h1 {
  font-size: 22px;
  margin: 6px 0 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.article-body h2 {
  font-size: 16px;
  margin-top: 28px;
  padding-left: 10px;
  border-left: 4px solid var(--brand);
}

.article-body ul,
.article-body ol {
  padding-left: 22px;
}

.article-body li {
  margin: 4px 0;
}

/* Widget slots */
.widget-slot {
  max-width: 640px;
  margin: 0 auto;
}

.widget-section {
  text-align: center;
  background: var(--brand-light);
  border-radius: 10px;
  padding: 28px 20px;
  margin: 32px 0;
}

.widget-section h2 {
  font-size: 18px;
  margin: 0 0 4px;
}

.widget-section p {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 16px;
}

/* Related */
.related-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 8px;
}

/* Footer */
.site-footer {
  margin-top: 56px;
  border-top: 1px solid var(--line);
  background: var(--card);
}

.footer-inner {
  padding: 24px 20px;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 600px) {
  .hero h1 {
    font-size: 24px;
  }

  .faq-article {
    padding: 20px;
  }
}
