/* =============================================================
   tool-detail.css — ツール詳細ページ共通スタイル
   全 tool-*.html テンプレートで共有する。
   common.css の後に読み込むこと。
   ============================================================= */

/* -------------------------------------------------------
   html / body / scroll-wrapper — common.css と競合する
   部分は上書き（tool ページはオーバーフロー hidden が必要）
------------------------------------------------------- */
html { height: 100%; overflow: hidden; }

body {
  height: 100%;
  overflow: hidden;
}

/* -------------------------------------------------------
   メインコンテナ
------------------------------------------------------- */
.main {
  max-width: 960px;
  margin: 0 auto;
  padding: 32px 24px 48px;
}

/* -------------------------------------------------------
   カード
------------------------------------------------------- */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 20px;
}

.card-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-dim);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-title-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: var(--accent-glow);
  border: 1px solid rgba(124, 58, 237, 0.3);
  border-radius: 6px;
  font-size: 12px;
  color: var(--accent-light);
}

/* -------------------------------------------------------
   セクション（card2 背景バリアント）
------------------------------------------------------- */
.section {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 20px;
}

.section-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-dim);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-title-icon {
  width: 24px;
  height: 24px;
  background: var(--accent-glow);
  border: 1px solid rgba(124, 58, 237, 0.3);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}

.section-title-accent {
  width: 3px;
  height: 16px;
  background: var(--accent);
  border-radius: 2px;
}

.section-body {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.8;
}

/* section-title with ::after line separator variant */
.section-title.line-sep::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* -------------------------------------------------------
   ヒーローセクション
------------------------------------------------------- */
.hero {
  background: linear-gradient(135deg, #1a1d27 0%, #1e1535 50%, #1a1d27 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 32px;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-glow);
  border: 1px solid rgba(124, 58, 237, 0.3);
  color: var(--accent-light);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 14px;
}

.hero-name, .hero-title {
  font-size: 36px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.1;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.hero-name span, .hero-title span { color: var(--accent-light); }

.hero-tagline, .hero-subtitle, .hero-desc {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 20px;
  max-width: 600px;
  line-height: 1.7;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.hero-meta-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hero-meta-label {
  font-size: 11px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.hero-meta-value {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.hero-meta-value.free { color: var(--green); }
.hero-meta-value.warn { color: var(--yellow); }
.hero-meta-value.danger { color: var(--red); }
.hero-meta-value.ok { color: var(--green); }

.hero-stat {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--card2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
}

.hero-stat-icon { font-size: 16px; }

.hero-stat-value {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

.hero-stat-label {
  font-size: 11px;
  color: var(--text-dim);
}

/* hero-stats (vertical columns variant) */
.hero-stats {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.hero-stats .hero-stat {
  flex-direction: column;
  background: none;
  border: none;
  padding: 0;
  gap: 2px;
}

.hero-stats .hero-stat-value {
  font-size: 22px;
  font-weight: 700;
}

.hero-stats .hero-stat-value.green { color: var(--green); }
.hero-stats .hero-stat-value.accent { color: var(--accent-light); }
.hero-stats .hero-stat-value.yellow { color: var(--yellow); }

.hero-stats .hero-stat-label {
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.hero-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent);
  color: #fff;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  box-shadow: 0 0 16px var(--accent-glow);
}

.hero-link:hover {
  background: var(--accent-light);
  box-shadow: 0 0 24px rgba(124, 58, 237, 0.4);
}

.hero-links { display: flex; gap: 10px; flex-wrap: wrap; }

/* star badge */
.star-badge {
  background: rgba(234, 179, 8, 0.12);
  border: 1px solid rgba(234, 179, 8, 0.3);
  color: var(--yellow);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
}

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-light); transform: translateY(-1px); }

.btn-secondary {
  background: var(--card2);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.btn-secondary:hover { border-color: var(--accent); color: var(--text); }

/* -------------------------------------------------------
   特徴グリッド
------------------------------------------------------- */
.feature-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  background: var(--card2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s;
}

.feature-item:hover { border-color: rgba(124, 58, 237, 0.3); }

.feature-icon { font-size: 18px; flex-shrink: 0; margin-top: 1px; }
.feature-text, .feature-content { flex: 1; }

.feature-title, .feature-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 3px;
}

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

/* -------------------------------------------------------
   メリット・デメリット
------------------------------------------------------- */
.pros-cons, .merit-demerit, .pros-cons-grid, .merit-demerit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.pros-card, .merit-box, .pros-box {
  background: var(--card2);
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: var(--radius-sm);
  padding: 16px;
}

.cons-card, .demerit-box, .cons-box {
  background: var(--card2);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: var(--radius-sm);
  padding: 16px;
}

.pros-box { background: rgba(34, 197, 94, 0.05); }
.cons-box { background: rgba(239, 68, 68, 0.05); }

.pros-header, .cons-header, .md-title, .pros-cons-title {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 12px;
}

.pros-header, .merit-box .md-title, .pros-box .pros-cons-title { color: var(--green); }
.cons-header, .demerit-box .md-title, .cons-box .pros-cons-title { color: var(--red); }

.merit-box-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 12px;
}

.demerit-box-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 12px;
}

.pros-list, .cons-list, .md-list, .pros-cons-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pros-list li, .cons-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text);
}

