/* オープニングのスタイルが style.css にあった頃、その .cap の指定がこのページにも当たっていた（intro.css へ移したあとも見た目を変えないよう、その分を残す） */
.cap { --blur: 6px; font-size: clamp(1.1rem, 2.4vw, 1.4rem); line-height: 1.75; }
.cap + .cap { margin-top: .45em; }
.cap.em { font-size: clamp(1.45rem, 4.6vw, 2.1rem); line-height: 1.5; }
.cap.big { font-size: clamp(1.55rem, 5.4vw, 2.5rem); line-height: 1.45; }
.cap.sub { font-family: var(--font-body); font-weight: 400; font-size: clamp(.95rem, 2vw, 1.1rem); line-height: 1.85; color: var(--ink-2); margin-top: .9em; letter-spacing: .05em; }
.de-stage { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(40px, 6vw, 56px); align-items: start; }
@media (min-width: 960px) { .de-stage { grid-template-columns: minmax(0, 1fr) 300px; } }

/* フリマアプリの画面（色はサイトの配色に合わせ、暗い表示にも対応する） */
.de-app { --fc-photo: #e08a2e; --fc-doc: #4a7fd6; --fc-sheet: #2f9e66; --fc-memo: #d0473d; --fc-msg: #8a63d2; --fc-contact: #2f97ad; --fc-app: #5f6b7a; --fc-sim: #8d94a0;
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 30px 70px -50px rgba(0, 0, 0, .5); overflow: hidden; overflow: clip; }
.de-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 57px; padding: 6px 18px; border-bottom: 1px solid var(--line); }
.de-brand { flex: none; white-space: nowrap; display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-head); font-weight: 700; font-size: .92rem; letter-spacing: .08em; }
.de-brand i { width: 24px; height: 24px; border-radius: 8px; background: #1f8a78; display: grid; place-items: center; flex: none; }
.de-brand i::after { content: ""; width: 10px; height: 10px; border-radius: 50%; border: 2.5px solid #fff; border-right-color: transparent; }
.de-where { font-size: .78rem; color: var(--ink-3); text-align: right; line-height: 1.5; min-width: 0; overflow-wrap: anywhere; }
.de-where.sold { color: var(--ok); font-weight: 700; }
.de-view { display: none; padding: 20px 18px 24px; }
.de-view.on { display: block; animation: deIn .35s ease both; }
@keyframes deIn { from { opacity: 0; transform: translateY(6px); } }
.de-h { font-size: 1.08rem; line-height: 1.6; margin: 0 0 14px; letter-spacing: .04em; }
.de-h:focus { outline: none; }

/* 機器を選ぶ */
.de-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.de-tile { appearance: none; position: relative; font: inherit; color: var(--ink); text-align: left; background: var(--bg); border: 1px solid var(--line); border-radius: 16px; padding: 14px 14px 12px; display: flex; flex-direction: column; gap: 2px; cursor: pointer; min-height: 136px; touch-action: manipulation; transition: border-color .2s, transform .2s, box-shadow .2s; }
.de-tile svg { width: 40px; height: 40px; color: var(--ink-2); margin-bottom: 8px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.de-tile b { font-family: var(--font-head); font-size: .98rem; line-height: 1.45; letter-spacing: .04em; }
.de-tile span { font-size: .78rem; color: var(--ink-3); line-height: 1.55; }
.de-tile .pr { margin-top: auto; padding-top: 8px; font-family: var(--mono); color: var(--ink-2); font-size: .78rem; }
.de-tile::after { content: ""; position: absolute; right: 16px; top: 22px; width: 9px; height: 9px; border-top: 2px solid var(--ink-3); border-right: 2px solid var(--ink-3); transform: rotate(45deg); transition: transform .2s, border-color .2s; }
@media (hover: hover) { .de-tile:hover { border-color: var(--ink-3); transform: translateY(-2px); box-shadow: 0 14px 30px -22px rgba(0, 0, 0, .45); } .de-tile:hover::after { border-color: var(--accent); transform: translateX(3px) rotate(45deg); } }
.de-tile:active { transform: scale(.98); border-color: var(--ink-3); }
.de-tile .done { position: absolute; right: 12px; bottom: 12px; display: flex; gap: 3px; }
.de-tile .done i { width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.de-tile .done i.r { background: var(--danger); } .de-tile .done i.a { background: var(--warn); } .de-tile .done i.g { background: var(--ok); } .de-tile .done i.n { background: var(--ink-3); }

/* 機器の中身 */
.de-dh { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.de-di { width: 44px; height: 44px; border-radius: 12px; background: var(--bg-2); display: grid; place-items: center; flex: none; color: var(--ink-2); transition: transform .3s; }
.de-di svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.de-di.crack { animation: crack .7s cubic-bezier(.3, 1.6, .5, 1) both; color: var(--danger); }
@keyframes crack { 20% { transform: rotate(-8deg) scale(1.08); } 45% { transform: rotate(7deg); } 70% { transform: rotate(-3deg) scale(.96); } }
.de-dn { flex: 1; min-width: 0; line-height: 1.5; }
.de-dn b { display: block; font-family: var(--font-head); font-size: 1rem; letter-spacing: .04em; }
.de-dn span { display: block; font-size: .78rem; color: var(--ink-3); }
.de-dn .pr { font-family: var(--mono); color: var(--ink-2); }
.de-back { appearance: none; border: 0; background: transparent; font: inherit; font-size: .8rem; color: var(--ink-2); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: .3em; cursor: pointer; padding: 0 2px; min-height: 44px; flex: none; }
@media (hover: hover) { .de-back:hover { color: var(--accent); } }
.de-box { background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px 6px; }
.de-cap { display: flex; align-items: center; gap: 10px; font-size: .78rem; color: var(--ink-3); line-height: 1.6; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.de-cap .meter { flex: 1; min-width: 40px; height: 6px; background: var(--bg-2); }
.de-cap .meter > span { background: var(--ink-3); }
.de-cap b { font-family: var(--mono); font-weight: 400; color: var(--ink-2); white-space: nowrap; }
.de-files { list-style: none; margin: 0; padding: 0; }
.de-files li { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: center; gap: 10px; margin: 0; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: .86rem; line-height: 1.5; transition: transform .45s cubic-bezier(.6, 0, .4, 1), opacity .35s ease; }
.de-files li:last-child { border-bottom: 0; }
.de-files li.out { border-top: 1px dashed var(--line); }
.de-files li .n { min-width: 0; overflow-wrap: anywhere; }
.de-files li .m { font-family: var(--mono); font-size: .75rem; color: var(--ink-3); white-space: nowrap; }
.de-files li.fly { transform: translateX(60%); opacity: 0; }
.de-files li.fade { opacity: 0; }
.de-files li.enc .n { font-family: var(--mono); letter-spacing: .1em; color: var(--ink-3); }
.de-files li.hide { display: none; }
.de-files li.moved .n { color: var(--warn); }
.de-files .empty { display: block; color: var(--ink-3); font-size: .84rem; padding: 14px 0 12px; border: 0; }
.ic { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--fc, #888); }
/* ファイルの種類ごとの色（CSP で style 属性を使わないため、種類はクラスで受け取る） */
.ic.t-photo { --fc: var(--fc-photo); } .ic.t-doc { --fc: var(--fc-doc); } .ic.t-sheet { --fc: var(--fc-sheet); } .ic.t-memo { --fc: var(--fc-memo); }
.ic.t-msg { --fc: var(--fc-msg); } .ic.t-contact { --fc: var(--fc-contact); } .ic.t-app { --fc: var(--fc-app); } .ic.t-sim { --fc: var(--fc-sim); }
.ic svg { width: 16px; height: 16px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* 消し方 */
.de-choose { margin-top: 22px; }
.de-opts { display: grid; gap: 8px; }
.de-opt { appearance: none; font: inherit; color: var(--ink); text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 11px 14px; min-height: 56px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 12px; cursor: pointer; touch-action: manipulation; transition: border-color .2s, box-shadow .2s, transform .15s; }
.de-opt b { font-size: .92rem; line-height: 1.55; word-break: auto-phrase; }
.de-opt small { grid-column: 1; font-size: .78rem; line-height: 1.55; color: var(--ink-3); }
.de-opt em { grid-column: 2; grid-row: 1 / span 2; font-style: normal; font-family: var(--mono); font-size: .75rem; color: var(--ink-3); white-space: nowrap; border: 1px solid var(--line); border-radius: 999px; padding: 1px 9px; }
.de-opt .mk { display: inline-block; width: 1.4em; font-family: var(--mono); font-weight: 400; color: var(--ink-3); }
.de-opt .mk.r { color: var(--danger); } .de-opt .mk.a { color: var(--warn); } .de-opt .mk.g { color: var(--ok); }
@media (hover: hover) { .de-opt:hover { border-color: var(--ink); box-shadow: -4px 0 0 var(--accent); } }
.de-opt:active { transform: scale(.99); border-color: var(--ink); }

/* 作業 */
.de-work { margin-top: 18px; }
.de-work:focus { outline: none; }
.de-wk-h { display: flex; justify-content: space-between; gap: 12px; font-size: .84rem; color: var(--ink-2); line-height: 1.6; margin-bottom: 8px; }
.de-wk-h b { font-family: var(--mono); font-weight: 400; white-space: nowrap; }
.de-work .meter { height: 8px; }
.de-work .meter > span { transition: none; background: var(--ink-2); }
.de-steps { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 4px; font-size: .86rem; color: var(--ink-2); }
.de-steps li { margin: 0; display: flex; gap: 8px; align-items: baseline; animation: deIn .3s ease both; }
.de-steps li::before { content: "✓"; content: "✓" / ""; color: var(--ok); font-weight: 700; }
.de-res-l { margin: 14px 0 0; font-weight: 700; line-height: 1.8; }
.de-res-l:focus { outline: none; }
.de-res-l:empty { display: none; }
.de-wk-btns { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; margin-top: 16px; }
.de-wk-btns .btn { min-width: 10em; }
.de-wk-btns .textlink { font-size: .86rem; min-height: 44px; }
.de-key { display: inline-flex; vertical-align: -4px; margin-right: 6px; }
.de-key svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.de-key.br svg { animation: keyBr .6s ease both; color: var(--danger); }
@keyframes keyBr { 40% { transform: rotate(-20deg) scale(1.15); } 100% { transform: rotate(14deg) scale(.9); opacity: .45; } }

/* 買い手の画面（どちらのテーマでも暗い画面のため、色は固定） */
.bw { background: #15171c; color: #e6e7ea; border-radius: 16px; overflow: hidden; box-shadow: 0 0 0 1px rgba(128, 128, 128, .25); font-family: var(--font-body); }
.bw-bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: #23262d; font-size: .75rem; color: #b9bcc4; }
.bw-bar i { width: 9px; height: 9px; border-radius: 50%; background: #474c56; }
.bw-bar span { margin-left: 8px; white-space: nowrap; }
.bw-hit { margin-left: auto; font-weight: 700; color: #ffb3a8; white-space: nowrap; }
.bw-hit:empty { display: none; }
.bw-hit.zero { color: #9fe0c4; }
.bw-hit.bump { animation: hitB .45s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes hitB { 40% { transform: scale(1.25); } }
.bw-in { padding: 14px 14px 16px; }
.bw-cap { margin: 0 0 10px; font-size: .86rem; line-height: 1.75; color: #e6e7ea; }
.bw-cap:focus { outline: none; }
.bw-pg { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-family: var(--mono); font-size: .75rem; color: #b9bcc4; }
.bw-pt { flex: 1; height: 6px; border-radius: 999px; background: #2a2e36; overflow: hidden; }
.bw-pt > span { display: block; height: 100%; width: 0; background: #6fb6ff; }
.bw-lbl { display: flex; justify-content: space-between; gap: 10px; font-size: .75rem; color: #9ea3ad; margin: 0 0 6px; line-height: 1.5; }
.bw-map { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 3px; }
.bw-sc { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 3px; }
.c { height: 22px; border-radius: 4px; background: #262a31; display: grid; place-items: center; font-family: var(--mono); font-size: 12px; line-height: 1; color: transparent; transition: background-color .25s, transform .25s; }
.c.q { background: #262a31; }
.c.e { background: #1b1d22; box-shadow: inset 0 0 0 1px #2c3038; }
.c.z { background: #1d2026; color: #6f7682; box-shadow: inset 0 0 0 1px #2c3038; }
.c.x { background: repeating-linear-gradient(135deg, #3b404b 0 3px, #262a31 3px 6px); }
.c.d { background: var(--fc); box-shadow: inset 0 -6px 0 rgba(0, 0, 0, .18); }
.c.pop { animation: cPop .4s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes cPop { from { transform: scale(.4); } }
.bw-map.pulse { animation: pulse 1s ease; }
@keyframes pulse { 40% { filter: brightness(1.6); } }
.bw-sp { margin-top: 12px; }
.bw-sp.dim .bw-sc { opacity: .55; }
.bw-found { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.bw-found:empty { display: none; }
.bw-found li { margin: 0; display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 4px 10px; align-items: start; background: #1d2026; border-radius: 10px; padding: 9px 10px; animation: fIn .45s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes fIn { from { opacity: 0; transform: translateY(8px) scale(.98); } }
.bw-found .ic { width: 28px; height: 28px; }
.bw-found .t { min-width: 0; font-size: .84rem; line-height: 1.55; }
.bw-found .t b { display: block; font-weight: 700; color: #f3f4f6; overflow-wrap: anywhere; }
.bw-found .t small { display: block; font-size: .75rem; color: #b9bcc4; overflow-wrap: anywhere; }
.bw-found .t .ago { white-space: nowrap; display: inline-block; margin-top: 3px; font-size: .75rem; color: #ffb59f; border: 1px solid #6b3a33; border-radius: 999px; padding: 0 8px; }
.bw-found .bd { font-style: normal; font-size: .75rem; font-weight: 700; line-height: 1.5; white-space: nowrap; border-radius: 999px; padding: 1px 9px; color: #ffb3a8; border: 1px solid #8b3d33; background: #2d1a18; }
.bw-found .bd.fr { color: #f5c97a; border-color: #7a5a22; background: #2a2215; }
.thumbs { display: flex; gap: 4px; margin-top: 5px; }
.thumbs i { width: 34px; height: 24px; border-radius: 4px; background: radial-gradient(circle at 70% 30%, #ffe8a8 0 12%, transparent 13%), linear-gradient(180deg, #8ec5f0 0 55%, #3b8a6a 56% 100%); }
.thumbs i:nth-child(2) { background: radial-gradient(circle at 30% 35%, #ffd9b3 0 16%, transparent 17%), linear-gradient(180deg, #f2b38a 0 60%, #c66b4b 61% 100%); }
.thumbs i:nth-child(3) { background: linear-gradient(180deg, #a7d3f5 0 48%, #e7d7b0 49% 70%, #5aa0c9 71% 100%); }
.thumbs.frag i { clip-path: polygon(0 0, 100% 0, 100% 38%, 0 62%); opacity: .85; }
.bw-sum { margin: 12px 0 0; font-size: .84rem; line-height: 1.75; color: #d6d8de; }
.bw-sum:empty { display: none; }
.bw-sum b { font-family: var(--mono); font-weight: 400; color: #fff; }
.bw-deep { margin-top: 14px; padding-top: 14px; border-top: 1px solid #2c3038; }
.bw-deep .bw-cap { display: flex; gap: 10px; align-items: flex-start; }
.chip { flex: none; width: 34px; height: 34px; color: #f5c97a; }
.chip svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.5; }
.bw-deep .chip { animation: chipIn .6s cubic-bezier(.3, 1.6, .5, 1) both; }
@keyframes chipIn { from { transform: scale(.4) rotate(-20deg); opacity: 0; } }

/* 結果 */
.de-res { padding: 22px 18px 26px; border-top: 1px solid var(--line); }
.de-res:empty { display: none; }
.de-res .lb { display: block; font-family: var(--mono); font-size: .75rem; letter-spacing: .18em; color: var(--ink-3); margin-bottom: 6px; }
.de-res .big { font-family: var(--font-head); font-weight: 700; font-size: clamp(1.25rem, 3.4vw, 1.5rem); line-height: 1.55; margin: 0 0 12px; word-break: auto-phrase; text-wrap: balance; letter-spacing: .04em; }
.de-res .big:focus { outline: none; }
.de-res.r .big { color: var(--danger); } .de-res.a .big { color: var(--warn); } .de-res.g .big { color: var(--ok); }
.de-res p { color: var(--ink-2); font-size: .92rem; line-height: 1.9; margin: 0 0 1em; }
.de-res .rule { margin: 14px 0 0; padding: 12px 16px; border-left: 4px solid var(--accent); background: var(--accent-soft); color: var(--ink); font-weight: 700; line-height: 1.8; word-break: auto-phrase; text-wrap: pretty; }
.de-res.g .rule { border-left-color: var(--ok); background: var(--ok-soft); }
.de-stats { display: flex; flex-wrap: wrap; gap: 4px 24px; margin: 16px 0 0; padding: 10px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: .84rem; color: var(--ink-2); line-height: 1.7; }
.de-stats b { font-family: var(--mono); font-weight: 400; font-size: 1.2rem; color: var(--ink); margin: 0 2px 0 8px; }
.de-res .btns { margin-top: 20px; gap: 10px; }
.de-res { position: relative; }
.de-stamp { float: right; margin: 0 0 8px 12px; font-family: var(--font-head); font-weight: 700; font-size: 1rem; letter-spacing: .08em; padding: 4px 12px; border: 3px solid currentColor; border-radius: 10px; transform: rotate(-8deg); animation: stampIn .5s cubic-bezier(.3, 1.6, .5, 1) .15s both; }
.de-stamp.r { color: var(--danger); } .de-stamp.a { color: var(--warn); } .de-stamp.g { color: var(--ok); }
@keyframes stampIn { from { transform: scale(2.2) rotate(-8deg); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .de-stamp { animation: none; } }

/* 成績表 */
.de-side { display: flex; flex-direction: column; gap: 14px; }
.de-side h2 { font-size: clamp(1.15rem, 2.2vw, 1.3rem); }
.mx { display: grid; gap: 0; }
.mx-r { padding: 12px 0; border-top: 1px solid var(--line); }
.mx-r:last-child { border-bottom: 1px solid var(--line); }
.mx-n { display: block; font-size: .84rem; font-weight: 700; margin-bottom: 6px; line-height: 1.5; }
.mx-cs { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.mx-cs li { margin: 0; display: inline-flex; border-radius: 999px; border: 1.5px dashed var(--line); color: var(--ink-3); transition: background .3s, border-color .3s; }
.mx-cs button { appearance: none; border: 0; background: transparent; color: inherit; font: inherit; font-size: .75rem; line-height: 1.5; display: inline-flex; align-items: center; gap: 4px; padding: 4px 11px 4px 8px; min-height: 34px; border-radius: 999px; cursor: pointer; touch-action: manipulation; }
@media (pointer: coarse) { .mx-cs button { min-height: 40px; } }
@media (hover: hover) { .mx-cs li:hover { border-color: var(--ink-3); color: var(--ink); } }
.mx-cs button:active { transform: scale(.97); }
.de-opt.hint { animation: hint 1.6s ease both; }
@keyframes hint { 0%, 55% { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); } }
.mx-cs li .s { display: inline-block; width: 1.1em; text-align: center; font-family: var(--mono); }
.mx-cs li.r { border-style: solid; border-color: var(--danger); background: var(--danger-soft); color: var(--ink); }
.mx-cs li.a { border-style: solid; border-color: var(--warn); background: var(--warn-soft); color: var(--ink); }
.mx-cs li.g { border-style: solid; border-color: var(--ok); background: var(--ok-soft); color: var(--ink); }
.mx-cs li.n { border-style: solid; border-color: var(--ink-3); background: var(--bg-2); color: var(--ink); }
.mx-cs li.r .s { color: var(--danger); } .mx-cs li.a .s { color: var(--warn); } .mx-cs li.g .s { color: var(--ok); }
.mx-cs li.now { animation: ePop .5s cubic-bezier(.3, 1.6, .5, 1) both; }
@keyframes ePop { from { transform: scale(.4); } }
.mx-lg { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .75rem; color: var(--ink-3); margin: 0; line-height: 1.7; }
.mx-lg span b { font-family: var(--mono); font-weight: 400; margin-right: 4px; }
.mx-lg .r { color: var(--danger); } .mx-lg .a { color: var(--warn); } .mx-lg .g { color: var(--ok); }

@media (prefers-reduced-motion: reduce) {
  .de-view.on, .de-di.crack, .de-key.br svg, .c.pop, .bw-map.pulse, .bw-found li, .bw-deep .chip, .mx-cs li.now, .bw-hit.bump, .de-opt.hint, .de-steps li, .ix-row i { animation: none; }
  .de-files li, .c { transition: none; }
}

/* 指で触れる端末と、実機のスマートフォン */
@media (pointer: coarse) { .de-opt { min-height: 60px; } }
@media (max-width: 600px) {
  .de-stage > .de-app { margin-inline: -8px; border-radius: 18px; }
  .de-top { padding: 4px 14px; }
  .de-view { padding: 16px 14px 20px; }
  .de-res { padding: 20px 14px 24px; }
  .bw-in { padding: 12px 12px 14px; }
  .c { height: 20px; }
  .de-tile { min-height: 128px; padding: 12px 12px 10px; }
  .de-tile svg { width: 34px; height: 34px; }
}
@media (max-width: 359px) {
  .de-tiles { gap: 8px; }
  .de-tile b { font-size: .92rem; }
  .de-opt em { display: none; }
  .bw-bar i { display: none; }
  .de-brand { letter-spacing: .02em; gap: 7px; }
  .de-where { white-space: nowrap; }
  .bw-bar span { margin-left: 0; }
}

/* 学ぶ：目次と中身の図 */
.ix { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
@media (min-width: 820px) { .ix { grid-template-columns: repeat(3, 1fr); } }
.ix > div { background: var(--bg-2); padding: clamp(22px, 3vw, 30px); }
.ix h3 { font-size: 1.02rem; margin: 18px 0 8px; }
.ix p { color: var(--ink-2); font-size: .92rem; margin: 0; }
.ix-fig { display: grid; gap: 6px; font-size: .75rem; color: var(--ink-3); line-height: 1.5; }
.ix-row { display: grid; grid-template-columns: 3em 1fr; align-items: center; gap: 8px; }
.ix-row > span { white-space: nowrap; }
.ix-cells { display: flex; gap: 3px; flex-wrap: wrap; }
.ix-cells i { width: 18px; height: 14px; border-radius: 3px; background: var(--ink-3); opacity: .8; }
.ix-cells i.p { background: #e08a2e; opacity: 1; } .ix-cells i.d { background: #4a7fd6; opacity: 1; } .ix-cells i.s { background: #2f9e66; opacity: 1; }
.ix-cells i.z { background: transparent; box-shadow: inset 0 0 0 1px var(--ink-3); opacity: .6; }
.ix-tags { display: flex; gap: 4px; flex-wrap: wrap; }
.ix-tags b { font-weight: 400; font-size: .75rem; border: 1px solid var(--line); background: var(--surface); border-radius: 4px; padding: 0 6px; color: var(--ink-2); }
.ix-tags b.x { text-decoration: line-through; color: var(--ink-3); background: transparent; }
.ix-tags .none { color: var(--ink-3); }
.flash { margin-top: clamp(40px, 6vw, 64px); max-width: var(--text); }
.flash h3 { margin-bottom: 12px; }
.flash p { color: var(--ink-2); font-size: .95rem; }

/* 学ぶ：機器ごとの消し方 */
.kinds { display: grid; gap: 16px; }
@media (min-width: 820px) { .kinds { grid-template-columns: 1fr 1fr; } }
.kind { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: clamp(22px, 3vw, 28px); }
.kind .k { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.kind .k svg { width: 34px; height: 34px; flex: none; fill: none; stroke: var(--ink-2); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.kind h3 { font-size: 1.06rem; }
.kind .ok { margin: 0 0 12px; padding: 10px 14px; border-radius: 10px; background: var(--ok-soft); color: var(--ink); font-weight: 700; font-size: .92rem; line-height: 1.75; }
.kind ul { margin: 0; padding-left: 1.2em; color: var(--ink-2); font-size: .9rem; line-height: 1.85; }
.kind li + li { margin-top: .45em; }
.kind .path { font-size: .86rem; }
.kinds + details.more { margin-top: clamp(36px, 5vw, 56px); }

/* 学ぶ：チェックリスト */
.ck { list-style: none; margin: 0; padding: 0; max-width: var(--text); border-top: 1px solid var(--line); }
.ck li { margin: 0; border-bottom: 1px solid var(--line); }
.ck button { appearance: none; width: 100%; display: grid; grid-template-columns: 28px 1fr; gap: 14px; align-items: start; text-align: left; font: inherit; color: var(--ink); background: transparent; border: 0; padding: 16px 4px; cursor: pointer; min-height: 56px; touch-action: manipulation; }
.ck .bx { width: 24px; height: 24px; margin-top: 3px; border-radius: 7px; border: 1.5px solid var(--ink-3); display: grid; place-items: center; transition: background .2s, border-color .2s; }
.ck .bx svg { width: 15px; height: 15px; fill: none; stroke: var(--accent-ink); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 20; stroke-dashoffset: 20; transition: stroke-dashoffset .3s ease .05s; }
.ck button[aria-pressed="true"] .bx { background: var(--ok); border-color: var(--ok); }
.ck button[aria-pressed="true"] .bx svg { stroke-dashoffset: 0; }
.ck b { display: block; font-weight: 700; line-height: 1.7; }
.ck small { display: block; color: var(--ink-2); font-size: .86rem; line-height: 1.8; margin-top: 2px; }
@media (hover: hover) { .ck button:hover .bx { border-color: var(--ink); } }
.ck-n { display: flex; align-items: center; gap: 16px; margin: 0 0 20px; max-width: var(--text); font-size: .88rem; color: var(--ink-2); }
.ck-n .meter { flex: 1; max-width: 220px; background: var(--line); }
.ck-n .meter > span { background: var(--ok); }
.ck-n b { font-family: var(--mono); font-weight: 400; }
.ck-done { margin: 20px 0 0; font-weight: 700; color: var(--ok); max-width: var(--text); min-height: 1.8em; }
@media (prefers-reduced-motion: reduce) { .ck .bx svg, .ck .bx { transition: none; } }
/* 段階表示の「次へ」は、二列の並びの下に横いっぱいで置く */
.de-stage > .steps-nav { grid-column: 1 / -1; margin-top: 0; }
