/* 無料サイト診断（Web制作のページの #check）。見出しは service.css の svc-sec を使う */
.chk { max-width: 760px; padding: 36px 40px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); }

/* ---------- 入力 ---------- */
.chk-form__label { display: block; margin-bottom: 10px; font-size: 14px; font-weight: 700; }
.chk-form__url {
  width: 100%; padding: 14px 16px;
  font: inherit; font-size: 16px; color: var(--text);
  background: rgba(5,9,17,0.6); border: 1px solid var(--border-2); border-radius: var(--radius);
  transition: border-color 0.2s;
}
.chk-form__url::placeholder { color: var(--text-3); }
.chk-form__url:focus { outline: none; border-color: var(--acc); box-shadow: 0 0 0 3px var(--acc-glow-2); }
.chk-form__url[aria-invalid="true"] { border-color: #FF4E42; }
.chk-form__device { margin: 28px 0 0; padding: 0; border: 0; }
.chk-form__device label { display: inline-block; margin-right: 10px; cursor: pointer; }
.chk-form__device input { position: absolute; opacity: 0; pointer-events: none; }
.chk-form__device span {
  display: inline-block; min-width: 120px; padding: 11px 20px;
  font-size: 14px; font-weight: 700; text-align: center; color: var(--text-2);
  border: 1px solid var(--border-2); border-radius: 999px; transition: all 0.2s;
}
.chk-form__device input:checked + span { color: #fff; border-color: var(--acc); background: var(--acc-glow); }
.chk-form__device input:focus-visible + span { box-shadow: 0 0 0 3px var(--acc-glow); }
.chk-form__error { margin-top: 20px; font-size: 14px; line-height: 1.7; color: #FF7A70; }
.chk-form__submit { margin-top: 32px; min-width: 280px; }

/* ---------- 診断中 ---------- */
.chk [hidden] { display: none !important; } /* 下の display の指定より、隠す方を優先する */
/* 入力のときと同じ高さを保つ（min-height は JS が入力欄の高さを入れる） */
.chk-run { display: flex; flex-direction: column; justify-content: center; }
.chk-run__title { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-size: 16px; font-weight: 700; }
.chk-run__target, .chk-result__target { font-size: 13px; font-weight: 400; color: var(--text-2); word-break: break-all; }
.chk-run__spin { width: 16px; height: 16px; border: 2px solid var(--border-2); border-top-color: var(--acc); border-radius: 50%; animation: chk-spin 0.8s linear infinite; }
@keyframes chk-spin { to { transform: rotate(360deg); } }
.chk-run__pct { margin-top: 24px; font-family: var(--font-display); font-size: 56px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; color: var(--text); }
.chk-run__pct small { margin-left: 4px; font-size: 22px; color: var(--acc-light); }
.chk-run__bar { position: relative; height: 8px; margin-top: 16px; border-radius: 999px; background: rgba(255,255,255,0.06); overflow: hidden; }
.chk-run__bar span {
  position: absolute; inset: 0 auto 0 0; width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--acc));
  box-shadow: 0 0 12px var(--acc-glow);
  transition: width 0.4s linear;
}
/* 進んでいる感じを出す光の筋 */
.chk-run__bar span::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.45), transparent);
  transform: translateX(-100%); animation: chk-shine 1.4s ease-in-out infinite;
}
@keyframes chk-shine { to { transform: translateX(100%); } }
/* 「確認していること」は3行ぶんの窓。いま確認している行が真ん中に来るように、一覧ごと上へ流す */
.chk-run__window {
  --row: 36px;
  height: calc(var(--row) * 3); margin-top: 24px; overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 30%, #000 70%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0, #000 30%, #000 70%, transparent 100%);
}
.chk-run__steps { margin: 0; padding: 0; list-style: none; transition: transform 0.6s var(--ease-out-expo); }
.chk-run__steps li {
  position: relative; height: var(--row); padding-left: 30px;
  font-size: 14px; line-height: var(--row); color: var(--text-3);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: color 0.3s;
}
.chk-run__steps li::before {
  content: ""; position: absolute; left: 4px; top: 50%; width: 12px; height: 12px; margin-top: -7px;
  border: 1px solid var(--text-3); border-radius: 50%;
}
.chk-run__steps li.is-now { color: var(--text); font-weight: 700; }
.chk-run__steps li.is-now::before { border-color: var(--acc); border-top-color: transparent; animation: chk-spin 0.8s linear infinite; }
.chk-run__steps li.is-done { color: var(--text-2); }
.chk-run__steps li.is-done::before { content: "✓"; border: 0; width: auto; height: auto; top: 0; margin-top: 0; font-size: 13px; line-height: var(--row); color: var(--blue); }
.chk-form__turnstile:empty { display: none; }
.chk-form__turnstile.is-shown { margin-top: 24px; }

