.guide-page {
  max-width: 1050px;
  margin-inline: auto;
}

.guide-hero {
  padding: clamp(24px, 5vw, 48px);
  border-radius: 24px;
  background: var(--dark);
  color: white;
}

.guide-hero .eyebrow { color: var(--lime); }
.guide-hero h1 { margin-block: 8px 14px; }
.guide-hero h1 + p { color: #e0eee5; }
.guide-jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.guide-hero :focus-visible { outline-color: var(--lime); }
.guide-sample { margin: 12px 3px 0; }
.guide-section { margin-top: clamp(32px, 6vw, 56px); scroll-margin-top: 16px; }
.guide-section-head { margin-bottom: 14px; }

.guide-steps {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.guide-step {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
  align-items: center;
  gap: clamp(16px, 4vw, 40px);
}

.guide-step-number {
  display: inline-grid;
  place-items: center;
  min-width: 2.4em;
  min-height: 2.4em;
  margin-bottom: 12px;
  border-radius: 50%;
  background: #e8f1e0;
  color: var(--dark);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.guide-step h3 { margin-bottom: 8px; font-size: clamp(1.08rem, 2vw, 1.35rem); }
.guide-step-copy p { color: var(--muted); }
.guide-figure { min-width: 0; width: 100%; margin: 0; justify-self: center; }
#guide-player .guide-figure { max-width: 340px; }

.guide-figure img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.guide-figure figcaption { text-align: end; }
.guide-figure figcaption a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 4px;
  color: var(--dark);
  font-size: .86rem;
}

@media (max-width: 660px) {
  .guide-step { grid-template-columns: minmax(0, 1fr); }
  .guide-hero { border-radius: 18px; }
}

/* C2 ガイド（画面契約_v1）。最大 560px の1列 */
.guide-page.crtto-modern { display: grid; gap: var(--sp-4); width: min(100%, 560px); margin-inline: auto; color: var(--text); font-family: var(--font); }
.guide-page.crtto-modern h1, .guide-page.crtto-modern h3, .guide-page.crtto-modern p { margin: 0; }
.guide-back { justify-self: start; min-height: 44px; display: inline-flex; align-items: center; color: var(--text); font-weight: 700; text-decoration: none; }
.guide-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: var(--r-m); background: var(--navy-tint); }
.guide-tabs button { min-height: 44px; border: 0; border-radius: 8px; background: transparent; color: var(--text); font: inherit; font-weight: 700; cursor: pointer; }
.guide-tabs button[aria-selected="true"] { background: var(--navy); color: #fff; }
.guide-page.crtto-modern .guide-steps { display: grid; gap: var(--sp-4); margin: 0; padding: 0; list-style: none; }
.guide-page.crtto-modern .guide-step { display: grid; gap: var(--sp-3); padding: var(--sp-4); border: 1px solid var(--line); border-radius: var(--r-l); background: var(--surface); }
.guide-page.crtto-modern .guide-step-copy { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: var(--sp-3); }
.guide-page.crtto-modern .guide-step-number { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--navy); color: #fff; font-size: 14px; font-weight: 700; }
.guide-page.crtto-modern .guide-figure { margin: 0; }
.guide-page.crtto-modern .guide-figure img { display: block; width: 100%; max-width: 320px; height: auto; margin-inline: auto; border: 1px solid var(--line); border-radius: var(--r-m); }
.guide-open, .guide-help a { display: inline-flex; align-items: center; min-height: 44px; color: var(--text); font-weight: 700; }
