/* Adobe Creative Cloud プラン診断 固有のCSS（接頭辞：ccp-）
   色はすべて assets/common.css の CSS変数を使う */

/* ---------- 質問 ---------- */
.ccp-q { margin-bottom: 16px; }
.ccp-q__legend { font-size: .9375rem; line-height: 1.6; }
.ccp-q__num { font-weight: 700; color: var(--tk-accent); margin-right: 6px; }
.ccp-q__req, .ccp-q__multi { display: inline-block; font-size: .6875rem; font-weight: 700; padding: 0 6px; border-radius: 4px; margin-left: 6px; vertical-align: .1em; line-height: 1.6; }
.ccp-q__req { background: var(--tk-danger-soft); color: var(--tk-danger); }
.ccp-q__multi { background: var(--tk-accent-soft); color: var(--tk-accent); }
.ccp-q__help { margin: 0 0 8px; }
.ccp-q__options { display: grid; gap: 6px; grid-template-columns: minmax(0, 1fr); }
.ccp-opt { margin: 0; padding: 8px 10px; border: 1px solid var(--tk-border); border-radius: var(--tk-radius-sm); background: var(--tk-surface); }
.ccp-opt:hover { border-color: var(--tk-accent); }
.ccp-opt:has(input:checked) { border-color: var(--tk-accent); background: var(--tk-accent-soft); }
.ccp-error { margin: 8px 0 0; }

/* ---------- 結果 ---------- */
.ccp-result > * + * { margin-top: 16px; }
.ccp-disclaimer { margin: 0; }
.ccp-plan { border: 1px solid var(--tk-border); border-radius: var(--tk-radius); padding: 14px 16px; background: var(--tk-surface); }
.ccp-plan--top { border: 2px solid var(--tk-accent); }
.ccp-plan__head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-bottom: 6px; }
.ccp-plan__rank { font-size: .75rem; font-weight: 700; padding: 2px 10px; border-radius: 999px; background: var(--tk-surface-2); color: var(--tk-text-muted); }
.ccp-plan--top .ccp-plan__rank { background: var(--tk-accent); color: var(--tk-accent-contrast); }
.ccp-plan__name { margin: 0; font-size: 1.0625rem; }
.ccp-plan__summary { color: var(--tk-text-muted); font-size: .875rem; margin: 0 0 8px; }

.ccp-block { margin-top: 12px; }
.ccp-block__title { font-size: .875rem; margin: 0 0 4px; }
.ccp-list { margin: 0; padding-left: 1.3em; font-size: .9375rem; }
.ccp-list li + li { margin-top: 2px; }
.ccp-block--notfor .ccp-block__title { color: var(--tk-warning); }
.ccp-notes { padding: 10px 14px; border-radius: var(--tk-radius-sm); background: var(--tk-surface-2); }
.ccp-facts { margin-top: 4px; }

.ccp-section-title { font-size: 1rem; margin: 0 0 6px; }
.ccp-free__item { border: 1px solid var(--tk-border); border-radius: var(--tk-radius-sm); padding: 10px 14px; margin-top: 8px; }
.ccp-free__name { font-weight: 700; margin: 0; }
.ccp-free__desc, .ccp-free__fact { margin: 2px 0 0; }

.ccp-answers { font-size: .875rem; }
.ccp-answers summary { cursor: pointer; font-weight: 600; }
.ccp-answers__list { margin: 8px 0 0; }
.ccp-answers__list dt { font-weight: 600; margin-top: 6px; }
.ccp-answers__list dd { margin: 0; color: var(--tk-text-muted); }

.ccp-share__row { display: flex; flex-direction: column; gap: 8px; }
.ccp-share__url { font-family: var(--tk-mono); font-size: 14px; }

@media (min-width: 768px) {
  .ccp-share__row { flex-direction: row; }
  .ccp-share__row .tk-btn { flex-shrink: 0; }
}
@media (min-width: 1024px) {
  .ccp-q__options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
