*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Hiragino Kaku Gothic ProN',
               'Hiragino Sans', 'Meiryo', sans-serif;
  background: #fafafa;
  color: #1a1a1a;
  line-height: 1.6;
  padding: 24px 16px 64px;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 640px;
  margin: 0 auto;
}

.back-link {
  margin-bottom: 1.5rem;
}

.back-link a {
  font-size: 0.78rem;
  color: #999;
  text-decoration: none;
  letter-spacing: 0.02em;
}

.back-link a:hover {
  color: #1a1a1a;
}

.header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #e5e5e5;
}

.header h1 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  line-height: 1.4;
}

.header p {
  font-size: 0.85rem;
  color: #666;
}

.progress-bar {
  margin-bottom: 1rem;
}

.score-note {
  font-size: 0.8rem;
  color: #888;
  line-height: 1.6;
  margin-bottom: 2rem;
  padding: 0.75rem 1rem;
  background: #f5f5f5;
  border-radius: 6px;
}

.result.halfway {
  background: #f5f0e8;
  color: #7a6030;
}

.progress-text {
  font-size: 0.8rem;
  color: #555;
  margin-bottom: 6px;
}

.bar-bg {
  background: #e5e5e5;
  border-radius: 4px;
  height: 5px;
  overflow: hidden;
}

.bar-fill {
  background: #1a1a1a;
  height: 5px;
  border-radius: 4px;
  width: 0%;
  transition: width 0.3s ease;
}

.section {
  margin-bottom: 2rem;
}

.section-title {
  font-size: 0.88rem;
  font-weight: 700;
  border-left: 3px solid #1a1a1a;
  padding-left: 0.6rem;
  margin-bottom: 0.9rem;
}

.checklist {
  list-style: none;
}

.checklist li {
  margin-bottom: 0.6rem;
}

.checklist label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 0.88rem;
  line-height: 1.5;
}

.checklist input[type="checkbox"] {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: #1a1a1a;
  cursor: pointer;
}

.checklist label:has(input:checked) {
  color: #bbb;
  text-decoration: line-through;
}

.result {
  margin-top: 2rem;
  padding: 1.1rem 1.25rem;
  border-radius: 8px;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
}

.result.complete {
  background: #1a1a1a;
  color: #fff;
}

.result.incomplete {
  background: #f0f0f0;
  color: #555;
}

.reset-btn {
  display: block;
  margin: 0.75rem auto 0;
  padding: 0.5rem 1.5rem;
  background: transparent;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 0.8rem;
  cursor: pointer;
  color: #888;
  font-family: inherit;
  transition: border-color 0.2s, color 0.2s;
}

.reset-btn:hover {
  border-color: #888;
  color: #1a1a1a;
}
