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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #f5f6fa;
  color: #333;
  min-height: 100vh;
}

.container {
  max-width: 640px;
  margin: 0 auto;
  padding: 20px 16px 60px;
}

h1 {
  font-size: 1.4rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 20px;
  text-align: center;
}

/* 進捗バー */
.progress-section {
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 8px;
}

.progress-bar-wrap {
  background: #e8eaf0;
  border-radius: 99px;
  height: 12px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: #4a90d9;
  border-radius: 99px;
  width: 0%;
  transition: width 0.4s ease;
}

/* 入力フォーム */
.form-section {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.form-section input {
  flex: 1;
  min-width: 120px;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 0.95rem;
  outline: none;
  background: #fff;
}

.form-section input:focus {
  border-color: #4a90d9;
}

.form-section button {
  padding: 10px 20px;
  background: #4a90d9;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.form-section button:hover {
  background: #357abd;
}

/* スタッフグループ */
.staff-group {
  background: #fff;
  border-radius: 12px;
  margin-bottom: 12px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  overflow: hidden;
}

.staff-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: #f0f4ff;
  border-bottom: 1px solid #e0e6f0;
}

.staff-name {
  font-weight: 700;
  font-size: 1rem;
  color: #1a1a2e;
}

.staff-progress {
  font-size: 0.8rem;
  color: #666;
  background: #fff;
  padding: 2px 10px;
  border-radius: 99px;
  border: 1px solid #ddd;
}

/* タスクアイテム */
.task-item {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid #f0f0f0;
  gap: 10px;
}

.task-item:last-child {
  border-bottom: none;
}

.task-check {
  width: 22px;
  height: 22px;
  border: 2px solid #4a90d9;
  border-radius: 50%;
  cursor: pointer;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.task-check.done {
  background: #4a90d9;
}

.task-check.done::after {
  content: '✓';
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
}

.task-name {
  flex: 1;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.task-item.done .task-name {
  color: #aaa;
  text-decoration: line-through;
}

.task-delete {
  background: none;
  border: none;
  color: #ccc;
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
}

.task-delete:hover {
  color: #e74c3c;
}

/* 空の状態 */
.empty-msg {
  text-align: center;
  color: #bbb;
  font-size: 0.9rem;
  padding: 40px 0;
}

/* リセットボタン */
.footer-actions {
  margin-top: 24px;
  text-align: center;
}

.btn-reset {
  background: none;
  border: 1px solid #ddd;
  color: #999;
  padding: 8px 20px;
  border-radius: 8px;
  font-size: 0.85rem;
  cursor: pointer;
}

.btn-reset:hover {
  background: #ffeaea;
  border-color: #e74c3c;
  color: #e74c3c;
}

@media (max-width: 480px) {
  .form-section {
    flex-direction: column;
  }
  .form-section button {
    width: 100%;
  }
}
