:root {
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  color: #263b47;
  background: #f3f6f8;
  font-size: 15px;
  line-height: 1.7;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: #225979;
  text-underline-offset: 4px;
  overflow-wrap: anywhere;
}
a:hover {
  color: #153d56;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 18px;
  border: 1px solid #9eafb9;
  background: white;
  color: #264c63;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  line-height: 1.5;
}
button:hover,
.button:hover {
  background: #e8f0f4;
}
button.primary,
.button.primary {
  background: #285e78;
  color: #fff;
  border-color: #285e78;
}
button.primary:hover,
.button.primary:hover {
  background: #17445c;
}
input:not([type="radio"]):not([type="checkbox"]):not([type="hidden"]),
select,
textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid #9eafb9;
  border-radius: 5px;
  background: #fff;
  color: #263b47;
  padding: 9px 10px;
  min-width: 0;
}
@media (max-width: 700px) {
  input:not([type="radio"]):not([type="checkbox"]):not([type="hidden"]),
  select,
  textarea {
    font-size: 16px;
  }
}
input[type="radio"],
input[type="checkbox"] {
  width: 19px;
  height: 19px;
  min-width: 19px;
  accent-color: #285e78;
  margin: 4px 0;
}
input[type="hidden"] {
  display: none;
}
textarea {
  resize: vertical;
}
label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-weight: 600;
  margin-bottom: 16px;
}
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
button:focus-visible,
a:focus-visible {
  outline: 3px solid #7ba7bf;
  outline-offset: 3px;
}
header {
  background: #203d4e;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px max(24px, calc((100vw - 1160px) / 2));
  gap: 16px;
}
header .brand {
  font-family: Georgia, serif;
  font-size: 29px;
  letter-spacing: 1px;
  color: white;
  text-decoration: none;
  white-space: nowrap;
}
.brand span {
  font-family: sans-serif;
  font-size: 12px;
  margin-left: 14px;
  letter-spacing: 0.06em;
}
.header-date {
  font-size: 13px;
  white-space: nowrap;
}
.demo-tag {
  display: inline-block;
  border: 1px solid #7190a1;
  padding: 2px 8px;
  margin-left: 14px;
  border-radius: 4px;
  font-size: 11px;
}
main {
  max-width: 1208px;
  margin: 0 auto;
  padding: 0 24px;
}
nav {
  display: flex;
  gap: 25px;
  border-bottom: 1px solid #cbd6dd;
  min-height: 68px;
  align-items: stretch;
}
nav a {
  display: flex;
  align-items: center;
  min-height: 48px;
  text-decoration: none;
  color: #607581;
  font-weight: 600;
  padding: 12px 3px;
  border-bottom: 3px solid transparent;
}
nav a[aria-current="page"] {
  color: #214f68;
  border-color: #285e78;
}
.workspace-content {
  padding: 35px 0 44px;
  min-height: 62vh;
}
h1 {
  font-size: 27px;
  letter-spacing: 0.025em;
  line-height: 1.5;
  margin: 0 0 9px;
  font-weight: 700;
}
h2 {
  font-size: 17px;
  margin: 0 0 17px;
  line-height: 1.6;
}
h3 {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.75;
  margin: 13px 0 17px;
}
p {
  margin: 0 0 16px;
}
p.eyebrow {
  font-size: 12px;
  color: #627e8e;
  letter-spacing: 0.14em;
  margin-bottom: 7px;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 22px;
  margin-bottom: 25px;
}
.section-heading p:last-child {
  margin-bottom: 0;
  color: #617480;
}
.summary {
  display: flex;
  align-items: center;
  gap: 24px;
  background: #e7eef3;
  padding: 14px 18px;
  border-radius: 6px;
  margin: 0 0 30px;
  font-size: 13px;
  flex-wrap: wrap;
}
.summary b {
  font-size: 14px;
  margin-left: 8px;
}
.summary a {
  margin-left: auto;
}
.team-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.person-group > h2 {
  display: flex;
  gap: 11px;
  align-items: center;
  border-bottom: 1px solid #d4dfe6;
  padding-bottom: 12px;
  margin-bottom: 16px;
}
.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: #dce8ee;
  border-radius: 50%;
  color: #476a7e;
  font-size: 13px;
}
.count {
  margin-left: auto;
  font-size: 12px;
  color: #627786;
  font-weight: 400;
}
.task-card {
  background: #fff;
  border: 1px solid #d6e0e6;
  border-radius: 7px;
  padding: 19px 21px;
  margin-bottom: 13px;
  box-shadow: 0 2px 3px #243f5010;
  break-inside: avoid;
  overflow-wrap: anywhere;
}
.card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12px;
  color: #607582;
}
.status {
  display: inline-block;
  border: 1px solid #c3d1db;
  background: #f2f6f8;
  border-radius: 4px;
  font-size: 11px;
  line-height: 1.6;
  padding: 2px 8px;
  white-space: nowrap;
  color: #516c7c;
}
.status.doing {
  color: #215776;
  background: #e6f0f7;
  border-color: #c3dbea;
}
.status.done {
  color: #426e61;
  background: #edf5f0;
  border-color: #c4d9ce;
}
.overdue {
  color: #9a3d4b;
  font-weight: 600;
}
.task-card h3 a {
  display: block;
  padding: 8px 0;
  color: #284859;
  text-decoration: none;
}
.task-card h3 a:hover {
  text-decoration: underline;
}
.card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 12px;
}
.card-foot a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.panel {
  background: #fff;
  border: 1px solid #d6e0e6;
  border-radius: 7px;
  padding: 25px;
  margin-bottom: 24px;
}
.narrow {
  max-width: 800px;
}
.detail-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 26px;
}
.fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.fields label {
  min-width: 0;
}
fieldset {
  border: 0;
  padding: 0;
  margin: 20px 0;
}
legend {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 10px;
}
.line-choice {
  flex-direction: row;
  align-items: flex-start;
  font-weight: 400;
  gap: 13px;
  padding: 13px 10px;
  border: 1px solid #d8e1e7;
  border-radius: 5px;
  min-height: 52px;
  margin-bottom: 10px;
  overflow-wrap: anywhere;
}
.line-choice:has(input:checked) {
  background: #edf4f8;
  border-color: #477d9a;
}
.line-choice small {
  display: block;
  font-size: 11px;
  color: #687b87;
}
.line-choice:has(input:disabled) {
  background: #f4f6f7;
  color: #61737f;
}
.hint,
.muted {
  color: #647884;
  font-size: 13px;
}
.hint {
  margin-top: -5px;
}
.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 12px 0;
}
.return-box {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid #d6e0e6;
}
.back {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  font-size: 13px;
  margin-bottom: 16px;
}
.task-title {
  max-width: 950px;
  font-size: 24px;
}
.timeline {
  list-style: none;
  padding: 0 0 0 18px;
  margin: 0;
  border-left: 2px solid #dce6ed;
}
.timeline li {
  position: relative;
  padding: 0 0 21px 6px;
  overflow-wrap: anywhere;
}
.timeline li:before {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  background: #7f9ead;
  border-radius: 50%;
  left: -23px;
  top: 9px;
}
.timeline time {
  font-size: 12px;
  color: #687e8a;
}
.timeline p {
  margin-top: 4px;
  margin-bottom: 0;
  font-size: 14px;
}
.report-list {
  background: #fff;
  border: 1px solid #d6e0e6;
  border-radius: 7px;
}
.report-row {
  display: grid;
  grid-template-columns: 220px 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 20px;
  text-decoration: none;
  border-bottom: 1px solid #e1e8ed;
  color: #294b60;
}
.report-row:last-child {
  border: 0;
}
.report-row > div {
  display: flex;
  gap: 18px;
  font-size: 13px;
}
.report-row:hover {
  background: #f4f8fa;
}
.report-row strong {
  font-size: 14px;
  font-weight: 500;
}
.date {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.filters {
  display: flex;
  gap: 18px;
  align-items: end;
  flex-wrap: wrap;
  background: #e8eff4;
  padding: 20px;
  border-radius: 6px;
  margin: 20px 0;
}
.filters label {
  margin: 0;
  min-width: 170px;
}
.filters > a {
  display: flex;
  align-items: center;
  min-height: 44px;
}
.all-tasks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 22px;
}
.empty {
  background: #eaf0f4;
  border: 1px dashed #c3d0d9;
  padding: 24px;
  border-radius: 6px;
  color: #617786;
}
.alert {
  padding: 14px 18px;
  margin-bottom: 24px;
  border: 1px solid;
  border-radius: 6px;
}
.alert.error {
  color: #8a2d3d;
  border-color: #dcaab1;
  background: #fff1f3;
}
.alert.notice {
  background: #e9f4ee;
  color: #325f4e;
  border-color: #bdd7c7;
}
footer {
  font-size: 11px;
  color: #6d808b;
  border-top: 1px solid #d1dde5;
  padding: 22px 0 30px;
}
footer p {
  margin-bottom: 5px;
}
.blank-line {
  height: 12px;
}
.htmx-request {
  opacity: 0.7;
}
@media (max-width: 700px) {
  header {
    padding: 17px 20px;
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }
  .brand span {
    font-size: 11px;
    margin-left: 8px;
  }
  .header-date {
    font-size: 11px;
  }
  main {
    padding: 0 18px;
  }
  nav {
    gap: 4px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100px;
  }
  nav a {
    font-size: 13px;
    padding: 10px 8px;
    justify-content: center;
  }
  .workspace-content {
    padding: 25px 0 32px;
  }
  h1 {
    font-size: 24px;
  }
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }
  .section-heading p {
    font-size: 13px;
  }
  .summary {
    gap: 8px 20px;
    padding: 14px;
  }
  .summary a {
    margin-left: 0;
    width: 100%;
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  .team-grid,
  .detail-grid,
  .all-tasks {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .task-card {
    padding: 16px;
  }
  .card-foot {
    font-size: 11px;
  }
  .panel {
    padding: 19px;
  }
  .fields {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .filters {
    padding: 16px;
    gap: 12px;
  }
  .filters label {
    width: 100%;
    min-width: 0;
  }
  .report-row {
    grid-template-columns: 1fr;
    gap: 7px;
    padding: 18px;
  }
  .report-row > div {
    gap: 22px;
  }
  .task-title {
    font-size: 21px;
  }
  .actions button {
    flex: 1;
  }
  .all-tasks {
    gap: 0;
  }
  .line-choice {
    padding: 12px 8px;
  }
  .card-meta {
    gap: 9px;
  }
  footer {
    line-height: 1.8;
  }
}
@media print {
  header {
    color: #263b47;
    background: white;
    padding: 10px 0;
  }
  .brand {
    color: #263b47 !important;
  }
  nav,
  .button,
  button,
  .filters,
  .back,
  .return-box {
    display: none !important;
  }
  body {
    background: white;
  }
  main {
    padding: 0;
  }
  .workspace-content {
    padding: 20px 0;
  }
  .team-grid,
  .detail-grid {
    gap: 15px;
  }
  .panel,
  .task-card {
    box-shadow: none;
  }
  a {
    color: #263b47;
    text-decoration: none;
  }
  a:after {
    content: none;
  }
  .task-card {
    break-inside: avoid;
  }
  .card-foot a {
    min-height: 0;
  }
  footer {
    font-size: 9px;
  }
  .summary {
    background: #f3f5f7;
  }
}
