/* AI適応度簡易診断：TOPと同じ見た目（.theme-air）に合わせたスタイル */
.am-root { padding: clamp(40px, 5vw, 72px) 0 clamp(72px, 9vw, 120px); background: var(--sec); min-height: 70vh; }
.am-wrap { max-width: 760px; margin: 0 auto; padding: 0 20px; }
.am-screen { animation: amRise .35s ease; }
@keyframes amRise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .am-screen { animation: none; } }
.am-kicker { color: var(--red); font-family: var(--f-serif); font-weight: 700; font-size: 13px; letter-spacing: .12em; margin: 0 0 10px; }
.am-h1 { font-family: var(--f-serif); font-weight: 700; color: var(--ink); font-size: clamp(28px, 4.4vw, 42px); line-height: 1.4; letter-spacing: .02em; margin: 0; }
.am-h1::after { content: ""; display: block; width: 48px; height: 2px; margin: 22px 0 0; background: var(--red); }
.am-lead { margin: 22px 0 6px; color: var(--ink-strong); line-height: 1.9; }
.am-badges { display: flex; gap: 10px; flex-wrap: wrap; margin: 18px 0 26px; }
.am-badge { display: inline-block; padding: 5px 16px; border-radius: 50px; background: #fdecef; color: var(--red); font-size: 12.5px; font-weight: 700; letter-spacing: .04em; }
.am-frame, .am-contact, .am-head, .am-radar, .am-doms, .am-pat { position: relative; background: #fff; border-radius: var(--r-card); box-shadow: var(--air-shadow-sm); }
.am-frame { padding: 28px 28px 26px; overflow: hidden; }
.am-frame::before, .am-head::before, .am-contact::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--air-bar); }
.am-frame h2 { margin: 0 0 12px; font-family: var(--f-serif); font-size: 17px; color: var(--ink); }
.am-frame p { margin: 0; font-size: 14.5px; color: var(--ink-strong); line-height: 1.8; }
.am-layers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 18px; }
.am-layer { border-radius: 10px; background: var(--sec); padding: 12px 12px 14px; font-size: 12.5px; color: var(--ink-strong); line-height: 1.6; }
.am-layer b { display: block; color: var(--ink); font-size: 13.5px; margin-bottom: 2px; }
.am-layer.is-new { background: var(--red); color: #fff; }
.am-layer.is-new b { color: #fff; }
@media (max-width: 560px) { .am-layers { grid-template-columns: repeat(2, 1fr); } }
.am-start { margin: 30px 0 12px; text-align: center; }
.am-privacy { font-size: 12.5px; color: var(--ink-muted); text-align: center; margin: 0; }

.am-progress { margin: 10px 0 8px; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.am-num span { font-family: var(--f-serif); font-weight: 700; font-size: 28px; color: var(--ink); }
.am-num small { font-size: 14px; color: var(--ink-muted); }
.am-tag { font-size: 12px; font-weight: 700; color: #fff; background: var(--ink); padding: 4px 14px; border-radius: 50px; letter-spacing: .04em; }
.am-tag.is-accent { background: var(--red); }
.am-bar { height: 5px; border-radius: 5px; background: #e5e7eb; overflow: hidden; margin: 0 0 28px; }
.am-bar i { display: block; height: 100%; background: var(--red); transition: width .25s ease; }
.am-qtitle { font-family: var(--f-serif); font-weight: 700; color: var(--ink); font-size: clamp(20px, 3vw, 26px); line-height: 1.55; margin: 0 0 6px; }
.am-qnote { font-size: 13px; color: var(--ink-muted); margin: 0 0 20px; }
.am-opts { display: grid; gap: 10px; }
.am-opt { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; padding: 15px 18px; background: #fff; border: 1px solid var(--rule); border-radius: var(--r-card); box-shadow: var(--air-shadow-sm); cursor: pointer; font: inherit; font-size: 15px; color: var(--ink); transition: border-color .12s, background .12s, box-shadow .12s; }
.am-opt:hover { border-color: var(--red); }
.am-opt:focus-visible { outline: 3px solid var(--red); outline-offset: 1px; }
.am-opt .am-n { flex: 0 0 34px; height: 34px; border-radius: 50%; border: 1px solid var(--rule); display: flex; align-items: center; justify-content: center; font-family: var(--f-serif); font-weight: 700; }
.am-opt.is-sel { border-color: var(--red); background: #fdecef; }
.am-opt.is-sel .am-n { background: var(--red); border-color: var(--red); color: #fff; }
.am-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 26px; }
.am-back { background: none; border: 0; padding: 6px; cursor: pointer; font: inherit; font-size: 13.5px; color: var(--ink-muted); text-decoration: underline; text-underline-offset: 3px; }
.am-back:hover { color: var(--red); }
.am-hint { font-size: 12.5px; color: var(--ink-muted); }

.am-head { margin-top: 18px; overflow: hidden; }
.am-head-in { padding: 34px 30px 28px; }
.am-eyebrow { margin: 0; font-size: 12px; letter-spacing: .14em; color: var(--ink-muted); }
.am-score { display: flex; align-items: baseline; gap: 8px; margin-top: 8px; }
.am-big { font-family: var(--f-serif); font-weight: 700; font-size: 52px; line-height: 1; color: var(--ink); }
.am-of { color: var(--ink-muted); }
.am-level { font-family: var(--f-serif); font-weight: 700; font-size: 21px; color: var(--ink); margin: 10px 0 0; }
.am-msg { margin-top: 12px; font-size: 14.5px; color: var(--ink-strong); line-height: 1.9; }
.am-msg p + p { margin-top: 10px; }
.am-stamp { position: absolute; top: 26px; right: 24px; width: 92px; height: 92px; border: 3px solid var(--red); border-radius: 50%; color: var(--red); display: flex; flex-direction: column; align-items: center; justify-content: center; font-family: var(--f-serif); font-weight: 700; transform: rotate(-8deg); background: rgba(255,255,255,.7); }
.am-lv { font-size: 22px; line-height: 1.1; }
.am-tx { font-size: 10.5px; letter-spacing: .1em; }
@media (max-width: 560px) { .am-stamp { width: 70px; height: 70px; top: 18px; right: 14px; } .am-lv { font-size: 17px; } .am-head-in { padding-top: 28px; } .am-head-in .am-score, .am-eyebrow { padding-right: 76px; } }
.am-insight { margin: 12px 0; padding: 12px 16px; border-left: 3px solid var(--red); background: #fdecef; border-radius: 0 8px 8px 0; font-size: 14px; color: var(--ink); }
.am-sec { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: 40px 0 14px; padding-bottom: 8px; border-bottom: 2px solid var(--red); font-family: var(--f-serif); font-size: 18px; color: var(--ink); }
.am-sec small { font-family: var(--f-sans); font-weight: 400; font-size: 12px; color: var(--ink-muted); }
.am-radar { padding: 18px 10px; display: flex; justify-content: center; }
.am-radar svg { max-width: 100%; height: auto; }
.am-doms { margin-top: 14px; overflow: hidden; }
.am-row { display: flex; align-items: center; gap: 12px; padding: 11px 18px; border-bottom: 1px solid var(--rule); font-size: 13.5px; }
.am-row:last-child { border-bottom: 0; }
.am-tier { flex: 0 0 2em; width: 2em; height: 2em; display: flex; align-items: center; justify-content: center; border-radius: 50%; font-size: 12px; font-weight: 700; }
.am-tier.is-red { color: var(--red); background: #fdecef; } .am-tier.is-orange { color: #95590b; background: #fdf0dc; } .am-tier.is-green { color: #2e8b3c; background: #e8f5e9; } .am-tier.is-blue { color: #3b82d9; background: #e8f0fb; }
.am-name { flex: 0 0 11.5em; color: var(--ink); }
.am-meter { flex: 1; height: 12px; border-radius: 6px; background: var(--sec); position: relative; overflow: hidden; }
.am-meter i { position: absolute; left: 0; top: 0; bottom: 0; }
.am-meter i.is-red { background: var(--red); } .am-meter i.is-orange { background: #f0a63a; } .am-meter i.is-green { background: #4caf50; } .am-meter i.is-blue { background: #3b82d9; }
.am-pct { flex: 0 0 3.5em; text-align: right; font-family: var(--f-serif); font-weight: 700; color: var(--ink); }
@media (max-width: 560px) { .am-name { flex-basis: 8.5em; font-size: 12.5px; } }
.am-patnote { font-size: 12.5px; color: var(--ink-muted); background: #fff; border-left: 3px solid var(--rule); padding: 8px 12px; margin: 0 0 14px; border-radius: 0 6px 6px 0; }
.am-pat { padding: 18px 20px; margin-bottom: 14px; border-left: 4px solid var(--red); border-radius: 0 var(--r-card) var(--r-card) 0; }
.am-pat.is-calm { border-left-color: var(--ink); } .am-pat.is-pre { border-left-color: #9aa3b0; } .am-pat.is-good { border-left-color: #2e7d32; }
.am-pat > b { font-size: 16px; color: var(--ink); }
.am-pat p { font-size: 14px; margin-top: 8px; color: var(--ink-strong); line-height: 1.85; }
.am-rx { display: inline-block; margin-top: 10px; padding: 2px 12px; border: 1px solid var(--red); border-radius: 50px; color: var(--red); font-size: 12px; font-weight: 700; }
.am-cta { margin-top: 38px; padding: 30px 28px; background: #f4f6f8; border-radius: var(--r-card); }
.am-cta h3 { font-family: var(--f-serif); font-size: 22px; color: var(--ink); margin: 0; }
.am-cta h3::after { content: ""; display: block; width: 48px; height: 2px; margin: 14px 0 6px; background: var(--red); }
.am-cta p { margin: 12px 0 0; font-size: 14px; color: var(--ink-strong); line-height: 1.9; }
.am-contact { margin-top: 26px; padding: 34px 28px 30px; overflow: hidden; }
.am-small { margin: 10px 0 0; font-size: 14px; color: var(--ink-strong); line-height: 1.85; }
.am-contact form label { display: block; margin: 16px 0 6px; font-size: 13px; font-weight: 700; color: var(--ink); }
.am-contact input[type=text], .am-contact input[type=email] { width: 100%; height: 44px; padding: 0 14px; border: 1px solid #d1d5db; border-radius: 8px; font: inherit; font-size: 14px; background: #fff; color: var(--ink); }
.am-contact input:focus-visible { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(217,59,72,.15); }
.am-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.am-consent { display: flex; align-items: flex-start; gap: 8px; margin-top: 18px; font-size: 13px; color: var(--ink-strong); }
.am-consent input { margin-top: 5px; }
.am-contact .am-consent label { margin: 0; font-weight: 400; color: inherit; }
.am-consent a { color: var(--red); text-decoration: underline; text-underline-offset: 2px; }
.am-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; align-items: center; }
.am-status { font-size: 13.5px; font-weight: 700; }
.am-status.is-ok { color: #2e7d32; }
.am-status.is-err { color: #991b1b; background: #fef2f2; border: 1px solid #fecaca; padding: 8px 12px; border-radius: 8px; }
.am-docfoot { margin-top: 48px; padding-top: 14px; border-top: 1px solid var(--rule); font-size: 12px; color: var(--ink-muted); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px; }

/* 送信完了の表示 */
.am-done { text-align: center; outline: none; }
.am-done-icon { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 50%; background: #2e7d32; color: #fff; font-size: 34px; line-height: 64px; font-weight: 700; }
.am-done p { margin: 8px 0; line-height: 1.8; }
.am-done .am-actions { justify-content: center; margin-top: 18px; }
