:root {
  --bg: #07090f;
  --panel: rgba(18, 24, 42, 0.85);
  --text: #e8ecf8;
  --muted: #8a94b0;
  --green: #00ffaa;
  --pink: #ff2e88;
  --yellow: #ffd400;
  --border: rgba(0, 255, 170, 0.25);
  --font: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
  --mono: "SFMono-Regular", Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
  background:
    radial-gradient(ellipse at 20% -10%, rgba(255, 46, 136, 0.25), transparent 55%),
    radial-gradient(ellipse at 100% 30%, rgba(0, 255, 170, 0.15), transparent 50%),
    var(--bg);
}
.scanlines {
  pointer-events: none; position: fixed; inset: 0; z-index: 10;
  background: repeating-linear-gradient(0deg, rgba(255,255,255,0.025) 0 1px, transparent 1px 4px);
}
.wrap { max-width: 560px; margin: 0 auto; padding: 0 18px; }
.hidden { display: none !important; }
.screen { padding: 40px 0 16px; animation: fadein .4s ease; }
@keyframes fadein { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.tag { font-family: var(--mono); color: var(--green); font-size: .8rem; letter-spacing: .1em; margin: 0 0 12px; }
.neon { color: var(--pink); text-shadow: 0 0 12px rgba(255,46,136,.7); font-weight: bold; }
.lead { color: #c6cde2; font-size: 1rem; }
.lead strong { color: #fff; }

/* グリッチ見出し */
.glitch { position: relative; font-size: 2.2rem; line-height: 1.3; margin: 0 0 18px; font-weight: 900; text-shadow: 0 0 18px rgba(255,46,136,.5); }
.glitch::before, .glitch::after {
  content: attr(data-text); position: absolute; inset: 0; overflow: hidden; opacity: .8; pointer-events: none;
}
.glitch::before { color: var(--green); animation: glitch 3s infinite steps(1); clip-path: inset(0 0 60% 0); }
.glitch::after { color: var(--pink); animation: glitch 2.4s infinite steps(1) reverse; clip-path: inset(55% 0 0 0); }
@keyframes glitch {
  0%, 88%, 100% { transform: none; opacity: 0; }
  90% { transform: translate(-3px, 1px); opacity: .8; }
  93% { transform: translate(3px, -1px); opacity: .8; }
  96% { transform: translate(-1px, 0); opacity: .8; }
}

.teaser { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 26px 0; }
.teaser div { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; text-align: center; padding: 12px 0; }
.teaser .big { font-family: var(--mono); font-size: 1.8rem; color: var(--green); font-weight: bold; }
.teaser small { color: var(--muted); margin-left: 2px; }

.btn { display: inline-block; border: 0; border-radius: 12px; padding: 13px 20px; font-size: 1rem; font-weight: bold; cursor: pointer; text-decoration: none; text-align: center; font-family: inherit; transition: transform .1s, box-shadow .2s; }
.btn:active { transform: scale(.97); }
.btn.primary {
  width: 100%; padding: 18px; font-size: 1.15rem; font-family: var(--mono); color: #04120c;
  background: var(--green); box-shadow: 0 0 24px rgba(0,255,170,.45);
  animation: pulse 2s infinite;
}
@keyframes pulse { 50% { box-shadow: 0 0 40px rgba(0,255,170,.75); } }
.btn.ghost { background: none; color: var(--muted); padding: 10px 0; margin-top: 14px; }
.note { color: var(--muted); font-size: .8rem; text-align: center; margin-top: 14px; }

/* 質問 */
.progress { height: 4px; background: #1b2238; border-radius: 2px; overflow: hidden; }
#progress-bar { height: 100%; width: 0; background: linear-gradient(90deg, var(--green), var(--pink)); transition: width .3s; }
.q-count { font-family: var(--mono); color: var(--green); font-size: .85rem; margin: 18px 0 4px; }
.q-text { font-size: 1.4rem; margin: 0 0 22px; line-height: 1.5; }
.options { display: grid; gap: 12px; }
.option {
  display: flex; align-items: center; gap: 14px; text-align: left;
  background: var(--panel); border: 1px solid #263052; border-radius: 14px;
  padding: 16px; font-size: 1rem; cursor: pointer; font-family: inherit; color: var(--text);
  transition: border-color .15s, background .15s, transform .1s;
}
.option:hover, .option:focus-visible { border-color: var(--green); background: rgba(0,255,170,.08); outline: none; transform: translateX(3px); }
.option .key { flex: none; width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; font-family: var(--mono); font-weight: bold; color: var(--green); border: 1px solid var(--border); }

/* 解析演出 */
.terminal {
  font-family: var(--mono); color: var(--green); font-size: .95rem; line-height: 2;
  background: #03060b; border: 1px solid var(--border); border-radius: 12px; padding: 22px; min-height: 300px;
  white-space: pre-wrap; text-shadow: 0 0 8px rgba(0,255,170,.5);
}
.terminal::after { content: "█"; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* 結果 */
.result-card {
  text-align: center; background: var(--panel); border: 1px solid var(--border); border-radius: 20px;
  padding: 26px 20px; box-shadow: 0 0 40px rgba(255,46,136,.15);
}
.type-label { margin: 0; color: var(--muted); }
.type-emoji { font-size: 4.2rem; line-height: 1.2; margin-top: 4px; animation: pop .6s cubic-bezier(.2,1.6,.4,1); }
@keyframes pop { from { transform: scale(0); } to { transform: scale(1); } }
.type-name { font-size: 2.2rem; margin: 4px 0; font-weight: 900; background: linear-gradient(90deg, var(--green), #fff, var(--pink)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rank { font-family: var(--mono); color: var(--yellow); font-size: .85rem; margin: 0 0 18px; }

.price-box { border-top: 1px dashed #2a3456; border-bottom: 1px dashed #2a3456; padding: 16px 0; margin: 10px 0 18px; }
.price-label { margin: 0; font-size: .85rem; color: var(--muted); }
.price { margin: 0; font-size: 3rem; line-height: 1.3; font-weight: 900; color: var(--pink); text-shadow: 0 0 22px rgba(255,46,136,.6); font-family: var(--mono); }
.price-sub { margin: 0; font-size: .85rem; color: #c6cde2; }

.meter-head { display: flex; justify-content: space-between; font-size: .9rem; font-weight: bold; }
.meter-head span:last-child { font-family: var(--mono); color: var(--pink); }
.meter-bar { height: 12px; background: #1b2238; border-radius: 6px; overflow: hidden; margin-top: 6px; }
#meter-fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--green), var(--yellow), var(--pink)); transition: width 1.4s cubic-bezier(.2,.8,.2,1); }

.hacker-says { margin: 22px 0 0; padding: 14px 16px; background: #0a0e18; border-left: 3px solid var(--pink); border-radius: 8px; text-align: left; font-size: 1.02rem; }
.hacker-says .who { display: block; font-size: .78rem; color: var(--muted); margin-bottom: 4px; }

.share { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 18px 0; }
.share-x { background: #fff; color: #000; }
.share-line { background: #06c755; color: #fff; }
.share-img { grid-column: 1 / -1; background: linear-gradient(90deg, #ff2e88, #a83bff); color: #fff; }

.panel { background: var(--panel); border: 1px solid #263052; border-radius: 16px; padding: 4px 20px 10px; margin: 18px 0; }
.panel h3 { font-size: 1.05rem; color: var(--green); }
.advice { padding-left: 1.3em; }
.advice li { margin-bottom: 12px; }
.advice li::marker { color: var(--pink); font-weight: bold; }
.links { list-style: none; padding: 0; }
.links li { margin-bottom: 14px; }
.links a { color: var(--green); font-weight: bold; display: block; }
.links span { color: var(--muted); font-size: .85rem; }

.ad-slot { border: 1px dashed #2a3456; border-radius: 10px; color: #3d4766; font-family: var(--mono); font-size: .75rem; text-align: center; padding: 30px 0; margin: 20px 0; }

.site-footer { max-width: 560px; margin: 0 auto; padding: 10px 18px 40px; color: var(--muted); font-size: .75rem; text-align: center; }
.site-footer a { color: var(--muted); }

/* プライバシーポリシー等 */
.doc h2 { margin-top: 0; }
.doc a { color: var(--green); }

/* アフィリエイト推薦 */
.reco { border-color: rgba(255, 212, 0, .35); }
.reco h3 { display: flex; align-items: center; gap: 8px; color: var(--yellow); }
.pr-badge { flex: none; font-family: var(--mono); font-size: .7rem; padding: 1px 6px; border-radius: 4px; border: 1px solid var(--muted); color: var(--muted); }
.reco-lead { color: #c6cde2; font-size: .9rem; margin-top: -4px; }
.reco-list { display: grid; gap: 10px; position: relative; }
.reco-card {
  display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; align-items: center;
  padding: 14px; border-radius: 14px; text-decoration: none; color: var(--text);
  background: #0c1120; border: 1px solid #263052; transition: border-color .15s, transform .1s;
}
.reco-card:hover { border-color: var(--yellow); transform: translateY(-1px); }
.reco-card.top { border-color: var(--yellow); box-shadow: 0 0 20px rgba(255, 212, 0, .15); }
.reco-icon { font-size: 1.8rem; grid-row: span 2; }
.reco-body strong { display: block; }
.reco-body small { color: var(--muted); font-size: .82rem; line-height: 1.5; display: block; }
.reco-cta { grid-column: 2; justify-self: end; font-size: .85rem; font-weight: bold; color: var(--yellow); }
.reco-note { color: var(--muted); font-size: .72rem; }

.price.metric-text { font-size: 2.2rem; }
.px { position: absolute; width: 1px; height: 1px; opacity: 0; }

/* ヘッダー */
.topbar { max-width: 560px; margin: 0 auto; padding: 14px 18px 0; position: relative; z-index: 11; }
.brand { font-family: var(--mono); color: var(--green); text-decoration: none; font-weight: bold; font-size: .9rem; letter-spacing: .05em; }
.brand::before { content: "▸ "; }

/* フィッシングテストのメッセージ表示 */
.msg { border-radius: 16px; padding: 14px 16px; margin: 0 0 18px; font-size: .95rem; line-height: 1.6; color: #1d2433; background: #f2f4f8; box-shadow: 0 4px 20px rgba(0,0,0,.35); }
.msg-sms { background: #e9ecf2; }
.msg-line { background: #c9f0d6; }
.msg-mail { background: #fff; }
.msg-head { display: flex; gap: 8px; align-items: center; font-size: .78rem; color: #5d6679; margin-bottom: 6px; flex-wrap: wrap; }
.msg-type { background: #1d2433; color: #fff; border-radius: 4px; padding: 0 6px; font-weight: bold; }
.msg-from { font-weight: bold; word-break: break-all; }
.msg-subject { font-weight: bold; margin-bottom: 4px; }
.msg-body { white-space: pre-wrap; word-break: break-all; }
.options.judge { grid-template-columns: 1fr 1fr; }
.options.judge .option { justify-content: center; font-weight: bold; font-size: 1.05rem; }
.option:disabled { cursor: default; transform: none; opacity: .55; }
.option.correct { border-color: var(--green); background: rgba(0,255,170,.15); opacity: 1; }
.option.wrong { border-color: var(--pink); background: rgba(255,46,136,.15); opacity: 1; }
.feedback { margin-top: 16px; padding: 16px; border-radius: 14px; background: var(--panel); border: 1px solid #263052; animation: fadein .3s ease; }
.feedback p { margin: 0 0 10px; }
.fb-ok { color: var(--green); font-weight: bold; font-size: 1.15rem; }
.fb-ng { color: var(--pink); font-weight: bold; font-size: 1.15rem; }
.btn.primary.small { padding: 12px; font-size: 1rem; animation: none; font-family: var(--font); }

/* FAQ */
.faq details { border-top: 1px solid #263052; padding: 10px 0; }
.faq details:first-of-type { border-top: 0; }
.faq summary { cursor: pointer; font-weight: bold; }
.faq details p { color: #c6cde2; font-size: .9rem; margin: 8px 0 0; }

/* ほかの診断 */
.more-list { display: grid; gap: 10px; padding-bottom: 10px; }
.more-card { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 12px; background: #0c1120; border: 1px solid #263052; color: var(--text); text-decoration: none; font-weight: bold; }
.more-card:hover { border-color: var(--green); }
.more-emoji { font-size: 1.6rem; }

/* トップページ */
.quiz-grid { display: grid; gap: 14px; margin-top: 24px; }
.quiz-card { display: grid; gap: 4px; padding: 18px; border-radius: 16px; background: var(--panel); border: 1px solid var(--border); color: var(--text); text-decoration: none; transition: transform .1s, box-shadow .2s; }
.quiz-card:hover { transform: translateY(-2px); box-shadow: 0 0 24px rgba(0,255,170,.2); }
.qc-emoji { font-size: 2.2rem; }
.qc-title { font-size: 1.2rem; font-weight: 900; }
.qc-desc { color: var(--muted); font-size: .85rem; }
.qc-go { color: var(--green); font-weight: bold; justify-self: end; font-family: var(--mono); }

/* 企業向け */
.biz-badge { display: inline-block; background: rgba(255,212,0,.12); color: var(--yellow); border: 1px solid rgba(255,212,0,.4); border-radius: 999px; padding: 2px 12px; font-size: .85rem; font-weight: bold; margin: 0 0 10px; }
.biz-hero h1 { font-size: 1.65rem; line-height: 1.35; margin: 6px 0 14px; }
.biz-points { display: grid; gap: 12px; margin: 22px 0; }
.biz-point { background: var(--panel); border: 1px solid #263052; border-radius: 14px; padding: 14px 16px; }
.biz-point strong { display: block; color: var(--green); margin-bottom: 2px; }
.biz-point span { color: #c6cde2; font-size: .9rem; }
.steps { counter-reset: s; list-style: none; padding: 0; }
.steps li { counter-increment: s; position: relative; padding: 0 0 14px 44px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--green); color: #04120c; font-weight: bold; font-family: var(--mono); }
.plans { display: grid; gap: 14px; margin: 20px 0; }
.plan { background: var(--panel); border: 1px solid #263052; border-radius: 16px; padding: 18px; }
.plan.featured { border-color: var(--yellow); box-shadow: 0 0 24px rgba(255,212,0,.15); }
.plan h3 { margin: 0; font-size: 1.1rem; }
.plan .p-price { font-size: 1.8rem; font-weight: 900; font-family: var(--mono); color: #fff; margin: 4px 0; }
.plan .p-price small { font-size: .85rem; color: var(--muted); font-family: var(--font); font-weight: normal; }
.plan ul { padding-left: 1.2em; color: #c6cde2; font-size: .9rem; margin: 8px 0 14px; }
.plan .btn { width: 100%; }
.btn.outline { background: none; border: 1px solid var(--green); color: var(--green); }
.btn.buy { background: var(--yellow); color: #1a1400; }
.doc table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.doc th, .doc td { border-bottom: 1px solid #263052; padding: 8px 6px; text-align: left; vertical-align: top; }
.doc th { width: 34%; color: var(--muted); font-weight: normal; }

/* LINE 案内 */
.line-cta { border-color: rgba(6,199,85,.5); padding-bottom: 18px; }
.line-cta h3 { color: #06c755; }
.line-cta p { color: #c6cde2; font-size: .9rem; margin: 0 0 12px; }
.line-btn { background: #06c755; color: #fff; width: 100%; }
.demo-only { display: none; }
.is-demo .demo-only { display: block; }

/* 注意報ページ（落ち着いたトーン：スキャンライン・グリッチなし） */
body.calm { background: #0d111b; }
.alert-title { font-size: 1.5rem; line-height: 1.45; margin: 4px 0 12px; text-wrap: balance; }
.alert .label { color: var(--muted); font-size: .85rem; margin: 18px 0 8px; }
.verdict-box { margin: 18px 0; padding: 16px 18px; border-radius: 14px; background: rgba(255,212,0,.08); border: 1px solid rgba(255,212,0,.45); }
.verdict-box p { margin: 0; color: #c6cde2; font-size: .92rem; }
.verdict-box .verdict-main { color: var(--yellow); font-weight: bold; font-size: 1.05rem; margin-bottom: 6px; }
.scenarios details { border-top: 1px solid #263052; padding: 10px 0; }
.scenarios summary { cursor: pointer; font-weight: bold; }
.scenarios ol { margin: 10px 0 4px; padding-left: 1.4em; color: #dfe4f2; }
.scenarios li { margin-bottom: 6px; }
.note-left { color: var(--muted); font-size: .85rem; margin: -4px 0 8px; }
.quiz-cta { display: block; margin: 18px 0; }
.alerts-list { margin-top: 18px; }
.alert-link { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid #263052; color: var(--text); text-decoration: none; }
.alert-link:first-of-type { border-top: 0; }
.alert-link small { display: block; color: var(--muted); font-size: .75rem; }

/* ファーストビューの広告表示 */
.topbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 12px; }
.pr-notice { margin: 0; font-size: .8rem; color: #dfe4f2; display: flex; align-items: center; gap: 6px; }
.pr-tag { display: inline-block; font-size: .72rem; font-weight: bold; line-height: 1; padding: 3px 6px; border-radius: 4px; background: #ffd400; color: #1a1400; }

/* 推薦を目立たせる（結果カードの直下・大きいボタン） */
.reco { border: 2px solid var(--yellow); box-shadow: 0 0 30px rgba(255,212,0,.15); margin-top: 18px; }
.reco h3 { font-size: 1.15rem; }
.reco-card { grid-template-columns: auto 1fr; padding: 16px; gap: 6px 14px; }
.reco-body strong { font-size: 1.02rem; }
.reco-card .reco-cta {
  grid-column: 1 / -1; justify-self: stretch; text-align: center; margin-top: 8px;
  padding: 12px; border-radius: 10px; font-size: 1rem; font-weight: 900;
  background: var(--yellow); color: #1a1400;
}
.reco-card:not(.top) .reco-cta { background: transparent; color: var(--yellow); border: 1px solid var(--yellow); }
/* アドバイスの下の案内 */
.advice-reco { display: flex; gap: 6px; align-items: center; margin-top: 6px; color: var(--yellow); font-weight: bold; font-size: .9rem; text-decoration: none; }
.advice-reco:hover { text-decoration: underline; }

/* 3問版 / 完全版 */
.btn.secondary { width: 100%; margin-top: 10px; padding: 13px; background: transparent; color: var(--green); border: 1px solid var(--border); }
.btn.secondary:hover { border-color: var(--green); }
.upgrade { margin-top: 14px; padding: 14px 16px; border-radius: 14px; background: rgba(0,255,170,.06); border: 1px dashed var(--border); }
.upgrade p { margin: 0 0 4px; font-size: .92rem; color: #c6cde2; }
.upgrade strong { color: #fff; }
