:root { --brand: #333; --on-brand: #fff; --ink: #14171c; --ink-2: #2d323b; --muted: #5f6672; --line: #e4e7ec; --bg: #f6f7f9; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font: 17px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif; color: var(--ink); background: var(--bg);
  -webkit-font-smoothing: antialiased; }
.brand { background: var(--brand); color: var(--on-brand); box-shadow: 0 1px 0 rgba(0, 0, 0, .06); }
.brand .in { max-width: 820px; margin: 0 auto; padding: 14px 20px; min-height: 64px; display: flex; align-items: center; gap: 14px; font-weight: 700; font-size: 1.05rem; letter-spacing: -.005em; }
.brand img { max-height: 40px; max-width: 200px; display: block; }
main { max-width: 820px; margin: 0 auto; padding: 44px 20px 96px; }
main.manual { background: #fff; max-width: 860px; padding: 48px 40px 72px; margin: 32px auto 64px; border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 1px 2px rgba(16, 20, 28, .04), 0 10px 30px rgba(16, 20, 28, .06); }
h1 { font-size: clamp(1.75rem, 1.2rem + 2.4vw, 2.4rem); line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .45em; }
.intro { white-space: pre-wrap; font-size: 1.1rem; color: var(--ink-2); margin: 0 0 .9em; }
.meta { display: inline-block; color: var(--muted); font-size: .85rem; font-weight: 600; margin: 0 0 32px; padding: 4px 12px; border-radius: 99px;
  background: color-mix(in srgb, var(--brand) 9%, #fff); }
.steps { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.steps > li { padding: 32px 0 8px; scroll-margin-top: 16px; }
.steps > li + li { border-top: 1px solid var(--line); }
.head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 16px; }
.head p { margin: 2px 0 0; font-size: 1.14rem; font-weight: 650; line-height: 1.45; white-space: pre-wrap; }
.num { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: var(--on-brand); display: grid; place-items: center; font-weight: 700; font-size: .95rem; }
figure { container-type: inline-size; position: relative; margin: 0 0 24px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; line-height: 0;
  box-shadow: 0 1px 2px rgba(16, 20, 28, .05), 0 8px 24px rgba(16, 20, 28, .08); background: #f1f3f6; }
figure img { width: 100%; height: auto; display: block; }
.marker { position: absolute; width: clamp(14px, 4.4cqw, 36px); aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%;
  border: 3px solid #ff3b30; background: rgba(255, 59, 48, .10); box-shadow: 0 0 0 2px rgba(255,255,255,.85); pointer-events: none; }
@media (max-width: 640px) {
  main.manual { margin: 0; border: 0; border-radius: 0; box-shadow: none; padding: 28px 16px 56px; }
  .brand .in { padding: 12px 16px; min-height: 56px; }
  .steps > li { padding-top: 24px; }
  .head p { font-size: 1.05rem; }
  .num { width: 30px; height: 30px; font-size: .88rem; }
}

.gate { max-width: 440px; margin: 56px auto; padding: 36px 32px; background: #fff; border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 1px 2px rgba(16, 20, 28, .04), 0 18px 44px rgba(16, 20, 28, .10); }
.gate h1 { font-size: 1.5rem; }
.gate p { color: var(--ink-2); }
.gate::before { content: ""; display: block; width: 44px; height: 44px; border-radius: 12px; margin-bottom: 18px;
  background: color-mix(in srgb, var(--brand) 12%, #fff) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23555' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='10' width='16' height='11' rx='2'/%3E%3Cpath d='M8 10V7a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E") center / 22px no-repeat; }
.gate label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: 6px; }
.gate input { width: 100%; min-height: 48px; padding: 11px 13px; font: inherit; border: 1px solid #c5cad3; border-radius: 10px; }
.gate input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 22%, transparent); }
.gate button { margin-top: 14px; width: 100%; min-height: 50px; padding: 12px; font: inherit; font-weight: 700; border: 0; border-radius: 10px;
  background: var(--brand); color: var(--on-brand); cursor: pointer; }
.gate button:hover { filter: brightness(1.08); }
.gate .error { background: #fde8e6; color: #b3261e; padding: 10px 12px; border-radius: 10px; font-size: .95rem; }
@media (max-width: 640px) { .gate { margin: 24px 16px; padding: 28px 20px; } }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 50%, #fff); outline-offset: 2px; }

@media print {
  body { background: #fff; }
  main.manual { box-shadow: none; border: 0; margin: 0; padding: 16px 0; }
  .brand { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .steps > li { break-inside: avoid; }
  main { padding-top: 16px; }
}

ol.steps figure { cursor: zoom-in; }
dialog#zoom { border: 0; padding: 0; background: transparent; width: 100vw; max-width: 100vw; height: 100vh; max-height: 100vh; }
dialog#zoom::backdrop { background: rgba(12, 14, 18, .88); }
.zoom-scroll { width: 100%; height: 100%; overflow: auto; -webkit-overflow-scrolling: touch; }
.zoom-scroll img { display: block; width: max(100%, 1100px); max-width: none; height: auto; cursor: zoom-out; margin: 0 auto; }
.zoom-close { position: fixed; top: 12px; right: 12px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; color: #111; font-size: 24px; line-height: 1; cursor: pointer; box-shadow: 0 2px 10px rgba(0,0,0,.4); }
@media print { ol.steps figure { cursor: auto; } }


.example-banner { margin: 0; background: #12151b; color: #e9ecf1; font-size: .9rem; line-height: 1.5; text-align: center; padding: 10px 16px; }
.example-banner a { color: #fff; font-weight: 700; text-underline-offset: 2px; }
.example-banner strong { color: #fff; background: rgba(255, 255, 255, .14); padding: 1px 8px; border-radius: 6px; }
@media print { .example-banner { display: none; } }
