/* v408 — Japanese pages (/ja/…). Loaded last, only on pages with <html lang="ja">.
   1) Fonts: Latin letters keep the site font; Japanese text uses the reader's Japanese system font
      (listed before any Korean font, so kanji are drawn in their Japanese forms).
   2) Line breaking: the Korean pages use word-break:keep-all, which would stop Japanese sentences from wrapping. */
html[lang="ja"] *:not(.och-wordmark){
  font-family:Pretendard,Inter,"Hiragino Sans","Hiragino Kaku Gothic ProN","Yu Gothic UI","Yu Gothic",Meiryo,"Noto Sans JP","Noto Sans CJK JP",sans-serif !important;
}
html[lang="ja"] *{ word-break:normal !important; overflow-wrap:break-word; line-break:strict; }
/* where the browser supports it, break headings and lead text between phrases instead of mid-word */
@supports (word-break:auto-phrase){
  html[lang="ja"] h1, html[lang="ja"] h2, html[lang="ja"] h3, html[lang="ja"] h4,
  html[lang="ja"] .lead, html[lang="ja"] .hero-v12-kicker, html[lang="ja"] .hero-v12-lead, html[lang="ja"] summary{ word-break:auto-phrase !important; }
}
/* full-width Japanese glyphs need a little more air than Hangul at the same size */
html[lang="ja"] h2, html[lang="ja"] h3, html[lang="ja"] h4, html[lang="ja"] .hero-v12-kicker{ letter-spacing:-.01em !important; }
html[lang="ja"] h2{ line-height:1.28; }
/* form controls may shrink inside their grid cell (Japanese option labels are wider than the Korean ones) */
html[lang="ja"] form > *, html[lang="ja"] form label, html[lang="ja"] form .field{ min-width:0; }
html[lang="ja"] form select, html[lang="ja"] form input:not([type="checkbox"]):not([type="radio"]), html[lang="ja"] form textarea{ min-width:0; max-width:100%; }
/* grid and flex children may shrink below the width of a long Japanese phrase (the text then wraps inside the card) */
html[lang="ja"] main [class*="grid"] > *, html[lang="ja"] main [class*="cards"] > *, html[lang="ja"] main [class*="steps"] > *{ min-width:0; }
/* header: Japanese menu labels are longer, so keep every label on one line and tighten the row on narrower desktops */
html[lang="ja"] .site-header .header-cta, html[lang="ja"] .site-header .desktop-nav a, html[lang="ja"] .site-header .lang-link{ white-space:nowrap; }
@media (min-width:1101px) and (max-width:1240px){
  html[lang="ja"] .site-header .header-inner{ gap:14px; }
  html[lang="ja"] .site-header .desktop-nav{ font-size:13px; }
  html[lang="ja"] .site-header .desktop-nav a{ padding-left:8px; padding-right:8px; }
  html[lang="ja"] .site-header .header-cta{ padding-left:16px; padding-right:16px; }
  html[lang="ja"] .site-header .brand img{ max-width:118px; height:auto; }
}
/* home hero: Japanese copy needs more lines than Korean in a narrow column. The hero keeps its normal height
   whenever the text fits, and grows (instead of cutting the text off) when it does not. */
@media (min-width:821px){
  html[lang="ja"] body.home-v10 .hero-v12.hero-mint-photo{ height:auto !important; min-height:var(--hero-h) !important; max-height:none !important; padding:26px 0 !important; }
}
@media (min-width:821px) and (max-width:1100px){
  html[lang="ja"] body.home-v10 .hero-mint-photo .hero-v12-copy .hero-v12-kicker{ font-size:17px !important; }
  html[lang="ja"] body.home-v10 .hero-mint-photo .hero-v12-copy .hero-v12-lead{ font-size:12.5px !important; line-height:1.55 !important; }
}
/* the GMP badge stays inside the hero text column (its label wraps onto two lines when the column is narrow) */
@media (min-width:821px){
  html[lang="ja"] body.home-v10 .hero-mint-photo .hero-v12-copy .gmp-badge{ max-width:var(--copy-w); }
  html[lang="ja"] body.home-v10 .hero-mint-photo .hero-v12-copy .gmp-badge span{ white-space:normal; }
}
