* { box-sizing: border-box; }
body {
  font-family: "Segoe UI", "Hiragino Sans", "Noto Sans JP", sans-serif;
  background: #0f172a;
  color: #e2e8f0;
  margin: 0;
  padding: 24px 20px 40px;
  display: flex;
  justify-content: center;
  min-height: 100vh;
  line-height: 1.7;
}
.container { max-width: 680px; width: 100%; }
a { color: #93c5fd; }
nav.top { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; margin-bottom: 28px; flex-wrap: wrap; }
nav.top a { text-decoration: none; }
nav.top a:hover { text-decoration: underline; }
header, .tool { text-align: center; }
h1 {
  font-size: 28px;
  line-height: 1.35;
  margin: 0 0 8px;
  background: linear-gradient(90deg, #60a5fa, #a78bfa);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
p.sub { color: #94a3b8; margin: 0 0 28px; }

.options {
  display: flex; justify-content: center; align-items: center; gap: 8px 18px;
  margin-bottom: 16px; font-size: 14px; color: #cbd5e1; flex-wrap: wrap;
}
.options label { display: inline-flex; align-items: center; gap: 8px; }
select, button {
  font: inherit; color: #e2e8f0; background: #1e293b;
  border: 1px solid #475569; border-radius: 8px; padding: 6px 12px;
}
button { cursor: pointer; }
button:hover { border-color: #60a5fa; }
button.primary { background: #2563eb; border-color: #2563eb; font-weight: 600; padding: 10px 20px; margin-top: 14px; }
button.primary:hover { background: #3b82f6; }
:focus-visible { outline: 3px solid #60a5fa; outline-offset: 2px; }

#dropzone {
  border: 3px dashed #475569;
  border-radius: 16px;
  padding: 60px 30px;
  background: #1e293b;
  transition: all 0.2s;
  cursor: pointer;
}
#dropzone.dragover { border-color: #60a5fa; background: #1e3a5f; transform: scale(1.02); }
#dropzone.busy { opacity: 0.6; cursor: progress; }
#dropzone .dz-title { margin: 0 0 12px; font-size: 22px; font-weight: 700; color: #e2e8f0; }
#dropzone p { margin: 0; color: #94a3b8; }
#fileinput { display: none; }

#status { margin-top: 24px; min-height: 28px; font-size: 15px; overflow-wrap: anywhere; }
progress { width: 100%; height: 8px; margin-top: 8px; accent-color: #60a5fa; }
#results { list-style: none; margin: 16px 0 0; padding: 0; text-align: left; }
#results li {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  margin: 6px 0; padding: 8px 12px; background: #1e293b; border-radius: 8px; font-size: 14px;
}
#results .name { overflow-wrap: anywhere; }
#results .meta { color: #94a3b8; font-size: 12px; }
.log {
  margin-top: 16px; text-align: left; background: #0b1220; border: 1px solid #1e293b;
  border-radius: 8px; padding: 12px; font-family: monospace; font-size: 13px;
  max-height: 220px; overflow-y: auto; color: #cbd5e1;
}
.file-item { margin: 6px 0; padding: 6px 10px; background: #1e293b; border-radius: 6px; overflow-wrap: anywhere; }
.success { color: #4ade80; }
.error { color: #f87171; }
.warn { color: #fbbf24; }
[hidden] { display: none !important; }

main section { margin-top: 56px; }
h2 { font-size: 20px; margin: 0 0 14px; padding-bottom: 8px; border-bottom: 1px solid #334155; }
h3 { font-size: 16px; margin: 22px 0 6px; color: #f1f5f9; }
section p, section li { color: #cbd5e1; font-size: 15px; }
section p { margin: 0 0 10px; }
ol, ul { padding-left: 1.4em; margin: 0 0 10px; }
code { background: #1e293b; padding: 1px 6px; border-radius: 4px; font-size: 13px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid #1e293b; vertical-align: top; }
th { width: 34%; color: #94a3b8; font-weight: 600; }
td { color: #e2e8f0; }
article header { text-align: left; }
article section { margin-top: 36px; }
.cta { display: inline-block; margin-top: 8px; padding: 10px 20px; background: #2563eb; color: #fff; border-radius: 8px; text-decoration: none; font-weight: 600; }
.cta:hover { background: #3b82f6; }
footer { margin-top: 56px; padding-top: 20px; border-top: 1px solid #334155; color: #94a3b8; font-size: 13px; text-align: center; }
footer p { margin: 4px 0; }
noscript p { color: #f87171; }

/* 広告・寄付 */
.ad { margin: 56px 0 0; min-height: 120px; text-align: center; }
.ad-label { margin: 0 0 6px; font-size: 11px; color: #64748b; letter-spacing: 0.05em; }
.thanks { margin: 20px 0 0; font-size: 14px; color: #cbd5e1; }
article h1 { text-align: left; }
