.beginner-body {
  --beginner-ink: #4b3a24;
  --beginner-muted: #725f41;
  --beginner-teal: #c9821f;
  --beginner-soft: #fff1c9;
  background: #fffaf0;
}

.beginner-main {
  padding-top: calc(var(--catalog-header-height) + 20px);
}

.beginner-body .catalog-nav a.active {
  color: #8f5b18;
  background: #fff1c9;
}

.beginner-body .header-start-link {
  color: #fff;
  background: #c9821f;
  box-shadow: 0 7px 18px rgba(119, 82, 24, 0.18);
}

.beginner-body .back-to-top {
  border-color: #d8a14d;
  color: #5f421d;
  background: rgba(255, 232, 180, 0.86);
}

.beginner-hero {
  position: relative;
  isolation: isolate;
  min-height: 410px;
  padding: 44px;
  display: block;
  overflow: hidden;
  border: 1px solid #dfb562;
  border-radius: 26px;
  color: var(--beginner-ink);
  background: #f5d487;
  box-shadow: 0 18px 42px rgba(119, 82, 24, 0.13);
}

.beginner-hero-image {
  position: absolute;
  z-index: -1;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
  object-position: center;
}

.beginner-hero > div:first-of-type {
  width: min(44%, 520px);
  position: relative;
  z-index: 1;
}

.beginner-hero > div:first-of-type > p,
.beginner-section-heading > p,
.beginner-intro > div > p,
.romaji-method-note p,
.step-up-banner p {
  margin: 0 0 10px;
  color: #7d5319;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.11em;
}

.beginner-hero h1 {
  margin: 0;
  font-size: clamp(32px, 4vw, 46px);
  line-height: 1.18;
  letter-spacing: -0.025em;
}

.beginner-hero > div:first-of-type > span {
  max-width: 650px;
  margin-top: 24px;
  display: block;
  color: #5e482c;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.9;
}

.beginner-hero > div:first-of-type > a {
  min-height: 58px;
  margin-top: 28px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  gap: 20px;
  border-radius: 15px;
  border: 1px solid #dfb562;
  color: #604014;
  background: #fff9e9;
  font-size: 17px;
  font-weight: 900;
  text-decoration: none;
}

.beginner-hero-panel {
  padding: 28px;
  border: 1px solid #d9a753;
  border-radius: 22px;
  background: #ffe9b8;
}

.beginner-hero-panel > strong {
  font-size: 17px;
}

.beginner-hero-panel ol {
  margin: 19px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
  list-style: none;
}

.beginner-hero-panel li {
  min-height: 64px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 14px;
  border-radius: 15px;
  border: 1px solid #edca83;
  background: #fff2d4;
  font-size: 16px;
  font-weight: 800;
}

.beginner-hero-panel li b {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 11px;
  color: #fff;
  background: #d8952b;
}

.beginner-intro {
  margin-top: 28px;
  padding: 34px;
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.1fr);
  gap: 48px;
  border: 1px solid #ead5a8;
  border-radius: 26px;
  background: #fff;
}

.beginner-intro h2,
.beginner-section-heading h2,
.romaji-method-note h2,
.step-up-banner h2 {
  margin: 0;
  color: var(--beginner-ink);
  font-size: clamp(24px, 2.5vw, 31px);
  line-height: 1.3;
  letter-spacing: -0.025em;
}

.beginner-intro > p {
  margin: 0;
  color: var(--beginner-muted);
  font-size: 18px;
  font-weight: 700;
  line-height: 2;
}

.romaji-method-note {
  margin-top: 22px;
  padding: 28px 32px;
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 24px;
  align-items: center;
  border-radius: 24px;
  color: var(--beginner-ink);
  border: 1px solid #ecd095;
  background: #fff0ca;
}

.romaji-method-note > div:first-child {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  color: #fff;
  background: #d8952b;
  font-size: 27px;
  font-weight: 900;
}

.romaji-method-note h2 {
  font-size: 25px;
}

