* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  background: #e3e8ef;
  color: #222;
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 24px 16px 64px;
}

h1 {
  font-size: 24px;
  margin-bottom: 20px;
}

h2 {
  font-size: 18px;
  margin: 0 0 12px;
}

.dashboard {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}

.dashboard-item {
  flex: 1;
  background: #eef2ff;
  border: 1px solid #c7d2fe;
  border-radius: 8px;
  padding: 16px;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.dashboard-label {
  font-size: 13px;
  color: #666;
  margin-bottom: 6px;
}

.dashboard-value {
  font-size: 28px;
  font-weight: bold;
  color: #2563eb;
}

.columns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.panel {
  flex: 1;
  min-width: 300px;
  background: #fff;
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.form input,
.form textarea {
  padding: 8px 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
}

.field-label {
  font-size: 12px;
  color: #666;
  margin-top: -4px;
}

.form textarea {
  min-height: 60px;
  resize: vertical;
}

.form button {
  align-self: flex-start;
  padding: 8px 16px;
  background: #2563eb;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
}

.form button:hover {
  background: #1d4ed8;
}

.list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 420px;
  overflow-y: auto;
}

.list-item {
  background: #f7f8fa;
  border: 1px solid #d7dbe1;
  border-radius: 6px;
  padding: 10px 12px;
}

.memo-title {
  font-weight: bold;
  margin-bottom: 4px;
}

.memo-body {
  white-space: pre-wrap;
  font-size: 14px;
  color: #444;
  margin-bottom: 6px;
}

.meta {
  font-size: 12px;
  color: #999;
}

.task-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.task-item.completed {
  background: #f0fdf4;
  border-color: #bbf7d0;
}

.task-item.completed .task-text {
  text-decoration: line-through;
  color: #999;
}

.task-item.overdue {
  background: #fef2f2;
  border-color: #fecaca;
}

.due-date {
  font-weight: 500;
}

.task-item.overdue .due-date {
  color: #dc2626;
  font-weight: bold;
}

.task-text {
  flex: 1;
}

.task-actions {
  display: flex;
  gap: 6px;
}

.task-actions button {
  border: none;
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 12px;
  cursor: pointer;
}

.btn-complete {
  background: #16a34a;
  color: #fff;
}

.btn-delete {
  background: #dc2626;
  color: #fff;
}

.empty {
  color: #999;
  font-size: 13px;
  padding: 8px 0;
}
