:root {
  color-scheme: light;
  --bg: #f7f4ed;
  --surface: #fffdf8;
  --surface-strong: #ffffff;
  --text: #253032;
  --muted: #687477;
  --line: #ded8cc;
  --accent: #256d7b;
  --accent-strong: #174f5b;
  --warm: #f4b942;
  --soft: #d9ebe3;
  --code-bg: #1f282b;
  --code-text: #f4f7f5;
  font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo, system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

.site-header-inner,
.footer-inner,
.footer-copy {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 253, 248, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 12px 0;
}

.brand,
.site-nav,
.tag-row,
.category-grid,
.article-grid {
  display: flex;
}

.brand {
  align-items: center;
  gap: 10px;
  font-weight: 800;
  text-decoration: none;
}

.brand-text {
  display: grid;
  gap: 0;
  line-height: 1.25;
}

.brand-name {
  font-size: 1rem;
}

.brand-subtitle {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.brand-mark,
.hero-character {
  display: grid;
  place-items: center;
  background: var(--accent);
  color: #ffffff;
  font-weight: 800;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 8px;
}

.site-nav {
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  color: var(--muted);
  font-size: 0.95rem;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  border-radius: 8px;
  padding: 0 10px;
}

.site-nav a:hover {
  background: var(--soft);
  color: var(--accent-strong);
}

.site-nav .nav-primary {
  background: var(--accent);
  color: #ffffff;
  font-weight: 800;
  padding: 0 14px;
}

.site-nav .nav-primary:hover {
  background: var(--accent-strong);
  color: #ffffff;
}

.site-nav a,
.text-link,
.back-link,
.button-link,
.secondary-link {
  text-decoration: none;
}

.text-link:hover,
.back-link:hover,
.button-link:hover,
.secondary-link:hover {
  color: var(--accent-strong);
  text-decoration: underline;
}

.hero,
.page-heading,
.content-section,
.article-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(480px, 0.98fr) minmax(380px, 0.88fr);
  gap: clamp(30px, 4vw, 46px);
  align-items: start;
  padding: 46px 0 28px;
}

.hero-copy {
  display: grid;
  align-content: center;
  gap: 18px;
}

.hero-copy > p {
  margin: 0;
}

.hero-copy h1,
.page-heading h1,
.article-header h1 {
  margin: 0;
  line-height: 1.2;
  letter-spacing: 0;
}

.hero-copy h1 {
  font-size: clamp(2.8rem, 4.4vw, 3.6rem);
  max-width: 820px;
  white-space: nowrap;
}

.hero-copy h1 span {
  display: block;
}

.hero-copy p,
.page-heading p,
.lead {
  color: var(--muted);
  max-width: 760px;
}

.hero-copy .hero-lead {
  display: grid;
  gap: 4px;
  max-width: 580px;
  color: #4d5a5d;
  font-size: clamp(1.02rem, 1.3vw, 1.12rem);
  line-height: 1.85;
}

.hero-lead span {
  display: block;
}

.hero-lead span + span {
  color: var(--muted);
}

.eyebrow,
.category-label {
  color: var(--accent-strong);
  font-weight: 800;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 2px;
}

.hero-support-link {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin: -8px 0 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.hero-support-link span {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.35em;
}

.hero-support-link a {
  color: var(--accent-strong);
  font-weight: 800;
  text-decoration: none;
}

.hero-support-link a:hover {
  color: var(--accent-strong);
  text-decoration: underline;
}

.secondary-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--accent-strong);
  font-weight: 800;
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2px;
}

.page-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.hero-facts span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--accent-strong);
  font-size: 0.88rem;
  font-weight: 800;
  padding: 0 12px;
}

.page-facts span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--accent-strong);
  font-size: 0.88rem;
  font-weight: 800;
  padding: 0 12px;
}

.hero-panel {
  display: grid;
  gap: 14px;
  min-height: 0;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
}

