:root {
  --ink: #1a1a1a;
  --ink-soft: #5a6570;
  --paper: #e8f0f6;
  --paper-2: #ffffff;
  --rule: #d3e0ea;
  --blue: #1f4e79;
  --blue-soft: #d7e6f4;
  --blue-deep: #0e2f4d;
  --accent: #c45c26;
  --bubble: #dceef8;
  --max: 1140px;
  --sidebar: 18.5rem;
  --gutter: 1.5rem;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  overflow-x: clip;
  scroll-padding-top: 4.5rem;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  font-size: 17px;
  line-height: 1.85;
}

a {
  color: var(--blue);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--accent);
}

.shell,
.site-header-inner,
.article-layout {
  width: min(var(--max), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  isolation: isolate;
  background-color: #2196f3;
  background-image: linear-gradient(135deg, #2196f3, #64b5f6);
  border-bottom: 0;
  color: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.premium-release-banner {
  background: #073f74;
  color: #fff;
}

.premium-release-banner-inner {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  width: min(var(--max), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
  padding: 0.65rem 0;
}

.premium-release-badge {
  flex: none;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: #fff;
  color: #075da9;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.premium-release-copy {
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
  min-width: 0;
}

.premium-release-copy strong {
  font-size: 0.92rem;
  font-weight: 700;
  white-space: nowrap;
}

.premium-release-copy span {
  color: #dceeff;
  font-size: 0.78rem;
}

.premium-release-link {
  margin-left: auto;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 800;
  white-space: nowrap;
  text-decoration: none;
}

.premium-release-link:hover {
  color: #fff;
  text-decoration: underline;
}

.site-header-inner {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 1rem 1.25rem;
  padding: 0.7rem 0;
}

.site-logo {
  flex: none;
  font-weight: 700;
  font-size: 1.15rem;
  color: #fff;
  text-decoration: none;
  letter-spacing: 0.04em;
}

.site-header a:hover,
.site-logo:hover {
  color: #fff;
}

.header-search {
  display: flex;
  align-items: center;
  flex: 1 1 12rem;
  max-width: 17rem;
  min-width: 10rem;
  height: 2.3rem;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.96);
}

.header-search input {
  flex: 1;
  min-width: 0;
  height: 100%;
  padding: 0 0.55rem 0 0.75rem;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.84rem;
}

.header-search input::placeholder {
  color: #7a8691;
}

.header-search input:focus {
  outline: none;
}

.header-search:focus-within {
  outline: 2px solid #fff;
  outline-offset: 1px;
}

.header-search-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.3rem;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--blue);
  cursor: pointer;
}

.site-header-tools {
  display: none;
}

.header-search-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  color: #fff;
  text-decoration: none;
}

.header-search-link:hover {
  color: #fff;
  opacity: 0.85;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 0.55rem 0.85rem;
  margin-left: auto;
  font-size: 0.88rem;
}

.site-nav-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.2rem 1.1rem;
}

.site-nav-split {
  width: 1px;
  height: 0.95rem;
  background: rgba(255, 255, 255, 0.45);
}

.site-nav a,
.site-nav-app a {
  color: #fff;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav-app a:hover {
  color: #fff;
  opacity: 0.85;
}

.site-nav-app a {
  font-weight: 500;
}

.nav-toggle {
  display: none;
  width: 2.6rem;
  height: 2.6rem;
  margin: 0 -0.4rem 0 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 1.2rem;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
}

.nav-toggle-bars {
  position: relative;
  margin: 0 auto;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-bars::before {
  top: -6px;
}

.nav-toggle-bars::after {
  top: 6px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after {
  top: 0;
  transform: rotate(-45deg);
}

.site-footer {
  margin-top: 1.5rem;
  padding: 1.6rem 0 2.2rem;
  border-top: 0;
  background: #333;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.82rem;
}

.site-footer-inner {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
}

.footer-nav a {
  color: #ccc;
  text-decoration: none;
}

.footer-nav a:hover {
  color: #fff;
}

.footer-copy {
  margin: 0;
}

.learning-log {
  padding: 2.2rem 0 2.8rem;
  border-top: 1px solid var(--rule);
  background: #fff;
}

.learning-log-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(16rem, 0.95fr);
  gap: 1.5rem 2rem;
  align-items: center;
}

.learning-log-copy h2 {
  margin: 0 0 0.7rem;
  color: var(--blue-deep);
  font-size: clamp(1.25rem, 2.4vw, 1.7rem);
  line-height: 1.4;
}

.learning-log-copy p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.75;
}

