* {
  box-sizing: border-box;
}

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

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

h1 {
  text-align: center;
  margin-bottom: 24px;
}

.dashboard {
  display: flex;
  gap: 16px;
  margin-bottom: 32px;
}

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

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

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

.columns {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

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

.panel h2 {
  margin-top: 0;
}

.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;
  resize: vertical;
}

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

.form button:hover {
  background: #245a94;
}

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

.item {
  border: 1px solid #e2e2e2;
  border-radius: 6px;
  padding: 10px 12px;
}

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

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

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

.memo-actions {
  margin-top: 6px;
  text-align: right;
}

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

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

.task-text {
  flex: 1;
  font-size: 14px;
}

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

.task-actions .toggle-btn {
  color: #2b6cb0;
}

.task-actions .toggle-btn:hover {
  background: #e6f0fa;
}

.task-actions .delete-btn {
  color: #c0392b;
}

.task-actions .delete-btn:hover {
  background: #fbe6e3;
}

.empty {
  color: #999;
  font-size: 13px;
  text-align: center;
  padding: 12px 0;
}

@media (max-width: 640px) {
  .columns {
    flex-direction: column;
  }
}
