@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
src: url("../fonts/inter-v20-latin.woff2") format("woff2");
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
src: url("../fonts/inter-v20-latin-ext.woff2") format("woff2");
unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
src: url("../fonts/inter-v20-vietnamese.woff2") format("woff2");
unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 300 700; font-display: swap;
src: url("../fonts/cormorant-v21-latin.woff2") format("woff2");
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 300 700; font-display: swap;
src: url("../fonts/cormorant-v21-latin-ext.woff2") format("woff2");
unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 300 700; font-display: swap;
src: url("../fonts/cormorant-v21-vietnamese.woff2") format("woff2");
unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: "Inter Fallback"; src: local("Arial");
size-adjust: 107.48%; ascent-override: 90.14%; descent-override: 22.44%; line-gap-override: 0%; }
@font-face { font-family: "Cormorant Fallback"; src: local("Georgia");
size-adjust: 89.45%; ascent-override: 103.29%; descent-override: 32.08%; line-gap-override: 0%; }
:root {
color-scheme: light;
--on-accent: #ffffff;
--bg: #f4f7fb;
--panel: #ffffff;
--panel-soft: #edf3fa;
--navy: #112d4e;
--ink-strong: #112d4e;
--navy-2: #183765;
--blue: #2d6eb4;
--gold: #d9a63a;
--gold-ink: #976b0b;
--text: #1f2937;
--muted: #5c697a;
--line: #e4ebf4;
--success: #2f7d57;
--danger: #c84a52;
--shadow: 0 18px 36px rgba(17, 45, 78, 0.12);
--radius: 24px;
--font-sans: "Inter", "Inter Fallback", sans-serif;
--font-display: "Cormorant Garamond", "Cormorant Fallback", serif;
--gutter: clamp(18px, 3.4vw, 72px);
--content: clamp(940px, 84vw, 1120px);
--sp-section: clamp(28px, 3.2vw, 54px);
--card-pad: clamp(18px, 1.5vw, 26px);
}
@media (prefers-color-scheme: dark) {
:root:not([data-theme="light"]) {
color-scheme: dark;
--on-accent: #0e131d;
--bg: #0e131d;
--panel: #151b27;
--panel-soft: #1b2330;
--navy: #0b1b30;
--navy-2: #122744;
--ink-strong: #d2e2f7;
--blue: #74aeea;
--gold: #e2bd6a;
--gold-ink: #e2bd6a;
--text: #e7ecf4;
--muted: #9dabbf;
--line: #273142;
--success: #5cc08d;
--danger: #ef8d93;
--shadow: 0 18px 36px rgba(0, 0, 0, 0.5);
}
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
margin: 0;
font-family: var(--font-sans);
font-variant-numeric: lining-nums;
background: linear-gradient(180deg, #edf3f9 0%, #f6f8fb 100%);
color: var(--text);
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
button, select, input { font: inherit; }
.container {
width: min(var(--content), calc(100% - var(--gutter) * 2));
margin-inline: auto;
}
body {
display: flex;
flex-direction: column;
min-height: 100vh;
min-height: 100dvh;
}
body > main { flex: 1 0 auto; }
.site-header {
position: sticky;
top: 0;
z-index: 50;
-webkit-backdrop-filter: saturate(180%) blur(12px);
backdrop-filter: saturate(180%) blur(12px);
background: rgba(255, 255, 255, 0.88);
border-bottom: 1px solid rgba(17, 45, 78, 0.08);
}
@supports not ((backdrop-filter: blur(1px)) or
(-webkit-backdrop-filter: blur(1px))) {
.site-header { background: #fff; }
}
.site-header.is-stuck {
box-shadow: 0 6px 20px -8px rgba(17, 45, 78, 0.28);
border-bottom-color: rgba(17, 45, 78, 0.12);
}
.nav-wrap {
display: flex;
align-items: center;
justify-content: space-between;
padding: clamp(12px, 1.3vw, 18px) 0;
gap: clamp(12px, 1.6vw, 24px);
}
@media (min-width: 761px) {
.nav-wrap {
display: grid;
grid-template-columns: 1fr auto 1fr;
}
.nav-tools { justify-self: end; }
.brand-text { flex: 1 1 auto; min-width: min-content; }
.brand-tag {
width: 0;
min-width: 100%;
overflow: hidden;
text-overflow: ellipsis;
}
}
.brand-wrap {
display: flex;
align-items: center;
gap: 12px;
}
.brand-mark {
width: 40px;
height: 40px;
display: grid;
place-items: center;
border-radius: 12px;
background: linear-gradient(135deg, var(--navy), var(--blue));
color: #fff;
font-weight: 800;
letter-spacing: 0.08em;
}
.brand-name {
font-weight: 800;
font-size: 1.05rem;
color: var(--ink-strong);
white-space: nowrap;
}
.brand-tag {
font-size: 0.72rem;
color: var(--muted);
white-space: nowrap;
}
.main-nav {
display: flex;
align-items: center;
gap: 18px;
flex-wrap: wrap;
}
@media (min-width: 761px) {
.main-nav { min-height: 48px; }
}
@media (min-width: 761px) and (max-width: 1180px) {
.main-nav { min-height: 44px; }
}
.main-nav a {
color: var(--muted);
font-weight: 600;
padding: 9px 12px;
border-radius: 999px;
transition: 0.2s ease;
}
.main-nav a:hover,
.main-nav a.active {
background: rgba(17, 45, 78, 0.06);
color: var(--ink-strong);
}
.nav-tools {
display: flex;
align-items: center;
gap: 12px;
}
.language-select {
display: flex;
align-items: center;
gap: 8px;
padding: 10px 14px;
background: rgba(17, 45, 78, 0.03);
border: 1px solid var(--line);
border-radius: 999px;
color: var(--muted);
font-size: 0.86rem;
}
.language-select select {
border: none;
background: transparent;
color: var(--ink-strong);
font-weight: 600;
outline: none;
min-height: 26px;
}
.btn {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 8px;
padding: 12px 22px;
border: 1px solid transparent;
border-radius: 999px;
font-weight: 700;
font-size: 0.92rem;
letter-spacing: 0.01em;
white-space: nowrap;
cursor: pointer;
transition: transform 0.18s cubic-bezier(0.34, 1.4, 0.64, 1),
box-shadow 0.18s ease, background 0.18s ease,
border-color 0.18s ease, color 0.18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); transition-duration: 0.06s; }
.btn:disabled,
.btn[aria-disabled="true"] {
opacity: 0.45;
cursor: not-allowed;
transform: none;
box-shadow: none;
}
.btn-lg { padding: 15px 32px; font-size: 1rem; }
.btn-primary {
background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
color: #fff;
box-shadow: 0 6px 18px -4px rgba(45, 110, 180, 0.55),
inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.btn-primary:hover {
background: linear-gradient(135deg, var(--navy-2) 0%, #3a82cd 100%);
box-shadow: 0 12px 26px -6px rgba(45, 110, 180, 0.62),
inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.btn-primary:active {
box-shadow: 0 3px 10px -3px rgba(45, 110, 180, 0.5),
inset 0 1px 0 rgba(255, 255, 255, 0.14);
}
.btn-gold {
background: linear-gradient(135deg, #e8c163 0%, var(--gold) 100%);
color: #3a2a06;
box-shadow: 0 6px 18px -4px rgba(217, 166, 58, 0.6),
inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.btn-gold:hover {
background: linear-gradient(135deg, #f0cd76 0%, #e0af44 100%);
box-shadow: 0 12px 26px -6px rgba(217, 166, 58, 0.68),
inset 0 1px 0 rgba(255, 255, 255, 0.42);
}
.btn-gold:active {
box-shadow: 0 3px 10px -3px rgba(217, 166, 58, 0.55),
inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.btn-ghost {
background: #fff;
border-color: var(--blue);
color: var(--blue);
box-shadow: 0 2px 6px rgba(17, 45, 78, 0.07);
}
.btn-quiet {
background: transparent;
border-color: var(--line);
color: var(--text);
box-shadow: none;
}
.btn-quiet:hover,
.btn-quiet:focus-visible {
background: var(--panel-soft);
border-color: var(--blue);
color: var(--ink-strong);
box-shadow: none;
}
.btn-ghost:hover {
background: #eef4fb;
border-color: var(--navy);
color: var(--ink-strong);
box-shadow: 0 8px 18px -5px rgba(45, 110, 180, 0.32);
}
.btn-ghost:active { box-shadow: 0 1px 4px rgba(17, 45, 78, 0.1); }
.btn-secondary {
background: rgba(255, 255, 255, 0.14);
border-color: rgba(255, 255, 255, 0.42);
color: #fff;
backdrop-filter: blur(6px);
}
.btn-secondary:hover {
background: rgba(255, 255, 255, 0.19);
border-color: rgba(255, 255, 255, 0.55);
box-shadow: 0 10px 22px -8px rgba(0, 0, 0, 0.45);
}
.btn-secondary:active { box-shadow: 0 2px 8px -4px rgba(0, 0, 0, 0.4); }
@media (prefers-reduced-motion: reduce) {
.btn { transition: background 0.15s ease, border-color 0.15s ease; }
.btn:hover, .btn:active { transform: none; }
}
.chip,
.chip-back,
.skill-btn,
.study-tab,
.paper-tab,
.exam-back,
.kanji-nav,
.kanji-char,
.words-btn,
.flag-btn,
.lvcard,
.to-top,
.language-select {
cursor: pointer;
transition: background 0.16s ease, border-color 0.16s ease,
color 0.16s ease, box-shadow 0.16s ease,
transform 0.12s ease;
}
@media (min-width: 761px) {
.language-select select { min-width: 10.2em; }
}
.chip:active,
.chip-back:active,
.skill-btn:active,
.study-tab:active,
.paper-tab:active,
.exam-back:active,
.kanji-nav:active,
.kanji-char:active,
.words-btn:active,
.flag-btn:active,
.to-top:active { transform: scale(0.96); }
.lvcard:active { transform: scale(0.995); }
:where(a, button, select, input, summary, [tabindex]):focus-visible {
outline: 3px solid var(--blue);
outline-offset: 2px;
border-radius: 10px;
}
.hero-section :where(a, button, select, input):focus-visible,
.exam-hero :where(a, button, select, input):focus-visible,
.exams-hero :where(a, button, select, input):focus-visible {
outline-color: var(--gold);
}
@media (prefers-reduced-motion: reduce) {
.chip:active, .chip-back:active, .skill-btn:active, .study-tab:active,
.paper-tab:active, .exam-back:active, .kanji-nav:active, .kanji-char:active,
.words-btn:active, .flag-btn:active, .to-top:active, .lvcard:active { transform: none; }
}
.hero-section {
padding: clamp(34px, 4.4vw, 64px) 0 clamp(26px, 2.6vw, 38px);
background: linear-gradient(135deg, #112d4e 0%, #183765 38%, #2d6eb4 100%);
color: white;
}
.hero-grid {
display: grid;
grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.85fr);
gap: clamp(24px, 3vw, 48px);
align-items: center;
}
.hero-countdown {
margin-top: 22px;
padding: 12px 0 12px 16px;
border-left: 3px solid var(--gold);
}
.hero-countdown p { margin: 0; }
.hero-countdown .cal-head {
color: rgba(255, 255, 255, 0.66);
text-transform: uppercase;
letter-spacing: 0.12em;
font-size: 0.68rem;
font-weight: 700;
line-height: 1.4;
}
.hero-countdown .cal-date {
margin-top: 3px;
color: #fff;
font-size: 1.12rem;
font-weight: 600;
line-height: 1.4;
}
.hero-countdown .cal-count {
margin-top: 2px;
color: var(--gold);
font-size: 0.95rem;
font-weight: 600;
line-height: 1.4;
font-variant-numeric: lining-nums tabular-nums;
}
.hero-countdown .cal-note {
margin-top: 7px;
max-width: 46ch;
color: rgba(255, 255, 255, 0.62);
font-size: 0.78rem;
line-height: 1.55;
}
.hero-countdown .cal-link {
color: rgba(255, 255, 255, 0.85);
text-decoration: underline;
text-decoration-color: rgba(255, 255, 255, 0.4);
text-underline-offset: 3px;
white-space: nowrap;
}
.hero-countdown .cal-link:hover {
color: #fff;
text-decoration-color: var(--gold);
}
@media (max-width: 640px) {
.hero-countdown { margin-top: 18px; padding-left: 13px; }
.hero-countdown .cal-date { font-size: 1.02rem; }
}
.hero-levels {
display: grid;
gap: 4px;
padding: 16px;
background: rgba(255, 255, 255, 0.07);
border: 1px solid rgba(255, 255, 255, 0.16);
border-radius: 20px;
backdrop-filter: blur(6px);
-webkit-backdrop-filter: blur(6px);
}
.hero-levels-head {
margin-bottom: 6px;
padding: 0 8px;
color: rgba(255, 255, 255, 0.72);
text-transform: uppercase;
letter-spacing: 0.12em;
font-size: 0.7rem;
font-weight: 700;
}
.hero-level {
display: grid;
grid-template-columns: 2.6rem minmax(0, 1fr) auto;
align-items: center;
gap: 10px;
padding: 7px 10px;
border-radius: 12px;
color: rgba(255, 255, 255, 0.88);
text-decoration: none;
transition: 0.18s cubic-bezier(.34, 1.56, .64, 1);
}
.hero-level b {
font-family: var(--font-display);
font-size: 1.2rem;
font-weight: 700;
color: #fff;
font-variant-numeric: lining-nums;
}
.hero-level span {
font-size: 0.82rem;
line-height: 1.35;
color: rgba(255, 255, 255, 0.78);
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
white-space: normal;
}
.hero-level i {
font-style: normal;
opacity: 0;
transform: translateX(-4px);
transition: 0.18s ease;
}
.hero-level:hover {
background: rgba(255, 255, 255, 0.13);
color: #fff;
}
.hero-level:hover i { opacity: 0.9; transform: translateX(0); }
.hero-level:focus-visible {
outline: 2px solid #fff;
outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
.hero-level, .hero-level i { transition: none; }
}
@media (max-width: 900px) {
.hero-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
.hero-actions .btn { flex: 1 1 0; min-width: 0; }
}
@media (max-width: 640px) {
.hero-levels {
display: flex;
flex-wrap: wrap;
gap: 8px;
padding: 14px;
}
.hero-levels-head {
flex-basis: 100%;
margin-bottom: 0;
padding: 0;
}
.hero-level {
flex: 1 1 0;
min-width: 0;
display: flex;
justify-content: center;
padding: 11px 4px;
background: rgba(255, 255, 255, 0.1);
border: 1px solid rgba(255, 255, 255, 0.18);
}
.hero-level span,
.hero-level i { display: none; }
.hero-level b { font-size: 1.08rem; }
.hero-level:hover { background: rgba(255, 255, 255, 0.2); }
}
.eyebrow {
display: inline-block;
padding: 8px 12px;
border-radius: 999px;
background: rgba(255, 255, 255, 0.08);
border: 1px solid rgba(255, 255, 255, 0.15);
color: #e7f0ff;
text-transform: uppercase;
letter-spacing: 0.12em;
font-size: 0.72rem;
font-weight: 700;
}
.hero-copy h1 {
margin: 0 0 12px;
max-width: 24ch;
font-size: clamp(2.3rem, 3.2vw, 3.7rem);
line-height: 0.98;
text-wrap: balance;
font-family: var(--font-display);
font-weight: 700;
}
.hero-copy p {
margin: 4px 0 0;
max-width: 62ch;
font-size: 1.06rem;
line-height: 1.7;
color: rgba(255, 255, 255, 0.88);
}
.hero-actions {
display: flex;
flex-wrap: wrap;
gap: 12px;
margin-top: 30px;
}
.level-section,
.page-shell {
padding-top: var(--sp-section);
padding-bottom: var(--sp-section);
}
.levels-page .page-shell { min-height: 100vh; }
#kanjiView { min-height: 100vh; }
.level-card {
background: var(--panel);
border: 1px solid var(--line);
border-radius: 22px;
box-shadow: 0 10px 24px rgba(17, 45, 78, 0.04);
}
.page-intro p,
.section-header p {
color: var(--muted);
margin: 0;
line-height: 1.7;
}
.section-header {
margin-bottom: 18px;
}
.section-header h2,
.page-intro h1 {
margin: 0 0 10px;
color: var(--ink-strong);
font-size: clamp(2rem, 3vw, 2.8rem);
font-family: var(--font-display);
}
.level-header-row {
display: flex;
justify-content: space-between;
align-items: end;
gap: 12px;
}
.text-link {
color: var(--ink-strong);
font-weight: 700;
}
.level-grid {
display: grid;
grid-template-columns: repeat(5, minmax(0, 1fr));
gap: clamp(12px, 1.1vw, 18px);
}
.level-card {
display: flex;
flex-direction: column;
justify-content: space-between;
min-height: 200px;
padding: 18px 16px;
transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.level-card:hover {
transform: translateY(-2px);
box-shadow: 0 16px 28px rgba(17, 45, 78, 0.08);
}
.level-code {
font-size: clamp(2rem, 2vw, 3rem);
color: var(--ink-strong);
font-weight: 800;
line-height: 1;
}
.level-desc {
color: var(--muted);
line-height: 1.6;
margin-top: 10px;
font-size: 0.92rem;
}
.level-n1 { background: linear-gradient(180deg, #f8fbff, #edf4ff); }
.level-n2 { background: linear-gradient(180deg, #f8fbff, #eef6f3); }
.level-n3 { background: linear-gradient(180deg, #fffaf3, #fff4d8); }
.level-n4 { background: linear-gradient(180deg, #f9f7ff, #f1ecff); }
.level-n5 { background: linear-gradient(180deg, #f6fbf9, #eafaf2); }
.page-intro {
padding-top: clamp(24px, 2.6vw, 42px);
max-width: 68ch;
}
.page-intro:first-child { padding-top: 0; }
.page-intro:first-child h1 { margin-top: -0.2em; }
.to-top {
position: fixed;
right: calc(18px + env(safe-area-inset-right, 0px));
bottom: calc(18px + env(safe-area-inset-bottom, 0px));
z-index: 45;
display: grid;
place-items: center;
width: 48px;
height: 48px;
padding: 0;
background: var(--navy);
color: #fff;
border: 0;
border-radius: 50%;
box-shadow: 0 10px 26px rgba(17, 45, 78, 0.28);
cursor: pointer;
opacity: 0;
visibility: hidden;
transform: translateY(10px) scale(0.94);
transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
}
.to-top.is-on {
opacity: 1;
visibility: visible;
transform: none;
}
.to-top span {
font-size: 1.5rem;
line-height: 1;
margin-top: -3px;
}
.to-top:hover { background: var(--blue); }
.to-top:focus-visible {
outline: 3px solid var(--gold);
outline-offset: 3px;
}
@media (max-width: 560px) {
.to-top { width: 44px; height: 44px; right: 14px; bottom: 14px; }
}
@media (max-width: 560px) {
.brand-tag { display: none; }
}
@media (prefers-reduced-motion: reduce) {
.to-top { transition: none; }
}
.site-footer {
margin-top: 40px;
padding: 34px 0 0;
background: var(--navy);
color: #cdd8e6;
}
.footer-grid {
display: grid;
gap: 26px 40px;
grid-template-columns: minmax(0, 1fr);
padding-bottom: 26px;
}
@media (min-width: 360px) {
.footer-grid {
grid-template-columns: repeat(3, minmax(0, 1fr));
column-gap: clamp(14px, 3vw, 40px);
}
.footer-brand { grid-column: 1 / -1; }
}
@media (min-width: 620px) {
.footer-brand { grid-column: auto; }
}
@media (max-width: 359px) {
.footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.footer-brand { grid-column: 1 / -1; }
}
@media (min-width: 900px) {
.footer-grid {
grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
}
}
.footer-mark-wrap {
display: inline-flex;
align-items: center;
gap: 10px;
color: #fff;
text-decoration: none;
}
.footer-mark {
display: grid;
place-items: center;
width: 38px;
height: 38px;
border-radius: 11px;
background: #fff;
color: var(--ink-strong);
font-weight: 800;
font-size: 0.9rem;
letter-spacing: 0.02em;
}
.footer-name { font-weight: 700; font-size: 1.05rem; }
.footer-tagline {
margin: 14px 0 0;
max-width: 34ch;
font-size: 0.9rem;
line-height: 1.6;
color: #9fb0c6;
}
.footer-levels {
display: flex;
flex-wrap: wrap;
gap: 8px;
margin-top: 18px;
}
.footer-level {
min-width: 44px;
padding: 6px 12px;
border: 1px solid rgba(255, 255, 255, 0.16);
border-radius: 999px;
background: rgba(255, 255, 255, 0.06);
color: var(--accent, #cdd8e6);
font-weight: 800;
font-size: 0.82rem;
letter-spacing: 0.05em;
text-align: center;
text-decoration: none;
transition: 0.16s ease;
}
.footer-level:hover,
.footer-level:focus-visible {
border-color: var(--accent, #fff);
background: rgba(255, 255, 255, 0.12);
}
.footer-level.level-n5 { --accent: #b9c6d8; }
.footer-level.level-n4 { --accent: #c49bf0; }
.footer-level.level-n3 { --accent: #74cfa2; }
.footer-level.level-n2 { --accent: #85b8ec; }
.footer-level.level-n1 { --accent: #e5bd63; }
.footer-col { display: flex; flex-direction: column; align-items: flex-start; }
.footer-head {
margin: 0 0 14px;
font-family: var(--font-sans);
font-size: 0.95rem;
font-weight: 700;
color: #fff;
}
.footer-col a {
padding: 6px 0;
color: #cdd8e6;
font-size: 0.9rem;
line-height: 1.45;
text-decoration: none;
}
.footer-col a:hover,
.footer-col a:focus-visible { color: #fff; text-decoration: underline; }
.footer-legal { background: #0c2038; }
.footer-bottom {
display: flex;
flex-wrap: wrap;
justify-content: center;
text-align: center;
gap: 8px 20px;
padding: 13px 0;
font-size: 0.85rem;
color: #8fa2ba;
}
.lang-links {
display: flex;
flex-wrap: wrap;
align-items: baseline;
gap: 6px 14px;
padding: 14px 0 16px;
border-top: 1px solid rgba(255, 255, 255, 0.14);
font-size: 0.82rem;
color: #8fa2ba;
}
.lang-links > span { font-weight: 600; color: #fff; }
.lang-links ul {
display: flex;
flex-wrap: wrap;
gap: 6px 14px;
list-style: none;
margin: 0;
padding: 0;
}
.lang-links a {
display: inline-block;
padding: 4px 2px;
color: #9fb0c6;
}
.lang-links a:hover { color: #fff; }
.lang-links a:hover,
.lang-links a:focus-visible { color: var(--blue); text-decoration: underline; }
@media (max-width: 1100px) {
.main-nav {
flex-wrap: nowrap;
overflow-x: auto;
gap: 6px;
scrollbar-width: none;
-webkit-overflow-scrolling: touch;
}
.main-nav::-webkit-scrollbar { display: none; }
.main-nav a {
flex: none;
padding: 8px 11px;
}
}
@media (min-width: 1560px) {
.level-card { min-height: 226px; }
}
@media (max-width: 1180px) {
.level-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1180px) {
.nav-tools > .btn { display: none; }
.language-select > span { display: none; }
.language-select { padding: 8px 12px; }
}
@media (max-width: 1040px) {
.hero-grid {
grid-template-columns: minmax(0, 1fr);
align-items: start;
}
}
@media (max-width: 820px) {
.level-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.level-card { min-height: 150px; }
}
@media (max-width: 760px) {
.level-header-row {
flex-direction: column;
align-items: flex-start;
}
.nav-wrap {
flex-wrap: wrap;
align-items: center;
row-gap: 8px;
}
.brand-wrap { flex: 1 1 0; min-width: 0; }
.brand-text { min-width: 0; }
.brand-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-tag { overflow: hidden; text-overflow: ellipsis; }
.nav-tools { flex: 0 0 auto; }
.main-nav {
order: 3;
flex-basis: 100%;
}
.main-nav {
width: 100%;
flex-wrap: nowrap;
overflow-x: auto;
gap: 6px;
scrollbar-width: none;
-webkit-overflow-scrolling: touch;
}
.main-nav {
--nav-pad: 11px;
margin-left: calc(-1 * var(--nav-pad));
width: calc(100% + var(--nav-pad));
flex-basis: calc(100% + var(--nav-pad));
justify-content: space-between;
}
.main-nav::-webkit-scrollbar { display: none; }
.main-nav a {
flex: none;
padding: 8px 11px;
font-size: 0.9rem;
}
.hero-copy h1 { max-width: 100%; }
}
@media (max-width: 560px) {
.level-grid {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
.level-card { min-height: 128px; padding: 14px; }
.level-code { font-size: 1.7rem; }
.level-desc { font-size: 0.84rem; }
}
.fact-grid {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 10px;
}
.fact {
padding: 12px 14px;
background: var(--panel-soft);
border-radius: 12px;
}
.fact span {
display: block;
font-size: 0.68rem;
font-weight: 700;
letter-spacing: 0.08em;
text-transform: uppercase;
color: var(--muted);
margin-bottom: 4px;
}
.fact strong {
font-size: 1.15rem;
color: var(--ink-strong);
font-variant-numeric: lining-nums tabular-nums;
}
.level-progress-grid {
display: grid;
gap: 14px;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
margin-bottom: 32px;
}
.level-progress-card {
padding: 20px;
background: var(--panel);
border: 1px solid var(--line);
border-radius: 18px;
}
.lp-head {
display: flex;
align-items: baseline;
justify-content: space-between;
}
.lp-head h3 {
margin: 0;
font-family: var(--font-display);
font-size: 1.7rem;
color: var(--ink-strong);
}
.lp-head strong {
font-size: 1.3rem;
color: var(--success);
text-align: right;
font-variant-numeric: lining-nums tabular-nums;
}
.lp-head strong em {
display: block;
font-style: normal;
font-size: 0.64rem;
font-weight: 700;
letter-spacing: 0.09em;
text-transform: uppercase;
color: var(--muted);
}
.lp-bar {
height: 8px;
border-radius: 999px;
background: var(--line);
margin: 12px 0;
overflow: hidden;
}
.lp-fill { height: 100%; background: var(--success); border-radius: 999px; }
.lp-meta { font-size: 0.82rem; color: var(--muted); }
.lp-actions { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.lp-actions .btn { padding: 9px 16px; font-size: 0.82rem; }
.section-score-grid {
display: grid;
gap: 12px;
grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}
.section-score {
--accent: var(--blue);
padding: 18px;
background: var(--panel);
border: 1px solid var(--line);
border-top: 3px solid var(--accent);
border-radius: 14px;
text-align: center;
}
.section-score .score {
font-size: 1.9rem;
font-weight: 800;
color: var(--accent);
font-family: var(--font-display);
}
.section-score .label { font-weight: 700; color: var(--ink-strong); font-size: 0.9rem; }
.section-score .meta { font-size: 0.78rem; color: var(--muted); margin-top: 4px; }
.stats-empty {
padding: 36px;
text-align: center;
color: var(--muted);
background: var(--panel);
border: 1px dashed var(--line);
border-radius: 18px;
}
.about-plain {
max-width: 68ch;
line-height: 1.8;
color: var(--muted);
}
.about-plain p { margin: 0 0 16px; }
@media (max-width: 620px) {
.fact-grid { grid-template-columns: 1fr; }
}
.brand-wrap { text-decoration: none; color: inherit; cursor: pointer; }
.brand-text { display: flex; flex-direction: column; }
.brand-mark { position: relative; overflow: visible; }
.brand-wrap:hover .brand-mark { transform: translateY(-1px); }
.brand-mark, .brand-name {
transition: transform .28s cubic-bezier(.34, 1.56, .64, 1), color .2s;
}
.brand-wrap.is-pressed .brand-mark { animation: brand-pop .58s cubic-bezier(.34, 1.56, .64, 1); }
.brand-wrap.is-pressed .brand-name { animation: brand-shift .58s ease; }
.brand-mark::after {
content: "";
position: absolute; inset: 0;
border-radius: 12px;
border: 2px solid var(--blue);
opacity: 0;
pointer-events: none;
}
.brand-wrap.is-pressed .brand-mark::after { animation: brand-ring .58s ease-out; }
@keyframes brand-pop {
0% { transform: scale(1) rotate(0deg); }
28% { transform: scale(.9) rotate(-7deg); }
62% { transform: scale(1.09) rotate(4deg); }
100% { transform: scale(1) rotate(0deg); }
}
@keyframes brand-shift {
0% { transform: translateX(0); }
32% { transform: translateX(4px); }
100% { transform: translateX(0); }
}
@keyframes brand-ring {
0% { opacity: .85; transform: scale(1); }
100% { opacity: 0; transform: scale(1.85); }
}
body { transition: opacity .24s ease; }
body.is-leaving { opacity: 0; }
@media (prefers-reduced-motion: reduce) {
.brand-wrap.is-pressed .brand-mark,
.brand-wrap.is-pressed .brand-name,
.brand-wrap.is-pressed .brand-mark::after { animation: none; }
body, body.is-leaving { transition: none; opacity: 1; }
}
.intro-guides {
display: flex;
flex-wrap: wrap;
align-items: baseline;
gap: 6px 14px;
margin: 14px 0 0;
font-size: 0.88rem;
color: var(--muted);
}
.intro-guides a {
color: var(--blue);
font-weight: 600;
text-decoration: underline;
text-underline-offset: 3px;
text-decoration-color: rgba(45, 110, 180, 0.35);
}
.intro-guides a:hover { color: var(--ink-strong); text-decoration-color: currentColor; }
.intro-guides em { font-style: normal; font-size: 0.8rem; opacity: 0.75; }
.guide-page { --measure: 43rem; }
.guide { max-width: var(--measure); margin-left: auto; margin-right: auto; }
.guide-page .page-back {
position: relative;
left: max(0px, calc((100% - var(--measure)) / 2));
}
.guide-kicker {
margin: 0 0 8px;
font-size: 0.72rem;
font-weight: 800;
letter-spacing: 0.14em;
text-transform: uppercase;
color: var(--blue);
}
.guide h1 {
margin: 0 0 14px;
font-family: var(--font-display);
font-size: clamp(2rem, 3.4vw, 2.9rem);
line-height: 1.08;
color: var(--ink-strong);
}
.guide-note {
margin: -14px 0 26px;
font-size: 0.84rem;
line-height: 1.55;
color: var(--muted);
}
.guide-note a { color: var(--blue); font-weight: 600; }
.guide-standfirst {
margin: 0 0 30px;
font-size: 1.14rem;
line-height: 1.65;
color: var(--ink-soft, #4a5768);
padding-bottom: 22px;
border-bottom: 1px solid var(--line);
}
.guide h2 {
margin: 38px 0 12px;
font-family: var(--font-display);
font-size: clamp(1.35rem, 2vw, 1.7rem);
color: var(--ink-strong);
}
.guide p { margin: 0 0 16px; line-height: 1.75; color: var(--text); }
.guide strong { color: var(--ink-strong); font-weight: 700; }
.guide-list { margin: 0 0 18px; padding-left: 22px; }
.guide-list li { margin-bottom: 9px; line-height: 1.72; }
.guide-table-wrap { overflow-x: auto; margin: 0 0 22px; }
.guide-table {
width: 100%;
border-collapse: collapse;
font-size: 0.93rem;
min-width: 460px;
}
.guide-table th, .guide-table td {
padding: 10px 14px;
text-align: left;
border-bottom: 1px solid var(--line);
vertical-align: top;
}
.guide-table thead th {
font-size: 0.74rem;
letter-spacing: 0.08em;
text-transform: uppercase;
color: var(--muted);
border-bottom-width: 2px;
}
.guide-table td:first-child { font-weight: 700; color: var(--ink-strong); white-space: nowrap; }
.guide-cta {
margin: 42px 0 0;
padding: 22px 24px;
background: var(--panel-2, #f3f7fc);
border: 1px solid var(--line);
border-left: 4px solid var(--gold);
border-radius: 16px;
}
.guide-cta h2 { margin: 0 0 8px; font-size: 1.2rem; }
.guide-cta p { margin: 0 0 16px; font-size: 0.95rem; }
.guide-cta-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.guide-hub { max-width: none; }
.guide-hub > p:not(.guide-standfirst) { max-width: 68ch; }
.guide-hub .guide-index { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.guide-hub .guide-index a { height: 100%; box-sizing: border-box; padding: 20px 22px; }
.guide-hub .guide-cta {
display: grid;
grid-template-columns: minmax(0, 1fr) auto;
grid-template-areas: "h a" "p a";
align-items: center;
column-gap: 32px;
}
.guide-hub .guide-cta h2 { grid-area: h; }
.guide-hub .guide-cta p { grid-area: p; margin: 0; }
.guide-hub .guide-cta-actions { grid-area: a; }
@media (max-width: 900px) {
.guide-hub .guide-index { grid-template-columns: 1fr; }
.guide-hub .guide-cta { grid-template-columns: 1fr; grid-template-areas: "h" "p" "a"; row-gap: 0; }
.guide-hub .guide-cta p { margin: 0 0 16px; }
}
.guide-index { margin: 26px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.guide-index li {
border: 1px solid var(--line);
border-radius: 14px;
background: var(--panel);
transition: border-color 0.16s ease, box-shadow 0.16s ease;
}
.guide-index li:hover { border-color: var(--blue); box-shadow: 0 8px 20px -12px rgba(17,45,78,0.4); }
.guide-index a { display: block; padding: 16px 18px; }
.guide-index b { display: block; margin-bottom: 4px; font-size: 1.05rem; color: var(--ink-strong); }
.guide-index li:hover b { color: var(--blue); }
.guide-index span { font-size: 0.9rem; line-height: 1.55; color: var(--muted); }
.guide-more { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); }
.guide-more h2 { margin: 0 0 12px; font-size: 1.1rem; }
.guide-more ul { margin: 0; padding-left: 22px; }
.guide-more li { margin-bottom: 7px; }
.guide-more a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.guide-more a:hover { color: var(--ink-strong); }
@media (max-width: 640px) {
.guide-cta { padding: 18px; }
.guide-cta-actions .btn { flex: 1; justify-content: center; }
}
.notice-section { padding: 26px 0 var(--sp-section); }
.notice-card {
background: #fff;
border: 1px solid var(--line, #e3e8ef);
border-left: 4px solid var(--gold, #d9a63a);
border-radius: 14px;
padding: 22px 24px;
box-shadow: 0 1px 3px rgba(16, 32, 56, .06);
}
.notice-head {
display: grid;
grid-template-columns: 1.2em minmax(0, 1fr);
gap: 0 6px;
cursor: pointer;
list-style: none;
}
.notice-head::-webkit-details-marker { display: none; }
.notice-head::before {
content: "+";
grid-row: 1 / span 2;
font-weight: 800;
font-size: 1.1rem;
line-height: 1.3;
color: var(--gold, #d9a63a);
}
.notice-card[open] > .notice-head::before { content: "\2212"; }
.notice-head h2 { margin: 0; font-size: 1.12rem; color: var(--ink-strong); }
.notice-head span { font-size: .88rem; color: var(--muted); }
.notice-head:hover h2 { color: var(--blue); }
.notice-body { margin-top: 18px; }
.notice-table-wrap { overflow-x: auto; }
.notice-table {
width: 100%;
min-width: 560px;
table-layout: fixed;
border-collapse: collapse;
font-size: .9rem;
}
.notice-table th:nth-child(1) { width: 10%; }
.notice-table th:nth-child(2) { width: 24%; }
.notice-table th:nth-child(3) { width: 33%; }
.notice-table th:nth-child(4) { width: 33%; }
.notice-table th, .notice-table td {
padding: 9px 12px; text-align: left;
border-bottom: 1px solid var(--line, #e3e8ef);
white-space: nowrap;
}
.notice-table thead th {
font-size: .74rem; letter-spacing: .05em; text-transform: uppercase;
color: var(--muted); font-weight: 700;
}
.notice-table tbody th { font-weight: 800; color: var(--ink-strong); width: 1%; }
.notice-table tbody tr:last-child th,
.notice-table tbody tr:last-child td { border-bottom: 0; }
.notice-table tr.is-empty td { color: var(--muted); font-style: italic; }
.notice-bad { color: #b4462f; font-weight: 600; }
.notice-part { color: #8a6a1e; font-weight: 600; }
.notice-dim { color: var(--muted); }
.notice-foot {
display: grid; gap: 18px;
grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
margin-top: 20px; padding-top: 18px;
border-top: 1px solid var(--line, #e3e8ef);
}
.notice-item h3 {
margin: 0 0 6px; font-size: .8rem; font-weight: 700;
letter-spacing: .04em; text-transform: uppercase; color: var(--ink-strong);
}
.notice-item p { margin: 0 0 6px; font-size: .85rem; color: var(--muted); line-height: 1.55; }
.notice-item a { color: var(--blue); font-weight: 600; }
.notice-help { padding: 14px 16px; background: #fdf9ef; border-radius: 10px; }
.notice-help h3 { color: #8a6a1e; }
@media (max-width: 700px) {
.notice-card { padding: 18px 16px; }
.notice-table th, .notice-table td { padding: 8px 9px; }
}
.about-rights {
margin-top: 26px;
padding: 18px 20px;
background: #fbfcfe;
border: 1px solid var(--line);
border-left: 3px solid var(--navy);
border-radius: 0 12px 12px 0;
text-align: left;
font-size: 0.84rem;
line-height: 1.7;
}
.about-rights h2 {
margin: 0 0 8px;
font-size: 0.9rem;
color: var(--ink-strong);
}
.about-rights p { margin: 0 0 10px; }
.about-rights p:last-child { margin-bottom: 0; }
.about-credits { border-top: 1px solid var(--line, #e3e8ef); padding-top: 20px; }
.about-credits h2 { font-size: .95rem; color: var(--ink-strong); margin: 0 0 8px; }
.about-credits p { font-size: .85rem; color: var(--muted); line-height: 1.6; }
@media (min-width: 1024px) and (max-height: 900px) {
:root {
--sp-section: 30px;
--card-pad: 20px;
}
.nav-wrap { padding: 11px 0; }
.brand-mark { width: 36px; height: 36px; }
.hero-section { padding: 32px 0 24px; }
.hero-copy h1 {
margin: 12px 0 10px;
font-size: clamp(2.1rem, 2.5vw, 2.9rem);
}
.hero-copy p { font-size: 1rem; line-height: 1.62; }
.hero-actions { margin-top: 18px; }
.section-header h2,
.page-intro h1 { font-size: clamp(1.7rem, 2.2vw, 2.2rem); }
.level-card { min-height: 164px; padding: 16px; }
.level-code { font-size: 2.1rem; }
.notice-section { padding: 20px 0 4px; }
.notice-card { padding: 18px 20px; }
}
@media (min-width: 1024px) and (max-height: 760px) {
:root { --sp-section: 24px; }
.hero-section { padding: 24px 0 20px; }
.hero-copy h1 { font-size: 2rem; margin: 8px 0; }
.hero-copy p { font-size: 0.95rem; }
.hero-actions { margin-top: 14px; }
.level-card { min-height: 140px; }
}
.about-intro { max-width: 64ch; }
.about-plain { text-align: left; }
.about-lede { max-width: 64ch; margin-top: 22px; }
.about-notices {
display: grid;
grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
gap: clamp(20px, 2.4vw, 34px);
align-items: start;
margin-top: 34px;
padding-top: 26px;
border-top: 1px solid var(--line);
}
.about-notes-col { display: grid; gap: 18px; align-content: start; }
.about-notices .about-plain {
line-height: 1.62;
font-size: 0.83rem;
}
.about-notices .about-plain p { margin: 0 0 11px; }
.about-notices .about-plain p:last-child { margin-bottom: 0; }
.about-notices .about-credits {
border-top: 0;
padding: 18px 20px;
background: var(--panel);
border: 1px solid var(--line);
border-radius: 12px;
}
.about-notices .about-rights { margin-top: 0; }
.about-hosting {
padding: 0 20px 0 0;
font-size: 0.85rem;
line-height: 1.6;
color: var(--muted);
}
.about-hosting p { margin: 0; }
@media (max-width: 860px) {
.about-notices { grid-template-columns: minmax(0, 1fr); }
}
.about-page .about-credits {
margin-top: 34px;
padding-top: 24px;
}
.practice-levels {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: clamp(14px, 1.4vw, 20px);
}
.plevel {
display: flex;
flex-direction: column;
padding: var(--card-pad);
background: var(--panel);
border: 1px solid var(--line);
border-top: 4px solid var(--accent, var(--blue));
border-radius: 20px;
box-shadow: 0 10px 24px rgba(17, 45, 78, 0.04);
transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.plevel.level-n1 { --accent: var(--gold-ink); }
.plevel.level-n2 { --accent: #2d6eb4; }
.plevel.level-n3 { --accent: #2f7d57; }
.plevel.level-n4 { --accent: #7c3ac8; }
.plevel.level-n5 { --accent: #5c697a; }
.plevel.is-target {
border-color: var(--accent, var(--blue));
box-shadow: 0 0 0 3px rgba(45, 110, 180, 0.14), 0 12px 28px rgba(17, 45, 78, 0.10);
}
.plevel-head {
display: flex;
align-items: flex-start;
justify-content: space-between;
gap: 14px;
}
.plevel-code {
font-family: var(--font-display);
font-size: clamp(2rem, 2.6vw, 2.7rem);
font-weight: 700;
color: var(--accent, var(--navy));
line-height: 1;
}
.plevel-score { text-align: right; }
.plevel-score em {
display: block;
margin-bottom: 3px;
font-style: normal;
font-size: 0.64rem;
font-weight: 700;
letter-spacing: 0.09em;
text-transform: uppercase;
color: var(--muted);
}
.plevel-score strong {
display: block;
font-size: 1.3rem;
line-height: 1;
color: var(--success);
font-variant-numeric: lining-nums tabular-nums;
}
.plevel-score span { font-size: 0.74rem; color: var(--muted); }
.plevel-score.is-empty span { font-style: italic; }
.plevel-desc {
margin: 10px 0 14px;
color: var(--muted);
line-height: 1.55;
min-height: 2.9em;
}
.plevel-bar {
height: 6px;
border-radius: 999px;
background: var(--line);
overflow: hidden;
margin-bottom: 14px;
}
.plevel-bar-fill { height: 100%; background: var(--success); border-radius: 999px; }
.plevel-facts {
display: grid;
grid-template-columns: repeat(4, minmax(0, 1fr));
margin: 0 0 18px;
border-top: 1px solid var(--line);
border-bottom: 1px solid var(--line);
}
.plevel-facts div {
padding: 11px 0 11px 12px;
border-left: 1px solid var(--line);
}
.plevel-facts div:first-child { padding-left: 0; border-left: 0; }
.plevel-facts dt {
font-size: 0.6rem;
font-weight: 700;
letter-spacing: 0.07em;
text-transform: uppercase;
color: var(--muted);
}
.plevel-facts dd {
margin: 3px 0 0;
font-weight: 700;
color: var(--ink-strong);
font-size: 0.95rem;
font-variant-numeric: lining-nums tabular-nums;
}
.plevel-skills {
display: grid;
grid-template-columns: repeat(4, minmax(0, 1fr));
gap: 6px;
margin-bottom: 16px;
}
.skill-btn {
padding: 10px 6px;
border: 1px solid transparent;
border-radius: 999px;
background: var(--panel-soft);
color: var(--ink-strong);
font-weight: 600;
font-size: 0.82rem;
cursor: pointer;
transition: 0.16s ease;
}
.skill-btn:hover {
background: #e6eff9;
border-color: #b9d3ec;
color: var(--blue);
box-shadow: 0 4px 10px -4px rgba(45, 110, 180, 0.4);
}
.plevel-foot {
display: flex;
align-items: center;
gap: 10px;
flex-wrap: wrap;
margin-top: auto;
}
.plevel-foot .btn { font-size: 0.86rem; padding: 10px 16px; }
.plevel-links {
display: flex;
flex-wrap: wrap;
gap: 4px 18px;
}
.plevel-links a {
display: inline-flex;
align-items: center;
min-height: 40px;
color: var(--blue);
font-size: 0.86rem;
font-weight: 600;
text-decoration: none;
}
.plevel-links a:hover,
.plevel-links a:focus-visible { text-decoration: underline; }
.plevel-note { margin: 10px 0 0; font-size: 0.76rem; color: var(--muted); }
.plevel-msg {
margin: 10px 0 0;
padding: 11px 13px;
background: #fdf9ef;
border: 1px solid rgba(217, 166, 58, 0.3);
border-radius: 10px;
font-size: 0.83rem;
color: #7a5f19;
line-height: 1.5;
}
.plevel-msg a { color: var(--blue); font-weight: 700; text-decoration: underline; }
.plevel-msg.is-flash { animation: msg-in 0.35s ease; }
@keyframes msg-in {
from { opacity: 0; transform: translateY(-4px); }
to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
.plevel-msg.is-flash { animation: none; }
}
@media (max-width: 1040px) {
.practice-levels { grid-template-columns: minmax(0, 1fr); }
.plevel-desc { min-height: 0; }
}
@media (max-width: 560px) {
.plevel-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.plevel-facts div:nth-child(odd) { padding-left: 0; border-left: 0; }
.plevel-facts div:nth-child(n + 3) { border-top: 1px solid var(--line); }
.plevel-facts dd { font-size: 0.9rem; }
.plevel-skills { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.plevel-foot .btn { width: 100%; }
.plevel-links { width: 100%; justify-content: space-between; gap: 4px 12px; }
}
.features-section { padding-top: var(--sp-section); }
.feature-stat-grid {
display: grid;
grid-template-columns: repeat(6, minmax(0, 1fr));
gap: clamp(10px, 1.1vw, 16px);
}
.feature-stat {
position: relative;
display: flex;
flex-direction: column;
gap: 2px;
padding: 18px 16px 16px;
background: var(--panel);
border: 1px solid var(--line);
border-top: 3px solid var(--accent, var(--blue));
border-radius: 16px;
box-shadow: 0 6px 18px rgba(17, 45, 78, 0.05);
}
.feature-stat strong {
font-family: var(--font-display);
font-size: clamp(1.7rem, 2.2vw, 2.3rem);
line-height: 1;
color: var(--accent, var(--navy));
font-variant-numeric: lining-nums tabular-nums;
}
.feature-stat-label {
margin-top: 6px;
font-weight: 700;
font-size: 0.88rem;
color: var(--ink-strong);
}
.feature-stat-sub {
font-size: 0.74rem;
line-height: 1.45;
color: var(--muted);
}
@media (max-width: 1080px) {
.feature-stat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
.feature-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.feature-stat { padding: 14px 13px 13px; }
}
.notice-words {
margin: 14px 0 0;
padding: 12px 16px;
background: #f3f8ff;
border-left: 3px solid var(--blue);
border-radius: 0 10px 10px 0;
font-size: 0.86rem;
line-height: 1.6;
color: var(--text);
}
.notice-words strong {
color: var(--ink-strong);
font-variant-numeric: lining-nums tabular-nums;
}
.chip-back {
display: inline-flex;
align-items: center;
gap: 7px;
padding: 9px 16px 9px 13px;
margin-right: 4px;
border: 1px solid #dbe4f0;
border-radius: 999px;
background: var(--panel-soft);
color: var(--ink-strong);
font-weight: 700;
font-size: 0.86rem;
white-space: nowrap;
box-shadow: 0 1px 3px rgba(17, 45, 78, 0.06);
}
.chip-back:hover {
background: #fff;
border-color: var(--blue);
color: var(--blue);
box-shadow: 0 6px 14px -5px rgba(45, 110, 180, 0.35);
}
.page-back { display: none; }
@media (display-mode: standalone), (display-mode: minimal-ui),
(display-mode: fullscreen), (display-mode: window-controls-overlay) {
.page-back {
display: inline-flex;
align-items: center;
gap: 7px;
margin-top: 0;
}
}
@media (display-mode: standalone), (display-mode: minimal-ui),
(display-mode: fullscreen), (display-mode: window-controls-overlay) {
.page-back + .page-intro,
.page-back + .guide { padding-top: 14px; }
}
.study-page .page-intro p { max-width: 68ch; }
.study-coverage { margin-top: clamp(18px, 2vw, 26px); }
.study-coverage h2 {
margin: 0 0 10px;
font-size: 0.95rem;
color: var(--ink-strong);
}
.coverage-fold > summary {
display: flex;
align-items: center;
gap: 8px;
width: fit-content;
margin: 0 0 10px;
padding: 6px 12px 6px 10px;
border: 1px solid var(--line);
border-radius: 999px;
background: var(--panel);
cursor: pointer;
font-size: 0.95rem;
font-weight: 700;
color: var(--ink-strong);
list-style: none;
}
.coverage-fold > summary::-webkit-details-marker { display: none; }
.coverage-fold > summary::before {
content: "";
width: 7px;
height: 7px;
border-right: 2px solid var(--blue);
border-bottom: 2px solid var(--blue);
transform: rotate(-45deg) translate(-1px, 1px);
transition: transform 0.18s ease;
}
.coverage-fold[open] > summary::before {
transform: rotate(45deg) translate(-2px, -2px);
}
.coverage-fold > summary:hover { border-color: var(--blue); }
.coverage-fold > summary:focus-visible {
outline: 2px solid var(--blue);
outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
.coverage-fold > summary::before { transition: none; }
}
.coverage-wrap {
overflow-x: auto;
background: var(--panel);
border: 1px solid var(--line);
border-radius: 16px;
}
.coverage-table {
width: 100%;
border-collapse: collapse;
font-variant-numeric: lining-nums tabular-nums;
}
.coverage-table th,
.coverage-table td {
padding: 11px 14px;
text-align: left;
border-bottom: 1px solid var(--line);
white-space: nowrap;
}
.coverage-table thead th {
font-size: 0.68rem;
font-weight: 700;
letter-spacing: 0.07em;
text-transform: uppercase;
color: var(--muted);
background: var(--panel-soft);
}
.coverage-table tbody tr:last-child th,
.coverage-table tbody tr:last-child td { border-bottom: 0; }
.coverage-table tbody tr:hover { background: var(--panel-soft); }
.coverage-table a { color: var(--blue); font-weight: 700; }
.coverage-table a:hover { text-decoration: underline; }
.coverage-table .is-here { color: var(--ink-strong); font-weight: 800; }
.study-coverage.is-static .coverage-table .is-here {
color: var(--ink, #26313f);
font-weight: 700;
}
.coverage-yes { color: var(--success); font-weight: 700; }
.coverage-part { color: var(--muted); font-size: 0.82rem; }
.coverage-no { color: var(--line); }
.study-controls {
display: flex;
align-items: center;
gap: 12px 22px;
flex-wrap: wrap;
margin: calc(clamp(18px, 2vw, 28px) - 10px) 0 0;
padding: 10px 0 18px;
}
.study-page { --controls-h: var(--controls-raw, 0px); }
.study-page #studyContent {
scroll-margin-top: calc(var(--header-h, 74px) + var(--controls-h, 0px) - 2px);
}
@media (min-width: 861px) {
.study-page.has-bar .study-controls {
position: sticky;
top: var(--header-h, 74px);
z-index: 3;
}
.study-page.has-bar .study-controls.is-stuck {
background: #fff;
border-radius: 14px 14px 0 0;
}
@media (max-width: 1219px) {
.study-page .study-controls { gap: 10px 14px; }
.study-page .study-tab { padding: 9px 13px; }
.study-page .study-find { flex: 1 1 200px; gap: 10px; max-width: none; }
.study-page .study-search { min-width: 120px; max-width: none; }
}
}
.study-tabs {
display: flex;
max-width: 100%;
gap: 4px;
padding: 4px;
background: var(--panel-soft);
border: 1px solid var(--line);
border-radius: 999px;
overflow-x: auto;
scrollbar-width: none;
}
.study-tabs::-webkit-scrollbar { display: none; }
.study-tab { flex: none; }
.study-tab {
padding: 9px 18px;
border: 1px solid transparent;
border-radius: 999px;
background: transparent;
color: var(--muted);
font-weight: 700;
font-size: 0.88rem;
cursor: pointer;
transition: 0.16s ease;
}
.study-tab:hover { color: var(--ink-strong); }
.study-tab.is-on {
background: #fff;
border-color: var(--line);
color: var(--ink-strong);
box-shadow: 0 3px 10px -3px rgba(17, 45, 78, 0.32);
}
.study-search {
margin-left: auto;
padding: 11px 18px;
border: 1px solid var(--line);
border-radius: 999px;
background: #fff;
flex: 1 1 160px;
min-width: 160px;
max-width: 320px;
}
.study-find {
display: flex;
align-items: center;
gap: 12px;
margin-left: auto;
flex: 1 1 320px;
max-width: 460px;
}
.study-find .study-search { margin-left: 0; }
.study-count {
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: space-between;
gap: 8px 16px;
margin: 0;
padding: 10px 18px;
background: var(--panel);
border: 1px solid var(--line);
border-bottom: 0;
border-radius: 17px 17px 0 0;
font-size: 0.78rem;
font-weight: 600;
letter-spacing: 0.02em;
color: var(--muted);
font-variant-numeric: lining-nums tabular-nums;
}
.study-note {
margin: 0;
padding: 0 18px 12px;
background: var(--panel);
border-inline: 1px solid var(--line);
font-size: 0.78rem;
line-height: 1.6;
color: var(--muted);
}
.study-count + .study-note { border-top: 0; }
.study-count + .study-list,
.study-note + .study-list {
border-top-left-radius: 0;
border-top-right-radius: 0;
}
.study-count + .study-list .study-row.is-head,
.study-note + .study-list .study-row.is-head { border-radius: 0; }
.study-list {
background: var(--panel);
border: 1px solid var(--line);
border-radius: 18px;
}
.study-row {
display: grid;
grid-template-columns: 190px 190px minmax(0, 24rem) minmax(0, 1fr);
gap: 16px;
padding: 12px 18px 12px 56px;
border-top: 1px solid var(--line);
align-items: baseline;
}
.study-list { counter-reset: study-row; }
.study-row:not(.is-head) { counter-increment: study-row; }
.study-row:not(.is-head)::before {
content: counter(study-row);
position: absolute;
left: 0;
top: 13px;
display: flex;
align-items: center;
justify-content: flex-end;
width: 44px;
height: 25px;
padding-right: 12px;
color: #94a3b5;
font-size: 0.78rem;
font-variant-numeric: tabular-nums;
}
.study-row { position: relative; }
.study-row:first-child { border-top: 0; }
.study-row:not(.is-head) {
content-visibility: auto;
contain-intrinsic-size: auto 65px;
}
.study-row.is-kanji:not(.is-head),
.study-row.is-grammar:not(.is-head) { contain-intrinsic-size: auto 83px; }
@media (max-width: 820px) {
.study-row:not(.is-head) { contain-intrinsic-size: auto 83px; }
}
.study-row.is-grammar { grid-template-columns: 200px minmax(0, 1fr) minmax(0, 1.2fr); }
.study-row.is-head {
position: sticky;
top: calc(var(--header-h, 74px) + var(--controls-h, 0px));
z-index: 2;
background: var(--panel-soft);
box-shadow: 0 6px 12px -9px rgba(17, 45, 78, 0.5);
font-size: 0.7rem;
font-weight: 700;
letter-spacing: 0.08em;
text-transform: uppercase;
color: var(--muted);
}
.study-row:not(.is-head):hover { background: var(--panel-soft); }
.study-row.is-head { border-radius: 17px 17px 0 0; }
.study-row:last-child { border-radius: 0 0 17px 17px; }
.study-jp {
font-size: 1.05rem;
font-weight: 700;
color: var(--ink-strong);
}
.study-reading { color: var(--muted); font-size: 0.92rem; }
.study-reading em {
display: block;
font-style: normal;
font-size: 0.76rem;
color: var(--muted);
}
.study-en { color: var(--text); line-height: 1.5; }
.study-ne {
display: block;
font-style: normal;
font-size: 0.88rem;
color: var(--muted);
margin-top: 2px;
}
.study-example b { display: block; font-weight: 600; color: var(--ink-strong); }
.study-example em {
display: block;
font-style: normal;
font-size: 0.85rem;
color: var(--muted);
margin-top: 2px;
}
@media (max-width: 820px) {
.study-search { margin-left: 0; width: auto; }
.study-row { padding-left: 42px; }
.study-row:not(.is-head)::before { width: 32px; padding-right: 8px; font-size: 0.72rem; }
.study-row,
.study-row.is-grammar {
grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
gap: 10px 14px;
}
.study-row .study-reading { grid-column: 1; margin-top: -6px; }
.study-row .study-en { grid-column: 2; grid-row: 1 / span 2; }
.study-row.is-grammar .study-example { grid-column: 1 / -1; }
.study-row.is-head .study-reading,
.study-row.is-head span:nth-child(2) { display: none; }
.study-row.is-head { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); }
}
@media (max-width: 860px) {
.study-page:not(.kanji-page) .site-header { position: static; }
.study-page .study-controls {
gap: 8px 12px;
padding-top: 8px;
padding-bottom: 12px;
}
.study-page .study-tab { padding: 7px 12px; }
.study-page .study-tabs { padding: 3px; }
.study-page .study-search { padding: 9px 15px; }
.study-page .study-quiz { padding: 9px 18px; }
.study-page .study-find { width: 100%; max-width: none; margin-left: 0; }
.study-page .study-controls {
margin-inline: calc(var(--gutter) * -1);
padding-inline: var(--gutter);
}
.study-page .study-count,
.study-page .study-note,
.study-page .study-marks,
.study-page .study-list {
margin-inline: calc(var(--gutter) * -1);
border-inline: 0;
border-radius: 0;
}
.study-page .study-row.is-head,
.study-page .study-row:last-child { border-radius: 0; }
.study-page.has-bar .study-controls {
position: sticky;
top: 0;
z-index: 3;
}
.study-page.has-bar .study-controls.is-stuck { background: #fff; }
.study-page .study-row.is-head { top: var(--controls-h, 0px); }
.study-page #studyContent {
scroll-margin-top: calc(var(--controls-h, 0px) - 2px);
}
}
.study-mark {
display: inline-flex;
gap: 6px;
align-self: center;
justify-self: start;
}
.study-mark button {
width: 28px;
height: 28px;
padding: 0;
border: 1px solid var(--line);
border-radius: 999px;
background: var(--panel);
color: var(--muted);
font: 700 0.9rem/1 var(--font-sans);
cursor: pointer;
transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.study-mark button:hover { border-color: var(--navy); color: var(--ink-strong); }
.study-mark button:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }
.study-mark button[data-m="k"][aria-pressed="true"] {
background: #1f7a4d; border-color: #1f7a4d; color: #fff;
}
.study-mark button[data-m="d"][aria-pressed="true"] {
background: var(--danger, #c84a52); border-color: var(--danger, #c84a52); color: #fff;
}
.study-row.is-known { box-shadow: inset 3px 0 0 #1f7a4d; }
.study-row.is-known .study-jp { color: var(--muted); }
.study-row.is-learning { box-shadow: inset 3px 0 0 var(--danger, #c84a52); }
.study-marks {
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: space-between;
gap: 8px 18px;
padding: 0 18px 12px;
background: var(--panel);
border-inline: 1px solid var(--line);
}
.study-count + .study-marks { border-top: 0; }
.study-marks + .study-list {
border-top-left-radius: 0;
border-top-right-radius: 0;
}
.study-marks + .study-list .study-row.is-head { border-radius: 0; }
.study-marks-legend {
margin: 0;
flex: 1 1 260px;
font-size: 0.78rem;
line-height: 1.6;
color: var(--muted);
}
.study-marks-filters {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 6px;
}
.study-filter {
padding: 6px 12px;
border: 1px solid var(--line);
border-radius: 999px;
background: var(--panel);
color: var(--muted);
font: 600 0.76rem/1.2 var(--font-sans);
cursor: pointer;
}
.study-cover {
padding: 6px 12px;
border: 1px solid var(--line);
border-radius: 999px;
background: var(--panel);
color: var(--muted);
font: 600 0.76rem/1.2 var(--font-sans);
cursor: pointer;
}
.study-cover:hover { color: var(--ink-strong); border-color: var(--navy); }
.study-list.is-covered .study-row:not(.is-head):not(.is-shown)
:is(.study-reading:not(.is-echo), .kanji-readings, .study-en, .study-example),
.study-list.is-covered .study-row:not(.is-head):not(.is-shown)
:is(.study-reading:not(.is-echo), .kanji-readings, .study-en, .study-example) * {
color: transparent;
}
.study-list.is-covered .study-row:not(.is-head):not(.is-shown)
:is(.study-reading:not(.is-echo), .kanji-readings, .study-en, .study-example) {
background: var(--panel-soft);
border-radius: 8px;
box-shadow: inset 0 0 0 1px var(--line);
cursor: pointer;
-webkit-user-select: none;
user-select: none;
}
.study-list.is-covered .study-row:not(.is-head):not(.is-shown)
:is(.study-reading:not(.is-echo), .kanji-readings, .study-en, .study-example):hover {
background: #e2ebf6;
}
.study-filter.is-on { background: var(--navy); border-color: var(--navy); color: #fff; }
.study-filter b { margin-left: 5px; font-weight: 700; font-variant-numeric: tabular-nums; }
.study-marks-quiz {
margin-left: 6px;
font-size: 0.78rem;
font-weight: 700;
color: var(--ink-strong);
text-decoration: none;
white-space: nowrap;
}
.study-marks-quiz:hover { text-decoration: underline; }
.study-marks + .stats-empty {
margin: 0;
padding: 26px 18px;
background: var(--panel);
border: 1px solid var(--line);
border-top: 0;
border-radius: 0 0 17px 17px;
}
@media (max-width: 820px) {
.study-row:not(.is-grammar):not(.is-kanji) {
grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) 28px;
}
.study-row .study-mark {
grid-column: 3;
grid-row: 1 / span 2;
flex-direction: column;
align-self: start;
justify-self: end;
}
.study-marks { padding-bottom: 14px; }
}
.review-strip-wrap { padding-top: clamp(20px, 2.4vw, 32px); }
.review-strip {
display: flex;
align-items: center;
justify-content: space-between;
gap: 16px 24px;
min-height: 92px;
padding: 18px 24px;
background: var(--panel);
border: 1px solid var(--line);
border-left: 4px solid var(--gold);
border-radius: 16px;
}
.review-strip-text { min-width: 0; }
.review-strip h2 { margin: 0 0 4px; font-size: 1.1rem; color: var(--ink-strong); }
.review-strip p {
margin: 0;
color: var(--muted);
font-size: 0.92rem;
line-height: 1.55;
min-height: 3.1em;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
}
.review-strip .btn { flex: none; }
@media (max-width: 620px) {
.review-strip { flex-direction: column; align-items: stretch; }
.review-strip .btn { justify-content: center; }
.review-strip p { -webkit-line-clamp: 3; min-height: 4.65em; }
}
.hero-section .review-strip-wrap { padding-top: clamp(22px, 2.6vw, 34px); }
.hero-section .review-strip {
background: rgba(255, 255, 255, 0.07);
border: 1px solid rgba(255, 255, 255, 0.16);
border-left: 4px solid var(--gold);
backdrop-filter: blur(6px);
-webkit-backdrop-filter: blur(6px);
}
.hero-section .review-strip h2 { color: #fff; }
.hero-section .review-strip p { color: rgba(255, 255, 255, 0.78); }
.hero-section .review-strip:not(.is-active) .btn-primary {
background: transparent;
color: #fff;
border: 1px solid rgba(255, 255, 255, 0.5);
box-shadow: none;
}
.hero-section .review-strip:not(.is-active) .btn-primary:hover {
background: rgba(255, 255, 255, 0.14);
color: #fff;
border-color: #fff;
box-shadow: none;
}
.stats-know-list {
list-style: none;
margin: 8px 0 0;
padding: 0;
display: flex;
flex-wrap: wrap;
gap: 6px 18px;
font-size: 0.92rem;
color: var(--text);
}
.stats-know-list li b { color: var(--ink-strong); margin-right: 6px; }
.stats-know-list a { color: var(--ink-strong); text-decoration: none; font-weight: 600; }
.stats-know-list a:hover { text-decoration: underline; }
.lv-chip {
display: inline-grid;
place-items: center;
min-width: 46px;
padding: 5px 12px;
border-radius: 999px;
background: var(--accent, var(--blue));
color: #fff;
font-weight: 800;
font-size: 0.84rem;
letter-spacing: 0.05em;
}
.lv-chip.level-n1 { --accent: var(--gold-ink); }
.lv-chip.level-n2 { --accent: #2d6eb4; }
.lv-chip.level-n3 { --accent: #2f7d57; }
.lv-chip.level-n4 { --accent: #7c3ac8; }
.lv-chip.level-n5 { --accent: #5c697a; }
.levels-source {
margin: 10px 0 0;
font-size: 0.76rem;
line-height: 1.6;
color: var(--muted);
}
.levels-source a { color: var(--blue); font-weight: 600; }
.levels-source a:hover { text-decoration: underline; }
.levels-note {
margin: 18px 0 0;
padding: 14px 16px;
background: #fdf9ef;
border-left: 3px solid var(--gold);
border-radius: 0 10px 10px 0;
font-size: 0.86rem;
line-height: 1.6;
color: #7a5f19;
max-width: 78ch;
}
.main-nav.can-scroll:not(.at-end) {
-webkit-mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent);
mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent);
}
.main-nav.can-scroll:not(.at-start):not(.at-end) {
-webkit-mask-image: linear-gradient(to right, transparent, #000 24px,
#000 calc(100% - 28px), transparent);
mask-image: linear-gradient(to right, transparent, #000 24px,
#000 calc(100% - 28px), transparent);
}
.main-nav.can-scroll.at-end:not(.at-start) {
-webkit-mask-image: linear-gradient(to right, transparent, #000 24px);
mask-image: linear-gradient(to right, transparent, #000 24px);
}
@media (max-width: 430px) {
.main-nav a { padding: 8px 7px; font-size: 0.86rem; }
.main-nav { gap: 2px; --nav-pad: 7px; }
}
@media (max-width: 380px) {
.main-nav a { padding: 8px 5px; }
.main-nav { gap: 0; --nav-pad: 5px; }
}
.study-row.is-kanji { grid-template-columns: 116px 210px minmax(0, 1fr); }
.kanji-cell { display: flex; flex-direction: column; gap: 4px; }
.kanji-char {
display: grid;
place-items: center;
width: 62px;
height: 62px;
padding: 0;
background: var(--panel-soft);
border: 1px solid var(--line);
border-radius: 14px;
font-size: 2.1rem;
line-height: 1;
color: var(--ink-strong);
cursor: pointer;
transition: 0.15s ease;
}
.kanji-char:hover,
.kanji-char:focus-visible {
background: #fff;
border-color: var(--blue);
box-shadow: 0 0 0 3px rgba(45, 110, 180, 0.14);
}
.kanji-strokes {
font-size: 0.7rem;
color: var(--muted);
font-variant-numeric: lining-nums tabular-nums;
}
.kanji-readings { font-size: 0.9rem; color: var(--text); line-height: 1.7; }
.kanji-readings b {
display: inline-block;
min-width: 1.5em;
color: var(--muted);
font-size: 0.74rem;
}
.kanji-okuri { font-style: normal; color: var(--muted); }
.kanji-exs {
display: block;
margin-top: 7px;
font-size: 0.82rem;
line-height: 1.6;
color: var(--muted);
}
.kanji-ex { display: block; }
.kanji-ex b { color: var(--ink-strong); font-weight: 700; margin-right: 2px; }
.kanji-ex i { font-style: normal; color: var(--blue); margin-right: 6px; }
.study-row.is-kanji.is-open { background: var(--panel-soft); }
.study-row.is-kanji.is-open .kanji-char {
background: #fff;
border-color: var(--blue);
color: var(--blue);
}
.kanji-open {
border-top: 1px solid var(--line);
background: linear-gradient(180deg, var(--panel-soft), var(--panel));
animation: kanji-open 0.2s ease;
}
@keyframes kanji-open {
from { opacity: 0; transform: translateY(-5px); }
}
.kanji-open-inner {
position: relative;
display: grid;
grid-template-columns: 172px minmax(0, 1fr);
gap: clamp(14px, 2vw, 26px);
align-items: start;
padding: 18px 18px 20px;
}
.kanji-open-draw {
display: grid;
place-items: center;
aspect-ratio: 1;
background: #fff;
border: 1px solid var(--line);
border-radius: 16px;
}
.kanji-open-body { min-width: 0; }
.kanji-open-body h3 {
margin: 0 0 10px;
font-size: 0.78rem;
font-weight: 700;
letter-spacing: 0.07em;
text-transform: uppercase;
color: var(--muted);
}
.kanji-open-steps {
display: flex;
gap: 8px;
margin: 0 0 14px;
padding: 0 0 4px;
list-style: none;
overflow-x: auto;
}
.kanji-open-steps li {
position: relative;
flex: 0 0 auto;
width: 58px;
padding: 4px;
background: #fff;
border: 1px solid var(--line);
border-radius: 10px;
}
.kanji-open-steps svg { display: block; width: 100%; }
.kanji-open-steps b {
position: absolute;
top: 2px;
left: 5px;
font-size: 0.6rem;
color: var(--muted);
font-variant-numeric: lining-nums tabular-nums;
}
.kanji-open-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.kanji-open-actions .btn { font-size: 0.84rem; padding: 9px 16px; }
.kanji-open-close {
position: absolute;
top: 8px;
right: 10px;
width: 30px;
height: 30px;
padding: 0;
background: none;
border: 0;
border-radius: 8px;
font-size: 1.3rem;
line-height: 1;
color: var(--muted);
cursor: pointer;
}
.kanji-open-close:hover { background: #fff; color: var(--ink-strong); }
@media (prefers-reduced-motion: reduce) {
.kanji-open { animation: none; }
}
@media (max-width: 700px) {
.kanji-open-inner { grid-template-columns: minmax(0, 1fr); padding: 14px; }
.kanji-open-draw { max-width: 190px; }
.kanji-open-actions .btn { flex: 1 1 auto; text-align: center; }
}
.kanji-topbar {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
flex-wrap: wrap;
padding-top: clamp(18px, 2vw, 30px);
}
.kanji-steps-nav { display: flex; align-items: center; gap: 10px; }
.kanji-nav {
display: inline-flex;
align-items: center;
gap: 7px;
padding: 7px 14px;
background: var(--panel);
border: 1px solid var(--line);
border-radius: 999px;
font-size: 1.05rem;
color: var(--ink-strong);
font-weight: 700;
}
.kanji-nav:hover { border-color: var(--blue); color: var(--blue); }
.kanji-nav span { color: var(--muted); font-size: 0.85rem; }
.kanji-pos {
font-size: 0.78rem;
color: var(--muted);
font-variant-numeric: lining-nums tabular-nums;
}
.kanji-hero {
display: grid;
grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
gap: clamp(20px, 3vw, 44px);
align-items: center;
margin-top: 18px;
padding: var(--card-pad);
background: var(--panel);
border: 1px solid var(--line);
border-radius: 22px;
box-shadow: 0 10px 24px rgba(17, 45, 78, 0.05);
}
.kanji-draw-box {
display: grid;
place-items: center;
aspect-ratio: 1;
background: var(--panel-soft);
border-radius: 18px;
}
.kanji-svg { width: 100%; height: 100%; }
.kanji-guide line {
stroke: rgba(17, 45, 78, 0.16);
stroke-width: 1;
stroke-dasharray: 4 4;
}
.kanji-ink path {
fill: none;
stroke: var(--navy);
stroke-width: 5;
stroke-linecap: round;
stroke-linejoin: round;
}
@keyframes kanji-draw { to { stroke-dashoffset: 0; } }
.kanji-facts h1 {
margin: 0;
font-size: clamp(3.4rem, 7vw, 5rem);
line-height: 1;
color: var(--ink-strong);
font-family: var(--font-sans);
}
.kanji-facts-en {
margin: 8px 0 16px;
font-size: 1.05rem;
color: var(--text);
}
.kanji-readings-list { margin: 0 0 18px; }
.kanji-readings-list .kr {
display: grid;
grid-template-columns: 62px minmax(0, 1fr);
gap: 10px;
padding: 8px 0;
border-top: 1px solid var(--line);
}
.kanji-readings-list dt {
font-size: 0.78rem;
font-weight: 700;
color: var(--muted);
}
.kanji-readings-list dd { margin: 0; color: var(--text); }
.kanji-okuri { font-style: normal; color: var(--muted); }
.kanji-steps { margin-top: clamp(22px, 2.6vw, 34px); }
.kanji-steps h2,
.kanji-words h2 {
margin: 0 0 12px;
font-size: 0.95rem;
color: var(--ink-strong);
}
.kanji-steps ol {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(74px, 1fr));
gap: 10px;
margin: 0;
padding: 0;
list-style: none;
}
.kanji-steps li {
position: relative;
padding: 6px;
background: var(--panel);
border: 1px solid var(--line);
border-radius: 12px;
}
.kanji-steps svg { display: block; width: 100%; }
.kanji-steps b {
position: absolute;
top: 4px;
left: 7px;
font-size: 0.66rem;
color: var(--muted);
font-variant-numeric: lining-nums tabular-nums;
}
.kanji-ink.is-static path { stroke: rgba(17, 45, 78, 0.28); stroke-width: 5; }
.kanji-ink.is-static path.is-new { stroke: var(--blue); }
.kanji-words { margin-top: clamp(22px, 2.6vw, 34px); }
.kanji-words ul {
margin: 0;
padding: 0;
list-style: none;
background: var(--panel);
border: 1px solid var(--line);
border-radius: 16px;
}
.kanji-words li {
display: grid;
grid-template-columns: 150px 150px minmax(0, 1fr);
gap: 14px;
align-items: baseline;
padding: 12px 18px;
border-top: 1px solid var(--line);
}
.kanji-words li:first-child { border-top: 0; }
.kanji-words b { font-size: 1.15rem; color: var(--ink-strong); }
.kanji-words i { font-style: normal; color: var(--muted); font-size: 0.9rem; }
@media (prefers-reduced-motion: reduce) {
.kanji-ink path { animation: none !important; stroke-dashoffset: 0 !important; }
}
@media (max-width: 860px) {
.kanji-hero { grid-template-columns: minmax(0, 1fr); }
.kanji-draw-box { max-width: 320px; margin-inline: auto; }
.kanji-facts { text-align: center; }
.kanji-readings-list .kr { text-align: left; }
.kanji-words li { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.kanji-words li span { grid-column: 1 / -1; }
}
@media (max-width: 700px) {
.study-row.is-kanji,
.study-row.is-head.is-kanji {
grid-template-columns: 78px minmax(0, 1fr);
}
.study-row.is-kanji .kanji-readings { grid-column: 2; }
.study-row.is-kanji .study-en { grid-column: 1 / -1; }
.study-row.is-head.is-kanji span:nth-child(2),
.study-row.is-head.is-kanji span:nth-child(3) { display: none; }
.kanji-char { width: 54px; height: 54px; font-size: 1.8rem; }
}
.study-affix {
display: inline-block;
margin-left: 7px;
padding: 2px 7px;
border-radius: 999px;
background: var(--panel-soft);
border: 1px solid var(--line);
color: var(--muted);
font-size: 0.62rem;
font-weight: 700;
letter-spacing: 0.04em;
text-transform: uppercase;
vertical-align: middle;
}
.hero-section .btn-primary {
background: #fff;
color: var(--navy);
box-shadow: 0 8px 22px -6px rgba(0, 0, 0, 0.45),
inset 0 -1px 0 rgba(17, 45, 78, 0.08);
}
.hero-section .btn-primary:hover {
background: #fff;
color: var(--navy-2, #0d2440);
box-shadow: 0 14px 30px -8px rgba(0, 0, 0, 0.5),
inset 0 -1px 0 rgba(17, 45, 78, 0.1);
}
.hero-section .btn-primary:focus-visible {
outline: 2px solid #fff;
outline-offset: 3px;
}
.stats-data {
margin-top: clamp(24px, 3vw, 40px);
padding: clamp(18px, 2vw, 26px);
background: var(--panel);
border: 1px solid var(--line);
border-radius: 16px;
}
.stats-data h2 {
margin: 0 0 8px;
font-size: 1rem;
color: var(--ink-strong);
}
.stats-data > p {
margin: 0;
max-width: 74ch;
font-size: 0.85rem;
line-height: 1.7;
color: var(--muted);
}
.stats-data-actions {
display: flex;
flex-wrap: wrap;
gap: 10px;
margin-top: 16px;
}
.stats-data-actions .btn { font-size: 0.84rem; }
.stats-import { position: relative; overflow: hidden; cursor: pointer; }
.stats-import input {
position: absolute;
inset: 0;
opacity: 0;
cursor: pointer;
font-size: 0;
}
.btn-ghost.is-danger { color: var(--danger); border-color: var(--danger); }
.btn-ghost.is-danger:hover {
color: #fff;
background: var(--danger);
border-color: var(--danger);
}
.stats-data-msg {
margin: 12px 0 0;
min-height: 1.2em;
font-size: 0.84rem;
font-weight: 600;
color: var(--success);
}
@media (max-width: 400px) {
.language-select { padding: 8px 10px; }
.language-select select { width: 100%; max-width: 96px; text-overflow: ellipsis; }
}
.quiz-controls { margin-bottom: 22px; padding-bottom: 0; }
.study-quiz { flex: none; white-space: nowrap; }
@media (max-width: 820px) { .study-find { max-width: none; margin-left: 0; width: 100%; } .study-find .study-search { max-width: none; } }
.quiz-root { max-width: 720px; min-height: 240px; }
.review-page .quiz-root { min-height: 340px; }
.quiz-card {
background: var(--panel);
border: 1px solid var(--line);
border-radius: 20px;
padding: 26px 28px 24px;
box-shadow: 0 10px 30px rgba(17, 45, 78, 0.06);
}
.quiz-intro, .quiz-end { text-align: left; }
.quiz-kicker {
margin: 0 0 12px;
font-size: 0.74rem;
font-weight: 800;
letter-spacing: 0.12em;
text-transform: uppercase;
color: var(--muted);
}
.quiz-kicker .quiz-right { color: var(--success); letter-spacing: 0; }
.quiz-kicker .quiz-from { text-transform: none; letter-spacing: 0; font-weight: 600; }
.quiz-ask { margin: 0 0 10px; font-family: var(--font-sans); font-size: 1.02rem; font-weight: 600; color: var(--muted); }
.quiz-shown {
margin: 0 0 20px;
font-size: 1.6rem;
font-weight: 700;
line-height: 1.35;
color: var(--ink-strong);
}
.quiz-shown.is-ja { font-size: 2.1rem; }
.quiz-shown small,
.quiz-shown em {
display: block;
margin-top: 4px;
font-size: 0.95rem;
font-weight: 500;
font-style: normal;
line-height: 1.4;
color: var(--muted);
}
.quiz-note { margin: 0 0 16px; color: var(--muted); font-size: 0.95rem; }
.quiz-score { margin: 0 0 10px; font-family: var(--font-display); font-size: 2rem; color: var(--ink-strong); }
.quiz-list-link {
display: inline-block; margin: 14px 0 0 2px;
background: none; border: 0; padding: 0; cursor: pointer;
font: inherit; font-size: 0.92rem; font-weight: 600; color: var(--blue);
}
.quiz-list-link.is-danger { color: var(--danger, #c84a52); margin-left: 18px; }
.quiz-intro .btn { margin-top: 6px; }
.quiz-options { display: grid; gap: 10px; }
@media (min-width: 640px) { .quiz-options { grid-template-columns: 1fr 1fr; } }
.quiz-choice {
display: flex; align-items: center; gap: 12px;
width: 100%; padding: 12px 14px;
text-align: left; font: inherit; font-size: 1.02rem; color: var(--text);
background: var(--panel); border: 1.5px solid var(--line); border-radius: 14px;
cursor: pointer; transition: border-color .15s ease, background .15s ease, transform .1s ease;
}
.quiz-choice:hover:not(:disabled) { border-color: var(--blue); background: var(--panel-soft); }
.quiz-choice:active:not(:disabled) { transform: scale(0.99); }
.quiz-choice:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.quiz-choice:disabled { cursor: default; }
.quiz-num {
flex: none; width: 28px; height: 28px; border-radius: 50%;
display: grid; place-items: center;
font-size: 0.82rem; font-weight: 800; color: var(--muted);
background: var(--panel-soft); border: 1.5px solid var(--line);
}
.quiz-choice.is-correct { border-color: var(--success); background: rgba(47, 125, 87, 0.1); }
.quiz-choice.is-correct .quiz-num { background: var(--success); border-color: var(--success); color: #fff; }
.quiz-choice.is-wrong { border-color: var(--danger, #c84a52); background: rgba(200, 74, 82, 0.09); }
.quiz-choice.is-wrong .quiz-num { background: var(--danger, #c84a52); border-color: var(--danger, #c84a52); color: #fff; }
.quiz-feedback:empty { display: none; }
.quiz-feedback {
margin-top: 18px; padding: 14px 16px; border-radius: 14px;
font-size: 0.95rem; line-height: 1.55;
}
.quiz-feedback.is-ok { background: rgba(47, 125, 87, 0.08); border: 1px solid rgba(47, 125, 87, 0.25); }
.quiz-feedback.is-bad { background: rgba(200, 74, 82, 0.07); border: 1px solid rgba(200, 74, 82, 0.25); }
.quiz-feedback strong { display: block; margin-bottom: 4px; color: var(--ink-strong); }
.quiz-feedback p { margin: 4px 0 0; }
.quiz-feedback .quiz-ex { color: var(--muted); font-size: 0.9rem; }
.quiz-feedback .btn { margin-top: 12px; }
.quiz-only {
display: flex; align-items: flex-start; gap: 10px; margin: 0 0 16px;
font-size: 0.92rem; line-height: 1.5; color: var(--text); text-align: left; cursor: pointer;
}
.quiz-only input { margin: 4px 0 0; width: 18px; height: 18px; flex: none; accent-color: var(--navy); }
.quiz-mark-missed { margin-top: 12px; }
.quiz-missed { margin: 18px 0 6px; }
.quiz-missed h3 { margin: 0 0 8px; font-size: 0.95rem; color: var(--muted); font-weight: 700; }
.quiz-missed ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.quiz-missed li { padding: 8px 12px; background: var(--panel-soft); border-radius: 10px; font-size: 0.95rem; }
.quiz-missed li span { color: var(--muted); }
.quiz-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.quiz-intro-actions { align-items: center; gap: 10px 22px; margin-top: 6px; }
.quiz-intro-actions .btn { margin-top: 0; }
.quiz-intro-actions .quiz-list-link { margin: 0; }
.review-instruction { margin: 0 0 10px; font-size: 0.88rem; color: var(--muted); }
.review-passage { margin: 0 0 14px; }
.review-passage summary { cursor: pointer; font-weight: 600; color: var(--blue); font-size: 0.92rem; }
.review-passage > div { margin-top: 10px; padding: 14px 16px; background: var(--panel-soft); border-radius: 12px; line-height: 1.9; }
.review-prompt { margin: 0 0 18px; font-size: 1.12rem; line-height: 1.85; color: var(--ink-strong); }
.review-prompt img { max-width: 100%; height: auto; }
.stats-mistakes {
display: flex; align-items: center; justify-content: space-between; gap: 18px;
margin: 0 0 26px; padding: 20px 24px;
background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: 16px;
}
.stats-mistakes h2 { margin: 0 0 4px; font-size: 1.1rem; }
.stats-mistakes p { margin: 0; color: var(--muted); font-size: 0.92rem; }
.stats-mistakes-count { margin-top: 6px !important; min-height: 1.45em; font-weight: 700; color: var(--ink-strong) !important; }
.stats-mistakes .btn { flex: none; }
@media (max-width: 640px) { .stats-mistakes { flex-direction: column; align-items: stretch; } }
.part-card.is-silent .part-sub em { color: var(--danger, #c84a52); font-style: normal; font-weight: 700; }
.paper-page { max-width: 760px; }
.paper-kicker {
margin: 0 0 6px;
font-size: 0.82rem;
font-weight: 600;
color: var(--muted);
}
.paper-kicker a { color: var(--ink-strong); text-decoration: none; }
.paper-kicker a:hover { text-decoration: underline; }
.paper-kicker span { margin: 0 6px; }
.paper-page h1 { margin: 0 0 6px; }
.paper-lead {
margin: 0 0 20px;
color: var(--muted);
font-variant-numeric: lining-nums tabular-nums;
}
.paper-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 26px; }
.paper-parts {
width: 100%;
margin: 0 0 20px;
border-collapse: collapse;
background: var(--panel);
border: 1px solid var(--line);
border-radius: 14px;
overflow: hidden;
}
.paper-parts th,
.paper-parts td {
padding: 11px 16px;
text-align: left;
border-top: 1px solid var(--line);
}
.paper-parts thead th {
border-top: 0;
background: var(--panel-soft);
text-transform: uppercase;
letter-spacing: 0.08em;
font-size: 0.7rem;
color: var(--muted);
}
.paper-parts td:last-child,
.paper-parts th:last-child {
text-align: right;
font-variant-numeric: lining-nums tabular-nums;
}
.paper-parts tfoot td { font-weight: 700; color: var(--ink-strong); }
.paper-notes { margin: 0 0 26px; padding-left: 20px; color: var(--muted); }
.paper-notes li { margin: 4px 0; }
.paper-near { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 0.9rem; }
.paper-near a { color: var(--ink-strong); text-decoration: none; font-weight: 600; }
.paper-near a:hover { text-decoration: underline; }
.paper-index-wrap {
margin-top: 44px;
padding-top: 26px;
border-top: 1px solid var(--line);
}
.paper-index-wrap > summary {
display: flex;
align-items: center;
gap: 8px;
width: fit-content;
padding: 6px 2px;
color: var(--ink-strong);
font-family: var(--font-sans);
font-size: 0.9rem;
font-weight: 700;
cursor: pointer;
list-style: none;
}
.paper-index-wrap > summary::-webkit-details-marker { display: none; }
.paper-index-wrap > summary::before {
content: "\203a";
display: inline-block;
font-size: 1.1rem;
line-height: 1;
color: var(--muted);
transition: transform 0.15s ease;
}
.paper-index-wrap[open] > summary::before { transform: rotate(90deg); }
.paper-index-wrap > summary:hover { color: var(--blue, #2d6eb4); }
.paper-index-wrap > summary span {
color: var(--muted);
font-weight: 600;
font-variant-numeric: lining-nums tabular-nums;
}
.paper-index {
margin-top: 18px;
}
.paper-index-level { margin-bottom: 18px; }
.paper-index-level h2 {
margin: 0 0 8px;
font-family: var(--font-sans);
font-size: 0.72rem;
font-weight: 800;
letter-spacing: 0.1em;
text-transform: uppercase;
color: var(--muted);
}
.paper-index-level div { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.paper-index-level a {
color: var(--ink-strong);
font-size: 0.88rem;
text-decoration: none;
white-space: nowrap;
}
.paper-index-level a:hover { text-decoration: underline; }
.levels-facts {
width: 100%;
border-collapse: collapse;
background: var(--panel);
border: 1px solid var(--line);
border-radius: 14px;
overflow: hidden;
}
.levels-facts th,
.levels-facts td {
padding: 11px 14px;
border-top: 1px solid var(--line);
text-align: right;
font-variant-numeric: lining-nums tabular-nums;
}
.levels-facts thead th {
border-top: 0;
background: var(--panel-soft);
text-transform: uppercase;
letter-spacing: 0.07em;
font-size: 0.68rem;
color: var(--muted);
}
.levels-facts th:first-child,
.levels-facts thead th:first-child { text-align: left; }
.levels-facts tbody th a { color: var(--ink-strong); font-weight: 800; }
.paper-h2 {
margin: 26px 0 10px;
font-family: var(--font-sans);
font-size: 0.72rem;
font-weight: 800;
letter-spacing: 0.1em;
text-transform: uppercase;
color: var(--muted);
}
.paper-faq {
border-top: 1px solid var(--line);
padding: 12px 0;
}
.paper-faq:last-of-type { border-bottom: 1px solid var(--line); }
.paper-faq summary {
cursor: pointer;
font-weight: 700;
color: var(--ink-strong);
list-style-position: outside;
}
.paper-faq summary::marker { color: var(--blue); }
.paper-faq p { margin: 8px 0 0; color: var(--ink-soft); }
.paper-mondai { margin: 0; padding: 0; list-style: none; }
.paper-mondai li {
display: flex;
flex-wrap: wrap;
align-items: baseline;
gap: 6px 14px;
padding: 9px 0;
border-top: 1px solid var(--line);
}
.paper-mondai li:first-child { border-top: 0; }
.paper-mondai em {
flex: 0 0 auto;
min-width: 150px;
font-style: normal;
font-weight: 700;
color: var(--ink-strong);
}
.paper-mondai div { display: flex; flex-wrap: wrap; gap: 6px 12px; }
.paper-mondai span {
font-size: 0.86rem;
color: var(--muted);
font-variant-numeric: lining-nums tabular-nums;
}
.paper-mondai span b { font-weight: 600; color: var(--text); }
.paper-vocab { margin: 0 0 8px; font-variant-numeric: lining-nums tabular-nums; }
.paper-vocab strong { font-size: 1.15rem; color: var(--ink-strong); }
.paper-lvs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; }
.paper-lv {
padding: 4px 10px;
border: 1px solid var(--line);
border-radius: 999px;
background: var(--panel);
font-size: 0.8rem;
color: var(--muted);
font-variant-numeric: lining-nums tabular-nums;
}
.paper-lv b { font-weight: 800; color: var(--ink-strong); }
.paper-sample-note {
margin: 0 0 14px;
color: var(--muted);
font-size: 0.9rem;
}
.paper-sample {
margin: 0 0 26px;
padding: 0;
list-style: none;
display: grid;
gap: 12px;
}
.paper-sample > li {
padding: 16px 18px;
background: var(--panel);
border: 1px solid var(--line);
border-radius: 14px;
}
.ps-mondai {
margin: 0 0 8px;
color: var(--muted);
font-size: 0.78rem;
line-height: 1.5;
}
.ps-prompt {
margin: 0 0 10px;
color: var(--ink-strong);
font-size: 1rem;
line-height: 1.7;
}
.ps-prompt u { text-underline-offset: 3px; }
.ps-choices {
margin: 0;
padding-left: 1.4em;
color: var(--muted);
font-size: 0.92rem;
line-height: 1.9;
}
.ps-choices li { padding-left: 2px; }
.lang-offer {
position: fixed;
z-index: 60;
left: 50%;
bottom: max(12px, env(safe-area-inset-bottom));
transform: translate(-50%, calc(100% + 24px));
display: flex;
align-items: stretch;
gap: 2px;
width: min(560px, calc(100vw - 24px));
background: var(--navy, #112d4e);
color: #fff;
border-radius: 12px;
box-shadow: 0 10px 30px rgba(17, 45, 78, 0.28);
opacity: 0;
transition: transform .32s cubic-bezier(.2, .7, .3, 1), opacity .32s;
}
.lang-offer.is-in { transform: translate(-50%, 0); opacity: 1; }
.lang-offer-go {
flex: 1;
min-width: 0;
padding: 13px 16px;
color: #fff;
font-size: 0.95rem;
font-weight: 600;
line-height: 1.35;
text-decoration: none;
border-radius: 12px 0 0 12px;
}
.lang-offer-go:hover, .lang-offer-go:focus-visible { background: rgba(255, 255, 255, 0.12); }
.lang-offer-close {
flex: none;
width: 44px;
border: 0;
background: rgba(255, 255, 255, 0.08);
color: #fff;
font-size: 1rem;
line-height: 1;
cursor: pointer;
border-radius: 0 12px 12px 0;
}
.lang-offer-close:hover, .lang-offer-close:focus-visible { background: rgba(255, 255, 255, 0.2); }
@media (prefers-reduced-motion: reduce) {
.lang-offer { transition: opacity .2s; transform: translate(-50%, 0); }
}
@media (prefers-color-scheme: dark) {
:root:not([data-theme="light"]) .site-header,
:root:not([data-theme="light"]) .exam-bar {
background: rgba(16, 22, 33, 0.92);
}
:root:not([data-theme="light"]) .level-n1 { background: linear-gradient(180deg, #16202f, #131d2b); }
:root:not([data-theme="light"]) .level-n2 { background: linear-gradient(180deg, #152220, #121d1c); }
:root:not([data-theme="light"]) .level-n3 { background: linear-gradient(180deg, #221d12, #1b1810); }
:root:not([data-theme="light"]) .level-n4 { background: linear-gradient(180deg, #1d1a28, #181527); }
:root:not([data-theme="light"]) .level-n5 { background: linear-gradient(180deg, #16211d, #121c19); }
:root:not([data-theme="light"]) .q-audio-aside.is-failed,
:root:not([data-theme="light"]) .notice-card,
:root:not([data-theme="light"]) .q-passage {
background: #1b1a16;
border-color: #332f26;
}
:root:not([data-theme="light"]) {
--n1-ink: #e0bd73;
--n2-ink: #7db4ec;
--n3-ink: #6cc79b;
--n4-ink: #c49bf0;
--n5-ink: #9fb0c6;
}
:root:not([data-theme="light"]) .lvcard[data-level="N1"] { --level-color: var(--n1-ink); }
:root:not([data-theme="light"]) .lvcard[data-level="N2"] { --level-color: var(--n2-ink); }
:root:not([data-theme="light"]) .lvcard[data-level="N3"] { --level-color: var(--n3-ink); }
:root:not([data-theme="light"]) .lvcard[data-level="N4"] { --level-color: var(--n4-ink); }
:root:not([data-theme="light"]) .lvcard[data-level="N5"] { --level-color: var(--n5-ink); }
}
@media (prefers-color-scheme: dark) {
:root:not([data-theme="light"]) body {
background: linear-gradient(180deg, #0e131d 0%, #11161f 100%);
}
:root:not([data-theme="light"]) .notice-words { background: #141d2b; }
:root:not([data-theme="light"]) .notice-help { background: #1b1a16; }
:root:not([data-theme="light"]) .footer-mark {
color: var(--navy);
}
:root:not([data-theme="light"]) .guide-cta { background: #141d2b; border-color: #273142; }
:root:not([data-theme="light"]) .btn-ghost { background: transparent; color: var(--blue); }
:root:not([data-theme="light"]) [data-level="N1"] .lvcard-code,
:root:not([data-theme="light"]) .level-n1 .plevel-code { color: #e0bd73; }
:root:not([data-theme="light"]) [data-level="N2"] .lvcard-code,
:root:not([data-theme="light"]) .level-n2 .plevel-code { color: #7db4ec; }
:root:not([data-theme="light"]) [data-level="N3"] .lvcard-code,
:root:not([data-theme="light"]) .level-n3 .plevel-code { color: #6cc79b; }
:root:not([data-theme="light"]) [data-level="N4"] .lvcard-code,
:root:not([data-theme="light"]) .level-n4 .plevel-code { color: #c49bf0; }
:root:not([data-theme="light"]) [data-level="N5"] .lvcard-code,
:root:not([data-theme="light"]) .level-n5 .plevel-code { color: #a7b7cb; }
:root:not([data-theme="light"]) .feature-stat strong { color: var(--ink-strong); }
:root:not([data-theme="light"]) .about-plain,
:root:not([data-theme="light"]) .about-right { background: #151b27; }
:root:not([data-theme="light"]) .notice-help h3 { color: #e0c07a; }
}
@media (prefers-color-scheme: dark) {
:root:not([data-theme="light"]) .study-tab.is-on { color: var(--navy); }
:root:not([data-theme="light"]) .coverage-wrap .is-here { color: var(--text); }
}
@media (prefers-color-scheme: dark) {
:root:not([data-theme="light"]) .big-stat-number { color: var(--ink-strong); }
:root:not([data-theme="light"]) .setup-all-icon { color: var(--navy); }
}
.theme-toggle {
flex: none;
display: inline-grid;
place-items: center;
width: 38px;
height: 38px;
padding: 0;
border: 1px solid var(--line);
border-radius: 10px;
background: var(--panel);
color: var(--text);
cursor: pointer;
transition: background .18s, border-color .18s, color .18s;
}
.theme-toggle:hover,
.theme-toggle:focus-visible { border-color: var(--blue); color: var(--blue); }
.theme-toggle svg {
width: 19px;
height: 19px;
grid-area: 1 / 1;
fill: none;
stroke: currentColor;
stroke-width: 1.7;
stroke-linecap: round;
stroke-linejoin: round;
}
.theme-toggle .theme-moon { fill: currentColor; stroke: none; }
.theme-toggle .theme-moon { display: none; }
.theme-toggle[aria-pressed="false"] .theme-sun { display: none; }
.theme-toggle[aria-pressed="false"] .theme-moon { display: block; }
@media (max-width: 760px) {
.theme-toggle { width: 44px; height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
.theme-toggle { transition: none; }
}
:root {
--box-radius: 4px;
--box-spine: 4px;
--box-tint: 7%;
}
.feature-stat,
.notice-card,
.plevel {
border-radius: var(--box-radius);
border: 1px solid var(--line);
border-left: var(--box-spine) solid
var(--level-color, var(--accent, var(--blue)));
box-shadow: none;
}
.notice-card { border-radius: var(--box-radius); }
.hero-levels,
.review-strip,
.hero-countdown {
border-radius: var(--box-radius);
}
:root[data-theme="dark"] {
color-scheme: dark;
--on-accent: #0e131d;
--bg: #0e131d;
--panel: #151b27;
--panel-soft: #1b2330;
--navy: #0b1b30;
--navy-2: #122744;
--ink-strong: #d2e2f7;
--blue: #74aeea;
--gold: #e2bd6a;
--gold-ink: #e2bd6a;
--text: #e7ecf4;
--muted: #9dabbf;
--line: #273142;
--success: #5cc08d;
--danger: #ef8d93;
--shadow: 0 18px 36px rgba(0, 0, 0, 0.5);
}
:root[data-theme="dark"] .site-header,
:root[data-theme="dark"] .exam-bar {
background: rgba(16, 22, 33, 0.92);
}
:root[data-theme="dark"] .level-n1 { background: linear-gradient(180deg, #16202f, #131d2b); }
:root[data-theme="dark"] .level-n2 { background: linear-gradient(180deg, #152220, #121d1c); }
:root[data-theme="dark"] .level-n3 { background: linear-gradient(180deg, #221d12, #1b1810); }
:root[data-theme="dark"] .level-n4 { background: linear-gradient(180deg, #1d1a28, #181527); }
:root[data-theme="dark"] .level-n5 { background: linear-gradient(180deg, #16211d, #121c19); }
:root[data-theme="dark"] .q-audio-aside.is-failed,
:root[data-theme="dark"] .notice-card,
:root[data-theme="dark"] .q-passage {
background: #1b1a16;
border-color: #332f26;
}
:root[data-theme="dark"] {
--n1-ink: #e0bd73;
--n2-ink: #7db4ec;
--n3-ink: #6cc79b;
--n4-ink: #c49bf0;
--n5-ink: #9fb0c6;
}
:root[data-theme="dark"] .lvcard[data-level="N1"] { --level-color: var(--n1-ink); }
:root[data-theme="dark"] .lvcard[data-level="N2"] { --level-color: var(--n2-ink); }
:root[data-theme="dark"] .lvcard[data-level="N3"] { --level-color: var(--n3-ink); }
:root[data-theme="dark"] .lvcard[data-level="N4"] { --level-color: var(--n4-ink); }
:root[data-theme="dark"] .lvcard[data-level="N5"] { --level-color: var(--n5-ink); }
:root[data-theme="dark"] body {
background: linear-gradient(180deg, #0e131d 0%, #11161f 100%);
}
:root[data-theme="dark"] .notice-words { background: #141d2b; }
:root[data-theme="dark"] .notice-help { background: #1b1a16; }
:root[data-theme="dark"] .footer-mark {
color: var(--navy);
}
:root[data-theme="dark"] .guide-cta { background: #141d2b; border-color: #273142; }
:root[data-theme="dark"] .btn-ghost { background: transparent; color: var(--blue); }
:root[data-theme="dark"] [data-level="N1"] .lvcard-code,
:root[data-theme="dark"] .level-n1 .plevel-code { color: #e0bd73; }
:root[data-theme="dark"] [data-level="N2"] .lvcard-code,
:root[data-theme="dark"] .level-n2 .plevel-code { color: #7db4ec; }
:root[data-theme="dark"] [data-level="N3"] .lvcard-code,
:root[data-theme="dark"] .level-n3 .plevel-code { color: #6cc79b; }
:root[data-theme="dark"] [data-level="N4"] .lvcard-code,
:root[data-theme="dark"] .level-n4 .plevel-code { color: #c49bf0; }
:root[data-theme="dark"] [data-level="N5"] .lvcard-code,
:root[data-theme="dark"] .level-n5 .plevel-code { color: #a7b7cb; }
:root[data-theme="dark"] .feature-stat strong { color: var(--ink-strong); }
:root[data-theme="dark"] .about-plain,
:root[data-theme="dark"] .about-right { background: #151b27; }
:root[data-theme="dark"] .notice-help h3 { color: #e0c07a; }
:root[data-theme="dark"] .study-tab.is-on { color: var(--navy); }
:root[data-theme="dark"] .coverage-wrap .is-here { color: var(--text); }
:root[data-theme="dark"] .big-stat-number { color: var(--ink-strong); }
:root[data-theme="dark"] .setup-all-icon { color: var(--navy); }