:root {
  --bg: #f3f8f6;
  --card: #ffffff;
  --text: #1f2d2a;
  --muted: #5f726d;
  --border: #d5e3de;
  --accent: #0f8f78;
  --accent-hover: #0b7561;
  --accent-soft: #e3f4ef;
  --error: #b00020;
  --error-bg: #fdecee;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1a18;
    --card: #17272a;
    --text: #e6f0ed;
    --muted: #9bb0aa;
    --border: #2b4140;
    --accent: #3cc3a8;
    --accent-hover: #5fd6bd;
    --accent-soft: #1b3a36;
    --error: #ff8a9b;
    --error-bg: #3a1a20;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN",
    "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
  line-height: 1.7;
}

.hero {
  background: linear-gradient(135deg, #0b7561 0%, #0f8f78 50%, #35c4a5 100%);
  color: #fff;
  padding: 3rem 16px 6rem;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -80px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}

.hero-inner {
  max-width: 560px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero h1 {
  margin: 0;
  font-size: clamp(1.7rem, 7vw, 2.4rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0.02em;
}

.subtitle {
  display: inline-block;
  margin: 0.8rem 0 0;
  padding: 0.2rem 0.9rem;
  border-radius: 999px;
  background: #fff;
  color: #0b7561;
  font-weight: 700;
  font-size: 0.95rem;
}

main {
  max-width: 560px;
  margin: -3.5rem auto 2rem;
  padding: 0 16px;
  position: relative;
  z-index: 2;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2rem 1.75rem;
  box-shadow: 0 16px 40px rgba(11, 117, 97, 0.18);
}

.lead {
  margin: 0 0 1.75rem;
  font-size: 1rem;
}

.error {
  margin: 0 0 1.25rem;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  background: var(--error-bg);
  color: var(--error);
  font-size: 0.92rem;
}

.field { margin-bottom: 1.4rem; }

.field > label,
.field > .label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 600;
  font-size: 0.92rem;
}

.hint {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

input[type="file"],
input[type="date"] {
  width: 100%;
  padding: 1.1rem 0.8rem;
  border: 2px dashed var(--border);
  border-radius: 10px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
}

input[type="date"] {
  border-style: solid;
  max-width: 14rem;
}

input[type="file"]::file-selector-button {
  margin-right: 0.8rem;
  padding: 0.45rem 0.9rem;
  border: 0;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

input:focus-visible,
button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

button[type="submit"] {
  width: 100%;
  padding: 1rem;
  border: 0;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.15s;
}

@media (prefers-color-scheme: dark) {
  button[type="submit"] { color: #08201b; }
}

button[type="submit"]:hover { background: var(--accent-hover); }
button[type="submit"]:disabled { opacity: 0.6; cursor: wait; }

.footer {
  margin-top: 1.5rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.8rem;
}
