:root {
  color-scheme: light;
  --ink: #232622;
  --muted: #6f756f;
  --paper: #f6f7f2;
  --panel: #ffffff;
  --line: #d9ded2;
  --sage: #577866;
  --teal: #1f6f73;
  --blue: #385d89;
  --coral: #cf654f;
  --gold: #d49a2e;
  --shadow: 0 18px 50px rgba(35, 38, 34, 0.12);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(90deg, rgba(35, 38, 34, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(35, 38, 34, 0.035) 1px, transparent 1px),
    var(--paper);
  background-size: 36px 36px;
  color: var(--ink);
  font-family: "Zen Maru Gothic", "Hiragino Sans", "Yu Gothic", YuGothic, Meiryo, sans-serif;
  line-height: 1.65;
  overflow-x: clip;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.shell {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  min-height: 100vh;
}

.side-nav {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  padding: 18px 12px;
  background: rgba(255, 255, 255, 0.84);
  border-right: 1px solid var(--line);
  backdrop-filter: blur(16px);
  z-index: 10;
}

.brand-mark {
  display: grid;
  width: 54px;
  height: 54px;
  margin: 0 auto 24px;
  place-items: center;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: white;
  font-family: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-weight: 700;
}

.side-nav nav {
  display: grid;
  gap: 10px;
}

.side-nav nav a {
  padding: 10px 8px;
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  writing-mode: vertical-rl;
  min-height: 70px;
  display: grid;
  place-items: center;
}

.side-nav nav a:hover,
.side-nav nav a:focus-visible {
  outline: none;
  background: #e6eee9;
  color: var(--teal);
}

main {
  min-width: 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(340px, 0.7fr);
  gap: 42px;
  align-items: center;
  min-height: 720px;
  padding: 42px 56px 34px;
}

.hero-copy {
  padding-bottom: 0;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: 0;
  line-height: 1.16;
}

h1 {
  max-width: 720px;
  font-family: "Zen Maru Gothic", "Hiragino Sans", "Yu Gothic", YuGothic, Meiryo, sans-serif;
  font-size: 54px;
  font-weight: 900;
  text-wrap: balance;
}

h1 span {
  display: block;
  width: fit-content;
  max-width: 100%;
  line-height: 1.22;
}

h2 {
  font-size: 34px;
  font-weight: 800;
}

h3 {
  font-size: 20px;
  font-weight: 800;
}

.lead {
  max-width: 640px;
  margin: 24px 0 0;
  color: #414940;
  font-size: 18px;
  font-weight: 500;
  overflow-wrap: anywhere;
}

.lead span {
  display: block;
}

.catch-copy {
  line-height: 1.85;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.primary-link,
.secondary-link {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  padding: 0 18px;
  font-size: 14px;
  font-weight: 800;
}

.primary-link {
  background: var(--ink);
  color: white;
}

.secondary-link {
  background: var(--panel);
}

.hero-visual {
  position: relative;
  width: 100%;
  min-width: 0;
  min-height: 520px;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
  display: block;
}

.open-card {
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: min(260px, calc(100% - 36px));
  border: 1px solid rgba(255, 255, 255, 0.58);
  background: rgba(35, 38, 34, 0.84);
  color: white;
  padding: 18px;
  backdrop-filter: blur(12px);
}

.open-card span,
.open-card small {
  display: block;
  font-size: 12px;
  font-weight: 800;
}

.open-card strong {
  display: block;
  margin: 4px 0 8px;
  font-family: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-size: 30px;
  line-height: 1;
}

.section {
  padding: 58px 56px;
  border-top: 1px solid var(--line);
}

.overview-section {
  padding-top: 48px;
}

.section-heading {
  margin-bottom: 26px;
}

.section-heading.split {
  display: flex;
  gap: 24px;
  align-items: end;
  justify-content: space-between;
}

.section-note {
  max-width: 430px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.metric-card,
.toc-item,
.decision-card,
.equipment-group {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.88);
}

.metric-card {
  min-height: 118px;
  padding: 18px;
}

.metric-card.accent {
  background: #23302c;
  border-color: #23302c;
  color: white;
}

.metric-label,
.decision-tag {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.metric-card.accent .metric-label,
.metric-card.accent small {
  color: rgba(255, 255, 255, 0.72);
}

.metric-card strong {
  display: block;
  margin: 8px 0 4px;
  font-size: 24px;
  line-height: 1.24;
}

.progress-track {
  width: 100%;
  height: 7px;
  margin-top: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: #e9eee5;
}

.progress-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), var(--gold));
  transition: width 180ms ease;
}

.metric-card small,
.toc-item small,
.equipment-item small,
.task-meta {
  color: var(--muted);
  font-size: 12px;
}

.toc-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.toc-item {
  min-height: 170px;
  padding: 18px;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.toc-item:hover,
.toc-item:focus-visible {
  outline: none;
  transform: translateY(-3px);
  border-color: var(--teal);
  box-shadow: 0 16px 34px rgba(31, 111, 115, 0.14);
}

.toc-item span {
  color: var(--coral);
  font-family: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-size: 30px;
  font-weight: 700;
}

.toc-item strong {
  display: block;
  margin: 18px 0 8px;
  font-size: 18px;
  line-height: 1.35;
}

.timeline-track {
  display: grid;
  grid-template-columns: repeat(9, minmax(158px, 1fr));
  gap: 0;
  overflow-x: auto;
  padding-bottom: 8px;
}

.phase {
  position: relative;
  min-height: 216px;
  padding: 18px 30px 18px 24px;
  border: 1px solid rgba(35, 38, 34, 0.18);
  color: white;
  clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 50%, calc(100% - 24px) 100%, 0 100%, 20px 50%);
}

.phase:first-child {
  clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 50%, calc(100% - 24px) 100%, 0 100%);
}

