/* ============================================================
   AI・IT健康チェック（/check/）専用スタイル
   色・フォント・ボタンは ../assets/lp.css のトークンと部品を使う
   ============================================================ */
[hidden] { display: none !important; }
.ck-body main { min-height: 70vh; }
.ck-head-note { font-size: 15px; font-weight: 700; color: var(--muted); letter-spacing: .06em; }
.ck-dev { background: var(--orange); color: #201a00; font-size: 14.5px; font-weight: 700; text-align: center; padding: 8px 16px; line-height: 1.6; }
.ck-noscript { max-width: 760px; margin: 40px auto; padding: 0 20px; }

.ck { max-width: 760px; margin: 0 auto; padding: clamp(32px, 6vw, 64px) 20px clamp(64px, 9vw, 110px); }
.ck-wide { max-width: 940px; }
.ck h1 { font-size: clamp(34px, 6vw, 52px); line-height: 1.4; margin-bottom: 20px; }
.ck-h2, .ck-q { font-size: clamp(24px, 3.6vw, 32px); font-weight: 900; line-height: 1.55; letter-spacing: .03em; outline: none; }
.ck-h2 { margin-bottom: 14px; }
.ck-lead { font-size: clamp(17.5px, 1.9vw, 19.5px); color: var(--muted); margin-bottom: 28px; }
.ck-lead strong { color: var(--ink); }
button { font-family: inherit; cursor: pointer; }
.ck .btn { border: 0; }
.ck .btn-ghost { border: 1.5px solid rgba(0,116,93,.4); }

/* ---- はじめに ---- */
.ck-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.ck-badge {
  font-size: 14.5px; font-weight: 700; color: var(--teal-deep); line-height: 1.6;
  border: 1px solid rgba(0,116,93,.35); border-radius: 999px; padding: 4px 16px; background: rgba(255,255,255,.7);
}
.ck-gets { list-style: none; display: grid; gap: 10px; margin-bottom: 26px; }
.ck-gets li {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px 22px;
}
.ck-gets .n {
  flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%; margin-top: 2px;
  background: rgba(0,160,128,.12); color: var(--teal-deep);
  font-family: var(--serif); font-size: 18px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.ck-gets div { font-size: 16px; color: var(--muted); line-height: 1.7; }
.ck-gets b { display: block; font-size: 18px; color: var(--ink); font-weight: 700; }
.ck-stance { font-family: var(--serif); font-size: 17px; color: var(--teal-deep); margin-bottom: 30px; line-height: 1.8; }

/* ---- 設問 ---- */
.ck-progress { margin-bottom: clamp(24px, 4vw, 36px); }
.ck-count { font-family: var(--serif); font-size: 17px; font-weight: 600; color: var(--teal-deep); letter-spacing: .08em; margin-bottom: 8px; }
.ck-bar { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.ck-bar span { display: block; height: 100%; width: 0; background: var(--teal); border-radius: 3px; transition: width .35s ease; }
.ck-q { margin-bottom: 10px; }
.ck-hint { font-size: 16px; color: var(--muted); margin-bottom: 6px; line-height: 1.75; }
.ck-opts { display: grid; gap: 10px; margin-top: 22px; }
@media (min-width: 720px) { .ck-opts.is-2col { grid-template-columns: 1fr 1fr; } }
.ck-opt {
  display: flex; gap: 14px; align-items: center; text-align: left; width: 100%;
  background: var(--card); color: var(--ink); border: 1.5px solid var(--line); border-radius: 14px;
  padding: 17px 20px; font-size: 18px; font-weight: 500; line-height: 1.6; letter-spacing: .02em;
  transition: border-color .15s, background .15s, transform .15s;
}
.ck-opt .mk {
  flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid #B9C7C0; background: #fff; transition: border-color .15s, box-shadow .15s;
}
.ck-opt:hover { border-color: var(--teal); transform: translateY(-1px); }
.ck-opt:focus-visible, .ck-back:focus-visible, .ck-copy:focus-visible, .ck-link:focus-visible { outline: 3px solid rgba(0,160,128,.45); outline-offset: 2px; }
.ck-opt.is-on { border-color: var(--teal-deep); background: rgba(0,160,128,.08); }
.ck-opt.is-on .mk { border-color: var(--teal-deep); box-shadow: inset 0 0 0 4px #fff, inset 0 0 0 12px var(--teal-deep); }
.ck-back { background: none; border: 0; color: var(--muted); font-size: 16px; margin-top: 26px; padding: 8px 4px; text-decoration: underline; text-underline-offset: 4px; }
.ck-back:hover { color: var(--teal-deep); }

/* ---- 回答完了 ---- */
.ck-done-kicker { font-family: var(--serif); color: var(--teal-deep); font-size: 17px; margin-bottom: 6px; }

/* ---- フォーム ---- */
.ck-form { display: grid; gap: 18px; }
.ck-f { display: block; }
.ck-f2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 600px) { .ck-f2 { grid-template-columns: 1fr; } }
.ck-f .lb { display: flex; align-items: center; gap: 10px; font-size: 16.5px; font-weight: 700; margin-bottom: 6px; }
.ck-f .lb i { font-style: normal; font-size: 12.5px; font-weight: 700; color: #fff; background: var(--teal-deep); border-radius: 4px; padding: 1px 8px; line-height: 1.7; }
.ck-f .lb i.opt { color: var(--muted); background: var(--line); }
.ck-f input, .ck-f select, .ck-f textarea {
  width: 100%; font: inherit; font-size: 18px; color: var(--ink); background: #fff;
  border: 1.5px solid #C9D5CF; border-radius: 10px; padding: 13px 16px; line-height: 1.6;
}
.ck-f textarea { resize: vertical; }
.ck-f input:focus, .ck-f select:focus, .ck-f textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(0,160,128,.18); }
.ck-f ::placeholder { color: #A3B1AB; }
.ck-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ck-err { color: #B3401A; font-weight: 700; font-size: 16px; }
.ck-err a { color: inherit; word-break: break-all; }
.ck-form button:disabled { opacity: .6; cursor: default; }
.ck-consent { font-size: 14.5px; color: var(--muted); line-height: 1.8; }
.ck-consent a { color: var(--teal-deep); text-underline-offset: 3px; }

/* ---- 結果 ---- */
.ck-r-head { text-align: center; margin-bottom: clamp(24px, 4vw, 40px); }
.ck-r-head .to { display: inline-block; font-weight: 700; border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 4px 22px; margin-bottom: 12px; }
.ck-r-head h2 { font-size: clamp(26px, 4.4vw, 38px); font-weight: 900; line-height: 1.5; outline: none; }
.ck-r-head .date { font-size: 15px; color: var(--muted); }
.ck-r-head .mailnote { font-size: 15.5px; color: var(--muted); margin-top: 10px; }

.ck-finding {
  background: var(--card); border: 2px solid var(--teal); border-radius: 20px;
  padding: clamp(24px, 4.5vw, 44px); box-shadow: 0 16px 38px rgba(0,116,93,.12);
}
.ck-finding .kick { font-size: 14px; font-weight: 700; letter-spacing: .2em; color: var(--teal-deep); margin-bottom: 4px; }
.ck-finding h3 { font-family: var(--serif); font-size: clamp(28px, 4.8vw, 42px); font-weight: 700; line-height: 1.45; color: var(--ink-green); }
.ck-finding .sub { font-weight: 700; color: var(--teal-deep); margin-bottom: 14px; }
.ck-finding .lead { margin-bottom: 20px; }
.ck-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.ck-tags li { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 9px 16px; font-weight: 700; font-size: 17px; line-height: 1.5; }
.ck-tags li span { display: block; font-size: 13px; font-weight: 700; color: var(--muted); letter-spacing: .04em; }
.ck-finding .second { font-size: 16.5px; background: rgba(240,192,0,.14); border-radius: 12px; padding: 12px 18px; margin-bottom: 18px; line-height: 1.8; }
.ck-stagewrap { margin: 6px 0 26px; }
.ck-stagewrap .cap { font-size: 14.5px; font-weight: 700; color: var(--muted); margin-bottom: 26px; }
.ck-stages { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.ck-stages li {
  position: relative; border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 10px;
  text-align: center; line-height: 1.5; background: var(--paper); color: var(--muted);
}
.ck-stages li b { display: block; font-size: 16.5px; }
.ck-stages li span { font-size: 13.5px; }
.ck-stages li.is-past { background: rgba(0,160,128,.07); border-color: rgba(0,116,93,.2); }
.ck-stages li.is-now { background: var(--teal-deep); border-color: var(--teal-deep); color: #fff; }
.ck-stages li em {
  position: absolute; top: -22px; left: 50%; transform: translateX(-50%); white-space: nowrap;
  font-style: normal; font-size: 13px; font-weight: 700; color: var(--teal-deep);
}
@media (max-width: 640px) {
  .ck-stagewrap .cap { margin-bottom: 12px; }
  .ck-stages { grid-template-columns: 1fr; }
  .ck-stages li { display: flex; align-items: baseline; gap: 10px; text-align: left; padding: 10px 16px; }
  .ck-stages li b { white-space: nowrap; }
  .ck-stages li em { position: static; transform: none; order: 3; margin-left: auto; color: var(--yellow); }
  .ck-tags { display: grid; }
}
.ck-finding .btn-primary { width: 100%; font-size: 18px; padding: 18px 24px; text-align: center; line-height: 1.5; }

.ck-sec { margin-top: clamp(36px, 6vw, 56px); }
.ck-h3 { font-size: clamp(22px, 3vw, 27px); font-weight: 900; line-height: 1.5; margin-bottom: 16px; padding-left: 16px; border-left: 5px solid var(--teal); }
.ck-sec-lead { font-size: 16.5px; color: var(--muted); margin-bottom: 14px; }

.ck-evi { list-style: none; display: grid; gap: 10px; }
.ck-evi li { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px 22px; }
.ck-evi .tag { display: inline-block; font-size: 13px; font-weight: 700; color: var(--teal-deep); background: rgba(0,160,128,.1); border-radius: 999px; padding: 2px 14px; margin-bottom: 6px; }
.ck-evi .q { font-size: 14.5px; color: var(--muted); line-height: 1.7; }
.ck-evi .a { font-weight: 700; line-height: 1.7; margin: 2px 0 4px; }
.ck-evi .why { font-size: 15px; color: var(--muted); line-height: 1.7; }

.ck-steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; counter-reset: step; }
@media (max-width: 820px) { .ck-steps { grid-template-columns: 1fr; } }
.ck-steps li { position: relative; overflow: hidden; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 24px 22px; counter-increment: step; }
.ck-steps li::after { content: counter(step); position: absolute; top: 10px; right: 16px; font-family: var(--serif); font-size: 46px; font-weight: 600; line-height: 1; color: rgba(0,160,128,.16); }
.ck-steps .when { display: inline-block; font-size: 13.5px; font-weight: 700; color: var(--teal-deep); background: rgba(0,160,128,.1); border-radius: 999px; padding: 3px 14px; margin-bottom: 10px; }
.ck-steps h4 { font-size: 19px; font-weight: 900; line-height: 1.55; margin-bottom: 8px; }
.ck-steps p { font-size: 16.5px; color: var(--muted); line-height: 1.8; }

.ck-notes { display: grid; gap: 10px; }
.ck-note { background: linear-gradient(120deg, rgba(0,160,128,.07), rgba(166,200,30,.07)); border: 1px solid rgba(0,116,93,.2); border-radius: 14px; padding: 18px 22px; }
.ck-note h4 { font-size: 17.5px; font-weight: 900; line-height: 1.6; margin-bottom: 4px; }
.ck-note p { font-size: 16.5px; line-height: 1.85; }

.ck-prompt { position: relative; background: var(--ink-green); border-radius: 14px; padding: 22px 22px 68px; }
.ck-prompt pre { font-family: var(--gothic); font-size: 16px; line-height: 1.85; color: #F2F6F3; white-space: pre-wrap; word-break: break-word; }
.ck-copy { position: absolute; right: 16px; bottom: 16px; background: var(--yellow); color: #201a00; border: 0; border-radius: 999px; font-size: 15.5px; font-weight: 700; padding: 9px 24px; }
.ck-copy:hover { background: #FFD224; }
.ck-caution { font-size: 14.5px; color: var(--muted); margin-top: 10px; line-height: 1.8; }

.ck-final {
  margin-top: clamp(40px, 7vw, 64px); background: var(--teal-deep); color: #fff; border-radius: 20px;
  padding: clamp(28px, 5vw, 52px); text-align: center; position: relative; overflow: hidden;
}
.ck-final::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 55% 70% at 85% 10%, rgba(166,200,30,.26), transparent 60%); }
.ck-final > * { position: relative; }
.ck-final h3 { font-family: var(--serif); font-size: clamp(22px, 3.4vw, 30px); line-height: 1.7; margin-bottom: 14px; }
.ck-final p { color: rgba(255,255,255,.9); font-size: 16.5px; max-width: 36em; margin: 0 auto 10px; text-align: left; }
.ck-final .btn-cta { margin: 16px 0 6px; font-size: 18.5px; padding: 20px 44px; }
.ck-final .line { font-size: 15px; text-align: center; margin-top: 12px; color: rgba(255,255,255,.8); }

.ck-r-foot { margin-top: 28px; font-size: 14.5px; color: var(--muted); line-height: 1.8; }
.ck-r-foot .acts { display: flex; flex-wrap: wrap; gap: 6px 24px; margin-top: 10px; }
.ck-link { background: none; border: 0; padding: 6px 0; font-size: 15.5px; color: var(--teal-deep); font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }

/* ---- 無料相談モーダル ---- */
.ck-modal {
  border: 0; border-radius: 20px; padding: clamp(24px, 4vw, 40px); margin: auto;
  width: min(560px, calc(100vw - 28px)); max-height: calc(100vh - 28px); max-height: calc(100dvh - 28px); overflow: auto;
  color: var(--ink); background: var(--paper); box-shadow: 0 30px 80px rgba(10,63,53,.35);
}
.ck-modal::backdrop { background: rgba(10,63,53,.55); backdrop-filter: blur(3px); }
.ck-modal h2 { font-size: 24px; font-weight: 900; line-height: 1.5; margin-bottom: 8px; padding-right: 36px; }
.ck-modal-lead { font-size: 16px; color: var(--muted); margin-bottom: 20px; line-height: 1.8; }
.ck-modal-x { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--line); color: var(--ink); font-size: 22px; line-height: 1; }
/* <dialog> が使えない古いブラウザ用（check.js の openDialog） */
.ck-modal.is-fallback[open] { display: block; position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 200; box-shadow: 0 0 0 100vmax rgba(10,63,53,.55), 0 30px 80px rgba(10,63,53,.35); }
.ck-who { display: grid; grid-template-columns: auto 1fr; gap: 4px 18px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; font-size: 16px; line-height: 1.7; }
.ck-who dt { color: var(--muted); font-size: 14.5px; }
.ck-who dd { font-weight: 700; word-break: break-all; }
#consultInputs { display: grid; gap: 18px; }
.ck-modal-btn { width: 100%; border: 0; font-size: 18px; padding: 18px 24px; }
.ck-modal .btn-ghost { border: 1.5px solid rgba(0,116,93,.4); }

/* ---- 印刷（PDF保存） ---- */
@media print {
  body::after, .brand-strip, header, footer, .ck-dev, .ck-finding .btn, .ck-copy, .ck-r-foot .acts, .ck-final .btn, .ck-final .line, .ck-modal { display: none !important; }
  body { background: #fff; font-size: 12pt; }
  .ck { padding: 0; max-width: none; }
  .ck-finding { box-shadow: none; }
  .ck-finding, .ck-evi li, .ck-steps li, .ck-note, .ck-prompt, .ck-final { break-inside: avoid; }
  .ck-steps { grid-template-columns: repeat(3, 1fr); }
  .ck-prompt { background: #fff; border: 1px solid #999; padding-bottom: 22px; }
  .ck-prompt pre { color: #000; }
  .ck-final { background: #fff; color: #000; border: 1px solid #999; }
  .ck-final p { color: #000; }
}
