:root{--ink:#17252c;--muted:#697681;--paper:#f6f4ef;--line:#e6e5e0;--teal:#005f64;--yellow:#eff6b0;--purple:#e9e3ff;--pink:#ffe9e4;--card:#fff;--safe-bottom:env(safe-area-inset-bottom,0px);--safe-top:env(safe-area-inset-top,0px)}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}html,body{margin:0;padding:0;width:100%;height:100%;overscroll-behavior:none}body{background:#15232b;color:var(--ink);font-family:-apple-system,BlinkMacSystemFont,"Hiragino Kaku Gothic ProN","Hiragino Sans","Yu Gothic",Meiryo,sans-serif}button{font:inherit;cursor:pointer}button:focus-visible{outline:3px solid #4ebac1;outline-offset:2px}.app{height:100dvh;max-height:100dvh;max-width:480px;margin:auto;background:var(--paper);display:flex;flex-direction:column;overflow:hidden;position:relative;box-shadow:0 10px 65px #0003}.topbar{padding:calc(var(--safe-top) + 14px) 22px 11px;display:flex;align-items:center;justify-content:space-between;flex:0 0 auto}.logo{font-family:Arial,Helvetica,sans-serif;font-weight:950;font-size:18px;letter-spacing:-.85px}.logo span{margin-left:3px;color:#188789}.logo small{font-size:10px;margin-left:4px;color:#758289;font-weight:700;vertical-align:top}.top-action{border:1px solid #e1e4df;background:white;border-radius:50px;display:flex;align-items:center;gap:4px;font-size:13px;padding:9px 13px;font-weight:800}.top-action>span:first-child{color:#ff9b42}.top-unit{color:#8c9498;font-size:10px;font-weight:500}.subbar{padding:0 24px 11px;display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:11px;color:#71818b;flex:0 0 auto}.subbar-left{display:flex;gap:7px;align-items:center}.live-dot{width:7px;height:7px;border-radius:50%;background:#31ac89;box-shadow:0 0 0 4px #dff3e9}.filter-button{border:0;background:transparent;color:#3d555e;font-size:11px;padding:2px 0}.rail{height:3px;background:#e5e6df;flex:0 0 auto}.rail>div{height:100%;width:0;background:#259c99;transition:width .25s ease}.screen{flex:1;min-height:0}.screen.hidden{display:none}.screen-feed{display:flex;flex-direction:column;min-height:0;padding:14px 16px 0}.swipe-zone{position:relative;flex:1;min-height:0;max-height:100%;touch-action:pan-y;user-select:none;outline:none}.card-decor{position:absolute;inset:8px 8px 0;border:1px solid #d7dcd6;border-radius:27px;background:#e8ede7;pointer-events:none}.back-one{transform:translateY(5px) scale(.98);opacity:.7}.back-two{transform:translateY(10px) scale(.955);opacity:.4}.learning-card{position:absolute;inset:0;background:linear-gradient(155deg,#fff 50%,var(--tint,#eff8f3));border:1px solid #e5e9e4;border-radius:27px;box-shadow:0 7px 20px #243f4311;display:flex;flex-direction:column;padding:17px 18px 15px;gap:10px;overflow:auto;scrollbar-width:none}.learning-card::-webkit-scrollbar{display:none}.card-intro{display:flex;justify-content:space-between;align-items:center;gap:6px}.topic-pill{background:var(--pill,#e9eeea);color:#34535a;border-radius:50px;padding:7px 12px;font-size:10px;font-weight:800;letter-spacing:.2px}.card-counter{font-family:Arial,sans-serif;color:#7f8e94;font-weight:700;font-size:11px}.hero{text-align:center;flex:1;min-height:0;display:flex;flex-direction:column;justify-content:center;gap:12px;padding:3px 2px}.emoji-art{font-size:49px;line-height:1.25;filter:drop-shadow(0 9px 12px #0000000d)}.hero h1{font-size:clamp(21px,5.8vw,27px);line-height:1.43;letter-spacing:-.8px;margin:0;font-weight:850}.hero p{margin:0;color:#65777e;font-size:12px;line-height:1.75;max-width:300px;align-self:center}.phrase-box{background:#172b33;color:#fff;border-radius:19px;padding:17px 17px 15px;box-shadow:0 5px 0px #cbd9d5}.phrase-kicker{font-size:9px;letter-spacing:1.5px;font-weight:850;color:#a6d7c9}.phrase-en{font-family:Arial,Helvetica,sans-serif;font-size:clamp(17px,4.7vw,21px);font-weight:750;line-height:1.43;margin:10px 0 7px}.phrase-ja{color:#b6c9c8;font-size:11px;line-height:1.55;margin:0}.word-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;font-weight:800;font-size:11px}.word-heading strong{font-family:Arial,Helvetica,sans-serif;font-size:15px;color:#00696e}.optional{color:#9aa5a4;font-size:10px;font-weight:550}.choices{display:grid;grid-template-columns:1fr 1fr;gap:9px}.choice{background:white;border:1px solid #d8e2df;border-radius:13px;padding:12px 5px;min-height:43px;color:#263c42;font-size:12px;font-weight:700}.choice:active{transform:scale(.98)}.choice.correct{background:#e0f5e7;border-color:#7fceab}.choice.wrong{background:#ffece7;border-color:#ffc7bc}.result{font-size:12px;line-height:1.65;padding:12px 13px;background:#fff;border:1px solid #d8e2df;border-radius:12px}.result b{color:#006a6d}.card-mini-actions{display:flex;justify-content:flex-end;gap:8px;align-items:center}.small-action{border:none;background:transparent;color:#688189;font-size:11px;padding:7px 4px}.small-action.liked{color:#d77268}.feed-footer{flex:0 0 69px;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:7px 8px 1px}.circle-btn{width:44px;height:44px;border-radius:16px;border:1px solid #d8ded8;font-size:23px;font-weight:500}.circle-btn.ghost{background:white;color:#566770}.circle-btn.dark{background:#172b33;color:white;border-color:#172b33}.audio-btn{min-width:0;flex:1;background:#e7f0e9;border:none;border-radius:15px;padding:13px 12px;display:flex;gap:9px;align-items:center;justify-content:center;font-size:12px;font-weight:800;color:#1c6569}.audio-icon{font-family:Arial;font-size:18px;letter-spacing:-3px}.feed-hint{text-align:center;font-size:10px;color:#9da6a4;flex:0 0 28px;padding-top:2px}.bottom-nav{flex:0 0 auto;background:rgba(255,255,255,.96);border-top:1px solid #e5e8e2;display:flex;justify-content:space-around;padding:10px 9px calc(var(--safe-bottom) + 8px);gap:2px}.nav-btn{border:0;background:transparent;color:#9aa5aa;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:5px;padding:3px 8px;min-width:60px;font-size:10px;font-weight:700}.nav-btn.active{color:#006d72}.nav-icon{font-size:21px;line-height:1}.info-screen{padding:22px 22px 15px;overflow-y:auto;scrollbar-width:none}.section-head{margin-bottom:22px}.eyebrow{color:#208d89;font-size:10px;font-weight:850;letter-spacing:1.7px}.section-head h1{font-size:27px;letter-spacing:-1px;margin:6px 0 7px}.section-head p{font-size:12px;color:#7c8d92;line-height:1.8;margin:0}.info-content{display:grid;gap:12px;padding-bottom:24px}.stat-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px}.stat-box,.info-box,.review-item{background:white;border:1px solid #e8ebe6;border-radius:18px;padding:19px}.stat-box .stat-num{font-weight:900;font-size:32px;letter-spacing:-2px}.stat-box p{font-size:11px;color:#91a09e;margin:8px 0 0}.info-box h3{margin:0 0 9px;font-size:14px}.info-box p,.info-box li{font-size:12px;color:#687c81;line-height:1.9}.info-box p:last-child{margin-bottom:0}.info-box ul{padding-left:20px}.review-item{padding:15px;display:flex;justify-content:space-between;align-items:center;gap:10px}.review-item b{font-size:14px}.review-item p{color:#789092;font-size:11px;margin:4px 0 0}.little-btn,.solid-btn{border:0;background:#172b33;color:white;border-radius:12px;padding:11px 15px;font-weight:800;font-size:12px;white-space:nowrap}.solid-btn{width:100%;padding:15px;border-radius:15px}.tiny-note{font-size:11px;color:#849299;line-height:1.8}.chip-row{display:flex;gap:7px;flex-wrap:wrap}.chip{font-size:12px;border:1px solid #dce3dd;background:white;border-radius:50px;padding:9px 12px;color:#63787a}.chip.selected{color:white;background:#166c72;border-color:#166c72}.toast{position:fixed;z-index:30;left:50%;bottom:115px;transform:translateX(-50%) translateY(20px);background:#1b3036;color:white;border-radius:999px;padding:12px 18px;white-space:nowrap;box-shadow:0 10px 30px #0002;font-size:12px;opacity:0;pointer-events:none;transition:opacity .22s,transform .22s}.toast.show{opacity:1;transform:translateX(-50%) translateY(0)}.slide-out{animation:slide-out .19s ease forwards}.slide-in{animation:slide-in .25s ease both}@keyframes slide-out{to{opacity:0;transform:translateY(-45px) scale(.96)}}@keyframes slide-in{from{opacity:0;transform:translateY(35px) scale(.96)}to{opacity:1;transform:translateY(0) scale(1)}}
@media (min-width:500px){body{padding:15px 0}.app{height:calc(100dvh - 30px);max-height:900px;border-radius:26px;overflow:hidden}.toast{bottom:65px}}
@media (max-height:735px){.screen-feed{padding-top:8px}.learning-card{gap:7px;padding:12px 14px}.hero{gap:6px}.emoji-art{font-size:35px}.hero h1{font-size:19px}.hero p{font-size:11px;line-height:1.5}.phrase-box{padding:12px 13px}.phrase-en{font-size:17px;margin:5px 0}.phrase-ja{font-size:10px}.choices .choice{min-height:37px;padding:9px 4px}.feed-footer{flex-basis:56px}.feed-hint{flex-basis:18px;font-size:9px}.bottom-nav{padding-top:6px}.nav-icon{font-size:18px}}
@media (prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;transition-duration:.01ms!important}}

