/* setup-guide.css: Affinity プラグイン導入ガイドのスライドショー共通スタイル。
   index.html のセクション埋め込みと setup.html の単体ページの両方から読み込む。 */

.sg {
  --sg-accent: #E9B85C;
  --sg-fg: #ECE9E3;
  max-width: 980px;
  margin: 0 auto;
  text-align: left;
}

/* --- スライド表示領域 --- */
.sg-stage {
  position: relative;
  background: #0E0E11;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 3px;
  overflow: hidden;
}

.sg-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: #0E0E11;
}

.sg-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .3s ease;
  pointer-events: none;
}

.sg-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.sg-slide img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.sg-counter {
  position: absolute;
  top: 12px;
  right: 14px;
  z-index: 2;
  padding: 4px 10px;
  border-radius: 2px;
  background: rgba(7, 7, 9, .72);
  font-family: 'Antonio', sans-serif;
  font-size: 12px;
  letter-spacing: .12em;
  color: rgba(236, 233, 227, .8);
}

.sg-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 50%;
  background: rgba(7, 7, 9, .6);
  color: var(--sg-fg);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}

.sg-nav:hover {
  border-color: rgba(255, 255, 255, .8);
  background: rgba(7, 7, 9, .85);
}

.sg-prev {
  left: 12px;
}

.sg-next {
  right: 12px;
}

/* --- キャプション --- */
.sg-caption {
  margin: 22px 0 0;
  padding: 20px 22px;
  border-left: 3px solid var(--sg-accent);
  background: rgba(255, 255, 255, .03);
}

.sg-caption .sg-step-label {
  margin: 0 0 8px;
  font-family: 'Antonio', sans-serif;
  font-size: 11.5px;
  letter-spacing: .22em;
  color: var(--sg-accent);
}

.sg-caption .sg-step-title {
  margin: 0 0 10px;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.5;
  color: var(--sg-fg);
}

.sg-caption .sg-step-body {
  margin: 0;
  font-size: 13.5px;
  line-height: 2;
  color: rgba(236, 233, 227, .75);
}

.sg-caption .sg-step-body code {
  padding: 2px 6px;
  border-radius: 2px;
  background: rgba(255, 255, 255, .08);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 12.5px;
  word-break: break-all;
}

/* --- ステップ選択タブ --- */
.sg-dots {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 0;
}

.sg-dot {
  flex: 1 1 auto;
  min-width: 74px;
  padding: 9px 6px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 2px;
  background: transparent;
  color: rgba(236, 233, 227, .5);
  font-family: 'Antonio', sans-serif;
  font-size: 12px;
  letter-spacing: .1em;
  cursor: pointer;
  transition: border-color .15s, color .15s, background .15s;
}

.sg-dot:hover {
  border-color: rgba(255, 255, 255, .4);
  color: rgba(236, 233, 227, .85);
}

.sg-dot.is-active {
  border-color: var(--sg-accent);
  background: rgba(233, 184, 92, .12);
  color: var(--sg-accent);
}

/* --- 補足ノート --- */
.sg-note {
  margin: 26px 0 0;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 3px;
  font-size: 12.5px;
  line-height: 1.9;
  color: rgba(236, 233, 227, .6);
}

.sg-note strong {
  color: rgba(236, 233, 227, .85);
}

@media (max-width: 640px) {
  .sg-nav {
    width: 34px;
    height: 34px;
    font-size: 14px;
  }

  .sg-caption {
    padding: 16px 16px;
  }

  .sg-caption .sg-step-title {
    font-size: 15px;
  }

  .sg-dot {
    min-width: 0;
    flex: 1 1 21%;
    font-size: 11px;
  }
}
