:root {
  --bg: #f7f6f2;
  --surface: #ffffff;
  --text: #22262b;
  --muted: #5d6670;
  --line: #dcd9d0;
  --accent: #1f5f8b;
  --accent-soft: #e6eff6;
  --total: #0f3d5c;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15181b;
    --surface: #1e2226;
    --text: #e6e8ea;
    --muted: #a3abb3;
    --line: #343a40;
    --accent: #7db6e0;
    --accent-soft: #1d2d3a;
    --total: #b9dcf5;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Hiragino Sans", "Noto Sans JP", "Yu Gothic UI", "Meiryo", sans-serif;
  line-height: 1.8;
  font-size: 16px;
}
a { color: var(--accent); }
.wrap { max-width: 760px; margin: 0 auto; padding: 0 16px; }
.site-header { border-bottom: 1px solid var(--line); background: var(--surface); padding: 12px 0; }
.brand { font-weight: 700; font-size: 1.1rem; text-decoration: none; color: var(--text); }
.tagline { margin: 0; color: var(--muted); font-size: .85rem; }
main { padding: 24px 16px 48px; }
h1 { font-size: 1.5rem; line-height: 1.45; margin: .5em 0 .8em; }
h2 { font-size: 1.2rem; margin: 2em 0 .6em; padding-bottom: .2em; border-bottom: 2px solid var(--line); }
.crumbs { font-size: .8rem; color: var(--muted); }
.tool { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 16px; margin: 24px 0; }
.tool h2 { margin-top: 0; border: 0; }
.tool-lead { color: var(--muted); margin-top: 0; }
.tool-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.tool-form label { display: flex; flex-direction: column; font-size: .85rem; color: var(--muted); }
.tool-form .wide { grid-column: 1 / -1; }
.tool-form input, .tool-form select {
  margin-top: 4px; font: inherit; font-size: 1rem; color: var(--text);
  background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 8px 10px; width: 100%;
}
.tool-form fieldset { border: 1px solid var(--line); border-radius: 6px; padding: 8px 12px; }
.tool-form label.check { flex-direction: row; align-items: flex-start; gap: 8px; color: var(--text); font-size: .9rem; }
.tool-form label.check input { width: auto; margin-top: 6px; }
.tool-result { width: 100%; border-collapse: collapse; margin-top: 16px; }
.tool-result th, .tool-result td { padding: 8px; border-bottom: 1px solid var(--line); text-align: left; font-weight: 400; }
.tool-result td { text-align: right; font-variant-numeric: tabular-nums; }
.tool-result tr.total th, .tool-result tr.total td { font-weight: 700; color: var(--total); background: var(--accent-soft); }
.tool-note { font-size: .8rem; color: var(--muted); margin-bottom: 0; }
.faq { border: 1px solid var(--line); border-radius: 6px; padding: 8px 12px; margin: 8px 0; background: var(--surface); }
.faq summary { cursor: pointer; font-weight: 600; }
.cta { margin: 32px 0; padding: 16px; border-radius: 10px; background: var(--accent-soft); }
.cta-title { font-weight: 700; margin: 0; }
.button { display: inline-block; background: var(--accent); color: var(--surface); padding: 8px 20px; border-radius: 6px; text-decoration: none; }
.soon { color: var(--muted); font-size: .9rem; }
.cards { list-style: none; padding: 0; display: grid; gap: 12px; }
.cards a { display: block; padding: 12px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; text-decoration: none; }
.cards span { display: block; color: var(--muted); font-size: .85rem; }
.hero p { color: var(--muted); }
table.legal { width: 100%; border-collapse: collapse; }
table.legal th, table.legal td { border: 1px solid var(--line); padding: 8px; text-align: left; vertical-align: top; }
table.legal th { width: 36%; background: var(--surface); font-weight: 600; }
.site-footer { border-top: 1px solid var(--line); padding: 16px 0 32px; font-size: .8rem; color: var(--muted); }
pre, table { max-width: 100%; overflow-x: auto; }
.team-link { background: var(--accent-soft); padding: 12px 16px; border-radius: 8px; }
.team-wrap { overflow-x: auto; margin: 16px 0; }
table.team { border-collapse: collapse; min-width: 640px; font-size: .9rem; background: var(--surface); }
table.team th, table.team td { border: 1px solid var(--line); padding: 8px; text-align: left; vertical-align: top; }
table.team thead th { background: var(--accent-soft); }
table.team tbody th { white-space: nowrap; }
.team-no { display: inline-block; width: 1.6em; height: 1.6em; line-height: 1.6em; text-align: center; border-radius: 50%;
  background: var(--accent); color: var(--surface); margin-right: 6px; font-size: .8rem; }
.lead { margin: 32px 0 0; padding: 16px; border-radius: 10px; border: 2px solid var(--accent); background: var(--surface); }
.free table { border-collapse: collapse; font-size: .85rem; display: block; overflow-x: auto; }
.free th, .free td { border: 1px solid var(--line); padding: 6px 8px; text-align: left; vertical-align: top; min-width: 7em; }
.free ul { padding-left: 1.2em; }
.print-hint { color: var(--muted); font-size: .8rem; }
@media print {
  .site-header, .site-footer .disclaimer + p, .print-hint { display: none; }
  body { background: #fff; color: #000; }
}
.free blockquote { margin: 0; padding: 8px 12px; border-left: 4px solid var(--line); color: var(--muted); font-size: .9rem; }
