:root {
  --bg: #f6f7f9;
  --card: #ffffff;
  --ink: #1c2024;
  --muted: #6b7280;
  --line: #e5e7eb;
  --brand: #2563eb;
  --brand-dark: #1d4ed8;
  --google: #1a73e8;
  --ok: #16a34a;
  --warn: #d97706;
  --danger: #dc2626;
  --radius: 14px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Noto Sans JP", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 640px; margin: 0 auto; padding: 20px 16px 64px; }
.wrap.wide { max-width: 960px; }
h1 { font-size: 1.4rem; margin: 0 0 4px; }
h2 { font-size: 1.1rem; margin: 24px 0 8px; }
.muted { color: var(--muted); font-size: 0.9rem; }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  margin: 16px 0;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
label { display: block; font-weight: 600; font-size: 0.92rem; margin: 14px 0 6px; }
input[type=text], input[type=email], input[type=password], input[type=url], textarea, select {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 1rem;
  font-family: inherit;
  background: #fff;
}
textarea { min-height: 96px; resize: vertical; }
button {
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  padding: 12px 18px;
  cursor: pointer;
  transition: 0.15s;
}
.btn { background: var(--brand); color: #fff; }
.btn:hover { background: var(--brand-dark); }
.btn-google { background: var(--google); color: #fff; width: 100%; }
.btn-ghost { background: #eef2f7; color: var(--ink); }
.btn-ghost:hover { background: #e2e8f0; }
.btn-outline { background: #fff; color: var(--brand); box-shadow: inset 0 0 0 1.5px var(--brand); }
.btn-outline:hover { background: #f0f6ff; }
.btn-danger { background: #fee2e2; color: var(--danger); }
.btn-sm { padding: 7px 12px; font-size: 0.85rem; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.spacer { flex: 1; }
.stars { display: flex; gap: 6px; font-size: 2rem; cursor: pointer; user-select: none; }
.star { color: #d1d5db; transition: 0.1s; }
.star.on { color: #f59e0b; }
.choice { display: flex; gap: 8px; flex-wrap: wrap; }
.choice label {
  display: inline-flex; align-items: center; gap: 6px; font-weight: 500; margin: 0;
  border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; cursor: pointer;
}
.choice input { width: auto; }
.cand {
  border: 2px solid var(--line); border-radius: 12px; padding: 14px; margin: 10px 0; cursor: pointer;
}
.cand.sel { border-color: var(--brand); background: #eff6ff; }
.pill { display: inline-block; font-size: 0.75rem; padding: 2px 10px; border-radius: 999px; background: #eef2f7; color: var(--muted); }
.pill.active { background: #dcfce7; color: var(--ok); }
.toast {
  position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%);
  background: #111827; color: #fff; padding: 12px 20px; border-radius: 10px; font-size: 0.9rem;
  opacity: 0; pointer-events: none; transition: 0.2s; z-index: 50;
}
.toast.show { opacity: 1; }
table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
th, td { text-align: left; padding: 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; }
.center { text-align: center; }
.spin { display: inline-block; width: 18px; height: 18px; border: 3px solid #c7d2fe; border-top-color: var(--brand); border-radius: 50%; animation: spin 0.8s linear infinite; vertical-align: middle; }
@keyframes spin { to { transform: rotate(360deg); } }
.q-editor { border: 1px dashed var(--line); border-radius: 10px; padding: 12px; margin: 10px 0; background: #fafbfc; }
.hidden { display: none !important; }
a { color: var(--brand); }
.note { font-size: 0.82rem; color: var(--muted); margin-top: 8px; }
.banner { background: #fffbeb; border: 1px solid #fde68a; border-radius: 10px; padding: 10px 14px; font-size: 0.85rem; color: #92400e; }
.tabbar { display: flex; gap: 4px; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin: 10px 0 14px; }
.tab { background: transparent; color: var(--muted); border: none; border-bottom: 2px solid transparent; border-radius: 0; padding: 9px 14px; font-weight: 600; font-size: 0.9rem; }
.tab:hover { color: var(--ink); background: transparent; }
.tab.active { color: var(--brand); border-bottom-color: var(--brand); }

/* ── ログイン画面 ── */
.auth { max-width: 400px; margin: 0 auto; padding: 7vh 0 40px; }
.auth-hero { text-align: center; margin-bottom: 20px; }
.auth-logo { width: 76px; height: 76px; margin: 0 auto 14px; display: block; filter: drop-shadow(0 8px 20px rgba(37,99,235,0.28)); }
.auth-brand { font-size: 1.75rem; margin: 0 0 6px; letter-spacing: 0.02em; }
.auth-tag { color: var(--muted); font-size: 0.9rem; margin: 0; line-height: 1.6; }
.auth-card { box-shadow: 0 10px 34px rgba(0,0,0,0.09); border-top: 3px solid var(--brand); }
.auth-help { text-align: center; margin: 16px 0 0; font-size: 0.85rem; }
.auth-foot { text-align: center; color: var(--muted); font-size: 0.76rem; margin-top: 22px; }

/* ── アンケート完了画面 ── */
.thanks-card { padding: 28px 20px; }
.thanks-mascot { width: 104px; height: auto; margin: 0 auto 4px; display: block; }
.review-offer { border: 1px solid #bfdbfe; background: #f5f9ff; }
.review-offer-h { font-weight: 700; font-size: 1.02rem; margin: 0 0 6px; }
