/* =============================================================
   dev-sts-guide.css — STSパイプライン解説ページ専用スタイル
   ============================================================= */

/* -------------------------------------------------------
   タブナビ（検証ページと共通スタイル）
------------------------------------------------------- */
.tab-nav {
  background: var(--card);
  border-bottom: 2px solid var(--border);
  display: flex;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.tab-nav::-webkit-scrollbar { display: none; }
.tab-link {
  padding: 12px 16px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: color 0.2s, border-color 0.2s;
  display: flex;
  align-items: center;
  gap: 5px;
  min-height: 44px;
}
.tab-link:hover { color: var(--text); }
.tab-link.active { color: var(--accent-light); border-bottom-color: var(--accent-light); }

/* -------------------------------------------------------
   レイアウト
------------------------------------------------------- */
.guide-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 20px 80px;
}

.guide-section {
  margin-bottom: 48px;
}

.guide-section-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--accent);
  display: flex;
  align-items: center;
  gap: 10px;
}

.guide-section-title .section-num {
  background: var(--accent);
  color: #fff;
  border-radius: 6px;
  font-size: 13px;
  padding: 2px 8px;
  font-weight: 700;
}

/* -------------------------------------------------------
   コンポーネントブロック
------------------------------------------------------- */
.component-block {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 24px;
}

.component-block-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--accent-light);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.component-block-title .comp-tag {
  font-size: 11px;
  background: rgba(124, 58, 237, 0.15);
  border: 1px solid rgba(124, 58, 237, 0.3);
  border-radius: 4px;
  padding: 1px 6px;
  color: var(--accent-light);
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* -------------------------------------------------------
   テーブル共通
------------------------------------------------------- */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-sm);
}

.guide-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 13px;
}

.guide-table th {
  background: var(--card2);
  color: var(--text-muted);
  font-weight: 600;
  padding: 9px 12px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.guide-table td {
  padding: 9px 12px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  vertical-align: middle;
  line-height: 1.5;
}

.guide-table tr:last-child td { border-bottom: none; }

.guide-table tr:hover td { background: rgba(255,255,255,0.02); }

/* 採用中行ハイライト */
.guide-table tr.adopted td {
  background: rgba(34, 197, 94, 0.06);
}
.guide-table tr.adopted td:first-child {
  border-left: 3px solid var(--green);
}

/* -------------------------------------------------------
   バッジ
------------------------------------------------------- */
.badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  white-space: nowrap;
}

.badge-green {
  background: rgba(34, 197, 94, 0.15);
  color: var(--green);
  border: 1px solid rgba(34, 197, 94, 0.35);
}

.badge-blue {
  background: rgba(59, 130, 246, 0.15);
  color: var(--blue);
  border: 1px solid rgba(59, 130, 246, 0.35);
}

.badge-yellow {
  background: rgba(234, 179, 8, 0.15);
  color: var(--yellow);
  border: 1px solid rgba(234, 179, 8, 0.35);
}

.badge-purple {
  background: rgba(124, 58, 237, 0.15);
  color: var(--accent-light);
  border: 1px solid rgba(124, 58, 237, 0.35);
}

/* -------------------------------------------------------
   パイプラインカード
------------------------------------------------------- */
.pipeline-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.pipeline-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color 0.2s;
}

.pipeline-card:hover {
  border-color: var(--accent);
}

.pipeline-card.adopted-card {
  border-color: rgba(34, 197, 94, 0.4);
  background: linear-gradient(135deg, var(--card) 0%, rgba(34, 197, 94, 0.04) 100%);
}

.pipeline-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.pipeline-card-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
}

.pipeline-flow {
  background: var(--card2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 13px;
  color: var(--accent-light);
  font-family: 'Segoe UI', monospace;
  letter-spacing: 0.3px;
  line-height: 1.6;
  word-break: break-word;
}

.pipeline-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.pipeline-meta-item {
  background: var(--card2);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
}

.pipeline-meta-label {
  font-size: 10px;
  color: var(--text-dim);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

.pipeline-meta-value {
  font-size: 13px;
  color: var(--text);
  font-weight: 600;
}

.pipeline-pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.pros-block, .cons-block {
  border-radius: var(--radius-sm);
  padding: 8px 10px;
}

.pros-block {
  background: rgba(34, 197, 94, 0.07);
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.cons-block {
  background: rgba(239, 68, 68, 0.07);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.pros-cons-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.pros-block .pros-cons-label { color: var(--green); }
.cons-block .pros-cons-label { color: var(--red); }

.pros-cons-text {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* -------------------------------------------------------
   比較まとめテーブル
------------------------------------------------------- */
.summary-section {
  margin-top: 40px;
}

.summary-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

/* -------------------------------------------------------
   モバイル対応
------------------------------------------------------- */
@media (max-width: 768px) {
  .guide-main { padding: 20px 14px 60px; }
  .pipeline-grid { grid-template-columns: 1fr; }
  .pipeline-meta { grid-template-columns: 1fr 1fr; }
  .pipeline-pros-cons { grid-template-columns: 1fr; }
  .guide-table { min-width: 480px; font-size: 12px; }
  .guide-table th, .guide-table td { padding: 7px 9px; }
}
.excluded-note { color: #94a3b8; font-size: 14px; margin-bottom: 12px; }
.excluded-table { opacity: 0.7; }
.excluded-table td:first-child { color: #64748b; font-size: 12px; text-transform: uppercase; }
