:root {
  --bg: #fbfbf9; --surface: #ffffff; --text: #1f2328; --muted: #5f6670; --line: #e3e3de;
  --accent: #1d6b5f; --accent-text: #ffffff; --soft: #eef5f3; --warn: #8a5a00;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #15181b; --surface: #1d2125; --text: #e6e6e3; --muted: #a3a9b0; --line: #30363c;
    --accent: #4fb3a3; --accent-text: #0f1a18; --soft: #1f2b29; --warn: #e0b04a; }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); line-height: 1.85;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Noto Sans JP", sans-serif; font-size: 16px; }
.wrap { max-width: 760px; margin: 0 auto; padding: 0 16px; }
a { color: var(--accent); }
.site-header { border-bottom: 1px solid var(--line); background: var(--surface); padding: 14px 0; }
.logo { font-weight: 700; font-size: 1.2rem; text-decoration: none; color: var(--text); }
.tagline { margin: 2px 0 0; color: var(--muted); font-size: .85rem; }
main { padding: 24px 16px 48px; }
h1 { font-size: 1.6rem; line-height: 1.4; margin: .4em 0; }
h2 { font-size: 1.3rem; margin-top: 2.2em; padding-bottom: .3em; border-bottom: 2px solid var(--accent); }
h3 { font-size: 1.1rem; margin-top: 1.8em; }
.pr { font-size: .8rem; color: var(--muted); margin: 0; }
.draft { display: inline-block; background: var(--warn); color: var(--bg); padding: 0 8px; border-radius: 4px; font-size: .8rem; }
.dates, .note { color: var(--muted); font-size: .85rem; }
.lead { color: var(--muted); }
.toc { background: var(--soft); border-radius: 8px; padding: 12px 20px; margin: 20px 0; }
.toc p { margin: 0; font-weight: 700; }
.table-wrap { overflow-x: auto; margin: 16px 0; }
table { border-collapse: collapse; width: 100%; font-size: .9rem; background: var(--surface); }
th, td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
thead th { background: var(--soft); }
.compare tbody th { white-space: nowrap; }
.tool-card { border: 1px solid var(--line); border-radius: 10px; padding: 16px 20px; margin: 20px 0; background: var(--surface); }
.tool-name { font-weight: 700; font-size: 1.1rem; margin: 0; }
.btn { display: inline-block; background: var(--accent); color: var(--accent-text); padding: 8px 18px; border-radius: 6px;
  text-decoration: none; font-weight: 700; font-size: .9rem; white-space: nowrap; }
.btn-plain { background: transparent; color: var(--accent); border: 1px solid var(--accent); }
blockquote { margin: 16px 0; padding: 8px 16px; border-left: 4px solid var(--accent); background: var(--soft); }
code { background: var(--soft); padding: 1px 5px; border-radius: 4px; }
.article-list { list-style: none; padding: 0; }
.article-list li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.article-list span { color: var(--muted); font-size: .8rem; white-space: nowrap; }
.site-footer { border-top: 1px solid var(--line); padding: 20px 0; font-size: .85rem; color: var(--muted); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 16px; }
@media (max-width: 640px) {
  .compare thead { display: none; }
  .compare, .compare tbody, .compare tr, .compare th, .compare td { display: block; width: 100%; }
  .compare tr { border: 1px solid var(--line); border-radius: 10px; margin-bottom: 14px; padding: 12px 14px; background: var(--surface); }
  .compare th, .compare td { border: none; padding: 4px 0; }
  .compare tbody th { font-size: 1.05rem; white-space: normal; border-bottom: 1px solid var(--line); padding-bottom: 8px; margin-bottom: 4px; }
  .compare td[data-label]::before { content: attr(data-label); display: block; font-size: .75rem; font-weight: 700; color: var(--muted); }
  .compare td:last-child { padding-top: 8px; }
}