/* ---------- 結果 ---------- */
.chk-result__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; font-size: 16px; font-weight: 700; }
.chk-result__scores { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-top: 28px; padding: 0; list-style: none; }
.chk-result__scores li { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; --c: var(--text-3); }
.chk-result__scores li.is-good { --c: #0CCE6B; }
.chk-result__scores li.is-mid { --c: #FFA400; }
.chk-result__scores li.is-bad { --c: #FF4E42; }
.chk-gauge { width: 100%; max-width: 112px; transform: rotate(-90deg); }
.chk-gauge circle { fill: none; stroke-width: 8; }
.chk-gauge__bg { stroke: rgba(255,255,255,0.06); }
.chk-gauge__fg { stroke: var(--c); stroke-linecap: round; stroke-dasharray: 326.73; stroke-dashoffset: 326.73; transition: stroke-dashoffset 1.2s var(--ease-out-expo); }
.chk-result__num {
  position: absolute; top: 0; left: 50%; width: 112px; max-width: 100%; aspect-ratio: 1; transform: translateX(-50%);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 28px; font-weight: 700; color: var(--c);
}
.chk-result__name { margin-top: 12px; font-size: 14px; font-weight: 700; }
.chk-result__en { margin-top: 2px; font-family: var(--font-display); font-size: 10px; letter-spacing: 0.08em; color: var(--text-3); }
.chk-result__source { margin-top: 20px; font-size: 11px; line-height: 1.6; color: var(--text-3); text-align: right; }
/* 5つ目（セキュリティ）は HINOTORI WORKS 独自の点検なので、点線で区切って Google の4つと分ける */
.chk-result__scores li.is-own::after { content: ""; position: absolute; left: -8px; top: 0; bottom: 0; border-left: 1px dashed var(--border-2); }
.chk-result__en { line-height: 1.4; }
.chk-result__desc { margin-top: 8px; font-size: 11px; line-height: 1.6; color: var(--text-2); white-space: nowrap; }
/* セキュリティで引いた理由 */
.chk-result__issues { margin-top: 24px; padding: 14px 18px; list-style: none; border: 1px dashed var(--border-2); border-radius: var(--radius); }
.chk-result__issues::before { content: "セキュリティで気になった点"; display: block; margin-bottom: 6px; font-size: 12px; font-weight: 700; color: var(--text-2); }
.chk-result__issues li { position: relative; padding-left: 16px; font-size: 13px; line-height: 1.8; color: var(--text-2); }
.chk-result__issues li::before { content: "・"; position: absolute; left: 0; }
.chk-result__summary { margin-top: 16px; padding: 18px 20px; font-size: 15px; line-height: 1.9; border-left: 2px solid var(--acc); background: var(--acc-glow-2); }
.chk-result__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 32px; }

@media (max-width: 768px) {
  .svc-sec .section-desc br.pc { display: none; }
  .chk { padding: 24px 20px; }
  .chk-form__device label { margin-right: 6px; }
  .chk-form__device span { min-width: 0; padding: 10px 18px; }
  .chk-form__submit, .chk-result__actions .btn { width: 100%; min-width: 0; }
  .chk-result__scores { grid-template-columns: repeat(2, 1fr); gap: 24px 12px; }
  .chk-result__scores li.is-own { grid-column: 1 / -1; padding-top: 20px; }
  .chk-result__scores li.is-own::after { left: 0; right: 0; bottom: auto; border-left: 0; border-top: 1px dashed var(--border-2); }
  .chk-result__scores li.is-own .chk-result__num { top: 20px; }
  .chk-result__source { text-align: left; }
  .chk-result__num { font-size: 24px; }
  .chk-run__pct { font-size: 48px; }
  .chk-result__summary { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .chk-run__spin, .chk-run__steps li.is-now::before, .chk-run__bar span::after { animation: none; }
}
