/* インフラエンジニア適性診断（/career-check）。診断スクリプトが組み立てる画面は cc- の接頭辞で書く。
   説明ページ（診断ページの上・下、タイプ別ページ）と結果のタイプ表示は最初のデザイン。
   質問の画面と、結果の「シェアする」以降は、トップページ（landing.html）の色・太さ・余白に合わせた新しいデザイン（#cc-app の中）。 */
.cc-hero {
  background:
    radial-gradient(circle at 85% 15%, rgba(34, 211, 238, 0.28), transparent 42%),
    radial-gradient(circle at 10% 90%, rgba(124, 58, 237, 0.25), transparent 45%),
    linear-gradient(135deg, #07111f 0%, #0b1f4d 55%, #0818ff 135%);
}
.cc-grid-bg {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent 90%);
}
.cc-en { font-family: "Poppins", "Noto Sans JP", sans-serif; letter-spacing: 0.08em; }
.cc-icon svg, .cc-mini-icon svg, .cc-type-icon svg { display: block; width: 100%; height: 100%; }

/* 診断中は説明のセクションを隠して、問題に集中できるようにする */
body.cc-active .cc-landing { display: none; }
#cc-app { display: none; }
body.cc-active #cc-app { display: block; }


/* タイプのキャラクター（320x256 のドット絵）。縦横比 5:4 のまま、拡大はドットをくっきり見せる。
   輪郭が濃い色なので、暗い背景の上では白い台紙に載せる。 */
