:root {
  font:
    15px/1.65 -apple-system,
    BlinkMacSystemFont,
    "Noto Sans JP",
    sans-serif;
  color: #162b3a;
  background: #f3f6f7;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
header {
  background: #142f3d;
  color: #fff;
  padding: 18px 5%;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
header a {
  color: #fff;
  text-decoration: none;
  font-weight: 650;
}
nav {
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
}
main {
  max-width: 1180px;
  margin: auto;
  padding: 36px 24px;
}
.eyebrow {
  color: #527883;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
}
h1 {
  font-size: 32px;
  margin: 8px 0;
}
.intro {
  color: #586c77;
}
.notice {
  border-left: 3px solid #b78622;
  padding: 12px 16px;
  background: #fff7df;
}
.kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 26px 0;
}
.kpi,
.card,
.panel {
  background: #fff;
  border: 1px solid #dbe3e7;
  border-radius: 12px;
  padding: 22px;
}
.kpi strong {
  display: block;
  font-size: 32px;
}
.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.card {
  border-top: 3px solid #628594;
}
.P0 {
  border-top-color: #bb3645;
}
.P1 {
  border-top-color: #c58a24;
}
.badge {
  display: inline-block;
  border-radius: 5px;
  padding: 2px 9px;
  font-weight: 700;
  background: #eef1f3;
  margin-right: 10px;
}
.P0 .badge {
  color: #a72337;
  background: #fff0f1;
}
.P1 .badge {
  color: #805900;
  background: #fff6d9;
}
h2 {
  font-size: 19px;
}
h3 {
  font-size: 14px;
  color: #4c6e7a;
  margin-bottom: 8px;
}
blockquote {
  margin: 10px 0;
  padding: 14px;
  background: #f4f7f8;
  border-left: 3px solid #b3c7cc;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
button,
a.button {
  font: inherit;
  cursor: pointer;
  border: 1px solid #b9cbd1;
  padding: 9px 14px;
  border-radius: 7px;
  background: #fff;
  color: #143d4b;
  text-decoration: none;
  min-height: 44px;
}
button:hover,
a.button:hover {
  background: #e9f2f4;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #1d8aac;
  outline-offset: 3px;
}
.filters,
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0;
}
.meta {
  color: #647580;
  font-size: 13px;
}
.panel {
  margin: 18px 0;
  overflow-wrap: anywhere;
}
label {
  display: block;
  margin: 12px 0;
}
input,
select,
textarea {
  display: block;
  font: inherit;
  max-width: 100%;
  width: 100%;
  padding: 9px;
  border: 1px solid #bdcdd2;
  border-radius: 6px;
}
input[type="checkbox"] {
  display: inline;
  width: auto;
  margin-right: 9px;
}
textarea {
  min-height: 180px;
}
pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: #f5f7f8;
  padding: 14px;
  font: 13px/1.7 monospace;
}
#error {
  color: #a12232;
  background: #fff0f2;
  padding: 14px;
}
.table-wrap {
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
}
th,
td {
  text-align: left;
  border-bottom: 1px solid #ddd;
  padding: 8px;
  vertical-align: top;
}
.empty {
  padding: 32px;
  background: #fff;
  border-radius: 12px;
  color: #5b6e78;
}
@media (max-width: 650px) {
  main {
    padding: 24px 16px;
  }
  .kpis {
    grid-template-columns: repeat(2, 1fr);
  }
  .cards {
    grid-template-columns: 1fr;
  }
  .card,
  .panel {
    padding: 17px;
  }
  h1 {
    font-size: 27px;
  }
  header {
    padding: 16px;
  }
  .actions button {
    flex: 1 1 130px;
  }
}
