@charset "UTF-8";
:root {
  --ink:#293b32;
  --muted:#5f6c5d;
  --green:#3d6b50;
  --green-dark:#2c503b;
  --green-light:#edf2e8;
  --paper:#f8f9f4;
  --white:#fff;
  --line:#e1e5db;
  --yellow:#f5edcc;
  --radius:14px;
  font-family:"Noto Sans JP","Hiragino Kaku Gothic ProN","Yu Gothic",Meiryo,sans-serif;
  color:var(--ink);
  background:var(--paper);
  font-synthesis:none
}
* {
  box-sizing:border-box
}
body {
  margin:0;
  font-size:16px;
  line-height:1.8;
}
button,input,select {
  font:inherit
}
button,a,select {
  -webkit-tap-highlight-color:transparent
}
a {
  color:inherit;
  text-decoration:none
}
button {
  cursor:pointer
}
button:disabled,select:disabled {
  cursor:default;
  opacity:.6
}
svg {
  display:block
}
p,h1,h2,h3 {
  margin:0
}
button,select {
  color:var(--ink)
}
[hidden] {
  display:none!important
}
::selection {
  background:#d9e7cc
}
a:focus-visible,button:focus-visible,select:focus-visible,input:focus-visible,summary:focus-visible,[tabindex="0"]:focus-visible {
  outline:3px solid #3d6b50;
  outline-offset:5px
}
main:focus {
  outline:none
}
.icon {
  width:21px;
  height:21px;
  flex-shrink:0
}
.sr-only {
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0
}
.skip-link {
  position:fixed;
  left:16px;
  top:-100px;
  padding:10px 20px;
  background:var(--green);
  color:white;
  z-index:20
}
.skip-link:focus {
  top:10px
}
.site-header {
  min-height:82px;
  background:#fff;
  border-bottom:1px solid var(--line);
}
.header-inner {
  max-width:1360px;
  margin:auto;
  min-height:82px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 28px;
  gap:20px;
}
.brand {
  font-size:20px;
  font-weight:750;
  display:flex;
  align-items:center;
  gap:10px;
  white-space:nowrap;
}
.brand-icon {
  display:grid;
  place-items:center;
  width:38px;
  height:38px;
  background:var(--green);
  border-radius:11px
}
.brand-icon svg {
  width:30px;
  fill:none;
  stroke:white;
  stroke-width:1.6;
  stroke-linecap:round
}

.main-nav {
  display:flex;
  align-self:center;
  gap:8px;
}
.main-nav a {
  font-size:14px;
  font-weight:600;
  display:flex;
  align-items:center;
  position:relative;
  white-space:nowrap;
  color:var(--green-dark);
  padding:10px 15px;
  min-height:48px;
  border:1px solid #b5c7ac;
  border-radius:8px;
  background:#f2f6ed;
}
.main-nav a:hover {
  background:#e2ecda;
  border-color:var(--green);
}
.main-nav a.active {
  color:white;
  background:var(--green);
  border-color:var(--green);
}

.page-width {
  max-width:1200px;
  padding:0 30px;
  margin:auto;
}
.home-page {
  padding-top:0
}
.hero {
  display:grid;
  grid-template-columns:1.25fr 1fr;
  align-items:center;
  gap:28px;
  padding:30px 0 22px;
}
.hero h1 {
  font-size:32px;
  font-weight:700;
  line-height:1.6;
  letter-spacing:.015em;
  margin:0 0 12px;
}
.hero-description {
  font-size:15px;
  line-height:1.95;
  color:var(--muted);
}

.button {
  display:inline-flex;
  gap:18px;
  justify-content:center;
  align-items:center;
  border:1px solid transparent;
  border-radius:8px;
  padding:13px 23px;
  min-height:50px;
  font-size:15px;
  font-weight:600;
  line-height:1.6;
  transition:background .15s,transform .15s;
}
.button:hover {
  transform:translateY(-1px)
}
.button.primary {
  background:var(--green);
  color:#fff
}
.button.primary:hover {
  background:var(--green-dark)
}
.button.secondary {
  border-color:var(--green);
  background:white;
  color:var(--green-dark);
}
.button.secondary:hover { background:#edf3e5; }
.button .icon {
  width:18px;
  height:18px
}
.text-link,.first-steps-list a {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  font-size:14px;
  font-weight:600;
  color:white;
  background:var(--green);
  border:1px solid var(--green-dark);
  border-radius:8px;
  padding:10px 16px;
  min-height:46px;
  max-width:100%;
  line-height:1.7;
  box-shadow:0 2px 0 #24432f;
}
.text-link .icon {
  width:17px;
  height:17px
}
.text-link:hover,.first-steps-list a:hover {
  background:var(--green-dark);
  color:white;
}
.hero-illustration {
  width:100%;
  max-width:360px;
  justify-self:center;
}


.mini-icon {
  background:#f1f4ed;
  color:#64725a;
  width:41px;
  height:41px;
  display:grid;
  place-items:center;
  border-radius:50%
}

.section-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:15px;
  margin-bottom:16px;
}
.section-heading h2 {
  font-size:21px;
  font-weight:650;
  line-height:1.6;
}
.section-note {
  font-size:13px;
  color:var(--muted);
}

.course-icon {
  display:grid;
  place-items:center;
  border-radius:11px;
  width:43px;
  height:43px;
  background:#edf2e6;
  color:#64725a
}
.course-icon .icon {
  width:23px;
  height:23px
}

.yellow .course-icon,.course-icon.yellow {
  background:#faf3dc;
  color:#64725a
}
.blue .course-icon,.course-icon.blue {
  background:#eaf0f2;
  color:#64725a
}
.pink .course-icon,.course-icon.pink {
  background:#f5eeea;
  color:#64725a
}

