/* Maomero デザインシステム v6
   方向：モバイルファースト。スマートフォンでは Smartisan OS のシステム内 UI をそのまま再現する。
   依据：R2 実機スクリーンショット21枚＋ROM 公式値（framework-smartisanos-res / OS 8.1.4.1）
   文字は黒 alpha 系（.8/.6/.5/.38/.26）、分隔 rgba(0,0,0,.08)、カード白 #FFF 枠 #E2E2E2 r12、
   青 #5C89F2（ボタン勾配 #7097EE→#4C75E6・枠 #3256DA）、赤 #E65C53／警告文 #D44D44、
   背景は縦ピンストライプの浅灰。猫オレンジは猫自身の小面積のみ。 */
:root{
  --t1:rgba(0,0,0,.80); --t2:rgba(0,0,0,.50); --t3:rgba(0,0,0,.38); --t4:rgba(0,0,0,.26);
  --title:#57585D;
  --blue:#5C89F2; --blue-deep:#5079D9; --blue-link:#5079D9;
  --red:#E65C53; --red-text:#D44D44;
  --divider:rgba(0,0,0,.08); --card-border:#E2E2E2;
  --cat:#E8833A;
  --sans:-apple-system,"Hiragino Kaku Gothic ProN","Hiragino Sans","Noto Sans JP","Noto Sans SC",sans-serif;
  --zh:"Hiragino Sans GB","PingFang SC","Noto Sans SC","Hiragino Kaku Gothic ProN",sans-serif;
}
*{margin:0;padding:0;box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html{background:#D8D8D8;background-image:repeating-linear-gradient(90deg,rgba(0,0,0,.03) 0 1px,transparent 1px 4px)}
body{
  font-family:var(--sans); color:var(--t1); font-size:15px; line-height:1.7;
  max-width:430px; margin:0 auto; min-height:100vh; position:relative;
  background-color:#E9E9E9;
  background-image:repeating-linear-gradient(90deg,rgba(0,0,0,.028) 0 1px,transparent 1px 4px);
  box-shadow:0 0 0 1px #C9C9C9, 0 0 34px rgba(0,0,0,.18);
  padding-bottom:74px; -webkit-font-smoothing:antialiased;
}
svg{display:block}
a{color:inherit}
button{font-family:inherit;cursor:pointer;background:none;border:none;color:inherit}
.zh{font-family:var(--zh)}
.hidden{display:none !important}
.center{text-align:center}
.mt{margin-top:20px}.mt-s{margin-top:10px}

@keyframes viewIn{from{opacity:0;transform:translateX(26px)}to{opacity:1;transform:none}}
main>section:not(.hidden){animation:viewIn .28s ease-out}

/* ===== タイトルバー（設定アプリ型） ===== */
.titlebar{
  position:sticky; top:0; z-index:30; height:56px; background:#fff;
  display:flex; align-items:center; justify-content:center;
  box-shadow:0 1px 0 rgba(0,0,0,.05), 0 6px 12px -6px rgba(0,0,0,.18);
}
.titlebar h1, .titlebar .tb-title{font-size:20px; font-weight:600; color:var(--title); letter-spacing:.04em}
.tb-icon{position:absolute; top:0; height:56px; width:52px; display:flex; align-items:center; justify-content:center; color:rgba(0,0,0,.45)}
.tb-icon.left{left:0}.tb-icon.right{right:0}
.tb-icon svg{width:24px; height:24px}
.tb-icon:active{opacity:.55}

/* ===== 検索ストリップ（録音リスト型・内凹） ===== */
.search-strip{background:#fff; padding:10px 12px 12px; box-shadow:0 6px 12px -8px rgba(0,0,0,.15)}
.big-search{display:flex; gap:8px}
.big-search .field{
  flex:1; display:flex; align-items:center; gap:8px; height:40px; padding:0 12px;
  background:#F2F2F2; border-radius:9px;
  box-shadow:inset 0 1px 3px rgba(0,0,0,.10), inset 0 -1px 0 rgba(255,255,255,.7);
}
.big-search .field svg{width:17px; height:17px; flex:none; color:var(--t4)}
.big-search input{
  flex:1; min-width:0; border:none; outline:none; background:none;
  font-family:inherit; font-size:15px; color:var(--t1);
}
.big-search input::placeholder{color:var(--t4)}

/* ===== ボタン（板＝スラブ／青＝主操作） ===== */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  height:50px; padding:0 22px; border-radius:10px; font-size:16px; font-weight:600;
  background:linear-gradient(180deg,#FFFFFF,#F2F2F2); border:1px solid #D8D8D8; color:var(--t1);
  box-shadow:0 1px 2px rgba(0,0,0,.12), inset 0 1px 0 #fff; text-decoration:none;
}
.btn:active{background:linear-gradient(180deg,#7097EE,#4C75E6); border-color:#3256DA; color:#fff; box-shadow:0 1px 2px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.35)}
.btn-main{
  background:linear-gradient(180deg,#7097EE,#4C75E6); border:1px solid #3256DA; color:#fff;
  box-shadow:0 1px 2px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.35);
}
.btn-main:active{background:linear-gradient(180deg,#4C75E6,#3D63CE)}
.btn-ghost{background:linear-gradient(180deg,#FFFFFF,#F2F2F2)}
.btn-sm{height:40px; padding:0 16px; font-size:14px; border-radius:9px}
.btn:disabled{opacity:.45; pointer-events:none}
.search-btn{height:40px; padding:0 18px; font-size:15px; flex:none}
.speak-btn{
  display:inline-flex; align-items:center; gap:7px; height:38px; padding:0 15px; border-radius:9px;
  font-size:14px; font-weight:600; color:var(--t1);
  background:linear-gradient(180deg,#FFFFFF,#F2F2F2); border:1px solid #D8D8D8;
  box-shadow:0 1px 2px rgba(0,0,0,.12), inset 0 1px 0 #fff;
}
.speak-btn:active{background:linear-gradient(180deg,#7097EE,#4C75E6); border-color:#3256DA; color:#fff}
.speak-btn svg{width:15px; height:15px}
.dot{width:10px; height:10px; border-radius:50%; background:var(--red); box-shadow:inset 0 -1px 2px rgba(0,0,0,.25); flex:none}

/* 円形の物理ボタン（連絡先詳細型） */
.round-btn{
  flex:none; width:46px; height:46px; border-radius:50%;
  background:linear-gradient(180deg,#fff,#F4F4F4); border:1px solid #E0E0E0;
  box-shadow:0 2px 5px rgba(0,0,0,.14), inset 0 1px 0 #fff;
  display:flex; align-items:center; justify-content:center; color:var(--blue);
}
.round-btn:active{background:linear-gradient(180deg,#7097EE,#4C75E6); border-color:#3256DA; color:#fff}
.round-btn svg{width:22px; height:22px}
.mini-btn{
  flex:none; width:34px; height:34px; border-radius:50%;
  background:linear-gradient(180deg,#fff,#F4F4F4); border:1px solid #E0E0E0;
  box-shadow:0 1px 3px rgba(0,0,0,.12), inset 0 1px 0 #fff;
  display:flex; align-items:center; justify-content:center; color:var(--blue);
}
.mini-btn:active{background:linear-gradient(180deg,#7097EE,#4C75E6); border-color:#3256DA; color:#fff}
.mini-btn svg{width:16px; height:16px}

/* ===== セクション見出し＋グループカード ===== */
.sec{margin:22px 16px 8px; font-size:15px; font-weight:700; color:var(--t3); letter-spacing:.05em}
.sec:first-child{margin-top:18px}
.card{
  margin:0 12px; background:#fff; border:1px solid var(--card-border); border-radius:12px;
  box-shadow:0 1px 2px rgba(0,0,0,.05), inset 0 1px 0 #fff; overflow:hidden;
}
.row{
  min-height:60px; width:100%; display:flex; align-items:center; gap:12px; padding:8px 16px;
  position:relative; text-align:left; font-size:15px;
}
.row + .row::before, .kv + .kv::before, .ex + .ex::before{
  content:""; position:absolute; left:16px; right:0; top:0; height:1px; background:var(--divider);
}
button.row:active, a.row:active{background:linear-gradient(180deg,#7097EE,#4C75E6); color:#fff}
button.row:active .sub, a.row:active .sub{color:rgba(255,255,255,.75)}
button.row:active .py, a.row:active .py{color:#fff}
button.row:active .chev, a.row:active .chev{color:rgba(255,255,255,.8)}
button.row:active .glyph, a.row:active .glyph{color:rgba(255,255,255,.85)}
.row .main{flex:1; min-width:0}
.row .ttl{font-size:19px; color:var(--t1); line-height:1.3}
button.row:active .ttl, a.row:active .ttl{color:#fff}
.row .sub{font-size:13px; color:var(--t2); margin-top:2px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
.row .sub .py{color:var(--blue-deep)}
.chev{flex:none; color:rgba(0,0,0,.30); display:flex}
.chev svg{width:10px; height:16px}
.glyph{flex:none; width:32px; text-align:center; font-size:21px; color:rgba(0,0,0,.42); font-family:var(--zh)}
.badge{
  display:inline-block; vertical-align:2px; margin-left:7px; padding:0 4px;
  font-size:10px; font-weight:700; color:var(--red); border:1px solid rgba(230,92,83,.55);
  border-radius:3px; line-height:16px; font-family:var(--sans);
}
.badge-ff{
  display:inline-block; padding:0 4px; font-size:10px; font-weight:700; color:var(--red);
  border:1px solid rgba(230,92,83,.55); border-radius:3px; line-height:16px; white-space:nowrap;
}

/* キー・バリュー行（アカウント詳細型） */
.kv{min-height:56px; display:flex; align-items:center; gap:12px; padding:8px 16px; position:relative}
.kv .lab{font-size:16px; color:var(--t2); flex:none; width:76px}
.kv .val{flex:1; text-align:right; font-size:16px; color:var(--t1)}

/* ===== ホーム：今日の言葉グリッド（制御センター型タイル） ===== */
.launcher-slab{margin:0 12px}
.launcher-grid{
  display:grid; grid-template-columns:repeat(3,1fr); background:#fff;
  border:1px solid var(--card-border); border-radius:12px; overflow:hidden;
  box-shadow:0 1px 2px rgba(0,0,0,.05), inset 0 1px 0 #fff;
}
.lg-cell{
  aspect-ratio:1.18; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:1px;
  border-right:1px solid rgba(0,0,0,.06); border-bottom:1px solid rgba(0,0,0,.06); background:#fff;
}
.lg-cell:nth-child(3n){border-right:none}
.lg-cell:nth-child(n+7){border-bottom:none}
.lg-cell:active{background:linear-gradient(180deg,#7097EE,#4C75E6)}
.lg-cell:active .lg-h, .lg-cell:active .lg-p{color:#fff}
.lg-h{font-size:24px; color:var(--t1); line-height:1.25}
.lg-p{font-size:12px; color:var(--t3)}
.home-hint{margin:14px 16px 0; font-size:12.5px; color:var(--t3); text-align:center}
.chapter-link{margin:12px 16px 0; font-size:14px}
.chapter-link a{color:var(--blue-link); text-decoration:none}

/* 今日のレッスン（アカウントカード型） */
.lesson-head{display:flex; align-items:center; gap:14px; padding:16px; width:100%; text-align:left}
.lesson-head:active{background:#F5F8FE}
.avatar{
  flex:none; width:56px; height:56px; border-radius:50%;
  background:linear-gradient(180deg,#F2A65E,#E8833A);
  display:flex; align-items:center; justify-content:center;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.5), 0 1px 3px rgba(0,0,0,.18);
}
.lesson-head .ttl{font-size:20px; color:var(--t1)}
.lesson-head .sub{font-size:13px; color:var(--t2); margin-top:3px}

/* ===== 下部タブバー（音楽アプリ型） ===== */
.tabbar{
  position:fixed; bottom:0; left:50%; transform:translateX(-50%); width:100%; max-width:430px; z-index:40;
  background:#fff; border-top:1px solid rgba(0,0,0,.10);
  box-shadow:0 -4px 14px -6px rgba(0,0,0,.12);
  display:flex; padding:6px 0 10px;
}
.tab{flex:1; display:flex; flex-direction:column; align-items:center; gap:3px; color:rgba(0,0,0,.40); font-size:10px; text-decoration:none}
.tab svg{width:24px; height:24px}
.tab.on{color:var(--blue)}

/* ===== 検索結果 ===== */
.result-count{margin:18px 16px 8px; font-size:13.5px; color:var(--t3)}
.result-item{min-height:60px}
.no-result{
  margin:18px 12px 0; background:#fff; border:1px solid var(--card-border); border-radius:12px;
  padding:22px 18px; font-size:14.5px; color:var(--t2); line-height:1.9; text-align:center;
}

/* ===== 単語ページ ===== */
.w-head{display:flex; align-items:center; gap:16px; padding:20px 16px 18px}
.w-big{font-size:64px; line-height:1.05; color:var(--t1)}
.w-meta{flex:1; min-width:0}
.w-py{font-size:25px; font-weight:600; color:var(--blue); letter-spacing:.01em}
.w-tone{font-size:13px; color:var(--t2); margin-top:4px}
.w-jp{font-size:19px; color:var(--t1)}
.btn-row{display:flex; gap:12px; padding:14px 16px 16px}
.btn-row .btn{flex:1}
.btn-row .speak-btn{flex:1; justify-content:center; height:50px; font-size:16px; border-radius:10px}
.photo-card{padding:14px}
.img-frame{
  height:170px; border-radius:8px; background:linear-gradient(180deg,#F7F7F7,#EFEFEF);
  border:1px solid rgba(0,0,0,.06); display:flex; align-items:center; justify-content:center; overflow:hidden;
}
.img-frame img{width:100%; height:100%; object-fit:cover}
.img-fallback{font-size:74px; color:rgba(0,0,0,.16)}
.img-cap{margin-top:9px; font-size:11.5px; color:var(--t4); text-align:center}
.ex{padding:13px 16px; position:relative; display:flex; gap:10px; align-items:flex-start}
.ex .body{flex:1; min-width:0}
.ex .cn{font-size:17px; line-height:1.45; color:var(--t1)}
.ex .py{font-size:13px; color:var(--t3); margin-top:1px}
.ex .jp{font-size:14px; color:var(--t2); margin-top:3px}
.ff-card{padding:16px 18px}
.ff-card h4{font-size:16px; color:var(--t1); margin-bottom:6px}
.fftag{
  display:inline-block; padding:0 6px; margin-right:8px; font-size:11px; font-weight:700;
  color:#fff; background:var(--red); border-radius:3px; line-height:19px; vertical-align:2px;
}
.ff-card p{font-size:14.5px; color:var(--t2); line-height:1.85}
.ff-card p b{color:var(--t1)}

/* ===== 学習ツール共通 ===== */
.tool-desc{margin:0 16px 10px; font-size:13.5px; color:var(--t2); line-height:1.8}
.panel{padding:16px}
.chips{display:flex; flex-wrap:wrap; gap:8px}
.chip{
  height:36px; padding:0 14px; border-radius:9px; font-size:14px; font-weight:600; color:var(--t1);
  background:linear-gradient(180deg,#FFFFFF,#F2F2F2); border:1px solid #D8D8D8;
  box-shadow:0 1px 2px rgba(0,0,0,.10), inset 0 1px 0 #fff;
}
.chip.on{
  background:linear-gradient(180deg,#7097EE,#4C75E6); border-color:#3256DA; color:#fff;
  box-shadow:0 1px 2px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.35);
}
.tone-stage{display:block}
.tone-word-big{font-size:56px; line-height:1.1; text-align:center; color:var(--t1)}
.tone-word-sub{text-align:center; font-size:15px; color:var(--t2); margin-top:4px}
.tone-word-sub b{color:var(--blue); font-size:18px}
#toneCanvas{width:100%; height:auto; margin-top:14px; background:linear-gradient(180deg,#FCFCFC,#F7F7F7); border:1px solid rgba(0,0,0,.06); border-radius:8px}
.tone-legend{display:flex; gap:20px; justify-content:center; margin-top:10px; font-size:12.5px; color:var(--t2)}
.tone-legend i{display:inline-block; width:18px; height:5px; border-radius:3px; margin-right:6px; vertical-align:middle}
.mic-note{margin-top:12px; font-size:12px; color:var(--t4); line-height:1.7; text-align:center}
#toneRec::before{content:""; width:10px; height:10px; border-radius:50%; background:var(--red); box-shadow:inset 0 -1px 2px rgba(0,0,0,.25)}
#toneRec:active::before{background:#fff}
.feedback{
  display:none; margin-top:14px; padding:12px 14px; border-radius:9px; font-size:14px; line-height:1.8;
  background:#F5F5F5; border:1px solid rgba(0,0,0,.07); color:var(--t2);
}
.feedback.show{display:block}
.feedback.good{color:var(--blue-deep)}
.feedback.warn{color:var(--red-text)}

/* レッスン */
.lesson-line{display:flex; gap:12px; align-items:flex-start; padding:13px 16px; position:relative}
.lesson-line + .lesson-line::before{content:""; position:absolute; left:16px; right:0; top:0; height:1px; background:var(--divider)}
.lesson-line .no{font-size:12px; font-weight:700; color:var(--t4); padding-top:5px; width:20px; flex:none}
.lesson-line .body{flex:1; min-width:0}
.lesson-line .lp{font-size:12.5px; color:var(--t3)}
.lesson-line .lh{font-size:17px; color:var(--t1); line-height:1.5}
.lesson-line .lj{font-size:13.5px; color:var(--t2)}
.play-mini{
  flex:none; width:34px; height:34px; margin-top:2px; border-radius:50%;
  background:linear-gradient(180deg,#fff,#F4F4F4); border:1px solid #E0E0E0;
  box-shadow:0 1px 3px rgba(0,0,0,.12), inset 0 1px 0 #fff;
  display:flex; align-items:center; justify-content:center; color:var(--blue);
}
.play-mini:active{background:linear-gradient(180deg,#7097EE,#4C75E6); border-color:#3256DA; color:#fff}
.play-mini svg{width:13px; height:13px; margin-left:2px}

/* クイズ */
.progress{height:6px; border-radius:3px; background:rgba(0,0,0,.08); overflow:hidden; margin-bottom:16px}
.progress i{display:block; height:100%; background:linear-gradient(90deg,#7097EE,#4C75E6); border-radius:3px; transition:width .3s}
.quiz-q{font-size:13.5px; color:var(--t3); margin-bottom:8px}
.quiz-word{font-size:44px; text-align:center; line-height:1.2; color:var(--t1)}
.quiz-word-sub{text-align:center; font-size:15px; color:var(--blue); margin-bottom:14px}
.quiz-opts, .listen-opts{display:flex; flex-direction:column; gap:10px}
.opt{
  min-height:50px; padding:10px 16px; border-radius:10px; font-size:16px; font-weight:600; color:var(--t1);
  background:linear-gradient(180deg,#FFFFFF,#F2F2F2); border:1px solid #D8D8D8;
  box-shadow:0 1px 2px rgba(0,0,0,.10), inset 0 1px 0 #fff; text-align:center;
}
.opt small{display:block; font-size:12.5px; font-weight:400; color:var(--t3); margin-top:1px}
.opt:disabled{opacity:1}
.opt.right{background:linear-gradient(180deg,#7097EE,#4C75E6); border-color:#3256DA; color:#fff}
.opt.right small{color:rgba(255,255,255,.75)}
.opt.wrong{background:linear-gradient(180deg,#EE7A72,#E65C53); border-color:#C24A43; color:#fff}
.opt.wrong small{color:rgba(255,255,255,.8)}
.quiz-why{display:none; margin-top:14px; padding:12px 14px; border-radius:9px; background:#F5F5F5; border:1px solid rgba(0,0,0,.07); font-size:14px; color:var(--t2); line-height:1.85}
.quiz-why.show{display:block}
.stamp{display:inline-block; padding:0 7px; margin-right:8px; font-size:12px; font-weight:700; border-radius:3px; line-height:20px; vertical-align:1px}
.stamp.ok{background:var(--blue); color:#fff}
.stamp.ng{background:var(--red); color:#fff}
.score-big{font-size:52px; font-weight:700; text-align:center; color:var(--blue); line-height:1.2; margin:8px 0 6px}
.listen-play{
  width:74px; height:74px; margin:8px auto 14px; border-radius:50%;
  background:linear-gradient(180deg,#fff,#F4F4F4); border:1px solid #E0E0E0;
  box-shadow:0 3px 8px rgba(0,0,0,.14), inset 0 1px 0 #fff;
  display:flex; align-items:center; justify-content:center; color:var(--blue); font-size:0;
}
.listen-play:active{background:linear-gradient(180deg,#7097EE,#4C75E6); border-color:#3256DA; color:#fff}
.listen-play svg{width:26px; height:26px; margin-left:3px}

/* 会話チャット（簡訊型バブル） */
.chat{display:flex; flex-direction:column; gap:14px; max-height:430px; overflow-y:auto; padding:2px}
.msg{display:flex; gap:9px; align-items:flex-start}
.msg .av{flex:none; width:34px; height:34px; border-radius:50%; overflow:hidden; display:flex; align-items:center; justify-content:center; background:#F0F0F0; border:1px solid rgba(0,0,0,.06)}
.msg.me{flex-direction:row-reverse}
.bubble{
  max-width:78%; background:#fff; border:1px solid rgba(0,0,0,.10); border-radius:10px;
  padding:9px 12px; position:relative; box-shadow:0 1px 1px rgba(0,0,0,.04);
}
.msg:not(.me) .bubble::before{
  content:""; position:absolute; left:-5px; top:14px; width:8px; height:8px; background:#fff;
  border-left:1px solid rgba(0,0,0,.10); border-bottom:1px solid rgba(0,0,0,.10); transform:rotate(45deg);
}
.msg.me .bubble{background:#EAF1FE; border-color:rgba(92,137,242,.35)}
.msg.me .bubble::before{
  content:""; position:absolute; right:-5px; top:14px; width:8px; height:8px; background:#EAF1FE;
  border-right:1px solid rgba(92,137,242,.35); border-top:1px solid rgba(92,137,242,.35); transform:rotate(45deg);
}
.bubble .bz{font-size:16.5px; color:var(--t1); line-height:1.5}
.bubble .by{font-size:12.5px; color:var(--t3)}
.bubble .bj{font-size:13px; color:var(--t2)}
.bubble .spk{margin-top:6px; padding:0; font-size:12.5px; font-weight:600; color:var(--blue-link); display:inline-flex; align-items:center; gap:5px}
.bubble .spk svg{width:13px; height:13px}
.chat-choices{display:flex; flex-wrap:wrap; gap:8px; margin-top:14px}
.chat-done{padding:12px 14px; border-radius:9px; background:#F5F5F5; border:1px solid rgba(0,0,0,.07); font-size:14px; color:var(--t2); text-align:center}

/* ===== フッター ===== */
footer.site{margin-top:34px; padding:22px 16px 8px; border-top:1px solid rgba(0,0,0,.07)}
.foot-name{font-size:15px; font-weight:700; color:var(--t2); margin-bottom:4px}
footer.site p{font-size:12.5px; color:var(--t3); line-height:1.8}
.foot-links{display:flex; flex-wrap:wrap; gap:8px 18px; margin:14px 0 4px}
.foot-links a{font-size:13px; color:var(--blue-link); text-decoration:none}
.footnote{margin-top:14px; font-size:11px; color:var(--t4); line-height:1.8}
.w-head + .kv::before{content:""; position:absolute; left:16px; right:0; top:0; height:1px; background:var(--divider)}
.card > .btn-row{border-top:1px solid var(--divider)}

/* ===== 电脑端（≥900px）：宽幅双栏应用布局 ===== */
@media (min-width:900px){
  body{max-width:1120px; padding-bottom:84px}
  .tabbar{max-width:1120px}
  .titlebar{height:60px}
  .titlebar h1, .titlebar .tb-title{font-size:22px}
  .tb-icon{height:60px}
  .search-strip{padding:14px 16px 16px}
  .big-search .field{height:46px}
  .big-search input{font-size:16px}
  .search-btn{height:46px; padding:0 26px; font-size:16px}
  .sec{font-size:16px; margin-top:26px}
  .home-cols{display:grid; grid-template-columns:1fr 1fr; gap:0 30px; align-items:start; padding:0 6px}
  .home-col .card, .w-col .card{margin:0 6px}
  .home-col .sec, .w-col .sec{margin-left:10px; margin-right:10px}
  .home-col .launcher-slab{margin:0 6px}
  .home-col .home-hint{margin-left:10px; margin-right:10px}
  .w-cols{display:grid; grid-template-columns:1fr 1fr; gap:0 30px; align-items:start; padding:0 6px}
  #wordArea > .card{margin:14px 18px 0}
  .tone-panel{display:grid; grid-template-columns:1fr 1.15fr; gap:4px 30px; align-items:start}
  .tone-right #toneCanvas{margin-top:2px}
  .tone-word-big{font-size:64px}
  .quiz-opts, .listen-opts{display:grid; grid-template-columns:1fr 1fr; gap:12px}
  .chat{max-height:520px}
  .w-big{font-size:76px}
  .img-frame{height:210px}
  footer.site{padding:26px 22px 10px}
}

/* 言語切替ボタン（タイトルバー） */
.tb-lang{position:absolute; top:0; height:56px; display:flex; align-items:center; font-size:13px; font-weight:700; color:rgba(0,0,0,.45); padding:0 4px; z-index:2}
@media (min-width:900px){ .tb-lang{height:60px} }
