/* Guide pages (/guide/spot/, /guide/contract/): how the work proceeds, step by step, with the screens.
   Owner, 2026-11-15: 「画面のスクショを使った具体的な流れ」「事務所のページと違和感をないように」.
   Everything here sits on top of /home.css (tokens, header, buttons, footer, reveal, .ph / .nw).
   Rules shared with the top page: two-digit numerals belong to the top page's chapters, so the steps
   here carry one digit in a disc; no boxes inside boxes; one white card per screen. */

.guide-hero { padding-block: clamp(48px, 7vw, 88px) clamp(32px, 5vw, 56px); }
.guide-hero .eyebrow { margin-bottom: 14px; }
.guide-hero h1 {
  font-size: clamp(2rem, 5.4vw, 3.5rem); font-weight: 900; line-height: 1.25; letter-spacing: 0.01em; color: var(--ink);
}
.guide-hero .guide-lead { margin-top: 18px; max-width: 40rem; font-size: 1.0625rem; line-height: 1.9; }
.guide-hero .btn-row { margin-top: 28px; }
.guide-hero .note { margin-top: 14px; max-width: 40rem; }
/* the first screen: words on the left, the short clip of the whole flow on the right */
.guide-top { display: grid; gap: 28px; margin-top: 14px; }
@media (min-width: 960px) { .guide-top { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 48px; align-items: center; } }
.guide-clip video { display: block; width: 100%; height: auto; aspect-ratio: 1280 / 800; background: var(--kinari-50); }

/* the steps at a glance: a row of links under the first screen */
.guide-index { margin-top: clamp(28px, 4vw, 44px); border-top: 2px solid var(--g-700); }
.guide-index ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 640px) { .guide-index ol { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.guide-index li { border-bottom: 1px solid var(--line); }
.guide-index a {
  display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 10px 8px 10px 0;
  font-size: 0.9375rem; font-weight: 700; line-height: 1.4; color: var(--ink); text-decoration: none;
}
.guide-index a:hover { color: var(--g-700); text-decoration: underline; text-underline-offset: 4px; }
.guide-index b, .g-no {
  display: grid; place-items: center; flex: none; border-radius: 50%;
  background: var(--g-700); color: #ffffff;
  font-family: var(--font-num); font-weight: 800; line-height: 1;
}
.guide-index b { width: 26px; height: 26px; font-size: 0.8125rem; }

/* one step: words on the left, the screen on the right; stacked below 960px */
.g-steps { padding-block: clamp(24px, 4vw, 48px) clamp(56px, 8vw, 104px); }
.g-step {
  display: grid; gap: 20px; padding-block: clamp(32px, 5vw, 56px);
  border-top: 1px solid var(--line); scroll-margin-top: 88px;
}
.g-step:first-child { border-top: 0; }
@media (min-width: 960px) {
  .g-step { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 40px; align-items: start; }
  .g-step.is-wide { grid-template-columns: minmax(0, 1fr); }
  .g-step.is-wide .g-words { max-width: 46rem; }
}
.g-words h2 {
  display: flex; align-items: center; gap: 14px;
  font-size: clamp(1.375rem, 3vw, 1.875rem); font-weight: 900; line-height: 1.4; color: var(--ink);
}
.g-no { width: 40px; height: 40px; font-size: 1.125rem; }
/* an aside between two steps: another way to do the step above it; no number, a dashed rule, a smaller heading */
.g-step.g-aside { border-top-style: dashed; border-top-color: var(--g-300); }
.g-aside .g-words h2 { font-size: clamp(1.1875rem, 2.4vw, 1.5rem); }
.g-words p { margin-top: 12px; line-height: 1.9; }
.g-words .note { margin-top: 10px; }
.g-who { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.g-who > span {
  padding: 2px 10px; border-radius: 3px; border: 1px solid var(--g-300);
  font-size: 0.75rem; font-weight: 700; line-height: 1.7; color: var(--g-700); background: var(--paper);
}
/* steps inside a block (the health-check judgment): the same disc, smaller */
.g-sub { margin-top: 18px; display: grid; gap: 16px; counter-reset: sub; }
.g-sub li { position: relative; padding-left: 40px; counter-increment: sub; }
.g-sub li::before {
  content: counter(sub); position: absolute; left: 0; top: 0;
  display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  background: var(--g-700); color: #ffffff;
  font-family: var(--font-num); font-weight: 800; font-size: 0.875rem; line-height: 1;
}
.g-sub h3 { font-size: 1.0625rem; line-height: 1.55; color: var(--ink); }
.g-words .g-sub p { margin-top: 4px; font-size: 0.9375rem; line-height: 1.8; }
.g-points { margin-top: 14px; display: grid; gap: 8px; }
.g-points li { position: relative; padding-left: 22px; font-size: 0.9375rem; line-height: 1.75; color: var(--ink-soft); }
.g-points li::before { content: ''; position: absolute; left: 0; top: calc(0.875em - 5px); width: 10px; height: 10px; background: var(--g-700); }

/* a screen: one white card with the window bar of the top page's mock-up */
.shot { margin: 0; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
.shot .portal-bar span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shot picture, .shot img { display: block; width: 100%; height: auto; }
.shot img { background: var(--kinari-50); }
.shot figcaption { padding: 10px 14px 12px; border-top: 1px solid var(--line); font-size: 0.8125rem; line-height: 1.7; color: var(--ink-mute); }
.shot + .shot { margin-top: 16px; }
/* a phone-sized screen shown on a wide page keeps a phone's width */
.shot.is-phone { max-width: 320px; margin-inline: auto; }
@media (max-width: 959px) { .shot.is-desktop-only { display: none; } }
@media (min-width: 960px) { .shot.is-phone-only { display: none; } }

/* where the page leads next */
.guide-next { padding-block: clamp(56px, 8vw, 96px); }
.guide-next h2 { font-size: clamp(1.5rem, 3.6vw, 2.25rem); font-weight: 900; line-height: 1.35; color: var(--on-dark); }
.guide-next p { margin-top: 14px; max-width: 40rem; line-height: 1.9; }
.guide-next .btn-row { margin-top: 26px; }
.guide-other { margin-top: clamp(32px, 5vw, 48px); padding-top: 24px; border-top: 1px solid var(--line-dark); }
.guide-other a { font-weight: 700; }

.guide-crumb { padding-top: 20px; font-size: 0.8125rem; color: var(--ink-mute); }
.guide-crumb a { color: inherit; text-underline-offset: 3px; }
