/* guide page specific */
.guide-hero {
  padding: 88px 0 56px;
  background:
    radial-gradient(ellipse at top right, rgba(139, 92, 246, 0.12) 0%, transparent 55%),
    radial-gradient(ellipse at bottom left, rgba(37, 99, 235, 0.10) 0%, transparent 55%),
    linear-gradient(180deg, #f8faff 0%, #fdfcff 100%);
}
.guide-hero .eyebrow { font-size: 13px; }
.guide-hero h1 {
  font-size: 52px;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin: 18px 0 20px;
  line-height: 1.25;
  color: var(--text);
}
.guide-hero h1 .accent {
  background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-secondary) 50%, var(--brand-pink) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.guide-hero p {
  font-size: 18px;
  line-height: 1.9;
  max-width: 820px;
  font-weight: 500;
  color: var(--text);
}

.guide-wrap {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 56px;
  padding: 64px 0 96px;
  background: #ffffff;
}
.guide-toc {
  position: sticky;
  top: 100px;
  align-self: start;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px 22px;
  box-shadow: var(--shadow-sm);
  max-height: calc(100vh - 140px);
  overflow-y: auto;
}
.guide-toc h3 {
  font-size: 13px;
  font-weight: 800;
  color: var(--brand-secondary);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.guide-toc ol {
  counter-reset: toc;
  list-style: none;
}
.guide-toc li {
  counter-increment: toc;
  margin-bottom: 10px;
}
.guide-toc a {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  padding: 8px 10px 8px 34px;
  border-radius: 6px;
  position: relative;
  transition: all 0.2s;
  line-height: 1.5;
}
.guide-toc a::before {
  content: counter(toc, decimal-leading-zero);
  position: absolute;
  left: 8px;
  top: 8px;
  font-size: 11px;
  font-weight: 800;
  color: var(--brand-primary);
  font-family: "SF Mono", Menlo, Consolas, monospace;
}
.guide-toc a:hover {
  background: var(--bg-blue-soft);
  color: var(--brand-primary);
}

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

.guide-section {
  margin-bottom: 80px;
  scroll-margin-top: 100px;
}
.guide-section:last-child { margin-bottom: 0; }
.guide-section-head {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 2px solid var(--brand-primary);
}
.guide-section-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
  color: #fff;
  border-radius: 12px;
  font-size: 22px;
  font-weight: 900;
  box-shadow: var(--shadow-brand);
  flex-shrink: 0;
}
.guide-section h2 {
  font-size: 30px;
  font-weight: 900;
  color: var(--text);
  letter-spacing: -0.01em;
  line-height: 1.35;
}

.guide-section .lead {
  font-size: 17px;
  line-height: 1.95;
  color: var(--text);
  font-weight: 500;
  margin-bottom: 28px;
}

.guide-shot {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin: 32px 0;
}
.guide-shot img {
  display: block;
  width: 100%;
  height: auto;
  background: linear-gradient(135deg, #e0e7ff, #faf5ff);
}
.guide-shot figcaption {
  padding: 18px 28px;
  background: var(--bg-blue-soft);
  border-top: 1px solid var(--border);
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.guide-steps {
  margin: 28px 0;
  counter-reset: gstep;
  list-style: none;
}
.guide-steps li {
  counter-increment: gstep;
  position: relative;
  padding: 22px 28px 22px 82px;
  margin-bottom: 14px;
  background: var(--bg-blue-soft);
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-md);
  font-size: 16px;
  line-height: 1.85;
  font-weight: 500;
  color: var(--text);
}
.guide-steps li::before {
  content: counter(gstep);
  position: absolute;
  left: 22px;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 900;
  box-shadow: var(--shadow-brand);
}
.guide-steps li strong { color: var(--brand-primary); font-weight: 800; }

.guide-note {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-left: 4px solid var(--brand-amber, var(--brand-orange));
  border-radius: var(--radius-md);
  padding: 20px 26px;
  margin: 24px 0;
  font-size: 15px;
  line-height: 1.9;
  color: var(--text);
  font-weight: 500;
}
.guide-note::before {
  content: "POINT";
  display: inline-block;
  background: var(--brand-orange);
  color: #fff;
  padding: 3px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  margin-right: 12px;
  vertical-align: middle;
  letter-spacing: 0.08em;
}

.guide-warn {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-left: 4px solid var(--brand-red);
  border-radius: var(--radius-md);
  padding: 20px 26px;
  margin: 24px 0;
  font-size: 15px;
  line-height: 1.9;
  color: var(--text);
  font-weight: 500;
}
.guide-warn::before {
  content: "注意";
  display: inline-block;
  background: var(--brand-red);
  color: #fff;
  padding: 3px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  margin-right: 12px;
  vertical-align: middle;
  letter-spacing: 0.08em;
}

.guide-body h3 {
  font-size: 22px;
  font-weight: 900;
  color: var(--text);
  margin: 36px 0 16px;
  padding-left: 16px;
  border-left: 5px solid var(--brand-secondary);
}
.guide-body p {
  font-size: 16px;
  line-height: 1.95;
  color: var(--text);
  font-weight: 500;
  margin-bottom: 16px;
}
.guide-body ul.bullet {
  margin: 16px 0 20px;
}
.guide-body ul.bullet li {
  position: relative;
  padding: 8px 0 8px 28px;
  font-size: 16px;
  line-height: 1.85;
  font-weight: 500;
  color: var(--text);
}
.guide-body ul.bullet li::before {
  content: "●";
  position: absolute;
  left: 6px;
  top: 8px;
  color: var(--brand-primary);
  font-size: 12px;
}
/* インライン本文中のハイパーリンクは黒文字で装飾なし */
.guide-body a,
.guide-note a,
.guide-warn a {
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
}
.guide-body a:hover,
.guide-note a:hover,
.guide-warn a:hover {
  color: var(--text);
  text-decoration: none;
}

@media (max-width: 1024px) {
  .guide-wrap { grid-template-columns: 1fr; gap: 32px; padding: 48px 0 72px; }
  .guide-toc { position: static; max-height: none; }
  .guide-hero h1 { font-size: 40px; }
  .guide-section h2 { font-size: 26px; }
  .guide-section-num { width: 44px; height: 44px; font-size: 18px; }
}
@media (max-width: 768px) {
  .guide-hero { padding: 56px 0 40px; }
  .guide-hero h1 { font-size: 32px; }
  .guide-section h2 { font-size: 22px; }
  .guide-steps li { padding: 18px 20px 18px 64px; font-size: 15px; }
  .guide-steps li::before { left: 14px; width: 36px; height: 36px; font-size: 14px; }
}
.guide-text-red { color: #dc2626; font-weight: 800; }
.guide-text-green { color: #059669; font-weight: 800; }