.learning-log-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.2rem;
  align-items: center;
  margin-top: 1.15rem !important;
}

.learning-log-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  padding: 0.55rem 1.3rem;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  box-shadow: 0 10px 22px rgba(31, 78, 121, 0.22);
}

.learning-log-primary:hover {
  background: var(--blue-deep);
  color: #fff;
}

.learning-log-link {
  color: var(--blue);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border-bottom: 2px solid var(--blue-soft);
}

.learning-log-link:hover {
  color: var(--blue-deep);
  border-bottom-color: var(--blue);
}

.learning-log-visual {
  position: relative;
  min-height: 11rem;
}

.learning-log-rail {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0 0 8.5rem;
  gap: 0;
}

.learning-log-rail li {
  position: relative;
  flex: 1;
  min-width: 0;
  padding: 0 0.4rem 1.6rem;
  color: var(--blue-deep);
  font-size: 0.82rem;
  font-weight: 700;
  text-align: center;
}

.learning-log-rail li::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--blue);
  box-shadow: 0 0 0 5px var(--blue-soft);
  transform: translateX(-50%);
}

.learning-log-rail li::after {
  content: "";
  position: absolute;
  left: calc(50% + 10px);
  right: calc(-50% + 10px);
  bottom: 4px;
  height: 2px;
  background: linear-gradient(90deg, var(--blue-soft), transparent);
}

.learning-log-rail li:last-child::after {
  display: none;
}

.learning-log-image {
  position: absolute;
  right: 0;
  bottom: 0;
  width: min(42%, 11.5rem);
  height: auto;
  pointer-events: none;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--sidebar);
  gap: 2rem;
  align-items: start;
  padding: 1.4rem 0 3rem;
}

.sidebar {
  position: sticky;
  top: 4.5rem;
  align-self: start;
  width: var(--sidebar);
}

.side-search {
  margin-bottom: 1.4rem;
}

.side-search input {
  width: 100%;
  border: 1px solid var(--rule);
  background: #fff;
  border-radius: 2px;
  padding: 0.45rem 0.55rem;
  font: inherit;
}

.side-search button {
  display: block;
  width: 100%;
  margin-top: 0.4rem;
  border: 0;
  border-radius: 2px;
  padding: 0.45rem;
  background: var(--blue);
  color: #fff;
  font: inherit;
  cursor: pointer;
}

.side-section {
  margin-bottom: 1.6rem;
}

.side-section h2 {
  position: relative;
  margin: 0 0 0.8rem;
  padding-bottom: 0.4rem;
  font-size: 1.02rem;
  font-weight: 700;
  border-bottom: 3px solid #c5d4e3;
}

.side-section h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 5.2rem;
  height: 3px;
  background: var(--blue);
}

.side-popular,
.side-banners {
  list-style: none;
  padding: 0;
  margin: 0;
}

.side-popular a,
.side-banners a {
  display: block;
  margin-bottom: 0.85rem;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.45;
}

.side-popular img,
.side-banners img {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: 0.4rem;
  background: #fff;
}

.side-banners a {
  margin-bottom: 0.7rem;
}

.side-posts {
  list-style: none;
  padding: 0;
  margin: 0;
}

.side-posts li {
  border-bottom: 1px solid var(--rule);
}

.side-posts a {
  display: grid;
  grid-template-columns: 5.6rem 1fr;
  gap: 0.7rem;
  align-items: center;
  padding: 0.7rem 0;
  color: var(--ink);
  text-decoration: none;
}

.side-posts a:hover .side-posts-title {
  color: var(--blue);
}

.side-posts img {
  width: 5.6rem;
  height: auto;
  display: block;
  border-radius: 4px;
  border: 1px solid var(--rule);
  background: #fff;
}

.side-posts-ph {
  width: 5.6rem;
  aspect-ratio: 16 / 9;
  border-radius: 4px;
  border: 1px solid var(--rule);
  background: #fff;
}

