body {
  letter-spacing: 0.01em;
  background:
    radial-gradient(circle at top left, rgba(12, 104, 164, 0.08), transparent 28%),
    radial-gradient(circle at top right, rgba(15, 118, 110, 0.06), transparent 24%);
}

.md-typeset h1,
.md-typeset h2,
.md-typeset h3 {
  font-weight: 800;
}

.md-typeset h1 {
  color: #0f4c81;
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.md-typeset blockquote {
  border-left: 0.2rem solid #0f766e;
  background: rgba(255, 255, 255, 0.72);
  border-radius: 1rem;
  padding: 1rem 1.2rem;
}

.md-typeset table:not([class]) {
  font-size: 0.92rem;
}

.md-typeset {
  font-size: 0.9rem;
}

.md-typeset p,
.md-typeset li {
  line-height: 1.72;
}

.md-typeset h2 {
  margin-top: 2.8rem;
  font-size: 1.55rem;
}

.md-typeset h3 {
  margin-top: 1.8rem;
  font-size: 1.12rem;
}

body[data-md-color-scheme="default"] .md-main__inner {
  margin-top: 1.2rem;
}

body[data-md-color-scheme="default"] .md-content__inner > h1:first-of-type {
  max-width: 12ch;
  margin-bottom: 0.75rem;
}

body[data-md-color-scheme="default"] .md-content__inner > blockquote:first-of-type {
  max-width: 46rem;
  border: 1px solid rgba(15, 76, 129, 0.12);
  box-shadow: 0 20px 60px rgba(15, 76, 129, 0.08);
}

body[data-md-color-scheme="default"] .md-content__inner > h2:nth-of-type(1) {
  margin-top: 2rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(15, 76, 129, 0.08);
}

body[data-md-color-scheme="default"] .md-content__inner > h2:nth-of-type(2) {
  margin-top: 2.4rem;
}

.hero-intro {
  margin: 1.2rem 0 2rem;
  padding: 1.6rem 1.4rem;
  border: 1px solid rgba(15, 76, 129, 0.12);
  border-radius: 1.4rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(246, 250, 252, 0.95));
  box-shadow: 0 20px 60px rgba(15, 76, 129, 0.08);
}

.hero-kicker {
  margin: 0 0 0.6rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #0f766e;
}

.hero-intro h2 {
  margin: 0 0 0.85rem;
  font-size: clamp(1.7rem, 3vw, 2.45rem);
  line-height: 1.1;
}

.hero-intro p:last-child {
  margin-bottom: 0;
  max-width: 48rem;
}

.chapter-opening-art {
  margin: 1.2rem 0 1.6rem;
}

.chapter-opening-art img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 1.5rem;
  border: 1px solid rgba(15, 76, 129, 0.1);
  box-shadow: 0 20px 50px rgba(15, 76, 129, 0.08);
}

.chapter-visual {
  margin: 1.4rem 0 2.1rem;
}

.chapter-visual--hero {
  padding: 1rem;
  border-radius: 1.4rem;
  border: 1px solid rgba(15, 76, 129, 0.1);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(245, 250, 253, 0.92));
  box-shadow: 0 18px 46px rgba(15, 76, 129, 0.06);
}

.chapter-visual img,
.chapter-visual-card img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 1rem;
}

.chapter-visual-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 1.35rem 0 2rem;
}

.chapter-visual-card {
  margin: 0;
  padding: 0.9rem;
  border-radius: 1.25rem;
  border: 1px solid rgba(15, 76, 129, 0.1);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 36px rgba(15, 76, 129, 0.06);
}

.chapter-visual-card figcaption {
  margin-top: 0.8rem;
  color: #50687b;
  font-size: 0.84rem;
  line-height: 1.65;
}

.entry-grid,
.quickstart-grid {
  display: grid;
  gap: 1rem;
  margin: 1rem 0 2rem;
}

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

.quickstart-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.entry-card,
.quickstart-card {
  padding: 1.1rem 1.1rem 1rem;
  border-radius: 1.15rem;
  border: 1px solid rgba(15, 76, 129, 0.12);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 14px 35px rgba(15, 76, 129, 0.06);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.entry-card:hover,
.quickstart-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(15, 76, 129, 0.1);
}

.entry-card--primary {
  background: linear-gradient(180deg, rgba(245, 251, 250, 1), rgba(255, 255, 255, 0.96));
  border-color: rgba(15, 118, 110, 0.18);
}

.entry-card h3,
.quickstart-card h3 {
  margin-top: 0;
  margin-bottom: 0.65rem;
}

