/* ai-role-framework page-specific styles (extracted from inline <style>) */

/* ---- 役割カード ---- */
.role-section {
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 28px;
}
.role-header {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 0;
  align-items: stretch;
}
.role-num {
  background: var(--navy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  padding: 20px 0;
}
.role-title-block {
  padding: 18px 24px;
  background: #f7f8fa;
  border-bottom: 1px solid var(--border);
}
.role-title-block h3 {
  margin: 0 0 4px;
  font-size: 18px;
  color: var(--navy);
}
.role-title-block p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}
.role-body {
  padding: 20px 24px;
  display: grid;
  gap: 16px;
}
.role-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.role-table th {
  background: var(--navy);
  color: #fff;
  padding: 9px 14px;
  text-align: left;
  font-weight: 600;
}
.role-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  color: #334155;
  line-height: 1.7;
}
.role-table tr:last-child td { border-bottom: none; }
.role-table tr:nth-child(even) td { background: #f7f8fa; }
.role-table .tool-name {
  font-weight: 700;
  color: var(--navy);
  white-space: nowrap;
}
.tool-claude { color: #c96442 !important; }
.tool-copilot { color: #0078d4 !important; }
.tool-chatgpt { color: #10a37f !important; }

.usage-example {
  background: #f0f4f8;
  border-left: 3px solid var(--gold);
  border-radius: 0 10px 10px 0;
  padding: 14px 16px;
  font-size: 13px;
  color: #334155;
  line-height: 1.9;
}
.usage-example strong {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--gold);
  margin-bottom: 6px;
  text-transform: uppercase;
}
.usage-example code {
  display: block;
  background: #e8edf3;
  border-radius: 6px;
  padding: 10px 12px;
  font-family: "Courier New", monospace;
  font-size: 12px;
  color: #1e293b;
  margin-top: 8px;
  white-space: pre-wrap;
  line-height: 1.8;
}

/* ---- Claudeフォーカスセクション ---- */
.claude-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}
.claude-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px 22px;
}
.claude-card .label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 2px 10px;
  border-radius: 4px;
  margin-bottom: 10px;
}
.label-strength { background: rgba(201,100,66,0.1); color: #c96442; }
.label-caution  { background: rgba(245,158,11,0.1); color: #92400e; }
.claude-card h3 { margin: 0 0 8px; font-size: 15px; color: var(--navy); }
.claude-card p  { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.8; }

/* ---- 比較テーブル ---- */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin-top: 28px;
}
.compare-table th {
  padding: 12px 16px;
  text-align: center;
  font-weight: 700;
  border-bottom: 2px solid var(--border);
}
.compare-table th:first-child { text-align: left; }
.compare-table .th-claude { background: rgba(201,100,66,0.08); color: #c96442; }
.compare-table .th-chatgpt { background: rgba(16,163,127,0.08); color: #065f46; }
.compare-table .th-copilot { background: rgba(0,120,212,0.08); color: #0078d4; }
.compare-table td {
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  line-height: 1.7;
}
.compare-table td:not(:first-child) { text-align: center; }
.compare-table tr:last-child td { border-bottom: none; }
.compare-table tr:nth-child(even) td { background: #f7f8fa; }
.mark-good { color: #16a34a; font-weight: 700; font-size: 16px; }
.mark-ok   { color: #d97706; font-weight: 700; font-size: 14px; }
.mark-no   { color: #dc2626; font-weight: 700; font-size: 16px; }

/* ---- 3段階提案 ---- */
.stage-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 28px;
}
.stage-card {
  border-radius: 18px;
  padding: 26px;
  border: 1px solid var(--border);
  position: relative;
}
.stage-1 { background: #fff; }
.stage-2 { background: rgba(182,151,91,0.06); border-color: var(--gold); }
.stage-3 { background: var(--navy); }
.stage-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  border-radius: 4px;
  padding: 3px 10px;
  margin-bottom: 14px;
}
.stage-1 .stage-badge { background: #e2e8f0; color: #475569; }
.stage-2 .stage-badge { background: rgba(182,151,91,0.2); color: #7c5c1e; }
.stage-3 .stage-badge { background: rgba(182,151,91,0.3); color: var(--gold); }
.stage-card h3 { margin: 0 0 12px; font-size: 17px; }
.stage-1 h3, .stage-2 h3 { color: var(--navy); }
.stage-3 h3 { color: #fff; }
.stage-card .tools {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}
.stage-card .tool-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
}
.stage-1 .tool-item, .stage-2 .tool-item { color: #334155; }
.stage-3 .tool-item { color: rgba(255,255,255,0.82); }
.tool-item .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 6px;
}
.stage-1 .dot { background: var(--muted); }
.stage-2 .dot { background: var(--gold); }
.stage-3 .dot { background: var(--gold); }
.stage-card .cost {
  font-size: 12px;
  font-weight: 700;
  border-radius: 6px;
  padding: 6px 10px;
  margin-top: 10px;
}
.stage-1 .cost { background: #f1f5f9; color: #475569; }
.stage-2 .cost { background: rgba(182,151,91,0.15); color: #7c5c1e; }
.stage-3 .cost { background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.9); }

@media (max-width: 768px) {
  .role-header { grid-template-columns: 44px 1fr; }
  .claude-grid { grid-template-columns: 1fr; }
  .stage-grid { grid-template-columns: 1fr; }
  .role-table { font-size: 12px; }
}

/* ===== utility classes (extracted from inline styles) ===== */
.u-bg-soft { background: var(--bg-soft); }
.u-brand-chatgpt { color:#10a37f; }
.u-brand-claude { color:#c96442; }
.u-brand-copilot { color:#0078d4; }
.u-mt32-jc { margin-top:32px;justify-content:center; }
.u-mt56 { margin-top: 56px; }
.u-note { font-size:12px;color:var(--muted);margin-top:12px;line-height:1.8; }
.u-note13 { font-size:13px;color:var(--muted);line-height:1.8; }
.u-ovx { overflow-x: auto; }
.u-w22 { width:22%; }
.u-w28 { width:28%; }
.u-white90 { color:rgba(255,255,255,0.9); }