.phase:nth-child(1) {
  background: var(--teal);
}

.phase:nth-child(2) {
  background: var(--sage);
}

.phase:nth-child(3) {
  background: var(--blue);
}

.phase:nth-child(4) {
  background: #6a5f77;
}

.phase:nth-child(5) {
  background: var(--coral);
}

.phase:nth-child(6) {
  background: #8a6c2c;
}

.phase:nth-child(7) {
  background: #5d4f45;
}

.phase:nth-child(8) {
  background: #7c563f;
}

.phase:nth-child(9) {
  background: var(--ink);
}

.phase-date {
  font-size: 12px;
  font-weight: 900;
  opacity: 0.78;
}

.phase-title {
  display: block;
  margin-top: 10px;
  font-size: 20px;
  font-weight: 900;
  line-height: 1.25;
}

.phase ul {
  margin: 14px 0 0;
  padding-left: 18px;
  font-size: 13px;
}

.phase li + li {
  margin-top: 7px;
}

.equipment-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.equipment-group {
  overflow: hidden;
}

.equipment-head {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid var(--line);
  background: #fbfcf8;
}

.equipment-index {
  display: grid;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  place-items: center;
  background: var(--ink);
  color: white;
  font-family: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-weight: 800;
}

.equipment-list {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}

.equipment-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  padding: 14px 16px;
  border-bottom: 1px solid #edf0e8;
}

.equipment-item.is-complete strong,
tr.is-complete td,
.final-check.is-complete strong {
  color: #8b918b;
}

.equipment-item.is-complete strong,
tr.is-complete td strong,
.final-check.is-complete strong {
  text-decoration: line-through;
  text-decoration-thickness: 2px;
  text-decoration-color: rgba(31, 111, 115, 0.35);
}

.equipment-item:last-child {
  border-bottom: 0;
}

.equipment-item strong {
  display: block;
  font-size: 14px;
  line-height: 1.35;
}

