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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f0f7f0;
  min-height: 100vh;
  padding: 16px;
}

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

h1 {
  font-size: 1.5rem;
  color: #2d6a4f;
  text-align: center;
  margin: 16px 0 4px;
}

.subtitle {
  text-align: center;
  color: #74a98a;
  font-size: 0.9rem;
  margin-bottom: 20px;
}

/* 全部OK バナー */
.all-done {
  background: #52b788;
  color: #fff;
  text-align: center;
  font-size: 1rem;
  font-weight: bold;
  padding: 14px 12px;
  border-radius: 10px;
  margin-bottom: 16px;
  animation: fadeIn 0.3s ease;
}

.hidden {
  display: none;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* チェックリスト */
.check-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.check-item {
  display: flex;
  align-items: center;
  background: #fff;
  border: 2px solid #b7e4c7;
  border-radius: 12px;
  padding: 14px 16px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  user-select: none;
  gap: 14px;
}

.check-item:active {
  opacity: 0.75;
}

.check-item.checked {
  background: #d8f3dc;
  border-color: #52b788;
}

.check-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid #74a98a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  transition: background 0.2s, border-color 0.2s;
}

.check-item.checked .check-icon {
  background: #52b788;
  border-color: #52b788;
  color: #fff;
}

.item-label {
  font-size: 1rem;
  color: #1b4332;
  flex: 1;
}

.check-item.checked .item-label {
  text-decoration: line-through;
  color: #74a98a;
}

/* カスタム項目の削除ボタン */
.delete-btn {
  background: none;
  border: none;
  color: #b7c4bb;
  font-size: 1.1rem;
  cursor: pointer;
  padding: 2px 4px;
  line-height: 1;
  flex-shrink: 0;
}

.delete-btn:hover {
  color: #e63946;
}

/* ボタン群 */
.actions {
  text-align: center;
  margin-bottom: 28px;
}

.btn {
  border: none;
  border-radius: 8px;
  font-size: 0.95rem;
  cursor: pointer;
  padding: 10px 24px;
  transition: opacity 0.2s;
}

.btn:active {
  opacity: 0.7;
}

.btn-reset {
  background: #e9ecef;
  color: #495057;
}

.btn-reset:hover {
  background: #dee2e6;
}

/* 追加フォーム */
.custom-section h2 {
  font-size: 0.95rem;
  color: #2d6a4f;
  margin-bottom: 10px;
}

.add-form {
  display: flex;
  gap: 8px;
}

.add-form input {
  flex: 1;
  padding: 10px 12px;
  border: 2px solid #b7e4c7;
  border-radius: 8px;
  font-size: 0.95rem;
  outline: none;
}

.add-form input:focus {
  border-color: #52b788;
}

.btn-add {
  background: #52b788;
  color: #fff;
  padding: 10px 18px;
  white-space: nowrap;
}

.btn-add:hover {
  background: #40916c;
}
