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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', sans-serif;
  background: linear-gradient(135deg, #fff8e7 0%, #ffe8a8 100%);
  min-height: 100vh;
  padding: 24px;
  color: #1f2937;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  background: white;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
  overflow: hidden;
}

/* ダッシュボード */
.dashboard {
  background: linear-gradient(135deg, #FFD93D 0%, #FFC107 100%);
  color: #1f2937;
  padding: 48px 32px;
  text-align: center;
}

.dashboard h1 {
  font-size: 36px;
  margin-bottom: 40px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: #1f2937;
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 24px;
  margin: 0 auto;
}

.stat-card {
  background: rgba(31, 41, 55, 0.08);
  padding: 24px;
  border-radius: 16px;
  backdrop-filter: blur(20px);
  border: 2px solid rgba(255, 193, 7, 0.3);
  transition: all 0.3s ease;
}

.stat-card:hover {
  background: rgba(31, 41, 55, 0.12);
  transform: translateY(-4px);
  border-color: rgba(31, 41, 55, 0.4);
}

.stat-label {
  display: block;
  font-size: 13px;
  color: #374151;
  margin-bottom: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.stat-value {
  display: block;
  font-size: 40px;
  font-weight: 700;
  color: #1f2937;
}

/* メインコンテンツ */
.main-content {
  padding: 48px;
}

.section {
  margin-bottom: 50px;
}

.section h2 {
  font-size: 26px;
  color: #1f2937;
  margin-bottom: 28px;
  padding-bottom: 0;
  border-bottom: none;
  font-weight: 700;
  letter-spacing: -0.5px;
}

/* 入力領域 */
.input-area {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 28px;
  padding: 28px;
  background: #fffbf0;
  border-radius: 16px;
  border: 2px solid #ffeaa7;
  transition: all 0.3s ease;
}

.input-area:hover {
  border-color: #ffc107;
  background: #fffef7;
}

.input-field {
  padding: 14px 18px;
  border: 1.5px solid #f0e68c;
  border-radius: 12px;
  font-size: 14px;
  font-family: inherit;
  transition: all 0.3s ease;
  background: white;
  color: #1f2937;
}

.input-field:focus {
  outline: none;
  border-color: #FFD93D;
  box-shadow: 0 0 0 4px rgba(255, 217, 61, 0.15);
  background: white;
}

.textarea-field {
  padding: 14px 18px;
  border: 1.5px solid #f0e68c;
  border-radius: 12px;
  font-size: 14px;
  font-family: inherit;
  resize: vertical;
  transition: all 0.3s ease;
  background: white;
  color: #1f2937;
}

.textarea-field:focus {
  outline: none;
  border-color: #FFD93D;
  box-shadow: 0 0 0 4px rgba(255, 217, 61, 0.15);
  background: white;
}

/* ボタン */
.btn {
  padding: 14px 28px;
  border: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 0.3px;
}

.btn-primary {
  background: linear-gradient(135deg, #FFD93D 0%, #FFC107 100%);
  color: #1f2937;
  box-shadow: 0 8px 24px rgba(255, 193, 7, 0.3);
  font-weight: 700;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(255, 193, 7, 0.4);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: #f3f4f6;
  color: #1f2937;
  font-size: 13px;
  padding: 10px 16px;
  margin-right: 8px;
  font-weight: 600;
  border: 1px solid #e5e7eb;
}

.btn-secondary:hover {
  background: #e5e7eb;
}

.btn-danger {
  background: #ef4444;
  color: white;
  font-size: 13px;
  padding: 10px 16px;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
  font-weight: 600;
}

.btn-danger:hover {
  background: #dc2626;
  box-shadow: 0 6px 16px rgba(239, 68, 68, 0.3);
}

/* リスト領域 */
.list-area {
  display: grid;
  gap: 14px;
  background: #fffbf0;
  padding: 20px;
  border-radius: 16px;
  border: 2px solid #ffeaa7;
}

.items-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.item {
  background: white;
  border: 1.5px solid #f0e68c;
  border-radius: 14px;
  padding: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.item:hover {
  box-shadow: 0 8px 24px rgba(255, 193, 7, 0.2);
  border-color: #FFD93D;
  background: #fffef7;
}

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

.item-content {
  flex: 1;
}

.item-title {
  font-size: 15px;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 8px;
}

.item-text {
  font-size: 13px;
  color: #4b5563;
  line-height: 1.6;
  margin-bottom: 10px;
  white-space: pre-wrap;
}

.item-date {
  font-size: 12px;
  color: #9ca3af;
  font-weight: 500;
}

.item-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.checkbox-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}

.checkbox-wrapper input[type="checkbox"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: #FFD93D;
}

.task-item.completed {
  background: #fffbf0;
  border-color: #FFD93D;
}

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

.empty-message {
  text-align: center;
  padding: 48px 24px;
  color: #9ca3af;
  font-size: 14px;
  font-weight: 500;
}

/* 最新の振り返き */
.latest-review-section {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 2px solid rgba(31, 41, 55, 0.15);
}

.latest-review-container {
  background: rgba(31, 41, 55, 0.05);
  padding: 20px 24px;
  border-radius: 12px;
  border-left: 4px solid #FFD93D;
}

.latest-review-label {
  font-size: 13px;
  color: #6b7280;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.latest-review-week {
  font-size: 13px;
  color: #374151;
  font-weight: 600;
  margin-bottom: 12px;
}

.latest-review-content {
  font-size: 13px;
  color: #4b5563;
  line-height: 1.6;
  white-space: pre-wrap;
}

/* 振り返きアイテム */
.review-item {
  background: white;
  border: 1.5px solid #f0e68c;
  border-radius: 14px;
  padding: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.review-item:hover {
  box-shadow: 0 8px 24px rgba(255, 193, 7, 0.2);
  border-color: #FFD93D;
  background: #fffef7;
}

.review-week-info {
  font-size: 13px;
  color: #6b7280;
  font-weight: 600;
  background: #fffbf0;
  padding: 8px 12px;
  border-radius: 8px;
  display: inline-block;
}

/* レスポンシブ */
@media (max-width: 768px) {
  body {
    padding: 16px;
  }

  .container {
    border-radius: 16px;
  }

  .dashboard {
    padding: 36px 24px;
  }

  .dashboard h1 {
    font-size: 28px;
    margin-bottom: 28px;
  }

  .stats {
    gap: 16px;
  }

  .main-content {
    padding: 24px;
  }

  .section {
    margin-bottom: 36px;
  }

  .input-area {
    padding: 20px;
  }

  .item-header {
    flex-direction: column;
  }

  .item-actions {
    width: 100%;
  }
}
