:root {
  color-scheme: light;
  --bg: #f4f7fb;
  --surface: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --danger: #dc2626;
  --danger-hover: #b91c1c;
  --border: #e5e7eb;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
  background: linear-gradient(180deg, #eef4ff 0%, var(--bg) 40%);
  color: var(--text);
  line-height: 1.6;
}

.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 1rem 3rem;
}

.header {
  margin-bottom: 1.5rem;
}

.eyebrow {
  margin: 0 0 0.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
}

.header h1 {
  margin: 0;
  font-size: 2rem;
}

.subtitle {
  margin: 0.5rem 0 0;
  color: var(--muted);
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.25rem;
  box-shadow: var(--shadow);
  margin-bottom: 1rem;
}

.card h2 {
  margin: 0 0 1rem;
  font-size: 1.125rem;
}

label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 600;
}

.required {
  color: var(--danger);
  font-size: 0.75rem;
}

input,
textarea,
button {
  font: inherit;
}

input,
textarea {
  width: 100%;
  margin-bottom: 1rem;
  padding: 0.75rem 0.875rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
}

input:focus,
textarea:focus {
  outline: 2px solid rgba(37, 99, 235, 0.25);
  border-color: var(--primary);
}

button {
  border: none;
  border-radius: 10px;
  padding: 0.75rem 1rem;
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

button:hover {
  background: var(--primary-hover);
}

button.secondary {
  background: #eef2ff;
  color: var(--primary);
}

button.secondary:hover {
  background: #dbeafe;
}

button.danger {
  background: var(--danger);
}

button.danger:hover {
  background: var(--danger-hover);
}

.list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.wish-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.wish-item {
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  align-items: flex-start;
  padding: 1rem 0;
  border-top: 1px solid var(--border);
}

.wish-item:first-child {
  border-top: none;
  padding-top: 0;
}

.wish-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
}

.wish-description {
  margin: 0.35rem 0 0;
  color: var(--muted);
  white-space: pre-wrap;
}

.wish-meta {
  margin: 0.35rem 0 0;
  font-size: 0.8125rem;
  color: var(--muted);
}

.hint {
  color: var(--muted);
}

.error {
  color: var(--danger);
  margin: 0.5rem 0 0;
}

.hidden {
  display: none !important;
}

@media (max-width: 600px) {
  .header h1 {
    font-size: 1.625rem;
  }

  .wish-item {
    flex-direction: column;
  }
}
