:root {
  color-scheme: light;
  --page: #f7f5ed;
  --paper: #fffefa;
  --ink: #283229;
  --muted: #5d675f;
  --line: #d9dfd3;
  --field: #fbfcf7;
  --green-900: #365533;
  --green-700: #52774b;
  --green-300: #b7cc83;
  --green-100: #eef2df;
  --yellow: #f2c94c;
  --yellow-soft: #fff7d8;
  --error: #9b3f36;
  --error-soft: #fff3f0;
  --success-soft: #edf7e8;
  --shadow: 0 24px 70px rgba(51, 73, 48, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--page);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 8% 4%, rgba(242, 201, 76, 0.16), transparent 24rem),
    var(--page);
  color: var(--ink);
  font-family: "Zen Maru Gothic", "Noto Sans JP", system-ui, sans-serif;
  line-height: 1.7;
}

button,
input,
textarea {
  font: inherit;
}

.skip-link {
  position: fixed;
  z-index: 20;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  border-radius: 6px;
  background: var(--green-900);
  color: #fff;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.page-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 44px 0;
  display: grid;
  grid-template-columns: minmax(320px, 0.8fr) minmax(0, 1.2fr);
  gap: 30px;
  align-items: start;
}

.intro-panel {
  position: sticky;
  top: 24px;
  min-height: calc(100vh - 88px);
  padding: 34px;
  border: 1px solid #d8e0bc;
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.35), transparent 44%),
    var(--green-100);
  overflow: hidden;
}

.intro-panel::after {
  content: "";
  position: absolute;
  z-index: 0;
  right: -86px;
  bottom: -92px;
  width: 250px;
  height: 250px;
  border: 46px solid rgba(183, 204, 131, 0.38);
  border-radius: 50%;
}

.intro-panel > * {
  position: relative;
  z-index: 1;
}

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

.brand-symbol {
  position: relative;
  width: 50px;
  height: 50px;
  flex: 0 0 auto;
  border: 1px solid rgba(54, 85, 51, 0.2);
  border-radius: 50%;
  background: var(--paper);
  box-shadow: 0 8px 20px rgba(54, 85, 51, 0.09);
}

.brand-symbol::before,
.brand-symbol::after,
.brand-symbol span::before {
  content: "";
  position: absolute;
  width: 14px;
  height: 21px;
  border-radius: 100% 0 100% 0;
  background: var(--green-700);
  transform-origin: bottom right;
}

.brand-symbol::before {
  top: 10px;
  left: 10px;
  transform: rotate(-16deg);
}

.brand-symbol::after {
  top: 8px;
  right: 10px;
  transform: rotate(74deg);
}

.brand-symbol span::before {
  right: 17px;
  bottom: 7px;
  background: var(--yellow);
  transform: rotate(28deg) scale(0.82);
}

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

.brand-name {
  color: var(--green-900);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.brand-note {
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.eyebrow,
.section-kicker {
  margin: 0;
  color: var(--green-700);
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

h1 {
  margin: 10px 0 0;
  font-size: clamp(2.35rem, 4.4vw, 3.85rem);
  line-height: 1.16;
  letter-spacing: 0.01em;
}

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

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

.request-flow {
  margin: 38px 0 0;
  padding: 0;
  list-style: none;
}

.request-flow li {
  position: relative;
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  padding-bottom: 20px;
}

.request-flow li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 34px;
  bottom: 0;
  left: 16px;
  width: 1px;
  background: #c7d3a4;
}

.request-flow li > span {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--paper);
  color: var(--green-900);
  font-size: 0.78rem;
  font-weight: 700;
}

.request-flow strong,
.request-flow small {
  display: block;
}

.request-flow strong {
  font-size: 0.9rem;
}

.request-flow small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.73rem;
  line-height: 1.55;
}

.support-note {
  margin-top: 12px;
  padding: 18px 20px;
  border: 1px solid #e6d78f;
  border-radius: 12px;
  background: var(--yellow-soft);
}

.support-note p,
.support-note strong,
.support-note span {
  display: block;
  margin: 0;
}

.support-note p {
  color: var(--muted);
  font-size: 0.72rem;
}

.support-note strong {
  margin-top: 1px;
  color: var(--green-900);
  font-size: 1.2rem;
}

.support-note span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.73rem;
}

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

.form-heading {
  padding: 30px 34px 26px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, #fffefa, #fbfcf6);
}

.form-heading h2 {
  margin: 5px 0 0;
  font-size: 1.55rem;
  line-height: 1.45;
}

.form-heading > p:last-child {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.required-mark,
.optional-mark {
  display: inline-flex;
  min-height: 20px;
  margin-left: 5px;
  padding: 1px 7px;
  border-radius: 999px;
  align-items: center;
  vertical-align: 0.05em;
  font-size: 0.66rem;
  font-weight: 700;
  line-height: 1.4;
}

.required-mark {
  background: var(--yellow-soft);
  color: #6b5610;
}

.optional-mark {
  background: #edf0eb;
  color: var(--muted);
}

#request-form {
  padding: 0 34px 34px;
}

.form-section {
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
}

.section-heading {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  margin-bottom: 24px;
}

.section-heading > span {
  min-width: 34px;
  color: var(--green-700);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

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

.section-heading h3 {
  font-size: 1.12rem;
  line-height: 1.4;
}

.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: 22px 18px;
}

.field-wide {
  grid-column: 1 / -1;
}

.field + .field {
  margin-top: 24px;
}

.field-grid .field + .field {
  margin-top: 0;
}

.field label,
.field legend {
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 700;
}

.field label {
  display: block;
  margin-bottom: 8px;
}

