/* 新しい学習画面の見本（2026-10-03）から取り込んだ見た目。style.css・keypoints.css のあと、theme-bg.css・theme-dark.css の前に読む。
   色・既定の着せ替え・背景・ダークモードの色は一切決めない（色は var(--ink) などの変数だけを使い、ダークモードでは theme-dark.css が変数ごと入れ替える）。
   ここにあるのは、(1) 今日の学習・復習・保存ボタン、(2) 本文の文字サイズと「動きを減らす」、(3) カード・見出し・下メニューの寸法の整え。
   文字サイズ・動きの設定は <html data-fs="16|18|20" data-motion="reduce"> のときだけ効く（theme.js が付ける。標準のときは属性なし = 何も変わらない）。 */

/* ---- (1) 今日の学習 ---- */
.today{margin:0 0 24px}
.today h2{margin:6px 0 14px}
.today-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.today-grid>div{padding:14px 16px;border-radius:14px;background:var(--soft);min-width:0}
.today-grid span{display:block;font-size:12px;line-height:1.6;color:var(--muted)}
.today-grid b{display:block;font-size:26px;line-height:1.5;color:var(--ink);font-variant-numeric:tabular-nums}
.today-grid b small{font-size:12px;font-weight:500;margin-left:3px;color:var(--muted)}
.today-bar{height:10px;margin:16px 0 8px}
.today-note{margin:6px 0 0}
.today .tools{margin:14px 0 0}
.card .link-button,.link-button{min-height:44px;padding:0 4px;border:0;background:none;color:var(--accent);font-weight:700;text-decoration:underline;white-space:nowrap}
@media(max-width:600px){
  .today-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .today-grid>div{padding:12px}
  .today-grid b{font-size:24px}
  .today .tools .secondary{width:100%}
}

/* ---- 問題の「保存」ボタン・復習の一覧 ---- */
.q-tools{display:flex;justify-content:flex-end;margin:10px 0 0}
.save-btn{display:inline-flex;align-items:center;gap:6px;min-height:44px;padding:6px 16px;border:1.5px solid var(--line);border-radius:999px;background:var(--surface,#fff);color:var(--muted);font-size:13px;font-weight:700}
.save-btn svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.save-btn.on{border-color:var(--accent);background:var(--soft);color:var(--accent)}
.save-btn.on svg{fill:currentColor}
.rv-tabs{margin:0 0 16px}
.rv-card h2{margin:0 0 6px}
.rv-list{list-style:none;margin:14px 0 0;padding:0}
.rv-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 0;border-top:1px solid var(--line)}
.rv-info{display:flex;flex-direction:column;align-items:flex-start;gap:4px;min-width:0}
.rv-info strong{font-size:15px;line-height:1.5}
.rv-actions{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end;flex-shrink:0}
.rv-actions .secondary{min-height:44px;padding:8px 16px}
.goal-select{min-height:48px;padding:6px 12px;border:1.5px solid var(--line);border-radius:14px;background:var(--surface,#fff);color:var(--ink);font-size:16px}
@media(max-width:600px){
  .rv-row{flex-direction:column;align-items:stretch}
  .rv-actions{justify-content:stretch}
  .rv-actions .secondary{flex:1}
}

/* ---- (2) 本文の文字サイズ（16・18・20px。標準は 15px のままで、属性が無いときは何も効かない）----
   本文の段落・リスト・選択肢・問題文・解説の見出し行だけを拡大する（見出し・ボタン・図版・ナビは変えない）。入れ子の二重拡大は避ける */
html[data-fs="16"]{--fs-zoom:1.0667}
html[data-fs="18"]{--fs-zoom:1.2}
html[data-fs="20"]{--fs-zoom:1.3333}
html[data-fs] main :is(p,li,.option,.q-prompt,summary):not(header *,.q-visual *,:is(p,li,.option,.q-prompt,summary) *){zoom:var(--fs-zoom)}

/* ---- 画面の動きを減らす（アニメーション・移り変わり・なめらかなスクロールを止める）---- */
html[data-motion="reduce"] *,html[data-motion="reduce"] *::before,html[data-motion="reduce"] *::after{animation-duration:.01ms!important;animation-iteration-count:1!important;animation-delay:0s!important;transition-duration:.01ms!important;transition-delay:0s!important;scroll-behavior:auto!important}

/* ---- (3) カード・見出し・下メニューの寸法（見本「現行CSSとの対応」の整え。色は変えない）---- */
.card p{font-size:14px;line-height:1.8}
.card h3{line-height:1.6;margin:8px 0 6px}
h1{line-height:1.4}
h2{line-height:1.5}
.sectionhead{margin:30px 0 15px;gap:12px}
.card .primary,.card .secondary{min-height:46px}
.stat{line-height:1.6}
nav button{min-height:48px}
@media(min-width:851px){
  aside{padding:37px 22px}
  nav button{padding:14px 15px}
}
@media(max-width:850px){
  nav{border-radius:20px 20px 0 0;gap:4px}
  nav button{min-height:54px;padding:6px 2px;border-radius:16px;gap:4px;line-height:1.3}
  .hero .primary{min-height:50px}
}
@media(max-width:374px){
  main{padding-left:max(14px,env(safe-area-inset-left,0px));padding-right:max(14px,env(safe-area-inset-right,0px))}
  .hero{padding:20px}
}