.md-list li, .pros-cons-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

.pros-cons-list li {
  padding-left: 18px;
  position: relative;
}

.pros-list li::before { content: '+'; color: var(--green); font-weight: 700; flex-shrink: 0; margin-top: 1px; }
.cons-list li::before { content: '-'; color: var(--red); font-weight: 700; flex-shrink: 0; margin-top: 1px; }
.merit-box .md-list li::before { content: '✓'; color: var(--green); font-weight: 700; flex-shrink: 0; font-size: 12px; margin-top: 2px; }
.demerit-box .md-list li::before { content: '!'; color: var(--red); font-weight: 700; flex-shrink: 0; font-size: 12px; margin-top: 2px; }
.pros-box .pros-cons-list li::before { content: '+'; position: absolute; left: 0; color: var(--green); font-weight: 700; }
.cons-box .pros-cons-list li::before { content: '-'; position: absolute; left: 0; color: var(--red); font-weight: 700; }

.merit-list, .demerit-list { display: flex; flex-direction: column; gap: 8px; }

.merit-item, .demerit-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: var(--text);
}

.merit-dot, .demerit-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 6px;
}

.merit-dot { background: var(--green); }
.demerit-dot { background: var(--red); }

/* -------------------------------------------------------
   テーブル
------------------------------------------------------- */
.req-table, .info-table, .spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.req-table th {
  text-align: left;
  padding: 10px 14px;
  color: var(--text-dim);
  font-weight: 600;
  font-size: 12px;
  border-bottom: 1px solid var(--border);
  background: var(--card2);
  white-space: nowrap;
}

.req-table th:first-child { border-radius: var(--radius-sm) 0 0 0; }
.req-table th:last-child { border-radius: 0 var(--radius-sm) 0 0; }

.req-table td {
  padding: 10px 14px;
  border-bottom: 1px solid rgba(42, 45, 62, 0.5);
  vertical-align: top;
  line-height: 1.5;
}

.req-table td:first-child { color: var(--text-muted); font-weight: 600; white-space: nowrap; width: 160px; }
.req-table td:last-child { color: var(--text); }
.req-table tr:last-child td { border-bottom: none; }
.req-table tr:hover td { background: rgba(31, 34, 53, 0.5); }

.info-table th {
  text-align: left;
  padding: 10px 14px;
  color: var(--text-dim);
  font-weight: 600;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  width: 30%;
}

.info-table td {
  padding: 10px 14px;
  border-bottom: 1px solid rgba(42, 45, 62, 0.5);
  color: var(--text-muted);
  line-height: 1.6;
}

.info-table tr:last-child td { border-bottom: none; }
.info-table tr:hover td { background: var(--card2); }

