* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: arial, hiragino sans gb, microsoft yahei, sans-serif;
  margin: 0;
  color: #141817;
  background: #f7f8f6;
  line-height: 1.75;
  overflow-x: hidden;
}

a {
  color: #1b6b4a;
  text-decoration: none;
  overflow-wrap: anywhere;
}

a:hover {
  color: #0b8f55;
}

a:focus-visible {
  outline: 2px solid #1b6b4a;
  outline-offset: 3px;
}

section {
  scroll-margin-top: 18px;
}

.page {
  width: min(980px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 42px;
}

.topline {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  font-size: 14px;
  margin-bottom: 26px;
}

.subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -12px 0 24px;
}

.subnav a {
  border: 1px solid #d7ddd5;
  border-radius: 4px;
  background: #fff;
  padding: 3px 9px;
  font-size: 13px;
  min-height: 30px;
  display: inline-flex;
  align-items: center;
}

.subnav a[aria-current="page"] {
  background: #1b6b4a;
  border-color: #1b6b4a;
  color: #fff;
}

h1 {
  font-size: 28px;
  line-height: 1.35;
  margin: 0 0 12px;
}

h2 {
  font-size: 20px;
  margin: 30px 0 10px;
}

h3 {
  font-size: 16px;
  margin: 0 0 6px;
}

.lead {
  color: #4f5d5f;
  margin: 0 0 22px;
  overflow-wrap: anywhere;
}

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

.card {
  background: #fff;
  border: 1px solid #e3e7e1;
  border-radius: 8px;
  padding: 16px;
}

.card h2 {
  margin-top: 0;
}

.card p,
.note,
li {
  color: #4f5d5f;
}

ol,
ul {
  padding-left: 1.4em;
}

li {
  margin-bottom: 6px;
}

.tag {
  display: inline-block;
  border: 1px solid #d7ddd5;
  border-radius: 4px;
  padding: 2px 7px;
  margin: 4px 4px 0 0;
  font-size: 12px;
  color: #50605a;
  background: #fbfcfa;
}

.panel {
  background: #eef5f0;
  border-left: 4px solid #1b6b4a;
  padding: 12px 16px;
  margin: 20px 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  table-layout: fixed;
}

th,
td {
  border: 1px solid #e3e7e1;
  padding: 10px;
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
}

th {
  background: #eef5f0;
}

.footer {
  border-top: 1px solid #e3e7e1;
  margin-top: 34px;
  padding-top: 16px;
  font-size: 13px;
  color: #66736e;
}

@media (max-width: 640px) {
  .page {
    width: min(100% - 22px, 980px);
    padding-top: 18px;
  }

  .topline {
    display: block;
  }

  .topline span {
    display: block;
    margin-top: 4px;
  }

  .subnav {
    margin-top: -8px;
  }

  .subnav a {
    flex: 1 1 42%;
    justify-content: center;
    text-align: center;
  }

  h1 {
    font-size: 23px;
  }

  table {
    display: block;
    overflow-x: auto;
    table-layout: auto;
    -webkit-overflow-scrolling: touch;
  }

  th,
  td {
    min-width: 150px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
