* {
  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;
}

.container {
  max-width: 600px;
  margin: 0 auto;
  padding: 16px;
}

h1 {
  font-size: 1.5rem;
  text-align: center;
  margin-bottom: 20px;
  color: #2d6a4f;
}

h2 {
  font-size: 1rem;
  font-weight: bold;
  margin-bottom: 12px;
  color: #444;
}

/* 今日のゴミエリア */
#today-section {
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

#today-heading {
  font-size: 1.1rem;
  color: #2d6a4f;
}

#today-trash {
  margin-top: 8px;
}

.today-item {
  display: inline-block;
  background: #d8f3dc;
  color: #1b4332;
  border-radius: 20px;
  padding: 6px 16px;
  margin: 4px;
  font-size: 1rem;
  font-weight: bold;
}

.today-none {
  color: #aaa;
  font-size: 0.95rem;
  padding: 4px 0;
}

/* フォーム */
.form-section {
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.form-group {
  margin-bottom: 14px;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 6px;
}

input[type="text"] {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s;
}

input[type="text"]:focus {
  border-color: #52b788;
}

.days-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.day-label {
  display: flex;
  align-items: center;
  gap: 4px;
  background: #f0f0f0;
  border-radius: 20px;
  padding: 6px 12px;
  cursor: pointer;
  font-size: 0.95rem;
  user-select: none;
  transition: background 0.15s;
}

.day-label:has(input:checked) {
  background: #b7e4c7;
  color: #1b4332;
  font-weight: bold;
}

.day-label input[type="checkbox"] {
  display: none;
}

#add-btn {
  width: 100%;
  padding: 12px;
  background: #52b788;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s;
}

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

/* 一覧 */
.list-section {
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.trash-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #f0f0f0;
}

.trash-card:last-child {
  border-bottom: none;
}

.trash-info {
  flex: 1;
}

.trash-info .name {
  font-size: 1rem;
  font-weight: bold;
}

.trash-info .days {
  font-size: 0.85rem;
  color: #888;
  margin-top: 2px;
}

.delete-btn {
  background: none;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  color: #999;
  padding: 5px 10px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
  margin-left: 12px;
}

.delete-btn:hover {
  background: #fee2e2;
  border-color: #f87171;
  color: #dc2626;
}

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

@media (max-width: 480px) {
  h1 {
    font-size: 1.3rem;
  }
}