.spec-table tr { border-bottom: 1px solid var(--border); }
.spec-table tr:last-child { border-bottom: none; }

.spec-table td {
  padding: 10px 12px;
  font-size: 13px;
  vertical-align: top;
}

.spec-table td:first-child { color: var(--text-dim); width: 140px; white-space: nowrap; }
.spec-table td:last-child { color: var(--text); font-weight: 500; }

.spec-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.spec-badge.free, .spec-badge.not-needed {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: var(--green);
}

.spec-badge.required {
  background: rgba(234, 179, 8, 0.1);
  border: 1px solid rgba(234, 179, 8, 0.3);
  color: var(--yellow);
}

.spec-badge.windows-only {
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: var(--blue);
}

.spec-badge.warning {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: var(--red);
}

/* GPU grid */
.gpu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 4px;
}

.gpu-item {
  background: var(--card2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  text-align: center;
}

.gpu-model { font-size: 12px; font-weight: 600; color: var(--accent-light); margin-bottom: 4px; }
.gpu-vram { font-size: 18px; font-weight: 700; color: var(--text); line-height: 1; margin-bottom: 2px; }
.gpu-vram-label { font-size: 11px; color: var(--text-dim); }
.gpu-param { font-size: 11px; color: var(--text-muted); margin-top: 4px; }

/* GPU detail table */
.gpu-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin-top: 12px;
}

.gpu-table th {
  text-align: left;
  padding: 8px 12px;
  color: var(--text-dim);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border);
  background: var(--card2);
}

.gpu-table td { padding: 8px 12px; border-bottom: 1px solid rgba(42, 45, 62, 0.5); color: var(--text-muted); font-size: 13px; }
.gpu-table tr:last-child td { border-bottom: none; }
.gpu-table tr:hover td { background: rgba(31, 34, 53, 0.5); }

/* -------------------------------------------------------
   料金カード
------------------------------------------------------- */
.pricing-grid, .cost-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.cost-grid { grid-template-columns: repeat(2, 1fr); }

.pricing-card, .cost-card {
  background: var(--card2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  text-align: center;
}

.pricing-card.featured {
  border-color: rgba(124, 58, 237, 0.4);
  background: rgba(124, 58, 237, 0.06);
}

.pricing-tier, .cost-label {
  font-size: 12px;
  color: var(--text-dim);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 8px;
}

.pricing-price, .cost-amount {
  font-size: 24px;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
  margin-bottom: 4px;
}

.pricing-period { font-size: 11px; color: var(--text-dim); margin-bottom: 10px; }
.pricing-desc, .cost-note { font-size: 12px; color: var(--text-muted); line-height: 1.5; }

/* price-grid (2-col) */
.price-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.price-tier {
  background: var(--card2);
  border-radius: var(--radius-sm);
  padding: 20px;
  text-align: center;
}

.price-tier.featured {
  border: 1px solid rgba(124, 58, 237, 0.4);
  background: linear-gradient(135deg, #1f2235, #1a1d27);
}

.price-tier-name { font-size: 12px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.6px; margin-bottom: 8px; }
.price-tier-cost { font-size: 28px; font-weight: 800; color: var(--text); margin-bottom: 4px; }
.price-tier-cost.free-color { color: var(--green); }
.price-tier-cost.paid-color { color: var(--accent-light); }
.price-tier-desc { font-size: 12px; color: var(--text-muted); }

/* price-box (center big price) */
.price-box, .price-breakdown {
  text-align: center;
  padding: 28px;
  background: var(--card2);
  border-radius: var(--radius-sm);
}

.price-breakdown {
  background: linear-gradient(135deg, #1f2235, #1a1d27);
  border: 1px solid rgba(124, 58, 237, 0.3);
  border-radius: var(--radius);
  padding: 24px;
}

.price-value, .price-main {
  font-size: 42px;
  font-weight: 800;
  color: var(--green);
  line-height: 1;
  margin-bottom: 6px;
}

.price-label { font-size: 13px; color: var(--text-muted); margin-bottom: 16px; }
.price-note { font-size: 12px; color: var(--text-dim); line-height: 1.6; }

.price-total { text-align: center; margin-bottom: 20px; }
.price-total-amount { font-size: 42px; font-weight: 800; color: var(--yellow); margin-bottom: 4px; }
.price-total-label { font-size: 14px; color: var(--text-muted); }

.price-items { display: flex; flex-direction: column; gap: 8px; }

.price-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: rgba(0,0,0,0.2);
  border-radius: var(--radius-sm);
}

.price-item-name { font-size: 13px; color: var(--text-muted); }
.price-item-cost { font-size: 13px; font-weight: 700; color: var(--text); }
.price-item-cost.free-color { color: var(--green); }
.price-item-cost.paid-color { color: var(--yellow); }

/* -------------------------------------------------------
   導入ステップ
------------------------------------------------------- */
.steps, .step-list { display: flex; flex-direction: column; gap: 10px; }
.step-list { gap: 12px; }

.step {
  display: flex;
  gap: 16px;
  position: relative;
}

/* card-style step (used in tool-gpt, tool-maker, tool-pyngtuber) */
.step.card-step {
  align-items: flex-start;
  background: var(--card2);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  border: 1px solid var(--border);
  gap: 14px;
}

.step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 19px;
  top: 44px;
  bottom: -8px;
  width: 2px;
  background: var(--border);
}

.step.card-step:not(:last-child)::after { display: none; }

.step-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent-glow);
  border: 2px solid rgba(124, 58, 237, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent-light);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.step.card-step .step-num {
  width: 28px;
  height: 28px;
  font-size: 12px;
}

