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

body {
  font-family: sans-serif;
  background: #f5f5f5;
  color: #333;
  min-height: 100vh;
}

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

h1 {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 16px;
  color: #333;
}

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

.form-section h2 {
  font-size: 1rem;
  margin-bottom: 12px;
  color: #555;
}

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

.form-group label {
  display: block;
  font-size: 0.85rem;
  color: #555;
  margin-bottom: 4px;
}

.form-group input {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
}

.form-group input:focus {
  border-color: #4a90d9;
}

.btn-primary {
  width: 100%;
  padding: 10px;
  background: #4a90d9;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 4px;
}

.btn-primary:hover {
  background: #357abd;
}

/* フィルタ */
.filter-section {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.filter-btn {
  flex: 1;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 20px;
  background: #fff;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
  color: #555;
}

.filter-btn.active {
  background: #4a90d9;
  color: #fff;
  border-color: #4a90d9;
}

/* リスト */
.list-section {
  background: #fff;
  border-radius: 8px;
  padding: 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  min-height: 80px;
}

.empty-msg {
  text-align: center;
  color: #aaa;
  padding: 24px;
  font-size: 0.9rem;
}

#deliveryList {
  list-style: none;
}

.delivery-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  border-bottom: 1px solid #f0f0f0;
  transition: background 0.2s;
}

.delivery-item:last-child {
  border-bottom: none;
}

.delivery-item.done {
  background: #f0faf4;
}

.delivery-item.done .item-recipient,
.delivery-item.done .item-name {
  text-decoration: line-through;
  color: #aaa;
}

.check-btn {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid #4a90d9;
  background: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  transition: all 0.2s;
  margin-top: 2px;
}

.check-btn.checked {
  background: #4caf50;
  border-color: #4caf50;
  color: #fff;
}

.item-body {
  flex: 1;
}

.item-recipient {
  font-weight: bold;
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.item-name {
  font-size: 0.9rem;
  color: #444;
  margin-bottom: 4px;
}

.item-meta {
  font-size: 0.78rem;
  color: #888;
}

.item-meta span {
  margin-right: 8px;
}

.item-meta .overdue {
  color: #e53935;
  font-weight: bold;
}

.delete-btn {
  flex-shrink: 0;
  background: none;
  border: none;
  color: #ccc;
  font-size: 1.1rem;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 4px;
  transition: color 0.2s;
}

.delete-btn:hover {
  color: #e53935;
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.3rem;
  }
}
