/* PATCH-RENEW-01H-A: language typography and frozen-table presentation.
   Only the six renewed EN/JA core mains opt in; shared assets stay unchanged. */
main[data-ac-renewal="01d"][data-ac-locale="en"] {
  font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  line-height:1.8;
  word-break:normal;
  overflow-wrap:anywhere;
}
main[data-ac-renewal="01d"][data-ac-locale="ja"] {
  font-family:"Noto Sans JP","Hiragino Kaku Gothic ProN","Hiragino Sans",Meiryo,-apple-system,BlinkMacSystemFont,sans-serif;
  line-height:1.9;
  word-break:normal;
  line-break:strict;
  overflow-wrap:anywhere;
}
main[data-ac-renewal="01d"][data-ac-locale="en"] h1 {
  font-size:clamp(32px,4.1vw,52px);
  letter-spacing:-.025em;
  line-height:1.25;
  word-break:normal;
}
main[data-ac-renewal="01d"][data-ac-locale="ja"] h1 {
  font-size:clamp(32px,4.1vw,48px);
  letter-spacing:-.025em;
  line-height:1.5;
  word-break:normal;
  overflow-wrap:normal;
}
main[data-ac-renewal="01d"][data-ac-locale="en"] :is(h2,h3,h4),
main[data-ac-renewal="01d"][data-ac-locale="en"] :is(.ac-r-card,.ac-r-step,.ac-r-inquiry,.ac-r-policy,.ac-r-integrate,.ac-r-case-content,.ac-r-heading) h3 {
  letter-spacing:-.015em;
  word-break:normal;
}
main[data-ac-renewal="01d"][data-ac-locale="ja"] :is(h2,h3,h4),
main[data-ac-renewal="01d"][data-ac-locale="ja"] :is(.ac-r-card,.ac-r-step,.ac-r-inquiry,.ac-r-policy,.ac-r-integrate,.ac-r-case-content,.ac-r-heading) h3 {
  letter-spacing:-.02em;
  word-break:normal;
}
main[data-ac-renewal="01d"][data-ac-locale] :is(.ac-renewal-game-summary,.ac-renewal-game-card) {
  font-family:inherit;
  word-break:normal;
  overflow-wrap:anywhere;
}
main[data-ac-renewal="01d"][data-ac-locale] :is(.ac-renewal-game-title,.ac-renewal-game-intro,.ac-renewal-game-access,.ac-renewal-game-cta) { word-break:normal; }
/* Keep native media and frozen tables readable if the page stylesheet is unavailable. */
main[data-ac-renewal="01d"][data-ac-locale],main[data-ac-renewal="01d"][data-ac-locale] * { box-sizing:border-box; }
main[data-ac-renewal="01d"][data-ac-locale] :is(img,video.ac-r-case-video) { display:block; width:100%; max-width:100%; height:auto; object-fit:contain; }
main[data-ac-renewal="01d"][data-ac-locale] video.ac-r-case-video { aspect-ratio:16/9; }
main[data-ac-renewal="01d"][data-ac-locale] .ac-r-table-wrap { min-width:0; max-width:100%; overflow-x:auto; }
main[data-ac-renewal="01d"][data-ac-locale] .ac-m-media-fallback a { max-width:100%; white-space:normal; word-break:normal; }
main[data-ac-renewal="01d"][data-ac-locale] .ac-r-table-wrap > table {
  width:100%;
  min-width:680px;
  border-collapse:collapse;
  border-radius:0;
  color:var(--ac-ink,#171717);
  background:var(--ac-surface,#fffdf7);
  font-family:inherit;
  font-size:14px;
  line-height:1.85;
  text-align:left;
}
main[data-ac-renewal="01d"][data-ac-locale] #packages .ac-r-table-wrap > table { min-width:880px; }
main[data-ac-renewal="01d"][data-ac-locale] .ac-r-table-wrap > table :is(th,td) {
  padding:18px 20px;
  border-right:1px solid var(--ac-ink,#171717);
  border-bottom:1px solid var(--ac-ink,#171717);
  border-radius:0;
  vertical-align:top;
  color:var(--ac-ink,#171717);
}
main[data-ac-renewal="01d"][data-ac-locale] .ac-r-table-wrap > table th { background:var(--ac-paper,#f5f3ec); }
main[data-ac-renewal="01d"][data-ac-locale] .ac-r-table-wrap > table :is(th,td):last-child { border-right:0; }
main[data-ac-renewal="01d"][data-ac-locale] .ac-r-table-wrap > table tbody tr:last-child > :is(th,td) { border-bottom:0; }
@media (max-width:600px) {
  main[data-ac-renewal="01d"][data-ac-locale] .ac-r-table-wrap > table :is(th,td) { padding:15px 16px; font-size:13px; }
}
@media print {
  main[data-ac-renewal="01d"][data-ac-locale] .ac-r-table-wrap > table,
  main[data-ac-renewal="01d"][data-ac-locale] #packages .ac-r-table-wrap > table { min-width:0; font-size:9pt; }
  main[data-ac-renewal="01d"][data-ac-locale] .ac-r-table-wrap > table :is(th,td) { padding:8px; }
}

/* PATCH-RENEW-01H-B: company-page typography; H-A rules above are unchanged. */
main[data-ac-renewal="01d"][data-ac-patch="01f"][data-ac-locale] :is(h1,h2,h3,h4,p,li,dt,dd,a,strong) { word-break:normal; }
main[data-ac-renewal="01d"][data-ac-patch="01f"][data-ac-locale="en"] :is(.ac-f-case-body,.ac-f-case-label,.ac-f-case-grid > article[data-game-id]) :is(h2,h3,strong) { letter-spacing:-.015em; }
main[data-ac-renewal="01d"][data-ac-patch="01f"][data-ac-locale="ja"] :is(.ac-f-case-body,.ac-f-case-label,.ac-f-case-grid > article[data-game-id]) :is(h2,h3,strong) { letter-spacing:-.02em; }
main[data-ac-renewal="01d"][data-ac-patch="01f"][data-ac-locale] .ac-f-facts :is(dt,dd) { word-break:normal; }
main[data-ac-renewal="01d"][data-ac-patch="01f"][data-ac-locale] .ac-f-case-grid > article[data-game-id] :is(h2,h3) { font-size:26px; font-weight:800; line-height:1.45; }
@media (max-width:600px) {
  main[data-ac-renewal="01d"][data-ac-patch="01f"][data-ac-locale] .ac-f-case-grid > article[data-game-id] :is(h2,h3) { font-size:24px; }
}

/* PATCH-RENEW-01H-C: localized service and reference typography. */
main[data-ac-renewal="01d"][data-ac-patch="01g"][data-ac-locale="en"] :is(h1,h2,h3,h4,h5,p,li,a,summary) { word-break:normal; letter-spacing:normal; }
main[data-ac-renewal="01d"][data-ac-patch="01g"][data-ac-locale="ja"] :is(h1,h2,h3,h4,h5,p,li,a,summary) { word-break:normal; letter-spacing:normal; line-break:strict; }
main[data-ac-renewal="01d"][data-ac-patch="01g"]:is([data-ac-locale="en"],[data-ac-locale="ja"]) :is(.ac-g-media-body,.ac-r-card,.ac-r-step,.ac-r-heading,.ac-g-docs-content) h3 { font-size:24px; line-height:1.5; }
main[data-ac-renewal="01d"][data-ac-patch="01g"]:is([data-ac-locale="en"],[data-ac-locale="ja"]) :is(pre,.ac-g-code-frame) { min-width:0; max-width:100%; }
main[data-ac-renewal="01d"][data-ac-patch="01g"]:is([data-ac-locale="en"],[data-ac-locale="ja"]) .ac-g-docs-content .ac-g-code-frame > pre { width:max-content; min-width:100%; max-width:none; overflow:visible; white-space:pre; }
main[data-ac-renewal="01d"][data-ac-patch="01g"]:is([data-ac-locale="en"],[data-ac-locale="ja"]) .ac-g-media :is(img,video) { width:100%; max-width:100%; height:auto; object-fit:contain; }
main[data-ac-renewal="01d"][data-ac-patch="01g"]:is([data-ac-locale="en"],[data-ac-locale="ja"]) .ac-g-media-fallback a { display:inline-flex; align-items:center; min-height:44px; max-width:100%; white-space:normal; }
@media (max-width:600px) {
  main[data-ac-renewal="01d"][data-ac-patch="01g"]:is([data-ac-locale="en"],[data-ac-locale="ja"]) :is(.ac-g-media-body,.ac-r-card,.ac-r-step,.ac-r-heading,.ac-g-docs-content) h3 { font-size:22px; }
}

@media print {
  main[data-ac-renewal="01d"][data-ac-patch="01g"]:is([data-ac-locale="en"],[data-ac-locale="ja"]) .ac-g-code-frame { overflow:visible !important; }
  main[data-ac-renewal="01d"][data-ac-patch="01g"]:is([data-ac-locale="en"],[data-ac-locale="ja"]) .ac-g-docs-content .ac-g-code-frame > pre { width:auto; min-width:0; max-width:100%; overflow:visible; white-space:pre-wrap; word-break:break-word; overflow-wrap:anywhere; }
}
