:root {
  --ink: #17211f;
  --muted: #5f6e68;
  --paper: #fbfaf6;
  --panel: #ffffff;
  --line: #dfe6e1;
  --green: #147a57;
  --green-dark: #0e5f45;
  --lime: #b8d94b;
  --blue: #2f6077;
  --amber: #d89a2b;
  --navy: #15324a;
  --shadow: 0 18px 46px rgba(23, 33, 31, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, #f7faf8 0, var(--paper) 360px),
    var(--paper);
  font-family: "Noto Sans JP", "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo, system-ui, sans-serif;
  line-height: 1.7;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 10px clamp(18px, 3vw, 42px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(223, 230, 225, 0.9);
  backdrop-filter: blur(22px);
  font-family: "BIZ UDPGothic", "Noto Sans JP", "Yu Gothic", Meiryo, system-ui, sans-serif;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 184px;
  flex: 0 0 auto;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--green), var(--blue));
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.25;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
}

.header-nav {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  min-width: 0;
}

.header-nav a:hover {
  color: var(--green);
}

.course-nav {
  flex: 0 1 auto;
  align-items: stretch;
  max-width: none;
}

.nav-top-card,
.nav-course {
  display: grid;
  align-content: center;
  padding: 9px 10px;
  border: 1px solid rgba(223, 230, 225, 0.9);
  border-left: 5px solid var(--green);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 8px 22px rgba(23, 33, 31, 0.06);
}

.nav-top-card {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 92px;
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 900;
}

.nav-top-card img {
  width: 22px;
  height: 22px;
}

.nav-course {
  gap: 8px;
  min-width: 300px;
  flex: 0 0 300px;
}

.nav-course-investigator {
  border-left-color: var(--blue);
}

.nav-course-title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.25;
}

.nav-course-title img {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
}

.nav-course-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.nav-course-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(246, 248, 243, 0.9);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.nav-top-card:hover {
  color: var(--green-dark);
  border-color: rgba(20, 122, 87, 0.34);
  background: #e9f4ed;
}

.nav-course-investigator .nav-course-links a {
  color: var(--ink);
  background: rgba(246, 248, 243, 0.9);
}

.nav-course-links a:hover {
  color: #fff;
  background: var(--green);
}

.nav-course-investigator .nav-course-links a:hover {
  background: var(--blue);
}

.nav-resource-card {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 168px;
  padding: 9px 14px;
  border: 1px solid rgba(216, 154, 43, 0.34);
  border-left: 5px solid var(--amber);
  border-radius: 8px;
  color: #6d4c12;
  background: rgba(255, 248, 232, 0.94);
  box-shadow: 0 8px 22px rgba(23, 33, 31, 0.06);
}

.nav-resource-card img {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
}

.nav-resource-card span {
  display: grid;
  gap: 2px;
}

.nav-resource-card em,
.nav-resource-card strong {
  display: block;
  line-height: 1.25;
  font-style: normal;
}

.nav-resource-card em {
  font-size: 12px;
  font-weight: 900;
}

.nav-resource-card strong {
  margin-top: 4px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
}

.nav-resource-card:hover {
  color: #fff;
  background: var(--amber);
}

.nav-resource-card:hover strong {
  color: #fff;
}

.page-toc {
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid rgba(223, 230, 225, 0.95);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 32px rgba(23, 33, 31, 0.08);
  backdrop-filter: blur(14px);
}

.page-toc strong {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.3;
}

