/* 意思決定タイプ診断の公開ページ（2026-12-01 第2版 段B・2026-12-02 第3版で KV を差し替え）。
   色は黄とオレンジ・文字は紺（AIキャリア診断=青、FDE診断=紺と分ける）。見出しは Zen Kaku Gothic New（career-job-info と同じく Google Fonts）。 */
:root {
  --ds-ink: #1c3363;
  --ds-yellow: #ffe45c;
  --ds-yellow-2: #ffd23f;
  --ds-orange: #ff9f1c;
  --ds-red: #e8453c;
  --ds-bg: #fffaf0;
  --ds-muted: #5b6475;
  --ds-radius: 20px;
  --ds-paper: #fff8ec;
  --ds-cta: #ffc629;
  --ds-head: "Zen Kaku Gothic New", "Hiragino Sans", "Noto Sans JP", "Yu Gothic", sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: "Hiragino Sans", "Noto Sans JP", "Yu Gothic", system-ui, sans-serif;
  color: var(--ds-ink);
  background: var(--ds-paper);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
body.ds-locked { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
main { padding: 0 16px 48px; }
main > :not(.ds-kv) { max-width: 720px; margin-left: auto; margin-right: auto; }

.ds-header { display: flex; align-items: center; height: 56px; padding: 0 16px; background: #fff; box-shadow: 0 1px 0 rgba(0,0,0,.06); }
.ds-header-logo { height: 22px; width: auto; }

/* キービジュアル（第3版）: 題名は文字・4つの決め方の図・短い説明 */
.ds-kv { max-width: 1120px; margin: 0 auto; padding: 20px 0 8px; text-align: center; }
.ds-kv-eyebrow { display: inline-block; margin: 0; padding: 6px 16px; border-radius: 999px; background: var(--ds-ink); color: #fff; font: 700 14px/1.4 var(--ds-head); letter-spacing: .06em; }
.ds-kv-title { margin: 14px 0 0; font: 900 clamp(40px, 11.5vw, 72px)/1.1 var(--ds-head); letter-spacing: .02em; }
.ds-kv-title small { display: block; margin-bottom: .15em; font-size: .46em; font-weight: 700; letter-spacing: .12em; }
.ds-kv-map { position: relative; width: min(100%, 520px); aspect-ratio: 1 / 1; margin: 28px auto 0; }
.ds-kv-q { position: absolute; display: flex; flex-direction: column; justify-content: flex-end; width: 47%; height: 47%; padding: 12px 14px; overflow: hidden; border-radius: 28px; text-align: left; }
.ds-kv-q img { position: absolute; bottom: 4%; width: auto; height: 90%; max-width: none; }
.ds-kv-q-name { position: relative; z-index: 1; align-self: flex-start; padding: 4px 10px; border-radius: 8px; background: #fff; font: 900 clamp(12px, 3.4vw, 16px)/1.3 var(--ds-head); }
.ds-q-ex { left: 0; top: 0; background: #ffe7a8; border-bottom-right-radius: 8px; }
.ds-q-dr { right: 0; top: 0; background: #ffd2bf; border-bottom-left-radius: 8px; }
.ds-q-am { left: 0; bottom: 0; background: #c9ecdf; border-top-right-radius: 8px; }
.ds-q-an { right: 0; bottom: 0; background: #cfe0f7; border-top-left-radius: 8px; }
.ds-q-ex img, .ds-q-am img { right: -6%; }
.ds-q-dr img, .ds-q-an img { left: -6%; }
.ds-q-dr .ds-kv-q-name, .ds-q-an .ds-kv-q-name { align-self: flex-end; }
.ds-q-ex .ds-kv-q-name { color: #a86a00; }
.ds-q-dr .ds-kv-q-name { color: #c4441a; }
.ds-q-am .ds-kv-q-name { color: #1f7a5e; }
.ds-q-an .ds-kv-q-name { color: #2659a3; }
.ds-kv-axis { position: absolute; z-index: 2; padding: 5px 9px; border: 1.5px solid var(--ds-ink); border-radius: 999px; background: var(--ds-paper); font: 700 clamp(11px, 3vw, 13px)/1 var(--ds-head); white-space: nowrap; }
.ds-ax-top { left: 50%; top: -14px; transform: translateX(-50%); }
.ds-ax-bot { left: 50%; bottom: -14px; transform: translateX(-50%); }
.ds-ax-l { left: -6px; top: 50%; transform: translateY(-50%); }
.ds-ax-r { right: -6px; top: 50%; transform: translateY(-50%); }
.ds-kv-you { position: absolute; z-index: 3; left: 50%; top: 50%; display: grid; place-content: center; width: 22%; aspect-ratio: 1; border-radius: 50%; background: var(--ds-ink); color: #fff; font: 900 clamp(14px, 4.2vw, 20px)/1.2 var(--ds-head); transform: translate(-50%, -50%); box-shadow: 0 0 0 6px var(--ds-paper); }
.ds-kv-you b { color: var(--ds-cta); }
.ds-kv-body { max-width: 520px; margin: 36px auto 0; }
.ds-kv-lead { margin: 0; font: 500 16px/1.9 var(--ds-head); text-align: left; }
.ds-kv-lead strong { font-weight: 900; background: linear-gradient(transparent 62%, #ffe08a 62%); }
.ds-kv .ds-btn { margin-top: 24px; max-width: 360px; }
@media (min-width: 900px) {
  .ds-kv { display: grid; grid-template-columns: 1fr 520px; grid-template-rows: auto auto; column-gap: 64px; align-items: center; padding: 48px 40px 56px; text-align: left; }
  .ds-kv-head { grid-column: 1; grid-row: 1; align-self: end; }
  .ds-kv-map { grid-column: 2; grid-row: 1 / span 2; margin: 0; }
  .ds-kv-body { grid-column: 1; grid-row: 2; align-self: start; margin: 28px 0 0; }
  .ds-kv-title { font-size: 68px; }
  .ds-kv .ds-note { text-align: left; }
}
.ds-note { margin: 8px 0 0; font-size: 12px; color: var(--ds-muted); text-align: center; }

.ds-btn {
  display: inline-flex; align-items: center; justify-content: center; width: 100%; min-height: 56px; padding: 0 24px;
  border: 0; border-radius: 999px; font: inherit; font-size: 18px; font-weight: 900; cursor: pointer; text-decoration: none;
  background: #fff; color: var(--ds-ink); box-shadow: inset 0 0 0 2px var(--ds-ink);
}
.ds-btn-primary { background: var(--ds-ink); color: #fff; box-shadow: 0 6px 16px rgba(28, 51, 99, .3); }
.ds-btn-primary:hover { background: #15284f; }
/* 表紙の大きなボタン（AIキャリアタイプ診断の KV と同じく黄色・下に影） */
.ds-btn-pop { background: var(--ds-cta); color: var(--ds-ink); box-shadow: inset 0 0 0 2.5px var(--ds-ink), 0 5px 0 var(--ds-ink); font-family: var(--ds-head); letter-spacing: .06em; }
.ds-btn-pop::after { content: " →" / ""; white-space: pre; }
.ds-btn-pop:active { transform: translateY(3px); box-shadow: inset 0 0 0 2.5px var(--ds-ink), 0 2px 0 var(--ds-ink); }
.ds-btn:disabled { opacity: .45; cursor: default; }
.ds-btn:focus-visible, .ds-opt:focus-visible, .ds-link:focus-visible, .ds-back:focus-visible { outline: 3px solid var(--ds-orange); outline-offset: 2px; }

.ds-h2 { margin: 48px 0 16px; font: 900 24px/1.4 var(--ds-head); text-align: center; }

/* 4つのタイプ */
.ds-type-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0; padding: 0; list-style: none; }
.ds-type { overflow: hidden; border-radius: var(--ds-radius); background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.ds-type img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; object-position: bottom; }
.ds-type-driver img { background: #ffd2bf; }
.ds-type-expressive img { background: #ffe7a8; }
.ds-type-amiable img { background: #c9ecdf; }
.ds-type-analytical img { background: #cfe0f7; }
.ds-type-name { margin: 10px 12px 0; font: 900 15px/1.4 var(--ds-head); }
.ds-type-sum { margin: 2px 12px 12px; font-size: 12px; color: var(--ds-muted); line-height: 1.5; }

/* 3つの診断 */
.ds-diff-list { display: grid; gap: 8px; margin: 0; }
.ds-diff-item { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-radius: 14px; background: #fff; }
.ds-diff-item dt { font-weight: 700; }
.ds-diff-item dt a { color: inherit; }
.ds-diff-item dd { margin: 0; font-size: 13px; color: var(--ds-muted); }
.ds-diff-now { box-shadow: inset 0 0 0 2px var(--ds-yellow-2); }

.ds-faq details { margin: 0 0 8px; padding: 14px 16px; border-radius: 14px; background: #fff; }
.ds-faq summary { font-weight: 700; cursor: pointer; }
.ds-faq p { margin: 8px 0 0; font-size: 14px; }
.ds-bottom-cta { margin: 32px 0 0; }

.ds-footer { display: flex; gap: 16px; justify-content: center; padding: 24px 16px 40px; font-size: 12px; }
.ds-footer a { color: var(--ds-muted); }

/* 診断 */
.ds-app { position: fixed; inset: 0; z-index: 50; overflow-y: auto; background: linear-gradient(180deg, #fff8dc, var(--ds-bg)); }
.ds-app[hidden] { display: none; }
.ds-app-head { display: flex; justify-content: space-between; align-items: center; max-width: 560px; margin: 0 auto; padding: 12px 16px; }
.ds-app-title { margin: 0; font-weight: 700; font-size: 14px; }
.ds-app-close { width: 44px; height: 44px; border: 0; background: transparent; font-size: 24px; color: var(--ds-ink); cursor: pointer; }
.ds-app-body { max-width: 560px; margin: 0 auto; padding: 0 16px 40px; display: grid; gap: 16px; }
.ds-loading, .ds-error { text-align: center; padding: 40px 0; }
.ds-progress { display: flex; align-items: center; gap: 12px; }
.ds-progress-bar { flex: 1; height: 8px; overflow: hidden; border-radius: 999px; background: rgba(255,255,255,.8); box-shadow: inset 0 0 0 1px rgba(0,0,0,.05); }
.ds-progress-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--ds-yellow-2), var(--ds-orange)); transition: width .3s; }
.ds-progress-num { width: 52px; text-align: right; font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.ds-q { display: grid; gap: 12px; margin: 0; padding: 20px; border: 0; border-radius: var(--ds-radius); background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.ds-q-text { margin: 0; padding: 0; font-size: 22px; font-weight: 900; line-height: 1.4; outline: none; }
.ds-q-no { display: block; font-size: 14px; color: #e08a00; }
.ds-opt { min-height: 60px; padding: 14px 18px; border: 2px solid #e6e8ee; border-radius: 16px; background: #fff; font: inherit; font-size: 16px; text-align: left; color: var(--ds-ink); cursor: pointer; }
.ds-opt:hover { border-color: var(--ds-yellow-2); }
.ds-opt.is-on { border-color: var(--ds-yellow-2); background: #fff8dc; font-weight: 700; }
.ds-back, .ds-link { justify-self: start; border: 0; background: none; padding: 8px 0; font: inherit; font-size: 14px; color: var(--ds-muted); cursor: pointer; }
.ds-link { color: var(--ds-ink); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.ds-row { display: flex; justify-content: space-between; }
.ds-note-hint { margin: 0; font-size: 12px; color: var(--ds-muted); }
.ds-note-input { width: 100%; padding: 12px; border: 2px solid var(--ds-ink); border-radius: 12px; font: inherit; font-size: 16px; resize: vertical; }
.ds-note-count { margin: 0; text-align: right; font-size: 12px; color: var(--ds-muted); }
.ds-reading { display: grid; justify-items: center; gap: 16px; padding: 80px 0; font-weight: 700; }
.ds-compass { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 80px; height: 80px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(255,210,63,.6); }
.ds-needle { width: 6px; height: 56px; border-radius: 3px; background: linear-gradient(180deg, var(--ds-red) 50%, var(--ds-ink) 50%); animation: ds-spin 1.2s ease-in-out infinite; }
@keyframes ds-spin { from { transform: rotate(0); } to { transform: rotate(360deg); } }
.ds-result { overflow: hidden; border-radius: var(--ds-radius); background: #fff; box-shadow: 0 6px 20px rgba(0,0,0,.08); text-align: center; padding-bottom: 20px; }
.ds-result img { width: 100%; height: 220px; object-fit: contain; object-position: bottom; }
.ds-result.ds-type-driver img { background: #ffd2bf; }
.ds-result.ds-type-expressive img { background: #ffe7a8; }
.ds-result.ds-type-amiable img { background: #c9ecdf; }
.ds-result.ds-type-analytical img { background: #cfe0f7; }
.ds-result-lead { margin: 16px 0 0; font-size: 12px; font-weight: 700; color: var(--ds-muted); }
.ds-result-name { margin: 0; font-size: 30px; font-weight: 900; outline: none; }
.ds-result-sum { margin: 4px 20px 0; }
.ds-card { padding: 16px; border-radius: 16px; background: #fff; }
.ds-card ul { margin: 0; padding-left: 1.2em; }
.ds-card-title { margin: 0 0 4px; font-size: 12px; font-weight: 700; color: #b45f00; }
.ds-card-ai { background: var(--ds-ink); color: #fff; }
.ds-card-ai .ds-card-title { color: var(--ds-yellow-2); }
.ds-card-ai p { margin: 0; }
.ds-next { display: grid; gap: 2px; padding: 16px; border: 2px solid var(--ds-yellow-2); border-radius: 16px; background: #fff; color: var(--ds-ink); text-decoration: none; }
.ds-next-label { font-size: 11px; font-weight: 700; color: #b45f00; }
.ds-next-title { font-weight: 900; }
.ds-next-body { font-size: 12px; color: var(--ds-muted); }
.ds-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
  .ds-needle { animation: none; }
  .ds-progress-fill { transition: none; }
}
@media (min-width: 768px) {
  .ds-kv { padding-top: 40px; }
  .ds-type-grid { grid-template-columns: repeat(4, 1fr); }
}
