:root {
  --ink: #1f2a24;
  --muted: #5d6b62;
  --line: #d8ded8;
  --paper: #fbfaf6;
  --soft: #eef3ee;
  --brand: #17634f;
  --brand-dark: #083c2e;
  --accent: #b35d2e;
  --white: #ffffff;
  --shadow: 0 18px 44px rgba(17, 37, 28, .10);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Yu Gothic", "Hiragino Sans", "Noto Sans JP", system-ui, sans-serif;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(251,250,246,.98) 0%, rgba(251,250,246,.88) 100%),
    url("assets/succession-hero.png") center/cover fixed;
  line-height: 1.75;
  letter-spacing: 0;
}

.header {
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-weight: 800;
  font-size: 28px;
  white-space: nowrap;
}

.brand-mark {
  width: 48px;
  height: 48px;
  border: 3px solid var(--brand);
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: var(--brand);
  font-family: "Yu Gothic", sans-serif;
  font-size: 24px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-weight: 800;
  font-size: 15px;
}

.nav a {
  color: var(--ink);
  text-decoration: none;
}

.form-page {
  min-height: 100svh;
  padding: 28px 20px 64px;
}

.back-link {
  display: inline-block;
  margin: 0 0 20px calc((100% - min(820px, 100%)) / 2);
  color: var(--brand);
  text-decoration: none;
  font-weight: 700;
  background: rgba(255,255,255,.86);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 12px;
}

.form-shell {
  width: min(820px, 100%);
  margin: 0 auto;
  padding: 38px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.form-shell.compact {
  margin-top: 12vh;
}

.eyebrow {
  color: var(--accent);
  font-weight: 700;
  margin: 0 0 10px;
  font-size: 15px;
}

h1 {
  margin: 0;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif JP", serif;
  font-size: 40px;
  line-height: 1.25;
  letter-spacing: 0;
}

.lead {
  color: var(--muted);
  margin: 16px 0 26px;
  font-size: 17px;
}

.form-points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 0 0 26px;
}

.form-point {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--soft);
  padding: 12px;
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

.lead-form {
  display: grid;
  gap: 22px;
}

.form-section {
  display: grid;
  gap: 16px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.form-section h2 {
  margin: 0;
  color: var(--ink);
  font-family: "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif JP", serif;
  font-size: 22px;
  line-height: 1.4;
}

.form-section-note {
  margin: -8px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

label {
  display: grid;
  gap: 7px;
  font-weight: 700;
}

label span {
  display: inline-block;
  width: fit-content;
  padding: 1px 7px;
  border-radius: 4px;
  background: var(--soft);
  color: var(--brand-dark);
  font-size: 12px;
}

.optional {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 13px 14px;
  font: inherit;
  background: #fff;
  color: var(--ink);
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(23, 99, 79, .14);
  border-color: var(--brand);
}

textarea {
  resize: vertical;
}

.microcopy {
  margin: -2px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 500;
  color: var(--muted);
}

.check input {
  width: auto;
  margin-top: 7px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  width: fit-content;
  padding: 12px 22px;
  border-radius: 6px;
  border: 1px solid var(--brand);
  background: var(--brand);
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
  line-height: 1.3;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(15, 91, 70, .16);
}

.policy-body,
.info-table {
  color: var(--muted);
}

.policy-body h2 {
  margin: 28px 0 8px;
  color: var(--ink);
  font-size: 20px;
}

.policy-body p {
  margin: 0;
}

.info-table dl {
  margin: 24px 0;
  border-top: 1px solid var(--line);
}

.info-table dt,
.info-table dd {
  margin: 0;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.info-table dt {
  color: var(--ink);
  font-weight: 800;
}

@media (max-width: 720px) {
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .brand {
    font-size: 22px;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
  }

  .nav {
    flex-wrap: wrap;
    gap: 14px;
    font-size: 14px;
  }

  .form-page {
    padding: 18px 14px 44px;
  }

  .form-shell {
    padding: 22px;
  }

  h1 {
    font-size: 30px;
  }

  .form-points {
    grid-template-columns: 1fr;
  }

  .form-section {
    padding: 18px;
  }

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