/* Native Japanese service pages: complements the shared Tokyo Alex design tokens. */
html[lang="ja"] { font-family: -apple-system, BlinkMacSystemFont, "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif; }
.ja-service-page .hero-inner { min-height: 360px; padding: 68px 0 64px; }
.ja-service-page .hero h1 { max-width: 900px; font-size: clamp(2.05rem, 4vw, 3.35rem); line-height: 1.25; overflow-wrap: anywhere; }
.ja-service-page .hero-copy { max-width: 790px; }
.ja-service-page .ja-keep-phrase { white-space: nowrap; }
.ja-service-page .ja-eyebrow { margin-top: 8px; }
.ja-service-page .section { padding: 48px 0; }
.ja-service-page .section-head { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
.ja-service-page .grid { align-items: stretch; }
.ja-service-page .card { min-height: 0; }
.ja-service-page .card h3 { line-height: 1.45; }
.ja-service-page .card p { line-height: 1.9; }
.ja-service-page .ja-intro { max-width: 860px; font-size: 1.05rem; line-height: 2; }
.ja-service-page .ja-chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; }
.ja-service-page .ja-chip { border-radius: 999px; background: rgba(7,87,184,.075); border: 1px solid rgba(7,87,184,.12); padding: 7px 11px; font-size: .84rem; font-weight: 800; }
.ja-service-page .ja-check-list { padding-left: 1.35em; margin: 14px 0 0; }
.ja-service-page .ja-check-list li { padding: 5px 0; line-height: 1.85; }
.ja-service-page .ja-case { max-width: 900px; border: 1px solid rgba(17,24,39,.09); padding: 26px 28px; background: rgba(255,255,255,.83); border-radius: 24px; box-shadow: var(--shadow-soft); }
.ja-service-page .ja-case h3 { margin: 0 0 8px; font-size: 1.12rem; line-height: 1.5; }
.ja-service-page .ja-case p { margin: 0; line-height: 1.9; }
.ja-service-page .ja-case + .ja-case { margin-top: 14px; }
.ja-service-page .ja-faq { max-width: 900px; }
.ja-service-page .ja-faq details { border-bottom: 1px solid rgba(17,24,39,.13); padding: 18px 3px; }
.ja-service-page .ja-faq summary { font-weight: 800; cursor: pointer; }
.ja-service-page .ja-faq p { margin: 10px 0 2px; line-height: 1.9; }
.ja-service-page .ja-cta { padding: 24px 30px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.ja-service-page .ja-cta strong { display: block; font-size: 1.2rem; }
.ja-service-page .ja-cta p { margin: 8px 0 0; }
.ja-service-page .ja-nav-language { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: .8rem; color: var(--muted); }
.ja-service-page .ja-nav-language a[aria-current] { color: var(--primary); text-decoration: underline; text-underline-offset: 4px; }
.ja-service-page .ja-meta { color: var(--muted); font-size: .88rem; margin-top: 16px; }
.ja-service-page .ja-footer-note { font-size: .78rem; }
@media (max-width: 920px) {
 .ja-service-page .nav { flex-direction: row; flex-wrap: nowrap; align-items: center; justify-content: space-between; gap: 8px; min-height: 56px; padding: 6px 0; }
 .ja-service-page .nav-tools { width: auto; min-width: 0; margin-left: auto; align-items: center; flex-direction: row; flex-wrap: nowrap; justify-content: flex-end; gap: 12px; }
 .ja-service-page .nav-links { display: none; }
 .ja-service-page .section-head { grid-template-columns: 1fr; gap: 12px; }
 .ja-service-page .grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 640px) {
 .ja-service-page .nav,.ja-service-page .container,.ja-service-page .footer-inner { width: calc(100% - 28px); }
 .ja-service-page .nav { gap: 7px; }
 .ja-service-page .brand { gap: 7px; font-size: .92rem; }
 .ja-service-page .brand-mark { width: 32px; height: 32px; flex: 0 0 32px; border-radius: 11px; }
 .ja-service-page .ja-nav-language { margin: 0; gap: 5px; font-size: .76rem; }
 .ja-service-page .ja-nav-language a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; min-width: 30px; height: 44px;
  padding: 0; border-radius: 8px; text-decoration: none; line-height: 1;
 }
 .ja-service-page .ja-nav-language a[lang="zh-CN"],
 .ja-service-page .ja-nav-language a[lang="ja"] { font-size: 0; }
 .ja-service-page .ja-nav-language a[lang="zh-CN"]::after { content: "中"; font-size: .76rem; }
 .ja-service-page .ja-nav-language a[lang="ja"]::after { content: "日"; font-size: .76rem; }
 .ja-service-page .ja-nav-language a[aria-current] { text-decoration: underline; }

 .ja-service-page .hero-inner { width: calc(100% - 28px); min-height: 0; padding: 34px 0 40px; }
 .ja-service-page .hero h1 { font-size: clamp(1.95rem,8.5vw,2.5rem); }
 .ja-service-page .section { padding: 34px 0; }
 .ja-service-page .grid { grid-template-columns: 1fr; }
 .ja-service-page .card { padding: 23px; }
 .ja-service-page .ja-case { padding: 21px; }
 .ja-service-page .ja-cta { flex-direction: column; align-items: flex-start; padding: 23px; }
 .ja-service-page .ja-cta .button { width: 100%; }
}

/* Japanese service pages share one native, JS-independent mobile navigation. */
.ja-service-page .ja-mobile-nav { display: none; }
@media (max-width: 920px) {
 .ja-service-page .topbar { position: sticky; top: 0; z-index: 100; }
 .ja-service-page .nav { position: relative; }
 .ja-service-page .brand { min-width: 0; flex-shrink: 1; white-space: nowrap; }
 .ja-service-page .ja-nav-language { flex-wrap: nowrap; white-space: nowrap; }
 .ja-service-page .ja-mobile-nav { position: relative; display: block; flex: 0 0 auto; }
 .ja-service-page .ja-mobile-nav > summary {
  display: grid; place-items: center; width: 44px; height: 44px; padding: 0;
  border: 1px solid rgba(7,19,38,.15); border-radius: 11px; color: #fff;
  background: #071326; cursor: pointer; list-style: none; font-size: 1.1rem;
 }
 .ja-service-page .ja-mobile-nav > summary::-webkit-details-marker { display: none; }
 .ja-service-page .ja-mobile-nav[open] > summary { background: #164e86; }
 .ja-service-page .ja-mobile-nav__panel {
  position: absolute; top: calc(100% + 8px); right: 0;
  display: grid; width: min(300px, calc(100vw - 24px));
  max-height: min(70dvh, 520px); overflow-y: auto; overscroll-behavior: contain;
  padding: 8px; gap: 3px; border: 1px solid rgba(7,19,38,.12);
  border-radius: 14px; background: #fff;
  box-shadow: 0 16px 40px rgba(7,19,38,.2); z-index: 110;
 }
 .ja-service-page .ja-mobile-nav__panel a {
  display: flex; align-items: center; min-height: 44px; padding: 10px 12px;
  border-radius: 9px; color: #17263d; font-size: .9rem;
  font-weight: 700; text-decoration: none; white-space: normal;
 }
 .ja-service-page .ja-mobile-nav__panel a:hover,
 .ja-service-page .ja-mobile-nav__panel a:focus-visible,
 .ja-service-page .ja-mobile-nav__panel a[aria-current="page"] {
  background: #eaf4ff; color: #0c538e;
 }
 .ja-service-page .ja-mobile-nav > summary:focus-visible,
 .ja-service-page .ja-mobile-nav__panel a:focus-visible {
  outline: 3px solid #2f91d4; outline-offset: 2px;
 }
}
@media (max-width: 360px) {
 .ja-service-page .brand { font-size: .82rem; }
 .ja-service-page .brand-mark { width: 28px; height: 28px; flex: 0 0 28px; }
 .ja-service-page .nav-tools { gap: 6px; }
 .ja-service-page .ja-nav-language { gap: 3px; font-size: .71rem; }
 .ja-service-page .ja-nav-language a { width: 27px; min-width: 27px; }
 .ja-service-page .nav { gap: 5px; }
}