.side-posts-text {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.side-posts-title {
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.45;
}

.side-posts-date {
  font-size: 0.75rem;
  color: var(--ink-soft);
  font-weight: 400;
}

.article-app-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: space-between;
  gap: 1rem 1.2rem;
  margin: 2.2rem 0 0;
  padding: 1.35rem 1.35rem 1.4rem;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, #075da9 0%, #2196f3 52%, #64b5f6 100%);
  color: #fff;
  box-shadow: 0 12px 28px rgba(33, 150, 243, 0.38);
}

.article-app-cta-copy {
  flex: 1 1 16rem;
  min-width: 0;
}

.article-app-cta-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #e3f2fd;
}

.article-app-cta h2 {
  margin: 0 0 0.4rem;
  font-size: 1.22rem;
  font-weight: 800;
  color: #fff;
}

.article-app-cta-lead {
  margin: 0;
  color: #eaf4ff;
  font-size: 0.92rem;
  line-height: 1.7;
}

.article-app-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0.95rem 0 0 !important;
}

.article-app-cta-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.55rem 1.3rem;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #075da9;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.95rem;
  box-shadow: 0 8px 18px rgba(7, 63, 116, 0.18);
}

.article-app-cta-link:hover {
  background: #e3f2fd;
  color: #0e2f4d;
}

.article-app-cta-mark {
  display: grid;
  place-content: center;
  flex: 0 1 14.5rem;
  min-width: 10.5rem;
  align-self: stretch;
  padding: 0.45rem 0.55rem;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.article-app-cta-mark img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 7.4rem;
  object-fit: contain;
}

.article-cheatsheet-promo {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: space-between;
  gap: 1rem 1.2rem;
  margin: 1.6rem 0;
  padding: 1.2rem 1.25rem 1.3rem;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, #075da9 0%, #2196f3 52%, #64b5f6 100%);
  color: #fff;
  box-shadow: 0 12px 28px rgba(33, 150, 243, 0.38);
}

.article-cheatsheet-promo-copy {
  flex: 1 1 16rem;
  min-width: 0;
}

.article-cheatsheet-promo-title {
  margin: 0 0 0.45rem;
  color: #fff;
  font-size: 1.12rem;
  font-weight: 800;
  line-height: 1.45;
}

.article-cheatsheet-promo-lead {
  margin: 0;
  color: #eaf4ff;
  font-size: 0.95rem;
  line-height: 1.75;
}

.article-cheatsheet-promo-note {
  margin: 0.45rem 0 0;
  color: #d7ebff;
  font-size: 0.78rem;
}

.article-cheatsheet-promo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0.95rem 0 0 !important;
}

.article-cheatsheet-promo-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.5rem 1.35rem;
  border-radius: 999px;
  background: #fff;
  color: #075da9;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(7, 63, 116, 0.18);
}

.article-cheatsheet-promo-link:hover {
  background: #e3f2fd;
  color: #0e2f4d;
}

.article-cheatsheet-promo-mark {
  flex: 0 1 18rem;
  min-width: 12rem;
  align-self: stretch;
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
}

.article-cheatsheet-promo-mark img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 8.75rem;
  max-height: 10.5rem;
  object-fit: cover;
  object-position: top center;
}

.article-author {
  display: flex;
  align-items: flex-start;
  gap: 0.95rem;
  margin: 2.2rem 0 0;
  padding: 1.15rem 1.2rem;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: 10px;
}

.article-author-image {
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 50%;
  object-fit: contain;
  flex: 0 0 auto;
  background: #fff;
}

.article-author-copy {
  min-width: 0;
}

.article-author-kicker {
  margin: 0 0 0.2rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
}

.article-author-name {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 800;
}

.article-author-bio {
  margin: 0.35rem 0 0;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--ink-soft);
}

.member-cta {
  position: fixed;
  right: -320px;
  bottom: 20px;
  width: 300px;
  z-index: 40;
  transition: right 0.5s ease-in-out;
}

.member-cta.is-visible {
  right: 20px;
}

.member-cta img {
  display: block;
  width: 100%;
  height: auto;
}

.member-cta-close {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 18px;
  line-height: 28px;
  cursor: pointer;
}

@media (max-width: 768px) {
  .member-cta {
    display: none;
  }
  .article-app-cta-mark {
    display: none;
  }
}

.page {
  padding: 1.4rem 0 3rem;
}

.hero {
  padding: 0.6rem 0 0.4rem;
}

.hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 0.6rem;
}

.hero p {
  margin: 0;
  color: var(--ink-soft);
}

