/* ワカリー プログラミング（dev.wakary.net）
   英語サイト（緑・生成り）とは分けて、紺のインクと信号のオレンジで「開発の道具」らしく。
   印はキーボードのキー（OS の選択・手順の番号）と、サムネイルのターミナル（そのツールで打つコマンド）。docs/04 */
:root {
  --bg: #f2f4f8;          /* 少し青みのある灰 */
  --surface: #ffffff;
  --ink: #0f1a33;         /* 本文 */
  --sub: #5a6478;
  --line: #dde2ec;
  --navy: #0f1d3a;        /* 帯（ヒーロー・見出し） */
  --navy-2: #1b2b52;
  --navy-line: #2a3b66;
  --on-navy: #ffffff;
  --on-navy-sub: #ffffff;      /* 紺の上の補足の文字も白（2026-11-05。薄い青は読みにくい） */
  --accent: #ff6b2c;      /* 信号のオレンジ: 選んだもの・進むボタンだけ */
  --accent-ink: #c2470f;
  --accent-wash: #fff1e8;
  --ok: #11795b; --ok-wash: #e6f4ee;
  --warn-wash: #fff6e0; --warn-line: #e6b94a;
  --code-bg: #0d1530; --code-ink: #e6ebf7; --code-sub: #bcc6db;
  /* 分類の色（サムネイルと小さな印だけ） */
  --c-editor: #3d63f2; --c-editor-wash: #e8edff;
  --c-lang: #0e9a86;   --c-lang-wash: #e2f5f1;
  --c-tool: #7c5cf0;   --c-tool-wash: #eee9ff;
  --c-ai: #f05a1a;     --c-ai-wash: #ffece2;
  --font: "IBM Plex Sans JP", "Hiragino Sans", "Noto Sans JP", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 20px; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.85; overflow-wrap: anywhere; }
