:root {
  --ink: #152b3f;
  --muted: #5f7183;
  --line: #b9d8ec;
  --blue: #0078bf;
  --deep: #004a83;
  --cyan: #1aa6dc;
  --pale: #eaf6fd;
  --paper: #ffffff;
  --warn: #a85422;
  --green: #5ea547;
  --gold: #c8a548;
  --pink: #c9879c;
}

@page {
  size: A4;
  margin: 0;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #d7eaf6;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Noto Sans JP", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
  line-height: 1.72;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

.back-link {
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 20;
  padding: 8px 12px;
  color: #fff;
  background: rgba(0, 74, 131, .92);
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(0, 54, 96, .24);
}

.manual {
  width: 210mm;
  margin: 0 auto;
}

.page {
  position: relative;
  width: 210mm;
  height: 297mm;
  overflow: hidden;
  padding: 13mm 14mm 15mm;
  background: var(--paper);
  break-after: page;
}

.page::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-top: 6mm solid #dff2fb;
}

.page.cover::before {
  display: none;
}

.eyebrow {
  margin: 0 0 4mm;
  color: var(--blue);
  font-size: 8.5pt;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h2 {
  margin-bottom: 7mm;
  font-size: 21pt;
  line-height: 1.25;
  color: var(--deep);
}

h3 {
  margin-bottom: 2.2mm;
  font-size: 12.5pt;
  line-height: 1.35;
  color: var(--deep);
}

p,
li,
dd,
dt {
  font-size: 9.4pt;
}

img {
  max-width: 100%;
  display: block;
}

.cover {
  padding: 0;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(0, 62, 111, .98), rgba(0, 126, 190, .96)),
    radial-gradient(circle at 88% 12%, rgba(41, 174, 226, .58), transparent 42%);
}

.cover::after {
  content: "";
  position: absolute;
  left: -25mm;
  bottom: -38mm;
  width: 180mm;
  height: 90mm;
  background: rgba(255, 255, 255, .08);
  transform: rotate(-8deg);
}

.cover-header,
.cover-footer {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cover-header {
  padding: 14mm 16mm 0;
}

.cover-logo {
  width: 70mm;
}

.cover-header p,
.cover-footer span {
  margin: 0;
  font-size: 9pt;
  color: rgba(255, 255, 255, .86);
}

.cover-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 72mm;
  gap: 8mm;
  align-items: center;
  padding: 30mm 16mm 0;
}

.cover-copy h1 {
  margin-bottom: 6mm;
  font-size: 30pt;
  line-height: 1.25;
  letter-spacing: 0;
}

.cover-copy h1 span {
  display: block;
  white-space: nowrap;
}

.cover-copy .eyebrow {
  color: #bfeeff;
}

.cover-subtitle,
.body-large {
  font-size: 11pt;
  line-height: 1.8;
}

.cover-subtitle {
  margin-bottom: 3mm;
  color: #dff6ff;
  font-weight: 700;
}

.cover-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2mm 4mm;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cover-list li {
  position: relative;
  padding-left: 4mm;
  color: #fff;
  font-size: 9pt;
  font-weight: 700;
}

.cover-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .68em;
  width: 2mm;
  height: 2mm;
  border-radius: 50%;
  background: #bfeeff;
}

.cover-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 3mm;
  margin-top: 10mm;
}

.cover-tags span {
  padding: 2.5mm 4mm;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 999px;
  font-size: 8pt;
  color: #eaf9ff;
}

.cover-figure {
  margin: 0;
  padding: 6mm;
  border-radius: 8mm;
  background: rgba(255, 255, 255, .16);
}

.cover-footer {
  position: absolute;
  left: 16mm;
  right: 16mm;
  bottom: 13mm;
  z-index: 3;
  border-top: 1px solid rgba(255, 255, 255, .32);
  padding-top: 5mm;
}

.page-head,
.step-head {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 5mm;
  align-items: flex-start;
  margin-bottom: 9mm;
}

.page-head > span {
  width: 13mm;
  height: 13mm;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--blue);
  font-size: 10pt;
  font-weight: 800;
  border-radius: 50%;
}

.page-head h2,
.page-head .eyebrow {
  margin-bottom: 0;
}

.two-col,
.planning-layout,
.concept-grid,
.step-grid,
.screw-layout,
.safety-layout,
.reference-grid {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 9mm;
  align-items: start;
}

.two-col.compact {
  gap: 6mm;
  margin-top: 7mm;
}

.two-col.compact h3 {
  padding-bottom: 2mm;
  border-bottom: 1px solid var(--line);
}

.info-strip,
.three-cards,
.note-row,
.do-dont,
.confirmation-grid,
.lineup,
.qr-row {
  display: grid;
  gap: 4mm;
}

.info-strip {
  grid-template-columns: 1fr 1fr;
  margin: 8mm 0;
}

