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

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

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

h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 20px;
  text-align: center;
}

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

section {
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.form-grid,
.filter-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

label {
  font-size: 0.8rem;
  color: #666;
  font-weight: 500;
}

input[type="text"],
input[type="number"],
select {
  padding: 8px 10px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 0.95rem;
  background: #fafafa;
  width: 100%;
  transition: border-color 0.2s;
}

input:focus,
select:focus {
  outline: none;
  border-color: #f97316;
  background: #fff;
}

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

.btn-primary:hover {
  background: #ea6c0a;
}

.filter-actions {
  display: flex;
  gap: 8px;
}

.btn-secondary {
  background: #f97316;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 9px 20px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-secondary:hover {
  background: #ea6c0a;
}

.btn-ghost {
  background: transparent;
  color: #888;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 9px 16px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-ghost:hover {
  background: #f5f5f5;
  color: #555;
}

.list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.count {
  font-size: 0.85rem;
  color: #888;
  background: #f0f0f0;
  padding: 2px 10px;
  border-radius: 20px;
}

.shop-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

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

.shop-card {
  border: 1px solid #e8e8e8;
  border-radius: 10px;
  padding: 12px 14px;
  background: #fafafa;
  position: relative;
}

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

.shop-name {
  font-size: 1rem;
  font-weight: 600;
  color: #222;
}

.shop-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 4px;
}

.tag {
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 12px;
  font-weight: 500;
}

.tag-genre {
  background: #fff3e0;
  color: #e65100;
}

.tag-budget {
  background: #e8f5e9;
  color: #2e7d32;
}

.tag-people {
  background: #e3f2fd;
  color: #1565c0;
}

.shop-memo {
  font-size: 0.82rem;
  color: #777;
  margin-top: 4px;
}

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

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

@media (max-width: 480px) {
  .form-grid,
  .filter-grid {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 1.3rem;
  }
}