a { color: var(--accent-ink); }
a:hover { color: var(--ink); }
img, svg { max-width: 100%; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
[hidden] { display: none !important; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 8px; top: 8px; background: #fff; padding: 6px 10px; z-index: 100; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 36px max(20px, env(safe-area-inset-right, 0px)) 80px max(20px, env(safe-area-inset-left, 0px)); }
.wrap.narrow { max-width: 800px; }
.muted { color: var(--sub); }
.small { font-size: 13px; }
h1, h2, h3 { margin: 0; line-height: 1.4; text-wrap: balance; }
h1 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 700; letter-spacing: .01em; }
h2 { font-size: 22px; font-weight: 700; }
h3 { font-size: 17px; font-weight: 700; }
code, kbd, samp, pre { font-family: var(--mono); }
p code, li code, h3 code { background: #e9edf5; border-radius: 5px; padding: 1px 6px; font-size: .86em; }
.button { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 22px; border-radius: 10px; background: var(--accent-ink); color: #fff; font-weight: 700; text-decoration: none; }
.button:hover { color: #fff; background: #9c3609; }
.badge { display: inline-block; font-size: 12px; font-weight: 700; color: #fff; background: var(--navy); border-radius: 6px; padding: 0 8px; line-height: 1.7; }
.badge.gray { background: #e5e9f0; color: var(--sub); }

/* キー */
.key, kbd { display: inline-grid; place-items: center; background: var(--surface); color: var(--ink); border: 1px solid #cfd6e3; border-bottom: 4px solid #aab4c7; border-radius: 10px; font-family: var(--mono); font-weight: 700; line-height: 1; }
kbd { display: inline-block; min-width: 1.9em; padding: 3px 7px 2px; font-size: .8em; border-radius: 7px; border-bottom-width: 3px; vertical-align: .08em; text-align: center; font-weight: 600; }
button.key, a.key { cursor: pointer; text-decoration: none; transition: transform .07s, border-bottom-width .07s; }
button.key:active, a.key:active { transform: translateY(2px); border-bottom-width: 2px; }
/* 紺の帯の上のキー */
.band .key { background: var(--navy-2); color: var(--on-navy); border-color: var(--navy-line); border-bottom-color: #070e1f; }
.band .key[aria-checked="true"], .band .key[aria-current="page"] { background: var(--accent-ink); color: #fff; border-color: var(--accent); border-bottom-color: #7a2a06; }

/* ヘッダー・フッター（2026-11-05 改訂: 白地に濃い文字。紺地に色つきの文字は読みにくいため。docs/04「読みやすさ」） */
.site-header { background: var(--surface); color: var(--ink); border-bottom: 1px solid var(--line); }
.header-in, .footer-in, .band-in { max-width: 1120px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.header-in { padding-block: 12px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 15px; }
.logo:hover { color: var(--ink); }
.logo-mark { height: 28px; padding: 0 7px; display: grid; place-items: center; border-radius: 7px; background: var(--navy); color: #fff; font-family: var(--mono); font-weight: 700; font-size: 13px; letter-spacing: -.02em; }
.nav { display: flex; flex-wrap: wrap; gap: 4px 24px; font-size: 15px; font-weight: 500; }
.nav a { color: var(--ink); text-decoration: none; padding: 4px 0; border-bottom: 3px solid transparent; }
.nav a:hover { border-bottom-color: var(--line); color: var(--ink); }
.nav a[aria-current="page"] { border-bottom-color: var(--accent); font-weight: 700; }
.site-footer { background: #e6eaf1; color: var(--ink); border-top: 1px solid var(--line); }
.footer-in { padding-block: 26px 48px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: 14px; }
.footer-in nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.footer-in a { color: var(--ink); }
.footer-in a:hover { color: var(--accent-ink); }

/* 紺の帯（ヒーロー・ページの見出し） */
.band { background-color: var(--navy); color: #fff; }   /* 紺の上の文字は白だけ。強弱は大きさと太さでつける（色で弱めない） */
.band-in { padding-block: 36px 40px; display: flex; flex-direction: column; gap: 12px; }
.band h1 { color: #fff; }
.band-lead { margin: 0; color: var(--on-navy-sub); max-width: 46em; }
.crumbs { display: flex; flex-wrap: wrap; gap: 2px 8px; font-size: 13px; color: var(--on-navy-sub); }
.crumbs a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.crumbs a:hover { color: #fff; }

/* トップのヒーロー */
.hero-in { padding-block: 64px 64px; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 32px 64px; align-items: center; }
.hero-text { display: flex; flex-direction: column; gap: 20px; }
.hero-title { font-size: clamp(32px, 4.8vw, 54px); line-height: 1.25; letter-spacing: .01em; }
.hero-title span { display: inline-block; }
.hero-lead { margin: 0; color: var(--on-navy-sub); font-size: 16.5px; max-width: 34em; }
.picker { background: rgba(255,255,255,.04); border: 1px solid var(--navy-line); border-radius: 20px; padding: 26px; }
.picker-q { margin: 0 0 14px; font-weight: 700; color: #fff; }
.picker-hint { margin: 14px 0 0; font-size: 13px; color: var(--on-navy-sub); }
.os-keys { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.os-key { min-height: 78px; font-size: 20px; border-radius: 14px; border-bottom-width: 6px; font-family: var(--font); font-weight: 700; }
.os-keys.small { display: inline-grid; grid-template-columns: repeat(2, minmax(120px, auto)); justify-content: start; margin-top: 6px; }
.os-keys.small .os-key { min-height: 46px; font-size: 15px; border-bottom-width: 4px; border-radius: 10px; }

/* セクション */
.home-sec + .home-sec { margin-top: 64px; }
.sec-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-bottom: 14px; }
.sec-note { margin: 0; color: var(--sub); font-size: 14px; }
.hint { margin: 0 0 20px; color: var(--sub); font-size: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 36px; padding: 4px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-size: 14px; cursor: pointer; }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ツールのカード */
.tool-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.tool-card, .course-card { --c: var(--c-tool); --cw: var(--c-tool-wash); }
.cat-editor { --c: var(--c-editor); --cw: var(--c-editor-wash); }
.cat-lang { --c: var(--c-lang); --cw: var(--c-lang-wash); }
.cat-ai { --c: var(--c-ai); --cw: var(--c-ai-wash); }
.tool-link { height: 100%; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; color: var(--ink); text-decoration: none; transition: border-color .15s, transform .15s; }
.tool-link:hover { color: var(--ink); border-color: var(--c); transform: translateY(-2px); }
.thumb { display: block; width: 100%; aspect-ratio: 16 / 9; height: auto; object-fit: cover; }
/* サムネイルの絵（partials/art）。--c は分類の色 */
.thumb .a-bg { fill: var(--cw); }
.a-n { fill: var(--navy); } .a-n2 { fill: var(--navy-2); } .a-n3 { fill: #16244a; }
.a-c { fill: var(--c); } .a-cd { fill: var(--c); filter: brightness(.72); }
.a-o { fill: var(--accent); } .a-w { fill: #fff; } .a-g { fill: #3a4a78; } .a-gl { fill: #dfe4ee; } .a-dot { fill: #3a4a78; }
.a-edge { stroke: #cdd5e4; stroke-width: 1.5; }
.a-ring { stroke: #fff; stroke-width: 4; }
.a-caret { fill: var(--c); }
.a-hl { opacity: .3; }
.a-pointer { stroke: var(--navy); stroke-width: 2.5; stroke-linejoin: round; }
.a-pointer.a-n { stroke: #fff; }
.a-ripple { fill: none; stroke: var(--c); stroke-width: 3; opacity: .35; }
.a-t { font-family: var(--mono); font-weight: 700; font-size: 16px; } .a-tc { fill: var(--c); } .a-tn { fill: var(--navy); } .a-big { font-size: 44px; }
[class^="s-"], [class*=" s-"] { fill: none; stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
.s-n { stroke: var(--navy); } .s-c { stroke: var(--c); } .s-o { stroke: var(--accent); } .s-light { stroke: rgba(255,255,255,.35); stroke-width: 2; } .s-dash { stroke-dasharray: 2 9; }
.tool-body { flex: 1; display: flex; flex-direction: column; gap: 4px; padding: 16px 18px 16px; }
.tool-cat { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--sub); }
.tool-cat::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--c); }
.tool-name { font-size: 19px; line-height: 1.4; }
.tool-sum { font-size: 14px; color: var(--sub); line-height: 1.7; }
.tool-foot { margin-top: auto; padding-top: 12px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.os-pills { display: flex; gap: 6px; }
.os-pill { white-space: nowrap; font-size: 12px; padding: 1px 9px; border-radius: 6px; border: 1px solid var(--line); color: var(--sub); }
.os-pill.is-ready { border-color: var(--ink); color: var(--ink); font-weight: 700; }
.os-pill small { margin-left: 4px; font-size: 10.5px; color: var(--sub); font-weight: 400; }
.tool-state { font-size: 13px; font-weight: 700; color: var(--accent-ink); }
.tool-card.is-soon .tool-state, .course-card.is-soon .tool-state { color: var(--sub); font-weight: 400; }
/* OS を選んだら、ほかの OS の内容は出さない */
html[data-os="windows"] .tool-card:not([data-tool-os~="windows"]), html[data-os="mac"] .tool-card:not([data-tool-os~="mac"]),
html[data-os="windows"] [data-os-only="mac"], html[data-os="mac"] [data-os-only="windows"] { display: none !important; }
.os-note { display: none; margin: 0 0 18px; font-size: 14px; color: var(--sub); }
html[data-os] .os-note { display: block; }
.os-note span { font-weight: 700; color: var(--ink); }
.link-btn { background: none; border: 0; padding: 0 0 0 6px; color: var(--accent-ink); text-decoration: underline; cursor: pointer; font-size: inherit; }
.os-none { background: var(--warn-wash); border: 1px solid var(--warn-line); border-radius: 12px; padding: 12px 16px; font-size: 14px; }
html:not([data-os]) .os-none { display: none; }
.tool-card.is-hidden, .course-card.is-hidden { display: none; }

/* 講座のカード */
.course-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.setup-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.setup-tag { white-space: nowrap; font-size: 12px; padding: 1px 9px; border-radius: 6px; border: 1px solid var(--line); color: var(--ink); }
.setup-tag.web { border-color: var(--c-lang); color: var(--c-lang); font-weight: 700; }
.sec-kicker { margin: 0; font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: .12em; color: var(--accent-ink); }
.sec-more { font-size: 14px; font-weight: 700; text-decoration: none; }

/* トップの2つの入口（インストール／講座） */
.tracks-in { padding-block: 0 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.track { position: relative; display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 20px; align-items: center; padding: 16px 52px 16px 16px; border-radius: 18px; background: var(--navy-2); border: 1px solid var(--navy-line); color: var(--on-navy); text-decoration: none; transition: border-color .15s, transform .15s; }
.track:hover { color: var(--on-navy); border-color: var(--accent); transform: translateY(-2px); }
.track-art { position: relative; height: 120px; }
.track-art .thumb { position: absolute; width: 150px; border-radius: 10px; box-shadow: 0 6px 18px rgba(0,0,0,.35); }
.track-art .thumb:nth-child(1) { left: 0; top: 34px; z-index: 1; }
.track-art .thumb:nth-child(2) { left: 26px; top: 16px; z-index: 2; }
.track-art .thumb:nth-child(3) { left: 50px; top: 0; z-index: 3; }
.track-art .thumb:nth-child(1) { --c: var(--c-editor); --cw: var(--c-editor-wash); }
.track-art .thumb:nth-child(2) { --c: var(--c-tool); --cw: var(--c-tool-wash); }
.track-art .thumb:nth-child(3) { --c: var(--c-lang); --cw: var(--c-lang-wash); }
.track.cat-lang .thumb:nth-child(1) { --c: var(--c-lang); --cw: var(--c-lang-wash); }
.track.cat-lang .thumb:nth-child(2) { --c: var(--c-editor); --cw: var(--c-editor-wash); }
.track.cat-lang .thumb:nth-child(3) { --c: var(--c-ai); --cw: var(--c-ai-wash); }
.track-text { display: flex; flex-direction: column; gap: 2px; }
.track-kicker { font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: .12em; color: var(--accent); }
.track-text b { font-size: 22px; color: #fff; }
.track-text span:last-child { font-size: 14px; color: var(--on-navy-sub); line-height: 1.7; }
.track-go { position: absolute; right: 18px; top: 50%; translate: 0 -50%; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--accent-ink); color: #fff; font-weight: 700; }

/* 講座のページ */
.course-band { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 24px 40px; align-items: center; }
.course-band > div:first-child { display: flex; flex-direction: column; gap: 12px; }
.course-art .thumb { border-radius: 14px; }
.course-meta { margin: 0; display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; }
.course-meta span { border: 1px solid var(--navy-line); border-radius: 6px; padding: 0 10px; color: var(--on-navy); }
.course-meta .is-soon { border-color: var(--accent); color: var(--accent); }
.c-sec + .c-sec { margin-top: 48px; }
.c-sec h2 { margin-bottom: 16px; }
.c-sec h2 small { font-size: 14px; font-weight: 400; color: var(--sub); margin-left: 6px; }
.setup-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.setup-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px; }
.setup-card > p { margin: 0 0 12px; font-size: 15px; }
.setup-card .setup-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; font-size: 17px; }
.setup-ico { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; background: var(--c-editor-wash); }
.setup-card.web .setup-ico { background: var(--c-lang-wash); }
.setup-ico svg { width: 20px; height: 20px; fill: none; stroke: var(--navy); stroke-width: 1.8; stroke-linecap: round; }
.setup-name { font-size: 13px; font-weight: 700; color: var(--c-lang); border: 1px solid var(--c-lang); border-radius: 6px; padding: 0 8px; }
.setup-tools { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.setup-tools li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px; padding: 10px 14px; border-radius: 10px; background: var(--bg); }
.st-name { font-weight: 700; display: flex; align-items: center; gap: 8px; }
.st-name::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--c, var(--c-tool)); }
.st-links { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 14px; }
.st-links a { font-weight: 700; text-decoration: none; }
.outline { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.outline li { display: flex; align-items: center; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 16px; }
.ol-n { width: 32px; height: 32px; font-size: 14px; flex: none; border-bottom-width: 3px; border-radius: 8px; }
.ol-state { margin-left: auto; font-size: 12px; color: var(--sub); }

/* ヘッダーの OS 切り替え */
.header-right { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; }
.hos { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line); }
.hos-b { min-height: 32px; padding: 0 12px; border: 0; border-radius: 7px; background: none; color: var(--ink); font-size: 14px; font-weight: 500; cursor: pointer; white-space: nowrap; }
.hos-b:hover { background: #e2e7f0; }
.hos-b[aria-checked="true"] { background: var(--navy); color: #fff; font-weight: 700; }

/* ツールのページ */
.os-choice { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-bottom: 20px; }
.os-card { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px; color: var(--ink); text-decoration: none; }
a.os-card:hover { border-color: var(--accent); color: var(--ink); }
.os-card small { color: var(--sub); }
.os-card.is-soon { color: var(--sub); }
.os-card-key { padding: 11px 18px 9px; font-family: var(--font); font-size: 16px; }

/* 教材のページ */
.guide-head { padding-block: 30px 36px; }
.guide-head h1 { font-size: clamp(26px, 3.4vw, 38px); }
.os-tabs { display: flex; gap: 10px; margin-top: 6px; }
.os-tab { padding: 10px 18px 8px; font-family: var(--font); font-size: 15px; }
.os-tab[aria-current="page"] { cursor: default; }
.os-tab.is-soon { opacity: .7; cursor: default; }
.guide-meta { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 8px; padding: 0; margin: 4px 0 0; font-size: 13px; color: var(--on-navy-sub); }
.guide-meta li { border: 1px solid var(--navy-line); border-radius: 6px; padding: 1px 10px; }
.draft { margin: 0 0 28px; background: var(--warn-wash); border: 1px solid var(--warn-line); color: #5b3a00; border-radius: 10px; padding: 9px 14px; font-size: 14px; max-width: 820px; }
.guide-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 56px; align-items: start; }
.guide-side { position: sticky; top: 20px; }
.toc-title { margin: 0 0 8px; font-weight: 700; font-size: 13px; color: var(--sub); }
.toc ol { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 2px; border-left: 2px solid var(--line); }
.toc a { display: flex; gap: 10px; padding: 6px 0 6px 14px; margin-left: -2px; border-left: 2px solid transparent; color: var(--sub); text-decoration: none; font-size: 14px; line-height: 1.5; }
.toc a:hover { color: var(--ink); }
.toc a.on { color: var(--ink); border-left-color: var(--accent); font-weight: 500; }
.toc-n { flex: none; min-width: 2.8em; font-family: var(--mono); font-size: 12px; padding-top: 2px; }
.guide-body { max-width: 760px; min-width: 0; }
.intro { margin: 0 0 20px; }
.before { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 20px; }
.before h2 { font-size: 14px; color: var(--sub); margin-bottom: 4px; }
.before ul { margin: 0; padding-left: 1.2em; }
.gsec { margin-top: 52px; }
.gsec > h2 { margin-bottom: 20px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.gsteps { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 34px; }
.gstep { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 16px; }
.step-key { width: 46px; height: 44px; font-size: 17px; border-radius: 11px; border-bottom-width: 5px; }
.gstep-main { min-width: 0; padding-top: 6px; }
.gstep-main > p { margin: 4px 0 0; }
/* コマンド・実際の画面・図解を、ぱっと見て見分けられるようにする（docs/04「コマンド・画面・図解の見分け方」2026-11-05）
   コマンド＝明るい青の地＋「>_ 〜に入力」、実際の画面＝灰色の台紙＋「実際の画面」、図解＝クリームの地・点線の枠＋オレンジの「図解」 */
.shot { margin: 14px 0 0; position: relative; display: block; width: fit-content; max-width: 100%; background: #e4e7ee; border-radius: 12px; padding: 30px 10px 10px; }
.shot-tag, .fig-tag { position: absolute; top: 6px; left: 12px; font-size: 12px; font-weight: 700; line-height: 1.6; }
.shot-tag { color: #3d4559; }
.shot-tag::before { content: ""; display: inline-block; width: 13px; height: 10px; margin-right: 6px; vertical-align: -1px; border: 2px solid currentColor; border-radius: 3px; box-sizing: border-box; }
.fig { margin: 16px 0 0; max-width: 580px; position: relative; background: #fffdf6; border: 2px dashed #d9b46a; border-radius: 14px; padding: 32px 12px 10px; }
.fig-tag { color: #fff; background: var(--accent-ink); border-radius: 6px; padding: 0 9px; top: 8px; }
.fig img { display: block; width: 100%; height: auto; border-radius: 8px; cursor: zoom-in; }
.fig figcaption { margin-top: 8px; padding-top: 6px; border-top: 1px solid #efe3c4; font-size: 14px; color: #4a5266; line-height: 1.7; }
.shot img { display: block; width: auto; max-width: 100%; height: auto; border-radius: 6px; background: #fff; cursor: zoom-in; box-shadow: 0 1px 4px rgba(15, 26, 51, .18); }
.shot-todo { aspect-ratio: 16 / 10; max-width: 100%; display: grid; place-items: center; text-align: center; padding: 20px; border-radius: 10px; background: var(--surface); border: 1px dashed #b9c2d4; color: var(--sub); font-size: 14px;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 24px 24px; background-position: -1px -1px; }
.shot-todo figcaption { background: var(--surface); padding: 4px 12px; border-radius: 6px; }
.result { margin: 12px 0 0; padding: 10px 14px; background: var(--ok-wash); border-radius: 10px; font-size: 15px; }
.result-label { display: block; font-size: 12px; font-weight: 700; color: var(--ok); }
.note { margin: 12px 0 0; padding: 10px 14px; background: var(--warn-wash); border-radius: 10px; font-size: 14.5px; }
.code { margin-top: 12px; border-radius: 12px; overflow: hidden; background: #f4f7fc; color: #1b2b52; border: 1.5px solid #3f67a8; }
.code-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 5px 6px 5px 12px; font-size: 13px; font-weight: 700; color: #1b2b52; background: #e3eaf6; }
.code-ico { display: inline-grid; place-items: center; height: 20px; padding: 0 5px; margin-right: 7px; border-radius: 5px; background: #1b2b52; color: #fff; font-family: var(--mono); font-size: 11px; }
.code-hint { margin-left: 10px; font-size: 11px; font-weight: 400; color: #5b6375; white-space: nowrap; }
@media (max-width: 560px) { .code-hint { display: block; margin: 0 0 0 34px; line-height: 1.4; } }
.copy-btn { flex-shrink: 0; white-space: nowrap; min-height: 32px; padding: 2px 12px; border-radius: 6px; border: 1px solid #3f67a8; background: #fff; color: #1b2b52; font-size: 12px; font-weight: 700; cursor: pointer; }
.copy-btn:hover { background: #eef3fb; }
.copy-btn.done { background: var(--accent-ink); border-color: var(--accent-ink); color: #fff; }
.code pre { margin: 0; padding: 12px 16px; overflow-x: auto; font-size: 15px; line-height: 1.6; }
.code pre code, .code pre samp { background: none; border-radius: 0; padding: 0; color: inherit; font-size: inherit; }
.code code[data-prompt="%"] .ln::before { content: "% "; color: #8a93a6; user-select: none; }
.code code[data-prompt="$"] .ln::before { content: "$ "; color: #8a93a6; user-select: none; }
.code code[data-prompt=">"] .ln::before { content: "> "; color: #8a93a6; user-select: none; }
.code-out { border-top: 1px dashed #b9c6de; background: #fff; }
.code-out-label { display: block; padding: 6px 16px 0; font-size: 11px; color: #5b6375; }
.code-out pre { color: #2b3346; padding-top: 4px; }
.done { margin: 48px 0 0; padding: 16px 20px; border-radius: 12px; background: var(--navy); color: #fff; font-weight: 700; display: flex; align-items: center; gap: 12px; }
.done::before { content: "✓"; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--accent-ink); color: #fff; font-size: 15px; flex: none; }
.next, .sources { margin-top: 48px; }
.next h2, .sources h2 { margin-bottom: 14px; }
.next-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.next-card { display: flex; flex-direction: column; gap: 2px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; color: var(--ink); text-decoration: none; }
.next-card:hover { border-color: var(--accent); color: var(--ink); }
.next-card span { font-size: 14px; color: var(--sub); }
.next-card small { color: var(--sub); }
.sources ul { margin: 0; padding-left: 1.2em; font-size: 14px; }
.prose p { margin: 0 0 16px; }
.zoom { max-width: 96vw; max-height: 96vh; padding: 0; border: 0; border-radius: 10px; background: #fff; }
.zoom::backdrop { background: rgba(5, 10, 25, .8); }
.zoom img { display: block; max-width: 96vw; max-height: 96vh; }
.zoom-close { position: absolute; right: 8px; top: 8px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(0,0,0,.6); color: #fff; font-size: 22px; cursor: pointer; }

/* 講座の教材（lesson.html.j2） */
.lesson { display: flex; flex-direction: column; gap: 22px; }
.lesson-card { display: flex; flex-direction: column; gap: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; color: var(--ink); text-decoration: none; }
.lc-meta { display: flex; gap: 8px; font-size: 12px; color: var(--sub); }
.lc-desc { font-size: 14px; color: var(--sub); }
.course-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.lesson .steps { list-style: none; counter-reset: step; padding: 0; margin: 14px 0 0; display: flex; flex-direction: column; gap: 14px; }
.lesson .step { counter-increment: step; position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px 14px 58px; }
.lesson .step::before { content: counter(step); position: absolute; left: 14px; top: 13px; width: 30px; height: 30px; border-radius: 8px; background: var(--navy); color: #fff; font-weight: 700; display: grid; place-items: center; line-height: 1; }
.has-os [data-os="mac"] { display: none; }
html[data-os="mac"] .has-os [data-os="mac"] { display: revert; }
html[data-os="mac"] .has-os [data-os="windows"] { display: none; }

@media (max-width: 980px) {
  .tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .course-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tracks-in { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .hero-in { grid-template-columns: 1fr; padding-block: 44px 32px; }
  .course-band { grid-template-columns: 1fr; }
  .course-art { display: none; }
  .guide-layout { grid-template-columns: 1fr; gap: 0; }
  .guide-side { position: static; margin-bottom: 30px; }
  .toc ol { flex-direction: row; flex-wrap: wrap; border-left: 0; gap: 6px; }
  .toc a { border: 1px solid var(--line); border-radius: 999px; padding: 3px 12px; margin: 0; background: var(--surface); }
  .toc-n { display: none; }
}
@media (max-width: 600px) {
  .wrap { padding-top: 26px; }
  .tool-grid { grid-template-columns: 1fr; gap: 14px; }
  .tool-link { flex-direction: row; }
  .tool-link .thumb { width: 38%; aspect-ratio: auto; height: 100%; min-height: 120px; object-fit: cover; }
  .tool-body { padding: 12px 14px; }
  .tool-sum { display: none; }
  .tool-foot { padding-top: 8px; gap: 6px 8px; }
  .os-pill { padding: 0 7px; }
  .course-grid { grid-template-columns: 1fr; }
  .track { grid-template-columns: 116px minmax(0, 1fr); gap: 14px; padding: 12px 44px 12px 12px; }
  .track-art { height: 80px; }
  .track-art .thumb { width: 92px; border-radius: 7px; }
  .track-art .thumb:nth-child(1) { top: 24px; } .track-art .thumb:nth-child(2) { left: 12px; top: 12px; } .track-art .thumb:nth-child(3) { left: 24px; }
  .track-text b { font-size: 18px; }
  .header-right { width: 100%; justify-content: space-between; }
  .nav { gap: 2px 16px; font-size: 13px; }
  .gstep { grid-template-columns: 40px minmax(0, 1fr); gap: 12px; }
  .step-key { width: 38px; height: 38px; font-size: 15px; }
  .os-key { min-height: 64px; font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* 前提の教材（ページの先頭。docs/07「前提と OS の違い」） */
.requires { margin: 18px 0 4px; max-width: 760px; background: #fff7e0; color: var(--ink); border: 2px solid #e8b13a; border-radius: 12px; padding: 12px 16px; }
.requires-h { margin: 0 0 4px; font-weight: 700; font-size: 15px; display: flex; align-items: center; gap: 8px; }
.requires-ico { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--accent-ink); color: #fff; font-size: 14px; font-weight: 700; }
.requires ul { margin: 0; padding-left: 30px; }
.requires a { color: var(--accent-ink); font-weight: 700; }
.requires-why { display: block; font-size: 14px; color: #4a5266; line-height: 1.6; }

/* 使い方が複数あるツール（Claude Code など。2026-11-05） */
.variant-os { margin-bottom: 28px; }
.variant-os h2 { display: flex; align-items: center; gap: 12px; font-size: 20px; margin: 0 0 14px; }
.variant-choice { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.variant-card { display: flex; flex-direction: column; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px; color: var(--ink); text-decoration: none; }
a.variant-card:hover { border-color: var(--accent); color: var(--ink); }
.variant-card b { font-size: 18px; }
.variant-for { font-size: 14px; font-weight: 600; color: var(--ink); }
.variant-sum { font-size: 14px; color: var(--ink); line-height: 1.7; }
.variant-card small { color: var(--sub); margin-top: auto; }
.variant-card.is-soon { color: var(--sub); }
.variant-tabs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 10px 0 4px; }
.variant-tabs-l { font-size: 13px; color: #fff; margin-right: 2px; }
.variant-tab { display: inline-block; padding: 6px 14px 5px; border-radius: 999px; font-size: 14px; background: var(--navy-2); color: #fff; border: 1px solid var(--navy-line); text-decoration: none; }
a.variant-tab:hover { color: #fff; border-color: #fff; }
.variant-tab[aria-current] { background: var(--accent-ink); color: #fff; border-color: var(--accent); font-weight: 700; }
.variant-tab.is-soon { opacity: .75; }

/* このサイトについて（利用規約・プライバシーポリシー。2026-11-06） */
.about h2 { font-size: 22px; margin: 40px 0 12px; }
.about .defs dt { font-weight: 700; margin-top: 14px; }
.about .defs dd { margin: 4px 0 0; }
.about .defs a { word-break: break-all; }
.about ul { padding-left: 1.3em; }
.about li { margin-bottom: 8px; }

/* お問い合わせ（english-news-site と同じ。2026-11-06） */
.contact-form { display: flex; flex-direction: column; gap: 12px; max-width: 560px; }
.contact-form label { display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.contact-form select, .contact-form textarea { font: inherit; padding: 8px 10px; border: 1.5px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); }
.contact-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-form .btn { align-self: flex-start; padding: 10px 22px; border-radius: 999px; border: 0; background: var(--accent-ink); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.contact-form .btn:disabled { opacity: .5; cursor: default; }
.contact-msg { margin: 0; font-size: 14px; } .contact-msg.err { color: #b3402a; font-weight: 700; }
.contact-msg.ok { padding: 14px 16px; border-radius: 10px; background: var(--ok); color: #fff; font-size: 16px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.contact-msg.ok::before { content: "✓"; display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #fff; color: var(--ok); font-size: 16px; flex: none; }
.contact-target { margin: 0; font-size: 14px; } .contact-target a { word-break: break-all; }
.feedback-line { padding-top: 14px; padding-bottom: 0; font-size: 13px; }
.feedback-line a { color: var(--sub); }