.romaji-method-note span {
  margin-top: 10px;
  display: block;
  color: #6b5637;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.85;
}

.beginner-practice,
.beginner-evaluation {
  padding-top: 48px;
}

.beginner-section-heading {
  max-width: 900px;
}

.beginner-section-heading > span {
  margin-top: 12px;
  display: block;
  color: var(--beginner-muted);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.8;
}

.beginner-stages {
  margin-top: 24px;
  display: grid;
  gap: 24px;
}

.beginner-stage {
  padding: 28px;
  border: 1px solid #ead5a8;
  border-radius: 28px;
  background: #fffdf8;
}

.beginner-stage-heading {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 2px 15px;
  align-items: center;
}

.beginner-stage-heading > b {
  width: 52px;
  height: 52px;
  grid-row: 1 / 3;
  display: grid;
  place-items: center;
  border-radius: 15px;
  color: #fff;
  background: #d8952b;
  font-size: 17px;
}

.beginner-stage-heading h3 {
  margin: 0;
  color: var(--beginner-ink);
  font-size: 25px;
}

.beginner-stage-heading p {
  margin: 2px 0 0;
  color: var(--beginner-muted);
  font-size: 15px;
  font-weight: 700;
}

.beginner-course-grid {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 13px;
}

.beginner-course-card {
  position: relative;
  min-height: 276px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  border: 1px solid #ead5a8;
  border-radius: 20px;
  color: var(--beginner-ink);
  background: #fff;
  box-shadow: 0 8px 24px rgba(24, 56, 69, 0.06);
  text-decoration: none;
  transition: 150ms ease;
}

.beginner-course-card:hover {
  border-color: #d89b38;
  box-shadow: 0 17px 38px rgba(119, 82, 24, 0.13);
  transform: translateY(-4px);
}

.beginner-course-icon {
  width: 66px;
  height: 66px;
  display: block;
}

.beginner-course-icon img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 17px;
  object-fit: cover;
}

.beginner-course-order {
  position: absolute;
  top: 21px;
  right: 20px;
  color: #7d6847;
  font-size: 13px;
  font-weight: 900;
}

.beginner-course-card h4 {
  margin: 17px 0 0;
  font-size: 21px;
  line-height: 1.35;
}

.beginner-course-reading {
  margin-top: 3px;
  display: block;
  color: #876a3d;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.beginner-course-card > p {
  margin: 8px 0 16px;
  color: var(--beginner-muted);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.65;
}

.beginner-course-footer {
  margin-top: auto;
  padding-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid #eadcc0;
}

.beginner-course-footer strong {
  color: #74613f;
  font-size: 13px;
}

.beginner-course-footer b {
  color: var(--beginner-teal);
  font-size: 14px;
}

.evaluation-formula {
  margin-top: 24px;
  padding: 17px 20px;
  border-left: 4px solid #d8952b;
  color: #59482f;
  background: #fff9ee;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.75;
}

.evaluation-formula strong {
  margin-right: 12px;
  color: var(--beginner-ink);
}

.evaluation-table-wrap {
  margin-top: 18px;
  overflow-x: auto;
  border: 1px solid #e5d5b7;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(24, 56, 69, 0.06);
}

.evaluation-table {
  width: 100%;
  min-width: 760px;
  border-collapse: separate;
  border-spacing: 0;
  color: var(--beginner-ink);
  font-size: 14px;
  line-height: 1.55;
}

.evaluation-table th,
.evaluation-table td {
  padding: 13px 16px;
  border-right: 1px solid #eee3cf;
  border-bottom: 1px solid #eee3cf;
  text-align: left;
  vertical-align: middle;
}

.evaluation-table thead th {
  color: #5f4b2e;
  background: #fff4dc;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.evaluation-table thead th:first-child {
  border-radius: 17px 0 0;
}

.evaluation-table thead th:last-child {
  border-radius: 0 17px 0 0;
}

.evaluation-table tr > :last-child {
  border-right: 0;
}

