/* Hub (/, /en/, /ko/, /zh/): hero, audience doors, trust and public documents.
   Header, footer, door cards, CTA band and download dialog come from site.css. */

/* Japanese short leads break between phrases, not inside words, like the headings in site.css
   (other languages ignore auto-phrase). */
:lang(ja) :is(.home-lead, .cta p) {
  word-break: auto-phrase;
}
main :is(p, li) {
  text-wrap: pretty;
}

/* Hero: short brand statement on the cream band; the doors overlap its lower edge. */
.home-hero {
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 84px 0 176px;
  position: relative;
}
.home-hero::before {
  border: 25px solid rgba(7, 87, 181, 0.055);
  border-radius: 50%;
  content: "";
  height: 620px;
  position: absolute;
  right: -170px;
  top: -250px;
  width: 620px;
}
.home-hero .wrap {
  position: relative;
}
.home-hero .section-label {
  margin: 0;
}
.home-hero h1 {
  font-size: clamp(38px, 4.8vw, 66px);
  font-weight: 900;
  letter-spacing: -0.09em;
  line-height: 1.24;
  margin: 18px 0 24px;
}
/* The tight Japanese tracking of the reference is too tight for Latin, Hangul and Chinese
   (site.css does the same for the section, door and CTA headings). */
html:not(:lang(ja)) .home-hero h1 {
  letter-spacing: -0.04em;
}
/* A block of its own, so its lines balance apart from the first sentence. */
.home-hero h1 em {
  color: var(--brand);
  display: block;
  font-style: normal;
}
.home-lead {
  color: #3d4a54;
  font-size: 16px;
  line-height: 2;
  margin: 0;
  max-width: 640px;
}
.home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}
.home-actions .button + .button {
  background: var(--navy);
}
.home-actions .button + .button:hover {
  background: #0b3d84;
}

/* Audience doors (site.css .doors / .door) */
.home-doors {
  margin-top: -120px;
  position: relative;
}

/* Trust and public documents */
.home-trust {
  background: #e4efff;
  margin-top: 100px;
  padding: 100px 0;
}
.home-head {
  align-items: end;
  display: grid;
  gap: 24px 60px;
  grid-template-columns: 1fr 1fr;
}
.home-head .section-lead,
.home-head .section-label {
  margin: 0;
}
.trust-list,
.doc-list {
  display: grid;
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.trust-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 50px;
}
.trust-list li {
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 8px 8px 0 rgba(8, 47, 104, 0.14);
  padding: 30px 28px 32px;
}
.trust-list h3 {
  color: var(--navy);
  font-size: 20px;
  letter-spacing: -0.04em;
  line-height: 1.5;
  margin: 24px 0 8px;
}
.trust-list p,
.doc-list p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.9;
  margin: 0;
}
.home-policy {
  padding: 100px 0;
}
.policy-grid {
  align-items: start;
  display: grid;
  gap: 40px 70px;
  grid-template-columns: 1fr 1.1fr;
}
.policy-grid .section-label {
  margin: 0;
}
.policy-grid .section-title {
  font-size: clamp(28px, 3vw, 40px);
}
.doc-version,
.doc-contact {
  color: var(--navy);
  font-size: 13px;
  margin: 0;
}
.doc-version {
  border-left: 3px solid var(--brand);
  font-weight: 700;
  padding-left: 12px;
}
.doc-contact {
  margin-top: 12px;
}
.doc-contact a {
  display: inline-block;
  margin-right: 14px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.doc-contact a:hover,
.doc-list li:hover h3 {
  color: var(--brand);
}
.doc-list {
  gap: 16px;
  grid-template-columns: 1fr 1fr;
}
/* Each card is one link: the title link stretches over it, as on the doors. */
.doc-list li {
  background: #fff;
  border: 1px solid var(--line);
  padding: 22px 50px 24px 22px;
  position: relative;
  transition: box-shadow 0.2s;
}
.doc-list li::after {
  color: var(--brand);
  content: "↗";
  font-size: 18px;
  position: absolute;
  right: 18px;
  top: 18px;
}
.doc-list li:hover {
  box-shadow: 6px 6px 0 var(--brand);
}
.doc-list li:has(a:focus-visible) {
  outline: 3px solid var(--focus-ring);
  outline-offset: 3px;
}
.doc-list h3 {
  color: var(--navy);
  font-size: 16px;
  line-height: 1.5;
  margin: 0 0 6px;
}
.doc-list a::after {
  content: "";
  inset: 0;
  position: absolute;
}
.doc-list a:focus-visible {
  outline: none;
}

@media (max-width: 1100px) {
  .policy-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 980px) {
  .trust-list {
    gap: 16px;
  }
  .trust-list li {
    padding: 26px 22px 28px;
  }
}
@media (max-width: 760px) {
  .home-hero {
    padding: 56px 0 140px;
  }
  .home-hero::before {
    height: 400px;
    right: -210px;
    top: -170px;
    width: 400px;
  }
  .home-hero h1 {
    font-size: clamp(30px, 8.6vw, 42px);
    margin: 14px 0 18px;
  }
  .home-lead {
    font-size: 14px;
  }
  .home-doors {
    margin-top: -96px;
  }
  .home-trust {
    margin-top: 70px;
    padding: 70px 0;
  }
  .home-head,
  .trust-list {
    grid-template-columns: 1fr;
  }
  .trust-list {
    margin-top: 36px;
  }
  .home-policy {
    padding: 70px 0;
  }
}
@media (max-width: 560px) {
  .doc-list {
    grid-template-columns: 1fr;
  }
}
