:root {
  --blue: #1478f2;
  --blue-dark: #0b5fc6;
  --sky: #eef7ff;
  --sky-light: #f8fbff;
  --ink: #10223e;
  --muted: #60748a;
  --line: #d6e5f4;
  --white: #fff;
  --shadow: 0 18px 42px rgba(20, 92, 160, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; overflow-x: hidden; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
  line-height: 1.8;
  letter-spacing: 0;
  overflow-x: hidden;
  line-break: strict;
  word-break: normal;
}
a { color: inherit; }
img { display: block; max-width: 100%; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 72px;
  border-bottom: 1px solid rgba(20, 120, 242, .12);
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(12px);
}
.header-inner {
  width: min(1160px, calc(100% - 40px));
  height: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 38px;
}
.site-logo, .footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--blue-dark);
  font-size: 21px;
  font-weight: 900;
  text-decoration: none;
}
.site-logo-mark {
  width: 32px;
  height: 32px;
  display: inline-grid;
  place-items: center;
  border-radius: 6px;
  color: #fff;
  background: var(--blue);
  font-size: 16px;
}
.header-nav { display: flex; justify-content: center; gap: 32px; }
.header-nav a, .header-login {
  color: #31485f;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}
.header-nav a:hover, .header-login:hover { color: var(--blue); }
.header-actions { display: flex; align-items: center; gap: 20px; }
.header-cta {
  min-height: 42px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  color: #fff;
  background: var(--blue);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.partner-hero {
  position: relative;
  min-height: 650px;
  overflow: hidden;
  background: #eaf5ff;
}
.partner-hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 64% center;
}
.partner-hero-overlay {
  position: absolute;
  inset: 0 auto 0 0;
  width: 68%;
  background: rgba(255, 255, 255, .94);
  clip-path: polygon(0 0, 84% 0, 100% 100%, 0 100%);
}
.partner-hero-inner {
  position: relative;
  z-index: 2;
  width: min(1160px, calc(100% - 40px));
  min-height: 650px;
  margin: 0 auto;
  padding: 72px 0 150px;
}
.partner-hero-copy { width: min(680px, 61%); }
.partner-label {
  width: fit-content;
  margin: 0 0 20px;
  padding: 6px 12px;
  border-left: 4px solid var(--blue);
  color: var(--blue-dark);
  background: var(--sky);
  font-size: 14px;
  font-weight: 900;
}
.partner-hero h1 {
  margin: 0;
  font-size: 52px;
  line-height: 1.28;
  font-weight: 900;
  overflow-wrap: anywhere;
  text-wrap: balance;
}
.partner-hero h1 span { display: block; }
.partner-hero-copy > p:not(.partner-label) {
  max-width: 580px;
  margin: 24px 0 0;
  color: #405872;
  font-size: 18px;
  font-weight: 600;
}
.hero-actions { margin-top: 30px; display: flex; align-items: center; flex-wrap: wrap; gap: 18px; }
.button {
  min-height: 56px;
  padding: 0 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 900;
  text-decoration: none;
}
.button.primary { color: #fff; background: var(--blue); box-shadow: 0 10px 22px rgba(20, 120, 242, .22); }
.button.primary:hover { background: var(--blue-dark); }
.text-link { color: var(--blue-dark); font-weight: 900; text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.referral-route {
  position: absolute;
  right: 0;
  bottom: 34px;
  left: 0;
  margin: 0;
  padding: 18px 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  list-style: none;
  border: 1px solid rgba(214, 229, 244, .9);
  border-radius: 8px;
  background: rgba(255, 255, 255, .96);
  box-shadow: var(--shadow);
}
.referral-route li { position: relative; min-width: 0; display: grid; justify-items: center; text-align: center; }
.referral-route li:not(:last-child)::after {
  content: "→";
  position: absolute;
  top: 12px;
  right: -8px;
  color: var(--blue);
  font-size: 22px;
  font-weight: 900;
}
.referral-route span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--blue);
  font-weight: 900;
}
.referral-route strong { max-width: 100%; margin-top: 7px; font-size: 15px; overflow-wrap: anywhere; }
.referral-route small { color: var(--muted); font-size: 12px; font-weight: 700; }

.section { padding: 96px 20px; }
.section-soft { background: var(--sky-light); }
.section-inner { width: min(1120px, 100%); margin: 0 auto; }
.section-heading > p {
  margin: 0 0 8px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
}
.section-heading h2 { margin: 0; font-size: 44px; line-height: 1.35; }
.section-heading > span { display: block; margin-top: 12px; color: var(--muted); font-weight: 600; }
.section-heading.centered { text-align: center; }
.about-layout, .terms-layout { display: grid; grid-template-columns: 330px 1fr; gap: 80px; align-items: start; }
.about-copy, .terms-copy { font-size: 17px; font-weight: 600; color: #405872; }
.about-copy p:first-child, .terms-copy p:first-child { margin-top: 0; }

.flow-list {
  position: relative;
  margin: 50px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  list-style: none;
}
.flow-list::before {
  content: "";
  position: absolute;
  top: 25px;
  right: 10%;
  left: 10%;
  height: 2px;
  background: #bddcfb;
}
.flow-list li { position: relative; padding: 0 18px; text-align: center; }
.step-number {
  position: relative;
  z-index: 1;
  width: 52px;
  height: 52px;
  margin: 0 auto 22px;
  display: grid;
  place-items: center;
  border: 5px solid var(--sky-light);
  border-radius: 50%;
  color: #fff;
  background: var(--blue);
  font-weight: 900;
}
.flow-list h3 { margin: 0; font-size: 18px; }
.flow-list p { margin: 10px 0 0; color: var(--muted); font-size: 14px; font-weight: 600; }

.audience-layout { max-width: 900px; }
.check-list { margin: 34px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.check-list li { position: relative; padding: 20px 0 20px 42px; border-bottom: 1px solid var(--line); }
.check-list li::before { content: "✓"; position: absolute; top: 21px; left: 8px; color: var(--blue); font-weight: 900; }
.check-list strong { display: block; font-size: 18px; }
.check-list span { color: var(--muted); font-size: 14px; font-weight: 600; }

.terms-copy { padding-left: 34px; border-left: 4px solid var(--blue); }
.terms-copy ul { margin: 22px 0 0; padding-left: 1.2em; }
.terms-copy li + li { margin-top: 8px; }

.faq-layout { display: grid; grid-template-columns: 280px 1fr; gap: 80px; align-items: start; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { position: relative; padding: 22px 54px 22px 0; cursor: pointer; font-size: 17px; font-weight: 900; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  position: absolute;
  top: 18px;
  right: 6px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--blue);
  background: var(--sky);
  font-size: 21px;
}
.faq-list details[open] summary::after { content: "−"; color: #fff; background: var(--blue); }
.faq-list details p { margin: -2px 50px 22px 0; color: var(--muted); font-weight: 600; }

.contact-band {
  padding: 42px max(20px, calc((100% - 1120px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  color: #fff;
  background: var(--blue);
}
.contact-band h2 { margin: 0; font-size: 38px; }
.contact-band p { margin: 8px 0 0; font-weight: 600; }
.button.white { color: var(--blue-dark); background: #fff; flex: 0 0 auto; }

footer { padding: 28px 20px; border-top: 1px solid var(--line); background: #fff; }
.footer-inner { width: min(1120px, 100%); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 14px 20px; }
.footer-links a { color: #405872; font-size: 13px; font-weight: 700; text-decoration: none; }
.footer-links a:hover { color: var(--blue); }
.footer-logo { font-size: 18px; }
.back-to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  min-height: 44px;
  padding: 10px 14px;
  display: none;
  align-items: center;
  border: 2px solid #fff;
  border-radius: 999px;
  color: #fff;
  background: var(--blue);
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(0, 87, 194, .24);
  cursor: pointer;
}
.back-to-top.is-visible { display: inline-flex; }

@media (max-width: 980px) {
  .header-nav { display: none; }
  .header-inner { grid-template-columns: 1fr auto; }
  .partner-hero-photo { object-position: 70% center; }
  .partner-hero-overlay { width: 85%; }
  .partner-hero-copy { width: 70%; }
  .flow-list { grid-template-columns: 1fr; gap: 0; }
  .flow-list::before { top: 26px; bottom: 26px; left: 25px; width: 2px; height: auto; }
  .flow-list li { min-height: 120px; padding: 0 0 28px 84px; display: grid; grid-template-columns: 1fr; text-align: left; }
  .step-number { position: absolute; top: 0; left: 0; margin: 0; }
}

@media (max-width: 760px) {
  .site-header { height: 64px; }
  .header-inner { width: min(100% - 24px, 1160px); gap: 14px; }
  .header-actions { min-width: 0; }
  .site-logo { font-size: 18px; }
  .site-logo-mark { width: 30px; height: 30px; }
  .header-login { display: none; }
  .header-cta { min-height: 40px; padding: 0 14px; font-size: 12px; }
  .partner-hero { min-height: auto; padding-bottom: 22px; }
  .partner-hero-photo { inset: auto 0 0; height: 300px; object-position: 64% center; opacity: .32; }
  .partner-hero-overlay { inset: 0; width: 100%; clip-path: none; background: rgba(255, 255, 255, .88); }
  .partner-hero-inner { width: min(100% - 32px, 1160px); min-height: auto; padding: 54px 0 0; }
  .partner-hero-copy { width: 100%; }
  .partner-hero h1 { font-size: 28px; }
  .partner-hero h1 span { display: block; }
  .partner-hero-copy > p:not(.partner-label) { font-size: 16px; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-actions .button { width: 100%; }
  .text-link { text-align: center; }
  .referral-route { position: relative; bottom: auto; margin-top: 48px; padding: 14px 10px; grid-template-columns: repeat(2, 1fr); gap: 18px 8px; }
  .referral-route li:nth-child(2)::after { display: none; }
  .section { padding: 68px 20px; }
  .section-heading h2 { font-size: 32px; }
  .contact-band h2 { font-size: 30px; }
  .about-layout, .terms-layout, .faq-layout { grid-template-columns: 1fr; gap: 32px; }
  .terms-copy { padding-left: 20px; }
  .contact-band { align-items: stretch; flex-direction: column; }
  .button.white { width: 100%; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
  .footer-links { justify-content: flex-start; }
}

@media (max-width: 390px) {
  .partner-hero h1 { font-size: 28px; }
  .header-cta { padding: 0 10px; }
  .button { padding: 0 18px; font-size: 14px; }
}

@supports (word-break: auto-phrase) {
  .partner-hero-copy > p,
  .section-heading h2,
  .section-heading > span,
  .about-copy,
  .flow-list h3,
  .flow-list p,
  .check-list strong,
  .check-list span,
  .terms-copy,
  .faq-list summary,
  .faq-list details p,
  .contact-band h2,
  .contact-band p {
    word-break: auto-phrase;
  }
}

.section-heading h2,
.flow-list h3,
.check-list strong,
.faq-list summary,
.contact-band h2 {
  text-wrap: balance;
}

.partner-hero-copy > p,
.section-heading > span,
.about-copy,
.flow-list p,
.check-list span,
.terms-copy,
.faq-list details p,
.contact-band p {
  text-wrap: pretty;
}

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