body.kqo-exam-page #inner-content{display:block!important;max-width:1180px!important;margin-left:auto!important;margin-right:auto!important;padding-left:18px!important;padding-right:18px!important}
body.kqo-exam-page #main{width:100%!important;max-width:none!important;float:none!important;margin:0 auto!important}
body.kqo-exam-page #sidebar1{display:none!important}
body.kqo-exam-page article.article{width:100%!important;max-width:none!important;float:none!important}
/* Keep the 16:9 HTML/CSS eyecatch visible on the mock-exam page too. */
body.kqo-exam-page .article-header figure.eyecatch:has(.kq-auto-eyecatch-shell){
  display:block!important;
  visibility:visible!important;
  opacity:1!important;
  position:relative!important;
  width:100%!important;
  max-width:960px!important;
  height:auto!important;
  margin:18px auto 26px!important;
  padding:0!important;
  overflow:hidden!important;
  float:none!important;
}
body.kqo-exam-page .article-header figure.eyecatch .kq-auto-eyecatch-shell{
  display:block!important;
  width:100%!important;
  aspect-ratio:16/9!important;
}
@media(max-width:640px){
  body.kqo-exam-page .article-header figure.eyecatch:has(.kq-auto-eyecatch-shell){
    margin:14px auto 20px!important;
  }
}
body.kqo-exam-page .article-header,
body.kqo-exam-page .entry-content,
body.kqo-exam-page #single_foot{max-width:1080px;margin-left:auto!important;margin-right:auto!important}
body.kqo-exam-page .entry-content{font-size:17px;line-height:1.85;color:#222}
body.kqo-exam-page .entry-content a,
body.kqo-exam-page .entry-content a:visited{color:#174a78!important}
body.kqo-exam-page #breadcrumb,
body.kqo-exam-page #breadcrumb a,
body.kqo-exam-page #breadcrumb span{color:#333!important}
body.kqo-exam-page #toc_container,
body.kqo-exam-page #toc_container a{color:#2f3438!important}
body.kqo-exam-page .entry-content>p a{color:#174a78!important;text-decoration-thickness:1px;text-underline-offset:2px}
body.kqo-exam-page .entry-content>.kqo{max-width:1040px}
.kqo{max-width:1040px;margin:32px auto;font-family:inherit;color:#171717}
.kqo *{box-sizing:border-box}
.kqo-shell{border:1px solid #dfe3e8;border-radius:22px;background:#fff;padding:28px}
.kqo-eyebrow{font-size:12px;font-weight:900;letter-spacing:.08em;color:#555;margin:0 0 8px}
.kqo h2{font-size:38px;line-height:1.3;margin:0 0 18px;font-weight:900;letter-spacing:.01em}
.kqo-facts{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0 16px}
.kqo-facts span{background:#f4f5f7;border-radius:999px;padding:10px 14px;font-size:16px;font-weight:850}
.kqo-intro-note{margin:12px 0 0!important;color:#444;font-size:15px!important;line-height:1.7!important}
.kqo-format-details{margin-top:14px;border-top:1px solid #eceff2;padding-top:10px}
.kqo-format-details>summary{cursor:pointer;color:#4b535b;font-size:14px;font-weight:850}
.kqo-format-details[open]>summary{margin-bottom:10px}
.kqo-source-note{font-size:14px;line-height:1.7;color:#555}
.kqo-official-links{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0 0}
.kqo-official-links a{display:inline-flex;align-items:center;min-height:42px;padding:9px 12px;border:1px solid #dfe3e8;border-radius:999px;background:#fff;color:#222;text-decoration:none;font-size:14px;font-weight:800;touch-action:manipulation}
.kqo-official-links a:hover{text-decoration:underline}
.kqo-score-breakdown{margin:10px 0 14px;padding:14px;border:1px solid #dfe3e8;border-radius:14px;background:#fafbfc}
.kqo-score-breakdown>strong{display:block;margin-bottom:14px;font-size:19px;line-height:1.5}
.kqo-score-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.kqo-score-cell{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:14px 16px;border-radius:12px;background:#fff;border:1px solid #e5e9ee;font-size:16px;line-height:1.5}
.kqo-score-cell b{white-space:nowrap;font-size:17px;font-weight:900}
.kqo button{appearance:none;border:0;border-radius:14px;padding:14px 18px;min-height:44px;font-size:16px;font-weight:850;cursor:pointer;touch-action:manipulation}
.kqo-start,.kqo-restart,.kqo-submit-top{background:#111;color:#fff}
.kqo-start,.kqo-restart{width:100%;margin-top:18px}
.kqo-result-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:12px}
.kqo .kqo-result-action{display:flex;align-items:center;justify-content:center;min-height:52px;padding:12px 16px;border:2px solid #111;border-radius:14px;background:#fff;color:#111!important;font-size:15px;font-weight:900;line-height:1.4;text-align:center;text-decoration:none!important;transition:transform .15s ease,box-shadow .15s ease,background .15s ease}
.kqo .kqo-result-action:hover{background:#f7f8fa;transform:translateY(-1px)}
.kqo .kqo-result-action--dashboard{background:#ffd52a;color:#111!important;box-shadow:0 3px 0 #111}
.kqo .kqo-result-action--dashboard:hover{background:#ffe36b;box-shadow:0 4px 0 #111}
.kqo-intro>p:not(.kqo-source-note):not(.kqo-official-links){font-size:17px;line-height:1.85}
.kqo-start{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;background:#ffd52a!important;color:#111!important;border:2px solid #111!important;padding:18px 20px!important;box-shadow:0 5px 0 #111;transition:transform .15s ease,box-shadow .15s ease,background .15s ease}
.kqo-start:hover{background:#ffe36b!important;transform:translateY(-1px);box-shadow:0 6px 0 #111}
.kqo-start:active{transform:translateY(3px);box-shadow:0 2px 0 #111}
.kqo:not(.is-ready) .kqo-start:disabled{opacity:1;cursor:progress;position:relative}
.kqo:not(.is-ready):not(.is-error) .kqo-start:disabled::after{
  content:"模試を準備しています…";
  position:absolute;inset:0;z-index:1;
  display:flex;align-items:center;justify-content:center;
  border-radius:12px;background:#ffd52a;color:#111;
  font-size:17px;font-weight:900;line-height:1.4;text-align:center;
}
.kqo-runtime-error{margin:16px 0;padding:16px 18px;border:2px solid #b42318;border-radius:12px;background:#fff3f2;color:#5a1a16;line-height:1.7}
.kqo-runtime-error strong{display:block;font-size:17px;margin-bottom:4px}
.kqo-runtime-error p{margin:0 0 8px}
.kqo-runtime-error a{font-weight:850;color:#7a271a!important;text-decoration:underline}
.kqo-loading-status{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip-path:inset(50%)!important;white-space:nowrap!important;border:0!important;padding:0!important;margin:0!important}
.kqo-start-main{font-size:22px;font-weight:950;line-height:1.35}
.kqo-start-sub{font-size:13px;font-weight:850;line-height:1.4;color:#333;letter-spacing:.02em}
.kqo-sticky{position:sticky;top:0;z-index:20;display:grid;grid-template-columns:1fr auto auto auto;gap:10px;align-items:center;background:#fff;padding:12px 0 14px;border-bottom:1px solid #e8eaed}
.kqo-timer span{display:block;font-size:12px;font-weight:800}
.kqo-timer strong{font-size:24px}
.kqo-position,.kqo-unanswered{font-size:14px;font-weight:850}
.kqo-section{
  display:inline-flex;
  align-items:center;
  min-height:34px;
  margin:20px 0 8px;
  padding:6px 11px;
  border:2px solid #111;
  border-radius:999px;
  background:#fff;
  color:#111;
  font-size:15px;
  font-weight:950;
  line-height:1.25;
}
.kqo-instruction{
  margin-top:2px;
  padding:13px 15px;
  border-left:5px solid #ffd52a;
  border-radius:10px;
  background:#f7f8fa;
  color:#222;
  font-size:16px;
  font-weight:750;
  line-height:1.75;
}
.kqo-progress{height:8px;background:#eceff2;border-radius:999px;overflow:hidden;margin-top:12px}
.kqo-progress span{display:block;height:100%;background:#111;width:0}
.kqo-card{padding:24px 0 10px}
.kqo-question-no{font-size:15px;font-weight:950;color:#333;margin-bottom:9px}
.kqo-prompt{font-size:31px;font-weight:850;line-height:1.65;letter-spacing:.01em}
.kqo-underline{display:inline-block;border-bottom:4px solid #111;line-height:1.15;padding-bottom:2px}
.kqo-target-note{font-size:14px;margin-top:8px}
.kqo-word-large,.kqo-kanji-large{font-size:58px;font-weight:900;line-height:1.2;text-align:center;padding:18px 0}
.kqo-answer-area{margin-top:18px}
.kqo-field{display:block;margin:10px 0}
.kqo-field>span{display:block;font-size:13px;font-weight:900;margin:0 0 6px}
.kqo-input{width:100%;min-width:0;border:2px solid #cfd5dc;border-radius:10px;padding:15px 16px;font-size:21px;line-height:1.4;outline:none;background:#fff}
.kqo-answer-area>.kqo-field{max-width:460px}
.kqo-input:focus{border-color:#111;box-shadow:0 0 0 3px rgba(17,17,17,.08)}
.kqo button:focus-visible,.kqo a:focus-visible,.kqo summary:focus-visible{outline:3px solid #111;outline-offset:3px}
.kqo-sticky>*{min-width:0}
.kqo-two-inputs{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.kqo-choice-box{margin:16px 0}
.kqo-choice-box>strong{display:block;margin-bottom:8px}
.kqo-choice-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.kqo-choice{min-width:0;border:2px solid #d9dee4;background:#fff;color:#111;text-align:left;display:flex;gap:10px;align-items:center;overflow-wrap:anywhere}
.kqo-choice.is-selected{background:#111;color:#fff;border-color:#111}
.kqo-choice-key{display:inline-flex;min-width:30px;height:30px;border-radius:50%;align-items:center;justify-content:center;background:#f1f2f4;color:#111;font-weight:900}
.kqo-choice.is-selected .kqo-choice-key{background:#fff}
.kqo-shared-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:16px 0}
.kqo-shared-choices span{min-width:0;background:#f6f7f9;border-radius:10px;padding:10px 12px;overflow-wrap:anywhere}
.kqo-kana-bank{
  position:sticky;
  top:82px;
  z-index:18;
  margin:16px 0;
  padding:12px 14px;
  border:2px solid #111;
  border-radius:12px;
  background:rgba(255,253,238,.98);
  box-shadow:0 8px 22px rgba(17,17,17,.12);
  backdrop-filter:blur(8px)
}
.kqo-kana-bank>strong{display:block;margin-bottom:8px;font-size:13px}
.kqo-kana-bank>div{display:flex;flex-wrap:wrap;gap:7px}
.kqo-kana-bank span{display:inline-flex;padding:6px 9px;border-radius:999px;background:#fff;border:1px solid #d8d0a8;font-weight:800}
.kqo-pair-choices{grid-template-columns:repeat(5,minmax(0,1fr))}
.kqo-stroke-wrap{display:flex;align-items:center;justify-content:center;gap:22px}
.kqo-stroke-svg{width:190px;height:190px}
.kqo-stroke-svg .kqo-grid-bg{fill:#fff;stroke:#dfe3e8}
.kqo-stroke-svg line{stroke:#777;stroke-width:5;stroke-linecap:round}
.kqo-stroke-svg line.is-highlight{stroke:#111;stroke-width:11}
.kqo-kanji-label{font-size:64px;font-weight:900}
.kqo-nav{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:22px}
.kqo-prev{background:#fff;color:#222;border:2px solid #d9dee4}
.kqo-prev:disabled{opacity:.35;cursor:not-allowed}
.kqo-next{background:#111;color:#fff}
.kqo-list-wrap{margin-top:24px;border-top:1px solid #e8eaed;padding-top:12px}
.kqo-list-wrap summary{font-size:16px;font-weight:850;cursor:pointer}
.kqo-list{display:grid;grid-template-columns:repeat(10,1fr);gap:6px;margin-top:12px}
.kqo-list-btn{min-width:0;min-height:44px;padding:8px 4px!important;background:#f1f2f4!important;color:#222!important;font-size:12px!important}
.kqo-list-btn.is-done{background:#dff3e6!important}
.kqo-list-btn.is-current{outline:2px solid #111}
.kqo-result-kicker{font-size:13px;font-weight:900;color:#555}
.kqo-score{font-size:31px;margin:4px 0}
.kqo-judge{font-size:17px;font-weight:800}
.kqo-sec-row{display:grid;grid-template-columns:1fr auto auto;gap:10px;padding:12px 0;border-bottom:1px solid #eee}
.kqo-review-item{border:1px solid #ead7d7;background:#fff8f8;border-radius:13px;padding:14px 16px;margin:10px 0}
.kqo-review-item.is-correct{border-color:#d7e8dc;background:#f7fbf8}
.kqo-review-item.is-wrong{border-color:#ead7d7;background:#fff8f8}
.kqo-review-item p{margin:6px 0}
.kqo-review-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
.kqo-result-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  min-height:38px;
  border:2px solid #c84c42;
  border-radius:999px;
  background:#fff1ef;
  color:#922e27;
  padding:7px 13px;
  font-size:15px;
  font-weight:950;
  line-height:1.2;
}
.kqo-result-badge::before{
  content:"×";
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:22px;
  height:22px;
  border-radius:50%;
  background:#c84c42;
  color:#fff;
  font-size:15px;
  line-height:1;
}
.kqo-review-item.is-correct .kqo-result-badge{
  border-color:#23834f;
  background:#edf9f1;
  color:#16653b;
}
.kqo-review-item.is-correct .kqo-result-badge::before{
  content:"✓";
  background:#23834f;
}
.kqo-review-question{font-weight:800}
.kqo-answer-row{display:flex;flex-wrap:wrap;gap:8px 16px;margin:8px 0;padding:8px 10px;border-radius:9px;background:rgba(255,255,255,.72)}
.kqo-answer-row>strong{width:100%;font-size:13px}
.kqo-error-pair{display:grid;grid-template-columns:1fr auto 1fr;gap:12px;align-items:end}
.kqo-error-arrow{font-size:26px;font-weight:900;padding-bottom:15px}
.kqo-all-review{margin-top:22px;border:1px solid #dfe3e8;border-radius:14px;padding:13px 15px;background:#fafbfc}
.kqo-all-review>summary{cursor:pointer;font-size:16px;font-weight:900}
.kqo-all-review-list{margin-top:12px}
.kqo-hint{margin-top:16px;border:1px solid #dfe3e8;border-radius:12px;background:#fafbfc;padding:10px 14px}
.kqo-hint summary{cursor:pointer;font-weight:850}
.kqo-hint p{margin:10px 0 2px;line-height:1.7;color:#444}
.kqo-explanation{margin-top:10px;padding:12px 14px;border-radius:10px;background:#f3f6f8;border-left:4px solid #111}
.kqo-explanation>strong{display:block;margin-bottom:4px}
.kqo-explanation p{margin:0;line-height:1.7}
.kqo-error{padding:18px;border:1px solid #e0c6c6;background:#fff8f8;border-radius:14px}
.kqo-passages{display:grid;gap:18px;margin:6px 0 20px}
.kqo-passage-block{border:1px solid #dfe3e8;border-radius:14px;background:#fff;padding:18px 20px}
.kqo-passage-label{display:inline-flex;align-items:center;justify-content:center;min-width:34px;height:34px;border-radius:8px;background:#111;color:#fff;font-size:16px;font-weight:900;margin-bottom:10px}
.kqo-passage-block p{margin:0;font-size:18px;line-height:2.05;letter-spacing:.015em}
.kqo-passage-mark{display:inline;white-space:normal}
.kqo-passage-mark sup{display:inline-flex;align-items:center;justify-content:center;min-width:20px;height:20px;border-radius:50%;background:#111;color:#fff;font-size:11px;font-weight:900;vertical-align:super;margin:0 2px 0 3px}
.kqo-passage-mark.is-write .kqo-underline{border-bottom-style:double}
.kqo-passage-mark.is-read .kqo-underline{border-bottom:0;text-decoration-line:underline;text-decoration-style:wavy;text-decoration-thickness:1.5px;text-underline-offset:4px}
.kqo-passage-answers{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 14px}
.kqo-passage-answers .kqo-field{margin:0}
.kqo-passage-answers .kqo-field>span{font-size:14px}
.kqo-passage-answers .kqo-input{font-size:19px;padding:13px 14px}
.kqo-group-label{display:inline-flex;align-items:center;border:1px solid #dfe3e8;border-radius:999px;background:#f7f8fa;padding:6px 10px;margin-bottom:10px;font-size:13px;font-weight:900}
.kqo-same-pair{display:grid;gap:12px}
.kqo-same-row{display:grid;grid-template-columns:auto 1fr;gap:12px;align-items:start;border:1px solid #e1e5e9;border-radius:13px;padding:14px 16px;background:#fff}
.kqo-same-no{display:inline-flex;align-items:center;justify-content:center;min-width:30px;height:30px;border-radius:50%;background:#111;color:#fff;font-size:13px;font-weight:900}
.kqo-same-row .kqo-prompt{font-size:24px;line-height:1.65}
.kqo-same-answers{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.kqo-same-answers .kqo-field{margin:0}
.kqo-group-choices{grid-template-columns:repeat(5,minmax(0,1fr));margin-top:0}
.kqo-choice-group-prompts{display:grid;gap:10px;margin-top:14px}
.kqo-choice-group-answers{display:grid;gap:10px}
.kqo-choice-group-answer{border:1px solid #e1e5e9;border-radius:12px;padding:12px 14px;background:#fafbfc}
.kqo-choice-group-answer>strong{display:block;margin-bottom:8px;font-size:14px}
.kqo-key-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px}
.kqo-key-only{justify-content:center;padding:10px!important}
.kqo-key-only .kqo-choice-key{margin:0}
.kqo-sentence-write{font-size:22px;line-height:1.85}
.kqo-fill-reading{display:grid;grid-template-columns:minmax(120px,.7fr) minmax(180px,1.3fr);gap:18px;align-items:center;border:1px solid #e1e5e9;border-radius:14px;padding:18px;background:#fff}
.kqo-fill-reading .kqo-word-large{margin:0}
.kqo-fill-pattern{font-size:28px;font-weight:850;letter-spacing:.08em;line-height:1.7}
.kqo-fill-box{display:inline-flex;align-items:center;justify-content:center;min-width:38px;height:42px;margin:0 3px;border:2px solid #111;border-radius:6px;background:#fff;color:transparent;vertical-align:middle}
.kqo-radical-group{border:1px solid #e1e5e9;border-radius:14px;background:#fff;padding:16px}
.kqo-radical-title{font-size:20px;font-weight:900;margin-bottom:12px}
.kqo-radical-prompts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.kqo-radical-prompts>div{display:flex;align-items:center;gap:10px;border:1px solid #edf0f2;border-radius:10px;padding:11px 12px;background:#fafbfc}
.kqo-radical-fragment{font-size:23px;font-weight:850;letter-spacing:.04em}
.kqo-common-pair{display:grid;gap:12px}
.kqo-common-row{display:grid;grid-template-columns:auto 1fr;gap:12px;align-items:start;border:1px solid #e1e5e9;border-radius:13px;padding:14px 16px;background:#fff}
.kqo-common-label{display:inline-flex;align-items:center;justify-content:center;min-width:32px;height:32px;border-radius:8px;background:#111;color:#fff;font-size:13px;font-weight:900}
.kqo-common-row .kqo-prompt{font-size:23px;line-height:1.75}
.kqo-inline-bundle{display:grid;gap:10px;border:1px solid #dfe3e8;border-radius:14px;background:#fff;padding:18px 20px}
.kqo-inline-bundle p{margin:0;font-size:22px;line-height:2;letter-spacing:.015em}
.kqo-inline-target{display:inline-flex;align-items:flex-end;gap:4px;margin:0 2px;white-space:nowrap}
.kqo-inline-target sup{display:inline-flex;align-items:center;justify-content:center;min-width:20px;height:20px;border-radius:50%;background:#111;color:#fff;font-size:11px;font-weight:900;align-self:flex-start}
.kqo-inline-kana{font-weight:850;border-bottom:2px solid #111;line-height:1.35}
.kqo-inline-answer-box{display:inline-flex;align-items:center;justify-content:center;width:34px;height:38px;border:2px solid #111;border-radius:4px;color:transparent;background:#fff}
.kqo-inline-answer-input{display:inline-block!important;flex:0 0 auto;width:48px!important;min-width:48px!important;height:52px;min-height:52px!important;margin:0 2px;padding:4px!important;border:2px solid #111!important;border-radius:4px!important;background:#fff;text-align:center;font-size:27px!important;font-weight:900;line-height:1!important;vertical-align:middle}
.kqo-inline-answer-input:focus{border-color:#111!important;box-shadow:0 0 0 3px rgba(17,17,17,.12)!important}
.kqo.kqo-grade-10kyu .kqo-inline-answer-input{width:56px!important;min-width:56px!important;height:60px;min-height:60px!important;font-size:31px!important}
.kqo-stroke-end-wrap{display:grid;grid-template-columns:minmax(180px,240px) 1fr;gap:18px;align-items:center;border:1px solid #e1e5e9;border-radius:14px;padding:18px;background:#fff;margin-bottom:14px}
.kqo-stroke-end-side p{margin:4px 0 0;font-size:15px;line-height:1.7;color:#555}
.kqo-stroke-svg .kqo-end-mark{fill:#111;stroke:#fff;stroke-width:2}
.kqo-stroke-glyph{font-family:"Hiragino Mincho ProN","Yu Mincho","Noto Serif JP",serif;font-size:72px;font-weight:500;fill:#111}
.kqo-glyph-marker{fill:#fff;stroke:#111;stroke-width:2.5}
.kqo-grade-10kyu .kqo-input{font-size:26px;min-height:64px;padding:18px}
.kqo-grade-10kyu .kqo-choice{font-size:20px;min-height:60px}
.kqo-grade-10kyu .kqo-inline-bundle p{font-size:24px;line-height:2.05}
.kqo-grade-10kyu .kqo-inline-answer-box{width:40px;height:44px;border-width:3px}
.kqo-grade-7kyu .kqo-prompt,
.kqo-grade-8kyu .kqo-prompt{font-size:23px;line-height:1.8}
.kqo-grade-9kyu .kqo-prompt,
.kqo-grade-10kyu .kqo-prompt{font-size:25px;line-height:1.9}
:is(.kqo-grade-8kyu,.kqo-grade-9kyu,.kqo-grade-10kyu) .kqo-input{font-size:22px;min-height:54px}
:is(.kqo-grade-8kyu,.kqo-grade-9kyu,.kqo-grade-10kyu) .kqo-choice{font-size:18px;min-height:52px}
:is(.kqo-grade-9kyu,.kqo-grade-10kyu) .kqo-word-large{font-size:44px;line-height:1.35}
:is(.kqo-grade-9kyu,.kqo-grade-10kyu) .kqo-kanji-large{font-size:58px;line-height:1.2}
.kqo.kqo-grade-10kyu .kqo-input{font-size:26px;min-height:64px;padding:18px}
.kqo.kqo-grade-10kyu .kqo-choice{font-size:20px;min-height:60px}
@media(min-width:641px) and (max-width:960px){
  body.kqo-exam-page #inner-content{padding-left:14px!important;padding-right:14px!important}
  .kqo{margin:24px auto}
  .kqo-shell{padding:22px}
  .kqo h2{font-size:33px}
  .kqo-score-cell{padding:12px 13px;font-size:15px}
  .kqo-sticky{grid-template-columns:1fr auto auto}
  .kqo-submit-top{grid-column:1/-1}
  .kqo-group-choices{grid-template-columns:repeat(3,minmax(0,1fr))}
  .kqo-pair-choices{grid-template-columns:repeat(3,minmax(0,1fr))}
  .kqo-list{grid-template-columns:repeat(8,1fr)}
  .kqo-passage-block p{font-size:17px;line-height:2}
}
@media(min-width:641px) and (max-width:760px){
  .kqo-pair-choices{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:640px){
  body.kqo-exam-page #inner-content{padding-left:10px!important;padding-right:10px!important}
  .kqo{margin:20px auto}
  .kqo-shell{padding:17px 14px;border-radius:16px}
  .kqo h2{font-size:29px}
  .kqo-score-grid{grid-template-columns:1fr}
  .kqo-score-cell{align-items:flex-start;font-size:15px;padding:13px 14px}
  .kqo-score-cell b{font-size:16px}
  .kqo-start-main{font-size:19px}
  .kqo-start-sub{font-size:12px}
  .kqo-sticky{grid-template-columns:minmax(0,1fr) auto auto;gap:6px}
  .kqo-unanswered{display:block;white-space:nowrap;font-size:12px;font-weight:900;padding:5px 7px;background:#f4f5f7;border-radius:8px}
  .kqo-unanswered strong{font-size:14px}
  .kqo-position{font-size:12px;white-space:nowrap}
  .kqo-submit-top{grid-column:1/-1}
  .kqo-section{font-size:14px;min-height:32px;margin-top:16px}
  .kqo-instruction{padding:11px 12px;font-size:15px;line-height:1.7}
  .kqo-question-no{font-size:14px;margin-bottom:7px}
  .kqo-prompt{font-size:25px;line-height:1.65}
  .kqo-word-large,.kqo-kanji-large{font-size:50px}
  .kqo-choice-grid{grid-template-columns:1fr}
  .kqo-shared-choices{grid-template-columns:1fr}
  .kqo-pair-choices{grid-template-columns:repeat(2,minmax(0,1fr))}
  .kqo-two-inputs{grid-template-columns:1fr 1fr}
  .kqo-error-pair{grid-template-columns:1fr;gap:6px}
  .kqo-error-arrow{justify-self:center;padding:0;transform:rotate(90deg)}
  .kqo-sec-row{grid-template-columns:1fr auto}
  .kqo-sec-row span:last-child{grid-column:1/-1}
  .kqo-stroke-wrap{gap:12px}
  .kqo-stroke-svg{width:145px;height:145px}
  .kqo-kanji-label{font-size:48px}
  .kqo-list{grid-template-columns:repeat(6,1fr)}
  .kqo-passage-block{padding:15px 14px}
  .kqo-passage-block p{font-size:16px;line-height:1.95}
  .kqo-passage-answers{grid-template-columns:1fr}
  .kqo-same-answers{grid-template-columns:1fr}
  .kqo-same-row{padding:12px 13px}
  .kqo-same-row .kqo-prompt{font-size:22px}
  .kqo-group-choices{grid-template-columns:repeat(2,minmax(0,1fr))}
  .kqo-key-grid{grid-template-columns:repeat(5,minmax(0,1fr))}
  .kqo-fill-reading{grid-template-columns:1fr;gap:10px;padding:14px}
  .kqo-fill-pattern{font-size:24px}
  .kqo-radical-prompts{grid-template-columns:1fr}
  .kqo-radical-fragment{font-size:21px}
  .kqo-sentence-write{font-size:22px}
  .kqo-inline-bundle{padding:14px}
  .kqo-inline-bundle p{font-size:21px;line-height:1.9}
  .kqo-inline-answer-box{width:30px;height:34px}
  .kqo-inline-answer-input{width:44px!important;min-width:44px!important;height:48px;min-height:48px!important;font-size:24px!important}
  .kqo.kqo-grade-10kyu .kqo-inline-answer-input{width:50px!important;min-width:50px!important;height:54px;min-height:54px!important;font-size:28px!important}
  .kqo-stroke-end-wrap{grid-template-columns:1fr;padding:14px}
  .kqo.kqo-grade-10kyu .kqo-input{font-size:24px;min-height:60px;padding:16px}
  .kqo.kqo-grade-10kyu .kqo-choice{font-size:19px;min-height:56px}
  .kqo-grade-10kyu .kqo-inline-bundle p{font-size:21px;line-height:2}
  .kqo-grade-10kyu .kqo-inline-answer-box{width:36px;height:40px}
  .kqo-result-actions{grid-template-columns:1fr}
}
@media(max-width:360px){
  .kqo-shell{padding-left:11px;padding-right:11px}
  .kqo h2{font-size:26px}
  .kqo-sticky{grid-template-columns:minmax(0,1fr) auto auto;gap:4px}
  .kqo-timer strong{font-size:20px}
  .kqo-position{font-size:11px}
  .kqo-unanswered{font-size:11px;padding:4px 5px}
  .kqo-unanswered strong{font-size:13px}
  .kqo-key-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .kqo-pair-choices{grid-template-columns:1fr}
  .kqo-list{grid-template-columns:repeat(5,1fr)}
  .kqo-inline-bundle p{font-size:18px}
}


/* === Mock exam handwriting mode ====================================== */
.kqo-handwrite-notice{
  margin:18px 0 2px;
  padding:16px 18px;
  border:1px solid #dfe3e8;
  border-radius:14px;
  background:#fafbfc;
}
.kqo-handwrite-notice strong{
  display:block;
  margin-bottom:4px;
  font-size:17px;
  font-weight:950;
}
.kqo-handwrite-notice p{
  margin:0;
  color:#444;
  font-size:14px;
  line-height:1.7;
}
.kqo-handwrite-field{
  max-width:760px;
  margin:14px 0;
  padding:16px;
  border:2px solid #d9dee4;
  border-radius:16px;
  background:#fff;
}
.kqo-handwrite-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:12px;
  margin-bottom:10px;
}
.kqo-handwrite-head strong{
  font-size:16px;
  font-weight:950;
}
.kqo-handwrite-head small{
  color:#666;
  font-size:12px;
  font-weight:750;
}
.kqo-handwrite-canvas-wrap{
  width:100%;
  overflow:hidden;
  border:2px solid #111;
  border-radius:12px;
  background:#fff;
}
.kqo-handwrite-canvas{
  display:block;
  width:100%;
  height:210px;
  background:#fff;
  cursor:crosshair;
  touch-action:none;
}
.kqo-handwrite-tools{
  display:flex;
  justify-content:flex-end;
  gap:8px;
  margin-top:10px;
}
.kqo-handwrite-tools button{
  min-height:48px;
  padding:10px 14px;
  border:1px solid #d2d7dd;
  border-radius:10px;
  background:#f5f6f7;
  color:#222;
  font-size:15px;
  font-weight:850;
}
.kqo-handwrite-tools button:hover{
  background:#eceff2;
}

/* 誤字訂正は「誤字」と「正字」を別々の手書き欄にする。 */
.kqo-error-handwrite{
  display:grid;
  gap:10px;
  max-width:760px;
  margin:14px 0;
}
.kqo-error-handwrite .kqo-handwrite-field{
  margin:0;
}
.kqo-error-handwrite .kqo-handwrite-canvas{
  height:180px;
}
.kqo-error-handwrite-arrow{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:32px;
  color:#333;
  font-size:28px;
  font-weight:950;
  line-height:1;
}
.kqo-manual-error-answer>span{
  display:block;
  margin-bottom:6px;
  color:#555;
  font-size:12px;
  font-weight:900;
}
.kqo-manual-error-canvases{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
}
.kqo-manual-error-canvases>div{
  min-width:0;
}
.kqo-manual-error-canvases strong{
  display:block;
  margin-bottom:6px;
  font-size:13px;
  font-weight:900;
}
.kqo-manual-error-canvases .kqo-manual-canvas{
  height:140px;
}
.kqo-manual-error-correct>div{
  display:grid;
  gap:8px;
  width:100%;
}
.kqo-manual-error-correct b{
  display:block;
  padding:8px 10px;
  border:1px solid #d5d9df;
  border-radius:8px;
  font-size:22px;
  line-height:1.25;
}

/* === Post-submit self grading ======================================== */
.kqo-manual-grade{
  margin:24px 0 28px;
  padding:20px;
  border:2px solid #111;
  border-radius:18px;
  background:#fffdf2;
}
.kqo-manual-head{
  margin-bottom:16px;
}
.kqo-manual-kicker{
  display:inline-flex;
  align-items:center;
  min-height:28px;
  padding:5px 10px;
  border-radius:999px;
  background:#111;
  color:#fff;
  font-size:12px;
  font-weight:900;
}
.kqo-manual-head h3{
  margin:10px 0 8px;
  font-size:25px;
  line-height:1.35;
}
.kqo-manual-head p{
  margin:0;
  color:#444;
  line-height:1.75;
}
.kqo-manual-progress{
  margin-top:12px;
  font-size:15px;
  font-weight:850;
}
.kqo-manual-list{
  display:grid;
  gap:14px;
}
.kqo-manual-item{
  padding:16px;
  border:1px solid #d9dee4;
  border-radius:14px;
  background:#fff;
}
.kqo-manual-item.is-correct{
  border-color:#badbc4;
  background:#f7fbf8;
}
.kqo-manual-item.is-wrong{
  border-color:#e1c4c4;
  background:#fff8f8;
}
.kqo-manual-item-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:8px;
}
.kqo-manual-item-head strong{
  font-size:15px;
  font-weight:950;
}
.kqo-manual-item-head span{
  font-size:13px;
  font-weight:850;
}
.kqo-manual-question{
  margin:6px 0 12px;
  font-size:17px;
  font-weight:800;
  line-height:1.65;
}
.kqo-manual-compare{
  display:grid;
  grid-template-columns:minmax(0,1.3fr) minmax(180px,.7fr);
  gap:12px;
  align-items:stretch;
}
.kqo-manual-compare>div{
  display:flex;
  flex-direction:column;
  min-width:0;
}
.kqo-manual-compare>div>span{
  display:block;
  margin-bottom:6px;
  color:#555;
  font-size:12px;
  font-weight:900;
}
.kqo-manual-canvas{
  display:block;
  width:100%;
  height:150px;
  border:1px solid #d5d9df;
  border-radius:10px;
  background:#fff;
}
.kqo-manual-correct{
  align-items:center;
  justify-content:center;
  min-height:150px;
  padding:16px;
  border:2px solid #111;
  border-radius:10px;
  background:#fff;
  text-align:center;
}
.kqo-manual-correct strong{
  display:block;
  font-size:34px;
  line-height:1.2;
  font-weight:950;
  overflow-wrap:anywhere;
}
.kqo-manual-actions{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
  margin-top:12px;
}
.kqo-manual-actions button{
  min-height:52px;
  border:2px solid #d4d9df;
  background:#fff;
  color:#111;
  font-size:16px;
  font-weight:950;
}
.kqo-manual-actions .kqo-manual-ok.is-selected{
  border-color:#176b39;
  background:#e7f5eb;
  color:#155c33;
}
.kqo-manual-actions .kqo-manual-ng.is-selected{
  border-color:#9d2a25;
  background:#fff0ef;
  color:#7f211d;
}
.kqo-manual-empty{
  margin:12px 0 0;
  padding:10px 12px;
  border-radius:9px;
  background:#f2f3f5;
  color:#555;
  font-weight:850;
}
.kqo-review-item.is-pending{
  border-color:#eadfba;
  background:#fffdf3;
}
.kqo-review-item.is-pending .kqo-result-badge{
  background:#fff0b8;
  color:#6a5400;
}

@media(max-width:640px){
  .kqo-error-handwrite .kqo-handwrite-canvas{
    height:190px;
  }
  .kqo-manual-error-canvases{
    grid-template-columns:1fr;
  }
  .kqo-manual-error-canvases .kqo-manual-canvas{
    height:150px;
  }
  .kqo-kana-bank{
    top:154px;
    margin:12px 0;
    padding:10px;
    max-height:156px;
    overflow:auto;
    border-radius:10px;
  }
  .kqo-kana-bank>div{gap:5px}
  .kqo-kana-bank span{padding:5px 7px;font-size:12px}
  .kqo-handwrite-field{
    padding:12px;
    border-radius:13px;
  }
  .kqo-handwrite-head{
    align-items:flex-start;
    flex-direction:column;
    gap:3px;
  }
  .kqo-handwrite-canvas{
    height:190px;
  }
  .kqo-manual-grade{
    padding:15px 12px;
    border-radius:14px;
  }
  .kqo-manual-head h3{
    font-size:21px;
  }
  .kqo-manual-compare{
    grid-template-columns:1fr;
  }
  .kqo-manual-canvas{
    height:135px;
  }
  .kqo-manual-correct{
    min-height:92px;
  }
  .kqo-manual-correct strong{
    font-size:30px;
  }
}

/* === Handwriting in bundled low-grade writing questions =============== */
.kqo-inline-target.is-handwrite{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:3px 7px;
  border-radius:8px;
  background:#fff8ce;
  border:1px solid #e6ce63;
}
.kqo-inline-write-note{
  display:inline-block;
  color:#5b4a00;
  font-size:12px;
  font-weight:900;
}
.kqo-inline-handwrite-answers{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
  margin-top:14px;
}
.kqo-inline-handwrite-answers .kqo-handwrite-field{
  margin:0;
  padding:12px;
}
.kqo-inline-handwrite-answers .kqo-handwrite-canvas{
  height:150px;
}
.kqo-inline-handwrite-answers .kqo-handwrite-head strong{
  font-size:14px;
}
.kqo-inline-handwrite-answers .kqo-handwrite-head small{
  font-size:11px;
}
@media(max-width:640px){
  .kqo-inline-handwrite-answers{
    grid-template-columns:1fr;
    gap:10px;
  }
  .kqo-inline-handwrite-answers .kqo-handwrite-canvas{
    height:165px;
  }
}
