/* キャリアAI ミライ 共通スタイル（白×ネイビー×シアン／真っ赤・真っ黒・蛍光色は使わない） */
:root {
  --navy: #204fad;
  --navy-deep: #1b3f8a;
  --cyan: #07d1f2;
  --cyan-soft: #e3f8fc;
  --sky: #eef5ff;
  --ink: #26324a;
  --muted: #5d6880;
  --line: #dde4f0;
  --card: #ffffff;
  --bg: #f6f9fd;
  --warn-bg: #fff1d6;
  --warn-border: #d6932f;
  --warn-text: #8a5817;
  --radius: 16px;
  --shadow: 0 4px 18px rgba(32, 79, 173, 0.08);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
  font-size: 16px; line-height: 1.75; letter-spacing: 0.02em;
}
a { color: var(--navy); }
img { max-width: 100%; height: auto; }
.wrap { max-width: 640px; margin: 0 auto; padding: 0 16px 48px; }
header.site {
  background: var(--navy); border-bottom: 3px solid var(--cyan);
  padding: 10px 16px; display: flex; align-items: center; gap: 10px;
}
header.site img.logo { height: 28px; width: auto; display: block; }
header.site .tag { font-size: 12px; color: #dfe8fb; }
h1 { font-size: 22px; line-height: 1.5; color: var(--navy); margin: 24px 0 8px; }
h2 { font-size: 19px; line-height: 1.5; color: var(--navy); margin: 32px 0 10px; padding-left: 10px; border-left: 4px solid var(--cyan); }
h3 { font-size: 16px; color: var(--navy-deep); margin: 20px 0 6px; }
p { margin: 8px 0; }
.lead { color: var(--muted); }
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; margin: 14px 0; }
.card.soft { background: var(--sky); box-shadow: none; }
.note { font-size: 13px; color: var(--muted); }
.pill { display: inline-block; font-size: 12px; padding: 2px 10px; border-radius: 999px; background: var(--cyan-soft); color: var(--navy); font-weight: 600; }
.hl { color: var(--navy); font-weight: 700; background: linear-gradient(transparent 62%, var(--cyan-soft) 62%); }

/* ボタン */
.btn {
  display: block; width: 100%; text-align: center; text-decoration: none; cursor: pointer;
  font: inherit; font-weight: 700; font-size: 16px; padding: 14px 16px; border-radius: 999px;
  border: 2px solid var(--navy); background: var(--navy); color: #fff; margin: 10px 0;
}
.btn:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; }
.btn.secondary { background: #fff; color: var(--navy); }
.btn.line { background: #06c755; border-color: #06c755; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--muted); font-weight: 500; text-decoration: underline; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }

/* ミライの吹き出し */
.mirai { display: flex; gap: 12px; align-items: flex-start; margin: 16px 0; }
.mirai img { width: 56px; height: 56px; border-radius: 50%; flex: 0 0 56px; border: 2px solid #fff; box-shadow: var(--shadow); }
.mirai .bubble { background: #fff; border: 1px solid var(--line); border-radius: 4px 16px 16px 16px; padding: 12px 14px; box-shadow: var(--shadow); }

/* 診断 */
.progress { height: 8px; background: var(--line); border-radius: 999px; overflow: hidden; margin: 18px 0 6px; }
.progress > span { display: block; height: 100%; background: linear-gradient(90deg, var(--navy), var(--cyan)); width: 0; transition: width .25s; }
.qcount { font-size: 13px; color: var(--muted); }
.question { font-size: 19px; font-weight: 700; color: var(--ink); margin: 10px 0 14px; line-height: 1.6; }
.options { display: grid; gap: 10px; }
.option {
  text-align: left; font: inherit; font-size: 16px; padding: 14px 16px; border-radius: 14px; cursor: pointer;
  background: #fff; border: 2px solid var(--line); color: var(--ink); line-height: 1.55;
}
.option:hover { border-color: var(--cyan); }
.option[aria-pressed="true"] { border-color: var(--navy); background: var(--sky); font-weight: 700; }
.option:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; }
.navrow { display: flex; gap: 10px; margin-top: 18px; }
.navrow .btn { margin: 0; }

/* 結果 */
.result-head { text-align: center; padding: 22px 18px; }
.result-head .label { font-size: 13px; color: var(--muted); }
.result-head .stepname { font-size: 26px; font-weight: 800; color: var(--navy); margin: 4px 0; }
.action { display: flex; gap: 12px; padding: 12px 0; border-top: 1px dashed var(--line); }
.action:first-of-type { border-top: 0; }
.action .num { flex: 0 0 30px; height: 30px; border-radius: 50%; background: var(--cyan); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.action .t { font-weight: 700; color: var(--navy-deep); }
.care { background: var(--warn-bg); border: 1px solid var(--warn-border); color: var(--warn-text); border-radius: var(--radius); padding: 14px 16px; margin: 14px 0; }
.care strong { display: block; margin-bottom: 4px; }
.care a { color: var(--warn-text); font-weight: 700; }
ul.tips { padding-left: 1.2em; margin: 6px 0; }
ul.tips li { margin: 6px 0; }
.res-list a.res { display: flex; gap: 12px; align-items: center; text-decoration: none; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; margin: 8px 0; }
.res-list a.res .ico { flex: 0 0 40px; height: 40px; border-radius: 12px; background: var(--cyan-soft); display: flex; align-items: center; justify-content: center; font-size: 20px; }
.res-list a.res b { color: var(--navy); }
.hidden { display: none !important; }

/* 資料ページ */
table.t { width: 100%; border-collapse: collapse; font-size: 14px; margin: 10px 0; }
table.t th, table.t td { border: 1px solid var(--line); padding: 8px; vertical-align: top; text-align: left; }
table.t th { background: var(--sky); color: var(--navy-deep); width: 30%; }
.example { background: var(--sky); border-radius: 12px; padding: 12px 14px; margin: 8px 0; font-size: 15px; }
.example .lbl { font-size: 12px; font-weight: 700; color: var(--navy); display: block; }
.ng { background: var(--warn-bg); border-radius: 12px; padding: 12px 14px; margin: 8px 0; font-size: 15px; color: var(--warn-text); }
.ng .lbl { font-size: 12px; font-weight: 700; display: block; }
.check li { list-style: none; margin: 6px 0; }
.check { padding-left: 0; }
.check li::before { content: "□ "; color: var(--navy); }
textarea.fill, input.fill {
  width: 100%; font: inherit; font-size: 16px; border: 1px solid var(--line); border-radius: 10px; padding: 10px; background: #fff; color: var(--ink);
}
textarea.fill { min-height: 84px; resize: vertical; }
.toc a { display: inline-block; margin: 4px 6px 4px 0; font-size: 14px; }
footer.site { text-align: center; font-size: 12px; color: var(--muted); padding: 24px 16px 40px; }
footer.site a { color: var(--muted); }
.print-only { display: none; }

@media print {
  body { background: #fff; font-size: 11pt; }
  header.site, footer.site, .no-print, .btn { display: none !important; }
  .print-only { display: block; }
  .card { box-shadow: none; border: 1px solid var(--line); break-inside: avoid; }
  h2 { break-after: avoid; }
  textarea.fill { border: 1px solid #aab; min-height: 70pt; }
  .wrap { max-width: none; padding: 0; }
  a { color: inherit; text-decoration: none; }
}
