* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
  background: #f4f5f7;
  color: #2c2c2c;
  font-size: 18px;
  line-height: 1.6;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px 32px 60px;
}

h1 {
  text-align: center;
  margin-bottom: 32px;
  font-size: 28px;
}

/* ダッシュボード */
.dashboard {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

.dashboard-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.dashboard-number {
  font-size: 36px;
  font-weight: bold;
  color: #3b6fd6;
}

.dashboard-label {
  margin-top: 6px;
  font-size: 16px;
  color: #666;
}

/* 最新の振り返りカード（数字カードと違い、横幅いっぱいに広げて文章を表示する） */
.latest-review-card {
  grid-column: 1 / -1;
  text-align: left;
}

.latest-review-comment {
  margin-top: 8px;
  font-size: 16px;
  color: #2c2c2c;
  white-space: pre-wrap;
  word-break: break-word;
}

/* メモ・タスクの2カラムレイアウト（画面幅いっぱいに均等配置） */
.columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: 24px;
}

/* 画面が狭いときは1カラムに切り替える */
@media (max-width: 800px) {
  .columns {
    grid-template-columns: 1fr;
  }

  .dashboard {
    grid-template-columns: 1fr;
  }
}

.panel {
  background: #ffffff;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.panel h2 {
  margin-top: 0;
  padding-bottom: 12px;
  border-bottom: 2px solid #f0f1f3;
}

/* 週の振り返りパネル（メモ・タスクの下に全幅で配置） */
.reflection-panel {
  margin-top: 24px;
}

.review-week-label {
  font-size: 16px;
  color: #666;
  margin-bottom: 12px;
}

/* 入力フォーム */
.form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.form input,
.form textarea {
  padding: 14px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 17px;
  font-family: inherit;
  resize: vertical;
}

.form button {
  padding: 14px;
  border: none;
  border-radius: 6px;
  background: #3b6fd6;
  color: #fff;
  font-size: 17px;
  cursor: pointer;
}

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

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

.item {
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 12px;
}

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

.item-body {
  font-size: 16px;
  color: #444;
  white-space: pre-wrap;
  word-break: break-word;
  margin-bottom: 6px;
}

.item-meta {
  font-size: 14px;
  color: #999;
}

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

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

.task-row input[type="checkbox"] {
  margin-top: 3px;
  width: 20px;
  height: 20px;
}

.task-main {
  flex: 1;
}

.delete-button {
  border: none;
  background: none;
  color: #d64545;
  cursor: pointer;
  font-size: 15px;
}

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

.empty-message {
  color: #999;
  font-size: 16px;
}
