:root {
  color-scheme: dark;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
  color: #eef3f5;
  background: #0a0d0f;
  --surface: #11171a;
  --surface-raised: #182126;
  --surface-soft: #202b30;
  --line: #34434a;
  --line-strong: #59707a;
  --muted: #a7b5bb;
  --cyan: #69d6f2;
  --cyan-dark: #173a46;
  --green: #76c995;
  --orange: #eca15d;
  --rose: #e49ab4;
}

* {
  box-sizing: border-box;
  letter-spacing: 0;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
  background: #0a0d0f;
}

body {
  min-height: 100vh;
  margin: 0;
  background: #0d1215;
  color: #eef3f5;
}

a {
  color: #98e7fb;
  text-underline-offset: 3px;
}

a:focus-visible {
  outline: 3px solid rgba(105, 214, 242, 0.58);
  outline-offset: 3px;
}

.guide-header {
  min-height: 66px;
  padding: 9px max(18px, calc((100vw - 1120px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid #2f3a3f;
  background: #080b0d;
}

.guide-brand {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #f7fafb;
  text-decoration: none;
}

.guide-brand img {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  object-fit: contain;
}

.guide-brand span {
  min-width: 0;
  display: grid;
}

.guide-brand small {
  color: #7f9199;
  font-size: 9px;
  font-weight: 800;
}

.guide-brand strong {
  font-size: 16px;
  line-height: 1.3;
}

.guide-header nav {
  display: flex;
  align-items: center;
  gap: 7px;
}

.guide-header nav a {
  min-height: 36px;
  padding: 7px 10px;
  display: inline-flex;
  align-items: center;
  border: 1px solid #3d4b51;
  border-radius: 5px;
  background: #151b1e;
  color: #dbe4e7;
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.guide-header nav a:first-child {
  border-color: #337f96;
  color: #9de8fb;
}

main {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
}

.guide-intro {
  min-height: 520px;
  padding: 72px 0 60px;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 72px;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.eyebrow,
.step-kicker {
  margin: 0 0 10px;
  color: var(--cyan);
  font-size: 11px;
  font-weight: 900;
}

.guide-intro h1 {
  margin: 0;
  font-size: 38px;
  line-height: 1.35;
}

.guide-intro-copy > p:not(.eyebrow) {
  max-width: 700px;
  margin: 20px 0 0;
  color: #b7c2c7;
  font-size: 15px;
  line-height: 1.9;
}

.intro-actions,
.final-actions {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.primary-link,
.secondary-link {
  min-height: 46px;
  padding: 10px 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.primary-link {
  border: 1px solid #398ca5;
  background: #2e819a;
  color: #fff;
}

.secondary-link {
  border: 1px solid #53636a;
  background: #1b2428;
  color: #e0e7e9;
}

.flow-map {
  margin: 0;
  padding: 0;
  display: grid;
  list-style: none;
  border-top: 1px solid var(--line-strong);
}

.flow-map li {
  min-height: 68px;
  padding: 14px 2px;
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 12px;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.flow-map span {
  color: var(--cyan);
  font-size: 12px;
  font-weight: 900;
}

.flow-map strong {
  font-size: 14px;
}

.guide-section {
  scroll-margin-top: 74px;
  padding: 64px 0;
  display: grid;
  grid-template-columns: 105px minmax(0, 1fr);
  gap: 34px;
  border-bottom: 1px solid var(--line);
}

.section-number {
  padding-top: 5px;
  color: #7f939c;
  font-size: 13px;
  font-weight: 900;
}

.section-body {
  min-width: 0;
}

.section-body > h2,
.step-copy h2 {
  margin: 0;
  font-size: 27px;
  line-height: 1.45;
}

.step-layout,
.two-screen-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 54px;
  align-items: start;
}

.reverse-layout .step-copy {
  grid-column: 2;
  grid-row: 1;
}

.reverse-layout > :not(.step-copy) {
  grid-column: 1;
  grid-row: 1;
}

.instruction-list {
  margin: 28px 0 0;
  padding: 0;
  counter-reset: guide-step;
  list-style: none;
  border-top: 1px solid var(--line-strong);
}

.instruction-list li {
  min-height: 58px;
  padding: 14px 2px 14px 45px;
  position: relative;
  border-bottom: 1px solid var(--line);
  color: #c3ced2;
  font-size: 14px;
  line-height: 1.75;
}

.instruction-list li::before {
  width: 27px;
  height: 27px;
  position: absolute;
  top: 15px;
  left: 2px;
  display: grid;
  place-items: center;
  border: 1px solid #408da3;
  border-radius: 50%;
  background: #17333d;
  color: #9be7fa;
  content: counter(guide-step);
  counter-increment: guide-step;
  font-size: 11px;
  font-weight: 900;
}

.url-box,
.important-note,
.security-note,
.success-note {
  margin: 22px 0 0;
  padding: 15px 17px;
  border-left: 4px solid var(--cyan);
  background: #152127;
  color: #becbd0;
  font-size: 13px;
  line-height: 1.75;
}

.url-box {
  display: grid;
  gap: 5px;
}

.url-box span {
  color: #8799a1;
  font-size: 10px;
  font-weight: 900;
}

.url-box strong {
  color: #e4f7fb;
  overflow-wrap: anywhere;
}

.security-note {
  border-left-color: var(--rose);
  background: #261a20;
}

.success-note {
  border-left-color: var(--green);
  background: #15251c;
}

.screen-figure {
  width: min(320px, 100%);
  margin: 0 auto;
}

.screen-figure img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid #53656d;
  border-radius: 22px;
  background: #080b0d;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.3);
}

.screen-figure figcaption {
  margin-top: 11px;
  display: flex;
  gap: 7px;
  color: #9eacb2;
  font-size: 11px;
  line-height: 1.6;
}

.screen-figure figcaption span {
  color: var(--cyan);
  font-weight: 900;
}

.tall-screen img {
  max-height: 760px;
  object-fit: cover;
  object-position: top;
}

.decision-panel {
  padding: 24px;
  border: 1px solid #4d626b;
  border-radius: 7px;
  background: #172025;
}

.decision-panel h3 {
  margin: 0 0 18px;
  font-size: 19px;
}

.decision-row {
  padding: 14px 0;
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 15px;
  border-top: 1px solid #34444b;
  color: #b6c2c7;
  font-size: 13px;
  line-height: 1.7;
}

.decision-row strong {
  color: #fff;
}

.preparation-section {
  border-top: 3px solid var(--cyan);
}

.registration-section {
  border-top: 3px solid var(--orange);
}

.completion-section {
  border-top: 3px solid var(--green);
}

.install-section {
  border-top: 3px solid var(--rose);
}

.requirement-list {
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  list-style: none;
  border-top: 1px solid var(--line-strong);
}

.requirement-list li {
  min-height: 82px;
  padding: 15px 18px 15px 2px;
  display: grid;
  gap: 6px;
  border-bottom: 1px solid var(--line);
}

.requirement-list li:nth-child(odd) {
  border-right: 1px solid var(--line);
}

.requirement-list li:nth-child(even) {
  padding-left: 18px;
}

.requirement-list strong {
  color: #f2f6f7;
  font-size: 13px;
}

.requirement-list span {
  color: #abb9bf;
  font-size: 12px;
  line-height: 1.6;
}

.credential-table {
  margin-top: 28px;
  border-block: 1px solid var(--line-strong);
}

.credential-row {
  min-height: 54px;
  padding: 13px 5px;
  display: grid;
  grid-template-columns: 150px 1fr 1fr;
  gap: 16px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  color: #b7c4c9;
  font-size: 12px;
  line-height: 1.6;
}

.credential-row:last-child {
  border-bottom: 0;
}

.credential-head {
  min-height: 38px;
  color: #7f949c;
  font-size: 10px;
  font-weight: 900;
}

.credential-row strong {
  color: #f3f7f8;
}

.trouble-list {
  margin: 26px 0 0;
  border-top: 1px solid var(--line-strong);
}

.trouble-list > div {
  padding: 17px 2px;
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}

.trouble-list dt {
  color: #eef3f5;
  font-size: 13px;
  font-weight: 900;
}

.trouble-list dd {
  margin: 0;
  color: #aebcc2;
  font-size: 13px;
  line-height: 1.75;
}

.guide-footer {
  width: min(1120px, calc(100% - 36px));
  min-height: 64px;
  margin: 0 auto;
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: #71848c;
  font-size: 10px;
  font-weight: 800;
}

@media (max-width: 820px) {
  .guide-header {
    align-items: flex-start;
  }

  .guide-header nav {
    max-width: 220px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .guide-intro {
    min-height: 0;
    padding: 48px 0 40px;
    grid-template-columns: minmax(0, 1fr);
    gap: 34px;
  }

  .guide-intro h1 {
    font-size: 30px;
  }

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

  .flow-map li:nth-child(odd) {
    border-right: 1px solid var(--line);
  }

  .guide-section {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    padding: 48px 0;
  }

  .step-layout,
  .two-screen-layout {
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 30px;
  }

  .reverse-layout .step-copy,
  .reverse-layout > :not(.step-copy) {
    grid-column: auto;
    grid-row: auto;
  }
}

@media (max-width: 640px) {
  .guide-header {
    min-height: 58px;
    padding: 8px 12px;
    align-items: center;
  }

  .guide-brand img {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
  }

  .guide-brand strong {
    font-size: 13px;
  }

  .guide-header nav {
    max-width: none;
    flex-wrap: nowrap;
    gap: 5px;
  }

  .guide-header nav a {
    min-height: 34px;
    padding: 6px 8px;
    font-size: 10px;
  }

  .guide-header nav a:last-child {
    display: none;
  }

  main {
    width: min(100% - 26px, 1120px);
  }

  .guide-intro {
    padding-top: 42px;
  }

  .guide-intro h1 {
    font-size: 26px;
    line-height: 1.45;
  }

  .guide-intro-copy > p:not(.eyebrow) {
    font-size: 13px;
  }

  .intro-actions,
  .final-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .flow-map {
    grid-template-columns: minmax(0, 1fr);
  }

  .flow-map li:nth-child(odd) {
    border-right: 0;
  }

  .section-body > h2,
  .step-copy h2 {
    font-size: 22px;
  }

  .step-layout,
  .two-screen-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 34px;
  }

  .screen-figure {
    width: min(300px, 100%);
  }

  .requirement-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .requirement-list li:nth-child(odd) {
    border-right: 0;
  }

  .requirement-list li:nth-child(even) {
    padding-left: 2px;
  }

  .credential-row,
  .credential-head {
    grid-template-columns: minmax(0, 1fr);
    gap: 5px;
  }

  .credential-head {
    display: none;
  }

  .credential-row {
    padding: 16px 2px;
  }

  .trouble-list > div {
    grid-template-columns: minmax(0, 1fr);
    gap: 7px;
  }

  .guide-footer {
    display: grid;
  }
}

@media print {
  :root {
    color-scheme: light;
    color: #172126;
    background: #fff;
  }

  body {
    background: #fff;
    color: #172126;
  }

  .guide-header {
    position: static;
    background: #101416;
    print-color-adjust: exact;
  }

  .guide-header nav,
  .intro-actions,
  .final-actions {
    display: none;
  }

  .guide-intro,
  .guide-section {
    break-inside: avoid;
  }

  .screen-figure img {
    box-shadow: none;
  }
}