.step-body, .step-content { flex: 1; }
.step-body { padding-bottom: 24px; }
.step.card-step .step-body { padding-bottom: 0; }
.step-content { padding-top: 3px; }

.step-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
  margin-top: 8px;
}

.step.card-step .step-title { font-size: 13px; font-weight: 600; margin-top: 0; }

.step-desc { font-size: 13px; color: var(--text-muted); margin-bottom: 10px; line-height: 1.6; }
.step.card-step .step-desc { font-size: 12px; margin-top: 4px; margin-bottom: 0; }

.step-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.step-item .step-num {
  width: 28px;
  height: 28px;
  font-size: 12px;
  border: 1px solid rgba(124, 58, 237, 0.4);
}

.step-note { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

/* code blocks */
.code-block {
  background: #0a0b10;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-family: 'Courier New', 'Consolas', monospace;
  font-size: 12px;
  color: #a5f3fc;
  overflow-x: auto;
  line-height: 1.7;
  white-space: pre;
}

.step-code {
  display: inline-block;
  background: var(--card2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px 10px;
  font-family: 'Cascadia Code', 'Consolas', monospace;
  font-size: 12px;
  color: var(--accent-light);
  margin-top: 6px;
  word-break: break-all;
}

/* -------------------------------------------------------
   req-grid (card system requirements)
------------------------------------------------------- */
.req-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.req-item {
  background: var(--card2);
  border-radius: var(--radius-sm);
  padding: 14px;
  text-align: center;
}

.req-label {
  font-size: 11px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 6px;
}

.req-value { font-size: 13px; font-weight: 600; color: var(--text); }
.req-value.ok { color: var(--green); }
.req-value.warn { color: var(--yellow); }
.req-value.danger { color: var(--red); }

/* -------------------------------------------------------
   価格詳細ボックス (warning / info)
------------------------------------------------------- */
.price-note-box {
  margin-top: 14px;
  padding: 12px 14px;
  background: rgba(34, 197, 94, 0.05);
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: var(--radius-sm);
  font-size: 12px;
  color: var(--text-muted);
}

.price-note-box strong { color: var(--green); }

.credit-info {
  background: rgba(234, 179, 8, 0.05);
  border: 1px solid rgba(234, 179, 8, 0.2);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-top: 14px;
  font-size: 13px;
  color: var(--text-muted);
}

.credit-info strong { color: var(--yellow); }

.alert-box {
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 13px;
  line-height: 1.6;
}

.alert-box.warning {
  background: rgba(239, 68, 68, 0.07);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: var(--text-muted);
}

.alert-box.info {
  background: rgba(59, 130, 246, 0.07);
  border: 1px solid rgba(59, 130, 246, 0.25);
  color: var(--text-muted);
}

.warning-box {
  background: rgba(239, 68, 68, 0.05);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 14px;
}

.warning-box strong { color: var(--red); }

.warn-box {
  background: rgba(239, 68, 68, 0.06);
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 16px;
}

.warn-icon { font-size: 16px; flex-shrink: 0; margin-top: 1px; }
.warn-text { font-size: 13px; color: var(--text-muted); line-height: 1.6; }

/* -------------------------------------------------------
   運営イメージ
------------------------------------------------------- */
.flow-list { display: flex; flex-direction: column; gap: 10px; }

.flow-list .flow-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 16px;
  background: var(--card2);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--accent);
  flex: unset;
  min-width: unset;
  text-align: unset;
}

