@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700&display=swap');

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

body {
  font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', sans-serif;
  background: #f4f3ef;
  color: #1a1a1a;
  min-height: 100vh;
}

/* ヘッダー */
header {
  background: #1c3557;
  padding: 16px 28px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

header::before {
  content: '';
  display: block;
  width: 3px;
  height: 22px;
  background: #c4a84f;
  border-radius: 2px;
}

header h1 {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: #ffffff;
}

/* ダッシュボード */
.dashboard {
  display: flex;
  gap: 14px;
  padding: 20px 28px;
  background: #ffffff;
  border-bottom: 1px solid #e0ddd6;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.card {
  flex: 1;
  background: #fafaf8;
  border: 1px solid #e0ddd6;
  border-top: 3px solid #1c3557;
  border-radius: 4px;
  padding: 16px;
  text-align: center;
}

.card.highlight {
  border-top-color: #c4a84f;
  background: #fdf9f0;
}

.card-label {
  font-size: 0.72rem;
  color: #888;
  letter-spacing: 0.12em;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.card-value {
  font-size: 2.2rem;
  font-weight: 700;
  color: #1c3557;
}

.card.highlight .card-value {
  color: #b5922a;
}

/* メインコンテンツ */
main {
  max-width: 940px;
  margin: 24px auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.panel {
  background: #ffffff;
  border: 1px solid #e0ddd6;
  border-radius: 4px;
  padding: 22px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.panel h2 {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: #1c3557;
  text-transform: uppercase;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e8edf5;
}

/* フォーム */
form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

input[type="text"],
textarea {
  width: 100%;
  padding: 9px 12px;
  background: #fafaf8;
  border: 1px solid #d5d2cb;
  border-radius: 3px;
  font-size: 0.88rem;
  font-family: inherit;
  color: #1a1a1a;
  resize: vertical;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

input[type="text"]::placeholder,
textarea::placeholder {
  color: #bbb;
}

input[type="text"]:focus,
textarea:focus {
  border-color: #1c3557;
  box-shadow: 0 0 0 3px rgba(28, 53, 87, 0.08);
  background: #ffffff;
}

button {
  padding: 9px 20px;
  background: #1c3557;
  color: #ffffff;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  font-size: 0.85rem;
  font-family: inherit;
  font-weight: 700;
  letter-spacing: 0.1em;
  transition: background 0.15s, box-shadow 0.15s;
  align-self: flex-start;
}

button:hover {
  background: #254878;
  box-shadow: 0 2px 8px rgba(28, 53, 87, 0.25);
}

/* リスト */
.item-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.item-list li {
  padding: 10px 14px;
  background: #fafaf8;
  border: 1px solid #e0ddd6;
  border-left: 3px solid #1c3557;
  border-radius: 3px;
}

.item-list li.done {
  border-left-color: #ccc;
  opacity: 0.5;
}

.item-title {
  font-weight: 700;
  font-size: 0.88rem;
  margin-bottom: 4px;
  color: #1a1a1a;
}

.item-body {
  font-size: 0.83rem;
  color: #555;
  white-space: pre-wrap;
  margin-bottom: 4px;
  line-height: 1.55;
}

.item-meta {
  font-size: 0.72rem;
  color: #aaa;
  letter-spacing: 0.04em;
}

.task-controls {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}

.btn-done {
  font-size: 0.78rem;
  padding: 5px 12px;
  background: #2d7a4f;
  color: #fff;
}

.btn-done:hover {
  background: #235f3c;
  box-shadow: 0 2px 6px rgba(45, 122, 79, 0.3);
}

.btn-done.undo {
  background: #888;
  color: #fff;
}

.btn-done.undo:hover {
  background: #666;
  box-shadow: none;
}

.btn-del {
  font-size: 0.78rem;
  padding: 5px 12px;
  background: #c0392b;
  color: #fff;
}

.btn-del:hover {
  background: #992d22;
  box-shadow: 0 2px 6px rgba(192, 57, 43, 0.3);
}

.empty {
  font-size: 0.82rem;
  color: #bbb;
  text-align: center;
  padding: 14px 0;
  letter-spacing: 0.08em;
}

.card-review {
  flex: 2;
  text-align: left;
  border-top-color: #c4a84f;
  background: #fdf9f0;
}

.card-review-week {
  font-size: 0.85rem;
  font-weight: 700;
  color: #b5922a;
  margin-bottom: 4px;
  letter-spacing: 0.08em;
}

.card-review-comment {
  font-size: 0.82rem;
  color: #555;
  white-space: pre-wrap;
  line-height: 1.6;
}

.panel-wide {
  grid-column: 1 / -1;
}

@media (max-width: 600px) {
  main {
    grid-template-columns: 1fr;
  }
  .dashboard {
    flex-direction: column;
  }
}
