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

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

header {
  background: #4caf82;
  color: #fff;
  padding: 16px;
  text-align: center;
}

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

header p {
  font-size: 0.85rem;
  opacity: 0.9;
}

main {
  max-width: 600px;
  margin: 0 auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

section {
  background: #fff;
  border-radius: 10px;
  padding: 16px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

section h2 {
  font-size: 1rem;
  margin-bottom: 12px;
  color: #4caf82;
  border-bottom: 2px solid #e8f5ee;
  padding-bottom: 6px;
}

/* フォーム */
.form-row {
  margin-bottom: 10px;
}

input[type="text"],
select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 1rem;
  background: #fff;
}

input[type="text"]:focus,
select:focus {
  outline: none;
  border-color: #4caf82;
}

button[type="submit"] {
  width: 100%;
  padding: 11px;
  background: #4caf82;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  font-weight: bold;
}

button[type="submit"]:active {
  background: #3a9c6f;
}

/* リスト共通 */
ul {
  list-style: none;
}

.empty-msg {
  color: #aaa;
  font-size: 0.9rem;
  text-align: center;
  padding: 12px 0;
}

/* 今日のタスクリスト */
#today-list li.task-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 4px;
  border-bottom: 1px solid #f0f0f0;
}

#today-list li.task-item:last-child {
  border-bottom: none;
}

#today-list li.task-item.done {
  opacity: 0.5;
}

#today-list li.task-item.done .task-name {
  text-decoration: line-through;
}

.check-btn {
  width: 28px;
  height: 28px;
  min-width: 28px;
  border-radius: 50%;
  border: 2px solid #4caf82;
  background: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: transparent;
  transition: background 0.2s, color 0.2s;
}

.check-btn.checked {
  background: #4caf82;
  color: #fff;
}

.task-name {
  flex: 1;
  font-size: 1rem;
}

.task-freq {
  font-size: 0.8rem;
  color: #888;
}

/* 登録一覧 */
#task-list li.reg-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 4px;
  border-bottom: 1px solid #f0f0f0;
}

#task-list li.reg-item:last-child {
  border-bottom: none;
}

.reg-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.reg-name {
  font-size: 1rem;
}

.reg-detail {
  font-size: 0.78rem;
  color: #888;
}

.del-btn {
  background: none;
  border: 1px solid #ddd;
  border-radius: 5px;
  padding: 4px 10px;
  font-size: 0.8rem;
  cursor: pointer;
  color: #999;
}

.del-btn:active {
  background: #ffeaea;
  border-color: #e57373;
  color: #e57373;
}

@media (max-width: 375px) {
  header h1 {
    font-size: 1.15rem;
  }
  section {
    padding: 12px;
  }
}
