:root {
  --blue: #00a1fe;
  --blue-dark: #006cad;
  --navy: #17354d;
  --text: #203344;
  --muted: #5c7080;
  --line: #d7e3eb;
  --surface: #ffffff;
  --canvas: #f5f9fc;
  --soft-blue: #eaf6fd;
  --danger: #c00000;
  --danger-soft: #fff1f1;
  --shadow: 0 18px 45px rgba(23, 53, 77, .08);
  font-family: "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background: var(--canvas);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body { margin: 0; min-width: 320px; background: var(--canvas); }

button, a { font: inherit; }

a { color: inherit; }

button { cursor: pointer; }

button:focus-visible, a:focus-visible, video:focus-visible {
  outline: 3px solid #ffb000;
  outline-offset: 3px;
}

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

code {
  font-family: Consolas, "Courier New", monospace;
  font-size: .96em;
  color: var(--navy);
  background: #edf4f8;
  border-radius: 6px;
  padding: .12em .3em;
}

.site-header {
  min-height: 78px;
  padding: 12px max(20px, calc((100vw - 1180px) / 2));
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand img { width: 170px; height: auto; }

.back-link {
  color: var(--blue-dark);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

.back-link:hover { text-decoration: underline; }

.section-shell { width: min(1120px, calc(100% - 40px)); margin-inline: auto; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, .86fr);
  gap: clamp(36px, 6vw, 84px);
  align-items: center;
  padding-top: clamp(54px, 8vw, 92px);
  padding-bottom: clamp(54px, 8vw, 92px);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--blue-dark);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .12em;
  line-height: 1.3;
  text-transform: uppercase;
}

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

h1 {
  max-width: 680px;
  margin-bottom: 10px;
  color: var(--navy);
  font-size: clamp(42px, 6vw, 72px);
  line-height: .98;
  letter-spacing: -.055em;
}

h2 {
  margin-bottom: 18px;
  color: var(--navy);
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.08;
  letter-spacing: -.035em;
}

.hero-model {
  margin-bottom: 16px;
  color: var(--blue-dark);
  font-size: clamp(20px, 2.4vw, 27px);
  font-weight: 800;
  line-height: 1.25;
}

.hero-lede {
  max-width: 660px;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.5;
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 28px;
}

.hero-facts span {
  padding: 8px 12px;
  border: 1px solid #cbe9f8;
  border-radius: 999px;
  color: var(--blue-dark);
  background: var(--soft-blue);
  font-size: 14px;
  font-weight: 700;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

.button {
  min-height: 46px;
  padding: 11px 17px;
  border: 1px solid transparent;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--navy);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}

.button:hover { transform: translateY(-1px); }

.button-primary { color: #fff; background: var(--blue); box-shadow: 0 8px 20px rgba(0, 161, 254, .23); }
.button-primary:hover { background: #008fe2; box-shadow: 0 11px 24px rgba(0, 161, 254, .3); }
.button-secondary { border-color: #b9d6e5; background: #fff; }
.button-secondary:hover { border-color: var(--blue); background: var(--soft-blue); }
.button-quiet { color: var(--blue-dark); background: transparent; border-color: transparent; }
.button-quiet:hover { background: var(--soft-blue); }

.media-card {
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.image-button {
  position: relative;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
}

.image-button img { width: 100%; aspect-ratio: 1.15; object-fit: cover; }

.zoom-hint {
  position: absolute;
  right: 14px;
  bottom: 14px;
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--navy);
  background: rgba(255,255,255,.94);
  font-size: 13px;
  font-weight: 800;
}

figcaption { padding: 13px 18px 17px; color: var(--muted); font-size: 14px; font-style: italic; line-height: 1.4; }

.intro-grid {
  display: grid;
  grid-template-columns: 1fr minmax(300px, .64fr);
  gap: 24px;
  align-items: stretch;
  padding-bottom: 36px;
}

.intro-grid > div:first-child, .ip-card, .manual-card {
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}

.check-list { display: grid; gap: 15px; margin: 0; padding: 0; list-style: none; font-size: 18px; line-height: 1.45; }
.check-list li { position: relative; padding-left: 32px; }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: -1px; color: #008b60; font-weight: 900; font-size: 22px; }

.ip-card { display: flex; flex-direction: column; justify-content: center; background: var(--soft-blue); border-color: #cbe9f8; }
.ip-label { margin-bottom: 12px; color: var(--blue-dark); font-size: 14px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; }
.ip-value { display: block; margin-bottom: 20px; color: var(--navy); font-size: clamp(24px, 3vw, 33px); font-weight: 800; background: transparent; padding: 0; }
.copy-ip { align-self: flex-start; }
.copy-status { min-height: 22px; margin-top: 9px; color: #007a56; font-weight: 800; }

.notice {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 56px;
  padding: 20px 24px;
  border-radius: 15px;
}

.notice-icon {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--danger);
  font-size: 19px;
  font-weight: 900;
}

.notice h2 { margin-bottom: 5px; font-size: 21px; letter-spacing: -.01em; }
.notice p { margin-bottom: 0; color: var(--danger); font-size: 18px; font-weight: 900; }
.notice small { display: block; margin-top: 8px; color: var(--muted); font-size: 15px; line-height: 1.5; }
.notice-danger { border: 1px solid #f2c6c6; background: var(--danger-soft); }
.compact-notice { margin-top: 26px; margin-bottom: 76px; }

.guide-section, .video-section, .quick-section, .manual-section { scroll-margin-top: 30px; }

.section-heading { display: flex; justify-content: space-between; gap: 24px; align-items: end; margin-bottom: 26px; }
.section-heading h2 { margin-bottom: 0; }
.guide-summary { margin: 0; color: var(--blue-dark); font-size: 15px; font-weight: 800; white-space: nowrap; }
.video-badge { margin: 0; padding: 7px 11px; border: 1px solid #cbe9f8; border-radius: 999px; color: var(--blue-dark); background: var(--soft-blue); font-size: 13px; font-weight: 800; white-space: nowrap; }

.progress-wrap { margin-bottom: 18px; }
.progress-meta { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 8px; color: var(--muted); font-size: 14px; font-weight: 800; }
.progress-track { height: 9px; overflow: hidden; border-radius: 999px; background: #dce9f0; }
.progress-bar { width: 6%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--blue), #00c9d8); transition: width .25s ease; }

.step-card {
  display: grid;
  grid-template-columns: minmax(270px, .72fr) minmax(0, 1.28fr);
  gap: clamp(24px, 5vw, 60px);
  min-height: 480px;
  padding: clamp(24px, 5vw, 50px);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.step-kicker { margin: 0 0 12px; color: var(--blue); font-size: 17px; font-weight: 900; letter-spacing: .04em; }
.step-copy h3 { margin: 0 0 18px; color: var(--navy); font-size: clamp(29px, 4vw, 46px); line-height: 1.05; letter-spacing: -.04em; }
.step-instruction { margin-bottom: 18px; color: var(--text); font-size: 20px; line-height: 1.45; }
.step-value { display: inline-block; margin: 2px 0 18px; padding: 12px 15px; border: 1px solid #cbe9f8; border-radius: 10px; color: var(--navy); background: var(--soft-blue); font-family: Consolas, "Courier New", monospace; font-size: clamp(18px, 2vw, 24px); font-weight: 800; line-height: 1.35; }
.step-note { margin-bottom: 16px; color: var(--muted); font-size: 16px; line-height: 1.5; }
.step-note strong { color: var(--navy); }
.step-alert { margin: 18px 0 0; padding: 13px 15px; border-left: 4px solid var(--danger); color: var(--danger); background: var(--danger-soft); font-size: 16px; font-weight: 900; line-height: 1.4; }
.step-ok { margin-top: 18px; padding: 15px; border-radius: 11px; color: #006b4e; background: #ecfaf5; font-size: 17px; font-weight: 800; line-height: 1.45; }
.step-copy .copy-ip { margin-top: 4px; }

.step-media { align-self: center; margin: 0; }
.step-media .image-button { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #f7fafc; }
.step-media img { width: 100%; max-height: 455px; object-fit: contain; background: #f7fafc; }
.step-media figcaption { padding: 12px 4px 0; text-align: center; }
.step-media .media-empty { min-height: 340px; display: grid; place-items: center; padding: 35px; border: 1px dashed #bcd0dc; border-radius: 14px; color: var(--muted); background: #f7fafc; text-align: center; font-size: 17px; line-height: 1.5; }
.state-visual { grid-template-columns: auto 1fr; gap: 18px; text-align: left; }
.state-visual .state-printer { display: grid; place-items: center; width: 68px; height: 68px; border-radius: 16px; color: #fff; background: var(--blue); font-size: 36px; line-height: 1; }
.state-visual strong, .state-visual em { display: block; }
.state-visual strong { color: var(--navy); font-size: 19px; }
.state-visual em { margin-top: 7px; color: #006b4e; font-style: normal; font-weight: 900; }

.step-controls { display: flex; justify-content: space-between; gap: 16px; margin-top: 18px; }
.step-controls .button:disabled { cursor: not-allowed; opacity: .42; transform: none; }

.video-section { margin-top: 112px; margin-bottom: 96px; }
.video-intro { margin-bottom: 4px; color: var(--navy); font-size: 21px; font-weight: 800; }
.video-copy { max-width: 720px; margin-bottom: 22px; color: var(--muted); font-size: 17px; line-height: 1.55; }
.video-frame { overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: #101820; box-shadow: var(--shadow); }
.video-frame video { width: 100%; aspect-ratio: 16 / 9; object-fit: contain; background: #101820; }
.support-note { margin: 14px 0 0; color: var(--muted); font-size: 15px; line-height: 1.55; }

.quick-section { margin-bottom: 96px; }
.quick-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; margin: 0; padding: 0; list-style: none; counter-reset: quick; }
.quick-list li { counter-increment: quick; min-height: 55px; padding: 14px 10px 14px 50px; border-bottom: 1px solid var(--line); position: relative; color: var(--text); font-size: 16px; line-height: 1.4; }
.quick-list li::before { content: counter(quick); position: absolute; left: 8px; top: 12px; width: 27px; height: 27px; border-radius: 50%; display: grid; place-items: center; color: var(--blue-dark); background: var(--soft-blue); font-size: 14px; font-weight: 900; }
.quick-list code { overflow-wrap: anywhere; }
.quick-warning { display: flex; justify-content: space-between; gap: 18px; margin-top: 24px; padding: 17px 20px; border: 1px solid #f2c6c6; border-radius: 12px; color: var(--danger); background: var(--danger-soft); font-size: 17px; font-weight: 900; }

.manual-section { margin-bottom: 100px; }
.manual-card { display: flex; justify-content: space-between; align-items: center; gap: 30px; background: var(--navy); border: 0; box-shadow: var(--shadow); }
.manual-card h2, .manual-card p { color: #fff; }
.manual-card h2 { margin-bottom: 10px; font-size: clamp(26px, 3vw, 36px); }
.manual-card p { margin-bottom: 0; color: #cfe1ec; font-size: 17px; line-height: 1.5; }
.manual-card .button { flex: 0 0 auto; }
.back-to-start { display: inline-block; margin-top: 20px; color: var(--blue-dark); font-weight: 800; text-decoration: none; }
.back-to-start:hover { text-decoration: underline; }

.site-footer { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-top: 22px; padding-bottom: 30px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.site-footer img { width: 115px; }

.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 5;
  width: 50px;
  height: 50px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--blue);
  box-shadow: 0 8px 22px rgba(23, 53, 77, .2);
  font-size: 25px;
  font-weight: 900;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease, background .18s ease;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); }
.back-to-top:hover { background: #008fe2; }
.back-to-top:focus-visible { outline: 3px solid #ffb000; outline-offset: 3px; }

.image-dialog { width: min(94vw, 1100px); max-width: none; padding: 16px; border: 0; border-radius: 16px; background: #102333; box-shadow: 0 24px 80px rgba(0,0,0,.4); }
.image-dialog::backdrop { background: rgba(8, 24, 36, .78); }
.image-dialog img { width: 100%; max-height: 82vh; object-fit: contain; }
.dialog-close { display: block; margin: 0 0 10px auto; padding: 8px 11px; border: 1px solid rgba(255,255,255,.3); border-radius: 8px; color: #fff; background: transparent; font-weight: 800; }
.dialog-close:hover { background: rgba(255,255,255,.12); }

.noscript-warning { position: fixed; inset: 0 0 auto; z-index: 4; padding: 14px; color: #fff; background: var(--danger); text-align: center; font-weight: 800; }

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; padding-top: 48px; }
  .hero-photo { max-width: 680px; }
  .intro-grid { grid-template-columns: 1fr; }
  .step-card { grid-template-columns: 1fr; min-height: 0; }
  .step-media { order: -1; }
  .step-media img { max-height: 380px; }
}

@media (max-width: 620px) {
  .section-shell { width: min(100% - 28px, 1120px); }
  .site-header { min-height: 68px; padding: 10px 14px; gap: 12px; }
  .brand img { width: 132px; }
  .back-link { max-width: 190px; font-size: 13px; line-height: 1.25; text-align: right; }
  h1 { font-size: clamp(40px, 13vw, 58px); }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-actions .button { width: 100%; }
  .section-heading { display: block; }
  .guide-summary { margin-top: 10px; }
  .video-badge { display: inline-flex; margin-top: 12px; }
  .notice { margin-bottom: 38px; padding: 17px; }
  .notice h2 { font-size: 19px; }
  .step-card { padding: 21px; border-radius: 16px; }
  .step-copy h3 { font-size: 34px; }
  .step-instruction { font-size: 18px; }
  .step-controls { position: sticky; bottom: 0; z-index: 2; margin-inline: -21px; padding: 12px 21px; background: rgba(245,249,252,.94); backdrop-filter: blur(8px); }
  .step-controls .button { flex: 1; }
  .quick-list { grid-template-columns: 1fr; }
  .quick-warning, .manual-card { display: block; }
  .quick-warning span { display: block; margin-top: 7px; }
  .manual-card .button { width: 100%; margin-top: 20px; }
  .back-to-top { right: 16px; bottom: 88px; width: 50px; height: 50px; }
  .site-footer { display: block; }
  .site-footer span { display: block; margin-top: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
