.kanji-test-wrapper {
    display: flex;
    flex-direction: row;
}

.kanji-test {
    width: calc(1450px + 10px);
    height: 1172px;
    margin-top: 11px;
}

.kanji-test-wrapper .kanji-test {
    display: none;
}

.kanji-answersheet {
    width: 1340px;
    margin-left: 100px;
    margin-right: 20px;
    height: 1172px;
    margin-top: 11px;
}

.kanji-test-wrapper .kanji-answersheet {
    display: none;
}

.kanji-test-wrapper .kanji-test.active-page {
    display: block;
}

.kanji-test-wrapper .kanji-answersheet.active-page {
    display: block;
}

.kanji-test-left-margin {
    max-width: 50px;
    min-width: 50px;
    margin-right: 50px;
    height: 1172px;
    display: flex;
    flex-direction: column;
}

.kanji-test-right-margin-boxes {
    max-width: 60px;
    min-width: 50px;
    margin-left: 18px;
    margin-top: 12px;
    height: 1172px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

.right-margin-level-name {
    height: 126px;
    display: block;
    border: 2px solid black;
    writing-mode: vertical-rl;
    font-family: IPAPGothic, "Century Gothic", CenturyGothic, AppleGothic, sans-serif;
    font-weight: 500;
    font-size: 43px;
    letter-spacing: 1px;
    white-space: nowrap;
    overflow: visible;
}

.right-margin-level-name-alt {
    height: 126px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-evenly;
    border: 2px solid black;
    writing-mode: vertical-rl;
    font-family: IPAPGothic, "Century Gothic", CenturyGothic, AppleGothic, sans-serif;
    font-weight: 500;
    font-size: 43px;
    letter-spacing: 1px;
    white-space: nowrap;
    overflow: visible;
}

.right-margin-kana-box {
    display: block;
    border: 1px solid black;
    margin-top: 40px;
    padding: 7px;
    padding-top: 17px;
    padding-bottom: 17px;
    writing-mode: vertical-rl;
    font-family: IPAPGothic, "Century Gothic", CenturyGothic, AppleGothic, sans-serif;
    font-weight: 500;
    font-size: 25px;
    letter-spacing: 1px;
    white-space: nowrap;
    overflow: visible;
}

.right-margin-paper-box {
    display: block;
    border: 1px solid black;
    padding: 7px;
    padding-top: 17px;
    padding-bottom: 17px;
    writing-mode: vertical-rl;
    font-family: IPAPGothic, "Century Gothic", CenturyGothic, AppleGothic, sans-serif;
    font-weight: 500;
    font-size: 25px;
    letter-spacing: 1px;
    white-space: nowrap;
    overflow: visible;
}

.answer-on-question-sheet .right-margin-paper-box {
    visibility: hidden;
}

.kanji-test-right-margin-rest {
    max-width: 120px;
    min-width: 120px;
    margin-left: 18px;
    margin-top: 12px;
    height: 1172px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
}

.kanji-test-right-margin-rest-inner {
    flex-grow: 1;
    min-width: 98px;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    justify-content: space-between;
}

.kanji-test-right-margin-rest-inner-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: start;
    margin-bottom: 40px;
}

.kanji-test-right-margin-rest-inner-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 40px;
}

.right-margin-moshi {
    width: 120px;
    height: 50px;
    margin-top: 3px;
    margin-bottom: 40px;
    display: flex;
    flex-direction: row;
}

.right-margin-moshi-white {
    display: block;
    border: 2px solid black;
    writing-mode: vertical-rl;
    font-family: 'Noto Serif CJK JP', "ヒラギノ明朝 ProN W6", "HiraMinProN-W6", "HG明朝E", "ＭＳ Ｐ明朝", "MS PMincho", "MS 明朝", serif;
    font-weight: 600;
    font-size: 46px;
    width: 48px;
    height: 48px;
    text-align: center;
    vertical-align: middle;
    line-height: 48px;
    background-color: black;
    color: white;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
}

.right-margin-moshi-black {
    display: block;
    border: 2px solid black;
    writing-mode: vertical-rl;
    font-family: 'Noto Serif CJK JP', "ヒラギノ明朝 ProN W6", "HiraMinProN-W6", "HG明朝E", "ＭＳ Ｐ明朝", "MS PMincho", "MS 明朝", serif;
    font-weight: 600;
    font-size: 46px;
    width: 48px;
    height: 48px;
    text-align: center;
    vertical-align: middle;
    line-height: 48px;
    background-color: white;
    color: black;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
    margin-right: -2px;
}

