/* やすおの反社クレープ — cute pastel survey */
:root {
  --pink: #ffb6c9;
  --pink-deep: #ff8fab;
  --peach: #ffd6a5;
  --cream: #fff7f0;
  --cream-card: #fffaf5;
  --blush: #ffe4ec;
  --lavender: #e8d5ff;
  --text: #5a3d4a;
  --text-soft: #8a6a75;
  --border: #ffd0dc;
  --shadow: 0 8px 28px rgba(255, 143, 171, 0.22);
  --radius: 22px;
  --star: #ffb347;
  --star-empty: #f0d0d8;
  --ok: #7bc96f;
  --danger: #e86a8a;
  --font: "Hiragino Maru Gothic ProN", "Hiragino Sans", "Yu Gothic", "Noto Sans JP",
    "Segoe UI", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(ellipse at 20% 0%, #ffe4ec 0%, transparent 50%),
    radial-gradient(ellipse at 90% 10%, #ffe8c8 0%, transparent 45%),
    radial-gradient(ellipse at 50% 100%, #f3e8ff 0%, transparent 40%),
    var(--cream);
  line-height: 1.65;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* floating dessert accents */
.bg-deco {
  pointer-events: none;
  position: fixed;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

.float {
  position: absolute;
  font-size: 1.6rem;
  opacity: 0.35;
  animation: drift 12s ease-in-out infinite;
}

.f1 { top: 8%; left: 6%; animation-delay: 0s; }
.f2 { top: 18%; right: 8%; font-size: 2rem; animation-delay: -2s; }
.f3 { bottom: 22%; left: 10%; animation-delay: -4s; }
.f4 { top: 55%; right: 6%; animation-delay: -6s; }
.f5 { bottom: 8%; right: 18%; animation-delay: -1s; }

@keyframes drift {
  0%, 100% { transform: translateY(0) rotate(-4deg); }
  50% { transform: translateY(-14px) rotate(6deg); }
}

.page {
  position: relative;
  z-index: 1;
  max-width: 480px;
  margin: 0 auto;
  padding: 1.25rem 1rem 2.5rem;
}

.card {
  background: var(--cream-card);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.4rem 1.25rem;
}

.hero {
  text-align: center;
  margin-bottom: 1.1rem;
  background: linear-gradient(165deg, #fff 0%, var(--blush) 55%, #ffe8d6 100%);
}

.badge {
  display: inline-block;
  margin: 0 0 0.6rem;
  padding: 0.25rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #c45a78;
  background: #fff;
  border: 1.5px solid var(--pink);
  border-radius: 999px;
}

.shop-name {
  margin: 0 0 0.65rem;
  font-size: clamp(1.35rem, 5.5vw, 1.7rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #c24b6e;
  line-height: 1.35;
}

.intro {
  margin: 0 0 0.5rem;
  font-size: 0.92rem;
  color: var(--text-soft);
}

.estimate {
  margin: 0.75rem 0 0;
  font-size: 0.78rem;
  color: #c45a78;
  font-weight: 600;
}

.hide-sm {
  display: none;
}

@media (min-width: 400px) {
  .hide-sm { display: inline; }
}

.form-card {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

.q-block {
  margin: 0;
  padding: 0;
  border: none;
}

.q-label {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem 0.55rem;
  margin-bottom: 0.75rem;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text);
}

.q-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 50%;
  font-size: 0.82rem;
  color: #fff;
  background: linear-gradient(135deg, var(--pink-deep), #ffb347);
  flex-shrink: 0;
}

.req,
.opt {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
}

.req {
  color: #fff;
  background: var(--danger);
}

.opt {
  color: #7a6a80;
  background: #f0e8f0;
}

/* multiple choice */
.choice-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.choice {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 0.9rem;
  background: #fff;
  border: 2px solid var(--border);
  border-radius: 16px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, transform 0.12s;
  -webkit-tap-highlight-color: transparent;
}

.choice:active {
  transform: scale(0.98);
}

.choice:has(input:checked) {
  border-color: var(--pink-deep);
  background: var(--blush);
}

.choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice-face {
  font-size: 1.25rem;
  line-height: 1;
}

.choice-text {
  font-size: 0.9rem;
  font-weight: 600;
}

.other-wrap {
  margin-top: 0.55rem;
}

.text-input,
.textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  font: inherit;
  font-size: 0.92rem;
  color: var(--text);
  background: #fff;
  border: 2px solid var(--border);
  border-radius: 14px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.text-input:focus,
.textarea:focus {
  border-color: var(--pink-deep);
  box-shadow: 0 0 0 3px rgba(255, 143, 171, 0.25);
}

.textarea {
  resize: vertical;
  min-height: 6rem;
}

.char-count {
  margin: 0.35rem 0 0;
  text-align: right;
  font-size: 0.72rem;
  color: var(--text-soft);
}

/* star rating */
.star-rating {
  display: flex;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.35rem 0;
}

.star {
  appearance: none;
  border: none;
  background: transparent;
  padding: 0.25rem;
  font-size: 2.1rem;
  line-height: 1;
  color: var(--star-empty);
  cursor: pointer;
  transition: transform 0.12s, color 0.12s;
  -webkit-tap-highlight-color: transparent;
}

.star:hover,
.star:focus-visible {
  transform: scale(1.12);
  outline: none;
}

.star.on {
  color: var(--star);
  text-shadow: 0 2px 6px rgba(255, 179, 71, 0.45);
}

.star:active {
  transform: scale(0.95);
}

.rating-hint {
  margin: 0.35rem 0 0;
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-soft);
  min-height: 1.2em;
}

.rating-hint.filled {
  color: #c45a78;
  font-weight: 600;
}

.form-error {
  margin: 0;
  padding: 0.65rem 0.85rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #a83252;
  background: #ffe8ef;
  border: 1.5px solid #ffb0c4;
  border-radius: 12px;
}

.submit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: 100%;
  margin-top: 0.25rem;
  padding: 0.95rem 1.2rem;
  font: inherit;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #fff;
  background: linear-gradient(135deg, #ff8fab 0%, #ffb347 100%);
  border: none;
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(255, 143, 171, 0.4);
  cursor: pointer;
  transition: transform 0.12s, box-shadow 0.12s, filter 0.12s;
  -webkit-tap-highlight-color: transparent;
}

.submit-btn:hover {
  filter: brightness(1.05);
}

.submit-btn:active {
  transform: scale(0.97);
}

.submit-btn:disabled {
  opacity: 0.65;
  cursor: wait;
}

.submit-emoji {
  font-size: 1.2rem;
}

/* thanks */
.thanks-card {
  text-align: center;
  padding: 2rem 1.4rem;
  background: linear-gradient(165deg, #fff 0%, #ffe8f0 50%, #fff0e0 100%);
  animation: pop-in 0.45s ease-out;
}

@keyframes pop-in {
  from { opacity: 0; transform: translateY(12px) scale(0.96); }
  to { opacity: 1; transform: none; }
}

.thanks-icon {
  font-size: 3rem;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.thanks-title {
  margin: 0 0 0.75rem;
  font-size: 1.35rem;
  color: #c24b6e;
}

.thanks-body {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-soft);
}

.thanks-crepe {
  margin: 1rem 0;
  font-size: 1.5rem;
  letter-spacing: 0.3em;
}

.ghost-btn {
  appearance: none;
  margin-top: 0.5rem;
  padding: 0.55rem 1.2rem;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  color: #c45a78;
  background: #fff;
  border: 2px solid var(--pink);
  border-radius: 999px;
  cursor: pointer;
}

.ghost-btn:active {
  transform: scale(0.97);
}

.footer {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.72rem;
  color: #b8909c;
}

/* shake on error */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

.shake {
  animation: shake 0.35s ease;
}
