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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #f4f6f9;
  color: #333;
  min-height: 100vh;
}

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

h1 {
  font-size: 1.4rem;
  font-weight: 700;
  color: #1a73e8;
  text-align: center;
  margin-bottom: 20px;
  padding: 16px 0 12px;
  border-bottom: 2px solid #1a73e8;
}

/* 入力セクション */
.input-section {
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 10px;
}

.form-group label {
  font-size: 0.78rem;
  color: #666;
  margin-bottom: 4px;
  font-weight: 600;
}

.form-group input {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s;
}

.form-group input:focus {
  border-color: #1a73e8;
}

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

#add-btn:hover {
  background: #1558b0;
}

/* フィルターセクション */
.filter-section {
  background: #fff;
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.filter-section label {
  font-size: 0.85rem;
  color: #666;
  white-space: nowrap;
  font-weight: 600;
}

#month-filter {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 7px 10px;
  font-size: 0.95rem;
  outline: none;
  flex: 1;
}

#month-filter:focus {
  border-color: #1a73e8;
}

/* 合計セクション */
.summary-section {
  margin-bottom: 12px;
}

.total-box {
  background: #1a73e8;
  border-radius: 12px;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 6px rgba(26,115,232,0.3);
}

.total-label {
  color: rgba(255,255,255,0.85);
  font-size: 0.95rem;
  font-weight: 600;
}

.total-amount {
  color: #fff;
  font-size: 1.6rem;
  font-weight: 700;
}

/* リストセクション */
.list-section {
  background: #fff;
  border-radius: 12px;
  padding: 8px 0;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

#record-list {
  list-style: none;
}

.record-item {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid #f0f0f0;
  gap: 10px;
}

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

.record-date {
  font-size: 0.78rem;
  color: #999;
  white-space: nowrap;
  min-width: 60px;
}

.record-route {
  flex: 1;
  font-size: 0.95rem;
  color: #333;
  word-break: break-all;
}

.record-amount {
  font-size: 1rem;
  font-weight: 600;
  color: #1a73e8;
  white-space: nowrap;
}

.delete-btn {
  background: none;
  border: none;
  color: #ccc;
  font-size: 1.1rem;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  border-radius: 4px;
  transition: color 0.2s;
}

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

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