.japanese-display, .nihongo, p.nihongo {
    font-family: sans-serif;
    font-size: 1.35em;
    line-height: 5em;
    /* margin-top: 2em; */
    margin-left: 2em;
    margin-right: 2em;
    max-height: 32000px; /* Workaround for font-boosting inconsistency in mobile Chrome */
}

/* p {
    font-size: 1.2em;
    line-height: 2em;
    margin-left: 2em;
    margin-right: 2em;
} */

.mjc-rt {
    font-size: 0.6em;
}

.mjc-ruby {
    position: relative;
    white-space: nowrap;
    display: inline-block;
    line-height: 1em;
}

span.mjc-trx, div.mjc-trx, .mjc-trx-alt, .mjc-trx-alt-alt {
    position: absolute;
    font-size: 0.8em;
    display: block;
    text-align: center;
    line-height: 1em;
    border-left: solid 0.1em black;
    border-bottom: solid 0.1em black;
    background-color: #ffc;
    padding-left: 0.4em;
    top: 1em;
}

.mjc-trx-alt {
    top: 2.2em;
}

.mjc-trx-alt-alt {
    top: 3.3em;
}

p.mjc-trx {
    font-size: 1em;
    /* border-top: solid 0.1em black; */
    padding-top: 1.5em;
    margin-bottom: -1em;
}

.note {
    font-size: 0.9em;
    line-height: 1.5em;
    background-color: #ddd;
    padding: 0.6em;
}

.mjc-hilite {
    background-color: #ddf;
    padding: 0.15em;
}
