/* 道具箱 共通デザイン（外部フォント・外部ライブラリ不使用） */
:root {
  --ink: #232a35;
  --muted: #5b6572;
  --faint: #93a0b4;
  --accent: #2b59c3;
  --accent-dark: #21479e;
  --accent-tint: #edf2fc;
  --accent-line: #d3e0f6;
  --line: #dde3ec;
  --line-strong: #c3ccd9;
  --bg: #edf0f5;
  --surface: #ffffff;
  --radius: 12px;
}
* { box-sizing: border-box; }
::selection { background: #c9dbff; }
html { background: var(--bg); }
body {
  font-family: system-ui, -apple-system, "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
  margin: 28px auto 44px;
  max-width: 780px;
  padding: 38px 42px 50px;
  color: var(--ink);
  background: var(--surface);
  border-radius: 18px;
  box-shadow: 0 1px 3px rgba(31, 41, 55, .06), 0 16px 40px rgba(31, 41, 55, .07);
  line-height: 1.8;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
@media (max-width: 840px) {
  html { background: var(--surface); }
  body { margin: 0 auto; border-radius: 0; box-shadow: none; padding: 24px 18px 44px; }
}
header.site-header {
  margin-bottom: 26px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
header.site-header .site-name { font-size: 1rem; font-weight: 700; margin: 0; letter-spacing: .04em; }
header.site-header .site-name a { color: var(--muted); text-decoration: none; }
header.site-header .site-name a::before {
  content: "";
  display: inline-block;
  width: 9px; height: 9px;
  margin-right: 8px;
  border-radius: 3px;
  background: var(--accent);
  vertical-align: 1px;
}
header.site-header .site-name a:hover { color: var(--accent); text-decoration: none; }
h1 { font-size: 1.65rem; margin: 0 0 8px; line-height: 1.4; letter-spacing: .02em; font-weight: 800; }
h2 {
  font-size: 1.16rem;
  margin: 36px 0 10px;
  line-height: 1.5;
  padding-left: 11px;
  border-left: 4px solid var(--accent);
}
p.lead { margin: 0 0 20px; color: var(--muted); }
a { color: var(--accent); }
a:hover { color: var(--accent-dark); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
textarea, input, select {
  font-size: 16px;
  font-family: inherit;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}
textarea::placeholder, input::placeholder { color: var(--faint); }
textarea:focus, input:focus, select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(43, 89, 195, .16);
}
textarea { width: 100%; min-height: 160px; line-height: 1.7; }
input[type="number"] { width: 7.5em; }
input[type="date"] { min-height: 44px; }
input[type="radio"], input[type="checkbox"] { accent-color: var(--accent); margin-right: 6px; }
label { display: block; margin: 12px 0 5px; font-weight: 600; font-size: .95rem; }
label.inline, .options label { display: block; font-weight: 400; font-size: 1rem; margin: 7px 0; }
.options { margin: 14px 0; }
.options .opt-title { font-weight: 600; margin: 16px 0 5px; }
button {
  font-size: 1rem;
  font-family: inherit;
  font-weight: 600;
  padding: 10px 22px;
  min-height: 44px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, box-shadow .15s ease;
}
button:hover { background: #f2f5fa; border-color: var(--faint); }
button.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 2px 8px rgba(43, 89, 195, .25);
}
button.primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
button + button { margin-left: 8px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 18px 0; }
.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  background: #fbfcfe;
}
.card .n { font-size: 1.55rem; font-weight: 700; color: var(--accent); line-height: 1.3; font-variant-numeric: tabular-nums; }
.card .l { font-size: .85rem; color: var(--muted); margin-top: 2px; }
.result-box {
  border: 1px solid var(--accent-line);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 15px 18px;
  margin: 16px 0;
  background: var(--accent-tint);
  font-size: 1.05rem;
  line-height: 1.7;
}
.result-box .big { font-size: 1.35rem; font-weight: 700; color: var(--accent-dark); }
.error { color: #b91c1c; font-weight: 600; }
.note { font-size: .88rem; color: var(--muted); }
.defs { font-size: .92rem; padding-left: 1.4em; }
.defs li { margin: 5px 0; }
table.defs-table {
  border-collapse: separate;
  border-spacing: 0;
  font-size: .92rem;
  margin: 10px 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
table.defs-table th, table.defs-table td { border-bottom: 1px solid var(--line); padding: 7px 12px; text-align: left; }
table.defs-table th { background: var(--accent-tint); font-weight: 600; }
table.defs-table tr:last-child td { border-bottom: none; }
ul.tool-list { list-style: none; padding: 0; margin: 18px 0; }
ul.tool-list li {
  border: 1px solid var(--line);
  border-radius: 14px;
  margin: 12px 0;
  background: #fff;
  box-shadow: 0 1px 2px rgba(31, 41, 55, .04);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
ul.tool-list li:not(.coming):hover {
  transform: translateY(-2px);
  border-color: #b7c9ec;
  box-shadow: 0 6px 18px rgba(31, 41, 55, .09);
}
ul.tool-list a { display: block; position: relative; padding: 16px 38px 16px 18px; text-decoration: none; color: var(--ink); border-radius: 14px; }
ul.tool-list a::after {
  content: "›";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.35rem;
  color: var(--faint);
}
ul.tool-list a:hover::after { color: var(--accent); }
ul.tool-list .tool-name { font-size: 1.1rem; font-weight: 700; color: var(--accent); }
ul.tool-list .tool-desc { font-size: .9rem; color: var(--muted); margin-top: 3px; line-height: 1.65; }
ul.tool-list li.coming {
  padding: 16px 18px;
  color: var(--faint);
  border-style: dashed;
  box-shadow: none;
  background: #fafbfc;
}
ul.tool-list li.coming .tool-name { color: var(--faint); font-size: 1rem; }
footer.site-footer { margin-top: 48px; padding-top: 16px; border-top: 1px solid var(--line); font-size: .88rem; color: var(--muted); }
footer.site-footer a { color: var(--muted); }
footer.site-footer a:hover { color: var(--accent); }
footer.site-footer .sister { margin: 10px 0 0; }
footer.site-footer .sister a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
footer.site-footer .sister a:hover { color: var(--accent); }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; }
.row > div { flex: 0 1 auto; }