.group {
  margin: 2rem 0;
}

.group h2 {
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  color: var(--blue);
  border-bottom: 1px solid var(--rule);
  padding-bottom: 0.35rem;
  margin: 0 0 0.8rem;
}

.article-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.article-list li {
  border-bottom: 1px solid var(--rule);
}

.article-list a {
  display: block;
  padding: 0.7rem 0;
  color: var(--ink);
  text-decoration: none;
}

.article-list a:hover {
  color: var(--blue);
}

.article-list .meta {
  display: block;
  font-size: 0.78rem;
  color: var(--ink-soft);
  margin-top: 0.15rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.post-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem 1rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.post-list > li {
  min-width: 0;
}

.post-card {
  height: 100%;
}

.post-card a {
  display: grid;
  grid-template-columns: 7.2rem 1fr;
  gap: 0.85rem;
  align-items: start;
  height: 100%;
  padding: 0.9rem;
  border: 1px solid var(--rule);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
}

.post-card a:hover {
  color: var(--ink);
  border-color: var(--blue);
}

.post-card a:hover h2 {
  color: var(--blue);
}

.post-card .article-cat {
  flex: none;
  color: var(--ink);
}

.post-card img,
.post-card-ph {
  width: 7.2rem;
  display: block;
  border-radius: 4px;
  border: 1px solid var(--rule);
  background: #fff;
}

.post-card img {
  height: auto;
}

.post-card-ph {
  aspect-ratio: 16 / 9;
}

.post-card-body {
  min-width: 0;
}

.post-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.7rem;
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  color: var(--ink-soft);
}

.post-card h2 {
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.45;
  margin: 0 0 0.35rem;
}

.post-card-excerpt {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.82rem;
  line-height: 1.6;
}

.listing-empty {
  color: var(--ink-soft);
}

.hub-layout {
  padding: 1.4rem 0 3rem;
}

.hub-hero {
  margin: 0 0 1.6rem;
}

.home-hero {
  margin: 0 0 2.1rem;
  padding: 1.35rem 0 0;
  border: 0;
  background: transparent;
}

.hub-hero h1 {
  margin: 0 0 0.45rem;
  font-size: clamp(1.7rem, 3vw, 2.1rem);
  line-height: 1.35;
  color: var(--blue-deep);
}

.home-hero h1 {
  margin: 0 0 0.45rem;
  font-size: clamp(1.18rem, 2.2vw, 1.5rem);
  font-weight: 700;
  line-height: 1.5;
  color: var(--blue-deep);
}

.hub-lead,
.hub-audience,
.hub-section-blurb {
  margin: 0 0 0.7rem;
  color: var(--ink-soft);
}

.home-hero .hub-lead {
  max-width: 38rem;
  margin-bottom: 0;
}

.hub-section-title {
  margin: 0 0 0.85rem;
  font-size: 1.15rem;
  color: var(--blue-deep);
}

.home-search {
  margin: 1.15rem 0 0;
  padding: 1.35rem 1.3rem 1.25rem;
  border: 1px solid #fff;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(14, 47, 77, 0.1);
}

.home-search-label {
  display: block;
  margin: 0 0 0.55rem;
  color: var(--blue-deep);
  font-weight: 700;
  font-size: 1.02rem;
}

.home-search-row {
  display: flex;
  gap: 0.55rem;
}

.home-search-row input {
  flex: 1;
  min-width: 0;
  min-height: 3.15rem;
  padding: 0.7rem 1rem;
  border: 1px solid var(--blue-soft);
  border-radius: 6px;
  background: #fff;
  font: inherit;
  font-size: 1rem;
}

.home-search-row input:focus {
  outline: 2px solid var(--blue);
  outline-offset: 1px;
  border-color: var(--blue);
}

.home-search-row button {
  flex: none;
  min-height: 3.15rem;
  padding: 0.7rem 1.4rem;
  border: 0;
  border-radius: 6px;
  background: var(--blue);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.home-search-row button:hover {
  background: var(--blue-deep);
}

.home-search-suggests {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.75rem 0 0;
}

.home-search-suggests a {
  display: inline-block;
  padding: 0.18rem 0.7rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: #fff;
  color: var(--blue);
  text-decoration: none;
  font-size: 0.82rem;
}

.home-search-suggests a:hover {
  border-color: var(--blue);
}

.hub-audience {
  font-size: 0.92rem;
}

.hub-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
  list-style: none;
  margin: 0 0 1.8rem;
  padding: 0;
}