.info-strip div,
.three-cards article,
.note-row div,
.do-dont article,
.confirmation-grid article,
.lineup-panel,
.risk-box,
.check-panel,
.approval-note,
.callout,
.tips,
.evidence-box,
.caution,
.pearl {
  border: 1px solid var(--line);
  border-radius: 2mm;
  background: #ffffff;
}

.info-strip div {
  min-height: 18mm;
  padding: 4mm;
}

.info-strip strong,
.info-strip span {
  display: block;
}

.info-strip strong,
.three-cards span,
.confirmation-grid span {
  color: var(--blue);
  font-size: 8pt;
  font-weight: 800;
}

.framed-figure,
.wide-figure,
.step-figure,
.support-figure,
.image-duo figure,
.screw-images figure,
.instrument-grid figure,
.tray-grid figure,
.product-row {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 2mm;
  background: #ffffff;
  overflow: hidden;
}

.framed-figure {
  padding: 5mm;
}

.framed-figure.tall img {
  max-height: 135mm;
  margin: 0 auto;
}

figcaption {
  margin-top: 3mm;
  color: var(--muted);
  font-size: 8pt;
  line-height: 1.55;
}

.callout,
.evidence-box,
.tips,
.caution,
.pearl,
.check-panel,
.approval-note {
  padding: 5mm;
  background: var(--pale);
}

.tips ul,
.evidence-box ul,
.risk-box ul {
  padding-left: 5mm;
  margin: 0;
}

.tips li,
.evidence-box li,
.risk-box li {
  margin-bottom: 1.5mm;
}

.three-cards {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 8mm;
}

.three-cards article,
.note-row div,
.do-dont article,
.confirmation-grid article {
  padding: 4mm;
}

.concept-grid {
  grid-template-columns: .92fr 1.08fr;
}

.wide-figure {
  padding: 5mm;
}

.wide-figure img {
  max-height: 118mm;
  margin: auto;
}

.planning-layout {
  grid-template-columns: 1.2fr .8fr;
}

.checklist {
  padding: 5mm;
  background: var(--pale);
  border-radius: 2mm;
}

.checklist ol,
.number-flow {
  margin: 0;
  padding-left: 0;
  list-style: none;
  counter-reset: item;
}

.checklist li,
.number-flow li {
  position: relative;
  margin-bottom: 4mm;
  padding-left: 13mm;
  counter-increment: item;
}

.checklist li::before,
.number-flow li::before {
  content: counter(item);
  position: absolute;
  left: 0;
  top: .5mm;
  width: 8mm;
  height: 8mm;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--blue);
  font-size: 8pt;
  font-weight: 800;
}

.checklist strong,
.checklist span,
.number-flow strong,
.number-flow span {
  display: block;
}

.checklist span,
.number-flow span {
  color: var(--muted);
}

.note-row {
  grid-template-columns: 1fr 1fr;
  margin-top: 7mm;
}

.step-page::before {
  border-top-color: #dff2fb;
}

.step-head {
  justify-content: space-between;
  border-bottom: 2px solid var(--blue);
  padding-bottom: 5mm;
}

.step-head div {
  min-width: 86mm;
}

.step-head span {
  display: inline-block;
  margin-bottom: 2mm;
  color: var(--blue);
  font-weight: 900;
}

.step-head h2 {
  margin: 0;
  font-size: 24pt;
}

.step-head p {
  max-width: 72mm;
  margin: 0;
  color: var(--muted);
  font-size: 9pt;
}

.step-grid {
  grid-template-columns: .85fr 1.15fr;
  gap: 8mm;
}

.step-grid.reverse {
  grid-template-columns: 1.15fr .85fr;
}

.step-figure {
  padding: 5mm;
}

.step-figure img {
  width: 100%;
  max-height: 105mm;
  object-fit: contain;
}

.step-copy p {
  font-size: 10pt;
}

.support-figure {
  margin-top: 7mm;
  padding: 4mm;
  display: grid;
  grid-template-columns: 38mm 1fr;
  gap: 5mm;
  align-items: center;
}

.support-figure.small {
  grid-template-columns: 32mm 1fr;
}

.support-figure.holder-check {
  grid-template-columns: 50mm 1fr;
  min-height: 66mm;
}

.support-figure img {
  max-height: 32mm;
  margin: auto;
}

.support-figure.holder-check img {
  width: auto;
  height: 60mm;
  max-height: none;
}

.caution {
  margin-top: 7mm;
  background: #f3f9fd;
  border-color: #b9d8ec;
}

.caution strong {
  color: var(--deep);
}

.caution p,
.pearl p,
.check-panel p,
.approval-note p {
  margin-bottom: 0;
}

.image-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8mm;
}

.image-duo figure {
  padding: 5mm;
}

.image-duo img {
  height: 70mm;
  object-fit: contain;
  margin: auto;
}

.pearl {
  margin-top: 7mm;
  background: #edf8fe;
  border-color: #b9d8ec;
}

.size-table {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2mm;
  margin-top: 6mm;
}

