:root {
  font:
    16px/1.65 system-ui,
    -apple-system,
    "Hiragino Kaku Gothic ProN",
    "Yu Gothic",
    "Noto Sans JP",
    sans-serif;
  color: #20372e;
  background: #f5f6f0;
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
body {
  margin: 0;
}
header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  border-bottom: 1px solid #d7dfd0;
  padding: 22px max(24px, calc((100vw - 1240px) / 2));
  background: #fff;
}
header > span {
  font-size: 12px;
  letter-spacing: 0.08em;
}
.brand {
  font-size: 20px;
  font-weight: 700;
  text-decoration: none;
  color: #173d2f;
}
.brand span {
  color: #98ac79;
}
main {
  max-width: 1240px;
  margin: auto;
  padding: 36px 24px 64px;
}
.intro {
  padding: 16px 0 30px;
  max-width: 900px;
}
h1 {
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.35;
  letter-spacing: -0.03em;
  margin: 10px 0 18px;
}
h2 {
  font-size: 23px;
  line-height: 1.4;
  margin: 4px 0 14px;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 0.16em;
  font-weight: 700;
  color: #537247;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tags span,
.badge {
  padding: 4px 10px;
  border: 1px solid #c5d1b7;
  border-radius: 40px;
  background: #eff3e9;
  font-size: 12px;
}
.workspace-bar {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: 16px;
}
.workspace-bar label {
  flex: 1;
  min-width: 170px;
}
section,
details#createBox {
  padding: 26px;
  border: 1px solid #d8dfd2;
  background: white;
  border-radius: 12px;
  margin: 18px 0;
}
section p {
  color: #4a6053;
}
.columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.columns > section {
  margin-bottom: 0;
  min-width: 0;
}
label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin: 12px 0;
}
input,
textarea,
select {
  font: inherit;
  display: block;
  width: 100%;
  border: 1px solid #9bad9d;
  background: #fff;
  color: #20372e;
  border-radius: 6px;
  padding: 10px 12px;
  margin-top: 5px;
  min-height: 44px;
}
textarea {
  resize: vertical;
}
button {
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid #285339;
  border-radius: 6px;
  padding: 10px 16px;
  min-height: 44px;
  background: #285339;
  color: white;
  cursor: pointer;
  margin: 5px 6px 5px 0;
}
button.secondary {
  background: #fff;
  color: #285339;
}
button:disabled {
  opacity: 0.45;
  cursor: default;
}
a {
  color: #245d43;
  overflow-wrap: anywhere;
}
small {
  color: #607262;
}
pre {
  font:
    12px/1.6 ui-monospace,
    monospace;
  background: #f2f5ee;
  border-radius: 6px;
  padding: 14px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
summary {
  cursor: pointer;
  font-weight: 600;
}
.check {
  display: flex;
  gap: 8px;
  align-items: center;
}
.check input {
  width: 18px;
  min-height: 18px;
  margin: 0;
}
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.callout {
  border-left: 3px solid #a0af64;
  background: #f7f8ee;
  padding: 12px 16px;
}
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: end;
}
.filters label {
  flex: 1;
  min-width: 120px;
}
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}
.card {
  border: 1px solid #d4dece;
  padding: 18px;
  border-radius: 8px;
  overflow-wrap: anywhere;
}
.card h3 {
  font-size: 18px;
  margin: 0 0 12px;
}
.card small {
  display: block;
}
.evidence article,
#history article,
#inbox article {
  padding: 18px 0;
  border-bottom: 1px solid #e1e7db;
  overflow-wrap: anywhere;
}
.evidence h3 {
  margin: 0 0 8px;
  font-size: 17px;
}
.evidence p {
  margin: 7px 0;
}
.evidence details {
  font-size: 13px;
}
.pager {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}
#notice:not(:empty) {
  padding: 14px 18px;
  border: 1px solid #afbd92;
  background: #f5f6de;
  border-radius: 8px;
  white-space: pre-wrap;
}
#pendingBox {
  border: 1px solid #c5d3b1;
  padding: 14px;
  border-radius: 8px;
  margin-top: 16px;
}
.limitations {
  background: #edf2e8;
}
.limitations p {
  font-size: 14px;
}
footer {
  padding: 24px;
  text-align: center;
  border-top: 1px solid #d7dfd0;
  font-size: 12px;
  color: #5c705e;
}
:focus-visible {
  outline: 3px solid #bf8b25;
  outline-offset: 3px;
}
@media (max-width: 680px) {
  header {
    padding: 18px;
    display: block;
  }
  header > span {
    display: block;
    margin-top: 8px;
  }
  main {
    padding: 22px 16px 40px;
  }
  .columns {
    grid-template-columns: 1fr;
    gap: 0;
  }
  section,
  details#createBox {
    padding: 19px;
  }
  .section-head {
    align-items: start;
    flex-direction: column;
  }
  .pager {
    justify-content: space-between;
    gap: 4px;
  }
  .cards {
    grid-template-columns: 1fr;
  }
  button {
    max-width: 100%;
    white-space: normal;
  }
  .filters label {
    min-width: 130px;
  }
}