.hub-card {
  display: block;
  height: 100%;
  padding: 0.95rem 1.05rem;
  border: 1px solid var(--rule);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.72);
  color: inherit;
  text-decoration: none;
}

.hub-card:hover {
  border-color: var(--blue);
  color: inherit;
}

.hub-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  color: var(--blue-deep);
}

.hub-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.65;
}

.hub-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0 0 1.4rem;
}

.hub-cta {
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;
  padding: 0.42rem 0.85rem;
  border: 1px solid var(--blue-soft);
  border-radius: 2px;
  background: #fff;
  color: var(--blue);
  text-decoration: none;
  font-size: 0.88rem;
}

.hub-cta:hover {
  border-color: var(--blue);
  color: var(--blue-deep);
}

.hub-cta-note {
  font-size: 0.75rem;
  opacity: 0.88;
}

.hub-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0 0 1.6rem;
}

.hub-topics a {
  display: inline-block;
  padding: 0.28rem 0.7rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: #fff;
  color: var(--blue-deep);
  text-decoration: none;
  font-size: 0.82rem;
}

.hub-topics a:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.hub-sections {
  margin: 0 0 2.2rem;
}

.hub-section-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  margin: 0 0 1.2rem;
}

.hub-section-card {
  display: flex;
  flex-direction: column;
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: #fff;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

a.hub-section-card:hover {
  color: inherit;
}

.hub-section-card:hover {
  border-color: var(--blue);
  box-shadow: 0 4px 14px rgba(31, 78, 121, 0.08);
}

.hub-section-card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--blue-deep);
}

a.hub-section-card:hover h3 {
  color: var(--blue);
}

.hub-section-card p {
  margin: 0 0 0.8rem;
  color: var(--ink-soft);
  font-size: 0.88rem;
  line-height: 1.6;
  flex: 1;
}

.hub-section-link {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--blue);
  text-decoration: none;
  align-self: flex-start;
}

.hub-section-link:hover,
a.hub-section-card:hover .hub-section-link {
  text-decoration: underline;
}

.hub-section,
.hub-featured,
.hub-latest,
.hub-archive {
  margin: 0 0 1.8rem;
}

.hub-section h2,
.hub-featured h2,
.hub-latest h2,
.hub-archive h2 {
  margin: 0 0 0.7rem;
  font-size: 1.15rem;
  color: var(--blue-deep);
}

.hub-more {
  margin: 1rem 0 0;
}

.hub-more a {
  font-weight: 500;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin: 1.5rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
  font-size: 0.9rem;
}

.pagination ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.pagination a,
.pagination span {
  display: inline-flex;
  min-width: 2rem;
  justify-content: center;
  padding: 0.3rem 0.55rem;
  border-radius: 4px;
  text-decoration: none;
}

.pagination a {
  color: var(--blue);
}

.pagination a:hover {
  background: var(--blue-soft);
}

.pagination [aria-current='page'] {
  background: var(--blue);
  color: #fff;
  font-weight: 700;
}

.pagination-disabled {
  color: var(--ink-soft);
}

.site-search-form {
  display: flex;
  gap: 0.55rem;
  margin: 0 0 1rem;
}

.site-search-form input {
  flex: 1;
  min-width: 0;
  min-height: 3.15rem;
  padding: 0.7rem 1rem;
  border: 1px solid var(--blue-soft);
  border-radius: 6px;
  background: #fff;
  font: inherit;
  font-size: 1rem;
}

.site-search-form input:focus {
  outline: 2px solid var(--blue);
  outline-offset: 1px;
  border-color: var(--blue);
}