.size-table div {
  padding: 3mm;
  text-align: center;
  border-radius: 2mm;
  background: var(--pale);
}

.size-table strong,
.size-table span {
  display: block;
}

.size-table strong {
  color: var(--deep);
}

.size-table span {
  color: var(--muted);
  font-size: 8pt;
}

.do-dont {
  grid-template-columns: 1fr 1fr;
  margin-top: 7mm;
}

.screw-layout {
  grid-template-columns: .92fr 1.08fr;
}

.screw-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4mm;
}

.screw-images figure {
  min-height: 52mm;
  padding: 4mm;
}

.screw-images figure:nth-child(3) {
  grid-column: 1 / -1;
}

.screw-images img {
  max-height: 45mm;
  object-fit: contain;
  margin: auto;
}

.number-flow li {
  margin-bottom: 7mm;
}

.hinge-line {
  display: grid;
  grid-template-columns: 32mm 1fr;
  gap: 6mm;
  align-items: center;
  margin-top: 8mm;
  padding: 5mm;
  border-radius: 2mm;
  background: var(--pale);
}

.hinge-line img {
  max-height: 28mm;
  margin: auto;
}

.hinge-line p {
  margin: 0;
}

.confirmation-grid {
  grid-template-columns: 1fr 1fr;
}

.confirmation-grid article {
  min-height: 51mm;
}

.check-panel {
  margin-top: 8mm;
}

.lineup {
  grid-template-columns: 1fr 1fr;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 8.2pt;
}

th,
td {
  padding: 2.4mm 2mm;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--deep);
  background: #e8f5fc;
  font-weight: 800;
}

.swatch {
  display: inline-block;
  width: 7mm;
  height: 3mm;
  margin-right: 2mm;
  border-radius: 999px;
  vertical-align: middle;
}

.green { background: #7cb75b; }
.gold { background: #c6a348; }
.pink { background: #c8899e; }
.blue { background: #347eb6; }

.product-row {
  display: grid;
  grid-template-columns: 1.2fr .8fr 1fr;
  gap: 5mm;
  align-items: center;
  margin-top: 8mm;
  padding: 5mm;
}

.product-row img {
  max-height: 43mm;
  object-fit: contain;
  margin: auto;
}

.instrument-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4mm;
}

.instrument-grid figure,
.tray-grid figure {
  padding: 4mm;
  text-align: center;
}

.instrument-grid img {
  height: 54mm;
  object-fit: contain;
  margin: auto;
}

.tray-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4mm;
  margin: 7mm 0;
}

.tray-grid img {
  height: 50mm;
  object-fit: contain;
  margin: auto;
}

.safety-layout {
  grid-template-columns: 1fr 1fr;
}

.risk-box {
  padding: 6mm;
  background: #edf8fe;
  border-color: #b9d8ec;
}

.risk-box.pale {
  background: #ffffff;
  border-color: var(--line);
}

.approval-note {
  margin-top: 8mm;
  background: #edf8fe;
  border-color: #b9d8ec;
}

.reference-grid {
  grid-template-columns: 1.15fr .85fr;
}

.reference-grid section {
  padding: 5mm;
  border: 1px solid var(--line);
  border-radius: 2mm;
  background: #fff;
}

.product-info {
  margin: 0;
}

.product-info div {
  display: grid;
  grid-template-columns: 32mm 1fr;
  padding: 2mm 0;
  border-bottom: 1px solid var(--line);
}

.product-info dt {
  color: var(--muted);
  font-weight: 700;
}

.product-info dd {
  margin: 0;
}

.qr-row {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 7mm;
}

.qr-row figure {
  margin: 0;
  padding: 4mm;
  border: 1px solid var(--line);
  border-radius: 2mm;
  text-align: center;
}

.qr-row img {
  width: 28mm;
  height: 28mm;
  margin: 0 auto 3mm;
}

.qr-row strong,
.qr-row span {
  display: block;
}

.qr-row span {
  color: var(--muted);
  font-size: 7.5pt;
}

.final-footer {
  position: absolute;
  left: 14mm;
  right: 14mm;
  bottom: 11mm;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 6mm;
  align-items: end;
  border-top: 1px solid var(--line);
  padding-top: 4mm;
}

@media print {
  .back-link {
    display: none;
  }
}

.final-footer img {
  width: 48mm;
  margin-bottom: 2mm;
}

.final-footer p {
  margin: 0;
  color: var(--muted);
  font-size: 7.7pt;
  line-height: 1.55;
}

.page-foot {
  position: absolute;
  left: 14mm;
  right: 14mm;
  bottom: 7mm;
  display: flex;
  justify-content: flex-end;
  color: #8a99a8;
  font-size: 7.5pt;
  border-top: 1px solid #cce3f2;
  padding-top: 2mm;
}

@media screen {
  .page {
    margin: 8mm 0;
    box-shadow: 0 10px 45px rgba(15, 45, 76, .18);
  }
}
