:root {
  --main: #1f5fae;
  --main-dark: #164784;
  --accent: #d9480f;
  --bg: #f4f6f9;
  --card: #ffffff;
  --text: #222222;
  --sub: #5a6270;
  --line: #dde2ea;
  --radius: 12px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic UI", "Meiryo", sans-serif;
  font-size: 16px;
  line-height: 1.8;
  -webkit-text-size-adjust: 100%;
}

.wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 24px 16px 48px;
}

header {
  text-align: center;
  margin-bottom: 20px;
}

.system-name {
  margin: 0;
  font-size: 14px;
  color: var(--sub);
}

h1 {
  margin: 4px 0 0;
  font-size: 26px;
  line-height: 1.4;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 20px;
  margin-bottom: 20px;
}

h2 {
  margin: 0 0 12px;
  font-size: 20px;
  line-height: 1.4;
  padding-left: 12px;
  border-left: 5px solid var(--main);
}

p {
  margin: 0 0 12px;
}

.alert {
  background: #fff4e6;
  border: 2px solid #ffb366;
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 20px;
}

.alert strong {
  color: var(--accent);
}

.url-label {
  font-size: 14px;
  color: var(--sub);
  margin: 16px 0 4px;
}

.url-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.url-box {
  flex: 1;
  min-width: 0;
  background: #eef4fc;
  border: 1px solid #b8cdea;
  border-radius: 8px;
  padding: 10px 12px;
  font-family: Consolas, "Courier New", monospace;
  font-size: 17px;
  font-weight: bold;
  word-break: break-all;
}

.url-box.old {
  background: #f1f1f1;
  border-color: #d0d0d0;
  color: #888888;
  text-decoration: line-through;
  font-weight: normal;
}

.copy-btn {
  flex-shrink: 0;
  border: 1px solid var(--main);
  background: #ffffff;
  color: var(--main);
  border-radius: 8px;
  padding: 0 14px;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
}

.copy-btn:hover {
  background: #eef4fc;
}

.go-btn {
  display: block;
  margin: 24px auto 4px;
  max-width: 420px;
  background: var(--main);
  color: #ffffff;
  text-align: center;
  text-decoration: none;
  font-size: 20px;
  font-weight: bold;
  padding: 18px 16px;
  border-radius: 999px;
  box-shadow: 0 4px 0 var(--main-dark);
}

.go-btn:hover {
  background: var(--main-dark);
}

.go-btn:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 var(--main-dark);
}

.note {
  font-size: 14px;
  color: var(--sub);
  text-align: center;
  margin: 8px 0 0;
}

.tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.tab {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px;
}

.tab h3 {
  margin: 0 0 6px;
  font-size: 16px;
}

.tab ol {
  margin: 0;
  padding-left: 1.3em;
  font-size: 15px;
}

kbd {
  display: inline-block;
  border: 1px solid #bbbbbb;
  border-bottom-width: 2px;
  border-radius: 4px;
  padding: 0 6px;
  font-size: 13px;
  font-family: inherit;
  background: #fafafa;
  line-height: 1.6;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
}

.steps > li {
  counter-increment: step;
  padding: 16px 0;
  border-top: 1px dashed var(--line);
}

.steps > li:first-child {
  border-top: none;
  padding-top: 4px;
}

.step-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: bold;
  font-size: 17px;
  margin-bottom: 8px;
}

.step-title::before {
  content: counter(step);
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--main);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
}

.step-body {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.step-body p,
.step-text {
  flex: 1;
  min-width: 0;
}

.step-text p {
  margin-bottom: 8px;
}

.step-text .step-hint {
  margin-top: 8px;
  font-size: 14px;
  color: var(--sub);
}

figure {
  margin: 0;
  flex: 0 0 220px;
}

figure img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.img-missing {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 9 / 16;
  max-height: 360px;
  border: 2px dashed #b8c2d0;
  border-radius: 10px;
  background: #f7f9fc;
  color: #8a94a3;
  font-size: 13px;
  text-align: center;
  padding: 8px;
}

.contact {
  font-size: 14px;
  color: var(--sub);
}

footer {
  text-align: center;
  font-size: 13px;
  color: var(--sub);
  margin-top: 24px;
}

@media (max-width: 600px) {
  .wrap {
    padding: 16px 12px 40px;
  }

  h1 {
    font-size: 22px;
  }

  .card {
    padding: 20px 16px;
  }

  .tabs {
    grid-template-columns: 1fr;
  }

  .step-body {
    flex-direction: column;
  }

  figure {
    flex: none;
    width: 100%;
    max-width: 260px;
    margin: 0 auto;
  }

  .go-btn {
    font-size: 18px;
  }
}