/* 研修動画アプリ（SAKURA NOTE）の見た目。2026-11-30 作り替え。
   フォントは外から読み込まず、端末のゴシックを使う。状態は色だけでなく、印（✓ ▶ ○ !）と文字でも見分けられる。 */
:root {
  --navy: #18225c; --pink: #e8457c; --pink-d: #c2185b; --pink-l: #fbe3eb; --bg: #fdf6f8; --sub: #4a5174;
  --white: #fff; --gray-l: #eceef3; --gray: #5d6382; --line: #d7d9e6;
  --shadow: 5px 5px 0 var(--navy);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--navy);
  font: 500 15px/1.65 "Hiragino Sans", "Hiragino Kaku Gothic ProN", "BIZ UDPGothic", "Yu Gothic UI", "Yu Gothic", "Meiryo", sans-serif;
}
a { color: var(--pink-d); font-weight: 700; }
b, strong, h1, h2, h3 { font-weight: 800; }

/* ---------- 一番上の帯とヘッダー */
.bands { height: 12px; background: linear-gradient(var(--navy) 0 8px, var(--pink) 8px 12px); }
header.top { background: var(--white); border-bottom: 2px solid var(--navy); padding: 10px 16px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
header.top .brand { display: flex; align-items: center; gap: 8px; color: var(--navy); text-decoration: none; font-weight: 900; font-size: 19px; letter-spacing: .06em; }
header.top .brand svg { width: 28px; height: 28px; flex: none; }
header.top .switch { display: flex; border: 2px solid var(--navy); border-radius: 999px; overflow: hidden; }
header.top .switch a { padding: 4px 14px; text-decoration: none; color: var(--navy); font-size: 14px; font-weight: 800; }
header.top .switch a.on { background: var(--navy); color: var(--white); }
header.top .who { margin-left: auto; color: var(--sub); font-size: 13px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.notice { background: var(--pink-l); color: var(--navy); border-bottom: 2px solid var(--navy); padding: 7px 16px; font-weight: 800; text-align: center; position: sticky; top: 0; z-index: 20; }

main { max-width: 1100px; margin: 0 auto; padding: 18px 16px 40px; }
h1 { font-size: 22px; margin: 4px 0 14px; }
h2 { font-size: 18px; margin: 22px 0 10px; }
.meta { color: var(--sub); font-size: 13px; }

/* ---------- カード：白地・紺 2px の枠・角丸 18px・右下に紺のずらした影 */
.card { background: var(--white); border: 2px solid var(--navy); border-radius: 18px; box-shadow: var(--shadow); padding: 16px; margin-bottom: 18px; }
.card.flat { box-shadow: none; }

/* ---------- 状態の札（色＋印＋文字） */
.badge { display: inline-flex; align-items: center; gap: 4px; border-radius: 999px; padding: 2px 10px; font-size: 12.5px; font-weight: 800; white-space: nowrap; border: 2px solid transparent; line-height: 1.5; }
.b-passed { background: var(--navy); color: var(--white); }
.b-passed::before { content: "✓"; }
.b-watched { background: var(--pink-l); color: var(--pink-d); border-color: var(--pink-l); }
.b-watched::before { content: "▶"; font-size: 10px; }
.b-unwatched { background: var(--gray-l); color: var(--gray); }
.b-unwatched::before { content: "○"; }
.b-over { background: var(--white); color: var(--pink-d); border-color: var(--pink-d); }
.b-over::before { content: "!"; }
.b-late { background: var(--white); color: var(--navy); border: 2px dashed var(--navy); }
.b-done { background: var(--pink-d); color: var(--white); font-size: 14px; padding: 3px 12px; }
.b-done::before { content: "★"; }
.b-pre { background: var(--gray-l); color: var(--gray); }
.b-now { background: var(--pink-d); color: var(--white); }
.b-now::before { content: "▶"; font-size: 10px; }

/* ---------- ボタン */
button, .btn { font: inherit; font-weight: 800; border: 2px solid var(--navy); background: var(--white); color: var(--navy); border-radius: 12px; padding: 8px 16px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
button.primary, .btn.primary { background: var(--pink-d); border-color: var(--navy); color: var(--white); box-shadow: 3px 3px 0 var(--navy); }
button.primary:active, .btn.primary:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--navy); }
.btn.big, button.big { font-size: 17px; padding: 12px 22px; border-radius: 14px; }
button:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
button.small { padding: 3px 10px; font-size: 13px; border-radius: 9px; }
button.danger { color: var(--pink-d); border-color: var(--pink-d); }
input[type=text], input[type=date], input[type=email], textarea, select { font: inherit; border: 2px solid var(--line); border-radius: 10px; padding: 7px 9px; width: 100%; background: #fff; color: var(--navy); }
input:focus, textarea:focus, select:focus, button:focus-visible, a:focus-visible { outline: 3px solid var(--pink); outline-offset: 2px; }
label.f { display: block; margin-bottom: 10px; }
label.f > span { display: block; font-size: 13px; color: var(--sub); margin-bottom: 2px; font-weight: 700; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.msg { padding: 10px 14px; border-radius: 12px; margin: 10px 0; font-weight: 700; border: 2px solid; }
.msg.ok { background: #eef0f8; color: var(--navy); border-color: var(--navy); }
.msg.ok::before { content: "✓ "; }
.msg.ng { background: var(--white); color: var(--pink-d); border-color: var(--pink-d); }
.msg.ng::before { content: "! "; }
.msg.info { background: var(--pink-l); color: var(--navy); border-color: var(--pink-l); }
.hidden { display: none !important; }

/* ---------- スタッフの一覧 */
.mine-top { display: grid; gap: 10px; }
.progress-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.progress-head .lab { font-weight: 800; font-size: 15px; }
.progress-head .num { font-size: 40px; font-weight: 900; line-height: 1; }
.progress-head .num small { font-size: 18px; font-weight: 800; color: var(--sub); }
.segbar { display: flex; gap: 4px; margin-top: 8px; }
.segbar i { flex: 1; height: 16px; border: 2px solid var(--navy); border-radius: 6px; background: var(--white); }
.segbar i.p { background: var(--navy); }
.segbar i.w { background: repeating-linear-gradient(45deg, var(--pink) 0 5px, var(--pink-l) 5px 10px); }
.vcard { display: block; color: inherit; text-decoration: none; }
.vcard.next { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 16px; align-items: center; }
.vcard.next .thumb { aspect-ratio: 16/9; border: 2px solid var(--navy); border-radius: 12px; overflow: hidden; background: var(--pink-l); display: flex; align-items: center; justify-content: center; font-weight: 800; color: var(--pink-d); }
.vcard.next .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vcard.next .kicker { font-size: 13px; font-weight: 800; color: var(--pink-d); letter-spacing: .08em; }
.vcard.next .theme { font-size: 24px; font-weight: 900; margin: 2px 0 8px; }
.vcard.next .btn { margin-top: 12px; }
.vrows { display: grid; gap: 10px; }
.vcard.line { display: flex; align-items: center; gap: 12px; background: var(--white); border: 2px solid var(--navy); border-radius: 14px; padding: 10px 14px; }
.vcard.line:hover { background: var(--pink-l); }
.vcard.line .ico { flex: none; width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--navy); display: flex; align-items: center; justify-content: center; font-weight: 900; }
.vcard.line .ico.p { background: var(--navy); color: var(--white); }
.vcard.line .ico.w { background: var(--pink-l); color: var(--pink-d); }
.vcard.line .ico.u { background: var(--white); color: var(--gray); }
.vcard.line .theme { font-weight: 800; font-size: 16px; }
.vcard.line .sub { color: var(--sub); font-size: 13px; }
.vcard.line .go { margin-left: auto; color: var(--pink-d); font-weight: 900; }
@media (max-width: 700px) { .vcard.next { grid-template-columns: 1fr; } .vcard.next .theme { font-size: 21px; } }

/* ---------- 視聴・テスト */
video { width: 100%; aspect-ratio: 16/9; background: #000; border-radius: 12px; display: block; border: 2px solid var(--navy); }
.q { border-top: 2px dashed var(--line); padding: 14px 0; }
.q:first-child { border-top: 0; }
.q .qt { font-weight: 800; margin-bottom: 6px; }
.q label.opt { display: flex; gap: 8px; align-items: flex-start; padding: 9px 12px; border: 2px solid var(--line); border-radius: 12px; margin: 6px 0; cursor: pointer; font-weight: 600; }
.q label.opt:has(input:checked) { border-color: var(--pink-d); background: var(--pink-l); }
.q label.opt input { margin-top: 6px; accent-color: var(--pink-d); }
.res { list-style: none; padding: 0; margin: 8px 0; }
.res li { padding: 7px 0; border-bottom: 2px dashed var(--line); }
.mark { font-weight: 900; display: inline-block; width: 2.2em; }
.mark.ok { color: var(--navy); } .mark.ng { color: var(--pink-d); }
.celebrate { text-align: center; padding: 26px 16px 22px; position: relative; overflow: hidden; background: radial-gradient(circle at 50% 0, var(--pink-l), var(--white) 70%); }
.celebrate .hero { font-size: 46px; font-weight: 900; color: var(--pink-d); line-height: 1.1; letter-spacing: .08em; }
.celebrate .seal { width: 84px; height: 84px; margin: 0 auto 8px; border-radius: 50%; background: var(--navy); color: var(--white); display: flex; align-items: center; justify-content: center; font-size: 46px; font-weight: 900; border: 4px solid var(--pink); }
.celebrate .petal { position: absolute; width: 14px; height: 14px; background: var(--pink); border-radius: 14px 0; opacity: .7; animation: fall 3.2s linear infinite; }
@keyframes fall { from { transform: translateY(-30px) rotate(0); } to { transform: translateY(260px) rotate(300deg); } }
@media (prefers-reduced-motion: reduce) { .celebrate .petal { animation: none; } }

/* ---------- 管理画面 */
.tabs { display: flex; gap: 6px; margin-bottom: 16px; overflow-x: auto; padding-bottom: 4px; }
.tabs button { border: 2px solid var(--navy); border-radius: 999px; background: var(--white); padding: 6px 14px; white-space: nowrap; }
.tabs button.on { background: var(--navy); color: var(--white); }
.sumcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin-bottom: 18px; }
.sumcards .card { margin: 0; }
.sumcards .ttl { font-weight: 800; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.sumcards .num { font-size: 34px; font-weight: 900; line-height: 1.1; margin-top: 6px; }
.sumcards .num small { font-size: 16px; color: var(--sub); }
.sumcards .big { font-size: 14px; font-weight: 800; white-space: nowrap; }
.bar { height: 14px; background: var(--white); border: 2px solid var(--navy); border-radius: 7px; overflow: hidden; margin: 6px 0; }
.bar > i { display: block; height: 100%; background: var(--navy); }
.tablewrap { overflow: auto; max-height: 75vh; border: 2px solid var(--navy); border-radius: 14px; background: var(--white); -webkit-overflow-scrolling: touch; }
table.prog { border-collapse: separate; border-spacing: 0; font-size: 13px; min-width: 100%; }
table.prog th, table.prog td { border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); padding: 4px 8px; text-align: left; vertical-align: middle; white-space: nowrap; }
table.prog thead th { background: var(--navy); color: var(--white); position: sticky; top: 0; z-index: 2; font-weight: 800; }
table.prog th:first-child, table.prog td:first-child { position: sticky; left: 0; text-align: left; z-index: 1; font-weight: 800; background: var(--white); border-right: 2px solid var(--navy); }
table.prog thead th:first-child { background: var(--navy); z-index: 3; }
table.prog tbody tr:nth-child(even) td { background: #faf8fb; }
table.prog tbody tr:hover td { background: var(--pink-l); }
table.prog td .sm { color: var(--sub); font-size: 12px; font-weight: 700; margin-left: 4px; }
table.prog td .badge { margin: 1px 0; padding: 0 8px; font-size: 12px; }
table.list { border-collapse: collapse; width: 100%; font-size: 14px; }
table.list th, table.list td { border-bottom: 1px solid var(--line); padding: 8px 6px; text-align: left; }
table.list thead th { background: var(--navy); color: var(--white); }
pre.ann { background: var(--pink-l); border-radius: 12px; padding: 12px; white-space: pre-wrap; font-family: inherit; }
.qedit { border: 2px solid var(--line); border-radius: 14px; padding: 12px; margin-bottom: 10px; background: #fff; }
.qedit .ch { display: flex; gap: 6px; align-items: center; margin: 4px 0; }
.qedit .ch input[type=text] { flex: 1; }

/* ---------- マイページ（障害物コース）：ドット絵のゲーム画面（2026-11-30 v2）
   絵は「ぼかさずに拡大縮小」する。札は角ばった枠。文字は読みやすさのため端末のゴシックのまま。 */
.course-box { position: relative; }
.course-wrap { overflow-x: auto; overflow-y: hidden; border: 4px solid var(--navy); border-radius: 0; box-shadow: 6px 6px 0 var(--navy); background: #9fd4f2; -webkit-overflow-scrolling: touch; }
.course { position: relative; isolation: isolate; height: 300px; image-rendering: pixelated; image-rendering: crisp-edges; }
.course img, .course .seg, .hud img { image-rendering: pixelated; }
.course svg { shape-rendering: crispEdges; display: block; }
.course .sky { position: absolute; top: 0; left: 0; height: 300px;
  background: linear-gradient(#7fc3ec 0 25%, #9fd4f2 25% 50%, #bfe3f6 50% 70%, #dff1fb 70%); }
.course .seg { position: absolute; top: 0; height: 300px; background-size: auto 300px; background-position: left bottom; background-repeat: no-repeat; }
.course .seg.fade { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 40px); mask-image: linear-gradient(90deg, transparent 0, #000 40px); }
.course .seg .place { position: absolute; left: 10px; bottom: 14px; z-index: 1; background: var(--white); color: var(--navy); border: 3px solid var(--navy); font-size: 12px; font-weight: 900; padding: 1px 8px; box-shadow: 3px 3px 0 var(--navy); }
.course .ground { position: absolute; left: 0; bottom: 0; height: 60px; background-repeat: repeat-x; background-size: 40px 60px; }
.course .works-road { position: absolute; bottom: 0; height: 60px; background: repeating-linear-gradient(90deg, #f5c542 0 20px, #18225c 20px 40px); opacity: .9; }
.course .hurdle { position: absolute; bottom: 60px; width: 48px; height: 56px; }
.course .bflag { position: absolute; bottom: 60px; width: 20px; height: 40px; }
.course .gate { position: absolute; bottom: 60px; width: 96px; height: 120px; }
.course .gate .lbl, .course .works .lbl { position: absolute; left: 50%; transform: translateX(-50%); white-space: nowrap; }
.course .gate .lbl { top: 6px; background: var(--white); color: var(--navy); border: 3px solid var(--navy); font-size: 12px; font-weight: 900; padding: 0 6px; }
.course .goal { position: absolute; bottom: 60px; width: 64px; height: 132px; }
.course .cone { position: absolute; bottom: 60px; width: 24px; height: 28px; }
.course .works { position: absolute; bottom: 60px; width: 150px; height: 96px; }
.course .works .lbl { top: 0; width: 150px; white-space: normal; background: #fff3c4; color: var(--navy); border: 3px solid var(--navy); box-shadow: 3px 3px 0 var(--navy); font-size: 12px; font-weight: 900; padding: 4px 6px; text-align: center; line-height: 1.35; }
.course .works svg { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); }
.px-box { clip-path: polygon(0 4px, 4px 4px, 4px 0, calc(100% - 4px) 0, calc(100% - 4px) 4px, 100% 4px, 100% calc(100% - 4px), calc(100% - 4px) calc(100% - 4px), calc(100% - 4px) 100%, 4px 100%, 4px calc(100% - 4px), 0 calc(100% - 4px)); }
.course .sign { position: absolute; top: 64px; width: 156px; transform: translateX(-50%); border: 3px solid var(--navy); padding: 5px 8px; text-align: center; font-size: 12.5px; font-weight: 900; line-height: 1.35; background: var(--white); color: var(--navy); box-shadow: inset 0 0 0 2px #fff, inset 0 0 0 4px var(--line); }
.course .sign .t { display: block; font-size: 14px; }
.course .sign.p { background: var(--navy); color: var(--white); box-shadow: inset 0 0 0 2px var(--navy), inset 0 0 0 4px #3a4590; }
.course .sign.n { background: var(--pink-d); color: var(--white); box-shadow: inset 0 0 0 2px var(--pink-d), inset 0 0 0 4px #e8457c; }
.course .stem { position: absolute; width: 4px; background: var(--navy); transform: translateX(-50%); }
.course .who { position: absolute; bottom: 60px; transform: translateX(-50%); text-align: center; }
.course .me img { height: 96px; display: block; margin: 0 auto; }
.course .me .runner { animation: bob .44s steps(2, jump-none) infinite; }
@keyframes bob { 0% { transform: translateY(0); } 100% { transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) { .course .me .runner { animation: none; } }
.course .tag, .course .cnt { display: inline-block; border: 3px solid var(--navy); font-size: 12px; font-weight: 900; padding: 0 8px; margin-bottom: 4px; white-space: nowrap; }
.course .tag { background: var(--pink-d); color: var(--white); box-shadow: 3px 3px 0 var(--navy); }
.course .cnt { position: absolute; bottom: 34px; z-index: 120; margin: 0; background: var(--white); color: var(--navy); }
.course .others img { display: block; height: 72px; margin: 0 auto; }
.course .others svg { width: 36px; height: 56px; margin: 0 auto; }
/* 上の端のゲームの表示（コースを左右に動かしても止まったまま） */
.hud { position: absolute; top: 4px; left: 4px; right: 4px; z-index: 5; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 8px; pointer-events: none; padding: 6px 8px; }
.hud .panel { background: rgba(24, 34, 92, .88); color: #fff; border: 3px solid #fff; box-shadow: 0 0 0 3px var(--navy); padding: 4px 8px; font-size: 11.5px; font-weight: 900; display: flex; align-items: center; gap: 6px; min-height: 34px; }
.hud .track { display: flex; align-items: center; gap: 3px; position: relative; }
.hud .track .dot { width: 12px; height: 12px; border: 2px solid #fff; border-radius: 50%; background: transparent; }
.hud .track .dot.p { background: #fff; }
.hud .track .dot.n { background: var(--pink); }
.hud .track .goalmark { width: 12px; height: 12px; background: conic-gradient(#fff 0 25%, #18225c 0 50%, #fff 0 75%, #18225c 0); border: 2px solid #fff; }
.hud .face { width: 24px; height: 24px; border: 2px solid #fff; background: var(--pink-l); overflow: hidden; flex: none; }
.hud .face img { width: 100%; height: auto; display: block; transform: scale(1.7); transform-origin: 50% 12%; }
.hud .stamps { display: flex; gap: 3px; }
.hud .stamp { width: 18px; height: 18px; display: flex; align-items: center; justify-content: center; font-size: 11px; border: 2px solid #fff; color: #fff; }
.hud .stamp.on { background: var(--pink-d); }
.hud .stamp.off { opacity: .45; }
@media (max-width: 600px) { .hud { padding: 4px; } .hud .panel { white-space: nowrap; } .hud .panel > .lbl { display: none; } .hud .panel { font-size: 10.5px; padding: 3px 6px; } .hud .track .dot, .hud .track .goalmark { width: 10px; height: 10px; } .hud .stamp { width: 15px; height: 15px; font-size: 9.5px; } }
.now-card .theme { font-size: 20px; font-weight: 900; }
.now-card dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 10px 0; }
.now-card dt { color: var(--sub); font-weight: 800; font-size: 13px; }
.now-card dd { margin: 0; font-weight: 700; }
.legend { display: flex; gap: 10px; flex-wrap: wrap; font-size: 12.5px; margin-top: 10px; }

/* ---------- キャラクター選び */
.charpick h3 { font-size: 15px; margin: 14px 0 8px; display: flex; align-items: center; gap: 8px; }
.charpick h3::after { content: ""; flex: 1; height: 2px; background: var(--line); }
.chargrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; }
.chargrid button { flex-direction: column; padding: 8px 6px; border-radius: 14px; background: var(--white); font-size: 12.5px; position: relative; min-height: 150px; }
.chargrid button img { height: 104px; width: 100%; object-fit: contain; }
.chargrid button[aria-pressed=true] { background: var(--pink-l); border-color: var(--pink-d); box-shadow: 3px 3px 0 var(--pink-d); }
.chargrid button[aria-pressed=true]::after { content: "✓ えらんだ"; position: absolute; top: 6px; right: 6px; background: var(--pink-d); color: #fff; border-radius: 999px; padding: 0 7px; font-size: 11px; }

@media (max-width: 600px) {
  body { font-size: 14px; }
  main { padding: 14px 12px 32px; }
  header.top { padding: 8px 12px; gap: 8px; }
  header.top .brand { font-size: 17px; }
  header.top .who { width: 100%; margin-left: 0; justify-content: space-between; }
  .notice { font-size: 13px; padding: 6px 12px; }
  .card { padding: 14px; border-radius: 16px; }
  .progress-head .num { font-size: 34px; }
  .sumcards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .sumcards .card { padding: 10px 12px; box-shadow: 3px 3px 0 var(--navy); border-radius: 14px; }
  .sumcards .num { font-size: 26px; }
  .sumcards .num small { font-size: 13px; }
  .sumcards .big, .sumcards .meta { font-size: 11.5px; white-space: normal; }
}
.brandbar { background: var(--white); border-bottom: 2px solid var(--navy); padding: 10px 16px; display: flex; align-items: center; gap: 8px; font-weight: 900; font-size: 19px; letter-spacing: .06em; }
.brandbar svg { width: 28px; height: 28px; }
/* ---------- 再テスト待ち（不合格の後、次の日の 9:00 まで） */
.b-lock { background: #fff3c4; color: var(--navy); border-color: var(--navy); }
.b-lock::before { content: "⏸"; font-size: 11px; }
.lockline { color: var(--navy); font-weight: 800; }
.lockmsg b { color: var(--pink-d); }
/* マイページ：ハードルに引っかかって転んだまま（今のドット絵を倒して作る） */
/* 転んだ姿：専用の絵（尻もち・頭の上に星）をそのまま出す。傾けない・弾ませない */
.course .who.fallen .sit { position: relative; }
.course .who.fallen .sit img { display: block; height: auto; }
/* 頭の上の星だけを、ゆっくり点滅させる（体は動かさない）。動きを減らす設定の端末では止める（Q33） */
.course .who.fallen .sit img.stars { position: absolute; left: 0; top: 0; animation: twinkle 2.4s ease-in-out infinite; }
@keyframes twinkle { 0%, 100% { opacity: 1; } 50% { opacity: .2; } }
@media (prefers-reduced-motion: reduce) { .course .who.fallen .sit img.stars { animation: none; } }
.course .me.fallen .sit.tilt img.stars { display: none; }
/* 「あなた」の札は、座った姿の左に置く（看板と重ならないように） */
.course .me.fallen .tag { position: absolute; right: 100%; bottom: 34px; margin: 0 6px 0 0; }
/* ほかの人と並んでいるときは、となりの人を隠さないよう、札を頭の上に置く */
.course .me.fallen.inline .tag { position: static; margin: 0 0 4px; }
/* 転んだ姿の絵が読めなかったときだけ：走る絵を倒して代わりにする */
.course .me.fallen .sit.tilt { width: 96px; height: 60px; position: relative; }
.course .me.fallen .sit.tilt img { position: absolute; left: 50%; bottom: 0; height: 96px; transform-origin: 50% 100%; transform: translate(-30%, -18px) rotate(80deg); }
/* 再テスト待ちの看板：起き上がる日時を1行に入れる */
.course .sign.wide { width: 212px; }
.course .sign .wake { display: block; margin-top: 3px; background: #fff3c4; color: var(--navy); padding: 1px 4px; font-size: 12px; white-space: nowrap; }
.course .hurdle.knocked { transform: rotate(-14deg); transform-origin: 20% 100%; }
/* ほかの人の灰色の人影：明るい背景でも見えるよう、紺の縁取り（ドット絵らしく、ぼかさない） */
.course .others svg { filter: drop-shadow(2px 0 0 #18225c) drop-shadow(-2px 0 0 #18225c) drop-shadow(0 2px 0 #18225c) drop-shadow(0 -2px 0 #18225c); }

/* 合格した後の正解と解説（不合格の画面には出さない） */
.res .expl { margin: 6px 0 2px 2.2em; padding: 8px 10px; background: #eef0f8; border-left: 4px solid var(--navy); border-radius: 6px; font-size: 13.5px; font-weight: 600; text-align: left; }
.res .expl b { color: var(--navy); }

/* ---------- 棚の画面（2026-11-30。本人判断 Q45）：角ばった枠と、ずらした影でドット絵の画面に合わせる */
.zone { border: 4px solid var(--navy); background: var(--white); box-shadow: 6px 6px 0 var(--navy); padding: 12px 14px 6px; margin: 0 6px 24px 0; }
.zone > h2 { margin: -12px -14px 12px; padding: 7px 14px; background: var(--pink-d); color: var(--white); font-size: 17px; display: flex; justify-content: space-between; gap: 10px; border-bottom: 4px solid var(--navy); }
.zone.done > h2 { background: var(--navy); }
.shelfrow { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 12px; margin-bottom: 16px; }
.shelfrow .gname { align-self: stretch; display: flex; align-items: center; justify-content: center; text-align: center; background: var(--pink-l); color: var(--navy); font-weight: 900; font-size: 15px; line-height: 1.35; padding: 8px 6px; overflow-wrap: anywhere; }
.zone.done .gname { background: #eef0f8; }
.lane { position: relative; min-width: 0; }
.lane .track { display: flex; gap: 14px; overflow-x: auto; overflow-y: hidden; padding: 4px 4px 10px; -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity; scroll-padding-left: 4px; }
.lane .board { height: 12px; background: repeating-linear-gradient(90deg, var(--pink) 0 24px, var(--pink-d) 24px 28px); border: 3px solid var(--navy); border-top-width: 4px; }
.zone.done .board { background: repeating-linear-gradient(90deg, #3a4590 0 24px, var(--navy) 24px 28px); }
.tile { flex: 0 0 200px; scroll-snap-align: start; color: var(--navy); text-decoration: none; display: flex; flex-direction: column; gap: 4px; }
.tile .pic { position: relative; display: block; aspect-ratio: 16/9; border: 3px solid var(--navy); background: var(--pink-l); overflow: hidden; }
.tile .pic > img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tile .nopic { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 6px; text-align: center; font-size: 13px; color: var(--pink-d); }
.tile.k .pic { border-color: var(--pink-d); box-shadow: 0 0 0 3px #fff3c4; }
.tile .fallen { position: absolute; right: 4px; bottom: 2px; background: rgba(255, 255, 255, .85); border: 2px solid var(--navy); padding: 2px; line-height: 0; }
.tile .fallen img { height: 48px; image-rendering: pixelated; }
.tile:hover .pic { border-color: var(--pink); }
.tile .name { font-weight: 800; font-size: 14px; line-height: 1.35; overflow-wrap: anywhere; }
.tile .st { font-size: 12.5px; display: flex; flex-wrap: wrap; gap: 2px 6px; align-items: center; }
.tile .st .sm { color: var(--sub); font-weight: 700; }
.tile .st .wake { background: #fff3c4; color: var(--navy); font-weight: 800; padding: 0 4px; font-size: 12px; }
.push { position: absolute; top: 40px; z-index: 2; padding: 10px 8px; border-radius: 0; border-width: 3px; background: var(--white); box-shadow: 3px 3px 0 var(--navy); line-height: 1; }
.push[hidden] { display: none; }
.push.l { left: 0; } .push.r { right: 0; }
.allpass { font-size: 22px; font-weight: 900; color: var(--pink-d); text-align: center; margin: 14px 0 20px; }
.zone .none { margin: 4px 0 14px; }
@media (max-width: 600px) {
  .zone { padding: 10px 8px 2px; }
  .zone > h2 { margin: -10px -8px 10px; padding: 6px 10px; font-size: 15px; }
  .shelfrow { grid-template-columns: 76px minmax(0, 1fr); gap: 8px; }
  .shelfrow .gname { font-size: 11.5px; padding: 6px 2px; }
  .tile { flex-basis: 158px; }
  header.top .switch a { padding: 4px 10px; font-size: 13px; }
}
/* 管理画面：ジャンルの名前の欄は、スマホでも読める幅にする（表は横に送れる） */
table.glist .gname { min-width: 140px; }
/* 問題の入れ替えで取り消されたテストの知らせ（Q50） */
.resetbar { background: #fff6d6; color: var(--navy); border-bottom: 2px solid var(--navy); padding: 9px 16px; text-align: center; }
.resetbar a { color: var(--navy); font-weight: 800; text-decoration: underline; }
/* 自動で結び付いた人の印（Q53） */
.b-auto { background: #fff6d6; color: var(--navy); border: 2px solid var(--navy); }
.speedbar{margin-top:8px;align-items:center}
.speedbar button[aria-pressed="true"]{background:#18225c;color:#fff;border-color:#18225c}
