* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", sans-serif;
  background: #f6f4fb;
  color: #2b2233;
}

.app {
  max-width: 960px;
  margin: 0 auto;
  padding: 32px 20px 60px;
}

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

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

.dashboard-card {
  flex: 1;
  background: #fff;
  border-radius: 10px;
  padding: 18px;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.dashboard-value {
  font-size: 28px;
  font-weight: 700;
  color: #7c3aed;
}

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

.review-banner {
  background: #f3ebfe;
  border: 1px solid #d9c6f7;
  border-radius: 10px;
  padding: 16px 18px;
  margin-bottom: 28px;
}

.review-banner-week {
  font-size: 12px;
  color: #7c3aed;
  font-weight: 600;
  margin-top: 4px;
}

.review-banner-comment {
  font-size: 14px;
  color: #2b2233;
  margin-top: 6px;
  white-space: pre-wrap;
}

.columns {
  display: flex;
  gap: 20px;
}

.column {
  flex: 1;
  min-width: 0;
}

.panel {
  background: #fff;
  border-radius: 10px;
  padding: 18px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  margin-bottom: 20px;
}

.panel h2 {
  font-size: 16px;
  margin: 0 0 12px;
}

form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

input, textarea {
  border: 1px solid #d9d0ee;
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 14px;
  font-family: inherit;
  resize: vertical;
}

input:focus, textarea:focus {
  outline: none;
  border-color: #7c3aed;
}

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

button:hover {
  background: #6d28d9;
}

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

.list:empty::after {
  content: "まだありません";
  color: #9ca3af;
  font-size: 13px;
}

.note-item, .task-item {
  border: 1px solid #e4dcf5;
  border-radius: 8px;
  padding: 10px 12px;
}

.note-title {
  font-weight: 600;
  font-size: 14px;
}

.note-body {
  font-size: 13px;
  color: #4b5563;
  margin-top: 4px;
  white-space: pre-wrap;
}

.item-date {
  font-size: 11px;
  color: #9ca3af;
  margin-top: 6px;
}

.review-week {
  font-weight: 600;
  font-size: 13px;
  color: #7c3aed;
}

.review-comment {
  font-size: 13px;
  color: #4b5563;
  margin-top: 4px;
  white-space: pre-wrap;
}

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

.task-main {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  flex: 1;
}

.task-main input[type="checkbox"] {
  margin-top: 3px;
}

.task-title.done {
  text-decoration: line-through;
  color: #9ca3af;
}

.task-status {
  display: inline-block;
  font-size: 11px;
  padding: 1px 8px;
  border-radius: 10px;
  margin-left: 8px;
}

.task-status.done {
  background: #e6f4ea;
  color: #1e7e34;
}

.task-status.pending {
  background: #fff3e0;
  color: #c2740a;
}

.delete-btn {
  background: none;
  border: none;
  color: #d33;
  font-size: 12px;
  cursor: pointer;
  padding: 4px 8px;
}

.delete-btn:hover {
  text-decoration: underline;
}

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