.page-toc a {
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.page-toc a:hover {
  color: var(--green-dark);
  background: #edf5ef;
}

.page-toc-floating {
  position: fixed;
  top: 132px;
  right: clamp(16px, 3vw, 42px);
  z-index: 4;
  width: 220px;
}

.content-with-toc {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 28px;
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  align-items: start;
}

.content-with-toc > .content-main {
  min-width: 0;
}

.content-with-toc > .page-toc {
  position: sticky;
  top: 112px;
  margin-top: 72px;
}

.content-with-toc .section {
  width: 100%;
}

.quiz-content-with-toc > .page-toc {
  margin-top: 36px;
}

.hero {
  position: relative;
  min-height: min(760px, 92vh);
  display: grid;
  align-items: center;
  overflow: hidden;
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(251, 250, 246, 0.96) 0%, rgba(251, 250, 246, 0.78) 42%, rgba(251, 250, 246, 0.18) 100%),
    linear-gradient(0deg, rgba(23, 33, 31, 0.2), rgba(23, 33, 31, 0));
}

.hero-content {
  position: relative;
  width: min(720px, calc(100% - 36px));
  margin-left: clamp(18px, 7vw, 92px);
  padding: 72px 0 108px;
}

.label,
.ad-label {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 28px;
  padding: 3px 10px;
  border: 1px solid rgba(20, 122, 87, 0.22);
  border-radius: 999px;
  color: var(--green-dark);
  background: rgba(184, 217, 75, 0.2);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.hero h1 {
  margin: 18px 0 20px;
  max-width: 680px;
  font-size: clamp(34px, 6vw, 68px);
  line-height: 1.08;
  letter-spacing: 0;
}

.hero p {
  max-width: 620px;
  color: #33403c;
  font-size: clamp(16px, 2vw, 19px);
}

.hero-actions,
.quiz-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  cursor: pointer;
  letter-spacing: 0;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  color: #fff;
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  box-shadow: 0 10px 24px rgba(20, 122, 87, 0.2);
}

.button.primary:hover {
  background: var(--green-dark);
}

.button.secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.82);
  border-color: var(--line);
}

.button.full {
  width: 100%;
}

.portal-page {
  background:
    radial-gradient(circle at 20% 0%, rgba(184, 217, 75, 0.16), transparent 34%),
    linear-gradient(180deg, #f8faf7 0, var(--paper) 460px),
    var(--paper);
}

.portal-header {
  justify-content: center;
}

.portal-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  width: min(1120px, calc(100% - 36px));
  min-height: 560px;
  margin: 0 auto;
  padding: clamp(56px, 8vw, 92px) 0 56px;
}

.portal-hero-copy {
  min-width: 0;
}

.portal-hero h1 {
  margin: 18px 0 20px;
  font-size: clamp(36px, 5vw, 62px);
  line-height: 1.12;
  letter-spacing: 0;
}

.portal-hero p {
  max-width: 620px;
  color: #33403c;
  font-size: 17px;
}

.portal-hero-visual {
  position: relative;
  overflow: hidden;
  min-height: 360px;
  border: 1px solid rgba(223, 230, 225, 0.95);
  border-radius: 8px;
  background: #eef4ef;
  box-shadow: var(--shadow);
}

.portal-hero-visual::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 46%;
  background: linear-gradient(0deg, rgba(23, 33, 31, 0.34), transparent);
}

.portal-hero-visual img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
  display: block;
}

.portal-section {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: 42px 0;
}

.portal-section-heading {
  max-width: 720px;
  margin-bottom: 22px;
}

.portal-section-heading h2,
.portal-note h2 {
  margin: 8px 0 10px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.18;
}

.portal-section-heading p,
.portal-note p {
  color: var(--muted);
  font-size: 16px;
}

.portal-card-grid {
  display: grid;
  gap: 18px;
}

.portal-card {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  padding: 18px;
  border: 1px solid rgba(223, 230, 225, 0.95);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 12px 34px rgba(23, 33, 31, 0.07);
}

.portal-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
}

.portal-card h3 {
  margin: 12px 0 8px;
  font-size: 24px;
  line-height: 1.25;
}

.portal-card p {
  margin: 0;
  color: var(--muted);
}

.portal-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.portal-note-section {
  padding-bottom: 72px;
}