.flow-time {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-light);
  white-space: nowrap;
  min-width: 60px;
  margin-top: 1px;
}

.flow-text { font-size: 13px; color: var(--text-muted); }
.flow-text strong { color: var(--text); }

/* flow-grid (icon cards with arrows) */
.flow-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.flow-grid .flow-item {
  background: var(--card2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px;
  text-align: center;
  position: relative;
  border-left: none;
  flex: unset;
  min-width: unset;
  align-items: unset;
  gap: unset;
}

.flow-grid .flow-item:not(:last-child)::after {
  content: '→';
  position: absolute;
  right: -14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  font-size: 14px;
  z-index: 1;
}

.flow-icon { font-size: 22px; margin-bottom: 6px; }
.flow-label { font-size: 12px; font-weight: 600; color: var(--text); margin-bottom: 3px; }
.flow-desc { font-size: 11px; color: var(--text-muted); }
.flow-sub { font-size: 11px; color: var(--text-dim); }

/* operation-flow (horizontal flex) */
.operation-flow {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.operation-flow .flow-item {
  background: var(--card2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  text-align: center;
  flex: 1;
  min-width: 120px;
  border-left: none;
  align-items: unset;
  gap: unset;
}

.flow-arrow {
  font-size: 18px;
  color: var(--accent);
  padding: 0 6px;
  flex-shrink: 0;
}

.operation-note {
  margin-top: 16px;
  padding: 14px 16px;
  background: var(--card2);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* scene card */
.scene-card {
  background: linear-gradient(135deg, #1f2235, #1a1d27);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.scene-flow {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.scene-node {
  background: var(--card2);
  border: 1px solid rgba(124, 58, 237, 0.3);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  font-size: 13px;
  color: var(--accent-light);
  font-weight: 600;
}

.scene-arrow { color: var(--text-dim); font-size: 16px; }
.scene-desc { font-size: 13px; color: var(--text-muted); line-height: 1.7; }

/* arch diagram */
.arch-diagram {
  background: var(--card2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.arch-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

.arch-node {
  background: var(--card);
  border: 1px solid rgba(124, 58, 237, 0.3);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-light);
  text-align: center;
  min-width: 120px;
}

.arch-node.external { border-color: rgba(59, 130, 246, 0.4); color: var(--blue); }
.arch-node.twitch { border-color: rgba(124, 58, 237, 0.5); background: rgba(124, 58, 237, 0.08); }
.arch-node.gpt { border-color: rgba(34, 197, 94, 0.4); color: var(--green); }
.arch-node.tts { border-color: rgba(234, 179, 8, 0.4); color: var(--yellow); }

.arch-arrow { color: var(--text-dim); font-size: 18px; flex-shrink: 0; }
.arch-label { font-size: 11px; color: var(--text-dim); text-align: center; }

/* -------------------------------------------------------
   おすすめ / おすすめしない
------------------------------------------------------- */
.recommend-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.recommend-card, .recommend-box, .rec-box {
  background: var(--card2);
  border-radius: var(--radius-sm);
  padding: 16px;
}

.recommend-card.yes, .recommend-box.yes, .rec-box.yes {
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.recommend-card.no, .recommend-box.no, .rec-box.no {
  border: 1px solid rgba(239, 68, 68, 0.15);
}

.recommend-header, .recommend-title, .rec-title {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.recommend-card.yes .recommend-header,
.recommend-box.yes .recommend-title,
.rec-box.yes .rec-title,
.recommend-title.yes { color: var(--green); }

.recommend-card.no .recommend-header,
.recommend-box.no .recommend-title,
.rec-box.no .rec-title,
.recommend-title.no { color: var(--red); }

.recommend-list, .rec-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.recommend-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

.recommend-list li .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 6px;
}

.recommend-card.yes .dot { background: var(--green); }
.recommend-card.no .dot { background: var(--red); }

.rec-list li {
  font-size: 13px;
  color: var(--text-muted);
  padding-left: 16px;
  position: relative;
  line-height: 1.5;
}

.rec-box.yes .rec-list li::before { content: '▸'; position: absolute; left: 0; color: var(--green); }
.rec-box.no .rec-list li::before { content: '▸'; position: absolute; left: 0; color: var(--red); }

.recommend-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
}

/* -------------------------------------------------------
   タグ
------------------------------------------------------- */
.tag-list, .tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--accent-glow);
  border: 1px solid rgba(124, 58, 237, 0.3);
  color: var(--accent-light);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
}

.tag.green { background: rgba(34, 197, 94, 0.08); border-color: rgba(34, 197, 94, 0.25); color: var(--green); }
.tag.blue { background: rgba(59, 130, 246, 0.08); border-color: rgba(59, 130, 246, 0.25); color: var(--blue); }
.tag.yellow { background: rgba(234, 179, 8, 0.08); border-color: rgba(234, 179, 8, 0.25); color: var(--yellow); }
.tag.red { background: rgba(239, 68, 68, 0.1); border-color: rgba(239, 68, 68, 0.3); color: var(--red); }

/* -------------------------------------------------------
   フッター
------------------------------------------------------- */
.footer {
  text-align: center;
  padding: 24px;
  border-top: 1px solid var(--border);
  margin-top: 8px;
  font-size: 12px;
  color: var(--text-dim);
}

.footer a { color: var(--accent-light); text-decoration: none; }
.footer a:hover { text-decoration: underline; }

.footer-text { font-size: 13px; color: var(--text-dim); margin-bottom: 14px; }

.footer-note {
  text-align: center;
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 12px;
}

/* overview text */
.overview-text { font-size: 15px; color: var(--text); line-height: 1.8; }

/* -------------------------------------------------------
   レスポンシブ
------------------------------------------------------- */
@media (max-width: 768px) {
  .feature-grid { grid-template-columns: 1fr; }
  .pros-cons, .merit-demerit, .pros-cons-grid, .merit-demerit-grid { grid-template-columns: 1fr; }
  .cost-grid { grid-template-columns: 1fr; }
  .flow-grid { grid-template-columns: repeat(2, 1fr); }
  .recommend-grid { grid-template-columns: 1fr; }
  .req-grid { grid-template-columns: repeat(2, 1fr); }
  .price-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .hero, .hero { padding: 28px 20px; }
  .hero-name, .hero-title { font-size: 26px; }
  .main { padding: 20px 16px 40px; }
  .flow-grid .flow-item:not(:last-child)::after { display: none; }
  .operation-flow { flex-direction: column; align-items: stretch; }
  .flow-arrow { transform: rotate(90deg); text-align: center; padding: 4px 0; }
}

@media (max-width: 480px) {
  .feature-grid { grid-template-columns: 1fr; }
  .req-grid { grid-template-columns: 1fr; }
  .flow-grid { grid-template-columns: 1fr; }
  .gpu-grid { grid-template-columns: 1fr; }
}

@media (min-width: 641px) and (max-width: 1024px) {
  .main { padding: 24px 16px 40px; }
}
