/*
 * SYN-LAUNCH-GUIDE-LP-001: 使い方マニュアル共通スタイル（NHW ガイドを参考）。
 */

.guide-kicker {
  display: inline-block;
  margin: 0 0 0.5rem;
  padding: 0.2rem 0.6rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--public-primary);
  background: #e7f1ff;
  border-radius: 999px;
}

.guide-page-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin: 0 0 1.75rem;
  padding: 0.75rem 0;
  border-top: 1px solid var(--public-border);
  border-bottom: 1px solid var(--public-border);
  font-size: 0.95rem;
}

.guide-page-nav__current {
  font-weight: 600;
  color: #212529;
}

.guide-flow {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
}

.guide-flow__item {
  flex: 1 1 8.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.85rem 0.9rem;
  background: #f8f9fa;
  border: 1px solid var(--public-border);
  border-radius: 0.5rem;
  min-width: 0;
}

.guide-flow__label {
  font-weight: 700;
  font-size: 1rem;
}

.guide-flow__hint {
  font-size: 0.85rem;
  color: var(--public-muted);
}

.guide-toc {
  margin-bottom: 2rem;
  padding: 1rem 1.1rem;
  background: #fafbfc;
  border: 1px solid var(--public-border);
  border-radius: 0.5rem;
}

.guide-toc__title {
  font-weight: 600;
  margin: 0 0 0.5rem;
}

.guide-toc__areas {
  margin: 0;
  padding-left: 1.25rem;
  list-style: decimal;
}

.guide-toc__areas > li {
  margin: 0.45rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.guide-toc__area-hint {
  font-size: 0.9rem;
  color: var(--public-muted);
}

.guide-toc ol {
  margin: 0;
  padding-left: 1.25rem;
}

.guide-toc li {
  margin: 0.25rem 0;
}

.guide-bridge {
  margin: 1.5rem 0 1rem;
  padding: 0.85rem 1rem;
  background: #f8f9fa;
  border-left: 3px solid var(--public-primary);
  border-radius: 0 0.5rem 0.5rem 0;
  font-weight: 600;
}

.guide-step {
  margin-bottom: 2rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--public-border);
}

.guide-step:last-of-type {
  border-bottom: 0;
}

.guide-step--account {
  margin-top: 0.5rem;
  border-top: 1px solid var(--public-border);
  padding-top: 1.75rem;
}

.guide-step__header {
  margin-bottom: 0.75rem;
}

.guide-step__eyebrow {
  margin: 0 0 0.25rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--public-primary);
}

.guide-step__title {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0;
}

.guide-figure {
  margin: 1.25rem 0 0;
}

.guide-figure__link {
  display: block;
  text-decoration: none;
}

.guide-figure__image {
  display: block;
  max-width: 100%;
  width: auto;
  height: auto;
  max-height: min(70vh, 34rem);
  margin-inline: auto;
  border: 1px solid var(--public-border);
  border-radius: 0.5rem;
  background: #fff;
}

.guide-figure__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 10rem;
  background: repeating-linear-gradient(
    -45deg,
    #f1f3f5,
    #f1f3f5 12px,
    #e9ecef 12px,
    #e9ecef 24px
  );
  border: 1px dashed #adb5bd;
  border-radius: 0.5rem;
}

.guide-figure__placeholder--ratio-16-10 {
  aspect-ratio: 16 / 10;
}

.guide-figure__placeholder--ratio-4-3 {
  aspect-ratio: 4 / 3;
}

.guide-figure__placeholder-label {
  padding: 0.4rem 0.75rem;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 0.375rem;
  color: var(--public-muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.guide-figure__caption {
  margin: 0.5rem 0 0;
  font-size: 0.9rem;
  color: var(--public-muted);
  line-height: 1.6;
  text-align: center;
}

.guide-page--candidate .guide-step {
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
}

.guide-page--candidate .guide-step__title {
  font-size: 1.15rem;
}

.guide-page--candidate .public-card p,
.guide-page--candidate .guide-figure__caption {
  font-size: 1.02rem;
}

@media (max-width: 576px) {
  .guide-flow__item {
    flex: 1 1 100%;
  }

  .guide-step__title {
    font-size: 1.12rem;
  }

  .guide-page-nav {
    flex-direction: column;
    gap: 0.4rem;
  }
}
