/* 絵本のトーン：絵の具で塗った青い空と床、パンのような生成り、ピンクの手書き文字 */
:root {
  --sky: #2b4fc2;
  --floor: #1e2888;
  --bread: #f8ecd4;
  --bread-2: #f0dbb4;
  --crust: #c4682f;
  --pink: #e8436f;
  --pink-dark: #b92a52;
  --ochre: #e0a33a;
  --grey: #a7a7ae;
  --text: #2b2747;
  --text-soft: #5f5870;
  --white: #fffaf0;
  --line: #e4cfa6;
  --navy: #2d4c6f;
  --danger: #c0392b;
  --danger-bg: #fbe6e1;
  --warn: #b7791f;
  --warn-bg: #fcf0d6;
  --ok: #2f855a;
  --ok-bg: #e5f2e8;
  --unknown: #6b6259;
  --unknown-bg: #efe7d8;
  --soft: 28px 14px 30px 12px / 14px 30px 12px 28px;
  --f-hand: "Yusei Magic", "Zen Maru Gothic", sans-serif;
  /* 刷毛目（明るい筋と暗い筋） */
  --streaks: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='900' height='600'%3E%3Cfilter id='a' x='0' y='0' width='1' height='1'%3E%3CfeTurbulence stitchTiles='stitch' type='fractalNoise' baseFrequency='0.011 0.0055' numOctaves='5' seed='2'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 .8 0 0 0 -.38'/%3E%3C/filter%3E%3Cfilter id='b' x='0' y='0' width='1' height='1'%3E%3CfeTurbulence stitchTiles='stitch' type='fractalNoise' baseFrequency='0.009 0.006' numOctaves='5' seed='7'/%3E%3CfeColorMatrix values='0 0 0 0 .04 0 0 0 0 .06 0 0 0 0 .3 -.9 0 0 0 .44'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23a)'/%3E%3Crect width='100%25' height='100%25' filter='url(%23b)'/%3E%3C/svg%3E");
  /* 紙の粒 */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='g' x='0' y='0' width='1' height='1'%3E%3CfeTurbulence stitchTiles='stitch' type='fractalNoise' baseFrequency='.8' numOctaves='2' seed='5'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .32 0 0 0 0 .12 .7 0 0 0 -.28'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  /* 床のふち（塗りのゆらぎ） */
  --floor-edge: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 40' preserveAspectRatio='none'%3E%3Cpath d='M0 22 C150 6 300 32 450 18 S750 4 900 20 S1100 32 1200 12 V40 H0Z' fill='%231e2888'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bread);
  color: var(--text);
  font-family: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  font-weight: 500;
  line-height: 1.85;
  font-size: 16px;
  overflow-x: hidden;
}
a { color: var(--navy); }
b, strong { font-weight: 900; }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.wrap { max-width: 960px; margin: 0 auto; padding: 0 20px; }
.sp { display: none; }
@media (max-width: 600px) { .sp { display: inline; } .pc { display: none; } }