.site-search-form button {
  flex: none;
  min-height: 3.15rem;
  padding: 0.7rem 1.4rem;
  border: 0;
  border-radius: 6px;
  background: var(--blue);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.site-search-form button:hover {
  background: var(--blue-deep);
}

.search-status {
  margin: 0 0 0.85rem;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.search-results {
  margin: 0 0 1.5rem;
}

.search-more {
  margin: 0 0 1.5rem;
  text-align: center;
}

.search-more button {
  border: 0;
  border-radius: 999px;
  padding: 0.65rem 1.4rem;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.search-more button:hover {
  background: var(--accent-strong);
}

.search-more button:disabled {
  opacity: 0.65;
  cursor: wait;
}

.search-layout {
  padding-bottom: 2.4rem;
}

.search-lead {
  margin: 0 0 1rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.article-wrap {
  min-width: 0;
}

.breadcrumbs {
  margin: 0 0 0.85rem;
  font-size: 0.82rem;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.2rem 0;
  list-style: none;
  margin: 0;
  padding: 0;
}

.breadcrumbs li {
  display: flex;
  align-items: center;
}

.breadcrumbs li:not(:last-child)::after {
  content: ">";
  margin: 0 0.4rem;
  color: var(--ink-soft);
}

.breadcrumbs a {
  color: var(--ink-soft);
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--blue);
}

.article-draft-banner {
  margin: 0 0 1.1rem;
  padding: 0.75rem 1rem;
  border: 1px solid #e6c36a;
  background: #fff8e6;
  border-radius: 6px;
  font-size: 0.9rem;
  line-height: 1.55;
}

.article-draft-banner code {
  font-size: 0.85em;
}

.article-kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.9rem;
  font-size: 0.8rem;
  color: var(--ink-soft);
  margin: 0 0 0.7rem;
}

.article-cat {
  display: inline-block;
  background: #dfe5ea;
  color: var(--ink);
  border-radius: 999px;
  padding: 0.12rem 0.7rem;
  font-size: 0.75rem;
}

.article-wrap > h1 {
  font-weight: 700;
  font-size: clamp(1.55rem, 2.6vw, 2rem);
  line-height: 1.45;
  margin: 0 0 1.4rem;
}

.article-wrap > h1:has(+ .article-toc) {
  margin-bottom: 0.85rem;
}

.article-toc {
  margin: 0 0 1.5rem;
  padding: 0.9rem 1.1rem 1rem;
  border: 1px solid var(--blue-soft);
  border-radius: 6px;
  background: #fff;
}

.article-toc summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  cursor: pointer;
  list-style: none;
  color: var(--blue);
  font-weight: 700;
  font-size: 1rem;
}

.article-toc summary::-webkit-details-marker {
  display: none;
}

.article-toc summary svg {
  flex: none;
  color: var(--blue);
}

.article-toc-list,
.article-toc-list ol {
  list-style: none;
  margin: 0.7rem 0 0;
  padding: 0;
}

.article-toc-list > li > a {
  font-weight: 500;
}

.article-toc-list ol {
  margin: 0.25rem 0 0.35rem;
  padding-left: 1.1rem;
}

.article-toc-list ol ol {
  padding-left: 1.2rem;
}

.article-toc a {
  display: inline-block;
  padding: 0.18rem 0;
  color: var(--blue);
  text-decoration: none;
  font-size: 0.92rem;
  line-height: 1.55;
}

.article-toc a:hover {
  text-decoration: underline;
}

.article :where(h2, h3, h4) {
  line-height: 1.45;
  margin: 2.2rem 0 0.7rem;
  scroll-margin-top: 4.5rem;
}

.article h2 {
  font-size: 1.28rem;
  padding-left: 0.7rem;
  border-left: 3px solid var(--blue);
}

.article h3 {
  font-size: 1.08rem;
}

.article p,
.article li,
.article :where(h2, h3, h4) {
  overflow-wrap: anywhere;
}

.article ul,
.article ol {
  padding-left: 1.3rem;
}

.article p:empty,
.article a[href*="px.a8.net"]:empty {
  display: none;
}

.has-medium-font-size {
  font-size: 1.02em;
}

.wp-block-spacer {
  height: 0.75rem !important;
}

.wp-block-spacer + .wp-block-spacer {
  display: none;
}

.wp-block-group:has(> figure.wp-block-image) {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.wp-block-group:has(> figure.wp-block-image) > figure {
  margin: 0;
  flex: 1 1 14rem;
}

.hcb_wrap {
  margin: 1.2rem 0;
}

.wp-block-embed.is-type-wp-embed .wp-block-embed__wrapper {
  padding: 0.85rem 1rem;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: 8px;
}

.article-related {
  margin: 1.4rem 0;
  padding: 0.9rem 1.05rem 1rem;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--blue);
  border-radius: 8px;
}

.article-related-kicker {
  margin: 0 0 0.3rem;
  color: var(--blue);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.article-related-title {
  display: block;
  color: var(--ink);
  font-size: 1.02rem;
  font-weight: 800;
  line-height: 1.5;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.article-related-title:hover {
  color: var(--blue);
  text-decoration: underline;
}

.article ul.article-related-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.65rem 0 0;
  padding: 0;
  list-style: none;
}

.article-related-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.12rem 0.55rem;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue-deep);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.45;
}