.cc-chara { display: block; width: 100%; height: auto; aspect-ratio: 5 / 4; object-fit: contain; image-rendering: pixelated; }
.cc-chara-pad { display: block; flex: none; border-radius: 18px; background: #fff; padding: 6px; }
.cc-chara-soft { display: block; flex: none; border-radius: 14px; padding: 4px; background: #f6f8fc; }
/* 結果のタイプ表示: スマホではキャラクターを名前の上に置き、名前が語の途中で折り返さないようにする */
.cc-result-head { margin-top: 14px; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.cc-result-chara { width: 128px; padding: 6px; border-radius: 18px; }
@media (min-width: 640px) {
  .cc-result-head { flex-direction: row; align-items: center; gap: 20px; }
  .cc-result-chara { width: 140px; border-radius: 22px; padding: 8px; }
}

/* 説明ページで使う部品（最初のデザイン） */
.cc-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 999px; padding: 13px 22px; font-size: 15px; font-weight: 800; cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, background-color 0.15s;
}
.cc-btn-primary { background: #0818ff; color: #fff; box-shadow: 0 12px 30px -12px rgba(8, 24, 255, 0.8); }
.cc-btn-primary:hover { transform: translateY(-1px); }
.cc-btn-primary:disabled { background: #cbd5e1; box-shadow: none; cursor: not-allowed; transform: none; }
.cc-btn-ghost { color: #475569; background: transparent; padding-left: 6px; padding-right: 6px; }
.cc-btn-ghost:hover { color: #0818ff; }
.cc-btn-outline { border: 2px solid #cbd5e1; color: #0f172a; background: #fff; }
.cc-btn-outline:hover { border-color: #0818ff; color: #0818ff; }
.cc-chip { display: inline-flex; border-radius: 999px; padding: 4px 10px; font-size: 12px; font-weight: 800; background: #f1f5f9; color: #334155; }
.cc-list { margin-top: 10px; display: grid; gap: 8px; }
.cc-list li { display: flex; gap: 10px; font-size: 14px; line-height: 1.8; color: #334155; }
.cc-list li::before { content: "✓"; flex: none; font-weight: 900; color: #0818ff; }
.cc-match { margin-top: 12px; display: grid; gap: 8px; grid-template-columns: 1fr 1fr; }
@media (min-width: 640px) { .cc-match { grid-template-columns: repeat(3, 1fr); } }
.cc-match a { display: flex; align-items: center; gap: 10px; border-radius: 14px; border: 1px solid #e2e8f0; padding: 10px; background: #fff; }
.cc-match a:hover { border-color: #0818ff; }
.cc-match .cc-mini-icon { width: 34px; height: 34px; flex: none; border-radius: 10px; padding: 6px; color: #fff; }
.cc-match .cc-chara-soft { width: 50px; padding: 3px; border-radius: 10px; }
.cc-match b { display: block; font-size: 12px; color: #0f172a; line-height: 1.4; }
.cc-match small { font-family: "Poppins", sans-serif; font-size: 12px; font-weight: 800; color: #64748b; }
.cc-roadmap { margin-top: 12px; display: grid; gap: 8px; counter-reset: cc-step; }
.cc-roadmap a { display: flex; align-items: center; gap: 12px; border-radius: 14px; border: 1px solid #e2e8f0; padding: 12px 14px; font-size: 14px; font-weight: 800; color: #0f172a; background: #fff; }
.cc-roadmap a:hover { border-color: #0818ff; color: #0818ff; }
.cc-roadmap a::before { counter-increment: cc-step; content: counter(cc-step); flex: none; width: 26px; height: 26px; border-radius: 99px; background: #0818ff; color: #fff; display: grid; place-items: center; font-family: "Poppins", sans-serif; font-size: 12px; }
.cc-roadmap a small { margin-left: auto; font-size: 11px; color: #64748b; font-weight: 700; white-space: nowrap; }

/* 結果 */
.cc-result-hero { position: relative; overflow: hidden; border-radius: 28px; color: #fff; padding: 30px 22px 26px; }
@media (min-width: 640px) { .cc-result-hero { padding: 40px 40px 34px; } }
.cc-result-hero .cc-type-icon { flex: none; width: 68px; height: 68px; border-radius: 20px; background: rgba(255, 255, 255, 0.14); padding: 12px; color: #fff; }
.cc-type-name { margin-top: 2px; font-size: 22px; font-weight: 900; line-height: 1.3; }
@media (min-width: 640px) {
  .cc-result-hero .cc-type-icon { width: 92px; height: 92px; border-radius: 26px; padding: 16px; }
  .cc-type-name { font-size: 32px; }
}
.cc-code { display: inline-flex; border-radius: 999px; background: rgba(255, 255, 255, 0.16); padding: 6px 12px; font-family: "Poppins", sans-serif; font-weight: 800; letter-spacing: 0.12em; font-size: 13px; }

/* ===== ここから質問の画面と、結果の「シェアする」以降（新しいデザイン） ===== */
:root {
  --cc-blue: #0818ff;
  --cc-blue-dark: #0000cc;
  --cc-blue-soft: #eef1ff;
  --cc-ink: #07111f;
  --cc-text: #334155;
  --cc-muted: #5f6878;
  --cc-line: #e7e9f2;
  --cc-bg: #f7f9fc;
}

#cc-app { background: var(--cc-bg); }
.cc-shell { max-width: 720px; margin: 0 auto; padding: 112px 20px 80px; }
.cc-card {
  background: #fff;
  border: 1px solid var(--cc-line);
  border-radius: 20px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 12px 32px -24px rgba(15, 23, 42, 0.18);
  padding: 28px 22px;
}
@media (min-width: 640px) { .cc-card { padding: 40px 44px; } }
.cc-card + .cc-card, .cc-result-hero + .cc-card { margin-top: 20px; }

/* 進み具合 */
.cc-progress { margin-bottom: 28px; }
.cc-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 12px; }
.cc-step { font-size: 11px; font-weight: 500; color: #94a3b8; text-align: center; line-height: 1.4; }
.cc-step b { display: block; font-family: "Poppins", sans-serif; font-size: 10px; font-weight: 600; letter-spacing: 0.1em; }
.cc-step.is-current { color: var(--cc-blue); }
.cc-step.is-done { color: var(--cc-muted); }
.cc-bar { height: 4px; border-radius: 999px; background: #e9edf5; overflow: hidden; }
.cc-bar > span { display: block; height: 100%; border-radius: 999px; background: var(--cc-blue); transition: width 0.35s ease; }

.cc-kicker { font-family: "Poppins", "Noto Sans JP", sans-serif; font-size: 12px; font-weight: 600; letter-spacing: 0.1em; color: var(--cc-blue); }
.cc-kicker span { margin-left: 6px; color: #94a3b8; }
.cc-q { margin-top: 12px; font-size: 18px; font-weight: 700; line-height: 1.7; color: var(--cc-ink); }
@media (min-width: 640px) { .cc-q { font-size: 21px; } }
.cc-note { margin-top: 18px; font-size: 12.5px; line-height: 1.9; color: var(--cc-muted); }

/* 選択肢 */
.cc-options { margin-top: 24px; display: grid; gap: 12px; }
.cc-option {
  display: flex; align-items: center; gap: 14px; width: 100%;
  text-align: left; padding: 16px 18px; border-radius: 14px;
  border: 1px solid #dfe3ee; background: #fff; color: var(--cc-ink);
  font-size: 15px; font-weight: 500; line-height: 1.7;
  transition: border-color 0.15s, background-color 0.15s, box-shadow 0.15s;
  cursor: pointer;
}
.cc-option:hover { border-color: #a9b5ff; background: #f8f9ff; }
.cc-option:focus-visible { outline: 3px solid #bfdbfe; outline-offset: 2px; }
.cc-option.is-selected { border-color: var(--cc-blue); background: var(--cc-blue-soft); box-shadow: 0 0 0 1px var(--cc-blue) inset; }
.cc-option .cc-mark {
  flex: none; width: 26px; height: 26px; border-radius: 999px; border: 1px solid #cfd5e2;
  display: grid; place-items: center; font-family: "Poppins", sans-serif; font-size: 12px; font-weight: 500; color: var(--cc-muted);
}
.cc-option.is-selected .cc-mark { border-color: var(--cc-blue); background: var(--cc-blue); color: #fff; }

/* 2つの文のどちらに近いか */
.cc-pair { margin-top: 24px; display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.cc-pair-side { border-radius: 14px; padding: 16px; font-size: 14px; font-weight: 500; line-height: 1.75; color: var(--cc-ink); border: 1px solid var(--cc-line); }
.cc-pair-a { background: var(--cc-blue-soft); border-color: #dbe1ff; }
.cc-pair-b { background: #effbfd; border-color: #d3f1f6; }
.cc-pair-side small { display: block; margin-bottom: 4px; font-family: "Poppins", sans-serif; font-size: 11px; font-weight: 600; letter-spacing: 0.1em; }
.cc-pair-a small { color: var(--cc-blue); }
.cc-pair-b small { color: #0e7490; }
.cc-scale { margin-top: 16px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.cc-scale button {
  border: 1px solid #dfe3ee; background: #fff; border-radius: 12px; padding: 13px 4px;
  font-size: 12.5px; font-weight: 500; color: var(--cc-text); line-height: 1.4; cursor: pointer;
  transition: border-color 0.15s, background-color 0.15s;
}
.cc-scale button:hover { border-color: #a9b5ff; }
.cc-scale button.is-selected { border-color: var(--cc-blue); background: var(--cc-blue); color: #fff; }
.cc-scale button:nth-child(n+3).is-selected { background: #0e7490; border-color: #0e7490; }

.cc-nav { margin-top: 28px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
#cc-app .cc-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 12px; padding: 13px 24px; font-size: 15px; font-weight: 700; cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, background-color 0.15s, border-color 0.15s, color 0.15s;
}
#cc-app .cc-btn-primary { background: var(--cc-blue); color: #fff; box-shadow: 0 10px 22px -14px rgba(8, 24, 255, 0.55); }
#cc-app .cc-btn-primary:hover { background: var(--cc-blue-dark); transform: translateY(-1px); }
#cc-app .cc-btn-primary:disabled { background: #cbd5e1; box-shadow: none; cursor: not-allowed; transform: none; }
#cc-app .cc-btn-ghost { color: var(--cc-muted); background: transparent; padding-left: 4px; padding-right: 4px; font-weight: 500; font-size: 14px; }
#cc-app .cc-btn-ghost:hover { color: var(--cc-blue); }
#cc-app .cc-btn-outline { border: 1px solid #cfd5e2; color: var(--cc-ink); background: #fff; }
#cc-app .cc-btn-outline:hover { border-color: var(--cc-blue); color: var(--cc-blue); }

/* 質問の中の画面例 */
.cc-console {
  margin-top: 18px; border-radius: 14px; background: #0b1220; color: #d1d5db;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 11.5px; line-height: 1.75;
  overflow: hidden; border: 1px solid #1e293b;
}
.cc-console-bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: #111a2e; color: #94a3b8; font-size: 11px; }
.cc-console-bar i { width: 9px; height: 9px; border-radius: 99px; background: #334155; display: inline-block; }
.cc-console-bar span { margin-left: 6px; }
.cc-console-body { padding: 14px 16px; overflow-x: auto; white-space: pre; }
@media (min-width: 640px) { .cc-console-body { font-size: 12.5px; } }
.cc-console .cc-prompt { color: #4ade80; }
.cc-console .cc-cmd { color: #f8fafc; }
.cc-console .cc-err { color: #fca5a5; }
.cc-visual { margin-top: 18px; border-radius: 14px; border: 1px solid var(--cc-line); background: #fafbfe; padding: 12px 14px 6px; }
.cc-visual svg { display: block; width: 100%; max-width: 420px; height: auto; margin: 0 auto; }

/* 結果: 各セクション */
.cc-section + .cc-section { margin-top: 40px; padding-top: 36px; border-top: 1px solid #f0f2f7; }
.cc-section h3 { font-size: 17px; font-weight: 700; color: var(--cc-ink); display: flex; align-items: center; gap: 10px; }
.cc-section h3::before { content: ""; width: 4px; height: 16px; border-radius: 99px; background: var(--cc-blue); }
.cc-section .cc-sub { margin-top: 8px; font-size: 13px; color: var(--cc-muted); line-height: 1.85; }
.cc-section .cc-sub b { color: var(--cc-ink); font-weight: 700; }
.cc-bars { margin-top: 18px; display: grid; gap: 12px; }
.cc-bar-row { display: grid; grid-template-columns: 108px 1fr 44px; gap: 12px; align-items: center; font-size: 13px; font-weight: 500; color: var(--cc-text); }
.cc-bar-track { height: 8px; background: #f0f2f7; border-radius: 99px; overflow: hidden; }
.cc-bar-track span { display: block; height: 100%; border-radius: 99px; transition: width 0.8s ease; }
.cc-bar-row b { text-align: right; font-family: "Poppins", sans-serif; font-size: 13px; font-weight: 600; color: var(--cc-ink); }
.cc-radar { width: 100%; max-width: 340px; margin: 12px auto 0; display: block; }
.cc-style-row { margin-top: 18px; }
.cc-style-labels { display: flex; justify-content: space-between; font-size: 12.5px; font-weight: 500; color: var(--cc-text); }
.cc-style-track { position: relative; margin-top: 8px; height: 6px; border-radius: 99px; background: linear-gradient(90deg, #c7cfff, #eef0f5 50%, #bfeef5); }
.cc-style-dot { position: absolute; top: 50%; width: 18px; height: 18px; margin-left: -9px; margin-top: -9px; border-radius: 99px; background: var(--cc-blue); border: 3px solid #fff; box-shadow: 0 1px 4px rgba(15, 23, 42, 0.25); }
#cc-app .cc-chip { display: inline-flex; border-radius: 999px; padding: 5px 12px; font-size: 12.5px; font-weight: 500; background: #f3f5f9; color: var(--cc-text); }
#cc-app .cc-chip.is-blue { background: var(--cc-blue-soft); color: #1e2a8a; }
.cc-chips { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.cc-list { margin-top: 14px; display: grid; gap: 10px; }
.cc-list li { display: flex; gap: 10px; font-size: 14px; line-height: 1.85; color: var(--cc-text); }
.cc-list li::before { content: ""; flex: none; width: 6px; height: 6px; margin-top: 11px; border-radius: 99px; background: var(--cc-blue); }
.cc-list .cc-chip { margin-left: 6px; padding: 1px 8px; font-size: 11px; vertical-align: 1px; }
#cc-app .cc-match { margin-top: 16px; display: grid; gap: 10px; grid-template-columns: 1fr 1fr; }
@media (min-width: 640px) { #cc-app .cc-match { grid-template-columns: repeat(3, 1fr); } }
#cc-app .cc-match a { display: flex; align-items: center; gap: 12px; border-radius: 14px; border: 1px solid var(--cc-line); padding: 12px; background: #fff; transition: border-color 0.15s; }
#cc-app .cc-match a:hover { border-color: #a9b5ff; }
#cc-app .cc-match .cc-mini-icon { width: 34px; height: 34px; flex: none; border-radius: 10px; padding: 7px; color: #fff; }
#cc-app .cc-match .cc-chara-soft { width: 50px; padding: 3px; border-radius: 10px; }
#cc-app .cc-match b { display: block; font-size: 12.5px; font-weight: 700; color: var(--cc-ink); line-height: 1.45; }
#cc-app .cc-match small { font-family: "Poppins", sans-serif; font-size: 12px; font-weight: 500; color: var(--cc-muted); }
#cc-app .cc-roadmap { margin-top: 16px; display: grid; gap: 10px; counter-reset: cc-step; }
#cc-app .cc-roadmap a { display: flex; align-items: center; gap: 14px; border-radius: 14px; border: 1px solid var(--cc-line); padding: 14px 16px; font-size: 14px; font-weight: 500; color: var(--cc-ink); background: #fff; transition: border-color 0.15s, color 0.15s; }
#cc-app .cc-roadmap a:hover { border-color: #a9b5ff; color: var(--cc-blue); }
#cc-app .cc-roadmap a::before { counter-increment: cc-step; content: counter(cc-step); flex: none; width: 26px; height: 26px; border-radius: 99px; background: var(--cc-blue-soft); color: var(--cc-blue); display: grid; place-items: center; font-family: "Poppins", sans-serif; font-size: 12px; font-weight: 600; }
#cc-app .cc-roadmap a small { margin-left: auto; font-size: 11px; color: var(--cc-muted); font-weight: 400; white-space: nowrap; }
@media (max-width: 480px) { #cc-app .cc-roadmap a { flex-wrap: wrap; } .cc-roadmap a small { margin-left: 40px; width: 100%; } }
.cc-actions { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 10px; }
.cc-share { margin-top: 16px; display: grid; gap: 10px; grid-template-columns: 1fr 1fr; }
@media (min-width: 640px) { .cc-share { grid-template-columns: repeat(4, 1fr); } }
.cc-share button, .cc-share a {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 12px; padding: 12px; font-size: 13px; font-weight: 600; cursor: pointer;
  transition: opacity 0.15s, border-color 0.15s;
}
.cc-share .is-x { background: #0f1419; color: #fff; }
.cc-share .is-line { background: #06c755; color: #fff; }
.cc-share .is-x:hover, .cc-share .is-line:hover { opacity: 0.88; }
.cc-share .is-copy, .cc-share .is-image { background: #fff; color: var(--cc-ink); border: 1px solid #cfd5e2; }
.cc-share .is-copy:hover, .cc-share .is-image:hover { border-color: var(--cc-blue); color: var(--cc-blue); }
.cc-preview { margin-top: 16px; border-radius: 14px; overflow: hidden; border: 1px solid var(--cc-line); }
.cc-preview img, .cc-preview canvas { display: block; width: 100%; height: auto; }
.cc-toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); background: var(--cc-ink); color: #fff; padding: 10px 18px; border-radius: 999px; font-size: 13px; font-weight: 500; z-index: 60; opacity: 0; transition: opacity 0.2s; pointer-events: none; }
.cc-toast.is-show { opacity: 1; }
.cc-fade { animation: cc-fade 0.35s ease both; }
@keyframes cc-fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* 結果: 考え方のクセ（日常の「あるある」で見せる） */
.cc-mind {
  margin-top: 24px; border-radius: 16px; padding: 22px 20px;
  background: color-mix(in srgb, var(--tc) 6%, #fff); border: 1px solid color-mix(in srgb, var(--tc) 18%, #fff);
}
@media (min-width: 640px) { .cc-mind { padding: 26px 28px; } }
.cc-mind-kicker { font-size: 12px; font-weight: 600; color: var(--tc); }
.cc-mind-name { margin-top: 6px; font-size: 20px; font-weight: 700; line-height: 1.5; color: var(--cc-ink); }
.cc-mind-name span { display: block; font-size: 14px; font-weight: 500; color: var(--cc-text); }
@media (min-width: 640px) { .cc-mind-name span { display: inline; margin-left: 6px; } }
.cc-mind-desc { margin-top: 10px; font-size: 14px; line-height: 1.95; color: var(--cc-text); }
.cc-mind-work { margin-top: 16px; font-size: 13px; line-height: 1.85; color: var(--cc-muted); }
.cc-mind-work b { display: inline-block; margin-right: 8px; padding: 1px 8px; border-radius: 6px; font-size: 11px; font-weight: 600; color: var(--tc); background: #fff; border: 1px solid color-mix(in srgb, var(--tc) 22%, #fff); }
.cc-aruaru { margin-top: 16px; border-radius: 12px; background: #fff; border: 1px solid var(--cc-line); padding: 14px 16px; }
.cc-aruaru-title { font-size: 12.5px; font-weight: 600; color: var(--cc-ink); }
.cc-aruaru ul { margin-top: 8px; display: grid; gap: 6px; }
.cc-aruaru li { position: relative; padding-left: 26px; font-size: 14px; line-height: 1.8; color: var(--cc-text); }
.cc-aruaru li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 17px; height: 17px; border-radius: 5px;
  background: var(--cc-blue-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%230818ff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 8.5 2.6 2.5L12 5.5'/%3E%3C/svg%3E") center / 13px no-repeat;
}
.cc-mind-more { margin-top: 12px; display: grid; gap: 10px; }
@media (min-width: 640px) { .cc-mind-more { grid-template-columns: 1fr 1fr; } }
.cc-mind-row { border-radius: 0; border: 1px solid var(--cc-line); padding: 14px 16px; background: #fff; border-left: 3px solid var(--tc); }
.cc-mind-row-name { font-size: 14px; font-weight: 700; color: var(--cc-ink); }
.cc-mind-row-ex { margin-top: 4px; font-size: 13px; line-height: 1.75; color: var(--cc-muted); }
.cc-mind-growth { margin-top: 12px; border-radius: 14px; background: #f7f8fb; padding: 14px 16px; font-size: 13px; line-height: 1.85; color: var(--cc-text); }
.cc-mind-growth b { font-weight: 700; color: var(--cc-ink); }
.cc-mind-growth p + p { margin-top: 2px; }

@media (prefers-reduced-motion: reduce) {
  .cc-fade { animation: none; }
  .cc-bar > span, .cc-bar-track span { transition: none; }
}

/* タイプの一覧（6タイプとの近さ・ほかのタイプ）: スマホでは1列にして、名前を1行で読めるようにする。
   .cc-match の列の指定より後に書く。 */
@media (max-width: 639px) { .cc-match, #cc-app .cc-match { grid-template-columns: 1fr; } }

