:root {
  --bg: #f7f8fa;
  --surface: #ffffff;
  --text: #1a1f2e;
  --muted: #5b6472;
  --accent: #2f7d4f;
  --accent-dark: #22603c;
  --accent-soft: #e7f4ec;
  --border: #e4e7ec;
  --yellow: #f6c343;
  --radius: 14px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

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

/* ---------- Header ---------- */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 50;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 60px;
}
.logo {
  font-size: 1.25rem; font-weight: 800; color: var(--text);
  display: flex; align-items: center; gap: 8px;
}
.logo:hover { text-decoration: none; color: var(--text); }
.logo .tile {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 7px;
  background: var(--accent); color: #fff; font-size: .95rem;
}
.nav { display: flex; gap: 22px; }
.nav a { color: var(--muted); font-weight: 600; font-size: .95rem; }
.nav a:hover { color: var(--accent); text-decoration: none; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, #1f6a41 0%, #2f7d4f 55%, #3f9462 100%);
  color: #fff; padding: 56px 0 48px;
}
.hero h1 { font-size: 2.2rem; line-height: 1.2; margin-bottom: 14px; }
.hero p { font-size: 1.08rem; opacity: .92; max-width: 640px; }
.hero .updated {
  display: inline-block; margin-top: 18px; padding: 6px 14px;
  background: rgba(255,255,255,.16); border-radius: 999px; font-size: .85rem;
}

/* ---------- Cards ---------- */
.section { padding: 40px 0 8px; }
.section-title {
  font-size: 1.4rem; margin-bottom: 18px;
  display: flex; align-items: center; gap: 10px;
}
.section-title::before {
  content: ""; width: 5px; height: 22px; border-radius: 3px; background: var(--accent);
}
.card-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 18px;
}
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px;
  transition: box-shadow .15s ease, transform .15s ease;
  display: flex; flex-direction: column;
}
.card:hover { box-shadow: 0 8px 24px rgba(20,30,50,.08); transform: translateY(-2px); }
.card .tag {
  align-self: flex-start; font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .04em;
  background: var(--accent-soft); color: var(--accent-dark);
  padding: 3px 10px; border-radius: 999px; margin-bottom: 12px;
}
.card h3 { font-size: 1.12rem; margin-bottom: 8px; }
.card h3 a { color: var(--text); }
.card h3 a:hover { color: var(--accent); text-decoration: none; }
.card p { color: var(--muted); font-size: .93rem; flex: 1; }
.card .meta { margin-top: 14px; font-size: .8rem; color: #97a0ad; }

/* ---------- Article ---------- */
.article-wrap { max-width: 760px; margin: 0 auto; padding: 36px 20px 56px; }
.breadcrumb { font-size: .85rem; color: var(--muted); margin-bottom: 18px; }
.breadcrumb a { color: var(--muted); }
.article h1 { font-size: 2rem; line-height: 1.25; margin-bottom: 10px; }
.article .post-meta { color: var(--muted); font-size: .88rem; margin-bottom: 26px; }
.article h2 { font-size: 1.42rem; margin: 36px 0 14px; }
.article h3 { font-size: 1.14rem; margin: 26px 0 10px; }
.article p { margin-bottom: 16px; }
.article ul, .article ol { margin: 0 0 16px 22px; }
.article li { margin-bottom: 8px; }

.answer-box {
  background: var(--accent-soft);
  border: 1px solid #cbe6d5;
  border-left: 5px solid var(--accent);
  border-radius: 10px;
  padding: 18px 22px; margin: 22px 0;
}
.answer-box .label {
  font-size: .78rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .05em; color: var(--accent-dark); margin-bottom: 6px;
}
.answer-box .answer {
  font-size: 1.7rem; font-weight: 800; letter-spacing: .14em;
  color: var(--text); text-transform: uppercase;
}
.hint-list li { margin-bottom: 10px; }

.spoiler-note {
  background: #fdf6e3; border: 1px solid #f0e2b6;
  border-radius: 10px; padding: 12px 16px;
  font-size: .9rem; color: #7a6420; margin: 18px 0;
}

table.guide-table {
  width: 100%; border-collapse: collapse; margin: 18px 0 24px;
  background: var(--surface); border-radius: 10px; overflow: hidden;
  border: 1px solid var(--border); font-size: .95rem;
}
table.guide-table th, table.guide-table td {
  padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--border);
}
table.guide-table th { background: #f0f3f7; font-weight: 700; }
table.guide-table tr:last-child td { border-bottom: none; }

.faq-item {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; padding: 16px 20px; margin-bottom: 12px;
}
.faq-item h3 { margin: 0 0 6px; font-size: 1.02rem; }

.related-box {
  margin-top: 44px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius); padding: 24px;
}
.related-box h2 { margin-top: 0; font-size: 1.2rem; }

/* ---------- Ad placeholders ---------- */
.ad-slot {
  margin: 30px auto; min-height: 90px; max-width: 728px;
  border: 1.5px dashed #c3cad4; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: #9aa3af; font-size: .82rem; letter-spacing: .08em;
  background: #fbfcfd; text-transform: uppercase;
}

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 60px; background: #141a26; color: #aeb6c2;
  padding: 40px 0 26px; font-size: .9rem;
}
.footer-inner { display: flex; flex-wrap: wrap; gap: 28px; justify-content: space-between; }
.footer-inner h4 { color: #fff; font-size: .95rem; margin-bottom: 10px; }
.footer-inner a { color: #aeb6c2; display: block; margin-bottom: 6px; }
.footer-inner a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid #263043; margin-top: 28px; padding-top: 18px;
  font-size: .8rem; color: #7c8696; text-align: center;
}

/* ---------- Static pages ---------- */
.page-body { max-width: 760px; margin: 0 auto; padding: 40px 20px 60px; }
.page-body h1 { font-size: 1.9rem; margin-bottom: 18px; }
.page-body h2 { font-size: 1.25rem; margin: 28px 0 10px; }
.page-body p { margin-bottom: 14px; }

@media (max-width: 640px) {
  .hero h1 { font-size: 1.6rem; }
  .nav { gap: 14px; }
  .nav a { font-size: .85rem; }
  .article h1 { font-size: 1.55rem; }
}
