* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
  background: #f4f6f8;
  color: #1f2933;
}
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #1f3a5f;
  color: #fff;
  padding: 12px 24px;
}
.topbar .brand {
  color: #fff;
  font-weight: bold;
  text-decoration: none;
  font-size: 1.1rem;
}
.topnav {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.9rem;
}
.topnav a {
  color: #fff;
}
.link-button {
  background: none;
  border: none;
  color: #fff;
  text-decoration: underline;
  cursor: pointer;
  font-size: 0.9rem;
  padding: 0;
}
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px;
}
.card {
  background: #fff;
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
.card.narrow {
  max-width: 420px;
  margin: 40px auto;
}
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
h1 {
  font-size: 1.4rem;
  margin: 0 0 12px;
}
.form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.form label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.9rem;
  color: #334155;
}
.form input[type="text"],
.form input[type="password"],
.form input[type="file"] {
  padding: 8px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  font-size: 1rem;
}
button, .button {
  background: #1f3a5f;
  color: #fff;
  border: none;
  padding: 10px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.95rem;
  text-decoration: none;
  display: inline-block;
}
button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.button.secondary {
  background: #64748b;
}
.error {
  color: #b91c1c;
  background: #fee2e2;
  padding: 8px 12px;
  border-radius: 4px;
}
.hint {
  color: #64748b;
  font-size: 0.85rem;
  margin-top: 12px;
}
.meta {
  color: #475569;
  font-size: 0.85rem;
  margin-bottom: 16px;
}
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.table th, .table td {
  border: 1px solid #e2e8f0;
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
}
.table th {
  background: #f1f5f9;
}
.row-ok { background: #f0fdf4; }
.row-ng { background: #fef2f2; }
.row-warn { background: #fffbeb; }
.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.78rem;
  background: #e2e8f0;
  color: #334155;
}
.badge-ok { background: #dcfce7; color: #166534; }
.badge-ng { background: #fee2e2; color: #991b1b; }
.badge-warn { background: #fef3c7; color: #92400e; }
.summary-box {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 6px;
  padding: 12px 16px;
  margin-bottom: 16px;
}
.raw-output {
  white-space: pre-wrap;
  background: #0f172a;
  color: #e2e8f0;
  padding: 12px;
  border-radius: 6px;
  font-size: 0.8rem;
  max-height: 400px;
  overflow: auto;
}
