:root{--ground: #F3F7F6;--ink: #10302F;--muted: #4F6665;--teal: #0B5563;--teal-soft: #DCEBE8;--coral: #C8451F;--coral-soft: #FBE9DF;--line: #D5E2DF;--white: #FFFFFF}*{box-sizing:border-box}html,body{margin:0}body{background:var(--ground);color:var(--ink);font-family:Zen Kaku Gothic New,system-ui,sans-serif;font-size:15px;line-height:1.6;-webkit-text-size-adjust:100%}.en{font-family:Outfit,system-ui,sans-serif}h1,h2,p{margin:0}h1{font-size:24px;line-height:1.2}h2{font-size:16px}button,input,select{font:inherit;color:inherit}button{cursor:pointer}button:disabled{cursor:default;opacity:.55}:focus-visible{outline:3px solid #10302F;outline-offset:2px}.app{min-height:100dvh;display:flex;flex-direction:column;max-width:520px;margin:0 auto}main{flex:1;padding-bottom:84px}.page{padding:20px 20px 24px;display:flex;flex-direction:column;gap:14px;max-width:520px;margin:0 auto}.page.narrow{min-height:100dvh;justify-content:center}.center{min-height:100dvh;display:flex;flex-direction:column;gap:12px;align-items:center;justify-content:center;padding:24px;text-align:center;color:var(--muted)}.center-text{text-align:center}.top{display:flex;justify-content:space-between;align-items:center;gap:12px}.top h1.en{font-size:28px}.sub,.note{color:var(--muted);font-size:13px}.label{font-size:12px;font-weight:700;color:var(--teal)}.row{display:flex;justify-content:space-between;align-items:baseline;gap:8px}.alert{background:#fde8e1;color:#8a2a10;border-radius:10px;padding:8px 12px;font-size:14px}.card{background:var(--white);border-radius:18px;padding:16px;display:flex;flex-direction:column;gap:10px}.card.soft{background:var(--coral-soft)}.card.soft .note{color:#5b4335}.card form{display:flex;flex-direction:column;gap:8px}label{display:flex;flex-direction:column;gap:6px;font-size:13px;font-weight:700}input{min-height:48px;border-radius:12px;border:1px solid #9DB8B4;padding:0 14px;background:var(--white);font-size:16px;width:100%}select{min-height:48px;border-radius:12px;border:1px solid #9DB8B4;padding:8px 12px;background:var(--white);font-size:14px;width:100%}.inline{display:flex;gap:8px}.inline input{flex:1;min-width:0}.btn{min-height:52px;border-radius:14px;border:2px solid var(--teal);background:var(--teal);color:var(--white);font-size:16px;font-weight:700;padding:0 16px;display:inline-flex;align-items:center;justify-content:center;gap:8px}.btn.accent{background:var(--coral);border-color:var(--coral)}.btn.outline{background:var(--white);color:var(--teal)}.btn.outline.warn{color:var(--coral);border-color:var(--coral)}.link{min-height:44px;background:none;border:none;color:var(--teal);font-weight:700;font-size:14px}.badge{font-size:12px;font-weight:700;color:var(--teal);white-space:nowrap}.plain{margin:0;padding-left:18px;font-size:14px}.tip{background:var(--coral-soft);color:#5b4335;border-radius:12px;padding:8px 12px;font-size:13px}.auth{min-height:100dvh;background:var(--teal);color:var(--white);display:flex;flex-direction:column;justify-content:flex-end;max-width:520px;margin:0 auto}.auth-hero{padding:48px 28px 32px}.auth-hero h1{font-family:Outfit,sans-serif;font-size:44px;line-height:1.05}.auth-hero p{margin-top:12px}.auth-form{background:var(--ground);color:var(--ink);border-radius:28px 28px 0 0;padding:28px 24px 32px;display:flex;flex-direction:column;gap:14px}.auth-form h2{font-size:20px}.profile-list{display:flex;flex-direction:column;gap:8px}.profile-row{min-height:64px;background:var(--white);border:2px solid var(--line);border-radius:16px;padding:8px 14px;display:flex;align-items:center;gap:12px;font-size:17px;font-weight:700;text-align:left}.profile-item{display:flex;gap:6px}.profile-item .profile-row{flex:1;min-width:0}.profile-item .profile-row span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.profile-edit{min-width:62px;min-height:54px;border:2px solid var(--line);border-radius:14px;background:var(--white);padding:0 6px;color:var(--teal);font-size:12px;font-weight:700}.hidden-profiles summary{cursor:pointer;font-weight:700}.hidden-profile-row{display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid var(--line);padding-top:10px}.hidden-profile-row .btn{width:auto;min-width:100px}.avatar{border-radius:50%;overflow:hidden;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;font-weight:700;color:var(--teal);border:2px solid var(--teal)}.avatar img,.avatar .panel-svg,.avatar svg{width:100%;height:100%;object-fit:cover;display:block}.who{background:var(--white);border:2px solid var(--line);border-radius:16px;min-height:60px;padding:6px 14px;display:flex;align-items:center;gap:12px;font-size:16px;text-align:left}.who-change{margin-left:auto;font-size:13px;font-weight:700;color:var(--teal)}.countdown{background:var(--teal);color:var(--white);border-radius:14px;padding:8px 14px;text-align:center;display:flex;flex-direction:column;font-size:11px}.countdown strong{font-family:Outfit,sans-serif;font-size:22px;line-height:1.1}.countdown small{font-size:12px;font-weight:500}.seg{display:grid;grid-template-columns:1fr 1fr;gap:6px}.seg button,.chips button{min-height:44px;border-radius:12px;border:2px solid var(--line);background:var(--white);font-size:14px;font-weight:700}.seg button.on{background:var(--coral);border-color:var(--coral);color:var(--white)}.next{flex-direction:row;align-items:center;gap:14px}.next-panel{width:128px;flex-shrink:0;border-radius:14px;overflow:hidden}.next-body{flex:1;min-width:0;display:flex;flex-direction:column;gap:6px}.next-body h2{font-size:20px}.next-body p:not(.label){font-size:14px}.daily-menu{display:flex;flex-direction:column;gap:6px}.daily-menu button{min-height:56px;border:1px solid var(--line);border-radius:12px;background:var(--white);padding:8px 12px;display:flex;justify-content:space-between;align-items:center;gap:8px;text-align:left}.daily-menu button strong{font-size:14px}.daily-menu button span{font-size:12px;color:var(--muted)}.panel{position:relative;width:100%;aspect-ratio:111 / 70;overflow:hidden}.panel img,.panel-svg,.panel-svg svg{width:100%;height:100%;display:block;object-fit:cover}.panel-cover{position:absolute;top:0;right:0;bottom:0;left:0;display:flex}.strip{flex:1;background:var(--teal);border-right:1px solid #2B7482;transition:transform .6s ease,opacity .6s ease;transform-origin:left center}.strip:last-child{border-right:none}.strip.locked{background:#b9ccc8;border-right-color:var(--line)}.strip.open{transform:rotateY(90deg);opacity:0}@media(prefers-reduced-motion:reduce){.strip{transition:none}}.map-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.tile{padding:0 0 6px;border:2px solid var(--line);border-radius:14px;overflow:hidden;background:var(--white);display:flex;flex-direction:column;align-items:center}.tile.open{border-color:var(--coral)}.tile.complete{border-color:var(--teal)}.tile.selected{box-shadow:0 0 0 2px var(--ground),0 0 0 4px var(--ink)}.tile-name{font-size:12px;font-weight:700;margin-top:4px;line-height:1.3;padding:0 2px}.tile-count{font-size:11px;font-weight:600;color:var(--muted)}.steps{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px}.step{width:100%;min-height:48px;border-radius:12px;border:2px solid var(--line);background:var(--white);padding:4px 12px;display:flex;align-items:center;gap:10px;text-align:left;font-size:14px}.step.next{border-color:var(--coral);font-weight:700}.step-no{width:24px;height:24px;border-radius:50%;border:2px solid #9DB8B4;display:inline-flex;align-items:center;justify-content:center;font-size:12px;font-weight:700;flex-shrink:0}.step.done .step-no{background:var(--teal);border-color:var(--teal);color:var(--white)}.step.next .step-no{border-color:var(--coral)}.step-title{flex:1}.step-go{font-size:12px;font-weight:700;color:var(--teal);white-space:nowrap}.practice{min-height:100dvh}.practice-top{display:flex;align-items:center;gap:12px}.back{min-height:44px;background:none;border:none;color:var(--teal);font-weight:700;display:inline-flex;align-items:center;gap:4px;padding:0}.meter{flex:1;height:10px;border-radius:5px;background:var(--line);overflow:hidden}.meter div{height:100%;background:var(--teal);border-radius:5px;transition:width .3s}.meter.wide{flex:none;background:#e7f0ee}.meter.wide div{background:var(--coral)}.phrase-image{width:100%;aspect-ratio:16 / 9;object-fit:cover;border-radius:12px}.sentence{display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 8px;line-height:1.25;min-height:64px;align-content:center}.sentence .strong{font-size:32px;font-weight:700;color:var(--teal)}.sentence .weak{font-size:18px;font-weight:400;color:var(--muted)}.sentence .slot{color:var(--coral)}.ja-toggle{min-height:44px;text-align:left;background:var(--ground);border:none;border-radius:10px;padding:8px 12px;font-size:14px}.two{display:grid;grid-template-columns:1fr 1fr;gap:8px}.three{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.three .btn{font-size:14px;padding:0 4px;min-height:56px}.ask{font-size:14px;margin-bottom:8px}.practice section>.note{margin-top:8px}.chips{display:grid;grid-template-columns:1fr 1fr;gap:8px}.chips button{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:4px 8px;min-height:52px}.chips button .en{font-size:16px;font-weight:600}.chips button small{font-size:11px;font-weight:500}.chips button.on{background:var(--coral-soft);border-color:var(--coral)}.done-hero{background:var(--white);border-radius:18px;padding:20px 16px;display:flex;flex-direction:column;gap:12px;text-align:center;margin-top:24px}.done-panel{border-radius:14px;overflow:hidden}.big{font-size:22px}.bars{display:flex;gap:6px}.bars span{flex:1;height:10px;border-radius:5px;background:var(--line)}.bars span.on{background:var(--teal)}.stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;text-align:center}.stats div{background:var(--white);border-radius:14px;padding:10px 4px;display:flex;flex-direction:column}.stats strong{font-size:24px;color:var(--teal);line-height:1.1}.stats small{font-size:13px}.stats span{font-size:12px;color:var(--muted)}.week{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:8px;align-items:end;height:96px}.week div{display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:2px;height:100%}.week span{font-size:11px;font-weight:600}.week i{width:100%;border-radius:4px;background:var(--line)}.week i.on{background:var(--teal)}.week small{font-size:11px;color:var(--muted)}.members{list-style:none;margin:0;padding:0;font-size:14px}.members li{display:flex;justify-content:space-between;padding:4px 0}.tabs{position:fixed;bottom:0;left:50%;transform:translate(-50%);width:100%;max-width:520px;height:calc(64px + env(safe-area-inset-bottom));padding-bottom:env(safe-area-inset-bottom);background:var(--white);border-top:1px solid var(--line);display:grid;grid-template-columns:repeat(4,1fr)}.tabs button{background:none;border:none;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;font-size:12px;color:var(--muted)}.tabs button.active{color:var(--teal);font-weight:700}.learning-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.learning-card{min-height:126px;border:2px solid var(--line);border-radius:18px;background:var(--white);padding:14px;display:flex;flex-direction:column;gap:5px;text-align:left}.learning-card strong{font-size:16px;color:var(--teal)}.learning-card span,.learning-card small{font-size:12px;color:var(--muted)}.stage-tabs,.topic-tabs,.mode-tabs{display:grid;gap:6px}.stage-tabs,.topic-tabs{grid-template-columns:repeat(4,minmax(0,1fr))}.mode-tabs{grid-template-columns:repeat(3,minmax(0,1fr))}.stage-tabs button,.topic-tabs button,.mode-tabs button{min-height:50px;border:2px solid var(--line);border-radius:12px;background:var(--white);padding:4px;font-size:12px;font-weight:700}.stage-tabs button{display:flex;flex-direction:column;align-items:center;justify-content:center}.stage-tabs small{color:var(--muted)}.stage-tabs button.on,.topic-tabs button.on,.mode-tabs button.on{color:var(--white);border-color:var(--teal);background:var(--teal)}.stage-tabs button.on small{color:var(--white)}.word-list{display:flex;flex-direction:column;gap:7px}.word-row{min-height:66px;border:2px solid var(--line);border-radius:14px;background:var(--white);padding:8px 12px;display:flex;justify-content:space-between;align-items:center;gap:8px;text-align:left}.word-row>span:first-child{display:flex;flex-direction:column}.word-row strong{font-size:18px}.word-row small{color:var(--muted);font-size:12px}.sound-round{min-width:48px;min-height:48px;border:0;border-radius:50%;background:var(--teal);color:var(--white);display:inline-flex;align-items:center;justify-content:center;font-size:24px}.word-detail h1{font-size:30px}.word-image,.word-image-missing{width:100%;aspect-ratio:16 / 9;border-radius:12px;object-fit:cover}.word-image-missing{display:flex;align-items:center;justify-content:center;background:var(--teal-soft);color:var(--muted);font-size:13px}.stage-track{display:grid;grid-template-columns:repeat(4,1fr);gap:5px}.stage-track span{height:10px;border-radius:5px;background:var(--line)}.stage-track span.on{background:var(--coral)}.exercise-prompt{min-height:150px;justify-content:center}.exercise-prompt h2{font-size:23px}.count-timer{align-self:flex-end;font-family:Outfit,sans-serif;color:var(--coral);font-weight:700}.friend-row{border-top:1px solid var(--line);padding:12px 0;display:grid;grid-template-columns:1fr 48px;gap:8px;align-items:center}.friend-row>.btn{grid-column:1 / -1}.friend-row strong{font-size:18px}.rhythm-card{min-height:200px}.rhythm-chunks,.rhythm-stretch,.rhythm-plain{font-size:26px;line-height:1.5;color:var(--teal)}.rhythm-chunks{display:flex;flex-wrap:wrap;gap:6px 12px}.rhythm-chunks span{background:var(--teal-soft);border-radius:8px;padding:2px 6px}.rhythm-stretch .stretched{color:var(--coral);font-weight:700;text-decoration:underline;text-decoration-thickness:3px;text-underline-offset:5px}.recording-list{display:flex;flex-direction:column;gap:8px}.recording-list audio{width:100%}
