* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); background: var(--page); color: var(--ink); font-size: 1rem; line-height: 1.7; }
a { color: var(--accent); text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; border-radius: 3px; }
.skip-link { position: absolute; left: 16px; top: -80px; padding: 10px 16px; background: var(--paper); z-index: 10; }
.skip-link:focus { top: max(12px, env(safe-area-inset-top)); left: max(16px, env(safe-area-inset-left)); }
.guide { width: min(1180px, calc(100% - 80px)); margin-inline: auto; }
.guide-header { display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; gap: 56px; padding: 54px 0 48px; }
.hero-copy { min-width: 0; }
.machine-name { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 20px; font-size: 14px; font-weight: 600; }
.machine-name::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--pop); border: 1px solid var(--line); }
h1, h2, h3, .contents > p, .project-sticker { font-family: var(--display); }
h1 { font-size: clamp(38px, 4.9vw, 66px); line-height: 1.04; letter-spacing: .01em; margin: 0 0 22px; font-weight: 800; text-wrap: balance; }
.intro { font-size: 18px; max-width: 53ch; margin: 0 0 26px; line-height: 1.65; }
.primary-link { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 11px 20px; background: var(--laser); color: white; font-size: 15px; font-weight: 600; text-decoration: none; border: 1px solid var(--laser); }
.primary-link:hover { background: #da5330; text-decoration: none; }
.project-facts { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; list-style: none; margin: 25px 0 0; padding: 0; font-size: 13px; color: var(--muted); }
.project-facts strong { color: var(--ink); font-size: 18px; }
.project-facts li + li::before { content: ''; display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: var(--muted); margin-right: 18px; vertical-align: middle; }
.hero-visual { position: relative; margin: 0 5px 6px 0; padding: 14px 12px 17px; background: var(--cover); border: 1px solid var(--line); border-radius: 0; box-shadow: none; }
.hero-visual img { border: 0; background: transparent; border-radius: 0; }
.hero-visual figcaption { margin: 0; text-align: center; color: var(--ink); font-size: 12px; }
.project-sticker { position: absolute; z-index: 1; right: 16px; top: 18px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 50%; background: var(--paper);  font-size: 16px; font-weight: 700; }
.project-path { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 52px; border: 1px solid var(--line); border-radius: 0; overflow: hidden; }
.project-path a { display: flex; align-items: center; gap: 16px; min-height: 108px; padding: 22px; color: var(--ink); text-decoration: none; background: var(--paper); }
.project-path a:nth-child(2) { background: var(--soft); }
.project-path a:nth-child(3) { background: var(--mint); }
.project-path a + a { border-left: 1px solid var(--line); }
.project-path a:hover strong { text-decoration: underline; text-underline-offset: .25em; }
.project-path a:focus-visible { outline-offset: -5px; }
.phase-icon { display: grid; place-items: center; flex: 0 0 40px; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 0; background: var(--pop); font-size: 28px; line-height: 1; }
.project-path strong, .project-path small { display: block; }
.project-path strong { font-family: var(--display); font-size: 20px; line-height: 1.3; }
.project-path small { font-size: 12px; margin-top: 4px; line-height: 1.5; }
.guide-layout { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 56px; align-items: start; padding-bottom: 64px; }
.contents { position: sticky; top: 24px; padding: 16px 0; font-size: 13px; border-top: 1px solid var(--ink); }
.contents > p { margin: 0 0 14px; font-size: 21px; font-weight: 700; }
.contents ol { list-style: none; padding: 0; margin: 0 0 16px; counter-reset: route; }
.contents li { counter-increment: route; }
.contents li a { display: flex; align-items: baseline; gap: 10px; min-height: 40px; padding: 8px 0; line-height: 1.5; }
.contents li a::before { content: counter(route, decimal-leading-zero); color: var(--accent); font-weight: 700; font-size: 11px; }
.contents a { color: var(--muted); text-decoration: none; }
.contents a:hover { color: var(--accent); text-decoration: underline; }
.contents > a { display: inline-block; padding-block: 8px; font-size: 12px; text-decoration: underline; }
.guide-body { min-width: 0; }
.guide-body h2 { margin: 0 0 16px; font-size: 30px; line-height: 1.2; letter-spacing: .01em; font-weight: 700; }
.guide-body h3 { margin: 0 0 16px; max-width: 30ch; font-size: 27px; line-height: 1.2; letter-spacing: .01em; font-weight: 700; }
.guide-body p { margin: 0 0 16px; max-width: 70ch; }
.preparation { padding: 30px; margin-bottom: 28px; background: var(--paper); border: 1px solid var(--line); border-radius: 0; }
.supplies { padding-left: 22px; margin: 0 0 22px; }
.supplies li { margin-bottom: 10px; padding-left: 4px; }
.supplies li::marker { color: var(--accent); }
.note { padding: 18px 20px; background: var(--warning-wash); border: 1px solid #e3cb7b; border-radius: 0; font-size: 15px; }
.note p:last-child, .preparation p:last-child { margin-bottom: 0; }
.example { margin: 0 0 40px; padding: 28px 30px; border-radius: 0; background: var(--soft); }
.example dl { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); margin: 0; font-size: 15px; }
.example dt, .example dd { padding: 11px 0; margin: 0; border-bottom: 1px solid var(--line); }
.example dt { color: var(--muted); padding-right: 16px; }
.example dd { font-weight: 500; }
.example dt:last-of-type, .example dd:last-child { border-bottom: 0; }
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; }
.steps > li { counter-increment: step; position: relative; padding: 36px 0 36px 78px; border-top: 2px solid var(--line); scroll-margin-top: 24px; }
.steps > li::before { content: counter(step, decimal-leading-zero); position: absolute; top: 34px; left: 0; display: grid; place-items: center; width: 52px; height: 52px; background: var(--cover); color: var(--ink); border: 1px solid var(--line); border-radius: 0; box-shadow: none; font-family: var(--display); font-size: 24px; font-weight: 800; }
.steps ul { padding-left: 21px; margin: 0 0 16px; }
.steps ul li { margin-bottom: 8px; }
.steps > li > :last-child { margin-bottom: 0; }
.guide-body .check { margin-top: 22px; padding: 14px 18px; background: var(--mint); border-radius: 0; color: #234e44; font-size: 14px; }
.check strong { font-weight: 700; }
figure { margin: 26px 0; }
figure img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 0; background: white; }
figure a { display: block; border-radius: 0; }
figcaption { margin-top: 12px; color: var(--muted); font-size: 13px; line-height: 1.6; }
code { background: var(--soft); padding: 2px 5px; border-radius: 4px; font-size: .9em; overflow-wrap: anywhere; }
.troubleshooting { margin: 20px 0 32px; padding: 28px 30px; border: 1px solid var(--line); border-radius: 0; background: var(--paper); scroll-margin-top: 24px; }
.troubleshooting dl { margin: 0; }
.troubleshooting dt { font-weight: 700; margin-top: 22px; }
.troubleshooting dd { margin: 6px 0 0; color: var(--muted); }
.guide-footer { padding: 28px 0 0; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.guide-footer p { margin-bottom: 16px; }
.guide-footer .primary-link { color: white; }
.guide-footer .print-tip { margin-top: 24px; }
#prepare, #import, #slicer, #wash, #finish { scroll-margin-top: 24px; }
@media (max-width: 1000px) {
  .guide-header { gap: 30px; }
  .guide-layout { grid-template-columns: 180px minmax(0, 1fr); gap: 32px; }
  .project-path a { gap: 12px; padding: 18px 14px; }
  .project-path strong { font-size: 18px; }
  .phase-icon { flex-basis: 34px; width: 34px; height: 34px; font-size: 24px; }
}
@media (max-width: 760px) {
  .guide { width: calc(100% - 40px); }

  .guide-header { grid-template-columns: 1fr; gap: 32px; padding: 34px 0 32px; }
  h1 { max-width: 12ch; font-size: clamp(40px, 8vw, 58px); }
  .intro { font-size: 17px; }
  .hero-visual { width: min(100%, 480px); justify-self: center; }
  .project-path { margin-bottom: 32px; }
  .project-path a { flex-direction: column; align-items: flex-start; gap: 12px; padding: 16px 12px; }
  .project-path strong { font-size: 17px; }
  .project-path small { font-size: 11px; }
  .guide-layout { display: block; }
  .contents { position: static; margin-bottom: 30px; }
  .contents ol { columns: 2; column-gap: 24px; }
  .contents li { break-inside: avoid; }
  .preparation, .example, .troubleshooting { padding: 24px; }
  .steps > li { padding-left: 66px; }
  .steps > li::before { width: 46px; height: 46px; font-size: 22px; }
  .guide-body h3 { font-size: 25px; }
}
@media (max-width: 480px) {
  .guide { width: calc(100% - 32px); }
  .route-table { table-layout: fixed; overflow-wrap: anywhere; }

  .guide-header { padding-top: 28px; }
  .machine-name { font-size: 12px; margin-bottom: 16px; }
  .project-facts { gap: 6px 12px; font-size: 11px; }
  .project-facts li + li::before { margin-right: 12px; }
  .project-path { grid-template-columns: 1fr; }
  .project-path a { flex-direction: row; align-items: center; min-height: 82px; gap: 16px; padding: 14px 18px; }
  .project-path a + a { border-left: 0; border-top: 1px solid var(--line); }
  .project-path small { font-size: 12px; }
  .preparation, .example, .troubleshooting { padding: 22px 18px; }
  .guide-body h2 { font-size: 27px; }
  .steps > li { padding: 30px 0; }
  .steps > li::before { position: static; margin: 0 0 20px 3px;  }
  .steps > li h3 { font-size: 25px; }
  .note { padding: 16px; }
  .example dl { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .primary-link { transition: none; }
}
@media print {
  :root { font-size: 10pt; }
  body { padding: 0; background: white; color: black; }
  .guide { width: 100%; }
  .site-topbar, .contents, .primary-link, .skip-link, .print-tip, .hero-visual, .project-path, .project-facts { display: none; }
  .guide-header { display: block; padding: 0 0 20px; }
  .machine-name { margin-bottom: 10px; }
  .machine-name::before { display: none; }
  h1 { font-size: 26pt; max-width: none; }
  .intro { font-size: 12pt; }
  .guide-layout { display: block; padding: 0; }
  .preparation, .note, .example, .troubleshooting, .guide-body .check { background: white; border-color: #999; box-shadow: none; }
  .preparation, .example, .troubleshooting { padding: 16px; }
  .steps > li { padding: 24px 0 24px 52px; }
  .steps > li::before { position: absolute; top: 24px; width: 34px; height: 34px; margin: 0; background: white; color: black; border: 1px solid black; box-shadow: none; transform: none; font-size: 14pt; }
  .guide-body h2 { font-size: 18pt; }
  .guide-body h3, .steps > li h3 { font-size: 16pt; }
  h2, h3 { break-after: avoid; }
  figure, .note, .example { break-inside: avoid; }
  a { color: inherit; }
  .guide-footer { font-size: 9pt; }
}
