* { box-sizing: border-box; }
body {
  font-family: "Segoe UI", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  background: #f4f6f8;
  margin: 0;
  color: #2b2f36;
}
.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 24px 16px 60px;
}
h1 {
  text-align: center;
  margin-bottom: 20px;
}
.dashboard {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.stat-card {
  flex: 1;
  min-width: 140px;
  background: #fff;
  border-radius: 10px;
  padding: 16px;
  text-align: center;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}
.review-card {
  flex: 2;
  min-width: 220px;
  text-align: left;
}
.review-latest {
  margin-top: 8px;
  font-size: 14px;
  color: #2b2f36;
  white-space: pre-wrap;
}
.review-latest .review-week {
  display: block;
  font-size: 12px;
  color: #999;
  margin-bottom: 4px;
}
.stat-value {
  font-size: 28px;
  font-weight: bold;
  color: #3b6ef2;
}
.stat-label {
  margin-top: 4px;
  font-size: 13px;
  color: #666;
}
.columns {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.panel {
  min-width: 300px;
  background: #fff;
  border-radius: 10px;
  padding: 16px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}
.panel h2 {
  margin-top: 0;
}
.add-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}
.field-label {
  font-size: 12px;
  color: #666;
  margin-bottom: -4px;
}
.add-form input, .add-form textarea {
  padding: 8px 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  resize: vertical;
}
.add-form button {
  background: #3b6ef2;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 9px;
  font-size: 14px;
  cursor: pointer;
}
.add-form button:hover {
  background: #2f58c9;
}
.list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 420px;
  overflow-y: auto;
}
.item {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 10px 12px;
}
.item-title {
  font-weight: 600;
}
.item-content {
  margin-top: 4px;
  white-space: pre-wrap;
  color: #444;
  font-size: 14px;
}
.item-meta {
  margin-top: 6px;
  font-size: 12px;
  color: #999;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.item.done .item-title {
  text-decoration: line-through;
  color: #999;
}
.task-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.task-row input[type="checkbox"] {
  margin-top: 3px;
}
.task-body {
  flex: 1;
}
.badge {
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 10px;
  background: #eee;
}
.badge.done {
  background: #d4f5dd;
  color: #1c7a3a;
}
.badge.pending {
  background: #fdeccf;
  color: #a5680c;
}
.badge.overdue {
  background: #fbd5d5;
  color: #b02a2a;
}
.due-date {
  font-size: 12px;
  color: #666;
}
.due-date.overdue {
  color: #b02a2a;
  font-weight: 600;
}
.delete-btn {
  background: none;
  border: none;
  color: #d33;
  cursor: pointer;
  font-size: 12px;
}
.delete-btn:hover {
  text-decoration: underline;
}
.empty {
  color: #999;
  font-size: 13px;
  text-align: center;
  padding: 12px 0;
}
