/* 地域事業パートナー エントリー 2026-11-18 */
:root {
  --accent: #0046b8;
  --accent-dark: #00317f;
  --accent-soft: #eef4ff;
  --ink: #0b1526;
  --sub: #4f5b6d;
  --line: #dbe3ef;
  --bg: #f5f7fb;
  --warn: #c2410c;
  font-family:
    -apple-system, BlinkMacSystemFont, "Hiragino Sans",
    "Hiragino Kaku Gothic ProN", "Noto Sans JP", Meiryo, sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-size: 15px;
  line-height: 1.85;
  -webkit-text-size-adjust: 100%;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
}
a {
  color: inherit;
}
button,
input,
textarea {
  font: inherit;
  color: inherit;
}
button,
summary {
  cursor: pointer;
}
:focus-visible {
  outline: 3px solid #5b9bff;
  outline-offset: 2px;
}
[hidden] {
  display: none !important;
}
p {
  margin: 0 0 12px;
}
strong {
  font-weight: 700;
}
.sp {
  display: none;
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: 1080px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 24px;
}
.brand {
  text-decoration: none;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.brand span {
  color: var(--accent);
}
.brand small {
  display: block;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--sub);
  margin-top: 3px;
}
.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
}
.header-cta b {
  background: var(--accent);
  color: #fff;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
}

/* ---------- hero ---------- */
.hero {
  color: #fff;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.05) 0 1px,
      transparent 1px 64px
    ),
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.05) 0 1px,
      transparent 1px 64px
    ),
    linear-gradient(135deg, #0052d6 0%, var(--accent) 45%, #002a6e 100%);
}
.hero-inner {
  max-width: 1080px;
  margin: auto;
  padding: 64px 24px 72px;
}
h1 {
  font-size: clamp(28px, 4.4vw, 46px);
  line-height: 1.4;
  letter-spacing: 0.01em;
  margin: 0 0 22px;
  word-break: keep-all;
  overflow-wrap: anywhere;
  text-wrap: balance;
}
h1,
h2,
h3,
.card-value {
  font-feature-settings: "palt";
}
.yes-no {
  max-width: 360px;
}
.h1-sub {
  display: block;
  font-size: 0.5em;
  font-weight: 700;
  opacity: 0.85;
  margin-bottom: 6px;
}
.lead {
  max-width: 720px;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 28px;
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(0, 20, 60, 0.25);
}
.hero-cta::after {
  content: "↓";
}

