:root{
  --bg:#0b0f17;
  --card:#121a27;
  --text:#e8eef7;
  --muted:#a9b7cc;
  --line:rgba(255,255,255,.10);
  --accent:#72e3b6;
}

*{box-sizing:border-box}
body{
  margin:0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans JP", sans-serif;
  background: linear-gradient(180deg, #0b0f17, #070a10);
  color:var(--text);
}

a{color:inherit; text-decoration:none}
.container{max-width:960px; margin:0 auto; padding:16px}

.site-header{
  position:sticky; top:0;
  background: rgba(11,15,23,.86);
  backdrop-filter: blur(10px);
  border-bottom:1px solid var(--line);
  z-index:10;
}

.brand{display:flex; flex-direction:column; gap:2px}
.brand-link{font-weight:800; letter-spacing:.2px}
.tagline{color:var(--muted); font-size:12px}

.nav{display:flex; gap:12px; flex-wrap:wrap; margin-top:10px}
.nav-link{
  padding:8px 10px;
  border:1px solid var(--line);
  border-radius:12px;
  color:var(--muted);
}
.nav-link:hover{border-color:rgba(114,227,182,.5); color:var(--text)}

.main{padding-top:20px; padding-bottom:40px}
.h1{margin:0 0 8px; font-size:28px}
.h2{margin:18px 0 8px; font-size:18px}
.lead{margin:0 0 18px; color:var(--muted)}

.cards{display:grid; grid-template-columns:repeat(3, 1fr); gap:12px}
@media (max-width: 840px){ .cards{grid-template-columns:1fr} }

.card{
  display:block;
  background:var(--card);
  border:1px solid var(--line);
  border-radius:18px;
  padding:14px;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
}
.card:hover{border-color:rgba(114,227,182,.5)}
.card-title{font-weight:800; margin-bottom:6px}
.card-desc{color:var(--muted); font-size:13px; line-height:1.5}

.panel{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:18px;
  padding:14px;
}
.grid2{display:grid; grid-template-columns:repeat(2, 1fr); gap:12px}
.grid3{display:grid; grid-template-columns:repeat(3, 1fr); gap:12px}
@media (max-width: 840px){
  .grid2, .grid3{grid-template-columns:1fr}
}

.field{display:flex; flex-direction:column; gap:6px}
.label{color:var(--muted); font-size:13px}
.hint{color:var(--muted); font-size:12px; margin-top:6px}

input, select, textarea{
  width:100%;
  padding:10px 12px;
  border-radius:14px;
  border:1px solid var(--line);
  background:#0d1420;
  color:var(--text);
  outline:none;
}
textarea{resize:vertical; min-height:120px}
input:focus, select:focus, textarea:focus{border-color:rgba(114,227,182,.6)}

.btn{
  margin-top:12px;
  padding:10px 14px;
  border-radius:14px;
  border:1px solid rgba(114,227,182,.55);
  background: rgba(114,227,182,.15);
  color:var(--text);
  cursor:pointer;
  font-weight:700;
}
.btn:hover{background: rgba(114,227,182,.22)}
.btn.ghost{
  border-color:var(--line);
  background:transparent;
  color:var(--muted);
}
.btn.ghost:hover{color:var(--text); border-color:rgba(114,227,182,.5)}

.result{margin-top:14px; border-top:1px solid var(--line); padding-top:14px}
.result-title{font-weight:800; margin-bottom:8px}
.result-box, .pre{
  white-space:pre-wrap;
  background:#0d1420;
  border:1px solid var(--line);
  border-radius:14px;
  padding:12px;
  margin:0;
  color:var(--text);
}
.kpi{font-size:22px; font-weight:900}

.note{
  margin-top:18px;
  border:1px dashed var(--line);
  border-radius:18px;
  padding:14px;
  color:var(--muted);
}

.site-footer{
  border-top:1px solid var(--line);
  background: rgba(11,15,23,.6);
}
.footer-grid{display:flex; justify-content:space-between; gap:12px; flex-wrap:wrap}
.footer-title{font-weight:800}
.footer-text{color:var(--muted); font-size:13px; margin-top:6px}
.footer-links{display:flex; gap:12px; align-items:center}
.footer-links a{color:var(--muted)}
.footer-links a:hover{color:var(--text)}