.hero-panel-header {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 12px;
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.hero-character {
  width: 96px;
  height: 96px;
  border-radius: 24px;
  background: var(--warm);
  color: var(--text);
  font-size: 2rem;
}

.hero-character-frame {
  display: grid;
  place-items: end center;
  width: 64px;
  height: 64px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: #ffffff;
  padding: 6px;
}

.hero-character-image {
  width: 52px;
  height: 54px;
  object-fit: contain;
  object-position: center bottom;
}

.hero-panel-copy {
  display: grid;
  gap: 8px;
}

.hero-panel-copy span {
  color: var(--accent-strong);
  font-size: 0.9rem;
  font-weight: 800;
}

.hero-panel-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.hero-lesson-scroll {
  display: grid;
  gap: 12px;
  max-height: 326px;
  overflow: auto;
  margin: 0;
  padding: 0 6px 0 0;
  scrollbar-gutter: stable;
}

.hero-lesson-stage {
  display: grid;
  gap: 0;
}

.hero-lesson-stage-label {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0;
  padding: 0 0 6px;
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.45;
}

.hero-lesson-stage-label span {
  color: var(--muted);
  font-weight: 700;
}

.hero-lesson-list {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero-lesson-list li {
  border-bottom: 1px solid var(--line);
}

.hero-lesson-stage .hero-lesson-list li:first-child {
  border-top: 1px solid var(--line);
}

.hero-lesson-list a {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  text-decoration: none;
}

.hero-lesson-list a > span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--soft);
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 800;
}

.hero-lesson-list strong {
  min-width: 0;
  font-size: 1rem;
  line-height: 1.45;
}

.hero-lesson-list a:hover strong {
  color: var(--accent-strong);
  text-decoration: underline;
}

.hero-panel-link {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 38px;
  border-radius: 8px;
  background: var(--soft);
  color: var(--accent-strong);
  font-weight: 800;
  text-decoration: none;
}

.hero-panel-link:hover {
  text-decoration: underline;
}

.button-link {
  display: inline-flex;
  justify-content: center;
  width: fit-content;
  min-height: 44px;
  align-items: center;
  border-radius: 8px;
  background: var(--accent);
  color: #ffffff;
  font-weight: 800;
  padding: 0 16px;
}

.button-link:hover {
  color: #ffffff;
}

.content-section,
.page-heading,
.article-shell {
  padding: 32px 0;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 16px;
}

.section-header h2,
.summary-box h2 {
  margin: 0;
}

.section-header p {
  color: var(--muted);
  margin: 0;
}

.route-section {
  padding-top: 24px;
}

.route-header p {
  max-width: 520px;
}

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

.route-item {
  display: grid;
  position: relative;
  gap: 10px;
  min-height: 176px;
  align-content: space-between;
  padding: 24px;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: 8px;
  text-decoration: none;
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.route-kicker {
  color: var(--accent-strong);
  font-size: 0.88rem;
  font-weight: 800;
}

.route-item strong {
  font-size: 1.32rem;
  line-height: 1.35;
}

.route-item p {
  margin: 0;
  color: var(--muted);
}

.route-action {
  color: var(--accent-strong);
  font-size: 0.92rem;
  font-weight: 800;
}

.route-action::after {
  content: "→";
  margin-left: 8px;
}

.route-item:hover {
  border-color: #b9cfc8;
  box-shadow: 0 14px 32px rgba(37, 48, 50, 0.08);
  transform: translateY(-2px);
}

.route-item:hover strong,
.route-item:hover .route-action {
  color: var(--accent-strong);
  text-decoration: underline;
}

.learning-section {
  padding-top: 24px;
}

.learning-path {
  display: grid;
  gap: 18px;
}

.learning-stage {
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
}

.learning-stage-header {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 16px;
  align-items: start;
  margin-bottom: 14px;
}

.learning-stage-header > span {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 32px;
  border-radius: 8px;
  background: var(--warm);
  color: var(--text);
  font-weight: 800;
  font-size: 0.86rem;
}

.learning-stage h3 {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.35;
}

.learning-stage p {
  margin: 4px 0 0;
  color: var(--muted);
}

.lesson-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

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

.lesson-list a {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 14px;
  align-items: start;
  padding: 14px 0;
  text-decoration: none;
}

.lesson-list a:hover strong {
  color: var(--accent-strong);
  text-decoration: underline;
}

.lesson-list a > span {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--soft);
  color: var(--accent-strong);
  font-weight: 800;
  font-size: 0.9rem;
}

