/* Shared English / Japanese hierarchy. Japanese is exactly 60% of English.
   English headings use the compact stack scale:
   2.5rem on a 1440px context, 2rem on an 820px context, and
   1.6875rem on a 402px context (16px base).
   Keep the scale local to headings rather than changing the site's root rem.
   Size-only !important rules bridge the older page-specific ID selectors. */
body.editorial-site[data-site-page] {
  --heading-en-size: clamp(36px, calc(100vw / 1440 * 40), 54px);
  --heading-ja-size: calc(var(--heading-en-size) * .6);
}
@media (max-width: 980px) {
  body.editorial-site[data-site-page] { --heading-en-size: clamp(28px, calc(100vw / 820 * 32), 44px); }
}
@media (max-width: 680px) {
  body.editorial-site[data-site-page] { --heading-en-size: calc(100vw / 402 * 27); }
}
body.editorial-site[data-site-page] main [data-heading-language] {
  position: relative; min-width: 0; max-width: 100%; text-align: left;
  text-wrap: pretty; overflow-wrap: anywhere;
}
body.editorial-site[data-site-page] main [data-heading-language="en"] {
  display: block; width: auto; margin: 0 0 28px; padding: 0;
  font-family: var(--site-font-latin); font-size: var(--heading-en-size) !important;
  font-weight: 500; line-height: 1.05 !important; letter-spacing: -.045em; color: inherit;
  hyphens: auto;
}
body.editorial-site[data-site-page] main [data-heading-language="ja"] {
  font-size: var(--heading-ja-size) !important; font-weight: 500;
  line-height: 1.4 !important; letter-spacing: -.025em;
}
body.editorial-site[data-site-page] main [data-heading-language="ja"] :is(.h2-tag,.h2-main,.brand-word,.persona-target) { font-size: inherit; line-height: inherit; }
body.editorial-site[data-site-page] main [data-heading-language="en"]::before,
body.editorial-site[data-site-page] main [data-heading-language="en"]::after { content: none; }
body.editorial-site[data-site-page] main [data-heading-language="en"] > svg { display: none; }
body.editorial-site[data-site-page] main [data-heading-language="en"] + [data-heading-language="ja"] { margin-top: 0; }
@media (max-width: 900px) {
  body.editorial-site[data-site-page] main .editorial-section-head > [data-heading-language="ja"] + p:not(.consult-badge),
  body.editorial-site[data-site-page] main .editorial-hero-panel > [data-heading-language="ja"] + p:is(.sub,.hero-desc) {
    margin-top: 12px;
  }
}
/* Keep the UX Sprint first view at its original hero scale. */
body.editorial-site[data-site-page].page-ai-ux-sprint main #top .service-wordmark[data-heading-language="en"] {
  font-size: clamp(60px, 7.2vw, 116px) !important;
}
body.editorial-site[data-site-page].page-ai-ux-sprint main #top .editorial-hero-panel h1[data-heading-language="ja"] {
  font-size: clamp(28px, 2.6vw, 42px) !important;
}
body.editorial-site[data-site-page].page-ai-ux-sprint main #top .editorial-hero-panel h1 + .sub {
  margin-top: 24px;
}
@media (max-width: 760px) {
  body.editorial-site[data-site-page].page-ai-ux-sprint main #top .service-wordmark[data-heading-language="en"] {
    font-size: clamp(38px, 9vw, 64px) !important;
  }
  body.editorial-site[data-site-page].page-ai-ux-sprint main #top .editorial-hero-panel h1[data-heading-language="ja"] {
    font-size: clamp(24px, 5.6vw, 32px) !important;
    line-height: 1.5 !important;
  }
  body.editorial-site[data-site-page].page-ai-ux-sprint main #top .editorial-hero-panel h1 + .sub {
    margin-top: 20px;
  }
}
/* Opt into the reveal without changing a card heading's typography. */
body[data-site-page] main [data-heading-band] { position: relative; }
body[data-site-page] .heading-band-content { display: block; }
body[data-site-page] .service-wordmark .heading-band-content > span { display: block; margin-right: 0; }
body[data-site-page] .hero-headline-en .heading-band-content { display: flex; flex-wrap: wrap; gap: 0 .24em; }
body[data-site-page] .heading-band-ready { opacity: 1; transform: none; clip-path: none; transition: none; }
body[data-site-page] .heading-band-cover {
  position: absolute;
  z-index: 2;
  display: block;
  box-sizing: content-box;
  margin: calc(-1 * var(--site-heading-band-bleed));
  padding: var(--site-heading-band-bleed);
  overflow: hidden;
  pointer-events: none;
}
body[data-site-page] .heading-band-cover::before {
  content: ''; position: absolute; inset: 0;
  background: var(--heading-band-color, currentColor); transform: translateX(-102%);
}
body[data-site-page] .heading-band-line-ink {
  position: absolute; inset: 0; z-index: 1; display: block;
  opacity: 0; pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
  body[data-site-page] .heading-band-ready > .heading-band-content { opacity: 0; }
  body[data-site-page] .heading-band-shown > .heading-band-content { animation: site-heading-band-ink var(--site-band-duration) linear var(--heading-band-delay, 0s) both; }
  body[data-site-page] .heading-band-shown > .heading-band-cover::before { animation: site-band-sweep var(--site-band-duration) var(--site-band-ease) var(--heading-band-delay, 0s) both; }
  body[data-site-page] .heading-band-linewise.heading-band-shown > .heading-band-content { animation: none; opacity: 0; }
  body[data-site-page] .heading-band-linewise.heading-band-shown > .heading-band-line-ink {
    animation: site-heading-band-ink var(--site-band-duration) linear calc(var(--heading-band-delay, 0s) + var(--heading-band-line-index, 0) * var(--site-band-stagger)) both;
  }
  body[data-site-page] .heading-band-linewise.heading-band-shown > .heading-band-cover::before {
    animation-delay: calc(var(--heading-band-delay, 0s) + var(--heading-band-line-index, 0) * var(--site-band-stagger));
  }
  body[data-site-page] .heading-band-ready.heading-band-finished > .heading-band-content { opacity: 1; animation: none; }
}
@media (max-width: 760px) {
  body.editorial-site[data-site-page] main [data-heading-language="en"] { margin-bottom: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  body[data-site-page] .heading-band-content { opacity: 1; animation: none; }
  body[data-site-page] .heading-band-cover { display: none; }
  body[data-site-page] .heading-band-line-ink { display: none; }
}
@media print {
  body[data-site-page] .heading-band-content { opacity: 1 !important; animation: none !important; }
  body[data-site-page] .heading-band-cover { display: none; }
  body[data-site-page] .heading-band-line-ink { display: none; }
}

/* Give the home hero's English title a clear lead role. */
/* Match the Sprint chapter title scale on the home page. */
body.editorial-site[data-site-page="top"] main :is(.approach-intro,.quality-heading,.method-full-head,.preserved-heading,.company-full-head) [data-heading-language="en"] {
  font-size: clamp(35px, 4.583333vw, 66px) !important;
  font-weight: 400;
  line-height: 1.05 !important;
  letter-spacing: -.035em;
  white-space: normal;
}
@media (max-width: 680px) {
  body.editorial-site[data-site-page="top"] main :is(.approach-intro,.quality-heading,.method-full-head,.preserved-heading,.company-full-head) [data-heading-language="en"] {
    font-size: 35px !important;
  }
}
body.editorial-site[data-site-page="top"] .hero-copy .eyebrow.editorial-kicker {
  font-size: clamp(48px, 5.5vw, 88px) !important;
  line-height: 1.08;
  letter-spacing: -.02em;
  white-space: normal;
  text-wrap: balance;
}
@media (max-width: 680px) {
  body.editorial-site[data-site-page="top"] .hero-copy .eyebrow.editorial-kicker {
    font-size: clamp(32px, 8.5vw, 52px) !important;
  }
}
