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

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

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

h1 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: #1a1a2e;
  border-left: 4px solid #4a7fcb;
  padding-left: 10px;
}

h2 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: #555;
}

/* フォーム */
.form-section {
  background: #fff;
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}

.form-row {
  display: flex;
  flex-direction: column;
  margin-bottom: 12px;
}

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

.form-row input {
  border: 1px solid #dce0e8;
  border-radius: 6px;
  padding: 9px 12px;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
}

.form-row input:focus {
  border-color: #4a7fcb;
}

.btn-primary {
  background: #4a7fcb;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 24px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  margin-top: 4px;
  transition: background 0.2s;
}

.btn-primary:hover {
  background: #3a6ab5;
}

/* フィルター */
.filter-section {
  margin-bottom: 10px;
}

.filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.filter-btn {
  border: 1px solid #dce0e8;
  background: #fff;
  color: #555;
  border-radius: 20px;
  padding: 5px 16px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
  font-weight: 500;
}

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

.repair-count {
  font-size: 0.82rem;
  color: #888;
  margin-bottom: 8px;
}

/* 一覧カード */
.repair-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.repair-card {
  background: #fff;
  border-radius: 10px;
  padding: 14px 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  border-left: 4px solid #ccc;
  position: relative;
}

.repair-card.status-受付中 {
  border-left-color: #4a7fcb;
}

.repair-card.status-修理中 {
  border-left-color: #e8943a;
}

.repair-card.status-完了 {
  border-left-color: #3aaa6e;
  opacity: 0.8;
}

.card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.card-title {
  font-size: 1rem;
  font-weight: 700;
  color: #222;
  flex: 1;
}

.card-customer {
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 4px;
}

.card-meta {
  font-size: 0.78rem;
  color: #999;
  margin-bottom: 8px;
}

.card-note {
  font-size: 0.82rem;
  color: #555;
  margin-bottom: 10px;
  background: #f8f9fc;
  padding: 5px 8px;
  border-radius: 5px;
}

.card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.status-badge {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 12px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
}

.badge-受付中 { background: #4a7fcb; }
.badge-修理中 { background: #e8943a; }
.badge-完了   { background: #3aaa6e; }

.status-select {
  border: 1px solid #dce0e8;
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 0.82rem;
  cursor: pointer;
  background: #fff;
  color: #333;
}

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

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

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

@media (max-width: 480px) {
  .card-header {
    flex-direction: column;
    align-items: flex-start;
  }
}