.lesson-list strong {
  display: block;
  line-height: 1.35;
}

.lesson-list p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.stage-checklist {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.stage-checklist > span {
  display: block;
  color: var(--accent-strong);
  font-weight: 800;
  font-size: 0.92rem;
  margin-bottom: 8px;
}

.stage-checklist ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 1.15rem;
}

.stage-checklist li {
  color: var(--text);
  line-height: 1.7;
}

.section-action {
  margin: 18px 0 0;
}

.search-box {
  margin: 18px 0 24px;
}

.search-box label {
  display: block;
  font-weight: 800;
  margin-bottom: 8px;
}

.search-box input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  font: inherit;
  background: var(--surface-strong);
}

.search-result-count {
  color: var(--muted);
  min-height: 1.5em;
  margin: 8px 0 0;
}

.search-empty {
  margin: 12px 0 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
  color: var(--muted);
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.article-list-sections {
  display: grid;
  gap: 34px;
}

.article-list-section {
  display: grid;
  gap: 20px;
}

.article-list-header {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 18px;
  align-items: start;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
}

.article-list-header > span {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 34px;
  border-radius: 8px;
  background: var(--warm);
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 800;
  padding: 0 10px;
}

.article-list-header h2 {
  margin: 0;
  line-height: 1.35;
}

.article-list-header p {
  margin: 4px 0 0;
  color: var(--muted);
}

.article-stage-group {
  display: grid;
  gap: 12px;
}

.article-stage-heading {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  gap: 10px 14px;
}

.article-stage-heading span,
.article-stage-heading small {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 30px;
  border-radius: 8px;
  font-weight: 800;
  white-space: nowrap;
}

.article-stage-heading span {
  min-width: 54px;
  background: var(--soft);
  color: var(--accent-strong);
  font-size: 0.8rem;
  padding: 0 8px;
}

.article-stage-heading small {
  background: var(--surface-strong);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1;
  padding: 0 10px;
}

.article-stage-heading h3 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.35;
}

.article-stage-heading p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

.article-card {
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.article-card a {
  display: block;
  height: 100%;
  padding: 20px;
  text-decoration: none;
}

.article-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.article-number {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--soft);
  color: var(--accent-strong);
  font-size: 0.88rem;
  font-weight: 800;
}

.article-card-label {
  color: var(--accent-strong);
  font-size: 0.9rem;
  font-weight: 800;
}

.article-card h2 {
  margin: 0 0 8px;
  font-size: 1.2rem;
  line-height: 1.35;
}

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

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.category-grid a {
  display: grid;
  gap: 8px;
  min-width: 0;
  align-content: start;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  text-decoration: none;
}

.category-grid a:hover strong,
.category-grid a:hover .category-card-action {
  color: var(--accent-strong);
  text-decoration: underline;
}

.category-grid strong {
  font-size: 1.12rem;
  line-height: 1.35;
}

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

.category-grid span {
  color: var(--muted);
}

.category-card-count {
  color: var(--accent-strong);
  font-size: 0.9rem;
  font-weight: 800;
}

.category-card-action {
  margin-top: 6px;
  color: var(--accent-strong);
  font-size: 0.92rem;
  font-weight: 800;
}

.category-card-action::after {
  content: "→";
  margin-left: 8px;
}

.article-shell {
  max-width: 900px;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 32px;
}

