* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  background: #f4f6f8;
  color: #2c3e50;
}

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

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

.dashboard {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.stat-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 20px 32px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  text-align: center;
  min-width: 140px;
}

.stat-number {
  font-size: 2rem;
  font-weight: bold;
  color: #3f8efc;
}

.stat-label {
  margin-top: 4px;
  font-size: 0.85rem;
  color: #7f8c9a;
}

.latest-reflection {
  background: #fff8e6;
  border: 1px solid #f0dca0;
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 24px;
}

.latest-reflection-label {
  font-size: 0.8rem;
  color: #a4842c;
  font-weight: bold;
  margin-bottom: 4px;
}

.latest-reflection-week {
  font-size: 0.85rem;
  color: #7a6320;
  margin-bottom: 6px;
}

.latest-reflection-comment {
  white-space: pre-wrap;
  color: #4a5661;
  word-break: break-word;
}

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

.panel {
  flex: 1;
  min-width: 300px;
  background: #ffffff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.panel h2 {
  margin-top: 0;
}

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

.form input,
.form textarea {
  padding: 10px;
  border: 1px solid #d7dee3;
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  resize: vertical;
}

.form button {
  padding: 10px;
  border: none;
  border-radius: 8px;
  background: #3f8efc;
  color: #fff;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.15s;
}

.form button:hover {
  background: #2f74d9;
}

.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 #e6ebef;
  border-radius: 8px;
  padding: 12px;
}

.item-title {
  font-weight: bold;
  margin-bottom: 4px;
  word-break: break-word;
}

.item-body {
  white-space: pre-wrap;
  color: #4a5661;
  margin-bottom: 6px;
  word-break: break-word;
}

.item-meta {
  font-size: 0.75rem;
  color: #9aa6b0;
}

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

.task-item .task-main {
  flex: 1;
}

.task-item.done .task-title {
  text-decoration: line-through;
  color: #a0aab3;
}

.task-title {
  word-break: break-word;
}

.task-delete,
.note-delete {
  background: none;
  border: none;
  color: #e0644a;
  cursor: pointer;
  font-size: 0.85rem;
  padding: 4px 8px;
}

.task-delete:hover,
.note-delete:hover {
  text-decoration: underline;
}

.note-delete {
  display: block;
  margin-left: auto;
}

.empty {
  color: #9aa6b0;
  font-size: 0.9rem;
  text-align: center;
  padding: 12px 0;
}

@media (max-width: 640px) {
  .stat-card {
    min-width: 100px;
    padding: 16px 20px;
  }
}
