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

body {
  font-family: "Segoe UI", "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
  background: #eceef1;
  color: #14161a;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.app-header {
  background: #14161a;
  color: #fff;
  padding: 18px 24px;
  border-bottom: 3px solid #2563eb;
}

.app-header h1 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

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

/* ダッシュボード */
.dashboard {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-bottom: 24px;
  background: #d4d8de; /* セル間の細い区切り線 */
  border: 1px solid #d4d8de;
}

.stat-card {
  background: #fff;
  padding: 18px 20px;
  text-align: left;
}

.stat-card.highlight {
  background: #14161a;
}

.stat-value {
  font-size: 32px;
  font-weight: 700;
  color: #14161a;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.stat-card.highlight .stat-value {
  color: #fff;
}

.stat-label {
  font-size: 11px;
  color: #6b7280;
  margin-top: 2px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.stat-card.highlight .stat-label {
  color: #9ca3af;
}

/* ダッシュボード: 最新の振り返り */
.latest-review {
  background: #ffffff;
  color: #14161a;
  border-left: 3px solid #6366f1;
  padding: 14px 18px;
  margin-bottom: 24px;
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
}

.latest-review-head {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: #4338ca;
  white-space: nowrap;
}

.latest-review-body {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  min-width: 0;
}

.latest-review-week {
  font-size: 12px;
  font-weight: 700;
  color: #4338ca;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.latest-review-text {
  font-size: 14px;
  color: #14161a;
  white-space: pre-wrap;
}

.latest-review .empty {
  color: #6b7280;
  padding: 0;
}

/* 2カラム */
.columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 720px) {
  .columns {
    grid-template-columns: 1fr;
  }
  .dashboard {
    grid-template-columns: 1fr;
  }
}

.panel {
  background: #fff;
  border: 1px solid #d4d8de;
  padding: 18px;
  margin-bottom: 20px;
}

.panel h2 {
  font-size: 12px;
  margin-bottom: 14px;
  color: #14161a;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  padding-bottom: 8px;
  border-bottom: 1px solid #e5e7eb;
}

/* --- メモ列 / タスク列 で見た目を分ける（アクセントは上辺のライン）--- */
.column-memo .panel {
  border-top: 3px solid #f59e0b;
}

.column-task .panel {
  border-top: 3px solid #10b981;
}

.column-memo .panel h2 {
  color: #b45309;
}

.column-task .panel h2 {
  color: #047857;
}

/* --- 振り返り列（インディゴ）--- */
.column-review .panel {
  border-top: 3px solid #6366f1;
}
.column-review .panel h2 {
  color: #4338ca;
}

input[type="text"],
input[type="week"],
textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #c4c9d0;
  border-radius: 0;
  font-size: 14px;
  font-family: inherit;
  margin-bottom: 10px;
  resize: vertical;
  background: #fbfbfc;
}

input[type="text"]:focus,
input[type="week"]:focus,
textarea:focus {
  outline: none;
  border-color: #14161a;
  background: #fff;
}

.column-memo input[type="text"]:focus,
.column-memo textarea:focus {
  border-color: #f59e0b;
}
.column-task input[type="text"]:focus {
  border-color: #10b981;
}
.column-review input[type="week"]:focus,
.column-review textarea:focus {
  border-color: #6366f1;
}

.btn-memo,
.btn-task {
  color: #fff;
  border: none;
  border-radius: 0;
  padding: 11px 16px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  width: 100%;
  transition: background 0.12s;
}

.btn-memo {
  background: #f59e0b;
}
.btn-memo:hover {
  background: #d97706;
}

.btn-task {
  background: #10b981;
}
.btn-task:hover {
  background: #059669;
}

.btn-review {
  color: #fff;
  border: none;
  border-radius: 0;
  padding: 11px 16px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
  width: 100%;
  background: #6366f1;
  transition: background 0.12s;
}
.btn-review:hover {
  background: #4f46e5;
}

/* リスト */
.list {
  list-style: none;
}

.list li {
  border-bottom: 1px solid #eceef0;
  padding: 12px 4px;
}

.list li:last-child {
  border-bottom: none;
}

.empty {
  color: #9ca3af;
  font-size: 13px;
  padding: 12px 4px;
}

/* メモ項目 = 左に太いアクセントの角ばったブロック */
.column-memo .list li.memo-item {
  border-bottom: none;
  border-left: 3px solid #f59e0b;
  background: #fcfcfd;
  padding: 12px;
  margin-bottom: 8px;
}

/* タスク項目 = 左に緑ライン */
.column-task .list li.task-item {
  border-bottom: 1px solid #eef1f3;
  border-left: 3px solid #10b981;
  padding-left: 12px;
}
.column-task .list li.task-item.done {
  border-left-color: #d1d5db;
  background: #f9fafb;
}

/* 振り返り項目 = 左にインディゴのライン */
.column-review .list li.review-item {
  border-bottom: none;
  border-left: 3px solid #6366f1;
  background: #fcfcfd;
  padding: 12px;
  margin-bottom: 8px;
}
.review-week {
  font-weight: 700;
  font-size: 14px;
  color: #4338ca;
  font-variant-numeric: tabular-nums;
}
.review-comment {
  font-size: 14px;
  color: #374151;
  white-space: pre-wrap;
  margin: 4px 0;
}
.review-hint {
  font-size: 11px;
  color: #9ca3af;
  margin-top: 8px;
}

.memo-item .memo-title {
  font-weight: 700;
  font-size: 15px;
}

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

.item-meta {
  font-size: 11px;
  color: #9ca3af;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}

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

/* タスク項目 */
.task-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.task-item input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
  flex-shrink: 0;
  accent-color: #10b981;
}

.task-main {
  flex: 1;
  min-width: 0;
}

.task-text {
  font-size: 15px;
}

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

.badge {
  display: inline-block;
  font-size: 10px;
  padding: 1px 7px;
  border-radius: 0;
  margin-left: 8px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  vertical-align: middle;
}

.badge.done {
  background: #14161a;
  color: #fff;
}

.badge.pending {
  background: #fff;
  color: #b45309;
  border: 1px solid #f59e0b;
}

.btn-delete {
  background: transparent;
  border: none;
  color: #9ca3af;
  cursor: pointer;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 6px;
  flex-shrink: 0;
}

.btn-delete:hover {
  color: #dc2626;
}