/* ---------- content blocks ---------- */
main {
  padding-bottom: 72px;
}
.block {
  max-width: 1080px;
  margin: 0 auto;
  padding: 56px 24px 0;
}
.block-title {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 23px;
  line-height: 1.45;
  margin: 0 0 22px;
}
.block-title > span {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 15px;
}
.block-title,
.form-section h2 {
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.cards {
  display: grid;
  gap: 16px;
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
}
.cols-2 {
  grid-template-columns: repeat(2, 1fr);
}
.cols-3 {
  grid-template-columns: repeat(3, 1fr);
}
.cols-4 {
  grid-template-columns: repeat(4, 1fr);
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px;
  font-size: 14px;
  margin: 0;
}
.card p:last-child {
  margin-bottom: 0;
}
.card-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 4px;
}
.card-value {
  font-size: 40px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.card-value small {
  font-size: 15px;
  margin: 0 3px;
}
.card-value.small {
  font-size: 20px;
  line-height: 1.45;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.card-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  background: var(--accent-soft);
  color: var(--accent);
  padding: 1px 8px;
  border-radius: 4px;
}
.callout {
  background: #fff;
  border-left: 4px solid var(--accent);
  border-radius: 0 12px 12px 0;
  padding: 22px 26px;
}
.callout p:last-child {
  margin: 0;
}
.accent {
  color: var(--accent);
}
.examples .card {
  position: relative;
  padding-top: 38px;
}
.examples .card::before {
  content: "例";
  position: absolute;
  top: 12px;
  left: 22px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: var(--sub);
  padding: 0 8px;
  border-radius: 4px;
}
.note {
  font-size: 13px;
  color: var(--sub);
}

/* offer (1次限定特典) */
.offer {
  margin-top: 0;
}
.offer-kicker {
  display: inline-block;
  color: #fff;
  background: var(--warn);
  font-size: 12px;
  font-weight: 700;
  padding: 2px 12px;
  border-radius: 4px;
  margin-bottom: 10px;
}
.offer .block-title {
  margin-bottom: 12px;
}
.deadline {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 16px;
  background: var(--accent-soft);
  border-radius: 10px;
  padding: 14px 20px;
  margin: 18px 0 26px;
}
.deadline span {
  font-weight: 700;
  color: var(--warn);
}
.deadline strong {
  font-size: 26px;
  color: var(--accent-dark);
}
.deadline strong small {
  display: inline-block;
  font-feature-settings: "palt";
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
  white-space: nowrap;
}
.perks-title {
  font-size: 17px;
  margin: 0 0 12px;
}
.perks {
  counter-reset: perk;
}
.perks .card {
  counter-increment: perk;
  position: relative;
  background: var(--accent-soft);
  border-color: transparent;
  padding-top: 52px;
}
.perks .card::before {
  content: "特典 " counter(perk);
  position: absolute;
  top: 16px;
  left: 22px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #fff;
  background: var(--accent);
  padding: 2px 10px;
  border-radius: 4px;
}
.perks .card strong {
  color: var(--accent-dark);
}
.perks small {
  display: block;
  font-size: 12px;
  color: var(--sub);
  margin-top: 6px;
}

.perks .card p:last-child {
  font-size: 13px;
  color: var(--sub);
}
.second-round {
  border-top: 1px dashed var(--line);
  margin-top: 20px;
  padding-top: 16px;
  font-size: 14px;
}

/* 規約の開閉 */
.terms summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-weight: 700;
}
.terms summary::-webkit-details-marker {
  display: none;
}
.terms summary span {
  font-size: 12px;
  font-weight: 500;
  color: var(--sub);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.terms summary span::after {
  content: "＋";
  color: var(--accent);
  font-weight: 700;
  font-size: 16px;
}
.terms[open] summary span::after {
  content: "−";
}

/* ---------- form ---------- */
.form-wrap {
  max-width: 860px;
  margin: 72px auto 0;
  padding: 0 24px;
}
.form-kicker {
  text-align: center;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin: 0;
}
.form-title {
  text-align: center;
  font-size: 28px;
  margin: 0 0 8px;
}
.steps {
  display: flex;
  justify-content: center;
  gap: 0;
  list-style: none;
  padding: 0;
  margin: 12px 0 28px;
  font-size: 13px;
  color: var(--sub);
}
.steps li {
  display: flex;
  gap: 8px;
  align-items: center;
}
.steps li + li::before {
  content: "";
  width: 40px;
  height: 1px;
  background: var(--line);
  margin: 0 12px;
}
.steps b {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  background: #e5e9f0;
  border-radius: 50%;
  font-size: 12px;
}
.steps [aria-current="step"] {
  color: var(--accent);
  font-weight: 700;
}
.steps [aria-current="step"] b {
  background: var(--accent);
  color: #fff;
}
.required {
  display: inline-block;
  color: #fff;
  background: var(--warn);
  font-size: 10px;
  line-height: 1.6;
  padding: 1px 6px;
  margin-left: 6px;
  vertical-align: 2px;
  font-weight: 700;
  border-radius: 3px;
  white-space: nowrap;
}
.required-guide {
  font-size: 12px;
  color: var(--sub);
  margin: 0 0 12px;
}
.required-guide .required {
  margin: 0 4px 0 0;
}
#entry-form,
.state-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 32px 36px;
  margin: 0 0 20px;
}
.form-section {
  padding: 0;
  margin: 0;
}
.form-section + .form-section {
  margin-top: 16px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.form-section h2,
.state-panel h2 {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 12px;
  font-size: 19px;
  line-height: 1.5;
  margin: 0 0 24px;
}
.form-section h2 > span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
}
.form-section h2 small {
  flex-basis: 100%;
  font-size: 12px;
  font-weight: 500;
  color: var(--sub);
  padding-left: 42px;
}
.field {
  margin: 0 0 22px;
}
label,
legend {
  font-size: 14px;
  font-weight: 700;
}
.field > label,
.conditional > label,
.conditional .field > label {
  display: block;
  margin-bottom: 8px;
}
input:not([type="checkbox"]):not([type="radio"]),
textarea {
  display: block;
  width: 100%;
  border: 1px solid #c3ccd9;
  border-radius: 8px;
  padding: 12px 14px;
  min-height: 50px;
  background: #fbfcfe;
  font-size: 16px;
  transition:
    border-color 0.15s,
    background 0.15s;
}
input:not([type="checkbox"]):not([type="radio"]):focus,
textarea:focus {
  border-color: var(--accent);
  background: #fff;
}
textarea {
  resize: vertical;
  min-height: 160px;
}
::placeholder {
  color: #8a94a3;
  font-size: 14px;
}
input.short {
  max-width: 200px;
}
.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 20px;
}
.field small,
.hint {
  display: block;
  color: var(--sub);
  font-size: 12px;
  margin: 6px 0 0;
  font-weight: 400;
  line-height: 1.7;
}
.hint {
  margin: 0 0 10px;
}
fieldset {
  border: 0;
  padding: 0;
  margin-left: 0;
  margin-right: 0;
  min-width: 0;
}
legend {
  padding: 0;
  margin: 0 0 10px;
}
.chips {
  display: grid;
  gap: 8px;
}
.chips label {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  padding: 10px 14px;
  border: 1px solid #c3ccd9;
  border-radius: 8px;
  background: #fff;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  cursor: pointer;
  transition:
    border-color 0.15s,
    background 0.15s;
}
.chips label:hover {
  border-color: var(--accent);
}
.chips label:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-weight: 700;
  box-shadow: inset 0 0 0 1px var(--accent);
}
input[type="checkbox"],
input[type="radio"] {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  margin: 0;
  accent-color: var(--accent);
  cursor: pointer;
}
.conditional {
  margin: -6px 0 22px;
  padding: 16px 18px;
  background: var(--accent-soft);
  border-radius: 8px;
}
.conditional .field:last-child {
  margin-bottom: 0;
}
.conditional .grid .field {
  margin-bottom: 0;
}
.number-field {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}
.number-field input {
  max-width: 140px;
}
.consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0 0 16px;
  font-size: 13px;
  line-height: 1.8;
  font-weight: 400;
  cursor: pointer;
}
.consent input {
  margin-top: 3px;
}