.portal-note {
  padding: clamp(24px, 4vw, 36px);
  border: 1px solid rgba(223, 230, 225, 0.95);
  border-left: 5px solid var(--green);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: min(1120px, calc(100% - 36px));
  margin: -56px auto 0;
  position: relative;
  z-index: 2;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.trust-strip div {
  padding: 22px 24px;
  border-right: 1px solid var(--line);
}

.trust-strip div:last-child {
  border-right: 0;
}

.trust-strip strong,
.trust-strip span {
  display: block;
}

.trust-strip span {
  color: var(--muted);
  font-size: 14px;
}

.intent-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  width: min(1120px, calc(100% - 36px));
  margin: 18px auto 0;
}

.intent-strip a {
  display: grid;
  gap: 4px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 14px 36px rgba(23, 33, 31, 0.08);
}

.intent-strip span {
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 900;
}

.intent-strip strong {
  font-size: 18px;
  line-height: 1.35;
}

.intent-strip small {
  color: var(--muted);
  font-weight: 700;
}

.purpose-section {
  padding-top: 72px;
}

.purpose-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.purpose-card,
.next-action-block {
  padding: clamp(22px, 4vw, 30px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 14px 34px rgba(23, 33, 31, 0.07);
}

.purpose-card {
  display: grid;
  align-content: start;
  gap: 12px;
}

.purpose-card > span {
  width: fit-content;
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--green-dark);
  background: #e9f4ed;
  font-size: 13px;
  font-weight: 900;
}

.purpose-card h3,
.next-action-block h2 {
  margin: 0;
  line-height: 1.3;
}

.purpose-card ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 1.2em;
  color: var(--muted);
  font-weight: 700;
}

.purpose-actions,
.next-action-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.next-action-block {
  display: grid;
  gap: 14px;
}

.credibility-section {
  padding-top: 46px;
}

.credibility-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 0.95fr;
  gap: 24px;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid rgba(47, 96, 119, 0.25);
  border-radius: 8px;
  background: #f7fbfc;
}

.credibility-card h2 {
  margin: 12px 0 8px;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.25;
}

.credibility-card p,
.credibility-card dd {
  color: var(--muted);
}

.credibility-card dl {
  display: grid;
  gap: 10px;
  margin: 0;
}

.credibility-card dl div {
  padding: 14px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--line);
}

.credibility-card dt {
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 900;
}

.credibility-card dd {
  margin: 4px 0 0;
  font-weight: 800;
}

.article-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 28px;
  width: min(1120px, calc(100% - 36px));
  margin: 64px auto 0;
  align-items: start;
}

.toc-card {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 12px;
  padding: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 16px 42px rgba(23, 33, 31, 0.08);
}

.toc-card strong {
  font-size: 18px;
}

.toc-card a {
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--muted);
  background: #f6f8f3;
  font-size: 14px;
  font-weight: 800;
}

.toc-card a:hover {
  color: var(--green-dark);
  background: #e9f4ed;
}

.article-main {
  display: grid;
  gap: 28px;
  min-width: 0;
}

.article-section {
  scroll-margin-top: 96px;
}

.lead-article,
.split-section,
.compare-section {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 1fr);
  gap: 24px;
  align-items: center;
}

.split-section {
  grid-template-columns: minmax(320px, 1fr) minmax(0, 0.92fr);
}

.article-copy,
.section-card,
.compare-section,
.quiz-promo {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.article-copy {
  padding: clamp(22px, 4vw, 34px);
}

.article-copy h2,
.compare-copy h2,
.ad-banner h2 {
  margin: 12px 0 12px;
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.22;
}

.article-copy p,
.compare-copy p,
.ad-banner p,
.quiz-promo p {
  color: var(--muted);
}

.article-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.article-points span {
  padding: 7px 10px;
  border-radius: 8px;
  color: var(--green-dark);
  background: #e9f4ed;
  font-size: 13px;
  font-weight: 900;
}

.article-image,
.wide-figure {
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #e8eeea;
}

.article-image img,
.wide-figure img,
.ad-banner img,
.step-grid img,
.card-image,
.quiz-promo img {
  display: block;
  width: 100%;
  object-fit: cover;
}

.article-image img {
  aspect-ratio: 16 / 10;
  height: auto;
}

.ad-banner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid rgba(20, 122, 87, 0.24);
  background: #fff;
  box-shadow: 0 18px 48px rgba(23, 33, 31, 0.1);
}