.right-margin-test-title {
    display: block;
    writing-mode: vertical-rl;
    font-family: 'Noto Serif CJK JP', "ヒラギノ明朝 ProN W6", "HiraMinProN-W6", "HG明朝E", "ＭＳ Ｐ明朝", "MS PMincho", "MS 明朝", serif;
    font-weight: 700;
    font-size: 48px;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.right-margin-test-subtitle {
    display: block;
    writing-mode: vertical-rl;
    font-family: 'Noto Serif CJK JP', "ヒラギノ明朝 ProN W6", "HiraMinProN-W6", "HG明朝E", "ＭＳ Ｐ明朝", "MS PMincho", "MS 明朝", serif;
    font-weight: 500;
    font-size: 36px;
    margin-top: -4px;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.right-margin-test-date {
    display: block;
    writing-mode: vertical-rl;
    font-family: 'Noto Serif CJK JP', "ヒラギノ明朝 ProN W6", "HiraMinProN-W6", "HG明朝E", "ＭＳ Ｐ明朝", "MS PMincho", "MS 明朝", serif;
    font-weight: 400;
    font-size: 21px;
    letter-spacing: 1px;
    text-underline-position: left;
}

.inline-num-test-date {
  display: inline-block;
  vertical-align: baseline;
  writing-mode: horizontal-tb;
  text-align: center;
  margin-top: -1px;
  margin-bottom: 0px;
  font-size: 21px;
  width: 1.09em;
  height: 1.09em;
  letter-spacing: 0px;
  line-height: 21px;
}

.switch-page-button {
    width: 46px;
    height: 196px;
    padding-top: 10px;
    margin-bottom: 4px;
    writing-mode: vertical-rl;
    line-height: 1.35;
    font-family: "Noto Sans CJK JP", IPAPGothic, "Century Gothic", CenturyGothic, AppleGothic, sans-serif;
    font-weight: 500;
    font-size: 24px;
    letter-spacing: 1px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: lightgray;
    color: white;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.switch-page-button.page-button-active {
    background-color: black;
    color: white;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
}

.switch-page-button.settings-button {
    height: 82px;
    padding-top: 0px;
}

.switch-page-button .page-num {
    font-weight: 500;
    font-size: 19px;
}

.settings-panel {
    display: none;
    z-index: 10;
    position: absolute;
    top: 638px;
    left: 58px;
    width: 998px;
}

.settings-panel.active-settings {
    display: block;
}

.settings-panel.more-settings {
    height: 708px;
    top: 8px;
}

.extra-settings {
    display: none;
    height: 630px;
    flex-direction: row;
}

.extra-settings.more-settings {
    display: flex;
}

.half-settings {
    width: 50%;
}

.settings-font {
    font-family: 'Noto Sans CJK JP', "ヒラギノ角ゴ Pro W6", "Hiragino Kaku Gothic Pro",Osaka, "メイリオ", Meiryo, "ＭＳ Ｐゴシック", "MS PGothic", sans-serif;
}

.settings-row {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.settings-row > div {
    margin-bottom: 0px !important;
}

.settings-half-row {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 95%;
}

.settings-half-row > div {
    margin-bottom: 0px !important;
}

.settings-half-row > input {
    margin-top: 3px !important;
    margin-bottom: 3px !important;
}

.settings-seed-field {
    width: 200px !important;
}

.shadow-field {
    display: none;
}

.settings-subheader {
    width: 160px;
    min-width: 160px;
    white-space: nowrap;
    margin-right: 4px;
}

output {
    width: 60px !important;
}

.kanji-test.two-half-pages.active-page {
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-between;
}

.left-page {
    width: 760px;
}

hr {
    width: calc(1450px + 1px);
    margin-left: 0px;
}

.right-page-hr {
    width: calc(650px - 10px);
    margin-left: 11px;
}

::-moz-selection { /* Code for Firefox */
  color: white;
  background: #303030;
}

::selection {
  color: white;
  background: #303030;
}

.card-row {
  margin-left: 10px;
  width: 1450px;
  display: flex;
  flex-direction: row-reverse;
  justify-content: space-between;
  flex-shrink: 0;
}

.card-row.single-page-row {
  width: 650px;
}

.card-row.with-lone-content {
  justify-content: flex-start;
}

.left-page .card-row {
  margin-left: 0px;
  width: 100%;
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-start;
  flex-shrink: 0;
}

.card-container {
  flex-shrink: 0;
}

.card {
    font-family: 'Noto Serif CJK JP', "ヒラギノ明朝 ProN W6", "HiraMinProN-W6", "HG明朝E", "ＭＳ Ｐ明朝", "MS PMincho", "MS 明朝", serif;
    font-size: 20px;
    margin-right: 0.5em;
    text-align: left;
    height: 376px;
    flex-grow: 1;
    flex-shrink: 0;
}

.left-page .card {
    height: 100%;
    margin-right: 0;
}

.two-rows {
  display: flex;
  flex-direction: column;
  align-items: end;
  flex-shrink: 0;
}

.centered-content {
  display: flex;
  flex-direction: row-reverse;
  justify-content: space-between;
  flex-shrink: 0;
  width: 100%;
}

.centered-content.lone-content {
  min-width: calc(1450px - 10px);
}

.single-page-row .centered-content.lone-content {
  min-width: 650px;
}

.centered-content.kotowaza-content {
  width: 780px;
}

rt {
  font-size: 7pt;
  margin-right: -1em;
}

.ruby-dot {
  font-size: 6px;
}


.question-header {
  font-family: "ヒラギノ角ゴ Pro W3","Hiragino Kaku Gothic Pro","メイリオ",Meiryo,"ＭＳ Ｐゴシック",sans-serif;
  font-size: 24px;
  height: 38px;
}

.centered-block {
  display: flex;
  flex-direction: column;
  margin-right: 12px; /* added */
}

.centered-block.first-block {
  margin-right: 12px; /* added */
}


.question { 
  font-size: 18px;
  writing-mode: vertical-rl;
  line-height: 1.35;
  position: relative; /* added */
  height: calc(376px - 38px); /* added */
  flex-shrink: 0;
  width: fit-content;
}

.left-page .question { 
  height: calc(1172px - 38px);
  letter-spacing: 1px;
}

.spacing { 
  font-size: 10px;
  writing-mode: vertical-rl;
}

.question-prompt { 
  display: inline-block;
  position: relative; /* added */
  margin-right: 12px; /* added */
  font-size: 20px;
  writing-mode: vertical-rl;
  letter-spacing: 1px;
  max-width: calc(100%);
  max-height: calc(376px - 38px); /* added */
  vertical-align: top;
  line-height: 1.55;
  flex-shrink: 0;
  box-sizing: initial;
}

.question-prompt.squish-to-fit {
  transform: scaleY(0.94);
  margin-bottom: -2px;
  overflow: visible;
  height: 376px;
  white-space: nowrap;
  transform-origin: top;
  margin-right: 0px;
}

.question-prompt.squish-to-fit2 {
  transform: scaleY(0.89);
  margin-bottom: -2px;
  overflow: visible;
  height: 376px;
  white-space: nowrap;
  transform-origin: top;
  margin-right: 0px;
}

.question-prompt.add-period:after {
  display: inline-block;
  content: "。";
  height: 0px;
  overflow: visible;
  word-break: keep-all;
}

.question-prompt.inside-prompt {
  margin-right: -4px;
  max-height: calc(376px - 38px); /* added */
}

.question-prompt.goji-prompt {
  margin-top: -8px;
  margin-right: 16px;
  line-break: anywhere;
  max-height: calc(376px - 16px);
  line-height: 1.45;
}

.lone-content .question-prompt { 
  margin-right: unset;
}

.lone-content .question-prompt.bunshou {
  margin-right: 6px;
}

.vert-question-prompt {
  letter-spacing: 1px;
}

.td-prompt .vert-question-prompt {
  letter-spacing: inherit;
}

.ja-prompt .vert-question-prompt {
  letter-spacing: inherit;
}

.bunshou-box {
  display: flex;
  flex-direction: row-reverse;
  justify-content: space-between;
  flex-shrink: 0;
  margin-top: 18px;
  margin-right: 18px;
  margin-bottom: 36px;
  padding: 16px;
  width: 678px;
  height: 1080px;
  border: dotted gray 2px;
}

.question-prompt.bunshou {
  margin-top: -30px;
  max-height: calc(376px - 38px + 28px);
  font-size: 18px;
  letter-spacing: 0px;
  line-height: 1.65;
  line-break: loose;
  text-align: justify;
}

.bunshou-box .question-prompt.bunshou {
  margin-top: 0px;
  margin-right: 0px;
  height: 100%;
  max-height: 100%;
  flex-grow: 1;
  flex-shrink: 1;
  font-size: 19px;
  letter-spacing: 0px;
  line-height: 1.7; /* line-height: 1.77; for 20 lines */
  line-break: loose;
  text-align: justify;
}

.answer-box { 
  display: flex;
  flex-flow: column;
  align-items: flex-start;
  flex-grow: 0;
  writing-mode: vertical-rl;
  padding-top: 16px;
  padding-bottom: 16px;
  padding-left: 4px;
  padding-right: 4px;
  font-size: 18px;
  letter-spacing: 1px;
  border: 1px solid black;
  line-height: 1.4;
  margin-top: -14px;  /* added */
  margin-right: 22px;  /* added */
  margin-bottom: 22px;  /* added */
  height: 300px;
  white-space: nowrap;
  overflow: visible;
}

.highlight-with-color .answer-box { 
  color: firebrick;
  border-color: firebrick;
}

.answer-box.set-width { 
  width: 140px;
  justify-content: space-evenly;
}

.answer-box-column {
  display: flex;
  flex-flow: row;
  justify-content: space-between;
  flex-grow: 1;
  gap: 13px;
  max-width: 27px;
}

.answer-box-column.answer-box-maxed {
  gap: unset;
  height: 300px;
}

.answer-box.answer-box-tight { 
  padding-top: 12px;
  padding-bottom: 12px;
  height: 320px;
}

.answer-box.answer-box-tight.answer-box-move-up { 
  margin-top: -16px;
}

.answer-box.answer-box-tall { 
  padding-top: 12px;
  padding-bottom: 12px;
  padding-left: 5px;
  padding-right: 5px;
  height: 320px;
  font-size: 20px;
}

.answer-box-tall .answer-box-column {
  gap: 6px;
}

.answer-box-tight .answer-box-column.answer-box-maxed {
  gap: unset;
  height: 320px;
}

.yoji-flex-dot {
  display: flex;
  flex-flow: column;
  flex-grow: inherit;
  align-items: center;
}

.underline-yomi {
  text-decoration: underline;
  text-decoration-thickness: 2px; 
  text-underline-position: right;
  text-underline-offset: 3px; /* added */
}

.answer-box-tall .underline-yomi {
  text-underline-offset: 2px; /* added */
}

.highlight-with-color .underline-yomi {
  color: firebrick;
}

.highlight-with-color .answer-box-tall > div {
  color: initial;
}

.highlight-with-color .answer-box-tall .underline-yomi {
  color: initial;
  text-decoration-color: firebrick;
}

.highlight-with-color .keyword {
  color: firebrick;
}

.underline-kakitori {
  text-decoration: underline;
  text-decoration-thickness: 2px; 
  text-underline-position: right;
  text-underline-offset: 3px; /* added */
  font-family: "Noto Sans CJK JP", IPAPGothic, "Century Gothic", CenturyGothic, AppleGothic, sans-serif;
  font-weight: 500;
}

.highlight-with-color .underline-kakitori {
  color: firebrick;
}

.boldtype {
  font-weight: 700;
}

.question .boldtype{
  font-family: "Noto Sans CJK JP", IPAPGothic, "Century Gothic", CenturyGothic, AppleGothic, sans-serif;
  font-weight: 500;
  font-size: 17px;
  letter-spacing: 1px;
}

.hrule {
  border-right: 2px groove;
}

.level {
  font-size: 14px;
  text-align: right;
}

.graycolor {
  color: darkgray;
}

.boldtype-header {
  font-weight: 600;
  font-size: 20px;
}

.dotted-line {
  height: 48px; /* changed */
  width: 0px;
  border-left: 1px dashed gray;
  content: '';
} 

.vertical-heading-2 {
  display: flex;
  align-items: center;
  font-size: 27px; /* changed */
  writing-mode: vertical-rl;
  margin-right: 10px; /* changed */
}

.vertical-heading-2.yoji-prompt {
  margin-right: 14px; /* changed */
}

.vertical-heading-2.td-prompt {
  margin-right: 18px; /* changed */
  margin-top: 0px;
  letter-spacing: 10px;
  font-size: 28px;
}

.vertical-heading-2.td-prompt .three-char {
  letter-spacing: 1px;
}

.vertical-heading-2.ja-prompt {
  margin-right: 12px; /* changed */
  margin-top: 0px;
  letter-spacing: 10px;
  font-size: 28px;
}

.vertical-heading-2.ja-prompt .three-char {
  letter-spacing: 1px;
}

.vertical-heading-2.ja-prompt .four-char {
  letter-spacing: 1px;
  overflow: visible;
  white-space: nowrap;
}

.inline-box {
  display: inline-block;
  width: 1.05em; /* changed */
  height: 1.85em; /* changed */
  vertical-align: right;
  border: 1px solid black; /* changed */
}

.highlight-with-color .inline-box{
  border-color: firebrick;
}

.inline-box-bunshou {
  display: inline-block;
  font-family: "ヒラギノ角ゴ Pro W3","Hiragino Kaku Gothic Pro","メイリオ",Meiryo,"ＭＳ Ｐゴシック",sans-serif;
  writing-mode: horizontal-tb;
  padding-top: 2px;
  margin-left: 4px;
  margin-bottom: 0px;
  text-align: center;
  width: 1em;
  height: 1.8em;
  vertical-align: right;
  border: 1px solid black;
  font-weight: 500;
}

.inline-text-box {
  display: inline-block;
  width: 1.05em; /* changed */
  height: 2.15em; /* changed */
  vertical-align: middle;
  border: 1px solid black; /* changed */
  overflow: visible;
  white-space: nowrap;
  text-align: center;
  position: relative;
}

.answer-subquestion .inline-text-box {
  width: 1.15em; /* changed */
  height: 2.25em; /* changed */
}

.inline-box-text {
  position: absolute;
  left: -3px;
  top: 2px;
}

.answer-subquestion .inline-box-text {
  position: absolute;
  left: 1px;
  top: 2px;
}

.inline-box-heading {
  display: flex;
  align-items: center;
  width: 1.2em;
  height: 4.2em;
  border: 1px solid black;
  margin-top: 18px;
  margin-right: 16px;
  margin-left: 10px;
  padding: 4px;
  padding-top: 12px;
  font-size: 20px;
  font-family: "Noto Sans CJK JP", IPAPGothic, "Century Gothic", CenturyGothic, AppleGothic, sans-serif;
  font-weight: 500;
  writing-mode: vertical-rl;
  letter-spacing: 8px;
  white-space: nowrap;
}

.highlight-with-color .inline-box-heading {
  color: firebrick;
  border-color: firebrick;
}

/* kyoutsuu */
.parent {
  padding: 0px;
  display: inline-block;
  text-align: center;
  transform: rotate(-180deg);
  translate: -3px 0px;
  margin-top: -10px;
  margin-bottom: -12px;
  margin-right: 2px;
}
.parent p {
  max-width: 300px;
}
.el {
  display: inline-flex;
}
.el>div {
  width: 20px; /* changed */
  height: 1px;
  background: black;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
  margin: 0px 3px; /* changed */
  position: relative;
}
.el>div:before,
.el>div:after {
  content: '';
  position: absolute;
  width: 3px; /* changed */
  height: 3px; /* changed */
  border-top-left-radius: 200px;
  border: 1px solid black;
  border-right: none;
  border-bottom: none;
}
.el>div:after {
  right: -3px; /* changed */
}
.right:after {
  transform: rotate(-180deg);
  top: -3px; /* changed */
}
.left:before {
  transform: rotate(-90deg);
  top: -3px; /* changed */
  left: -3px; /* changed */
}
.left:after {
  transform: rotate(90deg);
}
.right:before {
  left: -3px; /* changed */
}

/* douon-doukun-2 */
.parent-2 {
  padding: 0px;
  display: inline-block;
  text-align: center;
  transform: rotate(-180deg);
  translate: 6px -33px;
  margin-top: -10px;
  margin-bottom: -12px;
  margin-right: 2px;
}
.parent-2 p {
  max-width: 300px;
}
.e2 {
  display: inline-flex;
}
.e2>div {
  width: 38px; /* changed */
  height: 1px;
  background: black;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
  margin: 0px 3px; /* changed */
  position: relative;
}
.e2>div:before,
.e2>div:after {
  content: '';
  position: absolute;
  width: 3px; /* changed */
  height: 3px; /* changed */
  border-top-left-radius: 200px;
  border: 1px solid black;
  border-right: none;
  border-bottom: none;
}
.e2>div:after {
  right: -3px; /* changed */
}

.e2.short-by-one>div {
  width: 37px;
}

.e2.short-by-two>div {
  width: 36px;
}

.e2.short-by-three>div {
  width: 35px;
}

.e2.short-by-four>div {
  width: 34px;
}

.e2.short-by-five>div {
  width: 33px;
}

/* douon-doukun-3 */
.parent-3 {
  padding: 0px;
  display: inline-block;
  text-align: center;
  transform: rotate(-180deg);
  translate: 6px -33px;
  margin-top: -10px;
  margin-bottom: -12px;
  margin-right: 2px;
}
.parent-3 p {
  max-width: 300px;
}
.e3 {
  display: inline-flex;
}
.e3>div {
  width: 73px; /* changed */
  height: 1px;
  background: black;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
  margin: 0px 3px; /* changed */
  position: relative;
}
.e3>div:before,
.e3>div:after {
  content: '';
  position: absolute;
  width: 3px; /* changed */
  height: 3px; /* changed */
  border-top-left-radius: 200px;
  border: 1px solid black;
  border-right: none;
  border-bottom: none;
}
.e3>div:after {
  right: -3px; /* changed */
}

.e3.short-by-one>div {
  width: 72px;
}

.e3.short-by-two>div {
  width: 71px;
}

.e3.short-by-three>div {
  width: 70px;
}

.e3.short-by-four>div {
  width: 69px;
}

.e3.short-by-five>div {
  width: 68px;
}



/* Not in flashcards */

.question-number { 
  position: absolute;
  text-align: center;
  top: -29px;
  right: 0px;
  width: 30px;
  max-height: 26px;
  font-size: 16.5px;
  writing-mode: horizontal-tb;
  letter-spacing: 0px;
}

.goji-prompt .question-number { 
  top: -27px;
}

.question-number-kyoutsuu { 
  position: absolute;
  text-align: center;
  top: -43px;
  right: 18px;
  width: 30px;
  font-size: 16.5px;
  writing-mode: horizontal-tb;
}

.question-letter-inline { 
  display: inline-block;
  text-align: center;
  width: 35px;
  height: 28px;
  margin-top: -4px;
  margin-right: -1px;
  font-size: 18px;
  writing-mode: horizontal-tb;
}

.question-number-inline { 
  display: inline-block;
  text-align: center;
  width: 35px;
  height: 35px;
  margin-right: 0px;
  font-size: 18px;
  writing-mode: horizontal-tb;
  letter-spacing: 0px;
}

.td-prompt .question-number-inline { 
  height: 32px;
  font-size: 16.5px;
}

.dotted-line-divider {
  width: 0px;
  margin-top: -22px;
  margin-bottom: 6px;
  margin-right: 22px;
  margin-left: 11px;
  border-left: 1px dashed black;
  content: '';
} 

.lone-content .dotted-line-divider { 
  margin-right: 9px;
}

.inline-num {
  display: inline-block;
  vertical-align: baseline;
  writing-mode: horizontal-tb;
  text-align: center;
  margin-top: -0.22em;
  font-size: 16px;
  width: 1em;
  height: 1.35em;
  letter-spacing: 0px;
}

.answer-subquestion .inline-num {
  margin-top: 0px;
  font-size: 20px;
}

.inline-num-tall {
  display: inline-block;
  vertical-align: baseline;
  writing-mode: horizontal-tb;
  text-align: center;
  margin-top: -0.22em;
  font-size: 17px;
  width: 1em;
  height: 26.5px;
  letter-spacing: 1px;
}

.answer-on-question-sheet .inline-num-tall {
  font-size: 12px;
  text-align: right;
  height: 25px;
  transform: translate(5px,-3px);
}

.inline-num-fullsize {
  display: inline-block;
  vertical-align: baseline;
  writing-mode: horizontal-tb;
  text-align: center;
  margin-top: 0px;
  margin-bottom: 3px;
  font-size: 20px;
  width: 1em;
  height: 31px;
  letter-spacing: 0px;
}

.answer-on-question-sheet .inline-num-fullsize {
  font-size: 13px;
  text-align: right;
  height: 31px;
  transform: translate(6px,-8px);
}

.num-ten {
  letter-spacing: 1px;
}

.inline-paren {
  display: inline-block;
  vertical-align: text-top;
  text-align: center;
  margin-right: -0.3em;
  font-size: 17px;
  width: 1em;
  height: 0.5em;
  letter-spacing: 0px;
}

.inline-paren-2 {
  display: inline-block;
  vertical-align: text-top;
  text-align: center;
  margin-right: -0.25em;
  font-size: 17px;
  width: 1em;
  height: 0.5em;
  letter-spacing: 0px;
}

.inline-paren-big {
  display: inline-block;
  vertical-align: text-top;
  text-align: center;
  margin-right: -0.4em;
  font-size: 19.5px;
  width: 1em;
  height: 0.5em;
}

.inline-paren-fullsize {
  display: inline-block;
  vertical-align: text-top;
  text-align: center;
  margin-right: -0.3em;
  font-size: 25px;
  width: 1em;
  height: 0.7em;
}

@supports (-webkit-appearance:none) and (not (overflow:-webkit-marquee))
and (not (-ms-ime-align:auto)) and (not (-moz-appearance:none)) { 
    .inline-paren {
      margin-right: 0em;
    }
    
    .inline-paren-2 {
      margin-right: 0em;
    }
    
    .inline-paren-big {
      margin-right: -0.1em;
    }
    
    .inline-paren-fullsize {
      margin-right: 0em;
    }
}

.card-points { 
  position: absolute;
  text-align: center;
  bottom: -5px;
  right: -20.5px;
  width: 64px;
  font-size: 16px;
  writing-mode: horizontal-tb;
  font-weight: 200;
  line-height: 0.85;
}

.big-points { 
  font-family: "ヒラギノ角ゴ Pro W3","Hiragino Kaku Gothic Pro","メイリオ",Meiryo,"ＭＳ Ｐゴシック",sans-serif;
  font-weight: 500;
}

.small-points { 
  font-family: "ヒラギノ角ゴ Pro W3","Hiragino Kaku Gothic Pro","メイリオ",Meiryo,"ＭＳ Ｐゴシック",sans-serif;
  font-size: 11px;
  font-weight: 700;
}

.extra-spacing {
  letter-spacing: 0.545px;
}

.extra-question {
  margin-right: 4px;
  margin-top: -9px;
  display: flex;
  align-items: center;
  writing-mode: vertical-rl;
}

.dotted-line-mini {
  height: 30px;
  width: 0px;
  margin-right: -1px;
  border-left: 1px dashed gray;
  content: '';
} 

.example-box { 
  display: table;
  border-collapse: collapse;
  table-layout: fixed;
}

.example-box-row { 
  display: table-row;
}

.example-box-cell { 
  display: table-cell;
  writing-mode: vertical-rl;
  border: 1px solid black;
  box-sizing: border-box;
  letter-spacing: 1px;
  font-size: 16px;
  width: 22px;
  height: 95px;
  line-height: 1.1;
  text-align: center;
  vertical-align: middle;
}

.highlight-with-color .example-box-cell {
  border-color: firebrick;
}

.example-box-flex { 
  display: flex;
  flex-direction: row;
  justify-content: space-around;
}

.all-yoji {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-shrink: 0;
  width: 240px;
  height: 320px;
  margin-top: -8px;
}

@supports (-webkit-appearance:none) and (not (overflow:-webkit-marquee))
and (not (-ms-ime-align:auto)) and (not (-moz-appearance:none)) { 
    .all-yoji {
        margin-left: 22px;  /* workaround for margins treated differently in Chrome */
    }
}


.td-not-yoji {
  margin-top: -4px;
  height: 280px;
  width: 338px;
}

.ja-not-yoji {
  margin-top: -4px;
  width: 240px;
  justify-content: flex-start;
}

.half-yoji {
  display: flex;
  flex-direction: row-reverse;
  justify-content: space-between;
  flex-shrink: 0;
  flex-grow: 0;
  width: 100%;
}

.ja-not-yoji .half-yoji {
  height: 148px;
  align-items: start;
}

.yoji-hr {
  width: calc(240px - 2px);
  margin-left: -6px;
}

.td-hr {
  width: calc(240px + 16px);
  margin-left: -4px;
}

.ja-hr {
  width: 232px;
  margin-left: -4px;
}

.shift-up {
  margin-top: -20px;
}

/* Bunshou questions */

.finaltag {
  text-align: right;
  margin-right: 0px;
  margin-top: -8px;
  margin-bottom: -8px;
  float: right;
}

.reading-1 {
  position: relative;
  text-decoration: underline;
  text-decoration-thickness: 1px; 
  text-underline-offset: 3px; /* added */
  text-decoration-style: wavy;
  text-underline-position: right;
}

.highlight-with-color .reading-1 { 
  color: firebrick;
}

.reading-1:before {
  content: 'ア';
  position: absolute;
  font-size: 8pt;
  margin-right: -1em;
  right: -4px;
  top: -10px;
  font-weight: 600;
}

.reading-2 {
  position: relative;
  text-decoration: underline;
  text-decoration-thickness: 1px; 
  text-underline-offset: 3px; /* added */
  text-decoration-style: wavy;
  text-underline-position: right;
}

.highlight-with-color .reading-2 { 
  color: firebrick;
}

.reading-2:before {
  content: 'イ';
  position: absolute;
  font-size: 8pt;
  margin-right: -1em;
  right: -4px;
  top: -10px;
  font-weight: 600;
}

.reading-3 {
  position: relative;
  text-decoration: underline;
  text-decoration-thickness: 1px; 
  text-underline-offset: 3px; /* added */
  text-decoration-style: wavy;
  text-underline-position: right;
}

.highlight-with-color .reading-3 { 
  color: firebrick;
}

.reading-3:before {
  content: 'ウ';
  position: absolute;
  font-size: 8pt;
  margin-right: -1em;
  right: -4px;
  top: -10px;
  font-weight: 600;
}

.reading-4 {
  position: relative;
  text-decoration: underline;
  text-decoration-thickness: 1px; 
  text-underline-offset: 3px; /* added */
  text-decoration-style: wavy;
  text-underline-position: right;
}

.highlight-with-color .reading-4 { 
  color: firebrick;
}

.reading-4:before {
  content: 'エ';
  position: absolute;
  font-size: 8pt;
  margin-right: -1em;
  right: -4px;
  top: -10px;
  font-weight: 600;
}

.reading-5 {
  position: relative;
  text-decoration: underline;
  text-decoration-thickness: 1px; 
  text-underline-offset: 3px; /* added */
  text-decoration-style: wavy;
  text-underline-position: right;
}

.reading-5:before {
  content: 'オ';
  position: absolute;
  font-size: 8pt;
  margin-right: -1em;
  right: -4px;
  top: -10px;
  font-weight: 600;
}

.highlight-with-color .reading-5 { 
  color: firebrick;
}

.reading-6 {
  position: relative;
  text-decoration: underline;
  text-decoration-thickness: 1px; 
  text-underline-offset: 3px; /* added */
  text-decoration-style: wavy;
  text-underline-position: right;
}

.highlight-with-color .reading-6 { 
  color: firebrick;
}

.reading-6:before {
  content: 'カ';
  position: absolute;
  font-size: 8pt;
  margin-right: -1em;
  right: -4px;
  top: -10px;
  font-weight: 600;
}

.reading-7 {
  position: relative;
  text-decoration: underline;
  text-decoration-thickness: 1px; 
  text-underline-offset: 3px; /* added */
  text-decoration-style: wavy;
  text-underline-position: right;
}

.highlight-with-color .reading-7 { 
  color: firebrick;
}

.reading-7:before {
  content: 'キ';
  position: absolute;
  font-size: 8pt;
  margin-right: -1em;
  right: -4px;
  top: -10px;
  font-weight: 600;
}

.reading-8 {
  position: relative;
  text-decoration: underline;
  text-decoration-thickness: 1px; 
  text-underline-offset: 3px; /* added */
  text-decoration-style: wavy;
  text-underline-position: right;
}

.highlight-with-color .reading-8 { 
  color: firebrick;
}

.reading-8:before {
  content: 'ク';
  position: absolute;
  font-size: 8pt;
  margin-right: -1em;
  right: -4px;
  top: -10px;
  font-weight: 600;
}

.reading-9 {
  position: relative;
  text-decoration: underline;
  text-decoration-thickness: 1px; 
  text-underline-offset: 3px; /* added */
  text-decoration-style: wavy;
  text-underline-position: right;
}

.highlight-with-color .reading-9 { 
  color: firebrick;
}

.reading-9:before {
  content: 'ケ';
  position: absolute;
  font-size: 8pt;
  margin-right: -1em;
  right: -4px;
  top: -10px;
  font-weight: 600;
}

.reading-10 {
  position: relative;
  text-decoration: underline;
  text-decoration-thickness: 1px; 
  text-underline-offset: 3px; /* added */
  text-decoration-style: wavy;
  text-underline-position: right;
}

.highlight-with-color .reading-10 { 
  color: firebrick;
}

.reading-10:before {
  content: 'コ';
  position: absolute;
  font-size: 8pt;
  margin-right: -1em;
  right: -4px;
  top: -10px;
  font-weight: 600;
}

.writing-1 {
  position: relative;
  text-decoration: underline;
  text-decoration-thickness: 2px; 
  text-underline-offset: 2px; /* added */
  text-underline-position: right;
  font-family: "Noto Sans CJK JP", IPAPGothic, "Century Gothic", CenturyGothic, AppleGothic, sans-serif;
  font-weight: 500;
}

.highlight-with-color .writing-1 { 
  color: firebrick;
}

.writing-1:before {
  content: '1';
  font-family: 'Noto Serif CJK JP', "ヒラギノ明朝 ProN W6", "HiraMinProN-W6", "HG明朝E", "ＭＳ Ｐ明朝", "MS PMincho", "MS 明朝", serif;
  writing-mode: horizontal-tb;
  width: 11px;
  position: absolute;
  font-size: 8pt;
  margin-right: -1em;
  right: -2px;
  top: -14px;
  font-weight: 600;
}

.writing-2 {
  position: relative;
  text-decoration: underline;
  text-decoration-thickness: 2px; 
  text-underline-offset: 2px; /* added */
  text-underline-position: right;
  font-family: "Noto Sans CJK JP", IPAPGothic, "Century Gothic", CenturyGothic, AppleGothic, sans-serif;
  font-weight: 500;
}

.highlight-with-color .writing-2 { 
  color: firebrick;
}

.writing-2:before {
  content: '2';
  font-family: 'Noto Serif CJK JP', "ヒラギノ明朝 ProN W6", "HiraMinProN-W6", "HG明朝E", "ＭＳ Ｐ明朝", "MS PMincho", "MS 明朝", serif;
  writing-mode: horizontal-tb;
  width: 11px;
  position: absolute;
  font-size: 8pt;
  margin-right: -1em;
  right: -2px;
  top: -14px;
  font-weight: 600;
}

.writing-3 {
  position: relative;
  text-decoration: underline;
  text-decoration-thickness: 2px; 
  text-underline-offset: 2px; /* added */
  text-underline-position: right;
  font-family: "Noto Sans CJK JP", IPAPGothic, "Century Gothic", CenturyGothic, AppleGothic, sans-serif;
  font-weight: 500;
}

.highlight-with-color .writing-3 { 
  color: firebrick;
}

.writing-3:before {
  content: '3';
  font-family: 'Noto Serif CJK JP', "ヒラギノ明朝 ProN W6", "HiraMinProN-W6", "HG明朝E", "ＭＳ Ｐ明朝", "MS PMincho", "MS 明朝", serif;
  writing-mode: horizontal-tb;
  width: 11px;
  position: absolute;
  font-size: 8pt;
  margin-right: -1em;
  right: -2px;
  top: -15px;
  font-weight: 600;
}

.writing-4 {
  position: relative;
  text-decoration: underline;
  text-decoration-thickness: 2px; 
  text-underline-offset: 2px; /* added */
  text-underline-position: right;
  font-family: "Noto Sans CJK JP", IPAPGothic, "Century Gothic", CenturyGothic, AppleGothic, sans-serif;
  font-weight: 500;
}

.highlight-with-color .writing-4 { 
  color: firebrick;
}

.writing-4:before {
  content: '4';
  font-family: 'Noto Serif CJK JP', "ヒラギノ明朝 ProN W6", "HiraMinProN-W6", "HG明朝E", "ＭＳ Ｐ明朝", "MS PMincho", "MS 明朝", serif;
  writing-mode: horizontal-tb;
  width: 11px;
  position: absolute;
  font-size: 8pt;
  margin-right: -1em;
  right: -2px;
  top: -14px;
  font-weight: 600;
}

.writing-5 {
  position: relative;
  text-decoration: underline;
  text-decoration-thickness: 2px; 
  text-underline-offset: 2px; /* added */
  text-underline-position: right;
  font-family: "Noto Sans CJK JP", IPAPGothic, "Century Gothic", CenturyGothic, AppleGothic, sans-serif;
  font-weight: 500;
}

.highlight-with-color .writing-5 { 
  color: firebrick;
}

.writing-5:before {
  content: '5';
  font-family: 'Noto Serif CJK JP', "ヒラギノ明朝 ProN W6", "HiraMinProN-W6", "HG明朝E", "ＭＳ Ｐ明朝", "MS PMincho", "MS 明朝", serif;
  writing-mode: horizontal-tb;
  width: 11px;
  position: absolute;
  font-size: 8pt;
  margin-right: -1em;
  right: -2px;
  top: -14px;
  font-weight: 600;
}

.writing-6 {
  position: relative;
  text-decoration: underline;
  text-decoration-thickness: 2px; 
  text-underline-offset: 2px; /* added */
  text-underline-position: right;
  font-family: "Noto Sans CJK JP", IPAPGothic, "Century Gothic", CenturyGothic, AppleGothic, sans-serif;
  font-weight: 500;
}

.highlight-with-color .writing-6 { 
  color: firebrick;
}

.writing-6:before {
  content: '6';
  font-family: 'Noto Serif CJK JP', "ヒラギノ明朝 ProN W6", "HiraMinProN-W6", "HG明朝E", "ＭＳ Ｐ明朝", "MS PMincho", "MS 明朝", serif;
  writing-mode: horizontal-tb;
  width: 11px;
  position: absolute;
  font-size: 8pt;
  margin-right: -1em;
  right: -2px;
  top: -14px;
  font-weight: 600;
}

.writing-7 {
  position: relative;
  text-decoration: underline;
  text-decoration-thickness: 2px; 
  text-underline-offset: 2px; /* added */
  text-underline-position: right;
  font-family: "Noto Sans CJK JP", IPAPGothic, "Century Gothic", CenturyGothic, AppleGothic, sans-serif;
  font-weight: 500;
}

.highlight-with-color .writing-7 { 
  color: firebrick;
}

.writing-7:before {
  content: '7';
  font-family: 'Noto Serif CJK JP', "ヒラギノ明朝 ProN W6", "HiraMinProN-W6", "HG明朝E", "ＭＳ Ｐ明朝", "MS PMincho", "MS 明朝", serif;
  writing-mode: horizontal-tb;
  width: 11px;
  position: absolute;
  font-size: 8pt;
  margin-right: -1em;
  right: -2px;
  top: -14px;
  font-weight: 600;
}

.writing-8 {
  position: relative;
  text-decoration: underline;
  text-decoration-thickness: 2px; 
  text-underline-offset: 2px; /* added */
  text-underline-position: right;
  font-family: "Noto Sans CJK JP", IPAPGothic, "Century Gothic", CenturyGothic, AppleGothic, sans-serif;
  font-weight: 500;
}

.highlight-with-color .writing-8 { 
  color: firebrick;
}

.writing-8:before {
  content: '8';
  font-family: 'Noto Serif CJK JP', "ヒラギノ明朝 ProN W6", "HiraMinProN-W6", "HG明朝E", "ＭＳ Ｐ明朝", "MS PMincho", "MS 明朝", serif;
  writing-mode: horizontal-tb;
  width: 11px;
  position: absolute;
  font-size: 8pt;
  margin-right: -1em;
  right: -2px;
  top: -14px;
  font-weight: 600;
}

.writing-9 {
  position: relative;
  text-decoration: underline;
  text-decoration-thickness: 2px; 
  text-underline-offset: 2px; /* added */
  text-underline-position: right;
  font-family: "Noto Sans CJK JP", IPAPGothic, "Century Gothic", CenturyGothic, AppleGothic, sans-serif;
  font-weight: 500;
}

.highlight-with-color .writing-9 { 
  color: firebrick;
}

.writing-9:before {
  content: '9';
  font-family: 'Noto Serif CJK JP', "ヒラギノ明朝 ProN W6", "HiraMinProN-W6", "HG明朝E", "ＭＳ Ｐ明朝", "MS PMincho", "MS 明朝", serif;
  writing-mode: horizontal-tb;
  width: 11px;
  position: absolute;
  font-size: 8pt;
  margin-right: -1em;
  right: -2px;
  top: -14px;
  font-weight: 600;
}

.writing-10 {
  position: relative;
  text-decoration: underline;
  text-decoration-thickness: 2px; 
  text-underline-offset: 2px; /* added */
  text-underline-position: right;
  font-family: "Noto Sans CJK JP", IPAPGothic, "Century Gothic", CenturyGothic, AppleGothic, sans-serif;
  font-weight: 500;
}

.highlight-with-color .writing-10 { 
  color: firebrick;
}

.writing-10:before {
  content: '10';
  font-family: 'Noto Serif CJK JP', "ヒラギノ明朝 ProN W6", "HiraMinProN-W6", "HG明朝E", "ＭＳ Ｐ明朝", "MS PMincho", "MS 明朝", serif;
  writing-mode: horizontal-tb;
  width: 11px;
  position: absolute;
  font-size: 8pt;
  margin-right: -1em;
  right: -2px;
  top: -14px;
  font-weight: 600;
}

.answersheet-question-number { 
  display: block;
  width: 40px;
  height: 20px;
  font-size: 16.5px;
  writing-mode: horizontal-tb;
  letter-spacing: 0px;
}

.answersheet-box { 
  display: table;
  border-collapse: collapse;
  table-layout: fixed;
}

.answersheet-box-row { 
  display: table-row;
  column-span: all;
}

.answersheet-box-number { 
  display: table-cell;
  border: 1px solid black;
  box-sizing: border-box;
  letter-spacing: 1px;
  font-size: 20px;
  height: 25px;
  line-height: 1.1;
  text-align: center;
  vertical-align: middle;
}

.extra-top {
  width: 414px;
}

.extra-top .answersheet-box-number {
  border-bottom: 0px;
  height: 24px;
}

.extra-top .answersheet-question-number {
  width: 80px;
}

.kanji-inside .answersheet-question-number {
  width: 60px;
}

.yomi-but-wide .answersheet-question-number {
  width: 60px;
}

.kanji-inside .no-kanji-header .answersheet-question-number {
  width: 40px;
}

.extra-bottom {
  width: 414px;
}

.answersheet-box-cell { 
  display: table-cell;
  position: relative;
  writing-mode: vertical-rl;
  border: 1px solid black;
  box-sizing: border-box;
  letter-spacing: 1px;
  font-size: 20px;
  width: 40px;
  max-width: 40px;
  height: 134px;
  line-height: 1.1;
  text-align: center;
  vertical-align: middle;
}

.kanji-inside .answersheet-box-cell { 
  font-size: 34px;
  font-weight: 300;
  width: 60px;
}

.kanji-inside .answersheet-box-cell.no-kanji-header { 
  font-family: "ヒラギノ角ゴ Pro W3","Hiragino Kaku Gothic Pro","メイリオ",Meiryo,"ＭＳ Ｐゴシック",sans-serif;
  font-size: 22px;
  writing-mode: vertical-rl;
  font-weight: 500;
  width: 40px;
}

.yomi-but-wide .answersheet-box-cell {
  font-size: 22px;
  width: 60px;
}

.extra-bottom .answersheet-box-cell {
  height: 109px;
}

.goji-boxes .answersheet-box-cell { 
  height: 67px;
}

.every-ten-divider { 
  border-left: 2px solid black;
}

.answersheet-box-flex { 
  display: flex;
  position: relative;
  width: 40px;
  height: 134px;
  flex-direction: row;
  justify-content: space-around;
  align-items: center;
}

.dot-between-kanji {
  position: absolute;
  transform: translate(-50%,-50%) !important;
  left: 50%;
  top: calc(50% - 12px);
  height: 12px !important;
}

.dot-between-onetwo {
  position: absolute;
  transform: translate(-50%,-50%) !important;
  left: 50%;
  top: calc(50% - 34px);
  height: 12px !important;
}

.dot-between-twothree {
  position: absolute;
  transform: translate(-50%,-50%) !important;
  left: 50%;
  top: calc(50% + 12px);
  height: 12px !important;
}

.dot-between-twothree-paren {
  position: absolute;
  transform: translate(-50%,-50%) scale(0.7, 0.7) !important;
  left: calc(50% - 2px);
  top: calc(50% - 6px);
  height: 12px !important;
  flex-basis: 0;
}

.dot-between-twofour-paren {
  position: absolute;
  transform: translate(-50%,-50%) scale(0.7, 0.7) !important;
  left: calc(50% - 2px);
  top: calc(50% - 17px);
  height: 12px !important;
  flex-basis: 0;
}

.dot-between-threefour-paren {
  position: absolute;
  transform: translate(-50%,-50%) scale(0.7, 0.7) !important;
  left: calc(50% - 2px);
  top: calc(50% + 15px);
  height: 12px !important;
  flex-basis: 0;
}

.lone-thislevel {
  transform: translate(0,-2px) scaleY(0.8) !important;
}

.squeeze-dot {
  height: 0px;
}

.squeeze-dot-eight {
  height: 8px;
  margin: -10px;
}

.four-total-kanji .squeeze-dot-eight {
  transform: scale(0.85, 0.85) translate(0,2px) !important;
}

.in-paren .squeeze-dot-eight {
  transform: translate(-3px,0) scale(1.2, 1.2) !important;
}

.squeeze-dot-hidden {
  height: 8px;
  margin: -10px;
  visibility: hidden;
}

.room-under {
  padding-bottom: 9px;
}

.first-half-flex .dot-between-kanji {
  transform: translate(-50%,-25%) scale(0.8, 0.8) !important;
}

.second-half-flex .dot-between-kanji {
  transform: translate(-50%,-25%) scale(0.8, 0.8) !important;
}

.first-half-flex.four-total-kanji.room-for-dot .dot-between-kanji {
  transform: translate(-50%,-20%) scale(0.7, 0.7) !important;
}

.second-half-flex.four-total-kanji.room-for-dot .dot-between-kanji {
  transform: translate(-50%,-20%) scale(0.7, 0.7) !important;
}

.kanji-inside .answersheet-box-flex { 
  width: 60px;
  justify-content: space-evenly;
}

.yomi-but-wide .answersheet-box-flex { 
  width: 60px;
  justify-content: space-around;
}

.goji-boxes .answersheet-box-flex { 
  height: 67px;
}

.goji-boxes .no-kanji-header .answersheet-box-flex { 
  width: 40px !important;
}

.extra-bottom .answersheet-box-flex { 
  height: 109px;
}

.answersheet-box-flex.first-half-flex { 
  width: 20px;
  position: absolute;
  top: 0px;
  left: 19px;
}

.answersheet-box-flex.second-half-flex { 
  width: 20px;
  position: absolute;
  top: 0px;
  left: 1px;
}

.kanji-inside .answersheet-box-flex.first-half-flex { 
  width: 30px;
  position: absolute;
  top: 0px;
  left: 29px;
}

.kanji-inside .answersheet-box-flex.second-half-flex { 
  width: 30px;
  position: absolute;
  top: 0px;
  left: 1px;
}

.yomi-but-wide .answersheet-box-flex.first-half-flex { 
  width: 27px;
  position: absolute;
  top: 0px;
  left: 29px;
}

.yomi-but-wide .answersheet-box-flex.second-half-flex { 
  width: 27px;
  position: absolute;
  top: 0px;
  left: 4px;
}

.answersheet-box-flex div {
  height: 21px;
  align-items: center;
  text-align: center;
  vertical-align: middle;
}

.kanji-inside .answersheet-box-flex div {
  height: 37px;
  line-height: 1.1;
}

.yomi-but-wide .answersheet-box-flex div {
  height: 22px;
}


.split-into-two-kanji {
  transform: scaleX(0.75);
}

.kanji-inside .answersheet-box-flex .split-into-two-kanji-tall {
  transform: scale(0.75, 0.75);
  height: 84px;
  margin-top: -16px;
  margin-bottom: -8px;
  white-space: pre;
}

.kanji-inside .answersheet-box-flex .split-into-two-kanji-tall div {
  display: inline-block;
}

.answersheet-box-flex.first-half-flex div {
  transform: scaleX(0.8);
}

.answersheet-box-flex.second-half-flex div {
  transform: scaleX(0.8);
}

.kanji-inside .answersheet-box-flex.first-half-flex div {
  transform: scaleX(0.75);
}

.kanji-inside .answersheet-box-flex.first-half-flex.two-total-kanji-pressout div {
  transform: scaleX(0.75) scaleY(0.7) translate(1px, -2px);
}

.kanji-inside .answersheet-box-flex.second-half-flex div {
  transform: scaleX(0.75);
}

.yomi-but-wide .answersheet-box-flex.first-half-flex div {
  transform: scaleX(0.9);
}

.yomi-but-wide .answersheet-box-flex.second-half-flex div {
  transform: scaleX(0.9);
}

.answersheet-box-flex.three-or-more {
  height: 110px;
  padding-top: 12px;
  padding-bottom: 12px;
  justify-content: space-between;
}

.kanji-inside .answersheet-box-flex .in-paren {
  transform: translate(1px, -4px);
  font-size: 28px;
  height: 45px;
  width: 37px;
  display: block;
  overflow: visible;
  white-space: nowrap;
  vertical-align: middle;
}

.kanji-inside .answersheet-box-flex .in-paren.but-down-left {
  transform: translate(-1px, 5px);
}

.kanji-inside .answersheet-box-flex.three-total-kanji-with-two-paren .in-paren {
  height: 100px;
  margin-top: -7px;
  margin-bottom: -12px;
}

.kanji-inside .answersheet-box-flex.four-total-kanji-with-three-paren .in-paren {
  height: 95px;
  margin-top: -4px;
  margin-bottom: -2px;
  transform: translate(0px, -4px);
}

.shift-right {
  font-size: 26px;
  display: inline !important;
}

.shift-left {
  display: inline-block;
  margin: -4px;
  transform: translate(-4px, 0px);
}

.four-total-kanji-with-three-paren .shift-left {
  transform: translate(-3px, 3px) scaleY(0.8) !important;
}

.kanji-inside .answersheet-box-flex.first-half-flex .in-paren {
  transform: scaleX(1) translate(1px, -4px);
}

.kanji-inside .answersheet-box-flex.second-half-flex .in-paren {
  transform: scaleX(1) translate(1px, -4px);
}

.kanji-inside .answersheet-box-flex.first-half-flex .shift-left {
  transform: scaleX(0.9) translate(-4px, 0px);
}

.kanji-inside .answersheet-box-flex.second-half-flex .shift-left {
  transform: scaleX(0.9) translate(-4px, 0px);
}

.kanji-inside .answersheet-box-flex .split-into-two-kanji-tall .shift-left {
  font-size: 30px;
  transform: scaleX(1) translate(-4px, 0px);
  margin-top: -2px;
  margin-bottom: -1px;
}

.kanji-inside .answersheet-box-flex.first-half-flex .shift-right {
  font-size: 22px;
}

.kanji-inside .answersheet-box-flex.second-half-flex .shift-right {
  font-size: 22px;
}

.answersheet-box-flex.two-total-kanji-with-paren {
  height: 100px;
  padding-top: 17px;
  padding-bottom: 17px;
  justify-content: space-evenly;
}

.answersheet-box-flex.first-half-flex.two-total-kanji-with-paren {
  height: 100px;
  padding-top: 17px;
  padding-bottom: 17px;
  justify-content: space-evenly;
}

.answersheet-box-flex.second-half-flex.two-total-kanji-with-paren {
  height: 100px;
  padding-top: 17px;
  padding-bottom: 17px;
  justify-content: space-evenly;
}

.answersheet-box-flex.three-total-kanji-with-two-paren {
  height: 124px;
  padding-top: 5px;
  padding-bottom: 5px;
  justify-content: space-evenly;
}

.answersheet-box-flex.one-higherlevel-kanji {
  height: 130px;
  padding-top: 4px;
  padding-bottom: 0px;
  justify-content: space-evenly;
}

.goji-boxes .answersheet-box-flex.one-higherlevel-kanji {
  height: 59px;
  padding-top: 8px;
  padding-bottom: 0px;
  justify-content: space-evenly;
}

.answersheet-box-flex.two-higherlevel-kanji {
  height: 107px;
  padding-top: 17px;
  padding-bottom: 10px;
  justify-content: space-evenly;
}

.answersheet-box-flex.three-higherlevel-kanji {
  height: 120px;
  padding-top: 7px;
  padding-bottom: 7px;
  justify-content: space-evenly;
}

.answersheet-box-flex.three-higherlevel-kanji .in-paren {
  height: 120px;
  margin-top: 5px;
  margin-bottom: -5px;
}

.answersheet-box-flex.two-total-kanji-pressout {
  height: 102px;
  padding-top: 16px;
  padding-bottom: 16px;
  justify-content: space-between;
}

.goji-boxes .two-total-kanji-pressout {
  height: 67px;
  padding-top: 0px;
  padding-bottom: 0px;
  justify-content: space-between;
}

.answersheet-box-flex.three-total-kanji {
  height: 110px;
  padding-top: 12px;
  padding-bottom: 12px;
  justify-content: space-between;
}

.answersheet-box-flex.three-total-kanji-with-paren {
  height: 122px;
  padding-top: 6px;
  padding-bottom: 6px;
  justify-content: space-between;
}

.answersheet-box-flex.four-total-kanji {
  height: 122px;
  padding-top: 6px;
  padding-bottom: 6px;
  justify-content: space-between;
}

.answersheet-box-flex.four-total-kanji-with-three-paren {
  height: 122px;
  padding-top: 6px;
  padding-bottom: 6px;
  justify-content: space-between;
}

.answersheet-box-flex.four-total-kanji div {
  height: 30px;
  transform: scaleY(0.9);
  transform-origin: top;
}

.answersheet-box-flex.four-total-kanji-with-three-paren div {
  height: 30px;
  transform: scaleY(0.8);
  transform-origin: top;
}

.kanji-inside .answersheet-box-flex.first-half-flex.four-total-kanji div {
  transform: scaleX(0.75) scaleY(0.9);
}

.kanji-inside .answersheet-box-flex.second-half-flex.four-total-kanji div {
  transform: scaleX(0.75) scaleY(0.9);
}

.kanji-inside .answersheet-box-flex.first-half-flex.four-total-kanji.room-for-dot div {
  height: 26px;
  transform: scaleX(0.75) scaleY(0.7);
}

.kanji-inside .answersheet-box-flex.second-half-flex.four-total-kanji.room-for-dot div {
  height: 26px;
  transform: scaleX(0.75) scaleY(0.7);
}

.extra-bottom .answersheet-box-flex.three-or-more {
  height: 103px;
  padding-top: 3px;
  padding-bottom: 3px;
  justify-content: space-between;
}

.extra-bottom .answersheet-box-flex.five-chars div {
  height: 20px;
  transform: scaleY(0.95);
  transform-origin: top;
}

.yomi-but-wide .answersheet-box-flex.five-chars div {
  height: 20px;
  transform: scaleY(0.95);
  transform-origin: top;
}

.answersheet-box-flex.six-chars {
  height: 108px;
  padding-top: 12px;
  padding-bottom: 14px;
  justify-content: space-between;
}

.extra-bottom .answersheet-box-flex.six-chars {
  height: 102px;
  padding-top: 3px;
  padding-bottom: 4px;
  justify-content: space-between;
}

.answersheet-box-flex.six-chars div {
  height: 17px;
  transform: scaleY(0.95);
  transform-origin: top;
}

.extra-bottom .answersheet-box-flex.six-chars div {
  height: 17px;
  transform: scaleY(0.85);
  transform-origin: top;
}

.yomi-but-wide .answersheet-box-flex.six-chars div {
  height: 17px;
  transform: scaleY(0.87);
  transform-origin: top;
}

.answersheet-box-flex.seven-chars {
  height: 108px;
  padding-top: 12px;
  padding-bottom: 14px;
  justify-content: space-between;
}

.extra-bottom .answersheet-box-flex.seven-chars {
  height: 103px;
  padding-top: 3px;
  padding-bottom: 3px;
  justify-content: space-between;
}

.answersheet-box-flex.seven-chars div {
  height: 15px;
  transform: scaleY(0.75);
  transform-origin: top;
}

.extra-bottom .answersheet-box-flex.seven-chars div {
  height: 14px;
  transform: scaleY(0.65);
  transform-origin: top;
}

.yomi-but-wide .answersheet-box-flex.seven-chars div {
  height: 13px;
  transform: scaleY(0.7);
  transform-origin: top;
}

.answersheet-box-flex.eight-chars {
  height: 108px;
  padding-top: 12px;
  padding-bottom: 14px;
  justify-content: space-between;
}

.extra-bottom .answersheet-box-flex.eight-chars {
  height: 103px;
  padding-top: 3px;
  padding-bottom: 3px;
  justify-content: space-between;
}

.answersheet-box-flex.eight-chars div {
  height: 13px;
  transform: scaleY(0.65);
  transform-origin: top;
}

.yomi-but-wide .answersheet-box-flex.eight-chars div {
  height: 13px;
  transform: scaleY(0.7);
  transform-origin: top;
}

.answersheet-box-flex.nine-chars {
  height: 108px;
  padding-top: 12px;
  padding-bottom: 14px;
  justify-content: space-between;
}

.extra-bottom .answersheet-box-flex.nine-chars {
  height: 103px;
  padding-top: 3px;
  padding-bottom: 3px;
  justify-content: space-between;
}

.answersheet-box-flex.nine-chars div {
  height: 11px;
  transform: scaleY(0.55);
  transform-origin: top;
}

.yomi-but-wide .answersheet-box-flex.nine-chars div {
  height: 10px;
  transform: scaleY(0.55);
  transform-origin: top;
}

.answersheet-box-flex.first-half-flex.six-chars div {
  transform: scaleX(0.8) scaleY(0.9);
}

.answersheet-box-flex.first-half-flex.seven-chars div {
  transform: scaleX(0.8) scaleY(0.75);
}

.answersheet-box-flex.first-half-flex.eight-chars div {
  transform: scaleX(0.8) scaleY(0.65);
}

.answersheet-box-flex.first-half-flex.nine-chars div {
  transform: scaleX(0.8) scaleY(0.55);
}

.extra-bottom .answersheet-box-flex.first-half-flex.five-chars div {
  transform: scaleX(0.8) scaleY(0.95);
}

.extra-bottom .answersheet-box-flex.first-half-flex.six-chars div {
  transform: scaleX(0.8) scaleY(0.85);
}

.extra-bottom .answersheet-box-flex.first-half-flex.seven-chars div {
  transform: scaleX(0.8) scaleY(0.65);
}

.extra-bottom .answersheet-box-flex.first-half-flex.eight-chars div {
  transform: scaleX(0.8) scaleY(0.65);
}

.extra-bottom .answersheet-box-flex.first-half-flex.nine-chars div {
  transform: scaleX(0.8) scaleY(0.55);
}

.yomi-but-wide .answersheet-box-flex.first-half-flex.five-chars div {
  transform: scaleX(0.9) scaleY(0.95);
}

.yomi-but-wide .answersheet-box-flex.first-half-flex.six-chars div {
  transform: scaleX(0.9) scaleY(0.87);
}

.yomi-but-wide .answersheet-box-flex.first-half-flex.seven-chars div {
  transform: scaleX(0.9) scaleY(0.7);
}

.yomi-but-wide .answersheet-box-flex.first-half-flex.eight-chars div {
  transform: scaleX(0.9) scaleY(0.7);
}

.yomi-but-wide .answersheet-box-flex.first-half-flex.nine-chars div {
  transform: scaleX(0.9) scaleY(0.55);
}

.answersheet-box-flex.second-half-flex.six-chars div {
  transform: scaleX(0.8) scaleY(0.9);
}

.answersheet-box-flex.second-half-flex.seven-chars div {
  transform: scaleX(0.8) scaleY(0.75);
}

.answersheet-box-flex.second-half-flex.eight-chars div {
  transform: scaleX(0.8) scaleY(0.65);
}

.answersheet-box-flex.second-half-flex.nine-chars div {
  transform: scaleX(0.8) scaleY(0.55);
}

.extra-bottom .answersheet-box-flex.second-half-flex.five-chars div {
  transform: scaleX(0.8) scaleY(0.95);
}

.extra-bottom .answersheet-box-flex.second-half-flex.six-chars div {
  transform: scaleX(0.8) scaleY(0.85);
}

.extra-bottom .answersheet-box-flex.second-half-flex.seven-chars div {
  transform: scaleX(0.8) scaleY(0.65);
}

.extra-bottom .answersheet-box-flex.second-half-flex.eight-chars div {
  transform: scaleX(0.8) scaleY(0.65);
}

.extra-bottom .answersheet-box-flex.second-half-flex.nine-chars div {
  transform: scaleX(0.8) scaleY(0.55);
}

.yomi-but-wide .answersheet-box-flex.second-half-flex.five-chars div {
  transform: scaleX(0.9) scaleY(0.95);
}

.yomi-but-wide .answersheet-box-flex.second-half-flex.six-chars div {
  transform: scaleX(0.9) scaleY(0.87);
}

.yomi-but-wide .answersheet-box-flex.second-half-flex.seven-chars div {
  transform: scaleX(0.9) scaleY(0.7);
}

.yomi-but-wide .answersheet-box-flex.second-half-flex.eight-chars div {
  transform: scaleX(0.9) scaleY(0.7);
}

.yomi-but-wide .answersheet-box-flex.second-half-flex.nine-chars div {
  transform: scaleX(0.9) scaleY(0.55);
}

.answer-header {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 6px;
  font-family: "ヒラギノ角ゴ Pro W3","Hiragino Kaku Gothic Pro","メイリオ",Meiryo,"ＭＳ Ｐゴシック",sans-serif;
  font-size: 20px;
  writing-mode: vertical-rl;
  font-weight: 600;
  margin-left: 8px;
  margin-top: 1px;
  line-height: 1;
}

.answer-header-three {
  margin-left: -2px;
}

.squish-header {
  transform: scaleX(0.8);
  height: 150px;
}

.paren-centered {
  writing-mode: horizontal-tb;
  text-align: center;
}

.answercard-row {
  height: 161px;
  margin-left: 10px;
  margin-bottom: 36px;
  display: flex;
  flex-direction: row-reverse;
  justify-content: end;
  flex-shrink: 0;
}

.answercard-container {
  flex-shrink: 0;
}

.answercard {
    display: flex;
    position: relative;
    flex-direction: row-reverse;
    align-items: start;
    font-family: 'Noto Serif CJK JP', "ヒラギノ明朝 ProN W6", "HiraMinProN-W6", "HG明朝E", "ＭＳ Ｐ明朝", "MS PMincho", "MS 明朝", serif;
    font-size: 20px;
    text-align: left;
    flex-grow: 0;
    flex-shrink: 0;
}

.grow-once {
    margin-right: 20px;
}

.grow-once-half {
    margin-right: 34px;
}

.grow-twice {
    margin-right: 54px;
}

.answer-big-points { 
  position: absolute;
  text-align: center;
  bottom: 4px;
  right: -22px;
  width: 64px;
  font-size: 16px;
  writing-mode: horizontal-tb;
  font-weight: 200;
  line-height: 0.85;
}

.answer-small-points { 
  font-family: "ヒラギノ角ゴ Pro W3","Hiragino Kaku Gothic Pro","メイリオ",Meiryo,"ＭＳ Ｐゴシック",sans-serif;
  font-size: 11px;
  font-weight: 700;
  position: absolute;
  text-align: center;
  bottom: -13px;
  right: 16px;
  width: 64px;
  writing-mode: horizontal-tb;
  line-height: 0.85;
}

.answer-subquestion .answer-small-points {
  bottom: -23px;
  right: 21px;
}

.answer-header-three.answer-big-points {
  right: -12px;
}

.answer-header-three.answer-small-points {
  right: 26px;
}

.answer-subquestion { 
  display: flex;
  position: relative;
  flex-direction: row;
  align-items: stretch;
  gap: 8px;
  height: 143px;
  font-family: "ヒラギノ角ゴ Pro W3","Hiragino Kaku Gothic Pro","メイリオ",Meiryo,"ＭＳ Ｐゴシック",sans-serif;
  font-size: 20px;
  writing-mode: vertical-rl;
  font-weight: 600;
  margin: 8px;
  margin-right: 8px;
  line-height: 1;
}

.answer-subquestion.first-subquestion { 
  margin-right: 4px;
}

.answer-subquestion .subquestion-text {
  font-size: 19px;
  margin-right: 4px;
  margin-bottom: -8px;
}

.squish-title {
  letter-spacing: 2px;
  transform: scaleY(0.73);
  margin-bottom: -30px;
  transform-origin: top;
}

.squish-title-2 {
  letter-spacing: 2px;
  transform: scaleY(0.69);
  margin-bottom: -26px;
  transform-origin: top;
}

.visibility-hidden {
  visibility: hidden;
}

.shift-up-after-hidden {
  margin-top: -36px;
  font-size: 20px !important;
}

.split-into-two-kanji-tall.shift-up {
  margin-top: -18px !important;
  margin-bottom: 0px !important;
}

.shift-down {
  transform: translate(0px, 10px);
}

.squish-ruby3 {
  display: inline-block;
  text-align: center;
  height: 21px;
  width: 10px;
  transform-origin: top right;
  transform: scaleY(0.72) scaleX(1);
  font-weight: 500;
  vertical-align: middle;
}

.squish-ruby4 {
  display: inline-block;
  text-align: center;
  height: 21px;
  width: 10px;
  transform-origin: top right;
  transform: scaleY(0.57) scaleX(1);
  font-weight: 500;
  margin-top: -3px;
  margin-bottom: -1px;
  vertical-align: middle;
}

.squish-ruby5 {
  display: inline-block;
  text-align: center;
  height: 21px;
  width: 10px;
  transform-origin: top right;
  transform: scaleY(0.7) scaleX(1);
  font-weight: 500;
  margin-top: -13px;
  vertical-align: middle;
}

.squish-ruby5b {
  display: inline-block;
  text-align: center;
  height: 42px;
  width: 10px;
  transform-origin: top right;
  transform: scaleY(0.9) scaleX(1);
  font-weight: 500;
  margin-top: -1px;
  margin-bottom: -1px;
  vertical-align: middle;
}

.bunshou .squish-ruby3 {
  height: 20px;
}

.bunshou .squish-ruby4 {
  height: 20px;
}

.bunshou .squish-ruby5 {
  height: 20px;
}

.bunshou .squish-ruby5b {
  height: 40px;
}

.jis78 {
  font-variant-east-asian: jis78;
}

/* Kanji not in Unicode */
.composite-kanji {
  position: relative;
  display: inline-block;
  width: 0.93em;
  height: 1.0em;
  /* border: 1px solid black; */
  overflow: visible;
  white-space: nowrap;
  vertical-align: 0px;
}

.squish-left {
  display: inline-block;
  position: absolute;
  width: 0px;
  left: 100%;
  top: 0%;
  transform-origin: center;
  transform: scaleX(0.78);
  font-weight: 500;
}

.squish-right {
  display: inline-block;
  position: absolute;
  width: 0px;
  left: 120%;
  top: 0%;
  transform-origin: center;
  transform: scaleX(0.635);
  font-weight: 600;
}

.sakana > .squish-left {
  left: 51%;
  transform: scaleX(0.45);
  font-weight: 600;
}

.sakana > .squish-right {
  left: 105%;
  transform: scaleX(0.52);
  font-weight: 600;
}

.sakana.aosaba > .squish-right {
  left: 105%;
  transform: scaleX(0.52);
  font-weight: 500;
}
