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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f0f4f8;
  color: #1e293b;
  min-height: 100vh;
}

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

h1 {
  font-size: 1.4rem;
  font-weight: 700;
  color: #1e40af;
  margin-bottom: 20px;
  text-align: center;
  padding: 16px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

/* フォームセクション */
.form-section {
  background: #fff;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.form-section h2 {
  font-size: 1rem;
  font-weight: 600;
  color: #475569;
  margin-bottom: 16px;
}

.form-group {
  margin-bottom: 14px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 5px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid #cbd5e1;
  border-radius: 7px;
  font-size: 0.95rem;
  font-family: inherit;
  color: #1e293b;
  background: #f8fafc;
  transition: border-color 0.15s;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #2563eb;
  background: #fff;
}

.btn-primary {
  width: 100%;
  padding: 12px;
  background: #2563eb;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
  margin-top: 4px;
}

.btn-primary:hover {
  background: #1d4ed8;
}

.btn-primary:active {
  background: #1e40af;
}

/* 一覧セクション */
.list-section {
  background: #fff;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.list-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.list-header h2 {
  font-size: 1rem;
  font-weight: 600;
  color: #475569;
}

.count-badge {
  background: #dbeafe;
  color: #1d4ed8;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 20px;
}

.empty-message {
  text-align: center;
  color: #94a3b8;
  font-size: 0.9rem;
  padding: 32px 0;
}

/* メモカード */
.memo-card {
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 12px;
  transition: border-color 0.15s, background 0.15s;
}

.memo-card.done {
  background: #f0fdf4;
  border-color: #86efac;
  opacity: 0.7;
}

.memo-card-header {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 8px;
}

.memo-card-header .caller {
  font-size: 1rem;
  font-weight: 700;
  color: #1e293b;
  flex: 1;
}

.memo-card-header .caller.done-text {
  text-decoration: line-through;
  color: #64748b;
}

.memo-card-header .call-time {
  font-size: 0.8rem;
  color: #64748b;
  white-space: nowrap;
  margin-top: 3px;
}

.memo-matter {
  font-size: 0.9rem;
  color: #334155;
  line-height: 1.5;
  margin-bottom: 10px;
  word-break: break-word;
}

.memo-meta {
  font-size: 0.75rem;
  color: #94a3b8;
  margin-bottom: 10px;
}

.memo-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.btn-done,
.btn-delete {
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: background 0.15s;
}

.btn-done {
  background: #dcfce7;
  color: #16a34a;
}

.btn-done:hover {
  background: #bbf7d0;
}

.btn-done.undone {
  background: #fef9c3;
  color: #a16207;
}

.btn-done.undone:hover {
  background: #fef08a;
}

.btn-delete {
  background: #fee2e2;
  color: #dc2626;
}

.btn-delete:hover {
  background: #fecaca;
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.2rem;
  }
  .memo-card {
    padding: 12px;
  }
}
