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

body {
  font-family: "Hiragino Kaku Gothic ProN", "メイリオ", Meiryo, sans-serif;
  background: #f4f6f9;
  color: #2c3e50;
  line-height: 1.6;
  padding-bottom: 40px;
}

/* ---- ヘッダー ---- */
.app-header {
  background: linear-gradient(135deg, #1f3a5f, #2b6cb0);
  color: #fff;
  padding: 24px 32px;
  text-align: center;
}
.app-header h1 { font-size: 1.6rem; }
.subtitle { font-size: 0.9rem; opacity: 0.85; margin-top: 4px; }

/* ---- ダッシュボード ---- */
.dashboard {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  padding: 24px 16px;
}
.stat-card {
  background: #fff;
  border-radius: 12px;
  padding: 20px 32px;
  text-align: center;
  min-width: 140px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.stat-card.highlight { background: #fff5e6; border: 1px solid #f0b429; }
.stat-num { font-size: 2rem; font-weight: bold; color: #1f3a5f; }
.stat-card.highlight .stat-num { color: #b7791f; }
.stat-label { font-size: 0.85rem; color: #718096; margin-top: 4px; }

/* ---- 2カラム ---- */
.columns {
  display: flex;
  gap: 20px;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 16px;
  flex-wrap: wrap;
}
.panel {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  flex: 1 1 380px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.panel h2 { font-size: 1.2rem; margin-bottom: 16px; color: #1f3a5f; }

/* ---- 入力欄 ---- */
.input-area { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.input-area input, .input-area textarea {
  padding: 10px;
  border: 1px solid #d5dbe2;
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  resize: vertical;
}
.input-area input:focus, .input-area textarea:focus {
  outline: none;
  border-color: #2b6cb0;
}
.input-area button {
  background: #2b6cb0;
  color: #fff;
  border: none;
  padding: 10px;
  border-radius: 8px;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.2s;
}
.input-area button:hover { background: #1f3a5f; }

/* ---- リスト ---- */
.list { list-style: none; display: flex; flex-direction: column; gap: 10px; }

.list li {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 12px 14px;
  background: #fafbfc;
}

.memo-title { font-weight: bold; margin-bottom: 4px; }
.memo-body { font-size: 0.9rem; color: #4a5568; white-space: pre-wrap; }
.meta { font-size: 0.75rem; color: #a0aec0; margin-top: 6px; }

/* タスク行 */
.task-row { display: flex; align-items: center; gap: 10px; }
.task-row .task-main { flex: 1; }
.task-title { font-size: 0.95rem; }
.task-title.done { text-decoration: line-through; color: #a0aec0; }
.badge {
  display: inline-block;
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 10px;
  margin-left: 6px;
}
.badge.todo { background: #fed7d7; color: #c53030; }
.badge.done { background: #c6f6d5; color: #276749; }

.btn-small {
  border: none;
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 0.75rem;
  cursor: pointer;
}
.btn-done { background: #38a169; color: #fff; }
.btn-undo { background: #a0aec0; color: #fff; }
.btn-del { background: #e53e3e; color: #fff; }
.btn-small:hover { opacity: 0.85; }

.empty { color: #a0aec0; font-size: 0.85rem; text-align: center; padding: 12px; }