/* ヘッダー（acd.bz と同じ、紺地に角丸） */
.site-header { position: relative; z-index: 2; background: var(--navy); border-radius: 0 0 40px 0; padding: 16px 24px; width: min(420px, 85%); }
.brand { color: #fff; text-decoration: none; font-size: 17px; letter-spacing: .04em; }

/* ボタン：ピンクの絵の具 */
.btn-primary {
  display: inline-block; cursor: pointer; text-decoration: none; text-align: center;
  background: var(--pink); color: var(--white); font: inherit; font-weight: 900; font-size: 17px; letter-spacing: .06em;
  padding: 14px 44px; border: 0; border-radius: 40px 34px 42px 30px / 30px 42px 34px 40px; box-shadow: 0 5px 0 var(--pink-dark);
  transition: transform .15s, box-shadow .15s;
}
.btn-primary:hover { transform: translateY(3px); box-shadow: 0 2px 0 var(--pink-dark); }
.btn-primary:disabled { opacity: .5; cursor: default; transform: none; }
.btn-big { font-size: 19px; padding: 17px 54px; }

/* ── 1. 導入 ───────────────────────── */
.hero { margin-top: -64px; }
.hero-sky {
  position: relative; padding: 104px 0 64px; color: var(--white);
  background: var(--streaks), linear-gradient(170deg, #3159cc 0%, var(--sky) 55%, #2443b3 100%);
  background-size: 900px 600px, auto;
}
/* 物語 → 見出し（横いっぱい）→ キャラクターと心の声 */
.hero-grid {
  position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr;
  grid-template-areas: "story story" "mazui mazui" "chara worries";
  gap: 0 24px; align-items: center; max-width: 1040px;
}
.story { grid-area: story; font-family: var(--f-hand); font-size: clamp(16px, 2.1vw, 19px); line-height: 2; margin: 0; color: #dfe6ff; }
.mazui { grid-area: mazui; margin: 14px 0 0; line-height: 1; font-weight: 400; }
.mazui-pre {
  display: block; margin-bottom: .25em; font-family: var(--f-hand); font-size: clamp(26px, 3.6vw, 44px); line-height: 1.35;
  color: var(--bread); animation: fade .5s both .2s;
}
.mazui-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 .12em; font-size: clamp(88px, 13vw, 168px); }
.mazui-text { display: inline-flex; gap: .04em; filter: url(#paint-text); }
.mazui-text span, .mazui-kamo {
  display: inline-block; font-family: var(--f-hand); color: var(--pink);
  text-shadow: 0 0 1px var(--pink);
  animation: drop-in .6s cubic-bezier(.3, 1.5, .5, 1) both;
}
.mazui-text span:nth-child(1) { --r: -6deg; animation-delay: .4s; }
.mazui-text span:nth-child(2) { --r: 4deg; animation-delay: .65s; translate: 0 .06em; }
.mazui-text span:nth-child(3) { --r: -2deg; animation-delay: .9s; }
/* 「かも！？」は少し小さく、あとから付け足したように */
.mazui-kamo { --r: 3deg; font-size: .62em; letter-spacing: .02em; filter: url(#paint-text); animation-delay: 1.2s; }
@keyframes drop-in { from { opacity: 0; transform: translateY(-.4em) rotate(var(--r)); } to { opacity: 1; transform: rotate(var(--r)); } }
@keyframes fade { from { opacity: 0; } }

.worries { grid-area: worries; list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px 14px; }
.worries li { animation: fade .5s both; }
.worries li:nth-child(1) { animation-delay: 1.3s; } .worries li:nth-child(2) { animation-delay: 1.6s; }
.worries span {
  display: inline-block; background: var(--bread); color: var(--text); border-radius: var(--soft);
  padding: 7px 18px; font-weight: 900; font-size: clamp(15px, 2.1vw, 19px); line-height: 1.5;
  box-shadow: 0 4px 0 rgba(20, 26, 102, .35); transform: rotate(-1.5deg);
}
.worries li:nth-child(2) span { background: var(--ochre); transform: rotate(1.2deg); }

.hero-chara { grid-area: chara; margin: 0 0 -112px; position: relative; z-index: 1; align-self: end; }
.chara { width: 100%; max-width: 500px; display: block; overflow: visible; }
.limb { fill: none; stroke: var(--grey); stroke-width: 24; stroke-linecap: round; }
.limb-hl { fill: none; stroke: #c7c7cd; stroke-width: 7; stroke-linecap: round; opacity: .8; transform: translate(-3px, -4px); }
.plug-label { font-family: var(--f-hand); font-size: 15px; fill: #3a2410; }
.drop { animation: drip 2.8s ease-in infinite; }
.drop.d2 { animation-delay: .8s; }
@keyframes drip { 0% { transform: translateY(-6px); opacity: 0; } 20% { opacity: 1; } 100% { transform: translateY(16px); opacity: 0; } }

.hero-floor {
  position: relative; padding: 104px 0 72px; color: var(--white);
  background: var(--streaks), var(--floor); background-size: 700px 500px, auto;
}
.hero-floor::before { content: ""; position: absolute; left: 0; right: 0; top: -30px; height: 32px; background: var(--floor-edge) 0 0 / 100% 100% no-repeat; }
.hero-lead { text-align: center; }
.lead { font-size: clamp(16px, 2.1vw, 18px); margin: 0 0 26px; color: #e4e8ff; }
.chips { list-style: none; display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin: 20px 0 0; padding: 0; }
.chips li { font-size: 13px; font-weight: 700; padding: 1px 14px; border: 2px solid rgba(248, 236, 212, .6); border-radius: 999px; color: var(--bread); }

@media (prefers-reduced-motion: reduce) {
  .mazui-text span, .mazui-kamo, .mazui-pre, .worries li, .drop { animation: none; }
  .btn-primary { transition: none; }
}

/* ── 共通セクション ───────────────── */
.section { padding: 80px 0; position: relative; }
.tone-bread { background: var(--grain), var(--bread); }
.tone-sky { background: var(--streaks), var(--sky); background-size: 900px 600px, auto; color: var(--white); }
.tone-floor { background: var(--streaks), var(--floor); background-size: 700px 500px, auto; color: var(--white); }
.title {
  font-family: var(--f-hand); font-weight: 400; font-size: clamp(27px, 4.6vw, 40px); line-height: 1.45;
  text-align: center; margin: 0 0 40px; letter-spacing: .03em; color: var(--text);
}
.title-light { color: var(--bread); }

/* ── 2. 心あたり ─────────────────── */
.panels { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.panel { position: relative; background: var(--white); border-radius: var(--soft); box-shadow: 0 6px 0 var(--bread-2); padding: 32px 16px 20px; text-align: center; }
.panel:nth-child(odd) { transform: rotate(-1deg); } .panel:nth-child(even) { transform: rotate(1deg); }
.panel p { margin: 8px 0 0; font-size: 15px; line-height: 1.7; }
.panel b { background: linear-gradient(transparent 62%, rgba(232, 67, 111, .28) 62%); }
.onoma { position: absolute; top: -20px; left: 14px; font-family: var(--f-hand); font-size: 24px; color: var(--pink); transform: rotate(-8deg); filter: url(#paint-text); }
.doodle { width: 92px; height: 74px; overflow: visible; }
.ink { fill: none; stroke: var(--text); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.ink.pink { stroke: var(--pink); stroke-width: 6; }
.fill-white { fill: #fff; } .fill-pink { fill: var(--pink); } .fill-ochre { fill: var(--ochre); } .fill-sky { fill: #9ec0f0; }
.doodle-q { font-family: var(--f-hand); font-size: 26px; fill: var(--text); }
.doodle-q.small { font-size: 20px; }
.doodle-n { font-family: var(--f-hand); font-size: 12px; fill: #fff; }
.doodle-php { font-family: var(--f-hand); font-size: 20px; fill: var(--text); }
.punch { text-align: center; font-size: clamp(17px, 2.4vw, 21px); font-weight: 900; margin: 48px 0 0; }
.punch em { font-style: normal; color: var(--pink); }

/* ── あやしい登場人物（どろぼうネズミ・スパイ・なりすましメール） ── */
.scene { display: flex; align-items: center; gap: 6px 14px; margin: 40px 0 0; }
.scene-right { justify-content: flex-end; }
.scene + .risks, .scene + .covers { margin-top: 8px; }
.how + .scene { margin-top: -12px; }
.villain { flex: none; width: 210px; height: auto; overflow: visible; }
.villain.spy { width: 200px; margin-bottom: -6px; }
.sack-label, .mail-label { font-family: var(--f-hand); font-size: 15px; fill: #5a4022; }
.mail-label { font-size: 13px; fill: var(--pink-dark); }
.bubble {
  position: relative; margin: 0; padding: 12px 22px; background: #fff; color: var(--text);
  font-family: var(--f-hand); font-size: clamp(16px, 2vw, 20px); line-height: 1.5;
  border-radius: 26px 22px 28px 20px / 20px 28px 22px 26px; box-shadow: 0 4px 0 rgba(43, 39, 71, .14); transform: rotate(-2deg);
}
.bubble-bread { background: var(--bread); box-shadow: 0 4px 0 rgba(10, 14, 70, .4); }
.bubble::after { content: ""; position: absolute; top: 50%; margin-top: -9px; border: 9px solid transparent; }
.tail-right::after { right: -16px; border-left: 14px solid #fff; border-right: 0; }
.tail-left::after { left: -16px; border-right: 14px solid #fff; border-left: 0; }
.bubble-bread.tail-right::after { border-left-color: var(--bread); }
.bubble-bread.tail-left::after { border-right-color: var(--bread); }
/* 依頼書のふちからのぞくネズミ */
.check-form { position: relative; }
.peek { position: absolute; right: 36px; bottom: 100%; display: flex; align-items: center; gap: 14px; margin-bottom: -4px; pointer-events: none; }
.peek .bubble { margin-bottom: 6px; }
.peek-mouse { width: 120px; height: auto; display: block; animation: peek 4s ease-in-out infinite; }
/* 動き：つま先歩き・虫めがね・よちよち・のぞき */
.sneak { animation: sneak 1.4s ease-in-out infinite; }
@keyframes sneak { 50% { transform: translateY(-5px) rotate(1.5deg); } }
.peer { transform-box: view-box; transform-origin: 150px 196px; animation: peer 3.2s ease-in-out infinite; }
@keyframes peer { 50% { transform: rotate(-5deg); } }
.waddle { transform-origin: 50% 100%; animation: waddle 1.2s ease-in-out infinite; }
@keyframes waddle { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg); } }
@keyframes peek { 0%, 100% { transform: translateY(10px); } 35%, 75% { transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .sneak, .peer, .waddle, .peek-mouse { animation: none; } }

/* ── 結果：ホームページくんのひとこと（危険度で表情が変わる）と、グループごとのあやしい登場人物 ── */
.summary-head { flex-wrap: wrap; }
.summary-head > div:nth-child(2) { flex: 1 1 0; min-width: 0; }
.kun { margin-left: auto; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.kun-svg { width: 140px; height: auto; overflow: visible; }
.kun .g-C, .kun .g-B, .kun .g-A { display: none; }
.kun[data-grade="C"] .g-C, .kun[data-grade="B"] .g-B, .kun[data-grade="A"] .g-A { display: inline; }
.kun .bubble { font-size: 17px; white-space: nowrap; }
.tail-down::after { top: 100%; left: 50%; margin: 0 0 0 -9px; border: 9px solid transparent; border-top: 12px solid #fff; border-bottom: 0; }
.bubble-bread.tail-down::after { border-top-color: var(--bread); }
.kun[data-grade="C"] .kun-svg { animation: shiver .45s ease-in-out infinite; }
.kun[data-grade="A"] .kun-svg { animation: hop 2.2s ease-in-out infinite; }
@keyframes shiver { 25% { transform: translateX(-2px); } 75% { transform: translateX(2px); } }
@keyframes hop { 0%, 60%, 100% { transform: none; } 30% { transform: translateY(-7px); } }
.group-villain { display: flex; justify-content: flex-end; align-items: center; gap: 14px; margin: -4px 0 12px; }
.group-villain .villain { width: 108px; }
.group-villain .villain.spy { width: 96px; margin-bottom: 0; }
.group-villain .bubble { font-size: 16px; padding: 8px 18px; }
/* 弱点が見つからなかったグループでは、くやしそうに */
.group-villain.foiled .villain { transform: rotate(-8deg); opacity: .8; animation: none; }
.group-villain.foiled .peer { animation: none; }
.group-villain.foiled .bubble { color: var(--text-soft); }
@media (prefers-reduced-motion: reduce) { .kun-svg { animation: none !important; } }

/* ── 3. 放っておくと ──────────────── */
.risks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: start; }
.risk { background: var(--bread); color: var(--text); border-radius: var(--soft); padding: 24px 22px; box-shadow: 0 6px 0 rgba(20, 26, 102, .45); }
.risk-no { display: inline-block; margin: 0 0 8px; font-family: var(--f-hand); font-size: 15px; background: var(--pink); color: var(--white); padding: 0 14px; border-radius: 999px; }
.risk h3 { margin: 0 0 10px; font-size: 19px; line-height: 1.5; font-weight: 900; }
.risk p { margin: 0; font-size: 15px; }
.php-line { list-style: none; margin: 14px 0 0; padding: 0; font-size: 14px; }
.php-line li { display: flex; align-items: center; gap: 10px; padding: 5px 0; border-top: 2px dashed var(--line); }
.php-line b { flex: none; width: 48px; text-align: center; font-family: var(--f-hand); font-weight: 400; font-size: 16px; border-radius: 8px; background: #fff; }
.php-line .end span { color: var(--text-soft); text-decoration: line-through; text-decoration-color: var(--pink); text-decoration-thickness: 2px; }
.php-line .end b { background: var(--unknown-bg); color: var(--text-soft); }
.php-line .soon b { background: var(--ochre); }
.php-line .soon span { color: var(--pink-dark); font-weight: 900; }
.php-line .ok b { background: var(--ok-bg); }

/* ── 4. だから診断 ─────────────────── */
.how { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; margin-bottom: 52px; }
.steps { list-style: none; margin: 0; padding: 0; }
.steps li { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; font-size: 17px; font-weight: 700; }
.steps b { flex: none; width: 48px; height: 48px; display: grid; place-items: center; font-family: var(--f-hand); font-weight: 400; font-size: 24px; color: var(--white); background: var(--sky); border-radius: 52% 48% 50% 46% / 48% 52% 46% 50%; }
.sample { position: relative; }
.sample-tag { position: absolute; top: -14px; left: 18px; margin: 0; z-index: 1; font-family: var(--f-hand); font-size: 14px; background: var(--pink); color: var(--white); padding: 0 12px; border-radius: 999px; }
.sample-card { display: flex; gap: 16px; align-items: center; background: #fff; border-radius: var(--soft); border-top: 8px solid var(--danger); padding: 22px 18px 18px; box-shadow: 0 6px 0 var(--bread-2); transform: rotate(1.5deg); }
.sample-grade { flex: none; width: 76px; height: 92px; border-radius: 12px; background: var(--danger-bg); color: var(--danger); display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; font-weight: 900; }
.sample-grade b { font-size: 46px; margin: 4px 0; font-family: "Helvetica Neue", Arial, sans-serif; }
.sample-grade small { font-size: 12px; letter-spacing: .1em; }
.sample-body p { margin: 0; }
.sample-host { font-size: 12px; color: var(--text-soft); }
.sample-verdict { color: var(--danger); font-weight: 900; font-size: 18px; line-height: 1.4; margin: 2px 0 8px !important; }
.sample-body ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.sample-body li { font-size: 12px; font-weight: 700; padding: 1px 10px; border-radius: 999px; }
.covers { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.cover { background: var(--white); border-radius: var(--soft); padding: 18px 20px; }
.cover h3 { margin: 0 0 4px; font-size: 16px; font-weight: 900; }
.cover h3::before { content: "✓ "; color: var(--pink); }
.cover p { margin: 0; font-size: 14px; color: var(--text-soft); }

/* ── 5. 診断フォーム ───────────────── */
.check-lead { text-align: center; margin: -24px 0 30px; color: #d6dcff; }
.check-form { max-width: 720px; margin: 104px auto 0; background: var(--grain), var(--bread); color: var(--text); border-radius: var(--soft); padding: 32px; box-shadow: 0 8px 0 rgba(10, 14, 70, .5); text-align: center; }
.field { display: block; text-align: left; }
.field-label { display: block; font-weight: 900; margin-bottom: 8px; }
.field input { width: 100%; font: inherit; font-size: 18px; padding: 14px 16px; border: 3px solid var(--bread-2); border-radius: 14px; background: #fff; color: var(--text); }
.field input:focus { outline: none; border-color: var(--sky); box-shadow: 0 0 0 4px rgba(43, 79, 194, .2); }
.consent { margin: 16px 0 22px; text-align: left; }
.terms { background: var(--bread-2); border-radius: 12px; padding: 12px 16px; font-size: 14px; }
.terms summary { cursor: pointer; font-weight: 900; }
.terms ol { margin: 10px 0 4px; padding-left: 1.4em; color: var(--text-soft); }
.terms li { margin-bottom: 6px; }
.agree { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0 0; font-size: 15px; font-weight: 700; cursor: pointer; }
.agree input { width: 20px; height: 20px; margin-top: 4px; accent-color: var(--pink); flex: none; }
.form-error { margin: 14px 0 0; color: var(--danger); font-weight: 900; }

/* 診断中 */
.progress { padding: 56px 0; text-align: center; }
.spinner { width: 44px; height: 44px; margin: 0 auto 16px; border: 5px solid var(--line); border-top-color: var(--pink); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.progress-title { font-weight: 900; margin: 0 0 12px; }
.progress-steps { list-style: none; padding: 0; margin: 0 auto; max-width: 420px; text-align: left; color: var(--text-soft); font-size: 14px; }
.progress-steps li { padding-left: 26px; position: relative; opacity: .35; transition: opacity .3s; }
.progress-steps li::before { content: ""; position: absolute; left: 4px; top: .7em; width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.progress-steps li.active { opacity: 1; }
.progress-steps li.active::before { background: var(--pink); }
@media (prefers-reduced-motion: reduce) { .spinner { animation: none; } }

/* 結果 */
.result { padding: 56px 0; scroll-margin-top: 16px; }
.summary { --g: var(--unknown); --g-bg: var(--unknown-bg); border-radius: var(--soft); padding: 28px; margin-bottom: 32px; background: #fff; border-top: 10px solid var(--g); box-shadow: 0 6px 0 var(--bread-2); }
.summary.grade-C { --g: var(--danger); --g-bg: var(--danger-bg); }
.summary.grade-B { --g: var(--warn); --g-bg: var(--warn-bg); }
.summary.grade-A { --g: var(--ok); --g-bg: var(--ok-bg); }
.summary-head { display: flex; align-items: center; gap: 20px; margin-bottom: 8px; }
.grade-mark { flex: none; width: 104px; height: 120px; border-radius: 14px; background: var(--g-bg); color: var(--g); display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; }
.grade-caption { font-size: 13px; font-weight: 900; letter-spacing: .1em; }
.grade-letter { font-size: 64px; font-weight: 800; margin: 6px 0 4px; font-family: "Helvetica Neue", Arial, sans-serif; }
.grade-label { font-size: 15px; font-weight: 900; letter-spacing: .2em; }
.grade-scale { display: flex; gap: 6px; margin: 18px 0 0; padding: 14px 0 0; list-style: none; border-top: 2px dashed var(--line); font-size: 13px; color: var(--text-soft); flex-wrap: wrap; }
.grade-scale li { padding: 2px 12px; border-radius: 999px; border: 2px solid var(--line); }
.grade-scale li.current { border-color: var(--g); color: var(--g); font-weight: 900; }
.group-grade { display: inline-block; white-space: nowrap; margin-left: 10px; font-size: 13px; padding: 2px 10px; border-radius: 999px; vertical-align: 2px; }
.grade-chip-C { background: var(--danger-bg); color: var(--danger); }
.grade-chip-B { background: var(--warn-bg); color: var(--warn); }
.grade-chip-A { background: var(--ok-bg); color: var(--ok); }
.summary-host { margin: 0; color: var(--text-soft); font-size: 14px; word-break: break-all; }
.summary-verdict { margin: 4px 0 8px; font-size: clamp(24px, 4.5vw, 32px); line-height: 1.4; color: var(--g); }
.summary-text { margin: 0 0 16px; }
.counts { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.counts li { padding: 4px 14px; border-radius: 999px; font-size: 14px; font-weight: 900; }

.group { margin-bottom: 28px; }
.group h2 { font-size: 18px; margin: 0 0 12px; padding-left: 12px; border-left: 6px solid var(--pink); line-height: 1.4; }
.check { background: #fff; border-radius: 16px; padding: 18px 20px; margin-bottom: 10px; display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; box-shadow: 0 3px 0 var(--bread-2); }
.badge { grid-row: span 3; align-self: start; min-width: 64px; text-align: center; padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 900; }
.lv-danger { background: var(--danger-bg); color: var(--danger); }
.lv-warn { background: var(--warn-bg); color: var(--warn); }
.lv-ok { background: var(--ok-bg); color: var(--ok); }
.lv-unknown, .lv-info { background: var(--unknown-bg); color: var(--unknown); }
.check-title { margin: 0; font-weight: 900; line-height: 1.5; }
.check-title small { font-weight: 500; color: var(--text-soft); }
.check-summary { margin: 0; }
.check-advice { margin: 4px 0 0; font-size: 14px; color: var(--text-soft); }
.check-advice, .check-evidence { grid-column: -2 / -1; }
.check-why { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--bread-2); }
.check-why strong { color: var(--text); }
.check-evidence { margin: 8px 0 2px; padding: 10px 14px; border-radius: 10px; background: #1f1b2e; color: #f4efe6; }
.check-evidence span { display: block; font-size: 12px; color: #c9c1b4; margin-bottom: 2px; }
.check-evidence code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 15px; font-weight: 700; color: #ffd36b; word-break: break-all; }

.cta { background: var(--streaks), var(--sky); background-size: 900px 600px, auto; color: var(--white); border-radius: var(--soft); padding: 40px 28px; margin: 40px 0 24px; text-align: center; box-shadow: 0 8px 0 var(--floor); }
.cta-eyebrow { margin: 0 0 8px; color: var(--ochre); font-weight: 900; font-size: 14px; letter-spacing: .06em; }
.cta h2 { margin: 0 0 20px; font-family: var(--f-hand); font-weight: 400; font-size: clamp(22px, 4vw, 30px); line-height: 1.5; }
.cta-points { text-align: left; max-width: 600px; margin: 0 auto 28px; padding: 0; list-style: none; }
.cta-points li { position: relative; padding-left: 26px; margin-bottom: 8px; }
.cta-points li::before { content: ""; position: absolute; left: 4px; top: .55em; width: 12px; height: 7px; border-left: 3px solid var(--ochre); border-bottom: 3px solid var(--ochre); transform: rotate(-45deg); }
.cta-note { margin: 16px 0 0; font-size: 13px; color: #d6dcff; word-break: break-all; }
.btn-ghost { display: block; margin: 0 auto; background: var(--white); border: 3px solid var(--sky); color: var(--sky); font: inherit; font-weight: 900; padding: 10px 32px; border-radius: 999px; cursor: pointer; }

/* ── 6. FAQ ─────────────────────── */
.faq { margin: 0 auto 32px; max-width: 760px; }
.faq dt { font-weight: 900; margin-top: 20px; padding-left: 1.8em; text-indent: -1.8em; }
.faq dt::before { content: "Q. "; color: var(--pink); font-family: var(--f-hand); font-weight: 400; }
.faq dd { margin: 4px 0 0; padding-left: 1.8em; color: var(--text-soft); font-size: 15px; }
.disclaimer { max-width: 760px; margin: 0 auto; font-size: 13px; color: var(--text-soft); border-top: 2px dashed var(--line); padding-top: 16px; }
.back { text-align: center; margin: 36px 0 0; }

.site-footer { text-align: center; padding: 28px 16px; font-size: 14px; background: var(--bread-2); }

@media (max-width: 860px) {
  .panels { grid-template-columns: repeat(2, 1fr); gap: 30px 16px; }
  .risks { grid-template-columns: 1fr; }
  .how { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  .hero-sky { padding-top: 92px; }
  .hero-grid { grid-template-columns: 1fr; grid-template-areas: "story" "mazui" "worries" "chara"; }
  .mazui-line { font-size: 25vw; }
  .worries { margin-top: 10px; }
  .hero-chara { margin: 18px auto -96px; width: 100%; max-width: 360px; }
  .hero-floor { padding: 84px 0 56px; }
  .section { padding: 60px 0; }
  .title { margin-bottom: 30px; }
  .panels { grid-template-columns: 1fr; gap: 28px; }
  .panel { display: grid; grid-template-columns: 72px 1fr; align-items: center; gap: 12px; text-align: left; padding: 22px 16px 16px; }
  .panel p { margin: 0; }
  .doodle { width: 72px; height: 58px; }
  .covers { grid-template-columns: 1fr; }
  .scene { margin-top: 28px; gap: 6px 8px; }
  .villain { width: 140px; }
  .villain.spy { width: 120px; }
  .bubble { padding: 10px 16px; font-size: 15px; }
  .check-form { padding: 22px 16px; margin-top: 64px; }
  .peek { right: 12px; }
  .peek-mouse { width: 92px; }
  .peek .bubble { margin-bottom: 4px; }
  .kun { width: 100%; flex-direction: row; justify-content: flex-end; gap: 16px; }
  .kun-svg { width: 96px; }
  .kun .bubble { font-size: 15px; }
  .kun .tail-down::after { top: 50%; left: auto; right: -16px; margin: -9px 0 0; border: 9px solid transparent; border-left: 14px solid var(--bread); border-right: 0; }
  .group-villain { gap: 10px; }
  .group-villain .villain { width: 84px; }
  .group-villain .villain.spy { width: 76px; }
  .group-villain .bubble { font-size: 14px; padding: 8px 14px; }
  .btn-primary, .btn-big { width: 100%; padding: 16px 16px; }
  .summary { padding: 22px 18px; }
  .summary-head { gap: 14px; }
  .grade-mark { width: 84px; height: 100px; }
  .grade-letter { font-size: 50px; }
  .check { padding: 16px; grid-template-columns: 1fr; }
  .badge { grid-row: auto; justify-self: start; }
  .cta { padding: 28px 18px; }
}

/* ── 無料相談のお申し込み（結果画面の中のフォーム。Google フォームの見た目は使わない） ── */
.consult-form { margin: 28px auto 0; max-width: 680px; text-align: left; background: var(--grain), var(--bread); color: var(--text); border-radius: var(--soft); padding: 28px 30px 30px; box-shadow: 0 8px 0 rgba(10, 14, 70, .45); scroll-margin-top: 16px; }
.consult-title { margin: 0 0 16px; font-family: var(--f-hand); font-size: clamp(20px, 3vw, 26px); text-align: center; }
.consult-form dl { margin: 0; }
.consult-form dt { margin-top: 18px; font-weight: 900; font-size: 15px; }
.consult-form dt:first-child { margin-top: 0; }
.consult-form dt em { margin-left: 8px; padding: 0 9px; border-radius: 999px; background: var(--pink); color: var(--white); font-style: normal; font-size: 11px; vertical-align: 2px; }
.consult-form dt small { margin-left: 8px; font-weight: 700; font-size: 12px; color: var(--text-soft); }
.consult-form dd { margin: 6px 0 0; }
.consult-form input[type=text], .consult-form input[type=tel], .consult-form input[type=email], .consult-form textarea {
  width: 100%; font: inherit; font-size: 16px; padding: 11px 14px; border: 3px solid var(--bread-2); border-radius: 14px; background: #fff; color: var(--text);
}
.consult-form input:focus, .consult-form textarea:focus { outline: none; border-color: var(--sky); box-shadow: 0 0 0 4px rgba(43, 79, 194, .2); }
.consult-form .choices { display: grid; gap: 8px; }
.consult-form .choices.row { grid-template-columns: repeat(2, 1fr); }
.consult-form .choices label { display: flex; gap: 10px; align-items: center; padding: 9px 14px; border-radius: 14px; border: 3px solid var(--bread-2); background: #fff; font-size: 14px; font-weight: 700; line-height: 1.5; cursor: pointer; }
.consult-form .choices label:has(input:checked) { border-color: var(--pink); background: #fff4f7; }
.consult-form .choices input { flex: none; width: 18px; height: 18px; accent-color: var(--pink); }
.consult-agree { margin: 22px 0 18px; }
.consult-agree a { color: var(--navy); }
.consult-form .btn-primary { display: block; margin: 0 auto; }
.consult-msg { margin: 16px 0 0; padding: 12px 16px; border-radius: 14px; background: #fff; font-weight: 900; text-align: center; }
@media (max-width: 600px) {
  .consult-form { padding: 22px 16px 24px; }
  .consult-form .choices.row { grid-template-columns: 1fr; }
}

/* 機械よけの欄（人には見せない） */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