.article-related-group {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 1.4rem 0;
}

.article img {
  max-width: 100%;
  height: auto;
}

.article figure {
  margin: 1.4rem 0;
}

.article figcaption {
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin-top: 0.4rem;
}

.article pre,
.article code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.88em;
}

.article pre {
  overflow-x: auto;
  background: var(--blue-deep);
  color: #eef4fa;
  padding: 1rem;
  border-radius: 8px;
}

.article :not(pre) > code {
  background: var(--blue-soft);
  padding: 0.1em 0.35em;
  border-radius: 4px;
}

.article table {
  display: block;
  border-collapse: collapse;
  width: max-content;
  max-width: 100%;
  overflow-x: auto;
  font-size: 0.92rem;
  margin: 1.2rem 0;
}

.article th,
.article td {
  border: 1px solid var(--rule);
  padding: 0.45rem 0.6rem;
  background: var(--paper-2);
}

.article mark {
  background: #f4d9b0;
  padding: 0 0.15em;
}

.wp-block-embed__wrapper iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  border: 0;
  border-radius: 8px;
}

/* Speech bubble: 管理人 */
.vk_balloon {
  display: grid;
  grid-template-columns: 4.4rem 1fr;
  gap: 0.7rem;
  align-items: start;
  margin: 1.6rem 0;
}

.vk_balloon_icon {
  text-align: center;
}

.vk_balloon_icon figure {
  margin: 0;
}

.vk_balloon_icon_image {
  width: 3.6rem;
  height: 3.6rem;
  object-fit: cover;
  border-radius: 50%;
  background: var(--blue-soft);
}

.vk_balloon_icon_name {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.72rem;
  color: var(--ink-soft);
}

.vk_balloon_content {
  position: relative;
  background: var(--bubble);
  border-radius: 14px;
  padding: 0.85rem 1rem 0.7rem;
}

.vk_balloon_content > p {
  margin: 0.35rem 0;
}

.vk_balloon_content_before {
  position: absolute;
  left: -7px;
  top: 1.1rem;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 7px 8px 7px 0;
  border-color: transparent var(--bubble) transparent transparent;
}

.vk_balloon_content_after {
  display: none;
}

/* Point / callout */
.vk_borderBox {
  position: relative;
  margin: 1.8rem 0 1.4rem;
  padding: 1.55rem 1.1rem 0.85rem;
  background: var(--paper-2);
  border: 1px solid var(--blue);
  border-radius: 8px;
}

.vk_borderBox_title_container {
  position: absolute;
  top: -0.7rem;
  left: 0.9rem;
  background: var(--blue);
  color: #fff;
  padding: 0.12rem 0.7rem;
  border-radius: 4px;
}

.vk_borderBox_title_container i {
  display: none;
}

.vk_borderBox_title {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: #fff;
}

.vk_borderBox_body p {
  margin: 0.3rem 0;
}

.vk_alert {
  margin: 1.4rem 0;
  padding: 0.9rem 1rem;
  background: #eef4fa;
  border-left: 4px solid var(--blue);
  border-radius: 0 8px 8px 0;
}

.vk_alert.alert-warning {
  background: #f3ebe1;
  border-left-color: var(--accent);
}