.terms {
  margin: 24px 0 16px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.terms summary {
  padding: 14px 0;
  font-size: 14px;
  cursor: pointer;
}
.terms-body {
  max-height: 420px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 4px 0 16px;
  font-size: 12px;
  line-height: 1.9;
  color: #2b3442;
}
.terms-body h4 {
  font-size: 13px;
  margin: 18px 0 6px;
}
.terms-body p {
  margin: 6px 0;
}
.terms-consent {
  font-size: 14px;
  font-weight: 700;
}
.cta,
.primary,
.secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 56px;
  padding: 14px 24px;
  font-size: 15px;
  font-weight: 700;
  border-radius: 999px;
  border: 1px solid var(--accent);
  line-height: 1.5;
  text-align: center;
}
.primary {
  color: #fff;
  background: var(--accent);
  width: 100%;
  box-shadow: 0 8px 20px rgba(0, 70, 184, 0.25);
  transition:
    background 0.15s,
    transform 0.15s;
}
.primary:hover {
  background: var(--accent-dark);
}
.primary:active {
  transform: translateY(1px);
}
.cta {
  margin-top: 24px;
  min-height: 64px;
  font-size: 16px;
}
.cta svg {
  flex: 0 0 auto;
}
.secondary {
  color: var(--ink);
  background: #fff;
  border-color: #c3ccd9;
}
.small-note {
  text-align: center;
  color: var(--sub);
  font-size: 12px;
  margin: 12px 0 0;
}
.muted {
  color: var(--sub);
  font-size: 13px;
}
.error {
  color: #b42318;
  font-size: 12px;
  margin: 8px 0 0;
}
.validation-errors {
  padding: 14px 18px;
  margin-top: 16px;
  border: 1px solid #f1b5ae;
  border-radius: 10px;
  background: #fff5f4;
  color: #b42318;
  font-size: 13px;
}
.validation-errors ul {
  margin: 6px 0 0;
  padding-left: 20px;
}
[aria-invalid="true"] {
  border-color: #d92d20 !important;
}
.chips label:has([aria-invalid="true"]) {
  border-color: #d92d20;
}

