:root {
  color: #18322b;
  background: #f6f8f4;
  font-family: system-ui, "Yu Gothic", Meiryo, sans-serif;
  line-height: 1.75;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
a { color: #145b43; text-underline-offset: .18em; }
:focus-visible { outline: 3px solid #935100; outline-offset: 3px; }
.shell { width: min(100% - 2rem, 66rem); margin-inline: auto; }
.site-header, .site-footer { background: #fff; }
.site-header { border-bottom: 1px solid #cfdcd5; }
.site-footer { margin-top: 3rem; border-top: 1px solid #cfdcd5; }
.site-header .shell, .site-footer .shell, nav, .actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem 1rem;
}
.site-header .shell, .site-footer .shell { justify-content: space-between; padding-block: .75rem; }
nav a, .brand { display: inline-flex; align-items: center; min-height: 2.75rem; }
.brand { color: #18322b; font-size: 1.2rem; font-weight: 700; text-decoration: none; }
[aria-current="page"] { font-weight: 700; text-decoration-thickness: .15em; }
.skip { position: absolute; top: .5rem; left: .5rem; padding: .5rem; background: #fff; z-index: 1; }
.skip:not(:focus) { transform: translateY(-200%); }
main { padding-block-start: clamp(1.25rem, 4vw, 3rem); }
h1, h2, h3 { line-height: 1.4; }
h1 { font-size: clamp(1.65rem, 4vw, 2.65rem); margin: 0 0 1rem; }
h2 { font-size: clamp(1.25rem, 3vw, 1.65rem); margin-block: 1.75rem .5rem; }
p, a, label, legend, h1, h2, h3 { overflow-wrap: anywhere; }
section + section { margin-top: 2rem; }
.hero {
  padding: clamp(1.25rem, 5vw, 4rem);
  border-radius: 1.25rem;
  color: #fff;
  background: #164c3b;
}
.hero p { max-width: 40rem; }
.button, button {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: .4rem .9rem;
  border: 1px solid transparent;
  border-radius: .5rem;
  background: #145b43;
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.hero .button { color: #164c3b; background: #fff; }
.hero .button:focus-visible { outline-color: #ffd182; }
.topics { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: .9rem; }
.topics article, .article { background: #fff; border: 1px solid #cfdcd5; border-radius: .75rem; }
.topics article { padding: .8rem 1rem; }
.article { max-width: 48rem; margin-inline: auto; padding: clamp(.8rem, 4vw, 2.25rem); }
.label { color: #145b43; font-weight: 700; margin-block-start: 0; }
ul { padding-inline-start: 1.35rem; }
.lesson-list li { padding-block: .55rem; }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
th, td { border: 1px solid #c5d5cc; padding: .35rem .45rem; overflow-wrap: anywhere; }
th { background: #eef4ef; }
th:not(:first-child), td:not(:first-child) { text-align: right; }
.quiz { margin-block: 1.75rem; padding: clamp(.65rem, 3vw, 1.25rem); border: 1px solid #bdcfc4; border-radius: .75rem; background: #edf5ef; }
.quiz h2 { margin-top: 0; }
fieldset { min-width: 0; border: 0; margin: 0; padding: 0; }
legend { font-weight: 700; padding: 0; }
.choice { display: flex; align-items: baseline; gap: .4rem; min-height: 2.75rem; padding-block: .4rem; }
.choice input { flex: none; accent-color: #145b43; }
[data-retry] { color: #145b43; background: #fff; border-color: #145b43; }
button:disabled { cursor: not-allowed; color: #3d5148; background: #dce7de; }
