* {
  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: 640px;
  margin: 0 auto;
  padding: 16px;
}

h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a1a2e;
  text-align: center;
  padding: 20px 0 16px;
  border-bottom: 2px solid #4a90d9;
  margin-bottom: 20px;
}

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

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

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

label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #555;
  margin-bottom: 4px;
}

.required {
  color: #e74c3c;
}

input[type="text"],
input[type="date"],
input[type="time"],
textarea {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 0.95rem;
  font-family: inherit;
  color: #333;
  background: #fafafa;
  transition: border-color 0.2s;
  -webkit-appearance: none;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: #4a90d9;
  background: #fff;
}

textarea {
  resize: vertical;
  min-height: 60px;
}

.error-msg {
  color: #e74c3c;
  font-size: 0.85rem;
  margin-bottom: 10px;
  min-height: 20px;
}

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

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

.btn-primary:active {
  background: #2c6ea5;
}

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

.list-section h2 {
  display: flex;
  align-items: center;
  gap: 8px;
}

.count {
  font-size: 0.8rem;
  font-weight: 400;
  color: #888;
}

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

.reservation-list {
  list-style: none;
}

.reservation-item {
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 10px;
  position: relative;
  transition: box-shadow 0.15s;
}

.reservation-item:hover {
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.reservation-item.duplicate {
  border-color: #e74c3c;
  background: #fff5f5;
}

.duplicate-badge {
  display: inline-block;
  background: #e74c3c;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  margin-bottom: 6px;
  letter-spacing: 0.03em;
}

.item-datetime {
  font-size: 0.92rem;
  font-weight: 700;
  color: #4a90d9;
  margin-bottom: 3px;
}

.item-name {
  font-size: 1rem;
  font-weight: 600;
  color: #222;
  margin-bottom: 4px;
}

.item-memo {
  font-size: 0.85rem;
  color: #666;
  white-space: pre-wrap;
  word-break: break-all;
}

.delete-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  color: #bbb;
  font-size: 1.2rem;
  cursor: pointer;
  line-height: 1;
  padding: 2px 6px;
  border-radius: 4px;
  transition: color 0.15s, background 0.15s;
}

.delete-btn:hover {
  color: #e74c3c;
  background: #ffeaea;
}

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