/* packages/web/global.css */
:root {
  --bg: #0a1220;
  --bg-soft: #13213a;
  --panel: #1c3053;
  --panel-2: #26406a;
  --line: #3c5680;
  --line-soft: #2b4066;
  --text: #f2f7ff;
  --text-sub: #b6c8e4;
  --text-faint: #94a9c9;
  --brand: #35e0c8;
  --brand-strong: #14b8a6;
  --brand-soft: #35e0c824;
  --brand-text: #062b26;
  --player-a: #55a8ff;
  --player-a-deep: #2f7fd6;
  --player-a-soft: #55a8ff29;
  --player-b: #ffa245;
  --player-b-deep: #d97b1f;
  --player-b-soft: #ffa24529;
  --ok: #57d86e;
  --ok-soft: #57d86e26;
  --warn: #ffd166;
  --warn-soft: #ffd16626;
  --danger: #ff6b6b;
  --danger-soft: #ff6b6b26;
  --cell-empty: #14213a;
  --cell-empty-2: #172642;
  --cell-brick: #b07a4a;
  --cell-brick-hi: #c98f5c;
  --cell-brick-weak: #7d5634;
  --cell-steel: #66788f;
  --cell-steel-hi: #8b9cb3;
  --cell-water: #1d4f8a;
  --cell-water-hi: #2f6cb3;
  --grid-line: #7896c812;
  --shrink-danger: #ff6b6b4d;
  --shrink-wall: #4b3a54;
  --missile: #ffe066;
  --missile-trail: #ffe06659;
  --explosion: #ff9f43;
  --barrier-arc: #35e0c88c;
  --supply: #ffd166;
  --path-guide: #57d86ecc;
  --lead-guide: #ff6b9d;
  --chart-axis: #4a5f80;
  --chart-grid: #7896c81f;
  --chart-hit: #57d86e;
  --chart-miss: #ff6b6b;
  --heat-low: #ff6b6b1a;
  --heat-high: #ff6b6bd9;
  --radius: 8px;
  --radius-sm: 5px;
  --shadow-base: #060c17;
  --shadow-brand: #0c4d44;
  --shadow-warn: #5c450a;
  --shadow: 0 6px 0 var(--shadow-base);
  --shadow-solid: 0 4px 0 var(--shadow-base);
  --shadow-solid-sm: 0 2px 0 var(--shadow-base);
  --shadow-pressed: 0 0 0 transparent;
  --highlight-top: 1px solid #ffffff21;
  --highlight-brand: 1px solid #ffffff73;
  --brand-hi: #44f0d7;
  --bg-deep: #080f1d;
  --bg-inset: #070d18;
  --topbar-bg: #0a1220e0;
  --brand-glow: #35e0c84d;
  --brand-glow-strong: #35e0c88c;
  --text-glow: #fff3;
  --ink: #000;
  --grid-pattern: linear-gradient(#2c416626 1px, transparent 1px), linear-gradient(90deg, #2c416626 1px, transparent 1px);
  --font: "Segoe UI", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "BIZ UDPGothic", "Yu Gothic UI", "Meiryo", sans-serif;
  --font-mono: "Cascadia Code", "Consolas", "BIZ UDGothic", "MS Gothic", monospace;
}

/* packages/web/teachers/teachers.css */
* {
  box-sizing: border-box;
}

html, body {
  background-color: var(--bg);
  background-image: var(--grid-pattern);
  color: var(--text);
  font-family: var(--font);
  --buncss-light: ;
  --buncss-dark: initial;
  color-scheme: dark;
  background-size: 28px 28px;
  background-attachment: fixed;
  margin: 0;
  padding: 0;
  font-size: 16px;
  line-height: 1.8;
}

body {
  overflow-x: clip;
}

.page {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 16px 56px;
}

.tp-top {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items:  center;
  gap: 14px;
  padding: 12px 2px;
}

.tp-top:before {
  content: "";
  position: absolute;
  z-index: -1;
  background: var(--topbar-bg);
  box-shadow: 0 0 0 100vmax var(--topbar-bg), 0 2px 0 100vmax var(--line);
  clip-path: inset(0 -100vmax -2px -100vmax);
  inset: 0;
}

.tp-logo {
  letter-spacing: .02em;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
  text-shadow: 0 2px 0 var(--ink), 0 0 12px var(--brand-soft);
  font-size: 22px;
  font-weight: 900;
}

.tp-logo .accent {
  color: var(--brand);
}

.tp-back {
  color: var(--brand);
  text-decoration: none;
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-bottom: 2px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  transition: transform 50ms, background .1s;
  font-size: 14px;
  font-weight: 800;
}

.tp-back:hover {
  background: var(--panel-2);
  border-color: var(--brand-strong);
  transform: translateY(-1px);
}

.tp-back:active {
  transform: translateY(1px);
}

.tp-foot {
  background: var(--bg-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  color: var(--text-faint);
  text-align: center;
  margin-top: 40px;
  padding: 16px 12px;
  font-size: 14px;
}

.tp-foot a {
  color: var(--text-sub);
  white-space: nowrap;
}

.tp-foot a:hover {
  color: var(--brand);
}

h1 {
  letter-spacing: -.01em;
  text-shadow: 0 2px 0 var(--ink), 0 4px 16px var(--brand-glow);
  margin: 16px 0 12px;
  font-size: 34px;
  font-weight: 900;
  line-height: 1.35;
}

.tp-crumbs {
  font-size: 13px;
  font-family: var(--font-mono);
  color: var(--text-faint);
  margin: 14px 0 0;
}

.tp-crumbs a {
  color: var(--text-sub);
}

.tp-crumbs + h1 {
  margin-top: 6px;
}

.tp-lead {
  color: var(--text-sub);
  margin: 0 0 8px;
  font-size: 17px;
}

.tp-lead b {
  color: var(--text);
}

.tp-sec {
  background: var(--panel);
  border: 1px solid var(--line);
  border-top: var(--highlight-top);
  border-radius: var(--radius);
  box-shadow: var(--shadow-solid);
  margin-top: 20px;
  padding: 20px 22px;
}

.tp-sec h2 {
  display: flex;
  align-items:  center;
  gap: 10px;
  margin: 0 0 12px;
  font-size: 20px;
  font-weight: 900;
  line-height: 1.45;
}

.tp-sec h2:before {
  content: "";
  background: var(--brand);
  box-shadow: 0 0 8px var(--brand-soft);
  border-radius: 2px;
  flex: none;
  width: 6px;
  height: 22px;
}

.tp-sec p {
  margin: 0 0 10px;
}

.tp-sec ul, .tp-sec ol {
  margin: 0 0 10px;
  padding-left: 1.3em;
}

.tp-sec li {
  margin-bottom: 6px;
}

.tp-sec li::marker {
  color: var(--brand);
  font-weight: 800;
}

.tp-note {
  color: var(--text-sub);
  border-left: 3px solid var(--line);
  padding-left: 12px;
  font-size: 15px;
}

.tp-tip {
  color: var(--text-sub);
  border-left: 3px solid var(--warn);
  background: var(--warn-soft);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 8px 12px;
  font-size: 15px;
}

.tp-goal {
  position: relative;
  background: linear-gradient(180deg, var(--brand-soft) 0%, var(--bg-soft) 100%);
  border: 1px solid var(--brand-strong);
  border-left: 6px solid var(--brand);
  border-top: 1px solid var(--brand-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow-solid), 0 0 14px var(--brand-soft);
  margin-top: 20px;
  padding: 14px 18px 14px 20px;
}

.tp-goal b {
  color: var(--brand);
}

.tp-todo {
  background: var(--bg-soft);
  color: var(--text-sub);
  border: 1px dashed var(--line);
  box-shadow: none;
}

.tp-todo h2 {
  color: var(--text-sub);
  font-size: 18px;
}

.tp-todo h2:before {
  background: var(--line);
  box-shadow: none;
}

table {
  border-collapse: collapse;
  width: 100%;
  margin: 6px 0 4px;
  font-size: 15px;
}

th, td {
  border: 1px solid var(--line-soft);
  text-align: left;
  vertical-align: top;
  padding: 8px 10px;
}

th {
  background: var(--panel-2);
  color: var(--text-sub);
  letter-spacing: .04em;
  white-space: nowrap;
  border-bottom: 2px solid var(--line);
  font-size: 13px;
}

tr:nth-child(2n) td {
  background: var(--bg-soft);
}

table.tp-time th:first-child, table.tp-time td:first-child {
  white-space: nowrap;
  width: 1%;
}

table.tp-time td:first-child {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  color: var(--brand);
  text-shadow: 0 0 8px var(--brand-soft);
  background: var(--bg);
  border-right: 2px solid var(--line);
  font-weight: 900;
}

table.tp-time td:nth-child(2) {
  white-space: nowrap;
  color: var(--warn);
  width: 1%;
  font-weight: 800;
}

table.tp-flow td:first-child, table.tp-flow td:nth-child(2) {
  white-space: nowrap;
}

table.tp-flow td:first-child {
  font-family: var(--font-mono);
  color: var(--warn);
  text-align: center;
  font-weight: 900;
}

table.tp-flow td:nth-child(2) {
  font-weight: 800;
}

.tp-stage, .tp-challenge {
  display: inline-block;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-top: var(--highlight-top);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-solid-sm);
  white-space: nowrap;
  margin: 1px 0;
  padding: 0 8px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.7;
}

.tp-challenge {
  border-color: var(--warn);
  background: var(--warn-soft);
}

code {
  font-family: var(--font-mono);
  background: var(--bg);
  border: 1px solid var(--line-soft);
  color: var(--text);
  border-radius: 4px;
  padding: 0 5px;
  font-size: .92em;
}

.tp-points, .tp-cards {
  display: grid;
  gap: 14px;
  margin: 10px 0 4px;
}

.tp-points {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.tp-cards {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tp-point {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-top: var(--highlight-top);
  border-left: 5px solid var(--brand);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-solid-sm);
  padding: 10px 14px 12px;
}

.tp-point h3 {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 900;
}

.tp-point p {
  color: var(--text-sub);
  margin: 0;
  font-size: 15px;
}

.tp-card {
  position: relative;
  display: grid;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-top: 5px solid var(--brand);
  border-radius: var(--radius);
  box-shadow: var(--shadow-solid);
  color: var(--text);
  text-decoration: none;
  align-content:  start;
  gap: 6px;
  padding: 16px 16px 40px;
  transition: transform 60ms, box-shadow 60ms, border-color .1s;
}

.tp-card:nth-child(2) {
  border-top-color: var(--player-b);
}

.tp-card:nth-child(3) {
  border-top-color: var(--warn);
}

.tp-card:hover {
  box-shadow: 0 6px 0 var(--shadow-base);
  border-color: var(--brand);
  transform: translateY(-2px);
}

.tp-card:active {
  box-shadow: var(--shadow-pressed);
  transform: translateY(4px);
}

.tp-card b {
  font-size: 19px;
  font-weight: 900;
}

.tp-card span {
  color: var(--text-sub);
  font-size: 14px;
  line-height: 1.65;
}

.tp-card:after {
  content: "授業案を見る ▶";
  position: absolute;
  color: var(--brand);
  font-size: 13px;
  font-weight: 900;
  bottom: 12px;
  left: 16px;
}

.tp-faq h3 {
  display: flex;
  align-items:  flex-start;
  gap: 8px;
  margin: 16px 0 4px;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.6;
}

.tp-faq h3:before {
  content: "Q";
  display: inline-flex;
  font-family: var(--font-mono);
  color: var(--brand-text);
  background: var(--brand);
  box-shadow: var(--shadow-solid-sm);
  border-radius: 4px;
  flex: none;
  justify-content: center;
  align-items:  center;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  font-size: 13px;
}

.tp-faq h3:first-of-type {
  margin-top: 0;
}

.tp-faq p {
  color: var(--text-sub);
  margin: 0 0 6px;
  padding-left: 30px;
}

.tp-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 6px 0 0;
}

.tp-links a {
  color: var(--brand);
  font-weight: 700;
}

a {
  color: var(--brand);
}

.tp-cta {
  text-align: center;
  margin: 32px 0 0;
}

.tp-cta a {
  display: inline-block;
  background: linear-gradient(180deg, var(--brand-hi) 0%, var(--brand) 100%);
  color: var(--brand-text);
  border: 1px solid var(--brand-strong);
  border-top: var(--highlight-brand);
  border-radius: var(--radius);
  text-decoration: none;
  box-shadow: 0 4px 0 var(--shadow-brand), 0 0 16px var(--brand-soft);
  padding: 14px 32px;
  transition: transform 50ms, box-shadow 50ms;
  font-size: 18px;
  font-weight: 900;
}

.tp-cta a:hover {
  box-shadow: 0 5px 0 var(--shadow-brand), 0 0 22px var(--brand-glow);
  transform: translateY(-1px);
}

.tp-cta a:active {
  box-shadow: var(--shadow-pressed);
  transform: translateY(4px);
}

@media (max-width: 720px) {
  h1 {
    font-size: 26px;
  }

  .tp-sec {
    padding: 16px 14px;
  }

  .tp-points, .tp-cards {
    grid-template-columns: minmax(0, 1fr);
  }

  th, .tp-stage, .tp-challenge {
    white-space: normal;
  }

  table {
    font-size: 14px;
  }

  th, td {
    padding: 6px 7px;
  }

  table.tp-time td:nth-child(2), table.tp-flow td:nth-child(2) {
    white-space: normal;
  }

  .tp-card {
    padding-bottom: 38px;
  }
}
