* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", sans-serif;
  background: #f6f5f2;
  color: #222;
  font-size: 14px;
  line-height: 1.6;
}
header {
  background: #1e3a2f;
  color: #f3ead8;
  padding: 7px 20px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
}
header .brand { font-weight: 700; font-size: 15px; letter-spacing: .04em; }
header .updated { font-size: 12px; color: #cdbd93; margin-left: auto; }
nav.tabs {
  display: flex; gap: 2px; overflow-x: auto;
  background: #fff; border-bottom: 1px solid #e2ded4;
  padding: 0 10px; position: sticky; top: 0; z-index: 10;
  -webkit-overflow-scrolling: touch;
}
nav.tabs button {
  appearance: none; background: none; border: none; cursor: pointer;
  font: inherit; font-size: 14px; color: #77705f;
  padding: 10px 12px 8px; white-space: nowrap;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
nav.tabs button.active { color: #1e3a2f; font-weight: 700; border-bottom-color: #b08d3e; }
.view.hidden { display: none; }
main { max-width: 880px; margin: 0 auto; padding: 16px 14px 28px; }
section.biz {
  background: #fff;
  border: 1px solid #e2ded4;
  border-radius: 10px;
  padding: 16px 18px 14px;
  margin-bottom: 14px;
}
section.biz h2 {
  font-size: 16px;
  font-weight: 700;
  border-bottom: 2px solid #1e3a2f;
  padding-bottom: 6px;
  margin-bottom: 12px;
}
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.kpi {
  display: flex; flex-direction: column;
  background: #faf9f6;
  border: 1px solid #e8e4da;
  border-radius: 8px;
  padding: 10px 12px;
}
.kpi .label { font-size: 11.5px; color: #77705f; white-space: nowrap; }
.kpi .value {
  margin-top: auto;
  font-size: 20px;
  font-weight: 700;
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.note { font-size: 12px; color: #77705f; margin-top: 10px; }
.tscroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tscroll table.detail { min-width: 540px; }
table.detail { width: 100%; border-collapse: collapse; margin: 6px 0 10px; }
table.detail th, table.detail td {
  text-align: left; padding: 5px 6px; border-bottom: 1px solid #f0ebdd;
  font-size: 12.5px; vertical-align: top;
}
table.detail th { color: #77705f; font-weight: 600; font-size: 11.5px; white-space: nowrap; }
table.detail td b { color: #1e3a2f; }
table.detail.sched th { white-space: nowrap; color: #1e3a2f; font-size: 12.5px; }
.sched-note { font-size: 12px; color: #77705f; margin-top: 4px; }
.steps { display: flex; flex-direction: column; gap: 8px; }
.step { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; }
.step-n {
  flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%;
  background: #b08d3e; color: #fff; font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; margin-top: 2px;
}
ul.rules { list-style: none; margin: 4px 0 6px; }
ul.rules li { padding: 3px 0 3px 14px; position: relative; font-size: 13.5px; }
ul.rules li::before { content: "・"; position: absolute; left: 0; color: #b08d3e; font-weight: 700; }
.reflist { display: flex; flex-direction: column; }
.reflist a {
  color: #1e7a46; font-size: 13.5px; font-weight: 700; text-decoration: none;
  padding: 7px 0; border-bottom: 1px solid #f0ebdd;
}
.reflist a:last-child { border-bottom: none; }
.progress-block { margin-bottom: 6px; }
.progress-top { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; margin-bottom: 4px; font-weight: 700; }
.progress-bar { height: 10px; background: #eeeade; border-radius: 5px; overflow: hidden; }
.progress-fill { height: 100%; background: #b08d3e; border-radius: 5px; }
.check-group { margin-top: 14px; }
.check-head { font-size: 13px; font-weight: 700; color: #1e3a2f; margin-bottom: 4px; }
.check-row {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 7px 2px; border-bottom: 1px solid #f0ebdd; cursor: pointer;
}
.check-row:last-child { border-bottom: none; }
.check-row input { position: absolute; opacity: 0; pointer-events: none; }
.check-box {
  flex: 0 0 auto; width: 20px; height: 20px; margin-top: 1px;
  border: 1.5px solid #c9c2ae; border-radius: 5px; background: #fff;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 13px; font-weight: 700;
}
.check-row input:checked ~ .check-box { background: #1e3a2f; border-color: #1e3a2f; }
.check-row input:checked ~ .check-box::after { content: "✓"; }
.check-row input:checked ~ .check-label { color: #99917c; }
.check-label { font-size: 13.5px; }
.remain-group { margin-bottom: 10px; }
.remain-head { font-size: 12px; font-weight: 700; color: #b08d3e; margin-bottom: 2px; }
.remain-item { font-size: 13.5px; padding: 2px 0 2px 14px; position: relative; }
.remain-item::before { content: "・"; position: absolute; left: 0; color: #b08d3e; font-weight: 700; }
footer { text-align: center; font-size: 11px; color: #aaa28e; padding: 0 0 22px; }
a { color: #1e3a2f; }
@media (max-width: 560px) {
  main { padding: 10px 8px 24px; }
  section.biz { padding: 12px 12px 10px; border-radius: 8px; }
  section.biz h2 { font-size: 15px; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .kpis > .kpi:last-child:nth-child(odd) { grid-column: span 2; }
  .kpi .value { font-size: 18px; }
  nav.tabs button { padding: 10px 10px 8px; font-size: 13.5px; }
  header { padding: 6px 12px; }
  .tscroll table.detail { min-width: 480px; }
}