.pill {
  display: inline-flex;
  min-width: 68px;
  min-height: 28px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 10px;
  background: #edf4f1;
  color: var(--teal);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.pill.warn {
  background: #fff1df;
  color: #986b1f;
}

.pill.order {
  background: #fce8e3;
  color: #a94836;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.filter-button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  color: var(--muted);
  padding: 0 14px;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.filter-button.active,
.filter-button:hover,
.filter-button:focus-visible {
  outline: none;
  border-color: var(--ink);
  background: var(--ink);
  color: white;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
}

table {
  width: 100%;
  min-width: 1080px;
  border-collapse: collapse;
}

th,
td {
  padding: 14px 16px;
  border-bottom: 1px solid #edf0e8;
  text-align: left;
  vertical-align: top;
}

th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f8faf4;
  color: #596258;
  font-size: 12px;
  font-weight: 900;
}

.check-column {
  width: 58px;
}

td {
  font-size: 14px;
}

tr:last-child td {
  border-bottom: 0;
}

.date-cell strong {
  display: block;
  line-height: 1.2;
}

.area-badge,
.status-badge {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  border-radius: 999px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.area-badge {
  background: #e9f1ef;
  color: var(--teal);
}

.status-badge {
  background: #eef0f2;
  color: #4c535b;
}

.status-badge.hot {
  background: #fce7e2;
  color: #a94836;
}

.status-badge.next {
  background: #fff2cf;
  color: #8a6419;
}

.status-badge.done {
  background: #e6f4ea;
  color: #35744c;
}

.check-control {
  display: inline-grid;
  width: 28px;
  height: 28px;
  place-items: center;
  cursor: pointer;
}

.check-control input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.check-control span {
  position: relative;
  display: block;
  width: 22px;
  height: 22px;
  border: 2px solid #bdc7bd;
  border-radius: 7px;
  background: white;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.check-control span::after {
  position: absolute;
  left: 5px;
  top: 1px;
  width: 6px;
  height: 11px;
  border: solid white;
  border-width: 0 2px 2px 0;
  content: "";
  opacity: 0;
  transform: rotate(45deg) scale(0.7);
  transition: opacity 160ms ease, transform 160ms ease;
}

.check-control input:checked + span {
  border-color: var(--teal);
  background: var(--teal);
  box-shadow: 0 0 0 4px rgba(31, 111, 115, 0.12);
}

.check-control input:checked + span::after {
  opacity: 1;
  transform: rotate(45deg) scale(1);
}

.check-control input:focus-visible + span {
  outline: 3px solid rgba(31, 111, 115, 0.24);
  outline-offset: 2px;
}

.decision-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.final-checklist {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.final-check {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  min-height: 82px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
}

.final-check:hover {
  border-color: rgba(31, 111, 115, 0.45);
}

.final-check strong {
  font-size: 15px;
  line-height: 1.5;
}

.decision-card {
  padding: 20px;
}

.decision-card.recommended {
  background: #23302c;
  border-color: #23302c;
  color: white;
}

.decision-card.recommended .decision-tag,
.decision-card.recommended p {
  color: rgba(255, 255, 255, 0.72);
}

.decision-card h3 {
  margin-top: 10px;
}

.decision-card p {
  margin: 14px 0 0;
  color: #586057;
  font-size: 14px;
}

.footer {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 28px 56px 40px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 12px;
  font-weight: 800;
}

@media (max-width: 1100px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-copy {
    padding-bottom: 0;
  }

  .metrics-grid,
  .toc-grid,
  .decision-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .equipment-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .shell {
    display: block;
  }

  .side-nav {
    position: sticky;
    top: 0;
    display: flex;
    width: 100%;
    height: auto;
    align-items: center;
    gap: 10px;
    overflow-x: auto;
    padding: 10px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .brand-mark {
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    margin: 0;
  }

  .side-nav nav {
    display: flex;
    min-width: max-content;
  }

  .side-nav nav a {
    min-height: 38px;
    padding: 0 12px;
    writing-mode: horizontal-tb;
  }

  .hero,
  .section {
    padding: 34px 18px;
  }

  h1 {
    font-size: 32px;
    line-height: 1.26;
  }

  h2 {
    font-size: 27px;
  }

  .lead {
    font-size: 16px;
  }

  .hero-visual,
  .hero-visual img {
    min-height: 390px;
  }

  .open-card {
    left: 18px;
    right: 18px;
    width: auto;
  }

  .section-heading.split {
    display: grid;
    align-items: start;
  }

  .metrics-grid,
  .toc-grid,
  .equipment-board,
  .decision-grid,
  .final-checklist {
    grid-template-columns: 1fr;
  }

  .timeline-track {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    overflow: visible;
  }

  .phase,
  .phase:first-child {
    clip-path: none;
    min-height: auto;
    padding: 18px;
  }

  .filter-bar {
    justify-content: flex-start;
  }

  .footer {
    display: grid;
    padding: 24px 18px 32px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
