/* ivorypiano.com/ja/: Japanese typography on top of styles.css, guide.css and tools.css. Figtree has no Japanese,
   so Japanese falls back to Hiragino on Apple devices and Noto Sans JP elsewhere; Latin letters stay in Figtree. */
html[lang="ja"] body { line-break: strict; font-family: "Figtree", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", "Meiryo", sans-serif; line-height: 1.75; font-feature-settings: "palt" 0; }
html[lang="ja"] h1, html[lang="ja"] h2, html[lang="ja"] h3, html[lang="ja"] .standfirst, html[lang="ja"] .lede { letter-spacing: 0; word-break: auto-phrase; line-break: strict; }
html[lang="ja"] .guide h1 { font-size: clamp(30px, 4.6vw, 46px); line-height: 1.3; letter-spacing: .01em; }
html[lang="ja"] .guide h2 { font-size: 25px; line-height: 1.45; }
html[lang="ja"] .guide h3 { font-size: 19px; line-height: 1.5; }
html[lang="ja"] .guide .standfirst { font-size: 19px; line-height: 1.85; }
html[lang="ja"] .guide p, html[lang="ja"] .guide li { font-size: 17px; line-height: 1.95; letter-spacing: .02em; }
html[lang="ja"] .guide .kicker { letter-spacing: .12em; }
html[lang="ja"] .guide em { font-style: normal; font-weight: 700; }
html[lang="ja"] .guide td, html[lang="ja"] .guide th { line-height: 1.6; }
html[lang="ja"] .guide th { letter-spacing: .05em; }
html[lang="ja"] .readout, html[lang="ja"] .related span { line-height: 1.7; }
html[lang="ja"] nav.site a { font-weight: 700; font-size: 14px; }
html[lang="ja"] footer.site .credit { line-height: 1.7; }
html[lang="ja"] .ip-label { font-size: 11px; letter-spacing: -.02em; }
html[lang="ja"] .ip-b .ip-label { font-size: 8px; }
html[lang="ja"] .notes-big span { letter-spacing: 0; }
.ja-notes { font-feature-settings: "palt" 1; }
@media (max-width: 560px) {
  html[lang="ja"] .guide h1 { font-size: 28px; }
  html[lang="ja"] .guide p, html[lang="ja"] .guide li { font-size: 16px; }
  html[lang="ja"] nav.site a { margin-left: 12px; font-size: 13px; }
  html[lang="ja"] .ip-label { font-size: 9px; }
  html[lang="ja"] .ip-b .ip-label { font-size: 7px; }
}

/* The Japanese home's fourth story: your own pieces (home.css look) */
.yourpiece .yp-list { display: grid; gap: 10px; }
.yourpiece .yp { display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; column-gap: 12px; align-items: center; background: #FBF4EA; border: 1px solid var(--line); border-radius: 18px; padding: 12px 16px; opacity: 0; transform: translateY(10px); transition: opacity .5s, transform .5s; }
.yourpiece .yp:nth-child(2) { transition-delay: .35s; } .yourpiece .yp:nth-child(3) { transition-delay: .7s; }
.in .yourpiece .yp { opacity: 1; transform: none; }
.yourpiece .yp b { font-size: 12px; font-weight: 800; letter-spacing: .08em; color: var(--accent); }
.yourpiece .yp span { grid-row: 2; font-weight: 700; font-size: 17px; color: var(--ink); }
.yourpiece .yp i { grid-row: 1 / 3; grid-column: 2; font-style: normal; font-size: 13px; font-weight: 700; color: var(--muted); background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; }
.yourpiece .yp i.ok { color: var(--accent); background: var(--lit); border-color: var(--lit); }
.yourpiece .remark.small { display: flex; gap: 12px; align-items: flex-start; margin-top: 16px; min-height: 0; font-size: 16px; opacity: 0; transition: opacity .6s 1.2s; }
.in .yourpiece .remark.small { opacity: 1; }
html[lang="ja"] .home .hero h1 { font-size: clamp(40px, 5.6vw, 64px); line-height: 1.18; letter-spacing: .01em; }
html[lang="ja"] .home .row h2, html[lang="ja"] .home .keepsake h2, html[lang="ja"] .home .cta h2 { line-height: 1.32; letter-spacing: .01em; }
html[lang="ja"] .home .row p, html[lang="ja"] .home .lede { line-height: 1.9; }
html[lang="ja"] .home .free-grid span { line-height: 1.7; }
html[lang="ja"] .eyebrow, html[lang="ja"] .guide .kicker, html[lang="ja"] .sc-level, html[lang="ja"] th { text-transform: none; }
html[lang="ja"] .kc-xtra::after { content: "借用"; letter-spacing: .1em; font-size: 10px; }

/* Scale tables: long Japanese scale names wrap; the letter names sit under the ドレミ. */
html[lang="ja"] .st-table td:first-child { white-space: normal; min-width: 7.5em; }
html[lang="ja"] .st-table td small { color: var(--muted); font-size: .82em; letter-spacing: .02em; }
html[lang="ja"] .st-keycol td:last-child { white-space: nowrap; }

/* Burgmüller hub: the études without a player yet (Nos. 19–25), as quiet cards. */
.song-card.bm-soon { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; background: var(--paper); border: 1px dashed var(--line); border-radius: 20px; opacity: .8; }
.song-card.bm-soon .bm-no { font: 800 12px/1 Figtree, sans-serif; color: var(--accent); letter-spacing: .04em; }
.song-card.bm-soon strong { font-size: 17px; }
.song-card.bm-soon small { color: var(--muted); font-size: 13px; }
.song-card.bm-soon .bm-note { margin-top: auto; padding-top: 10px; font-size: 12px; }
.bm-table td:first-child { min-width: 0; }

/* /ja/piano-method: the self-check and the ladder of steps. */
.ml-self { display: grid; gap: 10px; }
.ml-q { margin: 0 0 2px; font-weight: 800; }
.ml-check { display: flex; gap: 10px; align-items: flex-start; padding: 10px 14px; background: var(--pill); border-radius: 14px; cursor: pointer; line-height: 1.6; }
.ml-check input { margin-top: 5px; width: 18px; height: 18px; accent-color: var(--accent); flex: none; }
.ml-result { margin: 6px 0 0; }
.ml-ladder { display: grid; gap: 12px; margin: 18px 0 8px; counter-reset: rung; }
.ml-rung { border: 1px solid var(--line); border-radius: 20px; background: var(--paper); overflow: hidden; transition: border-color .2s, box-shadow .2s; }
.ml-rung.now { border-color: var(--accent); box-shadow: 0 10px 28px rgba(184,84,46,.14); }
.ml-rung.done .ml-step::after { content: " ✓"; color: var(--accent); }
.ml-head { all: unset; box-sizing: border-box; width: 100%; cursor: pointer; display: grid; grid-template-columns: auto 1fr auto; gap: 4px 14px; align-items: center; padding: 16px 18px; counter-increment: rung; }
.ml-head:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; border-radius: 20px; }
.ml-step { font-weight: 800; font-size: 18px; }
.ml-step::before { content: counter(rung); display: inline-grid; place-items: center; width: 26px; height: 26px; margin-right: 10px; border-radius: 50%; background: var(--peach); color: var(--ink); font: 800 13px/1 Figtree, sans-serif; vertical-align: 2px; }
.ml-rung.now .ml-step::before { background: var(--accent); color: #fff; }
.ml-books { color: var(--muted); font-size: 14px; }
.ml-time { font-size: 12px; font-weight: 700; color: var(--accent); white-space: nowrap; }
.ml-body { display: none; padding: 0 18px 18px; }
.ml-rung.open .ml-body, .ml-rung.now .ml-body { display: block; }
.ml-hear { font-weight: 800; font-size: 14px; margin: 14px 0 8px; }
.ml-grid { margin: 0; }
@media (max-width: 600px) { .ml-head { grid-template-columns: 1fr auto; } .ml-books { grid-column: 1 / -1; order: 3; } }

/* The logo's reading, アイボリー, small under "ivory". */
html[lang="ja"] .brand-name { display: inline-flex; flex-direction: column; line-height: 1; }
html[lang="ja"] .brand-kana { margin-top: 3px; font-size: 10px; font-weight: 700; letter-spacing: .2em; color: var(--muted); }
@media (max-width: 420px) { html[lang="ja"] .brand-kana { font-size: 9px; letter-spacing: .14em; } }
