/* 学習操作・資格の識別・情報・広告を別の役割として見せる。 */
:root{--study-action:#0F625A;--study-action-hover:#094B44;--study-ink:#1C2626;--study-muted:#52615D;--study-line:#D9E3E0;--study-info:#315B86;--study-ad:#F5F3EE}
[data-category]{--category-ink:#315B86;--category-tint:#EDF2F8;--category-edge:#315B86}
[data-category="消防・防災"]{--category-ink:#93470F;--category-tint:#FFF1E6;--category-edge:#BB6024}
[data-category="労働安全衛生"]{--category-ink:#315B86;--category-tint:#EDF2F8;--category-edge:#315B86}
[data-category="環境"]{--category-ink:#176657;--category-tint:#EAF5F0;--category-edge:#267662}
[data-category="電気"]{--category-ink:#65448A;--category-tint:#F3EDFA;--category-edge:#7956A0}
.gd-category-tag{display:inline-flex;align-items:center;gap:5px;width:max-content;max-width:100%;margin:4px 0;padding:3px 8px;border-radius:5px;background:var(--category-tint);color:var(--category-ink);font-size:11px;font-weight:600;line-height:1.45;letter-spacing:0;white-space:normal}
.gd-category-tag::before{content:"";width:5px;height:5px;flex:none;border-radius:50%;background:var(--category-edge)}
.qhero .cat.gd-category-tag{background:var(--category-tint);color:var(--category-ink);border:0;font-size:12px;padding:4px 8px}.qhero .cat i{font-style:normal}
.gd-qual-row[data-category],.catalog-row[data-category]{border-left:3px solid var(--category-edge)}
.gd-qual-name .gd-category-tag{display:flex;margin:3px 0 0;padding:0;background:none;font-size:11px}
.resume-card[data-category]>.rhead{border-left:3px solid var(--category-edge);padding-left:10px;align-items:center}
.resume .resume-heading h2{font-size:16px;line-height:1.5}
.resume .resume-note{font-size:12px;color:var(--study-muted);margin:4px 0 10px;line-height:1.6}
.resume-card{padding:10px 0}
.resume-card .resume-progress{font-size:12px;line-height:1.6;color:var(--study-muted);margin:3px 0}
.resume-card .resume-name h3{font-size:15px;line-height:1.5}
.resume .bar i{background:var(--study-info)}
.resume .resume-actions .resume-home,.mode,.bt:not(.p){background:#fff;color:var(--study-action);border:1px solid #719B94;box-shadow:none}
.mode .ib{background:#F1F6F4;color:var(--study-action)}
.resume-home:hover,.mode:hover,.bt:not(.p):hover{background:#F0F7F4;border-color:var(--study-action)}
.cta,.nx,.bt.p,.resume .rgo,.gd2-primary,.gd-hero .cta{background:var(--study-action);color:#fff;box-shadow:none}
.cta:hover,.nx:hover,.bt.p:hover,.resume .rgo:hover,.gd2-primary:hover{background:var(--study-action-hover)}
.hint button{background:#fff;color:var(--study-action);text-decoration:underline;text-underline-offset:3px}
.hint button:hover{background:#EDF5F2}
.answer-open,.verified-link,.resume .rsub{color:var(--study-action);text-underline-offset:3px}
.answer-open:hover,.verified-link:hover,.resume .rsub:hover{text-decoration:underline}
/* 読む情報は開始ボタンと競わせず、見出しと区切りで整理。 */
#artwrap{margin-top:28px;padding-top:20px;border-top:2px solid var(--study-line)}
#artwrap .sec-h{color:var(--study-info);font-size:16px}
.exam-tile,.gd2-exam-tiles a{background:transparent;border:0;border-bottom:1px solid var(--study-line);border-radius:0;box-shadow:none}
.exam-tile>.ic{color:var(--study-info)}
.exam-tile-value,.gd2-exam-tiles b{color:var(--study-ink)}
.exam-tile:hover,.gd2-exam-tiles a:hover{background:#EDF2F8;border-color:#8AA3BC}
.exam-tile:hover .exam-tile-label,.gd2-exam-tiles a:hover b{text-decoration:underline;text-underline-offset:4px}
.exam-more .artlist a{background:transparent;border:0;border-bottom:1px solid var(--study-line);border-radius:0;box-shadow:none;padding:14px 4px;margin:0;color:var(--study-info)}
.exam-more .artlist a:hover{background:#EDF2F8;text-decoration:underline;text-underline-offset:4px}
.trust{background:transparent;border:0;border-top:1px solid var(--study-line);border-radius:0;box-shadow:none}
.dcards{gap:0;padding:12px 0;border-top:1px solid var(--study-line);border-bottom:1px solid var(--study-line)}
.dcards>div{background:transparent;border:0;border-right:1px solid var(--study-line);border-radius:0;box-shadow:none}
.dcards>div:last-child{border-right:0}
.dcards b{color:var(--study-ink)}
.gd2-trust{background:transparent;color:var(--study-muted);font-weight:500}
.gd2-secondary{background:#fff;border:1px solid #719B94;border-radius:10px;margin-top:8px;text-decoration:none}
.gd2-secondary:hover{background:#F0F7F4;border-color:var(--study-action)}
/* 広告は教材の補足案内。公式広告コードとリンク先はそのまま。 */
.gd-book{background:var(--study-ad);border-color:#D8D3C8;box-shadow:none}
.gd-book h2 small{display:inline-block;vertical-align:middle;padding:3px 7px;margin-left:6px;border:1px solid #B7B1A4;border-radius:4px;background:#fff;color:#55524A;font-size:11px;font-weight:600;line-height:1.4}
.gd-book .gd-ad-disclosure{font-size:12px;color:#55524A;margin-top:12px}
.gd-book .gd-book-link,.gd-course .gd-course-link a{background:#fff;color:#3F4A47;border:1px solid #929A94;box-shadow:none;text-decoration:underline;text-underline-offset:4px;min-height:48px;line-height:1.7;overflow-wrap:anywhere}
.gd-book .gd-book-link:hover,.gd-course .gd-course-link a:hover{background:#EAE7DF;border-color:#59645F;color:#24312B}
.gd-course-link a::after{content:" ↗";margin-left:6px;flex:none}
.gd-book .gd-book-skip,.gd-course-option+.gd-course-option{border-color:#D8D3C8}
:where(button,a,summary):focus-visible{outline:3px solid #2563EB;outline-offset:3px}
.resume-card button,.gd-qual-row,.catalog-row,.gd-book-link,.gd-course-link a{scroll-margin-block:90px}
@media(prefers-reduced-motion:reduce){.resume .bar i{transition:none}}
/* 静的な記事・科目ページの小文字も読める濃さにする。学習アプリの状態色は変更しない。 */
:where(body>.w,body>main.w) .meta,
:where(body>.w,body>main.w) .src,
:where(body>.w,body>main.w) .tbl small,
:where(body>.w,body>main.w) .note,
:where(body>.w,body>main.w) .bc,
:where(body>.w,body>main.w) .bc a,
:where(body>.w,body>main.w) .note2,
:where(body>.w,body>main.w) .dcards em,
footer>.w>p{color:var(--study-muted)}
/* a より詳細な CTA・広告・カードの指定は維持する。 */
:where(body>.w,body>main.w) a{color:var(--study-action)}
:where(body>.w,body>main.w) .score .lb,
:where(body>.w,body>main.w) .lmap>b{color:var(--study-action)}
:where(body>.w,body>main.w) .tag.g,
:where(body>.w,body>main.w) ol li.ok{color:#176657}
