:root {
  color-scheme: only light;
  --bg-top: #f7efe1;
  --bg-bottom: #f1f6f0;
  --ink: #1a1c1a;
  --muted: #3c4a42;
  --accent: #1f7a6b;
  --accent-strong: #14584d;
  --accent-warm: #e1863a;
  --card: rgba(255, 252, 246, 0.92);
  --border: rgba(23, 45, 38, 0.16);
  --shadow: rgba(15, 33, 25, 0.12);
  --focus: rgba(31, 122, 107, 0.25);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
  color: var(--ink);
  background: linear-gradient(160deg, var(--bg-top), var(--bg-bottom));
}

.bg {
  position: fixed;
  inset: 0;
  overflow: hidden;
  z-index: -1;
}

.grain {
  position: absolute;
  inset: -50%;
  background-image: radial-gradient(rgba(0, 0, 0, 0.05) 1px, transparent 0);
  background-size: 3px 3px;
  opacity: 0.25;
  mix-blend-mode: multiply;
  animation: drift 30s linear infinite;
}

.orb {
  position: absolute;
  width: 46vw;
  height: 46vw;
  max-width: 520px;
  max-height: 520px;
  border-radius: 50%;
  filter: blur(0);
  opacity: 0.55;
}

.orb-1 {
  background: radial-gradient(circle, rgba(31, 122, 107, 0.5), rgba(31, 122, 107, 0));
  top: -15%;
  left: -10%;
}

.orb-2 {
  background: radial-gradient(circle, rgba(225, 134, 58, 0.5), rgba(225, 134, 58, 0));
  bottom: -20%;
  right: -10%;
}

.wrap {
  max-width: 820px;
  margin: 0 auto;
  padding: 56px 20px 64px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.hero {
  animation: fade-rise 700ms ease both;
}

.tag {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  color: var(--muted);
  margin: 0 0 12px;
}

.title {
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
  font-size: clamp(2rem, 3vw + 1rem, 3rem);
  line-height: 1.2;
  margin: 0 0 16px;
}

.lead {
  margin: 0;
  color: var(--muted);
  max-width: 52ch;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 24px 50px -34px var(--shadow);
  animation: fade-rise 700ms ease both;
  animation-delay: 120ms;
}

form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

label {
  font-weight: 600;
  font-size: 0.95rem;
}

input,
textarea {
  font-family: inherit;
  font-size: 1rem;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.85);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--focus);
}

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

.turnstile {
  min-height: 64px;
}

.submit {
  border: none;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #fff;
  padding: 14px 18px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px -18px rgba(31, 122, 107, 0.8);
}

.submit:disabled {
  cursor: progress;
  opacity: 0.7;
  transform: none;
  box-shadow: none;
}

.status {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
  min-height: 1.4em;
}

.status[data-state="error"] {
  color: #b0482b;
}

.status[data-state="success"] {
  color: var(--accent-strong);
}

.success {
  border-radius: 12px;
  border: 1px solid rgba(31, 122, 107, 0.2);
  padding: 14px 16px;
  background: rgba(31, 122, 107, 0.08);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.issue-link {
  color: var(--accent-strong);
  font-weight: 600;
  text-decoration: none;
}

.issue-link:hover {
  text-decoration: underline;
}

.footer {
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
  animation: fade-rise 700ms ease both;
  animation-delay: 240ms;
}

@keyframes fade-rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes drift {
  from {
    transform: translateX(-5%) translateY(-4%);
  }
  to {
    transform: translateX(5%) translateY(4%);
  }
}

@media (max-width: 720px) {
  .wrap {
    padding: 40px 16px 56px;
  }

  .card {
    padding: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
