:root {
  --navy: #1F3864;
  --accent: #2E74B5;
  --light: #EAF1F8;
  --gray: #595959;
  --border: #D9D9D9;
  --danger: #C0392B;
  --success: #1F7A3D;
}
* { box-sizing: border-box; }
body {
  font-family: "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
  background: #F5F7FA;
  color: #262626;
  margin: 0;
  line-height: 1.7;
}
.topbar {
  background: var(--navy);
  color: white;
  padding: 14px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.topbar .brand { font-weight: bold; font-size: 18px; }
.topbar a { color: white; text-decoration: underline; font-size: 13px; margin-left: 16px; }
.container { max-width: 760px; margin: 32px auto; padding: 0 20px; }
.card { background: white; border-radius: 8px; padding: 28px 32px; box-shadow: 0 1px 4px rgba(0,0,0,0.08); margin-bottom: 24px; }
h1 { color: var(--navy); font-size: 24px; margin-top: 0; }
h2 { color: var(--navy); font-size: 18px; border-left: 4px solid var(--accent); padding-left: 10px; margin-top: 28px; }
h3 { color: var(--navy); font-size: 15px; }
.subtitle { color: var(--gray); font-size: 13px; margin-top: -10px; margin-bottom: 18px; }
label { display: block; font-weight: bold; font-size: 13px; color: var(--gray); margin: 14px 0 4px; }
input[type=text], input[type=password], input[type=number], select, textarea {
  width: 100%; padding: 9px 11px; border: 1px solid var(--border); border-radius: 5px; font-size: 14px; font-family: inherit;
}
textarea { min-height: 70px; resize: vertical; }
button, .btn {
  display: inline-block; background: var(--navy); color: white; border: none;
  padding: 10px 20px; border-radius: 5px; font-size: 14px; cursor: pointer; text-decoration: none; margin-top: 16px;
}
button:hover, .btn:hover { background: var(--accent); }
.btn-secondary { background: white; color: var(--navy); border: 1px solid var(--navy); }
table { width: 100%; border-collapse: collapse; margin: 12px 0; }
th, td { padding: 8px 10px; border-bottom: 1px solid var(--border); text-align: left; font-size: 13px; }
th { background: var(--navy); color: white; }
.error { background: #FBE9E7; color: var(--danger); padding: 12px 16px; border-radius: 5px; margin-bottom: 16px; font-size: 13px; }
.note { background: var(--light); color: var(--gray); padding: 13px 15px; border-radius: 5px; font-size: 12px; margin: 14px 0; }
.success { background: #E4F3E9; color: var(--success); padding: 12px 16px; border-radius: 5px; margin-bottom: 16px; font-size: 13px; }
a { color: var(--accent); }
.stage-block { display: none; border-top: 1px dashed var(--border); padding-top: 14px; margin-top: 14px; }
.stage-block.active { display: block; }
.scale-group { display: flex; gap: 14px; align-items: center; margin: 6px 0 14px; flex-wrap: wrap; }
.scale-group label { display: inline-flex; align-items: center; gap: 4px; font-weight: normal; font-size: 13px; margin: 0; }
fieldset { border: 1px solid var(--border); border-radius: 6px; padding: 12px 16px; margin: 14px 0; }
legend { font-weight: bold; color: var(--navy); font-size: 13px; padding: 0 6px; }
