/* Shared only by the two learning index pages. Lesson URLs and contents stay intact. */
body.learning-hub {
  --hub-ink: #303b54;
  --hub-muted: #59667b;
  --hub-line: #dce3ed;
  --hub-wash: #eef2f7;
  background: #f7f8fa;
  color: var(--hub-ink);
  font-family: "Noto Sans JP", "Yu Gothic", "Hiragino Kaku Gothic ProN", sans-serif;
  font-size: 18px;
  line-height: 1.8;
  letter-spacing: .05em;
  word-break: normal;
  overflow-wrap: anywhere;
}
.learning-hub h1, .learning-hub h2, .learning-hub h3, .learning-hub h4 {
  font-family: inherit;
  letter-spacing: .02em;
  line-height: 1.6;
}
.learning-hub .page-head, .learning-hub main .inner { max-width: 1120px; margin-inline: auto; }
.learning-hub .page-head { padding: 32px 16px 0; }
.learning-hub .page-head h1 { font-size: 32px; margin: 8px 0 16px; }
.learning-hub .page-head p { margin: 0; color: var(--hub-muted); }
.learning-hub .hub-eyebrow, .learning-hub .page-head > .tag {
  display: inline-block; background: transparent; padding: 0; margin: 0;
  color: var(--hub-muted); font-size: 14px; font-weight: 600;
}
.learning-hub main > section { padding: 32px 16px; }
.learning-hub main .note { font-size: 16px; line-height: 1.8; color: var(--hub-muted); }
.learning-hub .hub-intro { margin-bottom: 24px; }
.learning-hub .hub-intro p { margin-bottom: 8px; }
.learning-hub .hub-jumps { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 48px; }
body.learning-hub .hub-jumps a[href] {
  flex: 1 1 144px; display: flex; flex-direction: column; justify-content: center; gap: 8px;
  min-height: 80px; padding: 16px; border: 1px solid var(--hub-line); border-radius: 18px;
  text-decoration: none; background: #fff; color: var(--hub-ink); font-size: 16px; font-weight: 600;
}
.learning-hub .hub-jumps a span { font-size: 12px; color: var(--hub-muted); letter-spacing: .05em; }
.learning-hub .hub-jumps a:hover { background: var(--hub-wash); border-color: #9aaac2; }
.learning-hub .hub-group, .learning-hub .jissen-group { margin: 48px 0 0; scroll-margin-top: 24px; }
.learning-hub .hub-group h2, .learning-hub .jissen-group-name {
  display: flex; align-items: center; gap: 16px; font-size: 24px;
  margin: 0 0 8px; padding: 0; border: 0;
}
.learning-hub .hub-group h2::after, .learning-hub .jissen-group-name::after {
  content: ""; flex: 1; height: 1px; background: var(--hub-line);
}
.learning-hub .hub-group > .note, .learning-hub .jissen-group > .note { margin-bottom: 24px; }
.learning-hub .cards { gap: 16px; align-items: stretch; }
.learning-hub .cards > .card {
  position: relative; display: flex; flex-direction: column; align-items: stretch;
  min-width: 0; padding: 24px; background: #fff; border: 1px solid var(--hub-line); border-radius: 18px;
  scroll-margin-top: 24px;
}
.learning-hub .card h3 { font-size: 22px; margin: 8px 0 16px; }
.learning-hub .card p { font-size: 18px; line-height: 1.8; margin-bottom: 0; }
.learning-hub .card > .tag, .learning-hub .kiko-body > .tag {
  align-self: flex-start; min-width: 40px; display: inline-flex; align-items: center; justify-content: center;
  padding: 8px 16px; margin: 0; border-radius: 18px; background: var(--hub-wash);
  color: #596b88; font-size: 14px; line-height: 1.5; font-weight: 600;
}
/* Existing tool badges have inline colors. Normalize their presentation within these indexes. */
.learning-hub .card > p:has(> span[style]) {
  display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px !important;
}
.learning-hub .card > p > span[style] {
  display: inline-flex !important; align-items: center;
  padding: 0 8px !important; margin: 0 !important; min-height: 32px;
  background: #f4f6f9 !important; color: #58657b !important;
  border: 1px solid #e4e9f0; border-radius: 8px;
  font-size: 14px !important; line-height: 1.8 !important;
}
.learning-hub main .btn {
  display: flex; justify-content: space-between; max-width: none;
  min-height: 56px; margin: 24px 0 0 !important; padding: 16px 48px 16px 16px;
  border: 1px solid #d4dce8; border-radius: 18px; background: var(--hub-wash);
  color: #2c3550; text-align: left; font-family: inherit; font-size: 16px; line-height: 1.8;
}
.learning-hub main .btn::before { border-color: currentColor; right: 24px; }
.learning-hub main .btn:hover { background: #e0e7f1; border-color: #9aaac2; }
.learning-hub .cards > .card > .btn { margin-top: auto !important; }
.learning-hub .cards > .card > p:not(:has(> span[style])) { margin-bottom: 24px; }
.learning-hub .cards > .card > p:last-child { margin-bottom: 0; }
.learning-hub main .btn[target="_blank"]::after { content: "↗"; flex-shrink: 0; margin-left: 8px; }
.learning-hub main .btn[target="_blank"]::before { display: none; }
.learning-hub .card:target { border-color: #657d9f; outline: 2px solid #c4d0e1; outline-offset: 2px; }
.learning-hub .card > .note { margin-top: 16px !important; }
.learning-hub .jissen-card-warn { border-color: #d1b38d; }
.learning-hub .jissen-level { gap: 8px; font-size: 14px !important; margin: 16px 0 0; }
.learning-hub .jissen-level-warn { color: #87623c; }
.learning-hub .jissen-balance, .learning-hub .jissen-uses {
  margin: 0 0 24px; padding: 16px; background: #f7f8fa; border: 0; border-radius: 18px;
}
.learning-hub .jissen-balance p, .learning-hub .jissen-uses li { font-size: 16px; line-height: 1.8; }
.learning-hub .jissen-balance p + p { margin-top: 16px; }
.learning-hub .small-label { font-size: 14px; color: #59667b; margin-bottom: 8px; }
.learning-hub .hub-next { background: #eef2f7; margin-top: 16px; }
.learning-hub .hub-next .btn { max-width: 480px; background: #2c3550; color: #fff; border-color: #2c3550; }
.learning-hub .hub-next .btn:hover { background: #414f6c; }
.learning-hub .hline { display: none; }
.learning-hub .kiko12 { border-color: var(--hub-line); scroll-margin-top: 24px; }
.learning-hub .kiko-list { gap: 24px; }
.learning-hub .kiko-card { overflow: hidden; border: 1px solid var(--hub-line); border-radius: 18px; }
.learning-hub .kiko-card img { aspect-ratio: 1000 / 563; object-fit: cover; }
.learning-hub .kiko-body { padding: 24px; }
.learning-hub .kiko-body h4 { font-size: 20px; margin: 16px 0; }
.learning-hub .kiko-body p { font-size: 18px; line-height: 1.8; }
body.learning-hub .kiko-link { display: flex; align-items: center; min-height: 48px; padding: 8px 0; font-size: 16px; }
.learning-hub a:focus-visible { outline: 3px solid #657d9f; outline-offset: 4px; }
@media (min-width: 768px) {
  .learning-hub .page-head { padding: 48px 32px 0; }
  .learning-hub .page-head h1 { font-size: 40px; }
  .learning-hub main > section { padding: 32px; }
  .learning-hub .cards { gap: 24px; }
}
@media (min-width: 1200px) {
  .learning-hub .page-head { padding: 48px 48px 0; }
  .learning-hub main > section { padding: 32px 48px 48px; }
  .learning-hub .cards > .card { padding: 32px; }
}

/* Monochrome visual cues; text labels remain visible alongside every icon. */
.learning-hub .card h3.hub-card-heading {
  display: flex; align-items: center; gap: 16px; margin: 16px 0;
}
.learning-hub .hub-icon {
  display: flex; align-items: center; justify-content: center; flex: 0 0 56px;
  width: 56px; height: 56px; border-radius: 18px; background: #eef2f7; color: #526783;
}
.learning-hub .hub-icon svg, .learning-hub .hub-flow-icon svg {
  width: 32px; height: 32px; fill: none; stroke: currentColor; stroke-width: 1.5;
  stroke-linecap: round; stroke-linejoin: round;
}
.learning-hub .hub-flow { margin: 24px 0; padding: 24px; background: #eef2f7; border-radius: 18px; }
.learning-hub .hub-flow figcaption { font-size: 16px; font-weight: 600; color: #52617a; margin-bottom: 24px; }
.learning-hub .hub-flow ol { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; padding: 0; margin: 0; list-style: none; }
.learning-hub .hub-flow li { display: flex; align-items: center; gap: 16px; position: relative; min-width: 0; margin: 0; }
.learning-hub .hub-flow li:not(:last-child)::after { content: '↓'; position: absolute; left: 16px; bottom: -32px; font-size: 20px; color: #7589a5; }
.learning-hub .hub-flow-icon { display: flex; justify-content: center; align-items: center; width: 48px; height: 48px; flex: 0 0 48px; color: #526783; }
.learning-hub .hub-flow-number { display: block; font-size: 12px; letter-spacing: .05em; color: #59667b; }
.learning-hub .hub-flow strong { display: block; font-size: 18px; line-height: 1.8; }
.learning-hub .hub-flow-detail { display: block; font-size: 14px; color: #59667b; line-height: 1.8; }
@media (min-width: 768px) {
  .learning-hub .hub-flow ol { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
  .learning-hub .hub-flow li { flex-direction: column; align-items: flex-start; gap: 8px; }
  .learning-hub .hub-flow li:not(:last-child)::after { content: '→'; left: auto; right: -16px; bottom: auto; top: 8px; }
  .learning-hub .hub-flow-icon { justify-content: flex-start; }
}
