:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --text: #1f2421;
  --muted: #5d6660;
  --line: #e3e1da;
  --accent: #1f6b3a;
  --accent-soft: #e6f1e9;
  --pop: #c2185b;
  --pop-soft: #fbe6ee;
  --bar: #2e7d4f;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141716;
    --surface: #1c201e;
    --text: #e9ece9;
    --muted: #a2aba5;
    --line: #2e3431;
    --accent: #7fcf9b;
    --accent-soft: #1f2e25;
    --pop: #f48fb1;
    --pop-soft: #34202a;
    --bar: #6fbf8c;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", Meiryo, sans-serif;
  line-height: 1.85;
  font-size: 16px;
}
a { color: var(--accent); }
img { max-width: 100%; height: auto; }

.wrap { max-width: 880px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }

/* header */
.site-header { border-bottom: 1px solid var(--line); background: var(--surface); }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px; padding-top: 12px; padding-bottom: 12px; }
.logo { font-weight: 800; font-size: 20px; letter-spacing: .04em; color: var(--text); text-decoration: none; }
.nav { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 14px; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover { color: var(--accent); }

/* main */
.main { padding-top: 24px; padding-bottom: 56px; }
.breadcrumb { font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.breadcrumb a { color: var(--muted); }
h1 { font-size: 28px; line-height: 1.45; margin: 8px 0 12px; }
h2 { font-size: 21px; line-height: 1.5; margin: 44px 0 12px; padding-bottom: 6px; border-bottom: 2px solid var(--line); }
h3 { font-size: 17px; margin: 28px 0 8px; }
p, ul, ol { margin: 0 0 16px; }
li { margin-bottom: 4px; }
.lead { font-size: 17px; color: var(--muted); }
.meta { font-size: 13px; color: var(--muted); margin-bottom: 24px; }

/* hero (top) */
.hero { padding: 24px 0 8px; }
.hero h1 { font-size: 30px; }

/* service cards */
.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin: 20px 0; }
.service { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 20px; display: flex; flex-direction: column; }
.service-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.service-head img { width: 52px; height: 52px; border-radius: 12px; }
.service-head h3 { margin: 0; font-size: 18px; }
.service-head .kind { font-size: 12px; color: var(--muted); }
.service p { flex: 1; }

.btn { display: inline-block; padding: 10px 18px; border-radius: 999px; background: var(--accent); color: var(--bg); text-decoration: none; font-weight: 700; font-size: 15px; }
.btn.pop { background: var(--pop); }
.btn.ghost { background: transparent; color: var(--accent); border: 1px solid var(--accent); }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0; }

/* article cards */
.cards { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; }
.card { margin: 0; }
.card a { display: block; height: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px; text-decoration: none; color: var(--text); }
.card a:hover { border-color: var(--accent); }
.card h3 { margin: 6px 0; font-size: 16px; line-height: 1.55; }
.card p { font-size: 14px; color: var(--muted); margin: 0 0 8px; }
.tag { display: inline-block; font-size: 12px; padding: 1px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); }
.date { font-size: 12px; color: var(--muted); }

/* data */
.note { background: var(--accent-soft); border-radius: 10px; padding: 12px 16px; font-size: 14px; margin: 16px 0; }
.point { border-left: 4px solid var(--accent); background: var(--surface); padding: 12px 16px; margin: 20px 0; border-radius: 0 10px 10px 0; }
.point strong { display: block; margin-bottom: 2px; }
.table-wrap { overflow-x: auto; margin: 16px 0 20px; }
table { border-collapse: collapse; width: 100%; font-size: 15px; background: var(--surface); }
th, td { border-bottom: 1px solid var(--line); padding: 8px 10px; text-align: left; white-space: nowrap; }
th { font-size: 13px; color: var(--muted); font-weight: 600; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }

.bars { margin: 16px 0 20px; }
.bar-row { display: grid; grid-template-columns: 8.5em 1fr 4.2em; align-items: center; gap: 10px; font-size: 14px; margin-bottom: 6px; }
.bar-track { background: var(--line); border-radius: 4px; height: 12px; overflow: hidden; }
.bar-fill { background: var(--bar); height: 100%; border-radius: 4px; }
.bar-fill.neg { background: var(--pop); }
.bar-val { text-align: right; font-variant-numeric: tabular-nums; }

/* screenshots */
.shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 16px 0; }
.shots img { border-radius: 12px; border: 1px solid var(--line); }
.feature-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; list-style: none; padding: 0; }
.feature-list li { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin: 0; }
.feature-list strong { display: block; }

dl.info { display: grid; grid-template-columns: 9em 1fr; gap: 8px 16px; }
dl.info dt { color: var(--muted); }
dl.info dd { margin: 0; }

/* footer */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); padding-top: 24px; font-size: 14px; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.footer-name { font-weight: 800; margin: 0 0 4px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 4px 16px; max-width: 460px; }
.footer-nav a { color: var(--muted); }
.copyright { color: var(--muted); font-size: 12px; padding-top: 16px; padding-bottom: 24px; }

@media (max-width: 560px) {
  h1, .hero h1 { font-size: 24px; }
  h2 { font-size: 19px; }
  dl.info { grid-template-columns: 1fr; gap: 0; }
  dl.info dd { margin-bottom: 10px; }
  .bar-row { grid-template-columns: 7.8em 1fr 3.6em; gap: 8px; font-size: 13px; }
}