.vk_alert_icon {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.vk_alert_icon_icon {
  display: none;
}

.vk_alert_icon_text {
  font-weight: 700;
  letter-spacing: 0.08em;
}

.vk_alert_icon_text,
.vk_alert_content p {
  margin: 0.25rem 0;
}

.vk_alert_content ul {
  margin: 0.2rem 0 0.15rem;
}

.has-pale-cyan-blue-background-color {
  background: var(--bubble);
}

.has-text-align-center {
  text-align: center;
}

mjx-container {
  box-sizing: border-box;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

mjx-container[display="true"] {
  display: block;
}

@media (max-width: 960px) {
  .article-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .sidebar {
    position: static;
    width: 100%;
    top: auto;
  }
}

@media (max-width: 800px) {
  .site-header-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 0.5rem;
    position: relative;
  }

  .header-search {
    display: none;
  }

  .site-header-tools {
    display: flex;
    align-items: center;
    gap: 0.05rem;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    margin-left: 0;
    padding: 0.15rem 0.75rem 0.65rem;
    background-color: #2196f3;
    background-image: linear-gradient(135deg, #2196f3, #64b5f6);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
    max-height: calc(100vh - 4.5rem);
    max-height: calc(100dvh - 4.5rem);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav-group {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .site-nav-split {
    width: 100%;
    height: 1px;
    margin: 0.2rem 0;
  }

  .site-nav a {
    display: block;
    padding: 0.7rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  }

  .hub-cards {
    grid-template-columns: 1fr;
    gap: 0;
    border: 1px solid var(--rule);
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
  }

  .hub-cards li + li .hub-card {
    border-top: 1px solid var(--rule);
  }

  .hub-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border: 0;
    border-radius: 0;
    background: #fff;
  }

  .hub-card h3 {
    margin: 0;
    flex: 1;
    font-size: 0.98rem;
  }

  .hub-card p {
    display: none;
  }

  .hub-card::after {
    content: "→";
    color: var(--ink-soft);
    font-size: 0.95rem;
  }

  .hub-section-grid {
    grid-template-columns: 1fr;
    gap: 0;
    border: 1px solid var(--rule);
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
  }

  .hub-section-card {
    flex-direction: row;
    align-items: center;
    padding: 0.85rem 1rem;
    border: 0;
    border-radius: 0;
    border-bottom: 1px solid var(--rule);
    box-shadow: none;
  }

  .hub-section-card:last-child {
    border-bottom: 0;
  }

  .hub-section-card:hover {
    box-shadow: none;
    background: #f7fbfe;
  }

  .hub-section-card h3 {
    margin: 0;
    flex: 1;
    font-size: 0.98rem;
  }

  .hub-section-card p,
  .hub-section-link {
    display: none;
  }

  .hub-section-card::after {
    content: "→";
    color: var(--ink-soft);
    font-size: 0.95rem;
  }

  .home-search-row,
  .site-search-form {
    flex-direction: column;
  }

  .post-list {
    grid-template-columns: 1fr;
  }

  .premium-release-banner-inner {
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0.7rem 0;
    flex-wrap: wrap;
  }

  .premium-release-copy {
    display: block;
    flex: 1 1 220px;
  }

  .premium-release-copy strong,
  .premium-release-copy span {
    display: block;
    white-space: normal;
  }

  .premium-release-copy span {
    margin-top: 0.15rem;
    line-height: 1.5;
  }

  .premium-release-link {
    margin-left: 0;
    font-size: 0.78rem;
  }

  .learning-log-inner {
    grid-template-columns: 1fr;
  }

  .learning-log-image {
    display: none;
  }

  .learning-log-rail {
    padding-bottom: 0;
    flex-direction: column;
    gap: 0.65rem;
  }

  .learning-log-rail li {
    width: 100%;
    padding: 0 0 0 1.7rem;
    text-align: left;
  }

  .learning-log-rail li::before {
    left: 0;
    top: 0.35rem;
    bottom: auto;
    transform: none;
  }

  .learning-log-rail li::after {
    left: 4px;
    right: auto;
    top: 1.3rem;
    bottom: -0.95rem;
    width: 2px;
    height: auto;
    background: linear-gradient(180deg, var(--blue-soft), transparent);
  }

  .learning-log-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .learning-log-primary,
  .learning-log-link {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

  .hub-cards {
    grid-template-columns: 1fr;
  }

  .post-card a {
    grid-template-columns: 1fr;
  }

  .post-card img,
  .post-card-ph {
    width: 100%;
  }

  .vk_balloon {
    grid-template-columns: 1fr;
    justify-items: stretch;
  }

  .vk_balloon_icon {
    text-align: left;
  }

  .vk_balloon_icon figure {
    display: flex;
    align-items: center;
    gap: 0.6rem;
  }

  .vk_balloon_icon_name {
    margin-top: 0;
  }

  .vk_balloon_content_before {
    left: 1.1rem;
    top: -7px;
    border-width: 0 7px 8px 7px;
    border-color: transparent transparent var(--bubble) transparent;
  }
}
