:root {
  color-scheme: light;
  --page: #f5f7f1;
  --ink: #2a2a2a;
  --muted: #595959;
  --panel: #ffffff;
  --line: #dfe5d8;
  --field: #fbfcf8;
  --accent: #91bd5a;
  --accent-bright: #bada7a;
  --accent-dark: #507131;
  --accent-soft: #eaf5d3;
  --sun: #f9c733;
  --flower: #d94841;
  --warning: #a33d35;
  --focus: #507131;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--page);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Zen Maru Gothic", "Noto Sans JP", system-ui, sans-serif;
  background: var(--page);
  color: var(--ink);
}

.page-shell {
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
  padding: 40px 0;
  display: grid;
  grid-template-columns: minmax(300px, 0.82fr) minmax(0, 1.18fr);
  gap: 32px;
  align-items: start;
}

.intro-panel {
  position: sticky;
  top: 24px;
  min-height: calc(100vh - 80px);
  padding: 30px;
  border: 1px solid #ccdda9;
  border-radius: 8px;
  background: var(--accent-soft);
  overflow: hidden;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-character {
  width: 92px;
  height: 92px;
  flex: 0 0 auto;
  padding: 8px;
  border: 4px solid #fff;
  border-radius: 50%;
  background: #fff;
  object-fit: contain;
  box-shadow: 0 8px 22px rgba(80, 113, 49, 0.16);
}

.brand-name,
.brand-subtitle {
  margin: 0;
}

.brand-name {
  color: var(--accent-dark);
  font-size: 1rem;
  font-weight: 700;
}

.brand-subtitle {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.78rem;
}

.intro-copy {
  margin-top: 44px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-dark);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  max-width: 12em;
  font-size: 2.75rem;
  line-height: 1.25;
  letter-spacing: 0;
}

h1 span {
  color: var(--accent-dark);
}

.lead {
  margin: 20px 0 0;
  max-width: 28rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.9;
}

.fruit-illustration {
  margin-top: 38px;
  width: min(100%, 240px);
}

.fruit-illustration img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid #bdce9b;
  box-shadow: 0 10px 24px rgba(80, 113, 49, 0.1);
  object-fit: cover;
}

.form-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 50px rgba(54, 75, 36, 0.08);
  overflow: hidden;
}

.form-heading {
  position: relative;
  padding: 24px 28px 22px;
  border-bottom: 1px solid var(--line);
  background: #fbfcf8;
}

.form-heading::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 7px;
  height: 100%;
  background: var(--sun);
}

.form-heading p,
.form-heading h2,
.form-heading span {
  margin: 0;
}

.form-heading p {
  color: var(--accent-dark);
  font-size: 0.76rem;
  font-weight: 700;
}

.form-heading h2 {
  margin-top: 4px;
  font-size: 1.35rem;
  line-height: 1.45;
  letter-spacing: 0;
}

.form-heading span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.78rem;
}

form {
  padding: 28px;
}

label,
fieldset {
  display: block;
}

label span,
legend {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 700;
}

label small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.6;
}

input,
textarea,
select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--field);
  color: var(--ink);
  font: inherit;
  padding: 10px 12px;
}

input[type="file"] {
  min-height: auto;
  padding: 10px;
  background: var(--field);
}

textarea {
  resize: vertical;
  line-height: 1.7;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--focus);
  outline: 3px solid rgba(186, 218, 122, 0.4);
}

form > label {
  margin-top: 20px;
}

form > label:first-of-type {
  margin-top: 0;
}

.is-hidden {
  display: none;
}

.form-actions {
  margin-top: 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
}

.status {
  min-height: 1.5em;
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.status[data-type="success"] {
  color: var(--accent-dark);
  font-weight: 700;
}

.status[data-type="error"] {
  color: var(--warning);
}

button[type="submit"] {
  min-height: 48px;
  border: 0;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: var(--accent-dark);
  color: #fff;
  font: inherit;
  font-weight: 800;
  padding: 0 22px;
  cursor: pointer;
  transition:
    background 160ms ease,
    transform 160ms ease;
}

button[type="submit"]:hover {
  background: #3f5e25;
  transform: translateY(-1px);
}

button[type="submit"]:focus-visible {
  outline: 3px solid rgba(249, 199, 51, 0.6);
  outline-offset: 3px;
}

button[type="submit"]:disabled {
  cursor: wait;
  opacity: 0.65;
  transform: none;
}

.submit-arrow {
  color: var(--sun);
  font-size: 1.15rem;
}

@media (max-width: 860px) {
  .page-shell {
    grid-template-columns: 1fr;
    padding: 28px 0;
  }

  .intro-panel {
    position: static;
    min-height: auto;
    padding: 24px;
  }

  h1 {
    max-width: none;
    font-size: 2.45rem;
  }

  .intro-copy {
    margin-top: 28px;
  }
}

@media (max-width: 680px) {
  .page-shell {
    width: min(100% - 20px, 1120px);
  }

  form {
    padding: 18px;
  }

  .intro-panel {
    padding: 20px;
  }

  .brand-character {
    width: 72px;
    height: 72px;
    padding: 6px;
  }

  h1 {
    font-size: 2.05rem;
  }

  .lead {
    font-size: 0.9rem;
  }

  .form-heading {
    padding: 20px 18px 18px;
  }

  .form-actions {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  button[type="submit"] {
    width: 100%;
  }
}
