:root {
  --accent: #3B82F6;
  --bg: #F4F6F9;
  --text: #2B2E33;
  --border: #D9DEE6;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Noto Sans JP", "游ゴシック", "Hiragino Sans", sans-serif;
  background: var(--bg);
  color: var(--text);
}

.page {
  max-width: 760px;
  margin: 0 auto;
  padding: 32px 20px 80px;
}

header h1 {
  font-size: 26px;
  margin-bottom: 4px;
}

.lead {
  color: #5b6472;
  margin-top: 0;
}

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px 24px;
  margin-bottom: 20px;
}

.card h2 {
  font-size: 18px;
  margin-top: 0;
  margin-bottom: 12px;
  border-left: 4px solid var(--accent);
  padding-left: 10px;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.card-header h2 {
  margin-bottom: 0;
}

label {
  display: block;
  font-size: 13px;
  font-weight: bold;
  margin: 14px 0 6px;
}

.required {
  color: #DC2626;
  font-weight: normal;
  font-size: 12px;
}

input[type="text"],
select,
textarea {
  width: 100%;
  padding: 9px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
}

textarea {
  resize: vertical;
}

.hint {
  font-size: 12px;
  color: #8893A1;
  margin: 6px 0 0;
}

.section-block,
.stat-block {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 16px;
  margin-top: 14px;
}

.section-block-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.section-number {
  color: var(--accent);
  font-size: 13px;
}

.stat-block {
  display: flex;
  align-items: center;
  gap: 10px;
}

.stat-block input {
  margin: 0;
}

.btn-primary,
.btn-secondary,
.btn-remove {
  cursor: pointer;
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 12px 28px;
  font-size: 16px;
  font-weight: bold;
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: default;
}

.btn-secondary {
  background: #fff;
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 6px 12px;
}

.btn-remove {
  background: none;
  border: 1px solid #DC2626;
  color: #DC2626;
  padding: 4px 10px;
  font-size: 12px;
  flex-shrink: 0;
}

.actions {
  text-align: center;
  margin-top: 24px;
}

.status {
  text-align: center;
  font-size: 14px;
  min-height: 20px;
}

.status.error {
  color: #DC2626;
}

.status.success {
  color: #16A34A;
}