.field legend {
  margin: 0 0 11px;
  padding: 0;
}

.field-hint {
  margin: -2px 0 8px;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.65;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
  width: 100%;
  min-height: 50px;
  padding: 11px 13px;
  border: 1px solid #cfd7cb;
  border-radius: 8px;
  background: var(--field);
  color: var(--ink);
  transition: border-color 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

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

input::placeholder,
textarea::placeholder {
  color: #8a928a;
  opacity: 1;
}

input:focus,
textarea:focus {
  border-color: var(--green-700);
  outline: 0;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(183, 204, 131, 0.42);
}

input[aria-invalid="true"],
textarea[aria-invalid="true"] {
  border-color: var(--error);
  background: var(--error-soft);
}

.radio-field {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

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

.radio-card {
  position: relative;
  min-height: 54px;
  margin: 0;
  padding: 11px 12px;
  border: 1px solid #cfd7cb;
  border-radius: 8px;
  display: flex !important;
  gap: 9px;
  align-items: center;
  background: var(--field);
  cursor: pointer;
  font-size: 0.8rem !important;
  font-weight: 500 !important;
  line-height: 1.5;
}

.radio-card:hover {
  border-color: var(--green-300);
  background: #fff;
}

.radio-card:has(input:checked) {
  border-color: var(--green-700);
  background: var(--green-100);
  box-shadow: inset 4px 0 0 var(--green-700);
}

.radio-card input {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  accent-color: var(--green-700);
}

.radio-field[data-invalid="true"] .radio-grid {
  padding: 4px;
  border-radius: 10px;
  outline: 2px solid rgba(155, 63, 54, 0.65);
}

.field-error {
  min-height: 0;
  margin: 6px 0 0;
  color: var(--error);
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1.55;
}

.field-error:empty {
  display: none;
}

.confirmation-section {
  margin: 28px 0 0;
  padding: 22px;
  border: 1px solid #e4ddb8;
  border-radius: 12px;
  background: #fffdf3;
}

.confirmation-section h3 {
  margin: 0 0 12px;
  font-size: 1rem;
}

.check-card {
  display: flex;
  gap: 10px;
  align-items: center;
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 700;
}

.check-card input {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  accent-color: var(--green-700);
}

.privacy-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.72rem;
}

.form-actions {
  margin-top: 26px;
  display: grid;
  gap: 12px;
}

.status {
  min-height: 1.5em;
  margin: 0;
  color: var(--muted);
  text-align: center;
  font-size: 0.8rem;
}

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

button[type="submit"] {
  width: 100%;
  min-height: 56px;
  padding: 0 22px;
  border: 0;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: var(--green-900);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(54, 85, 51, 0.2);
  transition: background 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}

button[type="submit"]:hover {
  background: #294729;
  transform: translateY(-1px);
  box-shadow: 0 13px 28px rgba(54, 85, 51, 0.25);
}

button[type="submit"]:focus-visible {
  outline: 3px solid rgba(242, 201, 76, 0.75);
  outline-offset: 3px;
}

button[type="submit"]:disabled {
  cursor: wait;
  opacity: 0.68;
  transform: none;
  box-shadow: none;
}

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

.error-summary,
.success-message {
  margin: 26px 34px 0;
  padding: 18px 20px;
  border-radius: 10px;
}

.error-summary {
  border: 1px solid #e5b5ae;
  background: var(--error-soft);
  color: var(--error);
}

.error-summary strong {
  display: block;
  font-size: 0.88rem;
}

.error-summary ul {
  margin: 8px 0 0;
  padding-left: 1.2rem;
  font-size: 0.78rem;
}

.success-message {
  border: 1px solid #c6ddbb;
  display: flex;
  gap: 13px;
  align-items: flex-start;
  background: var(--success-soft);
  color: var(--green-900);
}

.success-message > span {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--green-700);
  color: #fff;
  font-weight: 700;
}

.success-message h2,
.success-message p {
  margin: 0;
}

.success-message h2 {
  font-size: 1rem;
}

.success-message p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.78rem;
}

.is-hidden {
  display: none !important;
}

.honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media (max-width: 920px) {
  .page-shell {
    grid-template-columns: 1fr;
    width: min(760px, calc(100% - 32px));
    padding: 24px 0 40px;
  }

  .intro-panel {
    position: relative;
    top: auto;
    min-height: 0;
  }

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

  h1 {
    font-size: clamp(2.45rem, 9vw, 3.5rem);
  }

  .request-flow {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }

  .request-flow li {
    grid-template-columns: 30px 1fr;
  }

  .request-flow li:not(:last-child)::after {
    display: none;
  }
}

@media (max-width: 620px) {
  body {
    background: var(--page);
  }

  .page-shell {
    width: calc(100% - 24px);
    padding-top: 12px;
    gap: 14px;
  }

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

  .intro-panel {
    padding: 24px 20px;
  }

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

  h1 {
    font-size: 2.65rem;
  }

  .lead {
    font-size: 0.88rem;
  }

  .request-flow {
    display: block;
    margin-top: 28px;
  }

  .request-flow li {
    grid-template-columns: 34px 1fr;
    padding-bottom: 17px;
  }

  .request-flow li:not(:last-child)::after {
    display: block;
  }

  .form-heading {
    padding: 24px 20px 21px;
  }

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

  #request-form {
    padding: 0 20px 24px;
  }

  .form-section {
    padding: 28px 0;
  }

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

  .radio-card {
    min-height: 50px;
  }

  .confirmation-section {
    margin-top: 22px;
    padding: 18px;
  }

  .error-summary,
  .success-message {
    margin: 20px 20px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