/* 学習フローを邪魔しない静的広告枠：復習・記録画面の末尾だけ。 */
.ad-host{padding:4px 0 36px;min-height:0}
.ad-section{margin:20px 0 14px;padding:24px 14px 18px;border:1px solid #e1e6e2;border-radius:18px;background:#fff;overflow:hidden}
.ad-heading{font-size:10px;font-weight:800;letter-spacing:.1em;color:#73888b;margin:0 0 16px}
.ad-preview{min-height:112px;border:1px dashed #d0d9d4;background:#f7f9f6;color:#718181;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;border-radius:12px;gap:5px;padding:20px 12px;pointer-events:none}
.ad-preview strong{font-size:12px;color:#5d7174}.ad-preview small{font-size:10px;line-height:1.6}
.ad-slot{min-height:100px;max-width:100%;overflow:hidden}
.ad-section-note{font-size:10px;color:#8a9696;line-height:1.5;margin:16px 3px 0}
.ad-settings{border-top:1px solid #eef0eb;padding-top:12px;margin-top:12px}
.ad-settings-btn{background:#eef5f1;border:1px solid #cdded4;border-radius:10px;color:#396866;padding:10px 13px;font-weight:700;font-size:12px}

/* V3 — スワイプで飛ばせる広告カード。広告内にはスキップボタンを重ねない。 */
[hidden]{display:none!important}
.feed-ad-layer{position:absolute;inset:0;display:flex;flex-direction:column;gap:15px;background:#f8f7f2;border:1px solid #d8e0da;border-radius:27px;padding:20px 19px 24px;overflow:auto;scrollbar-width:none}
.feed-ad-head{display:flex;align-items:center;justify-content:space-between;gap:10px}
.feed-ad-mark{font-size:10px;letter-spacing:.09em;font-weight:850;color:#536c76;border:1px solid #b8c9cc;padding:6px 10px;border-radius:7px;background:white}
.feed-ad-count{color:#849499;font-size:10px}
.feed-ad-intro{text-align:center;display:grid;justify-items:center;gap:6px;margin-top:14px}
.feed-ad-emoji{font-size:45px;line-height:1.2}
.feed-ad-intro h2{font-size:21px;margin:0;color:#263e43}
.feed-ad-intro p{font-size:12px;line-height:1.7;margin:0;color:#637579}
.feed-ad-slot-container{margin:6px auto 0;width:100%;max-width:360px;flex:0 0 auto}
.feed-ad-content{width:100%;min-height:165px;overflow:hidden}
.feed-ad-demo{display:flex;min-height:165px;flex-direction:column;gap:8px;justify-content:center;align-items:center;text-align:center;padding:20px;border:1px dashed #c4d0ce;border-radius:16px;background:white;pointer-events:none}
.feed-ad-demo strong{font-size:11px;color:#50696b;letter-spacing:.1em}
.feed-ad-demo span{font-size:14px;font-weight:780;color:#52696c}
.feed-ad-demo small{font-size:10px;color:#819292}
.feed-ad-disclosure{font-size:11px;text-align:center;color:#7d9190;line-height:1.7;margin:4px 0 0}
.audio-btn:disabled{background:#e6ece8;color:#798888;cursor:default}
@media(max-height:670px){.feed-ad-layer{padding:12px 15px 16px;gap:8px}.feed-ad-intro{margin-top:3px}.feed-ad-emoji{font-size:32px}.feed-ad-intro h2{font-size:17px}.feed-ad-demo{min-height:125px}.feed-ad-content{min-height:125px}}
