:root {
  --bg: #f4fbf8;
  --surface: #ffffff;
  --text: #1f2d2a;
  --muted: #66736f;
  --line: #dbe8e4;
  --primary: #16876b;
  --primary-dark: #0f6651;
  --good: #16794f;
  --warn: #9a6a00;
  --danger: #b73535;
  --shadow: 0 14px 40px rgba(15, 102, 81, .12);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
}
a { color: var(--primary-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
.site-header {
  background: rgba(255, 255, 255, .9);
  border-bottom: 1px solid var(--line);
  padding: 16px 20px;
  position: sticky;
  top: 0;
  backdrop-filter: blur(8px);
  z-index: 10;
}
.header-inner {
  width: min(1040px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}
.logo { font-weight: 850; font-size: 1.08rem; color: var(--text); }
.nav { display: flex; gap: 14px; flex-wrap: wrap; font-size: .94rem; }
.container {
  width: min(1040px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 56px;
}
.hero {
  background: linear-gradient(135deg, #e4fff5, #ffffff);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 40px;
  box-shadow: var(--shadow);
}
.hero.compact { padding: 30px; }
.eyebrow {
  color: var(--primary);
  font-weight: 800;
  margin: 0 0 8px;
}
h1 {
  font-size: clamp(2rem, 5vw, 3.35rem);
  line-height: 1.15;
  margin: 0 0 16px;
}
h2 { line-height: 1.3; margin-top: 0; }
h3 { line-height: 1.4; }
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  background: var(--primary);
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 14px 22px;
  font-size: 1rem;
  font-weight: 850;
  cursor: pointer;
  margin-top: 14px;
  box-shadow: 0 8px 20px rgba(22, 135, 107, .2);
}
.button:hover { background: var(--primary-dark); color: #fff; text-decoration: none; }
.button.full { width: 100%; }
.card-grid,
.tool-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 24px;
}
.card,
.tool-card,
.result-card,
.content-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 24px;
  box-shadow: var(--shadow);
}
.content-card { margin-top: 24px; }
.card h2 { margin-bottom: 8px; }
.input-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
label {
  display: block;
  font-weight: 760;
  margin: 14px 0;
}
input, select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 1rem;
  background: #fff;
  margin-top: 6px;
}
input:focus, select:focus {
  outline: 3px solid rgba(22, 135, 107, .18);
  border-color: var(--primary);
}
.breadcrumb {
  color: var(--muted);
  font-size: .94rem;
  margin-bottom: 16px;
}
.metric {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
  gap: 12px;
}
.metric strong {
  font-size: 1.48rem;
  color: var(--primary-dark);
  text-align: right;
}
.badge {
  display: inline-block;
  border-radius: 999px;
  padding: 2px 10px;
  color: #fff;
  font-size: .86rem;
  font-weight: 850;
  margin-right: 6px;
}
.badge.good { background: var(--good); }
.badge.warn { background: var(--warn); }
.badge.danger { background: var(--danger); }
.check-list {
  padding-left: 0;
  list-style: none;
}
.check-list li {
  padding: 8px 0 8px 30px;
  position: relative;
  border-bottom: 1px solid var(--line);
}
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 900;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 12px;
}
.product-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  background: #f9fcfb;
}
.product-card p { margin: 6px 0 0; color: var(--muted); font-size: .95rem; }
.affiliate-box {
  background: #f7faf9;
  border: 1px dashed var(--primary);
  border-radius: 18px;
  padding: 16px;
  margin-top: 18px;
}
.note {
  background: #fffbea;
  border: 1px solid #f1e3a3;
  border-radius: 18px;
  padding: 16px;
}
.info-list {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 10px 18px;
  border-top: 1px solid var(--line);
  margin: 22px 0;
  padding-top: 18px;
}
.info-list dt { font-weight: 850; color: var(--muted); }
.info-list dd { margin: 0; }
details {
  border-top: 1px solid var(--line);
  padding: 14px 0;
}
summary {
  cursor: pointer;
  font-weight: 850;
}
.site-footer {
  color: var(--muted);
  text-align: center;
  border-top: 1px solid var(--line);
  padding: 30px 16px;
}
.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}
@media (max-width: 760px) {
  .hero, .hero.compact { padding: 24px; border-radius: 22px; }
  .header-inner { display: block; }
  .nav { margin-top: 8px; }
  .card-grid, .tool-layout, .product-grid { grid-template-columns: 1fr; }
  .input-grid { grid-template-columns: 1fr; }
  .metric { display: block; }
  .metric strong { display: block; text-align: left; }
  .info-list { grid-template-columns: 1fr; }
}

.menu-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 9px 12px;
  font-weight: 800;
  color: var(--text);
  cursor: pointer;
}

.menu-icon {
  width: 18px;
  height: 12px;
  display: inline-block;
  position: relative;
  border-top: 2px solid var(--text);
  border-bottom: 2px solid var(--text);
}

.menu-icon::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 18px;
  border-top: 2px solid var(--text);
}

.ad-disclosure {
  width: min(780px, calc(100% - 32px));
  margin: 0 auto 12px;
  font-size: .84rem;
  color: var(--muted);
  line-height: 1.65;
}

@media (max-width: 760px) {
  .header-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .menu-toggle {
    display: inline-flex;
    justify-self: end;
  }

  .nav {
    display: none;
    grid-column: 1 / -1;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
  }

  .nav.is-open {
    display: grid;
    gap: 8px;
  }

  .nav a {
    display: block;
    padding: 10px 12px;
    background: #f7faf9;
    border: 1px solid var(--line);
    border-radius: 14px;
  }
}

.article-meta {
  color: var(--muted);
  font-size: .94rem;
  margin-top: -4px;
}
.article-body h2 {
  margin-top: 32px;
}
.article-body ul {
  padding-left: 1.25rem;
}
.article-list {
  display: grid;
  gap: 16px;
}
.article-list article {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 20px;
  box-shadow: var(--shadow);
}
