@charset "UTF-8";
:root{--bg:#f6f7f2;--paper:#fff;--ink:#263d35;--muted:#6b7971;--green:#254e43;--light:#e8eee4;--line:#dde3da;--lime:#d8e999;--orange:#a85b38;--radius:20px}
*{box-sizing:border-box}
body{margin:0;background:var(--bg);color:var(--ink);font-family:"BIZ UDPGothic","Yu Gothic","Meiryo",sans-serif;font-size:14px;line-height:1.7;-webkit-font-smoothing:antialiased}
button,a{-webkit-tap-highlight-color:transparent}
button{font:inherit;cursor:pointer}
button:disabled{cursor:default}
button,a{touch-action:manipulation}
button:focus-visible,a:focus-visible{outline:3px solid #bb8b2b;outline-offset:4px}
button{transition:background .16s,box-shadow .16s,transform .16s}
button:not(:disabled):active{transform:translateY(1px)}
a{color:inherit}
svg{width:23px;height:23px;flex-shrink:0;vertical-align:middle}
.header{height:94px;max-width:1180px;padding:0 40px;margin:auto;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}
.brand{display:flex;align-items:center;gap:11px;text-decoration:none;font-size:21px;font-weight:700;line-height:1.4;letter-spacing:.08em}
.brand-mark{background:var(--green);color:#fff9e9;border-radius:13px;width:46px;height:46px;display:grid;place-items:center;font:30px "Yu Mincho",serif}
.brand small{display:block;font-size:8px;letter-spacing:.19em;color:var(--muted);margin-top:2px}
nav{display:flex;align-items:center;gap:10px}
.nav-button,.settings-button{border:0;background:none;color:var(--muted);padding:11px 18px;border-radius:30px;font-size:13px;font-weight:700}
.nav-button.active{color:var(--green);background:var(--light)}
.settings-button{padding:7px 12px;font-size:24px}
#app{max-width:1180px;padding:0 40px;margin:auto;min-height:70vh;outline:none}
.language-picker{display:flex;justify-content:flex-end;align-items:center;gap:10px;padding-top:18px;color:var(--muted);font-size:11px}.language-picker select{border:1px solid var(--line);border-radius:20px;background:white;color:var(--ink);padding:8px 30px 8px 12px;font:inherit}
.hero{display:grid;grid-template-columns:1.1fr 1fr;align-items:center;padding:58px 0 46px;gap:30px}
.eyebrow{font-size:11px;font-weight:700;letter-spacing:.16em;color:var(--green);margin:0 0 17px}
.eyebrow>span{display:inline-block;width:7px;height:7px;background:#8aa266;border-radius:50%;margin-right:8px}
h1,h2,p{margin-top:0}
.hero h1{font-family:"Yu Mincho","Hiragino Mincho ProN",serif;font-size:clamp(36px,4vw,49px);line-height:1.6;letter-spacing:.07em;margin:0 0 19px}
.hero-description{color:var(--muted);line-height:2;font-size:14px;margin-bottom:27px}
.primary-button{display:inline-flex;align-items:center;justify-content:center;gap:27px;background:var(--green);color:white;border:1px solid var(--green);padding:15px 27px;border-radius:12px;font-weight:700;min-height:54px}
.primary-button:hover{background:#183c32;box-shadow:0 5px 12px #254e4314}
.hero-caption{margin:13px 0 0;color:var(--muted);font-size:11px;letter-spacing:.04em}
.hero-caption span{padding:0 5px}
.hero-art{position:relative;height:330px;border-radius:48% 48% 40% 42%;background:#e9eee2;max-width:450px;width:100%;justify-self:end}
.orbit{position:absolute;border:1px dashed #b3c3a8;border-radius:50%;inset:24px;transform:rotate(-25deg)}
.orbit-two{inset:52px 12px;transform:rotate(35deg)}
.art-word{position:absolute;display:flex;align-items:center;justify-content:center;flex-direction:column;background:#fffcf2;border:1px solid #fff;box-shadow:0 14px 26px #2e4a2c0d;font-family:"Yu Mincho","Hiragino Mincho ProN",serif;font-size:82px;line-height:1.1;border-radius:20px;width:139px;height:154px}
.art-word small{font-family:inherit;font-size:12px;letter-spacing:.3em;margin-top:10px}
.word-forest{top:81px;left:34%;transform:rotate(5deg);z-index:2;background:var(--green);color:#f9f5dd}
.word-tree{left:5%;top:30px;transform:rotate(-11deg);font-size:65px;width:112px;height:126px}
.word-mountain{right:0;bottom:39px;transform:rotate(11deg);font-size:59px;width:112px;height:126px}
.art-leaf{position:absolute;background:#a9be86;width:21px;height:42px;border-radius:2px 80%;transform:rotate(23deg)}
.leaf-one{right:57px;top:35px}.leaf-two{left:40px;bottom:46px;transform:rotate(100deg);background:#c9d5a3}
.art-caption{position:absolute;bottom:18px;left:24%;font-size:10px;letter-spacing:.12em;color:#75866b}
.stats{display:grid;grid-template-columns:repeat(3,1fr);border:1px solid var(--line);border-radius:var(--radius);background:#ffffffa6;padding:24px 15px;margin-bottom:46px}
.stats>div{display:flex;align-items:center;gap:16px;padding:0 25px;border-right:1px solid var(--line)}
.stats>div:last-child{border:0}
.stats svg{width:38px;height:38px;padding:8px;border-radius:12px;background:var(--light);color:#5f7c4f}
.stats small{font-size:11px;color:var(--muted);display:block;margin-bottom:4px}
.stats strong{font-family:Arial,"Meiryo",sans-serif;font-size:27px;line-height:1.3;font-weight:500;display:block}
.stats em{font-family:"Meiryo",sans-serif;font-size:11px;font-style:normal;font-weight:400;color:var(--muted);margin-left:4px}
.stats .step-value{font-size:23px}
.step-value em{display:inline-block;margin-left:10px}
.section-heading{display:flex;justify-content:space-between;align-items:center}
.section-heading .eyebrow{font-size:10px;margin-bottom:5px}
.section-heading h2{font-size:23px;letter-spacing:.04em;margin:0}
.count-tag{font-family:Arial,sans-serif;font-size:10px;letter-spacing:.07em;color:var(--muted);border:1px solid var(--line);padding:7px 11px;border-radius:20px}
.section-description{font-size:12px;color:var(--muted);margin:12px 0 25px}
.level-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:17px}
.level-card{text-align:left;border:1px solid var(--line);border-radius:17px;padding:22px;background:var(--paper);color:var(--ink);position:relative}
.level-card.current{border:1.5px solid #6b8970;background:#fcfff8;box-shadow:0 4px 14px #254e4306}
.level-card:not(:disabled):hover{box-shadow:0 7px 22px #254e4316;transform:translateY(-2px)}
.level-card.locked{background:#f0f2ec;color:#778276}
.level-card-top,.level-card-bottom{display:flex;align-items:center;justify-content:space-between}
.level-number{font:600 11px Arial,sans-serif;letter-spacing:.13em}
.status-pill{display:inline-flex;align-items:center;gap:3px;font-size:9px;color:#6c795d;min-height:24px}
.status-pill svg{height:14px;width:14px}
.current .status-pill,.complete .status-pill{background:#e4edcf;padding:3px 8px;border-radius:20px;color:#44612e}
.level-card-body{display:flex;align-items:center;gap:13px;margin:17px 0 12px}
.level-symbol{display:grid;place-items:center;width:47px;height:51px;flex-shrink:0;background:#edf2e6;border-radius:12px;font:30px "Yu Mincho",serif}
.locked .level-symbol{background:#e6eae1;color:#8d9885}
.level-card-body strong{display:block;font-size:16px;letter-spacing:.02em}
.level-card-body small{display:block;font-size:10px;margin-top:4px;color:var(--muted)}
.level-card p{font-size:11px;color:var(--muted);margin:0 0 17px}
.meter{height:5px;background:#e5e9e0;border-radius:10px;overflow:hidden}
.meter>span{display:block;height:100%;background:#7f9b58;border-radius:inherit;transition:width .25s}
.level-card-bottom{font-size:10px;color:var(--muted);margin-top:11px}
.level-card-bottom svg{width:17px;height:17px}
.complete{background:#f9fcf5}
.hint{display:flex;align-items:center;justify-content:center;gap:13px;padding:29px 10px}
.hint>span{width:35px;height:35px;color:#7f955f}
.hint p{margin:0;font-size:12px}
.hint small{font-size:10px;display:block;color:var(--muted);margin-top:4px}
footer{max-width:1100px;margin:20px auto 0;padding:23px 0 30px;border-top:1px solid var(--line);font-size:12px;font-weight:700;display:flex;justify-content:space-between}
footer span{font-size:10px;color:var(--muted);font-weight:400}
.text-button{display:inline-flex;align-items:center;justify-content:center;gap:6px;border:0;background:transparent;color:var(--green);font-size:12px;padding:10px 7px;min-height:44px}
.text-button:hover{background:var(--light);border-radius:9px}
.text-button:disabled{color:#889284}
.text-button svg{width:17px;height:17px}
.quiz-wrap{max-width:720px;margin:25px auto 60px}
.quiz-top{display:flex;align-items:center;justify-content:space-between}
.subtle{font-size:12px;color:var(--muted)}
.quiz-level{text-align:center;margin:23px 0 20px}
.quiz-level .eyebrow{margin:0 0 6px}
.quiz-level h1{font-size:24px;margin:0 0 10px}
.quiz-level p{font-size:12px;color:var(--muted);margin:0}
.quiz-level p strong{color:var(--green);font-size:19px}
.quiz-wrap>.meter{height:7px;margin:0 0 26px}
.question-panel{background:white;border:1px solid var(--line);border-radius:24px;text-align:center;padding:29px 38px 35px}
.question-label{color:var(--muted);font-size:14px;letter-spacing:.07em}
rt{font-size:.55em}
.question-word{font-family:"Yu Mincho","Hiragino Mincho ProN",serif;font-size:86px;line-height:1.5;letter-spacing:.1em;margin:20px 0 7px;color:#1f382f;font-weight:600}
.question-word.long-word{font-size:64px}
.question-help{font-size:12px;color:var(--muted);margin:12px 0 22px}
.word-context{font-size:12px;color:var(--muted);margin:0 0 10px}
.answers{display:grid;grid-template-columns:1fr 1fr;gap:13px}
.answer-button{display:flex;align-items:center;justify-content:space-between;gap:8px;border:1.5px solid #dce3d8;border-radius:13px;padding:17px 15px;color:var(--ink);background:#fcfdfb;font-size:20px;min-height:70px;font-weight:700}
.answer-button:not(:disabled):hover{background:#eef4e6;border-color:#7e966b}
.choice-number{font:12px Arial,sans-serif;color:var(--muted);border:1px solid #dde5d5;border-radius:6px;width:23px;height:23px;display:grid;place-items:center;flex-shrink:0}
.choice-romaji{display:block;font:11px Arial,sans-serif;font-weight:400;letter-spacing:.04em;color:var(--muted);margin-top:2px}
.choice-result{width:20px;font-size:21px;flex-shrink:0}
.answer-correct{border-color:#5f8550;background:#edf6e4;color:#345d2a}
.answer-wrong{border-color:#c3896a;background:#fdf0e8;color:#8c482b}
.answer-muted{color:#939d92;background:#f6f7f4}
.quiz-note{text-align:center;font-size:12px;color:var(--muted);margin-top:22px}
.feedback{display:flex;align-items:center;justify-content:space-between;gap:15px;border-radius:18px;padding:22px;margin-top:20px;border:1px solid #d2e2c8;background:#eaf2e1}
.feedback strong{font-size:15px}
.feedback p{font-size:13px;margin:6px 0 0}
.feedback small{display:block;margin-top:4px}
.feedback-retry{background:#fbefe3;border-color:#ead7c6;color:#7b4a2b}
.feedback .primary-button{padding:12px 18px;gap:10px;white-space:nowrap;font-size:13px}
.result-panel{max-width:700px;text-align:center;margin:60px auto;background:white;border:1px solid var(--line);border-radius:28px;padding:44px}
.result-seal{display:grid;place-items:center;background:var(--light);color:var(--green);height:84px;width:84px;border-radius:50%;margin:0 auto 23px}
.result-seal svg{width:43px;height:43px}
.result-panel h1{font-size:29px;letter-spacing:.03em;margin-bottom:17px}
.result-panel>p:not(.eyebrow){font-size:13px;color:var(--muted)}
.result-details{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;background:var(--bg);padding:23px 10px;border-radius:16px;margin:28px 0;font-size:11px;color:var(--muted)}
.result-details strong{display:block;color:var(--green);font:30px Arial,sans-serif;margin-top:9px}
.result-details small{font-size:11px;margin-left:5px}
.unlock-note{font-size:12px;color:var(--green);margin-bottom:23px}
.unlock-note svg{height:17px;width:17px;margin-right:5px}
.result-links{display:flex;justify-content:center;gap:18px;margin-top:20px}
.records-section{padding:44px 0}
.records-section h1{font-size:30px;margin-bottom:10px}
.records-section .eyebrow{margin-bottom:6px}
.records-stats{margin:25px 0}
.record-list{border:1px solid var(--line);background:white;border-radius:20px;overflow:hidden}
.record-row{display:grid;grid-template-columns:40px 1fr 75px 85px;gap:20px;align-items:center;padding:20px 25px;border-bottom:1px solid var(--line)}
.record-row:last-child{border:0}
.record-level{font:22px Arial,sans-serif;color:#839773}
.record-row strong{display:block;font-size:14px}
.record-row small{font-size:10px;color:var(--muted)}
.record-row .meter{margin-top:8px;max-width:480px}
.record-count{text-align:right;font-size:19px}
.storage-note{text-align:center;font-size:11px;color:var(--muted);margin-top:23px}
dialog{border:1px solid var(--line);border-radius:22px;width:min(92vw,520px);padding:28px;color:var(--ink);box-shadow:0 20px 70px #122a3440}
dialog::backdrop{background:#142c2560;backdrop-filter:blur(3px)}
.dialog-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px;gap:10px}
.dialog-top h2{font-size:19px;margin:0}
.icon-button{border:0;background:var(--bg);border-radius:50%;min-width:44px;height:44px;font-size:23px;color:var(--green)}
dialog p{font-size:13px;color:var(--muted)}
hr{border:0;border-top:1px solid var(--line);margin:22px 0}
.danger-button{background:#fff5ef;border:1px solid #e2c9b8;color:#8e442c;border-radius:8px;padding:12px;font-size:12px}
#reset-confirm p{margin-top:17px}
#storage-warning{padding:12px 24px;background:#fff0ce;color:#644414;font-size:13px;text-align:center}
[hidden]{display:none!important}
@media(min-width:1100px){.level-grid{grid-template-columns:repeat(5,1fr)}.level-card{padding:17px 14px}.level-card-body{display:block;margin-top:12px}.level-symbol{margin-bottom:13px}.level-card-body strong{font-size:14px}.level-card p{font-size:10px}.status-pill{font-size:8px}.current .status-pill{padding:3px 5px}.level-number{font-size:10px}}
@media(max-width:780px){.header{padding:0 23px;height:83px}#app{padding:0 24px}.hero{gap:10px;padding:35px 0}.hero h1{font-size:36px}.hero-description{font-size:12px}.hero-art{height:270px}.art-word{width:110px;height:130px;font-size:66px}.word-tree,.word-mountain{width:86px;height:103px;font-size:52px}.word-forest{left:30%}.art-caption{font-size:8px;left:16%;bottom:8px}.stats{padding:20px 8px}.stats>div{padding:0 13px;gap:9px}.stats svg{display:none}.stats strong{font-size:25px}.step-value em{display:block;margin-left:0;margin-top:4px}.stats small{font-size:10px}.level-grid{grid-template-columns:repeat(2,1fr)}footer{margin-left:24px;margin-right:24px}.nav-button{padding:9px 11px;font-size:11px}.brand{font-size:18px}.brand-mark{width:40px;height:40px;font-size:26px}.count-tag{font-size:8px}}
@media(max-width:520px){.header{height:77px;padding:0 18px;gap:8px}.brand{gap:7px;font-size:16px;flex-shrink:0}.brand small{font-size:6px}.brand-mark{width:35px;height:39px;font-size:25px;border-radius:11px}nav{gap:2px}.nav-button{font-size:10px;padding:10px 8px;min-height:44px}.settings-button{font-size:23px;padding:6px;width:35px;min-height:44px}#app{padding:0 20px}.hero{position:relative;display:block;padding:33px 0 27px;overflow:hidden}.hero-copy{position:relative;z-index:2}.hero .eyebrow{font-size:10px;margin-bottom:13px}.hero h1{font-size:34px;line-height:1.5;letter-spacing:.04em;margin-bottom:15px}.hero-description{font-size:11px;line-height:1.9;max-width:270px;margin-bottom:21px}.hero-art{position:absolute;right:-40px;top:27px;width:165px;height:180px;opacity:.77}.art-word{width:75px;height:84px;font-size:45px;border-radius:12px}.word-forest{top:57px;left:31%;transform:rotate(9deg)}.word-tree{width:56px;height:62px;top:20px;left:0;font-size:33px}.word-mountain{display:none}.art-word small{font-size:8px;margin-top:3px}.leaf-one{right:30px;top:20px;width:12px;height:24px}.leaf-two{left:19px;bottom:19px;width:12px;height:24px}.art-caption{display:none}.hero .primary-button{padding:13px 22px;font-size:13px;min-height:49px}.hero-caption{font-size:9px;margin-top:10px}.stats{padding:17px 2px;margin-bottom:32px;border-radius:15px}.stats>div{padding:0 10px;display:block}.stats small{font-size:9px;white-space:nowrap}.stats strong{font-size:24px}.stats em{font-size:9px;margin-left:1px}.stats .step-value{font-size:19px}.step-value em{font-size:8px;margin-top:2px}.section-heading h2{font-size:21px}.section-heading .eyebrow{font-size:8px}.count-tag{display:none}.section-description{font-size:11px;line-height:1.9;margin-bottom:17px}.level-grid{gap:11px}.level-card{padding:15px 12px;border-radius:14px}.level-number{font-size:9px}.status-pill{font-size:8px}.current .status-pill{padding:3px 5px}.level-card-body{display:block;margin:12px 0 9px}.level-symbol{width:37px;height:41px;font-size:25px;border-radius:10px;margin-bottom:11px}.level-card-body strong{font-size:13px}.level-card-body small{font-size:9px}.level-card p{font-size:9px;margin-bottom:15px;min-height:16px}.level-card-bottom{font-size:8px;gap:2px}.level-card-bottom svg{width:14px;height:14px}.hint{padding:26px 0;gap:8px}.hint p{font-size:11px}.hint small{font-size:9px}footer{font-size:11px;padding-bottom:23px;margin-top:5px}footer span{font-size:8px}.quiz-wrap{margin-top:14px}.quiz-level{margin-top:16px}.quiz-level h1{font-size:22px}.question-panel{padding:24px 17px;border-radius:20px}.question-word{font-size:78px;margin-top:20px}.question-word.long-word{font-size:53px}.question-label{font-size:13px}.question-help{font-size:10px}.answers{gap:10px}.answer-button{padding:16px 9px;font-size:17px;gap:3px;min-height:67px}.choice-number{width:18px;height:20px;font-size:10px}.choice-result{width:13px;font-size:16px}.feedback{display:block;padding:18px;margin-top:15px}.feedback strong{font-size:14px}.feedback p{font-size:12px}.feedback .primary-button{width:100%;margin-top:15px}.quiz-note{font-size:10px}.result-panel{padding:28px 18px;margin:30px auto}.result-panel h1{font-size:23px}.result-links{gap:9px}.result-links .text-button{font-size:10px}.unlock-note{font-size:11px}.records-section{padding-top:30px}.record-row{grid-template-columns:25px 1fr 45px 61px;gap:9px;padding:17px 13px}.record-row strong{font-size:12px}.record-level{font-size:18px}.record-count{font-size:17px}.record-row .text-button{font-size:10px}.record-row small{font-size:9px}.records-stats small{font-size:8px}.dialog-top h2{font-size:16px}}
@media(max-width:365px){#app{padding:0 14px}.header{padding:0 12px}.brand{font-size:14px}.nav-button{font-size:9px;padding:8px 5px}.hero-art{right:-59px;opacity:.5}.hero h1{font-size:32px}.level-card-body strong{font-size:12px}.level-card p{font-size:8px}.answer-button{font-size:15px}.stats>div{padding:0 8px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