.site-footer {
  max-width:1200px;
  margin:auto;
  padding:22px 30px;
  border-top:1px solid var(--line);
  display:flex;
  justify-content:space-between;
  gap:20px;
  align-items:center;
  color:var(--muted);
  font-size:12px;
}
.site-footer>div {
  display:flex;
  gap:17px;
  align-items:center
}
.footer-brand {
  font-size:14px;
  font-weight:650;
  color:var(--ink);
}
.inner-page {
  padding-top:22px;
  padding-bottom:40px;
  min-height:calc(100vh - 170px);
}
.page-heading {
  margin-bottom:23px;
}
.breadcrumb {
  display:inline-flex;
  align-items:center;
  gap:8px;
  color:var(--green-dark);
  font-size:13px;
  font-weight:600;
  margin-bottom:12px;
  min-height:44px;
  padding:8px 14px;
  border:1px solid #9cb48f;
  border-radius:8px;
  background:white;
}
.breadcrumb:hover { background:#e8f0e0; border-color:var(--green); }
.breadcrumb span {
  color:#64725a
}
.page-heading .eyebrow {
  margin-bottom:7px
}
.page-heading h1 {
  font-size:29px;
  font-weight:650;
  line-height:1.6;
  margin-bottom:7px;
}
.page-heading>p:last-child {
  font-size:15px;
  color:var(--muted);
}
.quick-reference {
  border:1px solid var(--line);
  background:#fff;
  border-radius:9px;
  margin-bottom:25px
}
.quick-reference summary {
  display:flex;
  align-items:center;
  gap:10px;
  padding:12px 17px;
  min-height:48px;
  cursor:pointer;
  font-size:14px;
  font-weight:600;
  list-style:none;
  color:var(--green);
}
.quick-reference summary::-webkit-details-marker {
  display:none
}
.quick-reference summary:after {
  content:"＋";
  margin-left:7px;
  font-size:17px;
  font-weight:400
}
.quick-reference[open] summary:after {
  content:"−"
}
.quick-reference summary>span {
  font-size:13px;
  color:var(--muted);
  font-weight:400;
  margin-left:auto;
}
.quick-reference summary .icon {
  width:18px;
  height:18px
}
.quick-content {
  padding:0 19px 20px
}

.quick-content p {
  font-size:14px;
  margin:14px 0 8px;
  color:var(--muted);
}
kbd {
  font:14px Consolas,monospace;
  border:1px solid #cfd9c6;
  background:#fff;
  box-shadow:0 2px 0 #e1e5da;
  border-radius:4px;
  display:inline-block;
  padding:1px 6px;
  color:#4e6840;
  white-space:nowrap;
}
.practice-layout,.test-layout {
  display:grid;
  grid-template-columns:minmax(0,1fr) 265px;
  gap:24px;
}

.field {
  display:flex;
  flex-direction:column;
  gap:7px;
  min-width:0
}
.field>span {
  font-size:14px;
  font-weight:600;
  color:var(--ink);
}
.field select {
  border:1px solid #cdd7c3;
  border-radius:7px;
  background:white;
  padding:11px 28px 11px 12px;
  font-size:14px;
  min-height:48px;
  width:100%;
}
.training-card {
  background:white;
  border:1px solid var(--line);
  border-radius:var(--radius);
  overflow:hidden
}
.training-top {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:14px 20px;
  border-bottom:1px solid var(--line);
  color:var(--green);
  font-size:14px;
}
.training-top>span:first-child {
  display:flex;
  align-items:center;
  gap:7px;
  font-weight:600
}
.training-top>span:first-child:before {
  content:"";
  width:6px;
  height:6px;
  border-radius:50%;
  background:#8a9f74
}
.training-top>span:last-child {
  font-size:13px;
  color:var(--muted);
}
.typing-pad {
  position:relative;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  min-height:250px;
  padding:30px 24px;
  cursor:text;
  background:white;
  transition:background .1s;
}
.typing-pad:focus {
  outline:0;
  box-shadow:inset 0 0 0 2px #52744a
}
.typing-pad:focus-visible {
  outline:0;
  box-shadow:inset 0 0 0 3px #52744a
}
.typing-pad.mistake {
  background:#fff5ee;
  box-shadow:inset 0 0 0 2px #d2a183
}
.prompt-japanese {
  font-size:30px;
  font-weight:600;
  letter-spacing:.03em;
  text-align:center;
  overflow-wrap:anywhere;
  line-height:1.7;
}
.prompt-kana {
  font-size:16px;
  color:var(--muted);
  letter-spacing:.08em;
  margin-bottom:9px;
}
.prompt-done { color:var(--muted); }
.prompt-current { color:#234b32; background:#deedce; border-radius:3px; box-shadow:inset 0 -3px 0 #3d6b50; }
.prompt-current .space-marker { color:#234b32; background:#deedce; border-color:#3d6b50; }
.prompt-romaji {
  font:28px/1.8 Consolas,"Courier New",monospace;
  letter-spacing:.05em;
  margin-top:17px;
  color:#5f6d55;
  text-align:center;
  overflow-wrap:anywhere;
  max-width:100%;
}
.prompt-romaji:not(:has(span)) {
  font-family:inherit;
  font-size:15px;
  color:var(--muted);
  letter-spacing:0;
}
.typed {
  color:#64725a
}
.current-char {
  border-bottom:2px solid #567e44;
  color:#355c2c;
  background:#edf2e4;
  display:inline-block;
  min-width:.65em
}
.input-message {
  display:flex;
  align-items:center;
  gap:8px;
  justify-content:center;
  padding:13px 18px;
  background:#f3f6ed;
  font-size:14px;
  color:var(--muted);
  min-height:52px;
  text-align:center;
  line-height:1.8;
}
.input-message .icon {
  width:14px;
  height:14px
}
.input-message.error {
  color:#64725a;
  background:#fdf3eb
}
.training-actions {
  display:flex;
  justify-content:center;
  align-items:center;
  gap:15px;
  padding:17px 20px;
  flex-wrap:wrap;
}
.training-actions .button {
  font-size:14px;
  padding:12px 20px;
  min-height:48px;
}
.text-button {
  border:0;
  background:none;
  color:var(--muted);
  font-size:14px;
  text-decoration:underline;
  text-underline-offset:4px;
  padding:10px;
  min-height:44px;
}
.focus-hint {
  position:absolute;
  inset:0;
  display:grid;
  place-content:center;
  background:rgba(248,250,245,.96);
  font-size:15px;
  text-align:center;
  color:var(--green);
  cursor:pointer;
  padding:15px;
}
.keyboard-section {
  margin-top:24px
}
.keyboard-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:13px;
  gap:15px;
  flex-wrap:wrap;
}
.keyboard-heading h2 {
  display:flex;
  align-items:center;
  gap:9px;
  font-size:14px;
  color:var(--ink);
  font-weight:500;
}
.keyboard-heading .icon {
  width:17px;
  height:17px
}
.keyboard-heading>span {
  font-size:13px;
  color:var(--muted);
}
.keyboard {
  width:100%;
  max-width:640px;
  margin:auto
}
.keyboard-body {
  fill:#eef1e8;
  stroke:#dbe2d1
}
.keyboard g rect {
  fill:#fff;
  stroke:#d3ddc9;
  stroke-width:1.3;
  filter:drop-shadow(0 2px 0 #dce3d3)
}
.keyboard text {
  text-anchor:middle;
  font:16px Arial,sans-serif;
  fill:#5b6b50;
}
.keyboard .key-bump {
  stroke:#bac7ae;
  stroke-width:2;
  stroke-linecap:round
}
.keyboard g.next-key rect {
  fill:#52744a;
  stroke:#44663b
}
.keyboard g.next-key text {
  fill:white
}
.keyboard g.next-key .key-bump {
  stroke:#c6d8b7
}
.practice-aside {
  padding-top:79px;
}
.lesson-note {
  padding:20px;
  background:#f0f3e8;
  border:1px solid #dce4d0;
  border-radius:12px;
}
.lesson-note h2 {
  font-size:18px;
  margin:12px 0 8px;
}
.lesson-note p:not(.eyebrow) {
  font-size:14px;
  color:var(--muted);
  line-height:1.9;
}
.note-divider {
  height:1px;
  background:#dce3cf;
  margin:20px 0 15px
}
.lesson-note h3 {
  display:flex;
  gap:7px;
  align-items:center;
  font-size:14px;
  margin-bottom:8px;
  color:var(--green);
}
.lesson-note h3 .icon {
  width:16px;
  height:16px
}
.session-stats {
  border:1px solid var(--line);
  background:white;
  border-radius:11px;
  padding:19px;
  margin-top:18px;
}
.session-stats h3 {
  font-size:14px;
  font-weight:600;
  border-bottom:1px solid var(--line);
  padding-bottom:11px;
  margin-bottom:12px;
}
.session-stats>div {
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-top:10px;
  color:var(--muted);
  font-size:14px;
  gap:12px;
}
.session-stats strong {
  font:20px Arial,sans-serif;
  color:var(--green);
  line-height:1.8;
}
.aside-guide {
  margin:14px 0 0 5px;
  font-size:13px;
}
.test-aside {
  padding-top:79px;
}
.timer-card {
  padding:25px;
  background:#eef2e6;
  border:1px solid #dfe6d4;
  border-radius:12px;
  text-align:center
}
.timer-card>span {
  display:flex;
  gap:7px;
  justify-content:center;
  align-items:center;
  color:#64725a;
  font-size:13px
}
.timer-card>span .icon {
  width:17px;
  height:17px
}
.timer-card>strong {
  display:block;
  font:65px/1.5 Arial,sans-serif;
  color:#48663d;
  margin-top:13px
}
.timer-card strong small {
  font:13px sans-serif;
  margin-left:6px;
  color:#64725a
}
.timer-track {
  height:4px;
  background:#dce4cf;
  border-radius:3px;
  margin-top:11px;
  overflow:hidden
}
.timer-track>div {
  height:100%;
  background:#829d69;
  width:100%;
  transition:width .1s linear
}
.timer-card>p {
  font-size:13px;
  color:var(--muted);
  margin-top:13px;
}

.table-scroll {
  overflow:auto;
  border:1px solid var(--line);
  border-radius:10px
}

.result-card {
  border:1px solid #cbdabc;
  border-radius:14px;
  background:#f0f5e8;
  padding:28px;
  margin:25px 0;
  text-align:center;
}
.result-card:focus {
  outline:2px solid #c4d5b4;
  outline-offset:4px
}
.result-check {
  display:grid;
  place-items:center;
  width:40px;
  height:40px;
  background:#dce8cd;
  border-radius:50%;
  margin:0 auto 13px;
  color:#64725a
}
.result-card h2 {
  font-size:24px;
  margin:9px 0;
}
.result-card>p:not(.eyebrow) {
  font-size:15px;
  color:var(--muted);
}
.result-stats {
  display:flex;
  justify-content:center;
  margin:27px 0;
  gap:0
}
.result-stats>div {
  padding:0 25px;
  border-left:1px solid #d2dfc5;
  display:flex;
  flex-direction:column;
  gap:8px;
}
.result-stats>div:first-child {
  border:0
}
.result-stats span {
  font-size:14px;
  color:var(--muted);
}
.result-stats strong {
  font:32px Arial,sans-serif;
  color:var(--green);
}
.result-stats small {
  font:13px sans-serif;
  margin-left:5px;
  color:var(--muted);
}
.reference-intro {
  display:flex;
  gap:13px;
  background:#edf2e6;
  border:1px solid #d8e3cb;
  padding:17px 21px;
  border-radius:10px;
  color:var(--muted);
  font-size:15px;
}
.reference-intro .icon {
  margin-top:2px
}
.reference-intro strong {
  color:#5d794c;
  font-weight:500
}
.reference-nav {
  display:flex;
  flex-wrap:wrap;
  gap:9px;
  margin:20px 0 28px;
}
.reference-nav a {
  display:flex;
  align-items:center;
  border:1px solid #cdd8c1;
  padding:8px 14px;
  min-height:44px;
  border-radius:7px;
  font-size:14px;
  color:var(--green);
  background:white;
}
.reference-nav a:hover {
  border-color:#92a87c
}
.reference-groups {
  display:grid;
  grid-template-columns:minmax(0,1fr);
  gap:30px;
  align-items:start;
}
.reference-group {
  scroll-margin-top:30px
}
.reference-group h2,.special-kana>h2 {
  font-size:20px;
}
.kana-grid {
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  border:1px solid var(--line);
  border-radius:10px;
  overflow:hidden;
  background:#fff
}
.kana-cell {
  padding:13px 6px;
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
  min-height:84px;
  border-right:1px solid #e4e9dc;
  border-bottom:1px solid #e4e9dc;
  justify-content:center;
  gap:7px;
}
.kana-cell strong {
  font-size:24px;
  font-weight:500;
  line-height:1.4;
}
.kana-cell span {
  font:14px/1.7 Consolas,monospace;
  color:var(--green);
  overflow-wrap:anywhere;
}
.kana-cell.blank {
  background:#f4f6ee
}
.pair-grid {
  grid-template-columns:repeat(3,minmax(0,1fr))
}
.special-kana {
  margin-top:40px;
  scroll-margin-top:30px
}
.special-grid {
  display:grid;
  grid-template-columns:minmax(0,1fr);
  gap:25px;
  margin-top:20px
}
.special-grid article {
  background:white;
  border:1px solid var(--line);
  border-radius:12px;
  padding:26px
}
.kana-example {
  display:grid;
  place-items:center;
  width:45px;
  height:45px;
  border-radius:10px;
  background:#edf3e5;
  font-size:26px;
  color:#64725a;
  float:left;
  margin-right:15px
}
.special-grid h3 {
  font-size:15px;
  margin:7px 0 19px
}
.special-grid p {
  font-size:15px;
  color:var(--muted);
  line-height:1.9;
}
.special-grid dl {
  display:grid;
  grid-template-columns:100px 1fr;
  gap:10px;
  margin:20px 0;
}
.special-grid dt {
  font-size:13px
}
.special-grid dd {
  font:14px/1.8 Consolas,monospace;
  color:var(--green);
  margin:0;
  overflow-wrap:anywhere;
}
.special-grid p.fine-print {
  font-size:14px;
  margin-top:10px;
}
.reference-return {
  text-align:center;
  border-top:1px solid var(--line);
  padding-top:32px;
  margin-top:38px
}
.reference-return p {
  color:#64725a;
  font-size:13px;
  margin-bottom:16px
}
.guide-page {
  max-width:1040px
}
.guide-intro {
  display:flex;
  gap:20px;
  align-items:center;
  padding:25px 29px;
  background:#edf2e5;
  border-radius:12px;
  border:1px solid #e0e7d5
}
.guide-intro>span {
  color:#64725a;
  flex-shrink:0;
  background:#fff;
  border-radius:50%;
  width:53px;
  height:53px;
  display:grid;
  place-items:center
}
.guide-intro .icon {
  width:28px;
  height:28px
}
.guide-intro h2 {
  font-size:17px;
  font-weight:600;
  margin-bottom:7px
}
.guide-intro p {
  font-size:15px;
  color:var(--muted);
  line-height:1.9;
}
.guide-section {
  display:flex;
  padding:28px 0;
  border-bottom:1px solid var(--line);
}
.guide-section:last-of-type {
  border:0
}
.guide-section>div {
  flex:1;
  min-width:0
}
.guide-section h2 {
  font-size:21px;
  font-weight:600;
  margin:2px 0 15px
}
.guide-section p {
  font-size:15px;
  color:var(--muted);
  line-height:1.95;
}
.guide-section p strong {
  color:#637e51;
  font-weight:600
}
.guide-section .text-link {
  margin-top:17px
}
.home-position {
  display:flex;
  justify-content:center;
  gap:40px;
  padding:26px 22px;
  background:white;
  border:1px solid var(--line);
  border-radius:11px;
  margin:20px 0 15px;
}
.home-position>div {
  display:flex;
  position:relative;
  gap:8px;
  padding-top:21px
}
.home-position>div>span {
  position:absolute;
  top:0;
  left:0;
  font-size:13px;
  color:#64725a
}
.home-position>div>div {
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:8px
}
.home-position kbd {
  width:49px;
  height:46px;
  display:grid;
  place-items:center;
  font-size:19px;
  box-shadow:0 3px 0 #dde5d4
}
.home-position .anchor-key {
  background:#68865a;
  color:white;
  border-color:#5b784e;
  box-shadow:0 3px 0 #4e6e40;
  position:relative
}
.home-position .anchor-key:after {
  position:absolute;
  content:"";
  bottom:5px;
  left:20px;
  right:20px;
  height:2px;
  background:#cfdfbf
}
.home-position small {
  font-size:13px;
  color:#64725a
}
.guide-section p.guide-caption {
  font-size:14px;
  text-align:left;
  color:var(--muted);
}
.romaji-diagram {
  display:flex;
  justify-content:center;
  align-items:center;
  gap:45px;
  margin:24px 0;
  border:1px solid var(--line);
  border-radius:11px;
  background:white;
  padding:23px
}
.romaji-diagram>div {
  display:flex;
  gap:18px;
  align-items:center;
  color:#64725a
}
.romaji-diagram kbd {
  font-size:24px;
  padding:8px 20px
}
.romaji-diagram>.icon {
  color:#64725a;
  width:26px;
  height:26px
}
.romaji-diagram>strong {
  font-size:36px;
  font-weight:500;
  color:#647f52
}
.basic-keys {
  display:flex;
  flex-direction:column;
  gap:14px
}
.basic-keys>div {
  display:flex;
  gap:25px;
  align-items:center;
  padding:15px 20px;
  background:white;
  border:1px solid var(--line);
  border-radius:8px
}
.basic-keys kbd {
  min-width:95px;
  text-align:center;
  padding:5px;
  font-size:13px
}
.basic-keys p strong {
  display:block;
  font-size:15px;
}
.basic-keys p span {
  font-size:14px;
}
.three-tips {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:16px;
}
.three-tips article {
  border:1px solid var(--line);
  background:#fff;
  border-radius:10px;
  padding:21px
}
.three-tips h3 {
  font-size:14px;
  margin:10px 0 7px
}
.three-tips p {
  font-size:14px;
  line-height:1.9;
}

.breadcrumb .icon { width:17px; height:17px; order:-1; transform:rotate(180deg); }


.stats-caption { font-size:13px; line-height:1.8; color:var(--muted); margin-top:14px; border-top:1px solid var(--line); padding-top:11px; }
.result-card>p.result-caption { font-size:14px; margin-bottom:17px; }
.guide-subheading { font-size:16px; margin:21px 0 8px; }
.quick-content .quick-note { font-size:13px; margin-top:8px; }
#next-key { min-width:32px; text-align:center; font-size:17px; font-weight:600; }
@media(max-width:1150px) {
  .site-header { height:auto; }
  .header-inner { flex-wrap:wrap; padding:15px 28px 0; gap:8px 20px; }
  .brand { margin-right:auto; }
  .main-nav { order:3; width:100%; justify-content:center; gap:8px; padding-bottom:12px; }
  .main-nav a { min-height:47px; padding:10px 15px; }
  .hero h1 { font-size:29px; }
  .hero { grid-template-columns:1.35fr 1fr; }

  .practice-layout,.test-layout { grid-template-columns:minmax(0,1fr) 240px; gap:20px; }
  .test-aside { padding-top:79px; }
}
@media(max-width:950px) {

  .hero-illustration { max-width:300px; }
  .hero { grid-template-columns:1.5fr 1fr; gap:18px; padding:26px 0; }
  .hero h1 { font-size:27px; }
  .practice-layout { grid-template-columns:1fr; }
  .practice-aside { display:grid; grid-template-columns:1fr 1fr; gap:18px; padding-top:0; }
  .practice-aside .session-stats { margin-top:0; }
  .aside-guide { grid-column:1/-1; margin-top:0; }
  .lesson-note .course-icon { float:right; margin-left:12px; }
  .lesson-note h2 { margin-top:0; }


  .reference-groups { grid-template-columns:1fr; gap:26px; }
  .reference-group:first-child { grid-row:auto; }
  .kana-cell { min-height:86px; }
  .home-position { gap:25px; padding:25px 15px; }
  .home-position kbd { width:44px; }
  .guide-page { max-width:850px; }
  .three-tips { grid-template-columns:1fr; }
  .three-tips article { padding:18px; }
}
@media(max-width:767px) {
  .page-width { padding-left:20px; padding-right:20px; }
  .header-inner { padding:14px 20px 0; gap:10px; }
  .brand { font-size:17px; gap:8px; }
  .brand-icon { width:30px; height:30px; border-radius:8px; }
  .brand-icon svg { width:25px; }

  .main-nav { gap:6px; flex-wrap:wrap; justify-content:center; overflow:visible; }
  .main-nav a { font-size:13px; min-height:44px; justify-content:center; flex-basis:calc((100% - 12px) / 3); padding:9px 6px; }
  .main-nav a:nth-child(n+4) { flex-basis:calc((100% - 6px) / 2); }
  .hero { display:grid; grid-template-columns:1fr; gap:14px; padding:25px 0 23px; }
  .hero h1 { font-size:clamp(24px,6.3vw,29px); }
  .hero-description { font-size:14px; }

  .hero-illustration { width:245px; justify-self:center; }
  .section-heading { gap:10px; align-items:flex-start; }
  .section-heading h2 { font-size:20px; }
  .section-note { font-size:12px; }

  .course-icon { width:36px; height:36px; border-radius:9px; }
  .course-icon .icon { width:21px; height:21px; }

  .site-footer { padding:20px; flex-direction:column; align-items:flex-start; gap:7px; font-size:12px; }
  .inner-page { padding-top:17px; padding-bottom:30px; }
  .page-heading h1 { font-size:26px; }
  .page-heading>p:last-child { font-size:14px; }

  .practice-layout,.test-layout { display:block; }
  .practice-aside { display:block; padding-top:0; margin-top:20px; }

  .lesson-note { padding:20px; }
  .lesson-note p:not(.eyebrow) { font-size:14px; }
  .quick-reference summary { flex-wrap:wrap; gap:5px 8px; padding:12px; font-size:14px; }
  .quick-reference summary>span { font-size:12px; }
  .quick-content { padding:0 13px 16px; }

  .field>span { font-size:13px; }
  .field select { font-size:14px; padding-left:9px; }

  .result-stats { flex-wrap:wrap; gap:22px 0; }
  .result-stats>div { width:50%; padding:0 12px; }
  .result-stats>div:nth-child(3) { border-left:0; }
  .result-card { padding:23px 17px; }
  .result-card h2 { font-size:22px; }
  .result-card>p:not(.eyebrow) { font-size:14px; }
  .reference-intro { padding:17px; font-size:14px; gap:10px; }
  .reference-intro>.icon { width:18px; height:18px; }
  .reference-nav a { font-size:13px; padding:8px 10px; }
  .reference-groups { gap:25px; }
  .reference-group h2,.special-kana>h2 { font-size:19px; }
  .kana-cell { padding:12px 4px; min-height:84px; }
  .kana-cell strong { font-size:23px; }
  .kana-cell span { font-size:13px; }
  .special-grid { grid-template-columns:1fr; gap:18px; }
  .special-grid article { padding:20px; }
  .special-grid h3 { font-size:17px; }
  .special-grid p { font-size:14px; }
  .special-grid dl { grid-template-columns:80px 1fr; gap:10px; }
  .special-grid dd { font-size:13px; }
  .special-grid dt { font-size:14px; }
  .guide-intro { padding:20px 17px; gap:12px; align-items:flex-start; }
  .guide-intro>span { width:32px; height:32px; }
  .guide-intro .icon { width:20px; height:20px; }
  .guide-intro h2 { font-size:17px; }
  .guide-intro p { font-size:14px; }
  .guide-section { padding:25px 0; }
  .guide-section h2 { font-size:20px; }
  .guide-section p { font-size:14px; }
  .home-position { flex-direction:column; align-items:center; gap:23px; padding:22px 10px; }
  .home-position>div { gap:9px; }
  .home-position kbd { width:44px; }
  .home-position small { font-size:12px; }
  .home-position .anchor-key:after { left:17px; right:17px; }
  .romaji-diagram { gap:20px; padding:20px 12px; }
  .romaji-diagram>div { gap:10px; }
  .romaji-diagram kbd { font-size:22px; padding:8px 14px; }
  .romaji-diagram>strong { font-size:32px; }
  .romaji-diagram>.icon { width:20px; }
  .basic-keys>div { display:block; padding:17px; }
  .basic-keys kbd { min-width:85px; margin-bottom:8px; }
  .basic-keys p span { display:block; font-size:14px; }
  .three-tips p { font-size:14px; }
}
@media(max-width:380px) {
  .brand { font-size:16px; }

  .main-nav a { font-size:13px; }


  .hero-illustration { width:225px; }

  .quick-reference summary>span { display:none; }
  .quick-reference summary:after { margin-left:auto; }

}
@media(prefers-reduced-motion:reduce) {
  *,*:before,*:after { transition:none!important; scroll-behavior:auto!important; }
}

.display-tabs {
  display:flex; align-items:flex-end; gap:7px; padding:15px 16px 0;
  background:#eef2e7; border-bottom:1px solid var(--line); border-radius:13px 13px 0 0;
}
.display-tabs button {
  flex:1; min-height:46px; border:1px solid #cbd6c0; border-bottom:0;
  border-radius:8px 8px 0 0; padding:10px 10px; color:var(--muted); background:#e5ecdc;
  font-size:14px; line-height:1.6; transition:padding-top .15s,background .15s;
}
.display-tabs button:first-child { flex:1.5; }
.display-tabs button:last-child { flex:1.2; }
.display-tabs button[aria-pressed="true"] {
  background:white; border-color:#7d9870; color:var(--green-dark); font-weight:700;
  padding-top:18px; box-shadow:inset 0 3px 0 var(--green);
}
.course-picker { padding:18px 18px 17px; border-bottom:1px solid var(--line); }
.course-picker>p { font-size:14px; font-weight:600; margin-bottom:10px; }
.practice-aside { padding-top:0; }
.training-actions:not(:has(button:not([hidden]))) { display:none; }
.inline-time { color:var(--green); font-size:15px; white-space:nowrap; }
.training-top { flex-wrap:wrap; }
.keyboard-notice { display:none; }
.no-save-note { color:var(--muted); font-size:13px; margin-top:24px; }
.guide-shortcuts { display:flex; flex-wrap:wrap; gap:12px; margin:-4px 0 24px; }
.guide-practice-link { margin-left:20px; }
.reference-return { display:flex; flex-wrap:wrap; gap:14px; justify-content:center; }
.reference-page-buttons { display:flex; flex-wrap:wrap; gap:7px; padding-top:10px; margin-bottom:13px; }
.reference-page-buttons button,.reference-pagination button {
  border:1px solid #c9d6bd; border-radius:6px; padding:8px 12px; min-height:42px;
  font-size:13px; background:#f8faf3; color:var(--green-dark);
}
.reference-page-buttons button[aria-pressed="true"] { background:var(--green); color:#fff; border-color:var(--green); }
.reference-panel h3 { font-size:15px; font-weight:600; margin:8px 0 12px; }
.mini-kana-grid { display:grid; grid-template-columns:repeat(10,minmax(0,1fr)); border:1px solid var(--line); border-radius:7px; overflow:hidden; }
.mini-pair-grid { grid-template-columns:repeat(6,minmax(0,1fr)); }
.mini-kana { display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; gap:3px; padding:8px 4px; border-right:1px solid var(--line); border-bottom:1px solid var(--line); min-height:64px; }
.mini-kana strong { font-size:19px; font-weight:500; }
.mini-kana span { font:13px/1.6 Consolas,monospace; color:var(--green); overflow-wrap:anywhere; }
.mini-kana.blank { background:#f3f6ed; }
.reference-pagination { display:flex; align-items:center; justify-content:center; gap:20px; margin-top:14px; }
.reference-pagination>span { font-size:14px; color:var(--muted); }
.quick-footer { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:8px; font-size:13px; color:var(--muted); margin-top:14px; }
.quick-special { display:grid; grid-template-columns:minmax(0,1fr); gap:20px; }
.quick-special article { padding:13px 16px; border:1px solid var(--line); border-radius:8px; background:#f9fbf5; }
.quick-special p { font-size:14px; }
@media(max-width:950px) {
  .practice-aside { padding-top:0; }
  .mini-kana-grid { grid-template-columns:repeat(10,minmax(0,1fr)); }
  .mini-pair-grid { grid-template-columns:repeat(6,minmax(0,1fr)); }
}
@media(max-width:767px) {
  .header-inner { padding-top:14px; }
  .main-nav { margin-top:3px; }
  .keyboard-notice { display:flex; gap:11px; padding:15px; margin-bottom:20px; border:1px solid #dce4cf; border-radius:9px; background:#edf2e5; }
  .keyboard-notice>.icon { margin-top:3px; }
  .keyboard-notice strong { font-size:15px; }
  .keyboard-notice p { font-size:14px; line-height:1.9; color:var(--muted); margin-top:5px; }
  .keyboard-notice a { text-decoration:underline; text-underline-offset:3px; }
  .display-tabs { padding:13px 10px 0; gap:5px; }
  .display-tabs button { font-size:12px; padding:10px 5px; }
  .display-tabs button[aria-pressed="true"] { padding-top:18px; }
  .course-picker { padding:14px 12px; }
  .training-top { font-size:13px; gap:7px; padding:13px; }
  .training-top>span:last-child { font-size:12px; }
  .typing-pad { min-height:215px; padding:25px 16px; }
  .prompt-japanese { font-size:25px; }
  .prompt-romaji { font-size:24px; }
  .prompt-kana { font-size:14px; }
  .input-message { font-size:13px; }
  .training-actions { padding:15px; }
  .keyboard-heading>span { font-size:12px; }
  .practice-layout { display:flex; flex-direction:column; gap:20px; }
  .practice-aside { display:contents; }
  .practice-aside .lesson-note { order:-1; }
  .practice-aside .session-stats { display:none; }
  .practice-aside .aside-guide { align-self:flex-start; margin-top:0; }
  .test-aside { display:none; }
  .mini-kana-grid { grid-template-columns:repeat(5,minmax(0,1fr)); }
  .mini-pair-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .mini-kana { min-height:72px; }
  .mini-kana span { font-size:12px; }
  .quick-special { grid-template-columns:1fr; gap:12px; }
  .reference-pagination { gap:10px; }
  .reference-pagination button { font-size:13px; padding:8px 10px; }
  .quick-footer { align-items:flex-start; }
  .guide-practice-link { margin-left:0; display:flex; }
}
@media(prefers-reduced-motion:reduce) {
  .display-tabs button { transition:none; }
}

.home-page { padding-bottom:30px; }
.home-links { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:18px; margin:4px 0 26px; }
.home-card { display:block; min-width:0; padding:23px; background:white; border:1px solid #a6b99b; border-radius:12px; box-shadow:0 3px 0 #e0e8d9; transition:border-color .15s,background .15s; }
.home-card:hover { border-color:#8ca37b; background:#f3f7ed; }
.home-card-top { display:flex; align-items:center; justify-content:space-between; gap:14px; }
.home-card-top>.icon { width:34px; height:34px; padding:7px; color:white; background:var(--green); border-radius:50%; }
.home-card h2 { font-size:21px; line-height:1.6; margin-top:15px; }
.home-card p { font-size:14px; color:var(--muted); line-height:1.9; margin-top:7px; }
.home-first-steps { padding:27px; margin-bottom:26px; border:1px solid #dce3d2; border-radius:12px; background:#eef2e7; }
.home-first-steps h2 { font-size:22px; line-height:1.6; }
.first-steps-intro { margin-top:5px; color:var(--muted); font-size:14px; line-height:1.9; }
.first-steps-list { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:24px; list-style:none; padding:0; margin:23px 0 0; }
.first-steps-list li { display:flex; gap:12px; min-width:0; }
.step-number { display:grid; place-items:center; flex-shrink:0; width:30px; height:30px; background:white; border:1px solid #d3dec9; border-radius:50%; color:var(--green); font-size:15px; font-weight:700; }
.first-steps-list h3 { font-size:16px; line-height:1.9; }
.first-steps-list a { font-size:15px; }
.first-steps-list .icon { display:inline-block; width:16px; height:16px; vertical-align:middle; }
.first-steps-list li p { margin-top:7px; font-size:14px; line-height:1.9; color:var(--muted); }
@media(max-width:1150px) {
  .home-links { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media(max-width:950px) {
  .first-steps-list { grid-template-columns:1fr; gap:20px; }
}
@media(max-width:600px) {
  .home-links { grid-template-columns:1fr; gap:12px; margin-bottom:14px; }
  .home-card { display:grid; grid-template-columns:36px minmax(0,1fr) 34px; gap:4px 14px; align-items:center; padding:18px; }
  .home-card-top { display:contents; }
  .home-card-top>.course-icon { grid-column:1; grid-row:1 / 3; }
  .home-card-top>.icon { grid-column:3; grid-row:1 / 3; }
  .home-card h2 { grid-column:2; grid-row:1; font-size:18px; margin:0; }
  .home-card p { grid-column:2; grid-row:2; font-size:13px; margin:0; }
  .home-first-steps { padding:20px 18px; margin-bottom:14px; }
  .home-first-steps h2 { font-size:20px; }
  .first-steps-list { margin-top:20px; }
}

.test-aside { padding-top:0; }
.training-card .result-card { margin:0 16px 20px; padding:24px 15px; }
.training-card .result-stats { flex-wrap:wrap; }
.training-card .result-stats>div { flex:1 1 120px; }
.keyboard { max-width:700px; }
.test-menu { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; }
.test-choice { display:block; padding:27px; background:#fff; border:1px solid var(--line); border-radius:14px; }
.test-choice:hover { border-color:#819e73; background:#f3f7ed; }
.test-choice h2 { font-size:21px; margin:15px 0 8px; }
.test-choice p { color:var(--muted); font-size:15px; margin-bottom:22px; }
.selection-card { display:flex; flex-direction:column; align-items:flex-start; min-width:0; border-color:#a6b99b; box-shadow:0 3px 0 #e0e8d9; }
.selection-card-top { display:flex; align-items:center; justify-content:space-between; gap:12px; width:100%; }
.selection-meta { color:var(--green-dark); background:#edf3e5; border-radius:6px; padding:5px 10px; font-size:12px; font-weight:600; }
.selection-card p { flex:1; }
.selection-back { margin-bottom:24px; }
.selection-back>.icon { transform:rotate(180deg); }
.result-actions { display:flex; flex-wrap:wrap; justify-content:center; gap:12px; }
.test-back { margin:-8px 0 24px; }
.test-back>.icon { transform:rotate(180deg); }
.test-setup h2 { font-size:19px; margin-bottom:10px; }
.test-setup>p { font-weight:400; line-height:1.9; }
.ready-actions { display:flex; flex-wrap:wrap; align-items:center; gap:18px; margin:18px 0 3px; }
.test-setup .test-best { font-size:13px; color:var(--green); }
.single-key-pad #prompt-japanese { font:700 76px/1.4 Consolas,monospace; }
.single-key-pad[aria-readonly="true"] #prompt-japanese { font-family:inherit; font-size:23px; font-weight:600; line-height:1.8; }
.best-result { padding:16px; margin-bottom:22px; border:1px solid #cbdabc; border-radius:8px; background:#fff; }
.best-result small { display:inline-block; margin-top:8px; font-size:13px; }
.key-results { text-align:left; margin:24px 0; }
.key-results h3 { font-size:18px; margin:0 0 15px; }
.key-results p { font-size:13px; color:var(--muted); line-height:1.9; margin:13px 0; }
.difficult-keys { display:flex; flex-wrap:wrap; gap:10px; }
.difficult-keys>div { flex:1 1 110px; display:flex; flex-direction:column; gap:6px; padding:13px 10px; border:1px solid #d3dcbc; border-radius:8px; background:#fff; text-align:center; }
.difficult-keys kbd { align-self:center; font-size:23px; }
.difficult-keys span { font-size:12px; color:var(--muted); }
.key-table-wrap { max-width:100%; overflow:auto; background:#fff; border:1px solid #d3deca; border-radius:8px; }
.key-results-table { border-collapse:collapse; width:100%; min-width:410px; text-align:center; font-size:14px; }
.key-results-table caption { padding:12px; font-size:14px; font-weight:600; text-align:left; }
.key-results-table th,.key-results-table td { padding:9px 8px; border-top:1px solid #e1e8d8; }
.key-results-table thead { background:#e7efdf; }
.key-results-table tbody th { color:var(--green); }
@media(max-width:767px) {
  .test-menu { grid-template-columns:1fr; gap:14px; }
  .test-choice { padding:21px; }
  .test-choice h2 { font-size:20px; }
  .test-setup h2 { font-size:18px; }
  .test-setup>p { font-size:14px; }
  .ready-actions { gap:12px; }
  .test-back { font-size:14px; }
  .test-layout .result-card { margin:0 10px 15px; padding:20px 10px; }
  .test-layout .result-card h2 { font-size:20px; }
  .test-layout .result-stats>div { flex:1 1 75px; padding:0 8px; }
}

.literal-space-hint { margin-top:14px; font-size:14px; color:var(--muted); text-align:center; }
.test-countdown { display:flex; align-items:baseline; justify-content:center; gap:12px; margin-top:18px; font-size:15px; color:var(--green); }
.test-countdown strong { font:600 54px/1.2 Consolas,monospace; font-variant-numeric:tabular-nums; }
.resume-slot:has(>button[hidden]) { display:none; }
.single-key-pad[aria-readonly="false"] ~ .training-actions .resume-slot { display:flex; justify-content:center; align-items:center; flex:0 0 160px; min-height:48px; }
.space-marker { display:inline-block; margin:0 3px; padding:1px 4px; min-width:1em; border:1px solid #cbdabc; border-radius:4px; background:#edf3e5; color:var(--green); font-size:.8em; line-height:1.3; }
.quick-special .text-link,.special-grid .text-link { margin-top:14px; font-size:14px; }
.quick-special .kana-example { margin-right:10px; }
