*,
*::before,
*::after {
  box-sizing: border-box;
  min-width: 0;
}

:root {
  --navy: #101b33;
  --ink: #162033;
  --muted: #64748b;
  --line: #d8e2f2;
  --blue: #246bfe;
  --blue-dark: #174dd6;
  --blue-soft: #eaf2ff;
  --orange: #f97316;
  --orange-dark: #dd5b06;
  --green: #0f9f6e;
  --red: #dc2626;
  --paper: rgba(255, 255, 255, 0.94);
  --shadow: 0 18px 55px rgba(18, 32, 58, 0.1);
  --radius-lg: 26px;
  --radius-md: 16px;
  --font: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

body {
  margin: 0;
  width: 100%;
  max-width: 100vw;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 0%, rgba(36, 107, 254, 0.18), transparent 33%),
    radial-gradient(circle at 92% 18%, rgba(249, 115, 22, 0.1), transparent 28%),
    linear-gradient(180deg, #f3f7ff 0%, #f8fbff 45%, #eef5ff 100%);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

p,
h1,
h2,
h3,
span,
label,
button,
input,
textarea,
legend {
  overflow-wrap: anywhere;
  word-break: break-word;
}

fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.partner-page {
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  padding: 36px 16px 72px;
  overflow: hidden;
}

.partner-page * {
  max-width: 100%;
}

.partner-hero {
  position: relative;
  padding: 8px 4px 20px;
  overflow: hidden;
}

.hero-kicker,
.section-kicker {
  margin: 0 0 8px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.partner-hero h1 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(30px, 7vw, 48px);
  line-height: 1.14;
  letter-spacing: -0.04em;
}

.hero-lead {
  margin: 14px 0 0;
  max-width: 780px;
  color: #475569;
  font-size: 15px;
}

.hero-note {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.hero-note span {
  flex: 0 1 auto;
  min-width: 0;
  max-width: 100%;
  padding: 7px 12px;
  color: #0f3f91;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(36, 107, 254, 0.18);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.partner-form {
  display: grid;
  gap: 18px;
}

.form-card {
  padding: 28px;
  background: var(--paper);
  border: 1px solid rgba(190, 211, 244, 0.8);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.section-heading {
  margin-bottom: 22px;
}

.section-heading h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(23px, 5vw, 30px);
  line-height: 1.25;
  letter-spacing: -0.03em;
}

.section-heading p:last-child {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.field {
  margin-bottom: 22px;
}

.field:last-child {
  margin-bottom: 0;
}

.field-label {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 10px;
  color: #26364f;
  font-size: 14px;
  font-weight: 800;
}

.required,
.optional {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
}

.required {
  color: #b91c1c;
  background: #fee2e2;
}

.optional {
  color: #31516d;
  background: #e8eef7;
}

.input-text {
  width: 100%;
  padding: 15px 16px;
  color: var(--navy);
  background: #f8fbff;
  border: 2px solid var(--line);
  border-radius: var(--radius-md);
  font-family: var(--font);
  font-size: 16px;
  outline: none;
  transition: 0.24s ease;
}

.input-text:focus {
  background: #fff;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(36, 107, 254, 0.11);
}

.input-text[readonly] {
  color: #42526d;
  background: #eef4fb;
}

.input-postal {
  font-size: 21px;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.textarea {
  resize: vertical;
  min-height: 132px;
}

.small-textarea {
  min-height: 100px;
}

.other-input {
  margin-top: 12px;
}

.field-hint,
.submit-note {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.field-error {
  min-height: 18px;
  margin: 7px 0 0;
  color: var(--red);
  font-size: 12px;
  font-weight: 700;
}

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

.address-box {
  padding: 20px;
  border: 1px solid rgba(36, 107, 254, 0.18);
  border-radius: 22px;
  background: rgba(234, 242, 255, 0.42);
}

.postal-feedback {
  min-height: 24px;
  margin-top: 8px;
  font-size: 13px;
  font-weight: 800;
}

.postal-feedback .loading {
  color: var(--blue);
}

.postal-feedback .success {
  color: var(--green);
}

.postal-feedback .error {
  color: var(--red);
}

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

.region-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.radio-list {
  display: grid;
  gap: 10px;
}

.check-card,
.radio-card,
.check-pill {
  display: flex;
  min-height: 58px;
  cursor: pointer;
}

.check-card input,
.radio-card input,
.check-pill input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.check-card span,
.radio-card span,
.check-pill span {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 13px 14px;
  color: #24344f;
  background: #fff;
  border: 2px solid var(--line);
  border-radius: 16px;
  font-size: 13px;
  font-weight: 800;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
  transition: 0.22s ease;
}

.check-pill {
  min-height: 48px;
}

.check-pill span {
  justify-content: center;
  padding: 10px 12px;
}

.check-card input:checked + span,
.radio-card input:checked + span,
.check-pill input:checked + span {
  color: #fff;
  border-color: var(--blue);
  background: linear-gradient(135deg, var(--blue), #174dd6);
  box-shadow: 0 12px 26px rgba(36, 107, 254, 0.22);
}

.issue-block {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid rgba(190, 211, 244, 0.8);
  border-radius: 22px;
  background: rgba(248, 251, 255, 0.78);
}

.issue-block:first-of-type {
  margin-top: 0;
}

.issue-block h3 {
  margin: 0 0 14px;
  color: var(--navy);
  font-size: 17px;
}

.privacy-box {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}

.privacy-check {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 17px 18px;
  border: 2px solid var(--line);
  border-radius: var(--radius-md);
  background: #f8fbff;
  cursor: pointer;
}

.privacy-check input {
  width: 22px;
  height: 22px;
  accent-color: var(--blue);
  flex: 0 0 auto;
}

.privacy-check-text {
  font-weight: 900;
}

.privacy-required {
  margin-left: auto;
  flex: 0 0 auto;
}

.privacy-copy {
  margin: 0;
  padding: 14px 16px;
  color: #294460;
  background: #eaf4ff;
  border: 1px solid #c8dcff;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 700;
}

.privacy-copy a {
  color: var(--blue);
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.submit-button {
  width: 100%;
  min-height: 68px;
  padding: 18px 22px;
  border: 0;
  border-radius: 20px;
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  box-shadow: 0 16px 32px rgba(249, 115, 22, 0.26);
  font-family: var(--font);
  font-size: clamp(17px, 4.5vw, 23px);
  font-weight: 900;
  cursor: pointer;
  transition: 0.24s ease;
}

.submit-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 38px rgba(249, 115, 22, 0.32);
}

.submit-button:disabled {
  cursor: not-allowed;
  opacity: .72;
  transform: none;
}

.submit-button.is-success {
  background: linear-gradient(135deg, var(--green), #087d59);
}

@media (max-width: 720px) {
  body {
    max-width: 100vw;
  }

  .partner-page {
    width: 100%;
    max-width: 100%;
    padding: 26px 10px 64px;
  }

  .form-card {
    padding: 22px 16px;
    border-radius: 22px;
  }

  .two-column,
  .check-grid,
  .radio-grid {
    grid-template-columns: 1fr;
  }

  .region-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-note {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .privacy-check {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .privacy-required {
    margin-left: 34px;
  }
}