.article-header {
  padding-bottom: 20px;
}

.article-header h1,
.page-heading h1 {
  font-size: clamp(2rem, 7vw, 3.4rem);
}

.tag-row {
  flex-wrap: wrap;
  gap: 8px;
}

.tag-row span {
  background: var(--soft);
  border-radius: 8px;
  padding: 4px 10px;
  font-size: 0.88rem;
}

.learning-progress {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: center;
  margin-top: 18px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.learning-progress a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 36px;
  border-radius: 8px;
  background: var(--soft);
  color: var(--accent-strong);
  font-weight: 800;
  padding: 0 12px;
  text-decoration: none;
}

.learning-progress a:hover {
  text-decoration: underline;
}

.learning-progress span {
  color: var(--accent-strong);
  font-size: 0.84rem;
  font-weight: 800;
}

.learning-progress strong {
  display: block;
  line-height: 1.35;
}

.learning-progress p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.hero-figure,
.image-placeholder,
.character-tip,
.summary-box,
.ad-slot {
  border-radius: 8px;
  border: 1px solid var(--line);
}

.hero-figure {
  margin: 32px 0 0;
  overflow: hidden;
  background: var(--surface);
}

.hero-figure img {
  display: block;
  width: 100%;
  aspect-ratio: 1672 / 941;
  object-fit: cover;
}

.image-placeholder {
  display: grid;
  gap: 8px;
  place-items: center;
  min-height: 220px;
  background: linear-gradient(135deg, #fffdf8, #d9ebe3);
  color: var(--muted);
  text-align: center;
}

.image-placeholder strong {
  color: var(--text);
}

.character-tip {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin: 24px 0;
  padding: 18px;
  background: var(--surface);
}

.character-avatar {
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  border-radius: 16px;
  border: 1px solid var(--line);
  object-fit: cover;
  background: #ffffff;
}

.character-name {
  margin: 0 0 2px;
  color: var(--accent-strong);
  font-weight: 800;
}

.character-message p {
  margin: 0;
}

.ad-slot {
  display: grid;
  place-items: center;
  min-height: 96px;
  margin: 24px 0;
  padding: 16px;
  background: #f2efe8;
  color: var(--muted);
  text-align: center;
}

.ad-slot span {
  font-weight: 800;
  color: var(--text);
}

.ad-slot p {
  margin: 0;
}

.ad-slot-live {
  background: #ffffff;
}

.imobile-slot {
  min-height: 284px;
}

.imobile-slot > div {
  display: grid;
  place-items: center;
  min-height: 250px;
  width: min(100%, 300px);
}

.article-body {
  font-size: 1.05rem;
}

.article-content-panel {
  background: transparent;
}

.article-body h2 {
  margin-top: 40px;
  line-height: 1.35;
}

.article-body h2:first-child {
  margin-top: 0;
}

.article-body code {
  background: #e9e3d7;
  border-radius: 4px;
  padding: 0.1em 0.35em;
}

.article-body pre {
  overflow-x: auto;
  background: var(--code-bg);
  color: var(--code-text);
  border-radius: 8px;
  padding: 18px;
}

.article-body pre code {
  background: transparent;
  color: inherit;
  padding: 0;
}

.article-body[data-inline-illustration] h2[id="イメージで考える"]::after,
.article-body[data-inline-illustration] h2[id="図で考えるなら"]::after {
  content: "";
  display: block;
  aspect-ratio: 16 / 9;
  margin: 22px 0 30px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface) var(--inline-illustration) center / cover no-repeat;
}

.summary-box {
  margin: 36px 0 0;
  padding: 20px;
  background: #f7fbf8;
}

.summary-box ul {
  margin-bottom: 0;
}

.stage-completion-box {
  margin: 22px 0 0;
  padding: 20px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fffaf0;
}

.stage-completion-box > span {
  display: block;
  margin-bottom: 8px;
  color: var(--accent-strong);
  font-size: 0.86rem;
  font-weight: 800;
}

