/* assets/style.css (final) */
:root{
  --bg:#0b1020;
  --card:#111938;
  --text:#e9ecff;
  --muted:#aab1d6;
  --line:#273064;
  --ok:#2ecc71;
  --warn:#f1c40f;
  --bad:#ff5c5c;
}

*{box-sizing:border-box}
body{
  margin:0;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,"Noto Sans JP","Hiragino Kaku Gothic ProN","Yu Gothic";
  background:linear-gradient(180deg,#070a14,#0b1020);
  color:var(--text);
}
a{color:inherit}

.wrap{max-width:920px;margin:0 auto;padding:28px 16px 40px}

.header{margin-bottom:18px}
.header h1{margin:0;font-size:28px;letter-spacing:.2px}
.brand{text-decoration:none}
.sub{margin:8px 0 0;color:var(--muted)}

.card{
  background:rgba(17,25,56,.88);
  border:1px solid var(--line);
  border-radius:16px;
  padding:18px;
  margin:14px 0;
  box-shadow:0 14px 40px rgba(0,0,0,.25)
}

.h2{margin:0 0 12px;font-size:18px}

.form{display:flex;flex-direction:column;gap:10px}
.label{font-weight:700}
.input{
  width:100%;
  padding:12px 12px;
  border-radius:12px;
  border:1px solid var(--line);
  background:#0a0f26;
  color:var(--text);
  outline:none
}
.input:focus{border-color:#5b6cff}

.textarea{
  width:100%;
  min-height:140px;
  padding:12px 12px;
  border-radius:12px;
  border:1px solid var(--line);
  background:#0a0f26;
  color:var(--text);
  outline:none;
  resize:vertical;
}

.row{display:flex;gap:12px;align-items:center;flex-wrap:wrap}
.btn{
  display:inline-block;
  padding:10px 14px;
  border-radius:12px;
  border:1px solid #3b4aa6;
  background:#1a2a8a;
  color:var(--text);
  text-decoration:none;
  font-weight:700;
  cursor:pointer
}
.btn:hover{filter:brightness(1.08)}
.link{color:var(--muted);text-decoration:underline}

.hint{color:var(--muted);font-size:13px;margin:6px 0 0}

.grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-top:10px}
@media (max-width:820px){.grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

.kpi{
  border:1px solid var(--line);
  border-radius:14px;
  padding:10px;
  background:rgba(10,15,38,.65)
}
.kpi-label{color:var(--muted);font-size:12px}
.kpi-value{font-size:20px;font-weight:800;margin-top:2px}

.badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid var(--line);
  font-size:13px
}
.badge.ok{border-color:rgba(46,204,113,.5)}
.badge.warn{border-color:rgba(241,196,15,.5)}
.badge.bad{border-color:rgba(255,92,92,.55)}

.mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace}
.box{
  padding:10px;
  border-radius:12px;
  border:1px solid var(--line);
  background:rgba(10,15,38,.65);
  white-space:pre-wrap
}

.item{margin-top:12px}
.item-head{display:flex;gap:10px;align-items:center;justify-content:space-between;margin-bottom:8px}
.label2{color:var(--muted);font-weight:700}
.list{margin:0;padding-left:18px;color:var(--text)}

.footer{margin-top:22px;color:var(--muted)}

/* nav (header links) */
.nav{display:flex;gap:12px;flex-wrap:wrap;margin-top:12px}
.nav a{
  color:var(--muted);
  text-decoration:none;
  border:1px solid var(--line);
  padding:6px 10px;
  border-radius:999px;
  background:rgba(10,15,38,.35)
}
.nav a:hover{filter:brightness(1.08)}

/* horizontal rule */
.hr{border:0;border-top:1px solid var(--line);margin:16px 0}

/* summary (NG/注意/OK件数) */
.summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:10px}
@media (max-width:820px){.summary{grid-template-columns:1fr}}
.sum{
  border:1px solid var(--line);
  border-radius:14px;
  padding:10px;
  background:rgba(10,15,38,.65);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px
}
.sum-label{color:var(--muted);font-weight:800}
.sum-value{white-space:nowrap}

/* details (folding NG/注意 section) */
.details{border:1px solid var(--line);border-radius:14px;background:rgba(10,15,38,.45);padding:10px}
.summaryline{cursor:pointer;display:flex;align-items:center;gap:10px;flex-wrap:wrap;list-style:none}
.summaryline::-webkit-details-marker{display:none}
.details[open]{background:rgba(10,15,38,.65)}
.list.compact li{margin:10px 0}

/* scoring */
.scorebox{display:flex;gap:14px;align-items:center;justify-content:space-between;flex-wrap:wrap}
.scorebig{
  border:1px solid var(--line);
  border-radius:16px;
  padding:14px 16px;
  background:rgba(10,15,38,.65);
  min-width:220px
}
.score-num{font-size:44px;font-weight:900;line-height:1}
.score-grade{color:var(--muted);margin-top:6px;font-weight:800}
.muted{color:var(--muted);font-size:13px}

/* tips */
.tips{
  margin-top:8px;
  border:1px dashed var(--line);
  border-radius:12px;
  padding:10px;
  background:rgba(255,255,255,.03)
}
.tips-title{font-weight:800;color:var(--muted);font-size:13px;margin-bottom:6px}
.tips-list{margin:0;padding-left:18px;color:var(--text)}
.tips-list li{margin:6px 0}

/* examples (good/bad) */
.examples{margin-top:10px}
.examples-title{font-weight:800;color:var(--muted);font-size:13px;margin-bottom:6px}
.example{border-radius:10px;padding:8px 10px;margin:6px 0;font-size:13px}
.example.bad{background:rgba(255,92,92,.08);border:1px solid rgba(255,92,92,.3)}
.example.good{background:rgba(46,204,113,.08);border:1px solid rgba(46,204,113,.3)}

/* template (copy-paste) */
.template{margin-top:10px}
.template-title{font-weight:800;color:var(--muted);font-size:13px;margin-bottom:6px}
.template-box{
  width:100%;
  min-height:64px;
  padding:10px;
  border-radius:10px;
  border:1px solid var(--line);
  background:rgba(10,15,38,.65);
  color:var(--text);
  font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;
  resize:vertical;
}

/* difficulty badge */
.diff{
  display:inline-flex;
  align-items:center;
  padding:4px 8px;
  border-radius:999px;
  border:1px solid var(--line);
  font-size:12px;
  color:var(--muted);
  margin-left:8px;
  white-space:nowrap
}
.diff-low{border-color:rgba(46,204,113,.45)}
.diff-mid{border-color:rgba(241,196,15,.45)}
.diff-high{border-color:rgba(255,92,92,.45)}

/* footer links */
.foot-links{display:flex;gap:12px;flex-wrap:wrap;margin:10px 0}
.foot-links a{
  color:var(--muted);
  text-decoration:none;
  border:1px solid var(--line);
  padding:6px 10px;
  border-radius:999px;
  background:rgba(10,15,38,.25)
}
.foot-links a:hover{filter:brightness(1.08)}
.foot-bottom{margin-top:10px}
.foot-bottom a{color:var(--muted);text-decoration:underline}

/* honeypot */
.hp{position:absolute;left:-9999px;top:-9999px;height:1px;width:1px;overflow:hidden}