.ad-banner img {
  height: 100%;
  min-height: 300px;
}

.ad-banner > div {
  display: grid;
  align-content: center;
  padding: clamp(22px, 4vw, 42px);
}

.rank-list {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.rank-list div {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfaf6;
}

.rank-list strong {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  color: #fff;
  background: var(--navy);
}

.section-card {
  padding: clamp(22px, 4vw, 34px);
}

.compact-heading {
  margin-bottom: 22px;
}

.step-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.step-grid article {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.step-grid img {
  aspect-ratio: 16 / 9;
}

.step-grid span,
.step-grid h3,
.step-grid p {
  display: block;
  margin-left: 18px;
  margin-right: 18px;
}

.step-grid span {
  width: fit-content;
  margin-top: 16px;
  padding: 3px 9px;
  border-radius: 999px;
  color: #fff;
  background: var(--green);
  font-size: 12px;
  font-weight: 900;
}

.step-grid h3 {
  margin-top: 12px;
  margin-bottom: 6px;
  font-size: 18px;
  line-height: 1.35;
}

.step-grid p {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 14px;
}

.compare-section {
  grid-template-columns: 1fr;
  padding: clamp(22px, 4vw, 34px);
}

.compare-section .article-image img {
  aspect-ratio: 16 / 7;
}

.compare-table {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.compare-table > div {
  display: grid;
  grid-template-columns: 0.8fr 1.15fr 1fr;
}

.compare-table span {
  padding: 14px 16px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.compare-table span:last-child {
  border-right: 0;
}

.compare-table > div:last-child span {
  border-bottom: 0;
}

.table-head span {
  color: #fff;
  background: var(--navy);
  font-weight: 900;
}

.curriculum-section {
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.curriculum-table {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.curriculum-table > div {
  display: grid;
  grid-template-columns: 1fr 110px 1.25fr 1fr;
}

.curriculum-table.compact-curriculum > div {
  grid-template-columns: 1fr 92px 1.35fr;
}

.curriculum-table.investigator-curriculum > div {
  grid-template-columns: 1.1fr 92px 1.3fr;
}

.curriculum-table span {
  padding: 14px 16px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.curriculum-table span:nth-child(2) {
  font-weight: 900;
  color: var(--green-dark);
  background: #f2f8f2;
}

.curriculum-table .table-head span {
  color: #fff;
  background: var(--navy);
}

.curriculum-table span:last-child {
  border-right: 0;
}

.curriculum-table > div:last-child span {
  border-bottom: 0;
}

.section {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: 88px 0 0;
}

.course-section {
  padding-top: 78px;
}

.course-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.course-card {
  display: grid;
  grid-template-columns: 0.9fr 1fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 14px 34px rgba(23, 33, 31, 0.07);
}

.course-card img {
  width: 100%;
  height: 100%;
  min-height: 300px;
  object-fit: cover;
}

.course-card > div {
  display: grid;
  align-content: center;
  padding: 24px;
}

.course-card h3 {
  margin: 14px 0 8px;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.28;
}

.course-card p {
  color: var(--muted);
}

.course-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 28px;
}

.section-heading h2 {
  margin: 12px 0 10px;
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.22;
}

.section-heading p:not(.label) {
  color: var(--muted);
}

.feature-grid,
.job-grid,
.source-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.feature-grid article,
.source-card,
.job-card,
.quiz-card,
.test-panel,
.material-row,
details {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.feature-grid article,
.source-card,
.job-card {
  padding: 24px;
}

.icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  color: #fff;
  background: var(--blue);
  font-weight: 900;
}

.feature-grid h3,
.job-card h3 {
  margin: 18px 0 8px;
  font-size: 20px;
}

.feature-grid p,
.source-card p,
.job-card p,
.job-card li,
.note {
  color: var(--muted);
}

.source-grid {
  grid-template-columns: repeat(4, 1fr);
}

.source-card {
  display: flex;
  flex-direction: column;
  min-height: 260px;
}

.source-card.official {
  border-color: rgba(47, 96, 119, 0.34);
  background: #f7fbfc;
}

.source-card h3 {
  margin: 14px 0 8px;
  font-size: 18px;
  line-height: 1.45;
}

.source-card a {
  margin-top: auto;
  color: var(--green-dark);
  font-weight: 900;
}

.source-tag {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 26px;
  padding: 2px 9px;
  border-radius: 999px;
  color: #fff;
  background: var(--blue);
  font-size: 12px;
  font-weight: 900;
}

.source-note {
  margin: 18px 0 0;
  padding: 16px 18px;
  border-left: 4px solid var(--amber);
  background: #fff8e8;
  border-radius: 0 8px 8px 0;
  color: #66543b;
}

.affiliate-compare {
  display: grid;
  overflow: hidden;
  margin: 0 0 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.affiliate-compare > div {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr 1.2fr 0.55fr;
}

.affiliate-compare span {
  padding: 14px 16px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.affiliate-compare span:last-child {
  border-right: 0;
}

.affiliate-compare > div:last-child span {
  border-bottom: 0;
}

.test-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 18px;
  align-items: start;
}

.quiz-promo {
  display: grid;
  grid-template-columns: 0.9fr 1fr;
  gap: 0;
  overflow: hidden;
  margin-bottom: 18px;
}

.quiz-promo img {
  height: 100%;
  min-height: 240px;
}

.quiz-promo div {
  display: grid;
  align-content: center;
  padding: clamp(20px, 4vw, 34px);
}

.quiz-promo h3 {
  margin: 12px 0 8px;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.28;
}

.test-panel,
.quiz-card {
  padding: 24px;
}

.score-card {
  margin-bottom: 16px;
  padding: 18px;
  border-radius: 8px;
  background: #edf5ef;
}

.score-card span,
.score-card strong {
  display: block;
}

.score-card strong {
  margin-top: 6px;
  font-size: 30px;
  line-height: 1;
}

.quiz-status {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.quiz-status span {
  display: block;
  padding: 9px 10px;
  border-radius: 8px;
  color: var(--green-dark);
  background: #f2f8f2;
  font-size: 13px;
  font-weight: 900;
}

.test-panel .button + .button {
  margin-top: 10px;
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
}

.note {
  font-size: 13px;
}

.quiz-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.quiz-card h3 {
  min-height: 72px;
  margin: 16px 0 18px;
  font-size: clamp(20px, 3vw, 28px);
  line-height: 1.45;
}

.choices {
  display: grid;
  gap: 10px;
}

.choice {
  display: grid;
  grid-template-columns: 32px 1fr;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 54px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.choice:hover,
.choice.selected {
  border-color: var(--green);
  background: #f0f7f2;
}

.choice.correct {
  border-color: var(--green);
  background: #e6f4ec;
}

.choice.wrong {
  border-color: #c8534f;
  background: #fff0ef;
}

.choice-index {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  color: #fff;
  background: var(--green);
  font-weight: 900;
}

.answer-box {
  margin-top: 16px;
  padding: 16px;
  border-left: 4px solid var(--green);
  background: #f6f8f3;
  border-radius: 0 8px 8px 0;
}

.answer-box p {
  margin: 6px 0 0;
  color: var(--muted);
}

.result-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.job-card {
  position: relative;
  overflow: hidden;
}

.card-image {
  height: 170px;
  margin: -24px -24px 20px;
}

.wide-figure {
  margin-bottom: 18px;
}

.wide-figure img {
  aspect-ratio: 16 / 6;
}

.job-card.featured {
  border-color: rgba(20, 122, 87, 0.45);
  box-shadow: 0 18px 48px rgba(20, 122, 87, 0.12);
}

.job-card ul {
  padding-left: 20px;
  margin: 18px 0 22px;
}

.material-list {
  display: grid;
  gap: 12px;
}

.material-row {
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 14px;
  align-items: center;
  padding: 18px;
}

.row-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  color: var(--ink);
  background: #f1dca7;
  font-weight: 900;
}

.material-row strong,
.material-row small {
  display: block;
}

.material-row small {
  color: var(--muted);
}

details {
  padding: 18px 20px;
  margin-bottom: 10px;
}

summary {
  cursor: pointer;
  font-weight: 800;
}

details p {
  margin-bottom: 0;
  color: var(--muted);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1120px, calc(100% - 36px));
  margin: 88px auto 0;
  padding: 30px 0 42px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer p {
  margin: 6px 0 0;
}

.site-footer a {
  color: var(--green-dark);
  font-weight: 800;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 16px;
}

.legal-page {
  width: min(960px, calc(100% - 36px));
  margin: 0 auto;
  padding: 64px 0 0;
}

.legal-content {
  padding: clamp(24px, 5vw, 42px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.legal-content h1 {
  margin: 14px 0 18px;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.15;
}

.legal-content h2 {
  margin: 34px 0 10px;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.3;
}

.legal-content p {
  color: #46534f;
}

.legal-content a {
  color: var(--green-dark);
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-content code {
  padding: 2px 5px;
  border-radius: 4px;
  background: #eef4ef;
}

.info-table {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.info-table div {
  display: grid;
  grid-template-columns: 180px 1fr;
  border-bottom: 1px solid var(--line);
}

.info-table div:last-child {
  border-bottom: 0;
}

.info-table span,
.info-table strong {
  padding: 14px 16px;
}

.info-table span {
  color: var(--muted);
  background: #f6f8f3;
  font-weight: 900;
}

.info-table strong {
  font-weight: 800;
}

.article-page {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
}

.article-hero {
  padding: 72px 0 38px;
  border-bottom: 1px solid var(--line);
}

.article-hero h1 {
  max-width: 900px;
  margin: 18px 0;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.15;
}

.article-hero p {
  max-width: 760px;
  color: var(--muted);
  font-size: 18px;
}

.article-hero-image {
  margin: 30px 0 0;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #e8eeea;
}

.article-hero-image img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 46px;
  align-items: start;
  padding-top: 38px;
}

.article-sidebar {
  grid-column: 2;
  position: sticky;
  top: 92px;
}

.article-sidebar nav {
  display: grid;
  gap: 8px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(223, 230, 225, 0.95);
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(23, 33, 31, 0.08);
  backdrop-filter: blur(14px);
}

.article-sidebar a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.article-sidebar a:hover {
  color: var(--green);
}

.article-body {
  grid-column: 1;
  min-width: 0;
}

.article-body section {
  scroll-margin-top: 96px;
  margin-bottom: 44px;
}

.article-body h2 {
  margin: 0 0 14px;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.28;
}

.article-body p {
  color: #46534f;
}

.article-lead {
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.affiliate-box,
.mini-cta,
.summary-box {
  margin: 34px 0 44px;
  padding: 24px;
  border-radius: 8px;
  border: 1px solid rgba(20, 122, 87, 0.3);
  background: #f2f8f2;
}

.affiliate-box {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 22px;
  align-items: center;
}

.affiliate-box h2,
.summary-box h2 {
  margin: 12px 0 8px;
  font-size: clamp(22px, 3vw, 30px);
}

.point-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.point-list div {
  padding: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.point-list strong {
  display: block;
  margin-bottom: 6px;
  color: var(--green-dark);
  font-size: 17px;
}

.check-list {
  display: grid;
  gap: 10px;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding: 14px 16px 14px 42px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 20px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
}

.job-grid.compact {
  grid-template-columns: repeat(3, 1fr);
}

.job-grid.compact .job-card {
  padding: 20px;
}

.article-materials {
  margin-top: 18px;
}

.quiz-page {
  background:
    linear-gradient(180deg, #f5faf7 0, var(--paper) 360px),
    var(--paper);
}

.quiz-hero {
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  width: min(1120px, calc(100% - 36px));
  margin: 34px auto 0;
}

.quiz-hero img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: cover;
}

.quiz-hero h1 {
  margin: 14px 0 12px;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.12;
}

.quiz-hero p:not(.label) {
  color: var(--muted);
  font-size: 18px;
}

.quiz-only {
  padding-top: 36px;
}

.quiz-only .test-layout {
  grid-template-columns: 300px 1fr;
}

.mini-link-section {
  padding-top: 28px;
}

.coming-soon-panel {
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

@media (max-width: 860px) {
  .site-header {
    align-items: center;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.94);
  }

  .header-nav {
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
  }

  .course-nav {
    max-width: none;
  }

  .nav-course {
    min-width: min(100%, 320px);
    flex: 1 1 280px;
  }

  .nav-top-card {
    min-width: 92px;
    flex: 0 0 92px;
  }

  .nav-resource-card {
    min-width: min(100%, 320px);
    flex: 0 1 220px;
  }

  .hero {
    min-height: 720px;
  }

  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(251, 250, 246, 0.98) 0%, rgba(251, 250, 246, 0.86) 56%, rgba(251, 250, 246, 0.3) 100%),
      linear-gradient(0deg, rgba(23, 33, 31, 0.24), rgba(23, 33, 31, 0));
  }

  .hero-content {
    margin: 0 auto;
    padding-top: 58px;
  }

  .trust-strip,
  .intent-strip,
  .content-with-toc,
  .purpose-grid,
  .credibility-card,
  .course-grid,
  .course-card,
  .feature-grid,
  .source-grid,
  .job-grid,
  .test-layout,
  .article-shell,
  .lead-article,
  .split-section,
  .ad-banner,
  .quiz-promo,
  .step-grid {
    grid-template-columns: 1fr;
  }

  .toc-card {
    position: static;
  }

  .content-with-toc > .page-toc {
    position: static;
    order: -1;
    margin-top: 28px;
  }

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

  .page-toc strong {
    grid-column: 1 / -1;
  }

  .article-shell {
    margin-top: 36px;
  }

  .compare-table {
    overflow-x: auto;
  }

  .compare-table > div,
  .curriculum-table > div,
  .affiliate-compare > div {
    min-width: 720px;
  }

  .curriculum-table,
  .affiliate-compare {
    overflow-x: auto;
  }

  .trust-strip div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .trust-strip div:last-child {
    border-bottom: 0;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-nav {
    justify-content: flex-start;
  }

  .article-layout,
  .affiliate-box,
  .point-list,
  .job-grid.compact,
  .quiz-hero,
  .quiz-only .test-layout {
    grid-template-columns: 1fr;
  }

  .article-sidebar {
    position: static;
    grid-column: auto;
  }

  .article-body {
    grid-column: auto;
  }

  .portal-hero,
  .portal-card {
    grid-template-columns: 1fr;
  }

  .portal-hero {
    min-height: 0;
    padding-top: 42px;
  }

  .portal-hero-visual,
  .portal-hero-visual img {
    min-height: 260px;
  }

  .portal-card {
    gap: 18px;
  }

  .portal-card img {
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 520px) {
  .portal-hero h1 {
    font-size: 34px;
  }

  .portal-header .brand {
    min-width: 0;
  }

  .portal-section,
  .portal-hero {
    width: min(100% - 28px, 1120px);
  }

  .hero h1 {
    font-size: 34px;
  }

  .button {
    width: 100%;
  }

  .quiz-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .material-row {
    grid-template-columns: 42px 1fr;
  }

  .info-table div {
    grid-template-columns: 1fr;
  }

  .row-icon {
    width: 42px;
    height: 42px;
  }
}
