:root {
  /* Claude 風パレット */
  --bg: #f0eee6;          /* 温かいクリーム色の背景 */
  --surface: #faf9f5;     /* カード面（少し明るいクリーム） */
  --surface-alt: #ffffff;
  --border: #e3ded1;      /* やわらかい枠線 */
  --border-strong: #d6cfbd;
  --text: #29261f;        /* 温かみのある黒 */
  --text-muted: #6f6a5f;  /* 補助テキスト */
  --accent: #d97757;      /* Claude のテラコッタ */
  --accent-hover: #c15f3c;
  --accent-soft: #f4e3da; /* アクセントの薄い背景 */
  --green: #4a7c59;
  --green-soft: #e5efe4;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(41, 38, 31, 0.05);
}

* {
  box-sizing: border-box;
}

body {
  font-family: ui-sans-serif, -apple-system, "Hiragino Sans", "Yu Gothic",
    sans-serif;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

/* ヘッダー */
.app-header {
  padding: 28px 32px 20px;
  max-width: 1040px;
  margin: 0 auto;
}

.app-header h1 {
  margin: 0;
  font-family: ui-serif, Georgia, "Times New Roman", serif;
  font-weight: 500;
  font-size: 26px;
  letter-spacing: -0.01em;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 12px;
}

.robot-icon {
  color: var(--accent);
  flex: none;
}

/* ダッシュボード */
.dashboard {
  display: flex;
  gap: 14px;
  padding: 0 32px;
  max-width: 1040px;
  margin: 0 auto 8px;
  flex-wrap: wrap;
}

.stat {
  flex: 1 1 160px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}

.stat-num {
  font-family: ui-serif, Georgia, serif;
  font-size: 36px;
  font-weight: 500;
  line-height: 1.1;
  color: var(--accent);
}

.stat-label {
  margin-top: 6px;
  font-size: 13px;
  color: var(--text-muted);
}

/* 最新の振り返り（ダッシュボード） */
.latest-reflection-wrap {
  max-width: 1040px;
  margin: 0 auto 8px;
  padding: 8px 32px 0;
}

.latest-reflection {
  padding: 18px 20px;
  border-left: 4px solid var(--accent);
}

.latest-reflection-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.latest-reflection-week {
  font-family: ui-serif, Georgia, serif;
  font-size: 15px;
  color: var(--accent-hover);
  margin-bottom: 4px;
}

.latest-reflection-comment {
  white-space: pre-wrap;
  font-size: 15px;
  color: var(--text);
}

.latest-reflection .empty {
  padding: 0;
}

/* 週次の振り返りセクション */
.reflection-section {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 32px 48px;
}

.reflection-section h2 {
  font-family: ui-serif, Georgia, serif;
  font-weight: 500;
  font-size: 18px;
  color: var(--text);
  border-bottom: 1px solid var(--border-strong);
  padding-bottom: 10px;
  margin-bottom: 16px;
}

.field-label {
  font-size: 13px;
  color: var(--text-muted);
}

.add-form input[type="week"] {
  padding: 12px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  background: var(--surface-alt);
  color: var(--text);
}

.reflection-week {
  font-family: ui-serif, Georgia, serif;
  font-weight: 500;
  font-size: 15px;
  color: var(--accent-hover);
  margin-bottom: 4px;
}

.reflection-comment {
  white-space: pre-wrap;
  font-size: 14px;
  color: #4a463d;
}

.reflection-section .meta .del-btn {
  margin-left: 8px;
}

/* 2カラム */
.columns {
  display: flex;
  gap: 24px;
  padding: 24px 32px 48px;
  max-width: 1040px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.column {
  flex: 1 1 360px;
}

.column h2 {
  font-family: ui-serif, Georgia, serif;
  font-weight: 500;
  font-size: 18px;
  color: var(--text);
  border-bottom: 1px solid var(--border-strong);
  padding-bottom: 10px;
  margin-bottom: 16px;
}

/* カード共通 */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* 追加フォーム */
.add-form {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 18px;
}

.add-form input,
.add-form textarea {
  padding: 12px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  background: var(--surface-alt);
  color: var(--text);
  resize: vertical;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.add-form input::placeholder,
.add-form textarea::placeholder {
  color: #a49e90;
}

.add-form input:focus,
.add-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.add-form button {
  align-self: flex-start;
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 11px 20px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.15s;
}

.add-form button:hover {
  background: var(--accent-hover);
}

/* 一覧 */
.list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.list li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
  transition: border-color 0.15s;
}

.list li:hover {
  border-color: var(--border-strong);
}

.note-title {
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text);
}

.note-content {
  white-space: pre-wrap;
  font-size: 14px;
  color: #4a463d;
}

.meta {
  margin-top: 10px;
  font-size: 12px;
  color: var(--text-muted);
}

/* タスク行 */
.task-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.task-row input[type="checkbox"] {
  margin-top: 2px;
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--accent);
}

.task-body {
  flex: 1;
}

.task-text {
  font-size: 15px;
  color: var(--text);
}

.task-done .task-text {
  text-decoration: line-through;
  color: #a49e90;
}

.badge {
  display: inline-block;
  font-size: 11px;
  padding: 2px 9px;
  border-radius: 20px;
  margin-left: 8px;
  vertical-align: middle;
}

.badge.open {
  background: var(--accent-soft);
  color: var(--accent-hover);
}

.badge.done {
  background: var(--green-soft);
  color: var(--green);
}

.del-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 13px;
  padding: 2px 6px;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
}

.del-btn:hover {
  color: var(--accent-hover);
  background: var(--accent-soft);
}

.empty {
  color: var(--text-muted);
  font-size: 13px;
  padding: 10px 2px;
  background: none;
  border: none;
  box-shadow: none;
}
