:root {
  --c: #1f4fd8;
  --c2: #0e2a6b;
  --text: #1d2125;
  --muted: #5f6b77;
  --line: #e3e6ea;
  --bg: #ffffff;
  --soft: #f4f6fa;
  font-family: system-ui, -apple-system, "Hiragino Sans", "Yu Gothic UI", "Meiryo", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--text); background: var(--bg); line-height: 1.75; }
a { color: var(--c); }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
.top { border-bottom: 1px solid var(--line); background: #fff; position: sticky; top: 0; z-index: 10; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.logo { font-weight: 800; font-size: 20px; letter-spacing: .04em; color: var(--c2); text-decoration: none; }
.logo small { font-weight: 500; font-size: 12px; color: var(--muted); margin-left: 8px; letter-spacing: 0; }
.nav a { margin-left: 18px; text-decoration: none; color: var(--text); font-size: 14px; }
.nav a.cta { background: var(--c); color: #fff; padding: 8px 14px; border-radius: 8px; }
.hero { background: linear-gradient(160deg, #eef3ff 0%, #ffffff 60%); padding: 72px 0 56px; }
.hero h1 { font-size: clamp(26px, 4.2vw, 42px); line-height: 1.35; margin: 0 0 16px; color: var(--c2); }
.hero p.lead { font-size: 17px; color: #334; max-width: 720px; margin: 0 0 28px; }
.btns { display: flex; gap: 12px; flex-wrap: wrap; }
.btn { display: inline-block; padding: 12px 22px; border-radius: 10px; font-weight: 700; text-decoration: none; border: 2px solid var(--c); }
.btn.primary { background: var(--c); color: #fff; }
.btn.ghost { background: #fff; color: var(--c); }
section { padding: 56px 0; }
section.soft { background: var(--soft); }
h2 { font-size: clamp(21px, 3vw, 28px); margin: 0 0 24px; color: var(--c2); }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
.card h3 { margin: 0 0 8px; font-size: 17px; }
.card p { margin: 0; color: #3a434c; font-size: 15px; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.steps li { counter-increment: s; padding-left: 44px; position: relative; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 2px; width: 30px; height: 30px; border-radius: 50%; background: var(--c); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 14px; }
.note { font-size: 13px; color: var(--muted); }
footer.bottom { border-top: 1px solid var(--line); padding: 28px 0; font-size: 13px; color: var(--muted); }
/* 無料診断 */
.diag-form { display: flex; gap: 10px; flex-wrap: wrap; margin: 12px 0 8px; }
.diag-form input[type=url] { flex: 1 1 360px; font: inherit; font-size: 16px; padding: 12px 14px; border: 1px solid #c9d0d8; border-radius: 10px; }
.diag-form button { font: inherit; font-weight: 700; font-size: 16px; padding: 12px 24px; border-radius: 10px; border: 0; background: var(--c); color: #fff; cursor: pointer; }
.diag-form button:disabled { opacity: .5; cursor: default; }
.status { margin: 16px 0; padding: 16px; border-radius: 12px; background: var(--soft); display: none; }
.status.show { display: block; }
.spinner { width: 28px; height: 28px; border: 3px solid #c9d6ff; border-top-color: var(--c); border-radius: 50%; animation: spin 1s linear infinite; display: inline-block; vertical-align: middle; margin-right: 10px; }
@keyframes spin { to { transform: rotate(360deg); } }
.result { display: none; gap: 20px; grid-template-columns: 1fr 380px; align-items: start; margin-top: 20px; }
.result.show { display: grid; }
@media (max-width: 860px) { .result.show { grid-template-columns: 1fr; } }
.facts { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.facts li { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-size: 14px; }
.facts .cat { display: inline-block; font-size: 11px; color: var(--c); border: 1px solid #c9d6ff; border-radius: 10px; padding: 0 8px; margin-right: 6px; }
.chatframe { width: 100%; height: 600px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.err { color: #b42318; }
.ts { margin: 8px 0; min-height: 0; }
