/* スキルキット：全ページ共通の見た目（キャンバスの画面の案を写したもの。正本の案はキャンバス、決めたことは docs/web_flow.md） */
:root{--accent:#9A5A1E;--ink:#4A3426;--sub:#7A6352;--muted:#7D6B5D;--line:#EFE1CE;--soft:#FBF2E6;--chip:#E6D3B8;--ng:#9A3E50;--bg:#FFF9F1}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;font-size:100%}
/* 文字の大きさ（パンくずの下の右のボタンで選ぶ。標準・大・特大。標準は過去問ドットコムくらい）。下のメニュー・広告・上の帯は大きさを変えない */
html{font-size:93.75%}html[data-fs=l]{font-size:106.25%}html[data-fs=xl]{font-size:118.75%}
body{margin:0;font-family:'BIZ UDPGothic',sans-serif;color:var(--ink);background:#FFFFFF}
a{color:var(--accent)}a:hover{color:#14466A}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.wrap{max-width:640px;margin:0 auto;min-height:100vh;display:flex;flex-direction:column;padding-bottom:calc(64px + env(safe-area-inset-bottom))}
header.top{height:56px;flex:none;padding:0 8px 0 20px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}
.site{font-size:18px;font-weight:700;letter-spacing:.04em;text-decoration:none;color:var(--ink)}
.icon-btn{width:44px;height:44px;display:flex;align-items:center;justify-content:center;margin-left:auto}
.crumbs{padding:12px 20px 0;font-size:0.8125rem;color:var(--sub);display:flex;align-items:center;flex-wrap:wrap;gap:6px}
.crumbs a{color:var(--sub)}
main{padding:16px 20px 24px;display:flex;flex-direction:column;gap:32px}
section{display:flex;flex-direction:column;gap:10px}
h1.page{margin:0;font-size:1.75rem;font-weight:700;line-height:1.3;word-break:keep-all;overflow-wrap:anywhere}
.head{display:flex;flex-direction:column;gap:6px}
.lead{margin:0;font-size:0.9375rem;line-height:1.6;color:var(--sub)}
h2{margin:0;font-size:1.25rem;font-weight:700}
h3.group{margin:12px 0 0;display:flex;align-items:baseline;gap:8px;font-size:1rem;font-weight:700}
h3.group span{font-size:0.8125rem;font-weight:400;color:var(--sub)}
.box{padding:16px;background:var(--soft);border-radius:14px;display:flex;flex-direction:column;gap:12px}
.box h2{font-size:0.9375rem}
.note{margin:0;font-size:0.8rem;line-height:1.6;color:var(--muted)}
.src{margin:0;font-size:0.8rem;line-height:1.6;color:var(--muted)}
.ad{width:320px;max-width:100%;align-self:center;display:flex;flex-direction:column;gap:4px}
.ad div{height:100px;background:#F1F3F5;border-radius:4px;display:flex;align-items:center;justify-content:center;font-size:13px;color:var(--muted)}
.ad span{align-self:flex-end;font-size:11px;color:var(--muted)}
.rows{border-top:1px solid var(--line)}
.row{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:56px;padding:8px 0;text-decoration:none;color:var(--ink);border-bottom:1px solid var(--line)}
.row .t{display:flex;flex-direction:column;gap:2px;min-width:0}
.row .h{font-size:1rem;font-weight:700}
.row .s{font-size:0.875rem;line-height:1.6;color:var(--sub);overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.row .r{flex:none;display:flex;align-items:center;gap:8px;font-size:0.875rem;color:var(--sub)}
.row .mark{width:5.2em;text-align:right;font-size:0.8125rem;font-weight:700}
.mark.ok{color:var(--accent)}.mark.ng{color:var(--ng)}
.chev{flex:none;width:18px;height:18px}
.btn{min-height:56px;width:100%;display:flex;align-items:center;justify-content:center;font-family:inherit;font-size:1.0625rem;font-weight:700;text-decoration:none;color:#FFFFFF;background:var(--accent);border:0;border-radius:12px;cursor:pointer}
.btn:hover{color:#FFFFFF}
.btn2{min-height:52px;width:100%;display:flex;align-items:center;justify-content:center;font-family:inherit;font-size:1rem;font-weight:700;text-decoration:none;color:var(--ink);background:#FFFFFF;border:1.5px solid var(--chip);border-radius:12px;cursor:pointer}
.btn2[aria-disabled=true]{color:#9AA1A9;border-color:var(--line)}
.grid2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.grid3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.chips{display:flex;flex-wrap:wrap;gap:8px}
.chip{min-height:44px;display:inline-flex;align-items:center;padding:0 16px;font-family:inherit;font-size:0.9375rem;text-decoration:none;color:var(--ink);background:#FFFFFF;border:1.5px solid var(--chip);border-radius:999px;cursor:pointer}
.chip[aria-pressed=true]{color:#FFFFFF;background:var(--accent);border-color:var(--accent);font-weight:700}
.tag{align-self:flex-start;font-size:0.8125rem;font-weight:700;text-decoration:none;color:var(--accent);background:#EAF1F7;border-radius:999px;padding:6px 12px}
.bar{height:8px;background:#DDE2E7;border-radius:4px;overflow:hidden}.bar i{display:block;height:100%;width:0;background:var(--accent)}
.link{align-self:flex-start;min-height:44px;display:flex;align-items:center;font-size:0.9375rem;font-weight:700}
footer.foot{margin-top:auto;padding:16px 20px;display:flex;flex-wrap:wrap;justify-content:center;column-gap:20px;font-size:0.8125rem}
footer.foot a{color:var(--sub);min-height:44px;display:flex;align-items:center}
nav.tabs{position:fixed;left:0;right:0;bottom:0;z-index:10;height:calc(64px + env(safe-area-inset-bottom));padding-bottom:env(safe-area-inset-bottom);display:grid;grid-template-columns:repeat(5,minmax(0,1fr));border-top:1px solid var(--line);background:#FFFFFF}
nav.tabs a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;font-size:11px;text-decoration:none;color:#374151}
nav.tabs a[aria-current]{color:var(--accent);font-weight:700}
nav.tabs svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.field{display:flex;flex-direction:column;gap:6px}
.field label{font-size:0.8125rem;font-weight:700;color:var(--sub)}
select,input[type=search]{width:100%;min-height:52px;padding:0 16px;font-family:inherit;font-size:1rem;color:var(--ink);background:#FFFFFF;border:1.5px solid #8A9099;border-radius:12px}
form.search{display:flex;gap:8px}
form.search input{flex:1;min-width:0}
form.search button{flex:none;width:84px;min-height:52px;font-family:inherit;font-size:1rem;font-weight:700;color:#FFFFFF;background:var(--accent);border:0;border-radius:12px}
/* トップ */
.hero{padding:28px 20px 8px;display:flex;flex-direction:column;gap:20px}
.hero h1{margin:0;font-size:1.375rem;font-weight:700;line-height:1.5}
.hero h1 span{display:inline-block}  /* 言葉の途中で改行しないように、切れ目でだけ折り返す */
.sitelinks{display:flex;flex-direction:column;border-top:1px solid var(--line)}
/* 問題のページ */
.band{padding:10px 20px 12px;display:flex;flex-direction:column;gap:8px;background:var(--soft);border-bottom:1px solid var(--line)}
.band .l{display:flex;align-items:center;justify-content:space-between;font-size:0.875rem}
.band .bar{height:6px}
.q-title{margin:0;font-size:1.25rem;font-weight:700;line-height:1.4;word-break:keep-all;overflow-wrap:anywhere}
.stem{display:flex;flex-direction:column;gap:12px}
.stem p{margin:0;font-size:1.125rem;line-height:1.8;letter-spacing:.02em}
.choices{display:flex;flex-direction:column;gap:12px}
.choice{width:100%;min-height:56px;padding:15px 16px;font-family:inherit;font-size:1.0625rem;line-height:1.75;letter-spacing:.02em;text-align:left;color:var(--ink);background:#FFFFFF;border:1.5px solid #A3AAB3;border-radius:12px;display:flex;align-items:flex-start;gap:14px;cursor:pointer}
.choice .k{flex:none;width:1.875rem;height:1.875rem;margin-top:0;border-radius:50%;background:#F1F3F5;display:flex;align-items:center;justify-content:center;font-weight:700;letter-spacing:0}
.choice .x{flex:1}
.choice .m{font-size:0.875rem;font-weight:700}
.choice .x .m{display:block;margin-top:2px}
.choices.done .choice{color:var(--muted);border-color:var(--line);cursor:default}
.choices .choice.ok{color:var(--ink);background:#EEF4F9;border:2px solid var(--accent)}
.choices .choice.ok .k{background:var(--accent);color:#FFFFFF}.choice.ok .m{color:var(--accent)}
.choices .choice.ng{color:var(--ink);background:#FBF3EE;border:2px solid var(--ng)}
.choices .choice.ng .k{background:var(--ng);color:#FFFFFF}.choice.ng .m{color:var(--ng)}
.choices.combo .choice{align-items:center}
.choices.combo .choice,.combo-head{display:grid;grid-template-columns:1.875rem repeat(var(--n),minmax(0,1fr));column-gap:14px;row-gap:4px;align-items:center}
.combo-head{padding:0 17.5px;margin-bottom:-4px;font-size:0.9375rem;font-weight:700;color:var(--sub)}
.combo-cap{padding:0 17.5px 0 calc(31.5px + 1.875rem);margin-bottom:-6px;font-size:0.875rem;font-weight:700;color:var(--sub)}
.choices.combo .choice .m{grid-column:2/-1}
.result{padding:18px;background:var(--soft);border-radius:14px;display:flex;flex-direction:column;gap:10px}
.result .v{margin:0;font-size:1.0625rem;font-weight:700}
.result .v .ng{color:var(--ng)}.result .v .ok{color:var(--accent)}
.result h2{margin:4px 0 0;font-size:0.875rem;color:var(--accent)}
.result p.e{margin:0;font-size:1.0625rem;line-height:1.85}
.after{display:flex;flex-direction:column;gap:24px}
.after[hidden],details[hidden],.ad[hidden],[data-group][hidden],.row[hidden]{display:none}
.mark-btn{min-height:48px;font-family:inherit;font-size:0.9375rem;font-weight:700;color:var(--ink);background:#FFFFFF;border:1.5px solid var(--chip);border-radius:12px;cursor:pointer}
.mark-btn[aria-pressed=true]{color:#FFFFFF;background:var(--accent);border-color:var(--accent)}
details.video{border:1.5px solid var(--chip);border-radius:12px;background:#FFFFFF}
details.video summary{min-height:56px;display:flex;align-items:center;padding:12px 14px;font-size:1rem;font-weight:700;cursor:pointer;list-style:none}
details.video summary::-webkit-details-marker{display:none}
details.video p{margin:0;padding:0 14px 14px;font-size:0.875rem;color:var(--sub)}
/* 図表（動画と同じ data/questions/figures/*.html を、読む大きさに合わせる） */
.fig-box{--ink:#1F2328;overflow-x:auto;padding:16px 12px;border:1px solid var(--line);border-radius:12px;font-size:0.9375rem;line-height:1.5}
.fig-wrap{display:table;margin:0 auto}
.fig-unit{margin:0 0 4px;text-align:right}
.fig-table{border-collapse:collapse;border:1.5px solid var(--ink)}
.fig-table th,.fig-table td{padding:2px 8px;text-align:left;font-weight:inherit;vertical-align:middle;white-space:nowrap}
.fig-table td.num{text-align:right;padding-left:16px;font-variant-numeric:tabular-nums}
.fig-table .split{border-left:1.5px solid var(--ink)}
.fig-table tr.head>*{border-bottom:1.5px solid var(--ink)}
.fig-table .rule-top{border-top:1.5px solid var(--ink)}
.fig-table .rule-bottom{border-bottom:1.5px solid var(--ink)}
.fig-grid{border-collapse:collapse}
.fig-grid th,.fig-grid td{border:1.5px solid var(--ink);padding:3px 10px;text-align:center;font-weight:inherit;vertical-align:middle;white-space:nowrap;font-variant-numeric:tabular-nums}
.fig-grid td.corner{border-top-color:transparent;border-left-color:transparent}
.fig-box pre{font-size:0.875rem}
.blank{display:inline-block;min-width:2.4em;padding:0 .3em;margin:0 2px;border:1.5px solid var(--ink);text-align:center;line-height:1.3;white-space:nowrap}
/* 用語のページ */
.term-head{display:flex;flex-direction:column;gap:10px}
.term-head h1{margin:4px 0 0;font-size:2.125rem;font-weight:700;line-height:1.2;overflow-wrap:anywhere}
.term-head p{margin:0;font-size:0.9375rem;color:var(--sub)}
.short{padding:18px 18px 20px;background:var(--soft);border-radius:14px;display:flex;flex-direction:column;gap:8px}
.short h2{font-size:0.875rem;color:var(--accent)}
.short p{margin:0;font-size:1.125rem;line-height:1.8}
.past{display:flex;flex-direction:column;gap:4px;padding:12px 14px;text-decoration:none;color:var(--ink);border:1.5px solid var(--chip);border-radius:12px}
.past b{font-size:0.9375rem}
.past span{font-size:0.9375rem;line-height:1.6;color:#374151;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.sources p{margin:0;font-size:0.875rem;line-height:1.7;color:#374151;overflow-wrap:anywhere}
.preview-note{margin:0;padding:8px 20px;font-size:12px;color:#7A4B00;background:#FFF6E0;border-bottom:1px solid #F0DDB0}

/* 文字の大きさのボタン（パンくずの下の右）。ボタン自体の大きさは変えない */
.fs-bar{display:flex;justify-content:flex-end;align-items:center;gap:4px;padding:8px 16px 0;font-size:12px;color:var(--muted)}
.fs-bar span{margin-right:2px}
.fs-bar button{min-width:40px;height:32px;padding:0 8px;font-family:inherit;font-size:12px;color:var(--sub);background:#FFFFFF;border:1px solid var(--chip);border-radius:8px;cursor:pointer}
.fs-bar button[aria-pressed=true]{color:#FFFFFF;background:var(--accent);border-color:var(--accent);font-weight:700}
/* 切り出した図の画像は縮めない（字が読める高さで出し、横は枠の中でスクロール） */
.fig-img{display:block;max-width:none;width:auto}
/* 分数の選択肢（令和6年度 問83）と、表の見出しの組の選択肢（問81） */
.frac{display:inline-flex;flex-direction:column;align-items:center;line-height:1.3;font-variant-numeric:tabular-nums}
.frac .fn{padding:0 .25em;border-bottom:1.5px solid currentColor}
.x:has(.hrow){min-width:0;overflow-x:auto}
.hrow{display:flex;flex-wrap:nowrap;width:max-content;margin:2px 0 8px}
.hrow span{padding:1px 5px;border:1.5px solid currentColor;margin-right:-1.5px;font-size:.8125rem;line-height:1.5;white-space:nowrap}
/* 資格のカード（資格名 → 年度）。トップ・過去問を解く・資格から探す */
.ecards{display:flex;flex-direction:column;gap:12px}
.ecard{padding:14px 16px 12px;border:1.5px solid var(--chip);border-radius:14px;display:flex;flex-direction:column;gap:8px}
.ecard.prep{background:var(--soft);border-color:transparent;color:var(--muted)}
.eh{display:flex;align-items:center;justify-content:space-between;gap:12px;text-decoration:none;color:var(--ink)}
.ecard.prep .eh{color:var(--muted)}
.eh>span:first-child{display:flex;flex-direction:column;gap:2px;min-width:0}
.eh b{font-size:1.125rem}
.eh small{font-size:0.8125rem;color:var(--sub)}
.ecap{margin:4px 0 -2px;font-size:0.8125rem;font-weight:700;color:var(--sub)}
.ygrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.ylink{min-height:56px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;text-decoration:none;color:var(--ink);background:#EEF4F9;border:1.5px solid #C8DAE8;border-radius:12px}
.ylink b{font-size:1rem}
.ylink small{font-size:0.8125rem;color:var(--sub)}
.ylink:hover{background:#E1ECF5;color:var(--ink)}
/* 用語のカード（見出し語とひとこと）。問題のページ・用語のページ・資格のトップ・トップ */
.tcards{display:flex;flex-direction:column;gap:10px}
.tcard{display:flex;flex-direction:column;gap:4px;padding:12px 14px;text-decoration:none;color:var(--ink);border:1.5px solid var(--chip);border-radius:12px;background:#FFFFFF}
.tcard .th{display:flex;align-items:center;gap:8px;min-width:0}
.tcard .th b{font-size:1.0625rem;overflow-wrap:anywhere}
.tcard .th small{font-size:0.75rem;font-weight:700;color:var(--accent)}
.tcard .th .chev{margin-left:auto}
.tcard .td{font-size:0.9375rem;line-height:1.6;color:#374151;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.tcard.off{background:var(--soft);border-color:transparent}
.tcard.off .th small{color:var(--muted)}
.kb{flex:none;width:1.625rem;height:1.625rem;border-radius:50%;background:#F1F3F5;display:flex;align-items:center;justify-content:center;font-size:0.875rem;font-weight:700}
/* 今日の1問 */
.qcard{padding:16px;border:1.5px solid var(--chip);border-radius:14px;display:flex;flex-direction:column;gap:12px}
.qcard .ql{margin:0;font-size:0.8125rem;font-weight:700;color:var(--accent)}
.qcard .qs{margin:0;font-size:1.0625rem;line-height:1.8;display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden}
/* 用語の一覧の、頭の文字の索引 */
.kana{display:flex;flex-wrap:wrap;gap:6px}
.kana button{min-width:44px;height:40px;padding:0 10px;font-family:inherit;font-size:0.9375rem;color:var(--ink);background:#FFFFFF;border:1.5px solid var(--chip);border-radius:10px;cursor:pointer}
.kana button[aria-pressed=true]{color:#FFFFFF;background:var(--accent);border-color:var(--accent);font-weight:700}
/* この用語が出た過去問 */
.past b{display:flex;align-items:center;gap:8px}
.past b small{font-size:0.75rem;font-weight:700;color:var(--sub);background:var(--soft);border-radius:999px;padding:2px 8px}
.past em{font-style:normal;font-size:0.875rem;font-weight:700;color:var(--accent);align-self:flex-end}
[hidden]{display:none!important}
.tag{flex:none;white-space:nowrap}
/* 問題の見出しの下のテーマ */
.q-title .qt{display:block;margin-top:4px;font-size:0.9375rem;font-weight:700;color:var(--sub)}
/* このサイトについて・プライバシーポリシーの文 */
.prose{margin:0;font-size:1rem;line-height:1.85}
/* トップの「資格から探す」：ジャンルごとの資格の名前 */
.genre{display:flex;flex-direction:column;gap:8px}
.genre h3{margin:6px 0 0;font-size:0.9375rem;font-weight:700;color:var(--sub)}
.chip.off{color:var(--muted);background:var(--soft);border-color:transparent;gap:6px;cursor:default}
.chip.off small{font-size:0.75rem}
.term-head .chips{gap:6px}

/* ===== やわらかいデザイン（10月21日、本人の決定。見本は results/web_sample/）=====
   色：クリーム・キャラメル・チョコレート色の文字。ロゴの4色（みどり・キャラメル・あお・ピンク）をしまと飾りに。
   見出しとボタンは丸い文字（Zen Maru Gothic）、問題文と解説は BIZ UDPゴシック。角は丸く、押すボタンは下に厚み */
:root{--caramel:#F1C489;--caramel-dark:#C9955A;--caramel-soft:#FBEBD3;--card:#FFFFFF;
--sage:#AECB9C;--sage-bg:#EEF6E8;--sage-ink:#3D6B2E;--blue:#9DBBCF;--blue-bg:#EAF2F8;--pink:#D7A1A9;--pink-bg:#FBEDEF;
--stripe:repeating-linear-gradient(90deg,#AECB9C 0 14px,transparent 14px 20px,#E4BB8B 20px 34px,transparent 34px 40px,#9DBBCF 40px 54px,transparent 54px 60px,#D7A1A9 60px 74px,transparent 74px 80px,#9A8D7D 80px 94px,transparent 94px 100px)}
body{background:var(--bg)}
a:hover{color:var(--accent)}
h1,h2,h3,.btn,.btn2,.chip,.site,.tag,.ttl,.mark-btn,.pickbtn,.ylink,.eh b,.q-title,nav.tabs a,.kana button,.fs-bar,.streak,.cbadge,form.search button{font-family:'Zen Maru Gothic','BIZ UDPGothic',sans-serif}
h1.page{font-weight:900}
h2{font-weight:900;display:flex;align-items:center;gap:8px}
main>section>h2:first-child::before,main section>h2[id]::before{content:"";flex:none;width:22px;height:8px;border-radius:2px;background:linear-gradient(90deg,var(--sage) 0 25%,#E4BB8B 25% 50%,var(--blue) 50% 75%,var(--pink) 75%)}
/* 上の帯：ロゴとサイト名、帯の下にしま */
header.top{position:relative;height:56px;border-bottom:0;background:var(--bg)}
header.top::after{content:"";position:absolute;left:0;right:0;bottom:-6px;height:6px;background:var(--stripe);z-index:1}
.site{display:flex;align-items:center;gap:8px;font-size:20px;font-weight:900}
.site img{width:auto;height:34px}
.icon-btn{width:40px;height:40px;border-radius:12px;background:var(--card);border:2px solid var(--line)}
.crumbs{padding-top:18px}
/* 下のメニュー：上にしま */
nav.tabs{border-top:0;background:var(--card);padding-top:6px;background-image:var(--stripe);background-size:100% 6px;background-repeat:no-repeat;height:calc(70px + env(safe-area-inset-bottom))}
nav.tabs a{color:var(--sub);font-weight:700}
nav.tabs a[aria-current]{color:#B86E2C}
/* カード・行・ボタン */
.card,.box,.ecard,.qcard{background:var(--card);border-radius:22px;border:2px solid var(--line);padding:16px;display:flex;flex-direction:column;gap:10px}
.box{background:var(--card)}
.rows{border-top:0;background:var(--card);border:2px solid var(--line);border-radius:18px;padding:0 14px}
.row{border-bottom:1px dashed var(--line)}
.rows .row:last-child{border-bottom:0}
.sitelinks{border-top:0;background:var(--card);border:2px solid var(--line);border-radius:18px;padding:0 14px}
.sitelinks .row:last-child{border-bottom:0}
.btn{min-height:56px;border-radius:16px;background:var(--caramel);color:var(--ink);font-weight:900;font-size:1.125rem;border:0;border-bottom:5px solid var(--caramel-dark);transition:transform .08s,border-bottom-width .08s}
.btn:hover{color:var(--ink)}
.btn:active{transform:translateY(3px);border-bottom-width:2px}
.btn2{border-radius:16px;border:2px solid var(--line);border-bottom:5px solid #EBDCC6;background:var(--card);transition:transform .08s}
.btn2:active{transform:translateY(3px)}
.chip{border-radius:99px;border:2px solid var(--line);font-weight:700;background:var(--card)}
.chip[aria-pressed=true]{background:var(--caramel);border-color:var(--caramel-dark);color:var(--ink)}
.chip.off{color:#9C8B7D;background:#F7EFE4;border-color:transparent}
.tag{color:var(--ink);background:var(--blue-bg);border:1.5px solid var(--blue)}
.bar{height:10px;border-radius:99px;background:#F3E6D3}.bar i{border-radius:99px;background:linear-gradient(90deg,#F6D7A6,#E9A863);transition:width .8s cubic-bezier(.2,.8,.2,1)}
.link{color:#9A5A1E}
select,input[type=search]{border:2px solid var(--line);border-radius:14px;background:var(--card)}
form.search button{border-radius:14px;background:var(--ink);color:#fff;font-weight:700}
form.search.pill input{border-radius:99px;padding:0 18px}
form.search.pill button{border-radius:99px;width:76px}
.mark-btn{border-radius:14px;border:2px solid var(--line);border-bottom:4px solid #EBDCC6;font-weight:700}
.mark-btn[aria-pressed=true]{background:var(--caramel);border-color:var(--caramel-dark);color:var(--ink)}
.fs-bar button{border-radius:10px;border:1.5px solid var(--line)}
.fs-bar button[aria-pressed=true]{background:var(--caramel);border-color:var(--caramel-dark);color:var(--ink)}
.preview-note{font-family:'BIZ UDPGothic',sans-serif}
footer.foot a{color:var(--sub)}
/* トップ */
.hero{padding:22px 16px 0;gap:10px}
.hero h1{font-weight:900;font-size:1.375rem;line-height:1.5}
.talk{display:flex;align-items:flex-end;gap:4px;margin-top:2px}
.talk img{width:100px;height:100px;flex:none}
.bubble{position:relative;margin:0 0 18px;background:var(--caramel-soft);border-radius:18px;padding:10px 14px;font-family:'Zen Maru Gothic',sans-serif;font-weight:700;font-size:0.9375rem;line-height:1.65}
.bubble::before{content:"";position:absolute;left:-8px;bottom:16px;border:8px solid transparent;border-right-color:var(--caramel-soft);border-left:0}
.ttl{margin:0;font-size:0.9375rem;font-weight:900;color:var(--sub)}
.ttl::before{display:none!important}
.row1{display:flex;justify-content:space-between;align-items:center;gap:8px}
.small{font-size:0.875rem;color:var(--sub)}
.mine{font-family:'Zen Maru Gothic',sans-serif;font-size:1rem;color:var(--ink)}
.streak{display:inline-flex;align-items:center;gap:4px;font-weight:900;font-size:1.0625rem;color:#B86E2C}
.chg{margin-left:8px;padding:4px 2px;font-family:inherit;font-size:0.8125rem;font-weight:700;color:#9A5A1E;background:none;border:0;text-decoration:underline;cursor:pointer}
.tq{margin:2px 0 0;font-size:0.875rem;line-height:1.6;color:var(--sub)}
.pick{gap:8px}
.pickbtn{display:flex;justify-content:space-between;align-items:center;gap:8px;width:100%;min-height:52px;padding:12px 14px;border-radius:16px;background:var(--card);border:2px solid var(--line);border-bottom:5px solid #EBDCC6;font-weight:700;font-size:1rem;color:var(--ink);text-align:left;cursor:pointer;transition:transform .08s}
.pickbtn:active{transform:translateY(3px)}
.pickbtn small{font-family:'BIZ UDPGothic',sans-serif;font-size:0.75rem;color:var(--sub);font-weight:400}
.pickbtn.off{color:#9C8B7D;background:#F7EFE4;border-color:transparent;cursor:default}
.a2hs{background:#FFF6E6}
.genre h3{color:var(--sub)}
.ecard{padding:14px 16px 12px}
.ylink{background:#FFF4E4;border:0;border-bottom:4px solid #EED7B4;border-radius:14px;transition:transform .08s}
.ylink:hover{background:#FFEFD6}
.ylink:active{transform:translateY(2px)}
.tcard{border-radius:16px;border:2px solid var(--line)}
.tcard .th small{color:#9A5A1E}
.kb{background:#F5ECE0}
/* 問題のページ */
.band{background:#FBF0E0;border-bottom:0;padding-top:16px}
.cbadge{display:inline-flex;align-items:center;gap:2px;padding:1px 9px 1px 6px;border-radius:99px;background:#fff;border:1.5px solid #F0D3A8;font-weight:900;font-size:0.8125rem;color:#B86E2C}
.cbadge.bump{animation:bump .5s cubic-bezier(.3,1.6,.5,1)}
@keyframes bump{0%{transform:scale(1)}40%{transform:scale(1.3)}100%{transform:scale(1)}}
.q-title{font-weight:900}
.q-title .qt{font-family:'Zen Maru Gothic',sans-serif}
.choice{position:relative;overflow:hidden;border-radius:16px;border:2px solid var(--line);border-bottom:5px solid #EBDCC6;background:var(--card);
  transition:background-color .35s,border-color .35s,color .35s,opacity .35s,transform .08s,border-bottom-width .08s}
.choice:active{transform:translateY(3px);border-bottom-width:2px}
.choice .k{background:#F5ECE0}
.choices.done .choice{cursor:default}
.choices.done .choice.dim{opacity:.55;color:var(--ink)}
.choices .choice.ok{color:var(--ink);background:var(--sage-bg);border:2px solid var(--sage);border-bottom:5px solid #8FB97C}
.choices .choice.ok .k{background:var(--sage-ink);color:#fff}.choice.ok .m{color:var(--sage-ink)}
.choices .choice.ng{color:var(--ink);background:var(--pink-bg);border:2px solid var(--pink);border-bottom:5px solid #C98A93}
.choices .choice.ng .k{background:#9A3E50;color:#fff}.choice.ng .m{color:#9A3E50}
.choice .m{font-family:'Zen Maru Gothic',sans-serif;font-weight:900}
.choice.ok.glow{animation:okglow 1.4s ease-out .2s}
.choice.ok.jump{animation:jump .6s cubic-bezier(.3,1.6,.5,1) .12s,okglow 1.4s ease-out .2s}
@keyframes okglow{0%{box-shadow:0 0 0 0 rgba(124,190,100,.55)}100%{box-shadow:0 0 0 16px rgba(124,190,100,0)}}
@keyframes jump{0%{transform:none}35%{transform:translateY(-7px) scale(1.035)}65%{transform:translateY(1px) scale(.995)}100%{transform:none}}
.ripple{position:absolute;border-radius:50%;pointer-events:none;transform:scale(0);opacity:.45;animation:ripple .7s ease-out forwards}
@keyframes ripple{to{transform:scale(1);opacity:0}}
.after{gap:18px}
.reveal{opacity:0;transform:translateY(14px)}
.reveal.on{opacity:1;transform:none;transition:opacity .3s ease-out,transform .35s cubic-bezier(.2,.9,.3,1.2)}
.cheer{flex-direction:row;align-items:flex-end;gap:4px;padding:12px 12px 0;overflow:hidden}
.cheer .cimg{position:relative;flex:none;width:92px;height:92px}
.cheer .cimg img{width:100%;height:100%}
.cheer.sign .cimg{width:128px;height:128px}
.signtxt{display:none;position:absolute;left:13%;top:11.8%;width:73.5%;height:24%;align-items:center;justify-content:center;text-align:center;font-family:'Zen Maru Gothic',sans-serif;font-weight:900;font-size:0.8125rem;line-height:1.2;color:#B86E2C}
.cheer.sign .signtxt{display:flex}
.cheer .bubble.ok{background:var(--sage-bg)}.cheer .bubble.ok::before{border-right-color:var(--sage-bg)}
.cheer .bubble.ng{background:var(--blue-bg)}.cheer .bubble.ng::before{border-right-color:var(--blue-bg)}
.exbox{flex-direction:row;gap:8px;padding:14px 14px 0;overflow:hidden}
.exbox h2{font-size:0.9375rem;color:#B86E2C}
.exbox h2::before{display:none!important}
.exbox p.e{margin:4px 0 14px;font-size:1.0625rem;line-height:1.85}
.exbox img{width:84px;height:84px;align-self:flex-end;flex:none}
/* 正解の演出 */
#fx{position:fixed;inset:0;pointer-events:none;z-index:60;display:grid;place-items:center}
.stage{position:relative;width:260px;height:260px;margin-top:-40px;display:grid;place-items:center}
.halo{position:absolute;inset:0;border-radius:50%;background:radial-gradient(circle,rgba(255,240,214,.95) 0,rgba(255,240,214,.6) 35%,rgba(255,240,214,0) 70%);animation:halo .8s ease-out forwards}
@keyframes halo{0%{transform:scale(.2);opacity:0}25%{opacity:1}100%{transform:scale(1.5);opacity:0}}
.maru{position:absolute;width:210px;height:210px;overflow:visible;animation:maru .9s cubic-bezier(.2,.8,.2,1) forwards}
.maru circle{fill:none;stroke:#EC7686;stroke-width:17;stroke-linecap:round;stroke-dasharray:452;stroke-dashoffset:452;transform:rotate(-100deg);transform-origin:100px 100px;filter:drop-shadow(0 6px 12px rgba(236,118,134,.35));animation:draw .32s .02s cubic-bezier(.6,0,.3,1) forwards}
@keyframes draw{to{stroke-dashoffset:0}}
@keyframes maru{0%{transform:scale(.85);opacity:0}10%{opacity:1}40%{transform:scale(1.05)}55%{transform:scale(1)}78%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(1.06)}}
.seikai{position:absolute;font-family:'Zen Maru Gothic',sans-serif;font-weight:900;font-size:42px;letter-spacing:.08em;text-indent:.08em;line-height:1;color:#E2606F;
  text-shadow:3px 3px 0 #fff,-3px -3px 0 #fff,3px -3px 0 #fff,-3px 3px 0 #fff,0 6px 14px rgba(226,96,111,.35);opacity:0;animation:seikai .78s cubic-bezier(.2,.9,.3,1.3) .1s forwards}
@keyframes seikai{0%{opacity:0;transform:scale(.5)}25%{opacity:1;transform:scale(1.15)}42%{transform:scale(1)}78%{opacity:1}100%{opacity:0;transform:scale(1.02)}}
.cf{position:absolute;left:50%;top:50%;width:8px;height:14px;margin:-7px 0 0 -4px;border-radius:2px;opacity:0;animation:confetti 1.6s forwards}
.cf.dot{width:10px;height:10px;margin:-5px 0 0 -5px;border-radius:50%}
.cf.star{width:auto;height:auto;margin:-11px 0 0 -8px;background:none!important;font-size:20px;line-height:1}
@keyframes confetti{0%{opacity:0;transform:translate(0,0) scale(.3) rotate(0);animation-timing-function:cubic-bezier(.1,.85,.3,1)}10%{opacity:1}42%{transform:translate(var(--dx),var(--dy)) scale(1) rotate(var(--r1));animation-timing-function:cubic-bezier(.45,0,.9,.6)}85%{opacity:1}100%{opacity:0;transform:translate(var(--dx2),var(--dy2)) scale(.9) rotate(var(--r2))}}
/* 動きを減らす設定の端末：動き（描く・はねる・舞う）はやめ、ふわっと出て消えるだけにする */
@media (prefers-reduced-motion: reduce){
.maru{animation:fadeonly .9s ease forwards}.maru circle{stroke-dashoffset:0;animation:none}
.halo{animation:fadeonly .8s ease forwards}.seikai{animation:fadeonly .8s ease .1s forwards}.cf{display:none}
.choice.ok.jump,.choice.ok.glow,.cbadge.bump{animation:none}
.reveal{transform:none}.reveal.on{transition:opacity .5s ease-out}
}
@keyframes fadeonly{0%{opacity:0}22%{opacity:1}72%{opacity:1}100%{opacity:0}}
/* 用語のページ */
.term-head h1{font-family:'Zen Maru Gothic',sans-serif;font-weight:900}
.short{flex-direction:row;gap:8px;background:var(--card);border:2px solid var(--line);border-radius:22px;padding:16px 16px 0;overflow:hidden}
.short h2{color:#B86E2C}
.short h2::before{display:none!important}
.short p{margin:4px 0 16px}
.short img{width:80px;height:80px;align-self:flex-end;flex:none}
.past{border-radius:16px;border:2px solid var(--line);border-bottom:4px solid #EBDCC6;background:var(--card)}
.past em{color:#9A5A1E}
.result{display:none}
.mark.ok{color:var(--sage-ink)}
.cheer.sign.sparkle .signtxt{left:11.2%;top:13.2%;width:73.5%;height:30.2%}
/* 見出しの横の講師（復習・このサイトについて） */
.head.talkhead{flex-direction:row;align-items:flex-end;justify-content:space-between;gap:8px}
.head.talkhead img{flex:none}
/* ===== 使い勝手の見直し（10月26日。docs/web_flow.md の「10月26日：使い勝手の見直し」）===== */
/* 下のメニュー：PC の広い画面でも、本文の幅（640px）にそろえて並べる（端に離れて見つけにくかった） */
nav.tabs{padding-left:max(0px,calc((100vw - 640px) / 2));padding-right:max(0px,calc((100vw - 640px) / 2))}
nav.tabs a{position:relative}
/* 復習のタブの数 */
.tbadge{position:absolute;top:4px;left:calc(50% + 6px);min-width:18px;height:18px;padding:0 5px;border-radius:99px;background:#D9677A;color:#fff;font-size:11px;font-weight:700;line-height:18px;text-align:center}
/* 復習への行（トップの今日のきろく・まちがえたあと） */
.rvrow{display:flex;justify-content:space-between;align-items:center;gap:8px;min-height:48px;padding:10px 14px;border-radius:14px;background:var(--blue-bg);border:2px solid var(--blue);text-decoration:none;color:var(--ink);font-family:'Zen Maru Gothic',sans-serif;font-weight:700;font-size:0.9375rem}
.rvrow span:last-child{color:#9A5A1E}
.rvrow:hover{color:var(--ink)}
/* 声かけの吹き出しは、講師の絵の横の幅を全部使う（「です」の途中で折れていた） */
.cheer .bubble{flex:1;min-width:0}
/* 頭の文字の索引：押した所は、ほかのボタンと同じキャラメル色 */
.kana button[aria-pressed=true]{background:var(--caramel);border-color:var(--caramel-dark);color:var(--ink)}
/* 用語のページの「この用語が出た過去問」の印 */
.past b .mark{margin-left:auto;font-size:0.8125rem}
.past b .mark.ng{color:var(--ng)}
.bubble .nw{display:inline-block}
/* 動画（YouTube へのリンク。10月26日）：動画で学ぶ・資格のトップ・年度の一覧・問題・用語のページ */
.vcards{display:flex;flex-direction:column;gap:10px}
.vlink,.vcard{display:flex;align-items:center;gap:12px;padding:12px 14px;border-radius:16px;background:var(--card);border:2px solid var(--line);border-bottom:4px solid #EBDCC6;text-decoration:none;color:var(--ink)}
.vlink:hover,.vcard:hover{color:var(--ink)}
.vlink>span:last-child,.vcard>span:last-child{display:flex;flex-direction:column;gap:2px;min-width:0}
.vlink b,.vcard b{font-family:'Zen Maru Gothic',sans-serif;font-size:1rem}
.vlink small,.vcard small{font-size:0.8125rem;color:var(--sub)}
.play{flex:none;width:40px;height:28px;border-radius:8px;background:#E25B5B;color:#fff;display:flex;align-items:center;justify-content:center;font-size:13px}
.vcard.off{background:#F7EFE4;border-color:transparent;color:#9C8B7D}
.vcard.off .play{background:#CDBFAF}
