/* Light blue theme */
:root{
  --bg:#e8f2ff;
  --card:#ffffff;
  --text:#0f172a;
  --muted:#475569;
  --line:#c7d2fe;
  --accent:#3b82f6;
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
  background: linear-gradient(180deg, #f2f8ff, #e8f2ff);
  color:var(--text);
}
.wrap{max-width:1000px; margin:0 auto; padding:18px}
.title-row{display:flex; align-items:center; justify-content:space-between; gap:12px}
h1{margin:0}
.sub{margin:10px 0 0; color:var(--muted); line-height:1.45}
.grid{display:grid; grid-template-columns: 1fr; gap:14px}
@media(min-width: 920px){ .grid{grid-template-columns: 1fr 1fr} }
.card{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:14px;
  padding:14px 14px 16px;
  box-shadow: 0 10px 24px rgba(2,6,23,.06);
}
h2{margin:0 0 10px; font-size:18px}
h3{margin:0 0 8px; font-size:15px; color:var(--muted)}
.badge{
  padding:6px 10px;
  border:1px solid var(--line);
  border-radius:999px;
  font-weight:800;
  background:rgba(255,255,255,.7);
}
.form{display:grid; gap:10px}
label{display:grid; gap:6px}
label span{color:var(--muted); font-size:13px}
input{
  padding:12px 12px;
  border-radius:10px;
  border:1px solid var(--line);
  font-size:16px;
  outline:none;
}
input:focus{border-color: rgba(59,130,246,.7); box-shadow: 0 0 0 3px rgba(59,130,246,.15)}
.btn-row{display:flex; gap:10px; margin-top:4px}
button{
  border-radius:10px;
  border:1px solid var(--line);
  padding:10px 12px;
  font-weight:800;
  background:#fff;
  color:var(--text);
}
button.primary{ background:var(--accent); color:#fff; border-color: rgba(59,130,246,.8)}
button.ghost{ background:#fff }
.note{margin-top:10px; color:var(--muted)}
.note summary{cursor:pointer}
.small-note{margin:10px 0 0; font-size:12px; color:var(--muted)}
.result{display:grid; gap:8px}
.result-row{display:grid; grid-template-columns: 90px 1fr; gap:10px; align-items:baseline}
.result-row .k{color:var(--muted); font-size:13px}
.result-row .v{font-size:26px; font-weight:900}
.result-row .s{grid-column: 2 / -1; color:var(--muted); font-size:13px; margin-top:-4px}
.result-row.small .v{font-size:16px; font-weight:800}
.hr{height:1px; background:var(--line); margin:12px 0}
.table-wrap{overflow:auto; border-radius:12px; border:1px solid var(--line)}
table{width:100%; border-collapse:collapse; min-width:640px; background:#fff}
thead th{
  text-align:left;
  font-size:12px;
  color:var(--muted);
  padding:10px 10px;
  border-bottom:1px solid var(--line);
  background:rgba(199,210,254,.15);
}
tbody td{
  padding:10px 10px;
  border-bottom:1px solid rgba(199,210,254,.55);
  font-size:13px;
}
tbody tr:last-child td{border-bottom:none}
.foot{color:var(--muted); font-size:12px; margin:10px 0 0}
.footer{color:var(--muted); font-size:12px; padding-top:6px; padding-bottom:24px}
