:root {
  color-scheme: light;
  --page: #f5f3ea;
  --paper: #fffdf8;
  --ink: #24372f;
  --muted: #627069;
  --line: #dce2d8;
  --field: #fbfcf8;
  --green: #315f4a;
  --green-dark: #234838;
  --green-soft: #e6f0e8;
  --gold: #dba52e;
  --gold-soft: #f7ebc9;
  --error: #a33d35;
  --shadow: 0 20px 54px rgba(39, 66, 54, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--page);
  overflow-x: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 8% 10%, rgba(219, 165, 46, 0.11), transparent 28rem),
    var(--page);
  color: var(--ink);
  font-family: "Hiragino Sans", "Yu Gothic", "Noto Sans JP", system-ui, sans-serif;
}

button,
input,
select,
textarea {
  font: inherit;
}

.page-shell {
  width: min(1120px, 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: 32px;
  border: 1px solid #c9d8ca;
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.64), transparent 55%),
    var(--green-soft);
  overflow: hidden;
}

.intro-panel::after {
  content: "";
  position: absolute;
  right: -72px;
  bottom: -72px;
  width: 220px;
  height: 220px;
  border: 1px solid rgba(49, 95, 74, 0.18);
  border-radius: 50%;
  box-shadow:
    0 0 0 28px rgba(255, 255, 255, 0.16),
    0 0 0 56px rgba(49, 95, 74, 0.05);
}

.brand-lockup {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 13px;
}

.brand-icon {
  width: 58px;
  height: 58px;
  object-fit: contain;
  flex: 0 0 auto;
}

.brand-name {
  margin: 0;
  color: var(--green-dark);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.intro-copy {
  position: relative;
  z-index: 1;
  margin-top: 60px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

h1 {
  margin: 0;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(2.2rem, 4.2vw, 3.25rem);
  font-weight: 600;
  line-height: 1.32;
  letter-spacing: 0.02em;
}

h1 span {
  color: var(--green);
}

.lead {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.95;
}

.flow-list {
  position: relative;
  z-index: 1;
  margin: 42px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 13px;
}

.flow-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--green-dark);
  font-size: 0.84rem;
  font-weight: 700;
}

.flow-list span {
  width: 29px;
  height: 29px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--paper);
  color: var(--green);
  font-size: 0.74rem;
}

.privacy-note {
  position: relative;
  z-index: 1;
  margin: 34px 0 0;
  padding-top: 18px;
  border-top: 1px solid rgba(49, 95, 74, 0.18);
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.75;
}

.form-panel {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.form-heading {
  position: relative;
  min-height: 120px;
  padding: 26px 30px;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 76px;
  gap: 18px;
  align-items: center;
  background: #fcfbf6;
}

.form-heading::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 7px;
  background: var(--gold);
}

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

.form-heading p {
  color: var(--green);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.form-heading h2 {
  margin-top: 5px;
  font-size: 1.35rem;
}

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

.form-heading strong,
form strong {
  color: var(--error);
}

.form-icon {
  width: 70px;
  height: 70px;
  display: grid !important;
  place-items: center;
  justify-self: end;
  border-radius: 50%;
  background: var(--gold-soft);
  color: #9f7115 !important;
  font-size: 1.7rem !important;
}

form {
  padding: 30px;
}

.section-heading {
  margin: 36px 0 18px;
  display: flex;
  align-items: center;
  gap: 13px;
}

.section-heading:first-child {
  margin-top: 0;
}

.section-heading > span {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 800;
}

.section-heading h3,
.section-heading p {
  margin: 0;
}

.section-heading h3 {
  font-size: 1rem;
}

.section-heading p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.76rem;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.field-span-full {
  grid-column: 1 / -1;
}

label,
fieldset {
  min-width: 0;
  display: block;
}

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

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

fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

input,
select,
textarea {
  width: 100%;
  min-height: 49px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--field);
  color: var(--ink);
  padding: 11px 13px;
}

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

input:focus,
select:focus,
textarea:focus {
  border-color: var(--green);
  outline: 3px solid rgba(49, 95, 74, 0.14);
}

::placeholder {
  color: #929b95;
}

.rating {
  min-height: 49px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 7px;
}

.rating label {
  position: relative;
}

.rating input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.rating label span {
  height: 49px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: var(--field);
  color: var(--muted);
  cursor: pointer;
}

.rating input:checked + span {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}

.rating input:focus-visible + span {
  outline: 3px solid rgba(49, 95, 74, 0.2);
  outline-offset: 2px;
}

.field-help {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.7rem;
}

.honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.form-actions {
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
}

.status {
  min-height: 1.5em;
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.55;
}

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

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

button[type="submit"]:hover {
  background: var(--green-dark);
  transform: translateY(-1px);
}

button[type="submit"]:focus-visible {
  outline: 3px solid rgba(219, 165, 46, 0.42);
  outline-offset: 3px;
}

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

.success-panel {
  min-height: 520px;
  padding: 68px 30px;
  text-align: center;
}

.success-panel:focus {
  outline: none;
}

.success-mark {
  width: 72px;
  height: 72px;
  margin: 0 auto;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--green-soft);
  color: var(--green);
  font-size: 1.75rem;
  font-weight: 900;
}

.success-panel h2 {
  margin: 22px 0 0;
  font-size: 1.4rem;
}

.success-panel p {
  max-width: 32rem;
  margin: 14px auto 0;
  color: var(--muted);
  line-height: 1.9;
}

[hidden] {
  display: none !important;
}

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

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

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

  .privacy-note {
    max-width: 42rem;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 20px, 1120px);
    padding: 10px 0 22px;
    gap: 16px;
  }

  .intro-panel,
  .form-panel {
    border-radius: 13px;
  }

  .intro-panel {
    padding: 22px;
  }

  .brand-icon {
    width: 50px;
    height: 50px;
  }

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

  h1 {
    font-size: 2.18rem;
  }

  .lead {
    font-size: 0.9rem;
  }

  .flow-list {
    margin-top: 28px;
  }

  .form-heading {
    min-height: 105px;
    grid-template-columns: minmax(0, 1fr) 58px;
    padding: 21px 19px;
  }

  .form-heading h2 {
    font-size: 1.15rem;
  }

  .form-icon {
    width: 54px;
    height: 54px;
    font-size: 1.35rem !important;
  }

  form {
    padding: 22px 18px;
  }

  .field-grid,
  .form-actions {
    grid-template-columns: 1fr;
  }

  .section-heading {
    margin-top: 32px;
  }

  .form-actions {
    gap: 10px;
  }

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

  .success-panel {
    min-height: 400px;
    padding: 52px 22px;
  }
}