.stage-completion-box h2 {
  margin: 0 0 10px;
  font-size: 1.2rem;
}

.stage-completion-box ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 1.15rem;
}

.stage-completion-box li {
  line-height: 1.75;
}

.lesson-navigation {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 30px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.lesson-navigation-item {
  display: grid;
  gap: 4px;
  align-content: start;
  padding: 18px 0;
  text-decoration: none;
}

.lesson-navigation-item span {
  color: var(--accent-strong);
  font-size: 0.86rem;
  font-weight: 800;
}

.lesson-navigation-item strong {
  line-height: 1.35;
}

.lesson-navigation-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.lesson-navigation-item:not(.is-muted):hover strong {
  color: var(--accent-strong);
  text-decoration: underline;
}

.lesson-navigation-next {
  text-align: right;
}

.lesson-navigation-item.is-muted {
  color: var(--muted);
}

.related-section {
  margin-top: 36px;
}

.related-section h2 {
  margin-top: 0;
}

.site-footer {
  margin-top: 48px;
  border-top: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(260px, 1.5fr) repeat(2, minmax(150px, 0.5fr));
  gap: 28px;
  padding: 36px 0 26px;
}

.footer-brand p {
  max-width: 460px;
  margin: 14px 0 0;
}

.footer-nav {
  display: grid;
  align-content: start;
  gap: 8px;
  font-size: 0.94rem;
}

.footer-nav span {
  color: var(--text);
  font-weight: 800;
}

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

.footer-nav a:hover {
  color: var(--accent-strong);
  text-decoration: underline;
}

.footer-copy {
  border-top: 1px solid var(--line);
  margin-top: 0;
  margin-bottom: 0;
  padding: 14px 0 18px;
  font-size: 0.86rem;
}

.static-page {
  width: min(900px, calc(100% - 32px));
  margin: 32px auto;
  padding: 32px;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.static-page h1 {
  margin: 0 0 20px;
  font-size: clamp(2rem, 7vw, 3.4rem);
  line-height: 1.2;
  letter-spacing: 0;
}

.static-page h2 {
  margin: 36px 0 8px;
  line-height: 1.35;
}

.static-page p {
  margin: 0 0 16px;
}

.static-page a {
  color: var(--accent-strong);
}

.policy-date {
  color: var(--muted);
}

[hidden] {
  display: none;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-copy h1 {
    white-space: normal;
  }
}

@media (max-width: 760px) {
  .site-header-inner,
  .section-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-header-inner {
    gap: 12px;
    min-height: auto;
    padding: 14px 0;
  }

  .site-nav {
    justify-content: flex-start;
    width: 100%;
  }

  .site-nav a {
    min-height: 38px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-top: 28px;
  }

  .hero-copy h1 {
    font-size: clamp(2.2rem, 10vw, 3rem);
    white-space: normal;
  }

  .hero-panel {
    padding: 16px;
  }

  .hero-panel-header {
    grid-template-columns: 56px 1fr;
    gap: 10px;
  }

  .hero-character-frame {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    padding: 5px;
  }

  .hero-character-image {
    width: 46px;
    height: 48px;
  }

  .hero-lesson-scroll {
    max-height: 310px;
  }

  .learning-stage {
    padding: 18px;
  }

  .learning-stage-header {
    grid-template-columns: 1fr;
  }

  .learning-progress,
  .route-grid,
  .lesson-navigation {
    grid-template-columns: 1fr;
  }

  .article-list-header,
  .article-stage-heading {
    grid-template-columns: 1fr;
  }

  .article-stage-heading small {
    width: fit-content;
  }

  .lesson-navigation-next {
    text-align: left;
  }

  .article-content-panel {
    padding: 0;
  }

  .article-shell {
    padding: 20px;
  }

  .static-page {
    padding: 20px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .category-grid a {
    width: 100%;
  }
}