.evaluation-table tbody tr:last-child > * {
  border-bottom: 0;
}

.evaluation-table tbody tr:nth-child(even) > * {
  background: #fffcf7;
}

.evaluation-table tbody th {
  width: 82px;
  text-align: center;
}

.evaluation-table tbody th b {
  min-width: 48px;
  padding: 7px 8px;
  display: inline-block;
  border-radius: 12px;
  color: #fff;
  background: #d8952b;
  font-size: 18px;
  line-height: 1.1;
}

.evaluation-table tr[data-grade="secret"] > * {
  color: #6d4b16;
  background: #fff7dc;
}

.evaluation-practical {
  margin-top: 28px;
  padding: 24px;
  border: 1px solid #e5d5b7;
  border-radius: 22px;
  background: #fffdf8;
}

.evaluation-practical h3 {
  margin: 0;
  color: var(--beginner-ink);
  font-size: 21px;
}

.evaluation-practical > p {
  margin: 9px 0 0;
  color: var(--beginner-muted);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.75;
}

.evaluation-practical .evaluation-table-wrap {
  margin-top: 15px;
  box-shadow: none;
}

.evaluation-use-table {
  min-width: 620px;
}

.evaluation-use-table tbody th {
  width: 145px;
  color: #6a4b20;
  background: #fff8e8;
  font-size: 15px;
}

.evaluation-caution {
  margin: 14px 0 0;
  padding: 16px 18px;
  border-left: 4px solid #d69a42;
  color: #665337;
  background: #fff9ee;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.8;
}

.step-up-banner {
  margin: 46px 0 4px;
  padding: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  border-radius: 28px;
  border: 1px solid #b8d4d1;
  background: #e8f4f2;
}

.step-up-banner h2 {
  color: #173f4a;
  font-size: 30px;
}

.step-up-banner span {
  margin-top: 9px;
  display: block;
  color: #45646c;
  font-size: 16px;
  font-weight: 700;
}

.step-up-banner > a {
  min-width: 280px;
  min-height: 68px;
  padding: 10px 12px 10px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-radius: 15px;
  border: 2px solid #0f6f67;
  color: #fff;
  background: #167d72;
  box-shadow: 0 9px 20px rgba(23, 79, 75, 0.2);
  font-size: 16px;
  font-weight: 900;
  text-decoration: none;
}

.step-up-banner > a:hover {
  color: #fff;
  background: #0e665e;
}

.step-up-banner > div > p {
  color: #247b70;
}

.beginner-body .site-footer {
  border-color: #ddb369;
  color: #553d1f;
  background: #f5d487;
}

.beginner-body .site-footer .footer-brand strong,
.beginner-body .site-footer nav strong {
  color: #4b351b;
}

.beginner-body .site-footer .footer-brand > span {
  color: #825819;
}

.beginner-body .site-footer .footer-brand p,
.beginner-body .site-footer nav a {
  color: #674b26;
}

.beginner-body .site-footer nav a:hover {
  color: #2f2111;
}

.beginner-body .site-footer .footer-bottom {
  border-top-color: rgba(85, 61, 31, 0.22);
  color: #72552f;
}

@media (max-width: 900px) {
  .beginner-hero {
    padding: 40px;
  }

  .beginner-hero > div:first-of-type {
    width: min(50%, 520px);
  }

  .beginner-intro {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .evaluation-table {
    min-width: 720px;
  }
}

@media (max-width: 650px) {
  .beginner-hero {
    padding: 30px 23px;
    border-radius: 24px;
  }

  .beginner-hero h1 {
    font-size: 36px;
  }

  .beginner-hero > div:first-of-type {
    width: 58%;
  }

  .beginner-intro,
  .beginner-stage {
    padding: 22px;
  }

  .romaji-method-note {
    grid-template-columns: 1fr;
  }

  .evaluation-practical {
    padding: 20px 16px;
  }

  .step-up-banner {
    align-items: stretch;
    flex-direction: column;
  }
}
