:root {
  color-scheme: light;
  color: #202d27;
  background: #f9f7f1;
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  font-size: 100%;
  --green: #24513d;
  --rule: #c2c9bd;
}
* { box-sizing: border-box; }
body { margin: 0; border-top: .35rem solid var(--green); }
main { width: min(100% - 2rem, 45rem); margin: auto; padding-bottom: 4rem; }
article { font-size: 1.0625rem; line-height: 1.8; overflow-wrap: anywhere; }
.topics { display: flex; flex-wrap: wrap; gap: 0 1.5rem; border-bottom: 1px solid var(--rule); font-size: 1rem; }
.topics a { display: inline-flex; align-items: center; min-height: 48px; }
.topics [aria-current] { color: var(--green); font-weight: bold; border-bottom: 3px solid; text-decoration: none; }
header { padding-block: clamp(1.75rem, 5vw, 3.2rem) .25rem; }
h1, h2 { color: #213e30; font-weight: 700; }
h1 { font-size: clamp(1.75rem, 3.8vw, 2.25rem); line-height: 1.4; margin: 0; }
h2 { margin: 2.5rem 0 .65rem; padding-top: .85rem; border-top: 1px solid var(--rule); font-size: clamp(1.4375rem, 2.5vw, 1.75rem); line-height: 1.5; }
p { margin: .8em 0; }
.lead { border-left: .25rem solid var(--green); padding-left: 1rem; margin: 1.15em 0; }
.home { font-size: 1.0625rem; line-height: 1.8; overflow-wrap: anywhere; }
.home ul { list-style: none; padding: 0; margin: .5rem 0; }
.home li + li { margin-top: 1.25rem; }
.home li a { display: inline-block; padding-block: .45rem; font-weight: 700; }
.home li p { margin: 0; }
.jump { display: flex; flex-wrap: wrap; gap: .25rem 1.4rem; }
.jump a { display: inline-flex; align-items: center; min-height: 44px; }
a { color: #24513d; text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid #85471d; outline-offset: 3px; }
small { color: #49574d; font-size: .875rem; line-height: 1.6; }
table { width: 100%; border-collapse: collapse; font-size: 1rem; line-height: 1.6; font-variant-numeric: tabular-nums; background: #fffefa; }
th, caption { font-weight: 500; }
th, td { padding: .65em .5em; text-align: left; border-bottom: 1px solid var(--rule); }
thead { color: #fff; background: var(--green); }
caption { text-align: left; padding: .3rem 0 .55rem; }
.fees :is(th, td):not(:first-child) { text-align: right; }
.cash td:nth-child(-n+2) { white-space: nowrap; }
ol { padding-left: 1.65em; }
li + li { margin-top: .75em; }
li::marker { color: var(--green); font-weight: bold; }
.sheet { margin-top: 2.5rem; border: 1px solid var(--rule); background: #fffefa; padding: clamp(.85rem, 3vw, 1.75rem); }
.sheet h2 { margin: 0; border: 0; padding: 0; }
.sheet td, .sheet th { border: 1px solid #829184; }
.sheet th:first-child { width: 65%; }
.cost-sheet td { text-align: right; }
.sheet .cash-log th { width: 22%; }
.sheet .cash-log th:last-child { width: 34%; }
.cash-log td { height: 2em; }
button { min-height: 44px; padding: .65em 1.1em; background: var(--green); color: white; border: 0; border-radius: .25em; font: inherit; cursor: pointer; }
@media (max-width: 27rem) {
  th, td { padding: .55em .32em; }
  .cash th:nth-child(-n+2) { width: 24%; }
  .cash td:nth-child(-n+2) { white-space: normal; }
}
@media print {
  @page { margin: 14mm; }
  :root, .sheet, table { background: white; color: black; }
  body { border: 0; }
  main { width: auto; padding: 0; }
  article { font-size: 10.5pt; line-height: 1.5; }
  table { font-size: inherit; }
  .topics, .jump, button { display: none; }
  thead { background: white; color: black; }
  header, h2 { break-after: avoid; }
  tr { break-inside: avoid; }
  .sheet { break-before: page; margin: 0; padding: 0; border: 0; }
  .sheet td { height: 2.6em; }
  body.sheet-only article > :not(.sheet) { display: none; }
  body.sheet-only .sheet { break-before: auto; }
}