.entry-card p,
.quickstart-card p {
  margin: 0 0 0.65rem;
}

.quickstart-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  padding-top: 0.15rem;
}

.entry-card .entry-cta {
  display: inline-block;
  margin-top: 0.15rem;
  margin-bottom: 0.15rem;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  background: #0f4c81;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 10px 25px rgba(15, 76, 129, 0.18);
}

.entry-card .entry-cta:hover {
  background: #0b3b65;
  color: #fff;
}

.entry-card--primary .entry-cta {
  background: #0f766e;
  box-shadow: 0 10px 25px rgba(15, 118, 110, 0.18);
}

.entry-card--primary .entry-cta:hover {
  background: #0b5b55;
}

.entry-card ul {
  margin: 0.2rem 0 0;
}

.quickstart-cta {
  display: inline-block;
  padding: 0.52rem 0.85rem;
  border-radius: 999px;
  background: #0f4c81;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.quickstart-cta:hover {
  background: #0b3b65;
  color: #fff;
}

.quickstart-cta--ghost {
  background: rgba(15, 76, 129, 0.08);
  color: #0f4c81;
  border: 1px solid rgba(15, 76, 129, 0.14);
}

.quickstart-cta--ghost:hover {
  background: rgba(15, 76, 129, 0.14);
  color: #0b3b65;
}

.quickstart-card p:last-child,
.entry-card ul:last-child {
  margin-bottom: 0;
}

.md-footer {
  background: linear-gradient(180deg, rgba(243, 248, 252, 0.92), rgba(233, 242, 248, 0.98));
}

.md-footer-meta {
  background: rgba(15, 76, 129, 0.08);
}

.md-footer__link {
  position: relative;
  margin: 0.7rem 0;
  padding: 1.1rem 1.15rem;
  border-radius: 1.15rem;
  border: 1px solid rgba(15, 76, 129, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 250, 252, 0.95));
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
  overflow: hidden;
}

.md-footer__link::after {
  content: "";
  position: absolute;
  inset: auto -1.4rem -1.4rem auto;
  width: 5rem;
  height: 5rem;
  background: radial-gradient(circle, rgba(15, 118, 110, 0.12), transparent 68%);
  pointer-events: none;
}

.md-footer__link:hover {
  transform: translateY(-2px);
  border-color: rgba(15, 118, 110, 0.24);
  box-shadow: 0 16px 36px rgba(15, 76, 129, 0.08);
}

.md-footer__title {
  font-weight: 800;
}

.md-footer__direction {
  display: inline-flex;
  margin-bottom: 0.35rem;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0f766e;
}

.md-footer__link--prev {
  border-top-left-radius: 1.4rem;
  border-bottom-left-radius: 1.4rem;
}

.md-footer__link--next {
  border-top-right-radius: 1.4rem;
  border-bottom-right-radius: 1.4rem;
}

.md-footer__link .md-ellipsis {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 1rem;
  line-height: 1.35;
}

.footer-chapter-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.3rem;
  padding: 0.24rem 0.55rem;
  border-radius: 999px;
  background: rgba(15, 76, 129, 0.1);
  color: #0f4c81;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
}

.footer-chapter-text {
  min-width: 0;
}

.md-footer__link.is-home-link {
  border-color: rgba(15, 118, 110, 0.24);
  background: linear-gradient(180deg, rgba(240, 251, 249, 0.98), rgba(255, 255, 255, 0.96));
}

.md-footer__link.is-home-link .md-footer__direction::before {
  content: "起點";
  margin-right: 0.5rem;
  padding: 0.15rem 0.4rem;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.12);
}

.md-footer__link.is-special-link {
  border-style: dashed;
  background: linear-gradient(180deg, rgba(250, 251, 255, 0.98), rgba(255, 255, 255, 0.96));
}

.md-footer__link.is-special-link .md-footer__direction::before {
  content: "延伸";
  margin-right: 0.5rem;
  padding: 0.15rem 0.4rem;
  border-radius: 999px;
  background: rgba(15, 76, 129, 0.1);
}

.md-footer__button {
  align-self: center;
}

@media (max-width: 900px) {
  .md-typeset h1 {
    font-size: 2rem;
  }

  .entry-grid,
  .quickstart-grid,
  .chapter-visual-grid {
    grid-template-columns: 1fr;
  }

  .hero-intro {
    padding: 1.15rem 1rem;
  }

  .md-footer__link .md-ellipsis {
    gap: 0.5rem;
  }

  .footer-chapter-no {
    min-width: 2rem;
    padding-inline: 0.45rem;
  }
}