/* confirm / complete */
.state-panel dl {
  margin: 8px 0 20px;
}
.state-panel dl div {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.state-panel dt {
  font-weight: 700;
  color: var(--sub);
}
.state-panel dd {
  margin: 0;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}
.actions > * {
  flex: 1;
}
.success-mark {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 26px;
  font-weight: 800;
  border-radius: 50%;
  margin-bottom: 16px;
}
#complete-panel h2 {
  border: 0;
  padding: 0;
  margin-bottom: 10px;
}

footer {
  padding: 28px 24px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  border-top: 1px solid var(--line);
  background: #fff;
}
footer span {
  display: block;
  font-size: 11px;
  color: var(--sub);
  font-weight: 400;
  margin-top: 4px;
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .cols-3 {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 600px) {
  :root {
    font-size: 14px;
  }
  .sp {
    display: inline;
  }
  .header-inner {
    padding: 10px 16px;
  }
  .brand {
    font-size: 18px;
  }
  .brand small {
    font-size: 9px;
  }
  .header-cta {
    font-size: 0;
    gap: 0;
  }
  .header-cta b {
    font-size: 12px;
    padding: 7px 14px;
  }
  .hero-inner {
    padding: 36px 16px 44px;
  }
  h1 {
    font-size: 27px;
  }
  .h1-sub {
    font-size: 13px;
  }
  .lead {
    font-size: 14px;
  }

  .hero-cta {
    display: flex;
    justify-content: center;
  }
  .block {
    padding: 44px 16px 0;
  }
  .block-title {
    font-size: 19px;
    align-items: flex-start;
    gap: 10px;
  }
  .block-title > span {
    width: 28px;
    height: 28px;
    font-size: 13px;
    margin-top: 1px;
  }
  .deadline strong {
    font-size: 21px;
  }
  .cols-2 {
    grid-template-columns: 1fr;
  }
  .card {
    padding: 18px;
  }
  .card-value {
    font-size: 34px;
  }
  .callout {
    padding: 18px;
  }

  .form-wrap {
    margin-top: 56px;
    padding: 0 12px;
  }
  .form-title {
    font-size: 23px;
  }
  #entry-form,
  .state-panel {
    padding: 24px 16px;
    border-radius: 12px;
  }
  .form-section + .form-section {
    padding-top: 24px;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .cols-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .chips.cols-2:not(.yes-no) {
    grid-template-columns: 1fr;
  }
  .chips.yes-no {
    grid-template-columns: repeat(2, 1fr);
  }
  .form-section h2 {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: start;
    gap: 6px 10px;
    font-size: 17px;
  }
  .form-section h2 > span {
    width: 26px;
    height: 26px;
    font-size: 12px;
    margin-top: 1px;
  }
  .form-section h2 small {
    grid-column: 2;
    justify-self: start;
    padding-left: 0;
  }
  .terms summary span {
    font-size: 0;
  }
  .cta {
    font-size: 15px;
    padding: 12px 18px;
  }
  .actions {
    flex-direction: column-reverse;
  }
  .state-panel dl div {
    grid-template-columns: 1fr;
    gap: 2px;
  }
  .state-panel dt {
    font-size: 12px;
  }
}
