:root {
  color-scheme: light;
  --guide-blue: #0a7aff;
  --guide-blue-soft: #eef6ff;
  --guide-ink: #17171c;
  --guide-secondary: #68686f;
  --guide-line: #e7e7ec;
  --guide-fill: #f6f6f8;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: #fff;
  color: var(--guide-ink);
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Noto Sans JP", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

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

a:focus-visible {
  outline: 3px solid rgba(10, 122, 255, 0.35);
  outline-offset: 3px;
}

.guide-shell {
  width: min(100%, 680px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 28px 20px 56px;
}

.guide-home-header {
  padding: 16px 2px 30px;
}

.guide-app-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--guide-secondary);
  font-size: 14px;
  font-weight: 600;
}

.guide-app-label img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
}

.guide-home-header h1,
.guide-article-header h1 {
  margin: 0;
  font-size: clamp(30px, 9vw, 42px);
  font-weight: 750;
  letter-spacing: -0.035em;
  line-height: 1.2;
}

.guide-home-header > p:last-child,
.guide-article-header > p {
  margin: 12px 0 0;
  color: var(--guide-secondary);
  font-size: 15px;
  line-height: 1.75;
}

.guide-group + .guide-group {
  margin-top: 30px;
}

.guide-group-title {
  margin: 0 4px 10px;
  color: var(--guide-secondary);
  font-size: 13px;
  font-weight: 650;
}

.guide-list {
  overflow: hidden;
  border: 1px solid var(--guide-line);
  border-radius: 18px;
  background: #fff;
}

.guide-list-link {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 18px;
  gap: 12px;
  align-items: center;
  min-height: 72px;
  padding: 12px 14px;
}

.guide-list-link + .guide-list-link {
  border-top: 1px solid var(--guide-line);
}

.guide-list-link:active {
  background: var(--guide-fill);
}

.guide-list-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--guide-blue-soft);
  color: var(--guide-blue);
  font-size: 15px;
  font-weight: 750;
}

.guide-list-copy {
  min-width: 0;
}

.guide-list-copy h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 650;
  line-height: 1.45;
}

.guide-list-copy p {
  margin: 3px 0 0;
  color: var(--guide-secondary);
  font-size: 12px;
  line-height: 1.5;
}

.guide-chevron {
  color: #b1b1b7;
  font-size: 25px;
  font-weight: 300;
  line-height: 1;
}

.guide-back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 44px;
  margin: -8px 0 18px -8px;
  padding: 0 8px;
  color: var(--guide-blue);
  font-size: 16px;
  font-weight: 500;
}

.guide-back-mark {
  font-size: 28px;
  font-weight: 300;
  line-height: 1;
}

.guide-article-header {
  padding: 0 2px 28px;
}

.guide-article-header .guide-category {
  margin: 0 0 8px;
  color: var(--guide-blue);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.guide-step {
  padding: 30px 0 38px;
  border-top: 1px solid var(--guide-line);
}

.guide-step-number {
  display: inline-flex;
  align-items: center;
  height: 28px;
  margin-bottom: 10px;
  padding: 0 11px;
  border-radius: 999px;
  background: var(--guide-blue-soft);
  color: var(--guide-blue);
  font-size: 12px;
  font-weight: 700;
}

.guide-step h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.45;
}

.guide-step-copy {
  margin: 10px 0 22px;
  color: var(--guide-secondary);
  font-size: 15px;
  line-height: 1.75;
}

.guide-step-copy p {
  margin: 0;
}

.guide-step-copy p + p {
  margin-top: 10px;
}

.guide-note {
  margin: 0 0 22px;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--guide-blue-soft);
  color: #245b91;
  font-size: 14px;
  line-height: 1.7;
}

.guide-note strong {
  color: var(--guide-ink);
  font-weight: 700;
}

.guide-shot {
  width: 100%;
  border: 1px solid var(--guide-line);
  border-radius: 26px;
  background: var(--guide-fill);
  box-shadow: 0 12px 34px rgba(20, 24, 34, 0.09);
}

.guide-shot-caption {
  margin: 10px 10px 0;
  color: var(--guide-secondary);
  font-size: 12px;
  line-height: 1.55;
  text-align: center;
}

.guide-article-nav {
  display: grid;
  gap: 10px;
  padding-top: 8px;
}

.guide-download-panel {
  margin-top: 8px;
  padding: 22px;
  border-radius: 18px;
  background: var(--guide-fill);
}

.guide-download-panel p {
  margin: 0 0 16px;
  color: var(--guide-secondary);
  font-size: 14px;
}

.guide-next,
.guide-index-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 12px 18px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 650;
  text-align: center;
}

.guide-next {
  background: var(--guide-blue);
  color: #fff;
}

.guide-index-link {
  background: var(--guide-fill);
  color: var(--guide-blue);
}

@media (min-width: 560px) {
  .guide-shell {
    padding-inline: 32px;
  }

  .guide-list-link {
    padding-inline: 18px;
  }

  .guide-shot {
    width: min(100%, 430px);
    margin-inline: auto;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .guide-list-link,
  .guide-next,
  .guide-index-link {
    transition: background-color 140ms ease, transform 140ms ease;
  }

  .guide-list-link:hover,
  .guide-next:hover,
  .guide-index-link:hover {
    transform: translateY(-1px);
  }
}

.guide-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin: -10px 2px 26px;
  padding-block: 10px;
  border-block: 1px solid var(--guide-line);
}

.guide-toc a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--guide-blue);
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.guide-group-title { scroll-margin-top: 20px; }
