/* ================================================
   SUMAiiタウン ハウスメーカー診断LP  v2
   コンセプト：「青空と設計図」— 水色の空に設計図のグリッド、家のシルエットをモチーフに
   参考LPは配色・構成のみ参照（文言・画像・イラストは自作）
================================================ */
:root {
  --cyan: #4cc3dc;
  --cyan-d: #23a7c4;
  --cyan-l: #e3f6fb;
  --cyan-ll: #f2fbfd;
  --blue: #0b6db5;
  --blue-d: #074f86;
  --navy: #0d2f4a;
  --pink: #ff7a8a;
  --pink-d: #e9475f;
  --red: #ff5f72;
  --gold: #ffc93c;
  --ink: #1d2730;
  --sub: #5b6872;
  --gray: #f0f3f5;
  --line: #dbe4e8;
  --frame: 520px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ff-h: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --ff-b: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  --ff-n: "Outfit", "Noto Sans JP", sans-serif;
  --grid: linear-gradient(rgba(255,255,255,.16) 1px, transparent 1px) 0 0 / 26px 26px,
          linear-gradient(90deg, rgba(255,255,255,.16) 1px, transparent 1px) 0 0 / 26px 26px;
  --house: polygon(50% 0, 100% 30%, 100% 100%, 0 100%, 0 30%);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 12px; }
body { margin: 0; color: var(--ink); font-family: var(--ff-b); font-size: 16px; line-height: 1.8; letter-spacing: .02em;
  background: #dfeef2 radial-gradient(circle at 20% 0, #eaf7fb, transparent 60%) fixed; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; vertical-align: top; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
svg { width: 1em; height: 1em; }
button { font-family: inherit; }
.wrap { max-width: var(--frame); margin: 0 auto; background: #fff; overflow: hidden; box-shadow: 0 0 60px rgba(13,47,74,.10); position: relative; }
.inner { padding: 0 24px; }
h1, h2, .hd-font { font-feature-settings: "palt"; }

/* ---------- reveal ---------- */
.rv { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.rv.is-in { opacity: 1; transform: none; }
.no-js .rv { opacity: 1; transform: none; }

/* ---------- 汎用 ---------- */
.kicker { display: flex; align-items: center; gap: 10px; font-family: var(--ff-h); font-weight: 800; font-size: 13px; color: var(--blue); letter-spacing: .08em; margin-bottom: 14px; }
.kicker span { font-family: var(--ff-n); font-weight: 800; font-size: 12px; letter-spacing: .18em; color: #fff; background: var(--blue); padding: 2px 10px 1px; border-radius: 4px; }
.kicker::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(11,109,181,.4), transparent); }
.kicker.-w { color: #fff; justify-content: center; }
.kicker.-w span { background: #fff; color: var(--cyan-d); }
.kicker.-w::after { display: none; }
.lift { position: relative; border-radius: 34px 34px 0 0; margin-top: -34px; z-index: 1; }
.pill { display: inline-block; background: var(--red); color: #fff; border-radius: 999px; padding: 0 .5em; margin: 0 .15em; line-height: 1.5; box-shadow: 0 3px 0 rgba(160,20,40,.25); }
.ul-red { background: linear-gradient(transparent 86%, rgba(255,95,114,.85) 86%); font-weight: 700; }
.dot-red { display: inline-flex; align-items: center; justify-content: center; width: 1.7em; height: 1.7em; border-radius: 50%; background: var(--red); color: #fff; margin: 0 1px; font-weight: 700; line-height: 1; transform: translateY(-1px); }

/* ---------- header ---------- */
.hd { padding: 12px 20px 10px; background: #fff; display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; }
.hd__logo img { width: 118px; height: auto; display: block; }
.hd__note { font-size: 10px; color: var(--sub); line-height: 1.4; text-align: right; }

/* ---------- MV（写真の空を上へ伸ばし、空の中にコピーを置く） ---------- */
.wrap { --fw: min(100vw, var(--frame)); }
.mv { position: relative; overflow: hidden; color: #fff; text-align: center;
  background: radial-gradient(120% 60% at 85% 0%, rgba(255,255,255,.28), transparent 60%), linear-gradient(180deg, #163f86 0%, #24539e 38%, #3364b0 100%); }
.mv::before { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px) 0 0 / 26px 26px, linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px) 0 0 / 26px 26px;
  -webkit-mask-image: linear-gradient(#000, transparent 60%); mask-image: linear-gradient(#000, transparent 60%); pointer-events: none; }
.mv::after { content: ""; position: absolute; top: -60px; right: -40px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(255,250,220,.55), rgba(255,250,220,0) 65%); pointer-events: none; animation: sun 9s ease-in-out infinite alternate; }
@keyframes sun { from { transform: translate(0, 0); opacity: .8; } to { transform: translate(-14px, 10px); opacity: 1; } }
.mv__copy { position: relative; z-index: 2; padding: calc(var(--fw) * .05) 16px 0; }
.mv__eyebrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: calc(var(--fw) * .026); letter-spacing: .06em; padding: 5px 14px 5px 10px; border-radius: 999px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.4); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.mv__eyebrow svg { width: 1.25em; height: 1.25em; color: #ffd75e; }
.mv__sub { font-weight: 700; font-size: calc(var(--fw) * .031); margin-top: calc(var(--fw) * .03); letter-spacing: .06em; --d: .08s; opacity: .95; }
.mv__sub::before { content: "＼"; margin-right: .35em; opacity: .7; }
.mv__sub::after { content: "／"; margin-left: .35em; opacity: .7; }
.mv__sub .pill { box-shadow: none; }
.mv__ttl { font-family: var(--ff-b); font-weight: 900; line-height: 1.18; margin-top: calc(var(--fw) * .012); letter-spacing: .01em; text-shadow: 0 2px 18px rgba(8,32,74,.35); }
.mv__line { display: block; overflow: hidden; padding: .04em 0 .08em; }
.mv__line > span { display: inline-block; transform: translateY(108%); transition: transform 1.1s var(--ease); }
.mv__line:nth-child(1) { font-size: calc(var(--fw) * .054); letter-spacing: .3em; font-weight: 700; padding-left: .3em; }
.mv__line.-xl { font-size: calc(var(--fw) * .081); }
.mv__line em { font-style: normal; color: #ffd75e; font-size: 1.42em; letter-spacing: -.01em; margin-right: .04em; position: relative; display: inline-block; }
.mv__line em::after { content: ""; position: absolute; left: 2%; right: 2%; bottom: .06em; height: .09em; border-radius: 1em; background: #ffd75e; transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease) 1.05s; }
.is-ready .mv__line em::after { transform: scaleX(1); }
.mv__line:nth-child(2) > span { transition-delay: .1s; }
.mv__line:nth-child(3) > span { transition-delay: .2s; }
.is-ready .mv__line > span { transform: none; }
.mv__chips { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin-top: calc(var(--fw) * .03); }
.mv__chips li { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; font-size: calc(var(--fw) * .025); padding: 4px 11px 4px 8px; border-radius: 999px;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.32); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  opacity: 0; transform: translateY(8px); transition: .7s var(--ease); }
.mv__chips svg { width: 1.2em; height: 1.2em; color: #ffd75e; }
.is-ready .mv__chips li { opacity: 1; transform: none; }
.is-ready .mv__chips li:nth-child(1) { transition-delay: .55s; }
.is-ready .mv__chips li:nth-child(2) { transition-delay: .65s; }
.is-ready .mv__chips li:nth-child(3) { transition-delay: .75s; }
.mv__photo { position: relative; z-index: 1; margin: calc(var(--fw) * -.06) 0 0; overflow: hidden;
  -webkit-mask-image: linear-gradient(transparent 0, #000 26%); mask-image: linear-gradient(transparent 0, #000 26%); }
.mv__photo img { display: block; width: 100%; height: auto; animation: kb 16s var(--ease) both; transform-origin: 50% 70%; }
.mv__photo::after { content: ""; position: absolute; inset: auto 0 0; height: 46%; background: linear-gradient(rgba(13,47,74,0), rgba(13,47,74,.55)); }
@keyframes kb { from { transform: scale(1.12); } to { transform: scale(1); } }
.cta.-mv { position: relative; z-index: 3; margin: calc(var(--fw) * -.2) 0 0; padding: 0 16px; }
.cta.-mv .btn { box-shadow: 0 14px 30px rgba(8,32,74,.45), inset 0 -3px 0 rgba(0,0,0,.12); }
.mv__cap { position: relative; z-index: 3; font-size: 10px; color: rgba(255,255,255,.85); margin: 10px 0 0; padding-bottom: 50px; }

/* ---------- PC：両脇パネル（1080px以上） ---------- */
.side { display: none; }
@media (min-width: 1080px) {
  body { background: radial-gradient(70% 50% at 50% 0%, #ffffff, transparent 70%), linear-gradient(180deg, #e7f2f8, #d6e8f1); background-attachment: fixed; }
  body::before { content: ""; position: fixed; inset: 0; background: linear-gradient(rgba(11,109,181,.05) 1px, transparent 1px) 0 0 / 32px 32px, linear-gradient(90deg, rgba(11,109,181,.05) 1px, transparent 1px) 0 0 / 32px 32px; pointer-events: none; z-index: -1; }
  .side { display: block; position: fixed; top: 50%; transform: translateY(-50%); width: min(300px, calc(50vw - 260px - 60px)); z-index: 5; }
  .side.-l { right: calc(50% + 260px + 40px); text-align: left; }
  .side.-r { left: calc(50% + 260px + 40px); text-align: center; }
  .side__logo { width: 150px; height: auto; display: block; }
  .side__area { display: inline-block; margin-top: 26px; font-size: 12px; font-weight: 700; letter-spacing: .12em; color: var(--blue); border: 1px solid rgba(11,109,181,.4); border-radius: 999px; padding: 2px 12px; }
  .side__ttl { margin-top: 12px; font-weight: 900; font-size: 26px; line-height: 1.4; color: var(--navy); letter-spacing: .01em; font-feature-settings: "palt"; }
  .side__ttl em { font-style: normal; color: var(--blue); font-size: 1.3em; }
  .side__pts { margin-top: 22px; display: flex; flex-direction: column; gap: 10px; }
  .side__pts li { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; color: var(--ink); }
  .side__pts b { font-family: var(--ff-n); font-size: 13px; color: #fff; background: var(--blue); border-radius: 6px; padding: 1px 7px; }
  .side__q { font-weight: 900; font-size: 22px; line-height: 1.45; color: var(--navy); margin-bottom: 26px; font-feature-settings: "palt"; }
  .btn.-side { padding: 18px 40px 15px 26px; font-size: 16px; }
  .side__note { margin-top: 14px; font-size: 12px; color: var(--sub); line-height: 1.7; }
}

/* ---------- intro ---------- */
.intro { padding: 10px 0 70px; background: #fff; position: relative; margin-top: -34px; border-radius: 34px 34px 0 0; z-index: 2; padding-top: 44px; }
.intro__body { display: flex; align-items: center; gap: 16px; }
.intro__img { flex: 0 0 112px; position: relative; }
.intro__img img { width: 112px; height: 112px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 5px var(--cyan-l), 0 10px 20px rgba(13,47,74,.12); }
.intro__bubble { position: relative; flex: 1; background: var(--cyan-ll); border: 2px solid var(--cyan); border-radius: 18px; padding: 12px 14px; font-family: var(--ff-h); font-weight: 700; font-size: 16px; line-height: 1.6; }
.intro__bubble::before { content: ""; position: absolute; left: -12px; top: 50%; margin-top: -9px; border: 9px solid transparent; border-right: 12px solid var(--cyan); border-left: 0; }
.intro__bubble::after { content: ""; position: absolute; left: -8px; top: 50%; margin-top: -7px; border: 7px solid transparent; border-right: 9px solid var(--cyan-ll); border-left: 0; }
.intro__bubble strong { font-weight: 800; font-size: 19px; background: linear-gradient(transparent 60%, #bdeaf5 60%); }
.intro__txt { margin-top: 22px; font-size: 16px; --d: .1s; }
.intro__txt b { color: var(--blue); }

/* ---------- reason ---------- */
.reason { background: var(--cyan-l); padding: 46px 0 20px; }
.reason::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(rgba(11,109,181,.05) 1px, transparent 1px) 0 0 / 26px 26px, linear-gradient(90deg, rgba(11,109,181,.05) 1px, transparent 1px) 0 0 / 26px 26px; pointer-events: none; }
.reason .inner { position: relative; }
.reason__txt { font-size: 16px; margin-bottom: 14px; }
.reason__txt b { font-weight: 900; }

/* 絞り込みの図（条件 → 診断 → 合う会社だけ残る） */
.match { position: relative; margin: 26px 0 10px; background: #fff; border-radius: 24px; padding: 22px 16px 18px; box-shadow: 0 18px 40px rgba(13,47,74,.10), inset 0 0 0 1px rgba(76,195,220,.28); }
.match__eyebrow { display: flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--ff-h); font-weight: 800; font-size: 14px; color: var(--ink); }
.match__eyebrow span { font-size: 11px; color: #fff; background: var(--blue); border-radius: 4px; padding: 0 7px; line-height: 1.7; }
.match__conds { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 14px; }
.match__conds li { text-align: center; background: var(--cyan-ll); border: 1.5px solid var(--cyan); border-radius: 12px; padding: 7px 2px 8px; font-family: var(--ff-h); font-weight: 800; font-size: 15px; color: var(--blue); line-height: 1.25;
  opacity: 0; transform: translateY(10px); transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: calc(var(--k) * .1s); }
.match__conds small { display: block; font-family: var(--ff-b); font-weight: 700; font-size: 10.5px; color: var(--sub); margin-bottom: 1px; }
.match__wires { display: block; width: 100%; height: 50px; overflow: visible; }
.match__wires path { fill: none; stroke: var(--cyan); stroke-width: 2.4; stroke-linecap: round; vector-effect: non-scaling-stroke; stroke-dasharray: 4 6; opacity: 0; transition: opacity .5s ease .45s; animation: flow 1.1s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -20; } }
.match__node { position: relative; display: flex; align-items: center; justify-content: center; gap: 10px; width: max-content; margin: 0 auto; padding: 10px 20px 10px 14px; border-radius: 999px;
  background: linear-gradient(120deg, var(--blue), var(--cyan-d)); color: #fff; font-weight: 800; font-size: 13px; line-height: 1.35; text-align: left; box-shadow: 0 10px 22px rgba(11,109,181,.3);
  opacity: 0; transform: scale(.85); transition: opacity .5s var(--ease) .75s, transform .6s var(--ease) .75s; }
.match__node svg { width: 30px; height: 30px; padding: 6px; border-radius: 50%; background: rgba(255,255,255,.22); color: #fff; flex: 0 0 30px; }
.match__node::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 0 rgba(76,195,220,.55); }
.match.is-in .match__node::after { animation: ring 1.8s ease-out 1.2s 2; }
@keyframes ring { to { box-shadow: 0 0 0 14px rgba(76,195,220,0); } }
.match__stem { width: 2px; height: 20px; margin: 0 auto; background: repeating-linear-gradient(var(--cyan) 0 4px, transparent 4px 8px); }
.match__board { background: var(--cyan-ll); border-radius: 18px; padding: 12px 12px 10px; box-shadow: inset 0 0 0 1px rgba(76,195,220,.25); }
.match__count { text-align: center; font-family: var(--ff-h); font-weight: 800; font-size: 14px; color: var(--ink); }
.match__count b { font-family: var(--ff-n); font-size: 26px; margin: 0 2px; display: inline-block; transition: color .4s, transform .5s var(--ease); }
.match__count .-from { position: relative; color: var(--ink); }
.match__count .-from::after { content: ""; position: absolute; left: -2px; right: -2px; top: 52%; height: 2px; background: var(--sub); transform: scaleX(0); transform-origin: left; transition: transform .4s ease 2.1s; }
.match__count .-to { color: #b9c6cc; }
.match__count i { font-style: normal; color: var(--cyan-d); margin: 0 6px; }
.match.is-in .match__count .-from { color: var(--sub); transition-delay: 2.1s; }
.match.is-in .match__count .-from::after { transform: scaleX(1); }
.match.is-in .match__count .-to { color: var(--red); transform: scale(1.25); transition-delay: 2.3s; }
.match__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 8px; }
.match__grid li { position: relative; aspect-ratio: 1.2; border-radius: 10px; border: 1px solid var(--line);
  background: linear-gradient(#e2ebee, #e2ebee) 50% 74% / 46% 5px no-repeat, linear-gradient(#edf2f4, #edf2f4) 50% 86% / 30% 5px no-repeat, #fff;
  transition: opacity .5s ease, transform .5s var(--ease), border-color .4s, box-shadow .4s; transition-delay: calc(1.25s + var(--k) * .06s); }
.match__grid li::before { content: ""; position: absolute; left: 50%; top: 16%; width: 30%; height: 34%; margin-left: -15%; clip-path: var(--house); background: #cfdde3; transition: background .4s; transition-delay: inherit; }
.match.is-in .match__grid li:not(.-hit) { opacity: .3; transform: scale(.9); }
.match.is-in .match__grid li.-hit { border: 2px solid var(--red); transform: scale(1.03); box-shadow: 0 8px 18px rgba(255,95,114,.28); transition-delay: 2.2s; }
.match.is-in .match__grid li.-hit::before { background: var(--cyan); }
.match__grid li.-hit::after { content: ""; position: absolute; top: -8px; right: -8px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%23fff' stroke-width='3.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 13px no-repeat;
  box-shadow: 0 3px 8px rgba(0,0,0,.15); transform: scale(0); transition: transform .45s var(--ease) 2.45s; }
.match.is-in .match__grid li.-hit::after { transform: scale(1); }
.match__note { font-size: 10.5px; color: var(--sub); text-align: center; margin-top: 10px; }
.match.is-in .match__conds li { opacity: 1; transform: none; }
.match.is-in .match__wires path { opacity: 1; }
.match.is-in .match__node { opacity: 1; transform: none; }

/* ---------- message (4 criteria) ---------- */
.message { padding: 50px 0 80px; text-align: center; background: #fff; position: relative; z-index: 1; margin-top: -1px; }
.message__head { font-family: var(--ff-h); font-weight: 800; color: var(--blue); font-size: 19px; line-height: 1.6; }
.message__big { display: inline-block; font-size: 44px; line-height: 1.25; margin: 4px 0 2px; background: linear-gradient(transparent 70%, #ffe3e7 70%); padding: 0 6px; }
.criteria { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 28px 0 0; }
.crit { position: relative; background: #fff; border-radius: 20px; padding: 22px 10px 16px; box-shadow: 0 10px 28px rgba(13,47,74,.08), inset 0 0 0 2px var(--cyan-l); display: flex; flex-direction: column; align-items: center; }
.crit:nth-child(2) { --d: .08s; } .crit:nth-child(3) { --d: .16s; } .crit:nth-child(4) { --d: .24s; }
.crit__no { position: absolute; top: 10px; left: 14px; font-family: var(--ff-n); font-weight: 800; font-size: 13px; color: var(--cyan); letter-spacing: .05em; }
.crit__ic { width: 58px; height: 58px; padding: 13px; color: #fff; background: var(--cyan); clip-path: var(--house); border-radius: 0; margin-bottom: 10px; }
.crit b { font-family: var(--ff-h); font-weight: 800; font-size: 21px; color: var(--ink); line-height: 1.3; }
.crit small { font-size: 12px; color: var(--sub); margin-top: 2px; }

/* ---------- diagnosis ---------- */
.diag { background: var(--cyan); background-image: var(--grid), linear-gradient(180deg, #4cc3dc, #3db6d1); padding: 46px 0 76px; }
.diag__ttl { font-family: var(--ff-h); font-weight: 800; color: #fff; font-size: 28px; line-height: 1.5; text-align: center; text-shadow: 0 3px 0 rgba(7,79,134,.18); --d: .08s; }
.marquee { margin: 22px 0 26px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee__track { display: flex; gap: 10px; width: max-content; animation: mq 50s linear infinite; }
.marquee__track img { width: 132px; height: 92px; object-fit: cover; border-radius: 12px; border: 3px solid rgba(255,255,255,.9); }
@keyframes mq { to { transform: translateX(-50%); } }

.fcard { background: #fff; margin: 0 16px; border-radius: 24px; padding: 30px 0 30px; box-shadow: 0 24px 50px rgba(7,79,134,.25); position: relative; }
.fcard::before { content: ""; position: absolute; left: 50%; top: -14px; width: 90px; height: 28px; margin-left: -45px; background: #fff; clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.fcard__head { text-align: center; padding: 0 16px 10px; }
.fcard__balloon { display: inline-block; position: relative; border: 2px solid var(--ink); border-radius: 999px; padding: 1px 18px; font-weight: 800; font-size: 14px; background: #fff; }
.fcard__balloon::after { content: ""; position: absolute; left: 50%; bottom: -7px; width: 10px; height: 10px; background: #fff; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: translateX(-50%) rotate(45deg); }
.fcard__ttl { display: table; margin: 16px auto 0; font-family: var(--ff-h); font-weight: 800; font-size: 30px; line-height: 1.35; position: relative; padding: 0 4px 6px; }
.fcard__ttl::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--blue), var(--cyan)); }
.fcard__txt { font-size: 13px; color: var(--sub); margin-top: 12px; }

/* 進捗 */
.qprog { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 12px; padding: 10px 16px; background: rgba(255,255,255,.94); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.qprog__txt { font-weight: 800; font-size: 13px; color: var(--sub); white-space: nowrap; }
.qprog__txt b { font-family: var(--ff-n); font-size: 18px; color: var(--blue); }
.qprog__bar { flex: 1; height: 8px; border-radius: 8px; background: var(--gray); overflow: hidden; }
.qprog__bar i { display: block; height: 100%; width: 0; border-radius: 8px; background: linear-gradient(90deg, var(--cyan), var(--blue)); transition: width .5s var(--ease); }

/* Q（dl/dt/dd は mailform-js の項目自動生成のため） */
#mail_form dl.qb { margin: 18px 0 0; scroll-margin-top: 54px; }
#mail_form dt.q { background: var(--gray); padding: 14px 18px; font-family: var(--ff-h); font-weight: 800; font-size: 20px; line-height: 1.4; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; position: relative; }
#mail_form dt.q .q__no { font-family: var(--ff-n); font-size: 15px; font-weight: 800; color: #fff; background: var(--blue); border-radius: 8px; padding: 3px 9px 2px; line-height: 1.2; transition: background .3s; }
#mail_form dt.q .q__note { font-style: normal; font-size: 12px; font-weight: 700; color: var(--sub); flex-basis: 100%; margin: -4px 0 0 48px; }
#mail_form dt.q::after { content: ""; position: absolute; right: 16px; top: 50%; width: 26px; height: 26px; margin-top: -13px; border-radius: 50%; background: #fff; border: 2px dashed #c9d5da; transition: .3s var(--ease); }
#mail_form dl.qb.is-done dt.q::after { border: 0; background: var(--cyan) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat; transform: scale(1.1); }
#mail_form dl.qb.is-done dt.q .q__no { background: var(--cyan-d); }
#mail_form dd.opts { padding: 14px 14px 4px; }
.opts__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 10px; }
.opts__cat { grid-column: 1 / -1; font-weight: 800; font-size: 13px; color: var(--blue); padding-top: 4px; display: flex; align-items: center; gap: 8px; }
.opts__cat::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.rp { position: relative; display: block; }
.rp input { position: absolute; opacity: 0; pointer-events: none; }
.rp span { display: flex; align-items: center; gap: 10px; min-height: 58px; padding: 8px 10px; border: 1.5px solid #d3dce0; border-radius: 10px; background: #fff; box-shadow: 0 4px 0 #c3ced3;
  font-size: 15px; font-weight: 500; line-height: 1.35; cursor: pointer; transition: background .2s, color .2s, border-color .2s, box-shadow .2s, transform .12s; -webkit-tap-highlight-color: transparent; }
.rp span::before { content: ""; flex: 0 0 22px; height: 22px; border-radius: 50%; border: 1.5px solid #c3ced3; background: #fff; transition: .2s; }
@media (hover: hover) { .rp span:hover { border-color: var(--cyan); } }
.rp input:checked + span { background: var(--cyan); color: #fff; font-weight: 700; border-color: var(--cyan-d); box-shadow: 0 4px 0 var(--cyan-d); }
.rp input:checked + span::before { border: 0; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%2323a7c4' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 15px no-repeat; animation: tick .35s var(--ease); }
@keyframes tick { from { transform: scale(.4); } to { transform: scale(1); } }
.rp input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }
.rp span:active { transform: translateY(3px); box-shadow: 0 1px 0 #c3ced3; }
dd.is-error .rp span { border-color: var(--red); }
.q-err { display: none; color: var(--red); font-weight: 700; font-size: 13px; padding: 8px 2px 0; }
dd.is-error .q-err { display: block; }

.btn-diag { position: relative; display: flex; align-items: center; justify-content: center; gap: 14px; width: calc(100% - 28px); margin: 30px auto 0; border: 0; border-radius: 14px; overflow: hidden;
  background: linear-gradient(180deg, #ff8d9b, var(--pink)); color: #fff; font-family: var(--ff-h); font-weight: 800; font-size: 30px; letter-spacing: .08em; padding: 20px 10px; box-shadow: 0 6px 0 var(--pink-d), 0 16px 28px rgba(233,71,95,.3);
  cursor: pointer; text-decoration: none; transition: transform .12s, box-shadow .12s; }
.btn-diag::after { content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.45), transparent); transform: skewX(-20deg); animation: shine 3.2s ease-in-out infinite; }
@keyframes shine { 0%, 55% { left: -60%; } 100% { left: 130%; } }
.btn-diag:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--pink-d), 0 6px 12px rgba(233,71,95,.25); }
.btn-diag svg { width: 30px; height: 30px; color: #fff; }
.btn-diag.-sm { font-size: 22px; padding: 18px 10px; width: 100%; }
.btn-diag.is-ready { animation: ready 1.6s ease-in-out infinite; }
@keyframes ready { 0%, 100% { box-shadow: 0 6px 0 var(--pink-d), 0 16px 28px rgba(233,71,95,.3), 0 0 0 0 rgba(255,122,138,.5); } 50% { box-shadow: 0 6px 0 var(--pink-d), 0 16px 28px rgba(233,71,95,.3), 0 0 0 10px rgba(255,122,138,0); } }
.diag__msg { display: none; text-align: center; color: var(--red); font-weight: 700; font-size: 14px; margin-top: 14px; }
.diag__msg.is-show { display: block; }

/* step switch（非表示でもDOMに残すこと：mailformが全dt/ddを走査する） */
.fstep { display: none; }
.fstep.is-active { display: block; animation: fade .5s var(--ease); }
@keyframes fade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* scan */
.scan { padding: 40px 24px 50px; text-align: center; display: none; }
.scan.is-active { display: block; }
.scan__house { position: relative; width: 84px; height: 84px; margin: 0 auto 16px; }
.scan__house svg { width: 84px; height: 84px; color: var(--cyan-l); }
.scan__house i { position: absolute; inset: 0; background: linear-gradient(var(--cyan), var(--blue)); clip-path: polygon(50% 10%, 94% 46%, 82% 46%, 82% 88%, 18% 88%, 18% 46%, 6% 46%); -webkit-mask: linear-gradient(transparent 0 0); animation: fillup 1.7s var(--ease) forwards; }
@keyframes fillup { from { clip-path: polygon(50% 88%, 94% 88%, 82% 88%, 82% 88%, 18% 88%, 18% 88%, 6% 88%); } to { clip-path: polygon(50% 10%, 94% 46%, 82% 46%, 82% 88%, 18% 88%, 18% 46%, 6% 46%); } }
.scan__txt { font-family: var(--ff-h); font-weight: 800; font-size: 19px; color: var(--blue); }
.scan__steps { margin: 16px auto 0; display: inline-flex; flex-direction: column; gap: 6px; text-align: left; font-size: 13px; color: var(--sub); }
.scan__steps li { display: flex; align-items: center; gap: 8px; opacity: .35; transition: opacity .3s; }
.scan__steps li::before { content: ""; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line); flex: 0 0 18px; transition: .3s; }
.scan__steps li.is-on { opacity: 1; color: var(--ink); font-weight: 700; }
.scan__steps li.is-on::before { border-color: var(--cyan); background: var(--cyan) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%23fff' stroke-width='3.6' stroke-linecap='round'/%3E%3C/svg%3E") center / 12px no-repeat; }

/* result teaser */
.hit { padding: 18px 14px 0; text-align: center; }
.hit__done { display: inline-block; font-family: var(--ff-h); font-weight: 800; color: #fff; background: var(--blue); font-size: 13px; border-radius: 999px; padding: 2px 14px; letter-spacing: .1em; }
.hit__ttl { font-family: var(--ff-h); font-weight: 800; font-size: 21px; line-height: 1.5; margin-top: 10px; }
.hit__num { display: inline-block; font-family: var(--ff-n); color: var(--red); font-size: 72px; line-height: .9; margin: 0 4px; vertical-align: -10px; min-width: .7em; }
.hit__cond { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 14px 0 4px; }
.hit__cond li { font-size: 12px; font-weight: 700; color: var(--blue); background: var(--cyan-l); border-radius: 999px; padding: 3px 11px; }
.hit__cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 16px 0 0; text-align: left; }
.lockcard { position: relative; border-radius: 14px; overflow: hidden; background: #fff; box-shadow: 0 6px 16px rgba(13,47,74,.10), inset 0 0 0 1px var(--line); animation: fade .6s var(--ease) both; }
.lockcard:nth-child(2) { animation-delay: .1s; } .lockcard:nth-child(3) { animation-delay: .2s; } .lockcard:nth-child(4) { animation-delay: .3s; }
.lockcard img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; filter: blur(6px) saturate(.9); transform: scale(1.1); }
.lockcard__body { padding: 8px 10px 10px; }
.lockcard__rank { display: inline-block; font-size: 11px; font-weight: 800; color: #fff; background: var(--blue); border-radius: 4px; padding: 0 7px; }
.lockcard__name { font-weight: 800; font-size: 14px; margin-top: 4px; color: transparent; text-shadow: 0 0 7px rgba(0,0,0,.5); user-select: none; }
.lockcard__lock { position: absolute; top: 37.5%; left: 50%; transform: translate(-50%, -50%); width: 46px; height: 46px; border-radius: 50%; background: rgba(255,255,255,.94); display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 12px rgba(0,0,0,.18); color: var(--blue); }
.lockcard__lock svg { width: 21px; height: 21px; }
.hit__more { font-size: 12px; color: var(--sub); margin-top: 8px; }
.unlock { margin: 26px 0 0; border: 2.5px solid var(--red); border-radius: 18px; padding: 20px 14px 14px; position: relative; background: linear-gradient(180deg, #fff6f7, #fff); }
.unlock__tag { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--red); color: #fff; font-weight: 800; font-size: 13px; border-radius: 999px; padding: 2px 16px; white-space: nowrap; }
.unlock__ttl { font-family: var(--ff-h); font-weight: 800; font-size: 18px; line-height: 1.55; }
.unlock__ttl em { font-style: normal; color: var(--red); }
.unlock__list { display: flex; flex-direction: column; gap: 5px; margin-top: 10px; text-align: left; font-size: 14px; font-weight: 700; }
.unlock__list li { padding-left: 28px; position: relative; line-height: 1.55; }
.unlock__list li::before { content: ""; position: absolute; left: 2px; top: 2px; width: 19px; height: 19px; border-radius: 50%; background: var(--cyan) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%23fff' stroke-width='3.6' stroke-linecap='round'/%3E%3C/svg%3E") center / 12px no-repeat; }

/* personal info */
.pinfo { margin-top: 8px; }
#mail_form dt.pf { padding: 0 14px; font-weight: 800; font-size: 15px; display: flex; align-items: center; gap: 8px; }
#mail_form dt.pf .req { font-size: 11px; color: #fff; background: var(--red); border-radius: 4px; padding: 0 6px; line-height: 1.7; }
#mail_form dd.pf { padding: 6px 14px 0; }
#mail_form dd.pf input[type="text"], #mail_form dd.pf input[type="tel"], #mail_form dd.pf input[type="email"] { width: 100%; font-size: 16px; padding: 15px 14px; border: 1.5px solid #ccd7dc; border-radius: 10px; background: var(--cyan-ll); font-family: inherit; transition: border-color .2s, box-shadow .2s, background .2s; }
#mail_form dd.pf input:focus { outline: 0; border-color: var(--cyan); background: #fff; box-shadow: 0 0 0 4px rgba(76,195,220,.22); }
#mail_form dd.pf.is-error input { border-color: var(--red); background: #fff5f6; }
#mail_form .error_blank { display: block; color: var(--red); font-size: 12px; font-weight: 700; }
#mail_form .pinfo dl { margin-top: 16px; }
.agree { margin: 18px 14px 0; font-size: 12px; color: var(--sub); }
.agree__box { max-height: 92px; overflow: auto; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; background: #fafcfd; line-height: 1.6; }
.agree__box h3 { font-size: 12px; margin-bottom: 4px; }
.agree__box p + p { margin-top: 4px; }
#agree_check { margin-top: 8px; font-size: 12.5px; }
#agree_check .error_check { display: none; }
#form_submit { margin: 0; }
#form_submit_button { -webkit-appearance: none; appearance: none; display: block; width: calc(100% - 28px); margin: 22px auto 0; border: 0; border-radius: 14px; background: linear-gradient(180deg, #ff8d9b, var(--pink)); color: #fff;
  font-family: var(--ff-h); font-weight: 800; font-size: 21px; letter-spacing: .05em; padding: 20px 10px; box-shadow: 0 6px 0 var(--pink-d), 0 16px 28px rgba(233,71,95,.28); cursor: pointer; }
#form_submit_button:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--pink-d); }
.fnote { text-align: center; font-size: 12px; color: var(--sub); margin-top: 14px; padding: 0 14px; }
.back { display: block; margin: 14px auto 0; background: none; border: 0; color: var(--blue); text-decoration: underline; font-size: 13px; cursor: pointer; }
.preview-note { margin: 14px 14px 0; padding: 10px; background: #fff3cd; border: 1px solid #f0d27a; border-radius: 10px; font-size: 13px; font-weight: 700; text-align: center; }

/* ---------- note ---------- */
.note { background: #fff; position: relative; z-index: 2; margin-top: -34px; border-radius: 34px 34px 0 0; }
.note__head { padding: 46px 16px 64px; text-align: center; }
.note__ttl { font-family: var(--ff-h); font-weight: 800; font-size: 21px; line-height: 1.65; }
.note__ttl .em { color: var(--red); }
.note__ttl .em i { font-style: normal; position: relative; }
.note__ttl .em i::before { content: ""; position: absolute; top: -.32em; left: 50%; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: var(--red); }
.note__ttl .big { display: block; color: var(--blue); font-size: 44px; line-height: 1.3; letter-spacing: .04em; }
.note__body { background: var(--cyan); background-image: var(--grid), linear-gradient(180deg, #4cc3dc, #3db6d1); padding: 30px 0 30px; }
.slider { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 22px 24px 8px; scrollbar-width: none; scroll-padding: 0 24px; }
.slider::-webkit-scrollbar { display: none; }
.ncard { flex: 0 0 88%; scroll-snap-align: start; background: #fff; border-radius: 28px; padding: 36px 22px 26px; position: relative; box-shadow: 0 18px 36px rgba(7,79,134,.2); }
.ncard__no { position: absolute; top: -18px; left: 50%; transform: translateX(-50%) skewX(-14deg); background: var(--blue); color: #fff; font-family: var(--ff-n); font-weight: 800; font-size: 22px; padding: 1px 26px; border-radius: 8px; box-shadow: 0 6px 12px rgba(7,79,134,.25); }
.ncard__no span { display: inline-block; transform: skewX(14deg); }
.ncard__ttl { font-family: var(--ff-h); font-weight: 800; color: var(--blue); font-size: 20px; line-height: 1.8; }
.ncard__ttl mark { background: var(--blue); color: #fff; padding: 1px 8px; border-radius: 3px; }
.ncard__txt { font-size: 14.5px; margin-top: 14px; }
.ncard__img { margin-top: 16px; border-radius: 16px; overflow: hidden; }
.ncard__img img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.nlist { display: flex; flex-direction: column; gap: 8px; }
.nlist li { display: flex; gap: 8px; font-size: 14px; line-height: 1.55; }
.nlist__num { flex: 0 0 22px; height: 22px; border-radius: 50%; background: var(--blue); color: #fff; font-family: var(--ff-n); font-weight: 800; font-size: 13px; display: flex; align-items: center; justify-content: center; margin-top: 1px; }
.nballoon { background: var(--gray); border-radius: 14px; padding: 16px; margin-top: 14px; position: relative; }
.nballoon::after { content: ""; position: absolute; left: 50%; bottom: -12px; transform: translateX(-50%); border: 12px solid transparent; border-top-color: var(--gray); border-bottom: 0; }
.nbox { background: linear-gradient(135deg, var(--blue), #1688d6); color: #fff; font-weight: 800; text-align: center; padding: 14px 10px; margin-top: 20px; font-size: 14px; line-height: 1.65; border-radius: 12px; }
.chips { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.chips li { background: var(--cyan); color: #fff; font-weight: 800; font-size: 13px; border-radius: 999px; padding: 4px 12px; }
.snav { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 18px; }
.snav__arw { width: 40px; height: 40px; border-radius: 50%; border: 2px solid rgba(255,255,255,.8); background: transparent; color: #fff; font-size: 24px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0 0 3px; transition: background .2s; }
.snav__arw:active { background: rgba(255,255,255,.25); }
.dots { display: flex; gap: 10px; }
.dots button { width: 10px; height: 10px; border-radius: 10px; border: 0; background: rgba(255,255,255,.55); padding: 0; cursor: pointer; transition: width .3s var(--ease), background .3s; }
.dots button.is-on { background: #fff; width: 28px; }

/* ---------- madori ---------- */
.madori { padding: 50px 0 0; background: #fff; position: relative; z-index: 2; margin-top: -34px; border-radius: 34px 34px 0 0; }
.madori__ttl { font-family: var(--ff-h); font-weight: 800; font-size: 25px; line-height: 1.5; text-align: center; --d: .05s; }
.madori__ttl .blue { color: var(--blue); }
.madori__txt { font-size: 15px; margin-top: 16px; --d: .1s; }
.madori__txt b { background: linear-gradient(transparent 60%, #ffe1e5 60%); }
.gate { margin: 30px 0 0; background: var(--cyan-l); background-image: linear-gradient(rgba(11,109,181,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(11,109,181,.05) 1px, transparent 1px); background-size: 22px 22px; border-radius: 24px; padding: 26px 14px 22px; text-align: center; }
.gate__tag { display: inline-block; background: var(--red); color: #fff; font-weight: 800; font-size: 13px; border-radius: 999px; padding: 3px 16px; }
.gate__ttl { font-family: var(--ff-h); font-weight: 800; font-size: 19px; line-height: 1.5; margin-top: 10px; }
.gate__ttl .top5 { display: block; font-size: 38px; color: var(--blue); line-height: 1.22; margin: 4px 0; }
.gate__ttl .top5 em { font-family: var(--ff-n); font-style: normal; color: var(--red); font-size: 1.25em; }
.rank { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; text-align: left; counter-reset: rk; }
.rank li { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 14px; padding: 8px 8px 8px 8px; position: relative; overflow: hidden; box-shadow: 0 4px 12px rgba(13,47,74,.06); }
.rank:not(.-open) li::after { content: ""; position: absolute; top: 0; bottom: 0; left: -40%; width: 30%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.7), transparent); transform: skewX(-20deg); animation: shine 4s ease-in-out infinite; animation-delay: calc(var(--i, 0) * .25s); }
.rank li:nth-child(2) { --i: 1; } .rank li:nth-child(3) { --i: 2; } .rank li:nth-child(4) { --i: 3; } .rank li:nth-child(5) { --i: 4; }
.rank__n { flex: 0 0 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--ff-n); font-weight: 800; color: #fff; background: #9fb0b8; font-size: 18px; }
.rank li:nth-child(1) .rank__n { background: linear-gradient(135deg, #f3c94a, #c9961f); }
.rank li:nth-child(2) .rank__n { background: linear-gradient(135deg, #c9d2d7, #8f9ca3); }
.rank li:nth-child(3) .rank__n { background: linear-gradient(135deg, #e0a06c, #a96432); }
.rank__img { flex: 0 0 88px; height: 62px; border-radius: 10px; overflow: hidden; }
.rank__img img { width: 100%; height: 100%; object-fit: cover; filter: blur(4px); transform: scale(1.12); }
.rank__body { flex: 1; min-width: 0; padding-right: 38px; }
.rank__t, .rank__m, .rank__d { display: block; }
.rank__t { font-weight: 800; font-size: 14px; line-height: 1.4; color: transparent; text-shadow: 0 0 7px rgba(0,0,0,.45); user-select: none; }
.rank__m { font-size: 11px; color: var(--sub); margin-top: 3px; }
.rank__lock { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border-radius: 50%; background: var(--blue); display: flex; align-items: center; justify-content: center; color: #fff; }
.rank__lock svg { width: 14px; height: 14px; }
.gate__btn { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; background: var(--blue); color: #fff; text-decoration: none; font-weight: 800; font-size: 15px; border-radius: 999px; padding: 12px 22px; box-shadow: 0 4px 0 var(--blue-d); }
.gate__btn svg { width: 15px; height: 15px; }
.why { margin-top: 50px; }
.why__ttl { font-family: var(--ff-h); font-weight: 800; font-size: 21px; line-height: 1.55; text-align: center; }
.why__ttl .blue { color: var(--blue); }
.why__list { display: flex; flex-direction: column; gap: 14px; margin-top: 20px; }
.why__item { border-radius: 18px; overflow: hidden; background: #fff; box-shadow: 0 8px 22px rgba(13,47,74,.08), inset 0 0 0 2px var(--cyan-l); }
.why__item:nth-child(2) { --d: .08s; } .why__item:nth-child(3) { --d: .16s; }
.why__head { display: flex; align-items: center; gap: 10px; background: var(--cyan); color: #fff; padding: 9px 16px; font-family: var(--ff-h); font-weight: 800; font-size: 16.5px; line-height: 1.4; }
.why__num { font-family: var(--ff-n); font-size: 24px; opacity: .9; }
.why__body { padding: 14px 16px 16px; font-size: 14px; display: flex; gap: 12px; align-items: flex-start; line-height: 1.7; }
.why__body img { flex: 0 0 100px; width: 100px; height: 76px; object-fit: cover; border-radius: 10px; }
.gallery { margin: 50px 0 0; }
.gallery__ttl { font-family: var(--ff-h); font-weight: 800; font-size: 19px; text-align: center; }
.gallery__ttl::before, .gallery__ttl::after { content: ""; display: inline-block; width: 22px; height: 2px; background: var(--cyan); vertical-align: middle; margin: 0 10px; }
.gallery__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 16px; }
.gallery__grid figure { position: relative; overflow: hidden; border-radius: 10px; }
.gallery__grid figure:first-child { grid-column: span 2; grid-row: span 2; }
.gallery__grid img { width: 100%; height: 100%; aspect-ratio: 1; object-fit: cover; display: block; transition: transform 1.2s var(--ease); }
.gallery__grid figure.is-in img { animation: kb2 1.6s var(--ease) both; }
@keyframes kb2 { from { transform: scale(1.12); } to { transform: scale(1); } }
.gallery__grid figcaption { position: absolute; left: 6px; bottom: 6px; font-size: 10px; font-weight: 700; color: #fff; background: rgba(13,47,74,.55); border-radius: 4px; padding: 0 6px; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.gallery__grid figure:nth-child(2) { --d: .06s; } .gallery__grid figure:nth-child(3) { --d: .12s; } .gallery__grid figure:nth-child(4) { --d: .18s; } .gallery__grid figure:nth-child(5) { --d: .24s; } .gallery__grid figure:nth-child(6) { --d: .3s; }
.gallery__cap { font-size: 11px; color: var(--sub); margin-top: 8px; text-align: right; }

/* flow */
.flow { margin: 50px 0 0; padding-bottom: 80px; }
.flow__ttl { font-family: var(--ff-h); font-weight: 800; font-size: 21px; text-align: center; }
.flow__list { margin-top: 18px; display: flex; flex-direction: column; gap: 12px; counter-reset: fl; position: relative; }
.flow__list::before { content: ""; position: absolute; left: 27px; top: 20px; bottom: 20px; width: 2px; background: repeating-linear-gradient(var(--cyan) 0 6px, transparent 6px 11px); }
.flow__list li { position: relative; padding: 12px 14px 12px 70px; font-size: 13.5px; line-height: 1.55; color: var(--sub); background: #fff; border-radius: 16px; }
.flow__list li b { display: block; font-size: 16px; color: var(--ink); margin-bottom: 2px; }
.flow__list li::before { counter-increment: fl; content: counter(fl); position: absolute; left: 8px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; background: #fff; border: 2px solid var(--cyan); color: var(--cyan-d);
  font-family: var(--ff-n); font-weight: 800; font-size: 18px; display: flex; align-items: center; justify-content: center; }
.flow__list li.-hl { background: #fff5f6; box-shadow: inset 0 0 0 2px var(--red); }
.flow__list li.-hl::before { background: var(--red); border-color: var(--red); color: #fff; }
.flow__list li.-hl b { color: var(--pink-d); }
.flow__list li:nth-child(2) { --d: .06s; } .flow__list li:nth-child(3) { --d: .12s; } .flow__list li:nth-child(4) { --d: .18s; } .flow__list li:nth-child(5) { --d: .24s; }

/* closing */
.closing { background: var(--cyan); background-image: var(--grid), linear-gradient(180deg, #4cc3dc, #36b0cc); text-align: center; padding: 48px 24px 54px; color: #fff; overflow: hidden; }
.closing::before { content: ""; position: absolute; left: 50%; bottom: -60px; width: 300px; height: 220px; margin-left: -150px; background: rgba(255,255,255,.12); clip-path: var(--house); pointer-events: none; }
.closing__area { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .14em; border: 1.5px solid rgba(255,255,255,.8); border-radius: 999px; padding: 2px 14px; }
.closing__ttl { font-family: var(--ff-h); font-weight: 800; font-size: 23px; line-height: 1.55; margin-top: 12px; text-shadow: 0 3px 0 rgba(7,79,134,.16); --d: .06s; }
.closing__sub { font-size: 13px; margin-top: 6px; opacity: .95; --d: .1s; }
.closing .btn-diag { margin-top: 22px; --d: .14s; }

/* footer */
.ft { background: var(--navy); text-align: center; padding: 34px 16px 100px; font-size: 12px; color: rgba(255,255,255,.75); }
.ft__logo { display: inline-block; background: #fff; border-radius: 14px; padding: 10px 16px; }
.ft__logo img { width: 130px; display: block; }
.ft__link { display: flex; justify-content: center; gap: 18px; margin: 16px 0 8px; }
.ft__copy { font-size: 10.5px; color: rgba(255,255,255,.5); }

/* fixed CTA */
.fixcta { position: fixed; left: 50%; bottom: 0; transform: translate(-50%, 120%); width: 100%; max-width: var(--frame); padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.88);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 -8px 24px rgba(13,47,74,.12); z-index: 50; transition: transform .45s var(--ease); }
.fixcta.is-show { transform: translate(-50%, 0); }
.fixcta a { display: flex; align-items: center; justify-content: center; gap: 8px; background: linear-gradient(180deg, #ff8d9b, var(--pink)); color: #fff; text-decoration: none; border-radius: 12px; box-shadow: 0 4px 0 var(--pink-d);
  font-family: var(--ff-h); font-weight: 800; font-size: 18px; padding: 13px 8px; }
.fixcta a small { font-size: 11px; background: #fff; color: var(--pink-d); border-radius: 999px; padding: 1px 8px; }
.fixcta a svg { width: 20px; height: 20px; }

/* ================================================
   結果ページ（thanks.html）
================================================ */
.rhero { background: var(--cyan); background-image: var(--grid), linear-gradient(180deg, #5fcde3, #45bcd7); color: #fff; text-align: center; padding: 30px 16px 66px; }
.rhero__done { display: inline-flex; align-items: center; gap: 6px; background: #fff; color: var(--blue); font-weight: 800; font-size: 13px; border-radius: 999px; padding: 3px 16px; box-shadow: 0 6px 16px rgba(7,79,134,.18); }
.rhero__ttl { font-family: var(--ff-h); font-weight: 800; font-size: 25px; line-height: 1.5; margin-top: 12px; text-shadow: 0 3px 0 rgba(7,79,134,.18); }
.rhero__ttl .n { font-family: var(--ff-n); color: #fff36b; font-size: 60px; line-height: 1; margin: 0 4px; vertical-align: -8px; }
.rhero .hit__cond li { background: rgba(255,255,255,.95); }
.sec { padding: 40px 0 6px; background: #fff; position: relative; }
.sec.lift { padding-top: 44px; }
.sec__ttl { font-family: var(--ff-h); font-weight: 800; font-size: 22px; line-height: 1.5; text-align: center; }
.sec__ttl .blue { color: var(--blue); }
.sec__lead { font-size: 14px; margin-top: 10px; color: var(--sub); }
.cmp { margin: 18px -24px 0; overflow-x: auto; -webkit-overflow-scrolling: touch; padding: 0 0 8px; }
.cmp table { border-collapse: separate; border-spacing: 0; font-size: 13px; line-height: 1.55; min-width: 640px; }
.cmp th, .cmp td { border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); padding: 10px 10px; vertical-align: top; background: #fff; width: 150px; }
.cmp thead th { background: var(--blue); color: #fff; text-align: center; vertical-align: middle; font-size: 14px; }
.cmp thead th .rk { display: block; font-size: 11px; opacity: .9; font-weight: 700; }
.cmp thead th.-pick { background: var(--red); }
.cmp tbody th { position: sticky; left: 0; z-index: 1; width: 92px; min-width: 92px; background: var(--cyan-l); color: var(--blue); font-weight: 800; text-align: left; box-shadow: 4px 0 8px rgba(13,47,74,.06); }
.cmp thead th:first-child { position: sticky; left: 0; z-index: 2; width: 92px; min-width: 92px; background: var(--blue-d); }
.cmp tr.-focus th { background: #ffe8eb; color: var(--pink-d); }
.cmp tr.-focus td { background: #fff7f8; }
.cmp td.-tbd { color: #9aa7ad; }
.cmp .mk-img { display: block; width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 8px; margin-bottom: 4px; }
.cmp__hint { font-size: 11px; color: var(--sub); text-align: right; margin-top: 4px; }
.cmp__hint::after { content: " →"; }
.rank.-open .rank__img img { filter: none; transform: none; }
.rank.-open .rank__t { color: var(--ink); text-shadow: none; }
.rank.-open li { align-items: flex-start; box-shadow: 0 4px 12px rgba(13,47,74,.06), inset 0 0 0 1px var(--line); }
.rank.-open .rank__img { flex-basis: 108px; height: 80px; }
.rank.-open .rank__body { padding-right: 0; }
.rank__d { font-size: 12px; line-height: 1.6; margin-top: 4px; color: var(--sub); }
.catalog { margin-top: 30px; background: var(--cyan-l); border-radius: 24px; padding: 26px 0 28px; }
.catalog__ttl { font-family: var(--ff-h); font-weight: 800; font-size: 21px; line-height: 1.5; text-align: center; padding: 0 12px; }
.catalog__ttl em { font-style: normal; color: var(--red); }
.catalog__sub { font-size: 13px; text-align: center; margin-top: 6px; padding: 0 14px; color: var(--sub); }
.catalog #mail_form dl { margin-top: 16px; }
.mk-checks { padding: 8px 0 0; display: flex; flex-direction: column; gap: 8px; }
.mk-checks label { display: flex; align-items: center; gap: 10px; background: #fff; border: 1.5px solid var(--line); border-radius: 10px; padding: 11px 12px; font-weight: 700; font-size: 15px; cursor: pointer; transition: border-color .2s; }
.mk-checks label:has(input:checked) { border-color: var(--cyan); }
.mk-checks input { width: 20px; height: 20px; accent-color: var(--cyan-d); }
.mk-checks small { font-weight: 400; font-size: 11px; color: var(--sub); margin-left: auto; }
.tbd-note { font-size: 11px; color: #a33; background: #fff4f4; border: 1px dashed #e6a0a8; border-radius: 8px; padding: 6px 10px; margin-top: 12px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .rv, .mv__line > span, .mv__chips li { opacity: 1 !important; transform: none !important; }
}

/* ================================================
   CTA・ヘッダー（sumaii.com/s_3/ と同じ見た目）
   ビビッドピンク＋光が流れる＋数秒おきに弾む／上に吹き出し、下に補足の一言
================================================ */
:root { --pk: #e5196f; --pk-d: #c2005a; --pk-l: #fff0f6; --pk-g: linear-gradient(135deg, #ff4f93 0%, #e5196f 52%, #c2005a 100%); }
.headbanner { line-height: 0; background: #05200f; }
.headbanner img { width: 100%; height: auto; display: block; }

.cta { text-align: center; margin-top: 38px; padding-top: 6px; }
.cta.-in { margin-top: 26px; }
.btn { position: relative; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; max-width: 440px; padding: 18px 44px 16px 30px; border: 0; border-radius: 60px;
  color: #fff; text-decoration: none; font-family: var(--ff-b); font-size: 17px; font-weight: 700; letter-spacing: .05em; line-height: 1.4; cursor: pointer;
  background-image: linear-gradient(110deg, rgba(255,255,255,0) 38%, rgba(255,255,255,.42) 50%, rgba(255,255,255,0) 62%), var(--pk-g);
  background-size: 250% 100%, 100% 100%; background-repeat: no-repeat;
  box-shadow: 0 10px 22px rgba(194,0,90,.35), inset 0 -3px 0 rgba(0,0,0,.12);
  animation: ctaShine 3.2s ease-in-out infinite, ctaBounce 3.2s ease-in-out infinite; }
.btn::after { content: ""; position: absolute; right: 26px; top: 0; bottom: 0; margin: auto; width: 8px; height: 8px; border-top: 2px solid #fff; border-right: 2px solid #fff; transform: rotate(45deg); }
.btn small { font-size: 11.5px; font-weight: 500; letter-spacing: .08em; margin-top: 4px; opacity: .92; }
.btn:hover { filter: brightness(1.06); }
.btn__bubble { position: absolute; right: 22px; top: -15px; z-index: 2; padding: 3px 13px 4px; border: 2px solid var(--pk); border-radius: 40px; background: #fff; color: var(--pk);
  font-family: var(--ff-b); font-size: 12.5px; font-weight: 700; letter-spacing: .04em; line-height: 1.3; white-space: nowrap; box-shadow: 0 3px 8px rgba(0,0,0,.12); }
.btn__bubble::before, .btn__bubble::after { content: ""; position: absolute; left: 24px; border-left: 7px solid transparent; border-right: 7px solid transparent; }
.btn__bubble::before { bottom: -10px; border-top: 9px solid var(--pk); }
.btn__bubble::after { bottom: -6px; border-top: 7px solid #fff; left: 26px; border-left-width: 5px; border-right-width: 5px; }
@keyframes ctaShine { 0% { background-position: 170% 0, 0 0; } 55%, 100% { background-position: -70% 0, 0 0; } }
@keyframes ctaBounce { 0%, 68%, 100% { transform: translateY(0) scale(1); } 74% { transform: translateY(-4px) scale(1.035); } 80% { transform: translateY(0) scale(.985); } 86% { transform: translateY(-1px) scale(1.01); } 92% { transform: none; } }
/* CTA上の一文（＼ ／ 付き） */
.cta__lead { display: flex; align-items: center; justify-content: center; margin: 0 0 22px; font-size: 15px; font-weight: 800; letter-spacing: .04em; color: var(--pk-d); }
.cta__lead::before, .cta__lead::after { content: ""; flex: none; width: 2.5px; height: 1.5em; border-radius: 2px; background: currentColor; }
.cta__lead::before { margin-right: 12px; transform: rotate(-30deg); }
.cta__lead::after { margin-left: 12px; transform: rotate(30deg); }
.cta__lead .-tag { display: inline-block; margin-right: 8px; padding: 2px 9px; border-radius: 4px; background: var(--pk); color: #fff; font-size: 11.5px; letter-spacing: .08em; line-height: 1.6; }
.closing .cta { margin-top: 26px; }

/* 一発診断・登録ボタンも同じピンクに（吹き出しを出すため overflow は可視） */
.btn-diag { overflow: visible; border-radius: 60px; color: #fff;
  background-image: linear-gradient(110deg, rgba(255,255,255,0) 38%, rgba(255,255,255,.42) 50%, rgba(255,255,255,0) 62%), var(--pk-g);
  background-size: 250% 100%, 100% 100%; background-repeat: no-repeat;
  box-shadow: 0 10px 22px rgba(194,0,90,.35), inset 0 -3px 0 rgba(0,0,0,.12); animation: ctaShine 3.2s ease-in-out infinite; }
.btn-diag::after { display: none; }
.btn-diag:active { transform: translateY(2px); box-shadow: 0 4px 10px rgba(194,0,90,.3), inset 0 -3px 0 rgba(0,0,0,.12); }
.btn-diag.is-ready { animation: ctaShine 3.2s ease-in-out infinite, ctaBounce 3.2s ease-in-out infinite; }
.btn-diag .btn__bubble { right: 22px; top: -17px; letter-spacing: .04em; }
#form_submit { position: relative; max-width: calc(100% - 28px); margin: 0 auto; padding-top: 22px; }
#form_submit .btn__bubble { top: 7px; right: 22px; }
#form_submit_button { width: 100%; margin-top: 0; border-radius: 60px;
  background-image: linear-gradient(110deg, rgba(255,255,255,0) 38%, rgba(255,255,255,.42) 50%, rgba(255,255,255,0) 62%), var(--pk-g);
  background-size: 250% 100%, 100% 100%; background-repeat: no-repeat;
  box-shadow: 0 10px 22px rgba(194,0,90,.35), inset 0 -3px 0 rgba(0,0,0,.12); animation: ctaShine 3.2s ease-in-out infinite, ctaBounce 3.2s ease-in-out infinite; }

/* 右下の丸い追従ボタン */
.spcta { position: fixed; right: max(12px, 50% - 248px); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 50; width: 84px; height: 84px; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; text-decoration: none; color: #fff; text-align: center; line-height: 1.2;
  background: radial-gradient(circle at 32% 28%, #ff6aa4 0%, #e5196f 55%, #c2005a 100%); box-shadow: 0 10px 22px rgba(194,0,90,.45), 0 0 0 3px #fff;
  transition: transform .35s cubic-bezier(.2,1.4,.4,1), opacity .3s; animation: ctaBounce 3.2s ease-in-out infinite; }
.spcta b { font-size: 15px; font-weight: 800; letter-spacing: .02em; }
.spcta small { font-size: 11px; font-weight: 700; opacity: .95; }
.spcta::after { content: ""; position: absolute; inset: -3px; border-radius: 50%; border: 3px solid rgba(229,25,111,.5); animation: spRing 2.2s ease-out infinite; pointer-events: none; }
.spcta__tag { position: absolute; top: -10px; left: 50%; transform: translateX(-50%); padding: 1px 9px; border: 2px solid var(--pk); border-radius: 99px; background: #fff; color: var(--pk); font-size: 11px; font-weight: 800; line-height: 1.4; white-space: nowrap; }
.spcta.is-hide { transform: scale(.3); opacity: 0; pointer-events: none; animation: none; }
@keyframes spRing { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(1.45); opacity: 0; } }
.ft { padding-bottom: 120px; }
@media (prefers-reduced-motion: reduce) { .btn, .btn-diag, #form_submit_button, .spcta, .spcta::after { animation: none; } }

/* intro：狭い画面でも吹き出しの文が不自然に折り返さないよう画面幅に比例させる */
.intro__body { gap: calc(var(--fw) * .03); }
.intro__img { flex: 0 0 calc(var(--fw) * .22); }
.intro__img img { width: calc(var(--fw) * .22); height: calc(var(--fw) * .22); }
.intro__bubble { font-size: calc(var(--fw) * .031); padding: calc(var(--fw) * .024) calc(var(--fw) * .028); white-space: nowrap; }
.intro__bubble strong { font-size: calc(var(--fw) * .037); }

/* ===== s_4：3大特典＋来場特典（バナー2枚＋縦の「・・・」） ===== */
.benefit { background: #f7f3ea; padding: 0 0 34px; }
.benefit__img { margin: 0; font-size: 0; line-height: 0; }
.benefit__img img { display: block; width: 100%; height: auto; }
.tk-dots { display: flex; flex-direction: column; align-items: center; gap: 9px; padding: 14px 0 16px; }
.tk-dots span { display: block; width: 11px; height: 11px; border-radius: 50%; background: #e5196f; box-shadow: 0 0 0 3px rgba(255,255,255,.7); opacity: .25; animation: tkDot 1.5s ease-in-out infinite; }
.tk-dots span:nth-child(2) { animation-delay: .2s; }
.tk-dots span:nth-child(3) { animation-delay: .4s; }
@keyframes tkDot { 0%,100% { opacity: .25; transform: scale(.75); } 35% { opacity: 1; transform: scale(1.15); } }
.benefit .cta { margin-top: 26px; padding: 0 16px; }
@media (prefers-reduced-motion: reduce) { .tk-dots span { animation: none; opacity: .8; } }
/* 特典セクション：下の .diag.lift（-34px重なり）に食われないよう余白を確保 */
.benefit { padding-bottom: 84px; }
.benefit .cta { margin-top: 30px; }
/* 登録者限定の特典リスト：見出しは読めるように、写真だけぼかす */
.rank.-perk .rank__t { color: var(--ink); text-shadow: none; user-select: auto; }
.rank.-perk .rank__m { font-size: 11.5px; color: #6b7280; }
.rank.-perk li:nth-child(4) .rank__n { background: linear-gradient(135deg, #ff4f93, #c2005a); }
.gate__note { margin: 10px 0 0; font-size: 11px; color: #6b7280; text-align: center; }
/* 診断結果：件数は出さず、案内できる旨だけ表示 */
.hit__ttl .hit__em { color: var(--blue); font-size: 1.15em; background: linear-gradient(transparent 68%, #ffe3ef 68%); }
/* 見出しに「診断完了！」が入るので、上の同文バッジは出さない */
.hit__done { display: none; }

/* ===== B案：3大特典は予告だけ（中身は診断後） ===== */
.benefit { padding-top: 26px; }
.tease { position: relative; margin: 30px 16px 0; padding: 26px 16px 18px; border: 2.5px dashed #f4a3c4; border-radius: 18px; background: #fff; text-align: center; }
.tease__tag { position: absolute; top: -15px; left: 50%; transform: translateX(-50%); margin: 0; padding: 3px 18px; border-radius: 99px; background: #e5196f; color: #fff; font-weight: 800; font-size: 14px; letter-spacing: .1em; }
.tease__ttl { margin: 0; font-family: var(--ff-h); font-weight: 800; font-size: 19px; line-height: 1.55; color: var(--ink); }
.tease__ttl em { font-style: normal; color: #e5196f; font-size: 1.15em; }
.tease__keys { display: flex; justify-content: center; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
.tease__keys li { display: flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 10px; background: #f3f4f6; color: #6b7280; font-weight: 800; font-size: 13px; }
.tease__keys svg { width: 15px; height: 15px; color: #9ca3af; }
.tease__note { margin: 12px 0 0; font-size: 12px; color: #6b7280; }
/* 診断後：ここで3大特典を公開 */
.unlock__img { margin: 12px -6px 0; font-size: 0; line-height: 0; }
.unlock__img img { display: block; width: 100%; height: auto; border-radius: 10px; }
.unlock__plus { margin: 10px 0 0; font-weight: 800; font-size: 14px; color: #c2005a; }
/* 後半リスト：3大特典の名前は伏せる */
.rank.-perk .rank__t.-hide { color: transparent; text-shadow: 0 0 7px rgba(0,0,0,.45); user-select: none; }
/* 落とし穴スライダーの矢印が、下の特典セクション（-34px 重なり）にかぶらないよう余白を確保 */
.note__body { padding-bottom: 70px; }

/* MV写真をスライドショーに（5枚をクロスフェード＋ゆっくりズーム） */
.mv__photo { aspect-ratio: 10 / 9; }
.mv__photo .mv__slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; opacity: 0; animation: none; transform: scale(1.1); transition: opacity 1s ease, transform 0s linear 1.1s; }
.mv__photo .mv__slide.is-on { opacity: 1; transform: scale(1); transition: opacity 1s ease, transform 4.5s cubic-bezier(.25, .6, .3, 1); }
.mv__photo::after { z-index: 1; }

/* ================================================================
   MVコピーのブラッシュアップ（2026-10-16）
   配色・中央ぞろえ・写真下置きの構成はそのまま、文字の「大・中・小」と書体で強弱をつける
   中庭（大）→ 後悔しない（特大・極太）→ 会社選びは（細め・字間広め）→ 4（欧文の巨大数字）
================================================================ */
.mv__copy { padding-top: calc(var(--fw) * .055); }
/* 年版：＼／をやめ、細い罫線＋欧文数字に */
.mv__sub { display: inline-flex; align-items: center; gap: .45em; font-size: calc(var(--fw) * .03); letter-spacing: .1em; margin-top: calc(var(--fw) * .036); }
.mv__sub::before, .mv__sub::after { content: ""; width: calc(var(--fw) * .07); height: 1px; margin: 0 .5em; background: linear-gradient(90deg, transparent, rgba(255,255,255,.7)); opacity: 1; }
.mv__sub::after { background: linear-gradient(90deg, rgba(255,255,255,.7), transparent); }
.mv__sub .-y { font-family: var(--ff-n); font-weight: 600; font-size: 1.45em; letter-spacing: .04em; line-height: 1; }
.mv__sub .pill { font-family: var(--ff-n); font-weight: 800; font-size: .82em; letter-spacing: .12em; padding: .1em .7em; margin-left: .2em; }

.mv__ttl { margin-top: calc(var(--fw) * .02); line-height: 1.1; letter-spacing: 0; text-shadow: 0 3px 24px rgba(8,32,74,.38); }
.mv__line { padding: .05em 0 .06em; }
.mv__line:nth-child(4) > span { transition-delay: .3s; }

/* 1段目：「中庭」だけを大きく、引用符は金の欧文 */
.mv__line.-l1 { font-size: calc(var(--fw) * .05); font-weight: 700; letter-spacing: .14em; padding-left: .14em; }
.mv__line.-l1 .-niwa { font-weight: 900; font-size: 1.62em; letter-spacing: .06em; margin-right: .06em; }
.mv__line.-l1 .-niwa::before, .mv__line.-l1 .-niwa::after { font-family: var(--ff-n); font-weight: 800; color: #ffd75e; font-size: .8em; vertical-align: .32em; letter-spacing: 0; }
.mv__line.-l1 .-niwa::before { content: "\201C"; margin-right: .08em; }
.mv__line.-l1 .-niwa::after { content: "\201D"; margin-left: .04em; }

/* 2段目：いちばん大きく太く。下に金のマーカーが引かれる */
.mv__line.-l2 { font-size: calc(var(--fw) * .128); font-weight: 900; letter-spacing: .03em; line-height: 1.12; margin-top: calc(var(--fw) * .012); }
.mv__line.-l2 b { position: relative; font-weight: 900; padding: 0 .06em;
  background: linear-gradient(180deg, #ffffff 30%, #d9ecff 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 3px 14px rgba(8,32,74,.35)); }
.mv__line.-l2 { padding-bottom: .14em; }
.mv__line.-l2 > span { position: relative; }
.mv__line.-l2 > span::after { content: ""; position: absolute; z-index: -1; left: 0; right: 0; bottom: -.02em; height: .2em; border-radius: .1em; background: #ffd75e; opacity: .92;
  transform: scaleX(0); transform-origin: left; transition: transform .8s var(--ease) 1s; }
.is-ready .mv__line.-l2 > span::after { transform: scaleX(1); }
.mv__line.-l2 > span { isolation: isolate; }

/* 3段目：細め・字間広めで「間」をつくる。左右に細い罫線 */
.mv__line.-l3 > span { display: inline-flex; align-items: center; gap: .55em; }
.mv__line.-l3 { font-size: calc(var(--fw) * .064); font-weight: 700; letter-spacing: .3em; padding-left: .3em; margin-top: calc(var(--fw) * .012); }
.mv__line.-l3 > span::before, .mv__line.-l3 > span::after { content: ""; width: 1.1em; height: 2px; border-radius: 2px; background: rgba(255,255,255,.55); }
.mv__line.-l3 > span::after { margin-left: -.3em; }

/* 4段目：欧文の巨大な「4」＋問から。 */
.mv__line.-l4 { font-size: calc(var(--fw) * .09); font-weight: 900; line-height: 1; letter-spacing: .02em; margin-top: calc(var(--fw) * -.004); }
.mv__line.-l4 em { font-family: var(--ff-n); font-weight: 900; font-size: 2.55em; line-height: .86; letter-spacing: -.03em; color: #ffd75e; margin: 0 .05em 0 0; vertical-align: -.035em;
  text-shadow: .045em .05em 0 rgba(7,40,96,.55), 0 10px 40px rgba(255,215,94,.25); }
.mv__line.-l4 em::after { display: none; }
.mv__line.-l4 i { font-style: normal; font-size: 1.22em; margin-right: .02em; }

/* 写真の上端：コピーが長くなった分、重なりを少し深く */
.mv__photo { margin-top: calc(var(--fw) * -.09); }
.mv__chips { margin-top: calc(var(--fw) * .04); }
/* セルフチェック：グラデ文字はくすむので白ベタ＋影に */
.mv__line.-l2 b { background: none; color: #fff; -webkit-background-clip: border-box; background-clip: border-box; filter: none; text-shadow: 0 4px 22px rgba(8,32,74,.45); }
/* 見出し差し替え（中庭のある注文住宅／後悔しない／ハウスメーカー診断） */
.mv__line.-l1 .-niwa::before, .mv__line.-l1 .-niwa::after { content: none; }
.mv__line.-l1 { letter-spacing: .1em; padding-left: .1em; }
.mv__line.-l5 { font-size: calc(var(--fw) * .086); font-weight: 900; letter-spacing: .04em; line-height: 1.15; margin-top: calc(var(--fw) * .03); }
.mv__line.-l5 em { font-style: normal; color: #ffd75e; font-size: 1.18em; margin-left: .04em; text-shadow: .04em .05em 0 rgba(7,40,96,.5); }
.mv__line:nth-child(3) > span { transition-delay: .2s; }
.mv__line.-l5 { margin-top: calc(var(--fw) * .006); }

/* 設問をs_2と同じ内容に（エリア=自由入力／時期・予算=セレクト／家=1列ラジオ／予算は任意） */
.opts__grid.-one { grid-template-columns: 1fr; gap: 10px; }
.opts__grid.-one .rp span { min-height: 54px; }
#mail_form .q-text { width: 100%; font-size: 16px; font-family: inherit; padding: 16px 14px; border: 1.5px solid #d3dce0; border-radius: 10px; background: #fff; box-shadow: 0 4px 0 #c3ced3; transition: border-color .2s, box-shadow .2s; }
#mail_form .q-text:focus { outline: 0; border-color: var(--cyan); box-shadow: 0 4px 0 var(--cyan-d), 0 0 0 4px rgba(76,195,220,.2); }
.q-select { position: relative; }
.q-select::after { content: ""; position: absolute; right: 18px; top: 50%; width: 9px; height: 9px; margin-top: -7px; border-right: 2px solid var(--blue); border-bottom: 2px solid var(--blue); transform: rotate(45deg); pointer-events: none; }
#mail_form .q-select select { -webkit-appearance: none; appearance: none; width: 100%; font-size: 16px; font-family: inherit; color: var(--ink); padding: 16px 44px 16px 14px; border: 1.5px solid #d3dce0; border-radius: 10px; background: #fff; box-shadow: 0 4px 0 #c3ced3; cursor: pointer; }
#mail_form .q-select select:focus { outline: 0; border-color: var(--cyan); }
#mail_form dl.qb.is-done .q-text, #mail_form dl.qb.is-done .q-select select { border-color: var(--cyan-d); background: var(--cyan-ll); box-shadow: 0 4px 0 var(--cyan-d); font-weight: 700; }
dd.is-error .q-text, dd.is-error .q-select select { border-color: var(--red) !important; }
#mail_form dt.q .q__no.-opt { background: #9aa8af; font-family: var(--ff-b); font-size: 12px; padding: 4px 8px 3px; }
#mail_form dl.qb.-opt dt.q::after { display: none; }

/* Q1 エリア：ラジオ風ボタン＋「その他」で記入欄 */
button.rp { -webkit-appearance: none; appearance: none; display: block; width: 100%; padding: 0; border: 0; background: none; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.rp.is-on span { background: var(--cyan); color: #fff; font-weight: 700; border-color: var(--cyan-d); box-shadow: 0 4px 0 var(--cyan-d); }
.rp.is-on span::before { border: 0; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%2323a7c4' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 15px no-repeat; animation: tick .35s var(--ease); }
button.rp:focus-visible span { outline: 3px solid var(--blue); outline-offset: 2px; }
.area-other { margin-top: 12px; padding: 12px; border-radius: 12px; background: var(--cyan-ll); box-shadow: inset 0 0 0 1.5px var(--cyan); animation: fade .35s var(--ease); }
.area-other[hidden] { display: none; }
.area-other__lbl { font-size: 13px; font-weight: 700; color: var(--blue); margin-bottom: 8px; }
.area-other__lbl::before { content: "└ "; color: var(--cyan-d); }

/* 診断後の特典：3大特典バナー → 「・・・」 → 来場特典バナー（s_2と同じ並び） */
.unlock .tk-dots { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px 0; }
.unlock .tk-dots span { display: block; width: 10px; height: 10px; border-radius: 50%; background: #e5196f; opacity: .25; animation: tkDot 1.5s ease-in-out infinite; }
.unlock .tk-dots span:nth-child(2) { animation-delay: .2s; }
.unlock .tk-dots span:nth-child(3) { animation-delay: .4s; }
@keyframes tkDot { 0%,100% { opacity: .25; transform: scale(.75); } 35% { opacity: 1; transform: scale(1.15); } }
.unlock__visit { margin: 0 -6px; font-size: 0; line-height: 0; }
.unlock__visit img { display: block; width: 100%; height: auto; border-radius: 10px; }
@media (prefers-reduced-motion: reduce) { .unlock .tk-dots span { animation: none; opacity: .8; } }

/* PC左パネル：MVの見出しに合わせる（中庭のある注文住宅／後悔しない／ハウスメーカー診断） */
@media (min-width: 1080px) {
  .side__ttl .-s { font-size: .74em; font-weight: 800; letter-spacing: .04em; }
  .side__ttl em { display: inline-block; font-size: 1.55em; line-height: 1.25; background: linear-gradient(transparent 72%, #ffd75e 72%, #ffd75e 90%, transparent 90%); }
  .side__ttl em.-k { font-size: 1.12em; background: none; color: var(--pink-d); }
}

/* 診断結果の上部CTA：押すとお名前欄へ */
.cta.-hit { margin: 22px 0 0; padding-top: 6px; }
.cta.-hit .btn { font-family: var(--ff-b); }

/* 診断結果：まだ登録が終わっていないことを目立たせる誘導ボックス */
.notyet { position: relative; margin: 20px 0 0; padding: 16px 14px 14px; border-radius: 16px; background: #fff8dc; box-shadow: inset 0 0 0 2.5px #ffc93c, 0 8px 20px rgba(255,170,0,.18); text-align: center; }
.notyet__head { display: inline-flex; align-items: center; gap: 6px; font-weight: 900; font-size: 15px; color: #e6203f; letter-spacing: .02em; }
.notyet__ic { width: 24px; height: 24px; flex: none; transform-origin: 50% 90%; animation: nyShake 2.4s ease-in-out infinite; }
@keyframes nyShake { 0%, 70%, 100% { transform: rotate(0); } 74% { transform: rotate(-14deg); } 80% { transform: rotate(12deg); } 86% { transform: rotate(-8deg); } 92% { transform: rotate(4deg); } }
.notyet__ttl { margin-top: 2px; font-family: var(--ff-h); font-weight: 900; font-size: 20px; line-height: 1.35; color: var(--ink); }
.notyet__ttl b { display: inline-block; margin-left: .2em; font-size: 1.5em; color: #e5196f; letter-spacing: .02em; background: linear-gradient(transparent 66%, #ffe066 66%); }
.notyet__steps { display: flex; align-items: flex-start; justify-content: center; margin: 12px 0 0; padding: 0; }
.notyet__steps li { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 12px; font-weight: 800; color: #9aa7ad; line-height: 1.3; }
.notyet__steps li + li::before { content: ""; position: absolute; top: 13px; right: 50%; width: 100%; height: 3px; background: #e3e6e8; z-index: 0; }
.notyet__steps li.-now::before { background: linear-gradient(90deg, var(--cyan), #e5196f); }
.notyet__steps i { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; font-style: normal; font-family: var(--ff-n); font-size: 14px; background: #d5dadd; color: #fff; }
.notyet__steps li.-done { color: var(--cyan-d); }
.notyet__steps li.-done i { background: var(--cyan); }
.notyet__steps li.-now { color: #e5196f; }
.notyet__steps li.-now i { background: #e5196f; box-shadow: 0 0 0 0 rgba(229,25,111,.5); animation: nyPulse 1.6s ease-out infinite; }
@keyframes nyPulse { to { box-shadow: 0 0 0 10px rgba(229,25,111,0); } }
.notyet__steps li.-now span { font-size: 10px; color: #fff; background: #e5196f; border-radius: 99px; padding: 0 7px; line-height: 1.6; }
/* CTAへ向けて弾む下矢印 */
.notyet::after { content: ""; position: absolute; left: 50%; bottom: -20px; width: 14px; height: 14px; margin-left: -7px; border-right: 4px solid #e5196f; border-bottom: 4px solid #e5196f; transform: rotate(45deg); animation: nyArrow 1.2s ease-in-out infinite; }
@keyframes nyArrow { 0%, 100% { transform: translateY(0) rotate(45deg); opacity: 1; } 50% { transform: translateY(5px) rotate(45deg); opacity: .5; } }
.notyet + .cta.-hit { margin-top: 30px; }
@media (prefers-reduced-motion: reduce) { .notyet__ic, .notyet__steps li.-now i, .notyet::after { animation: none; } }

/* 設問見出しの「は？」は<i>に入れてメール項目名から外す（GASは【ご希望エリア】等で完全一致抽出） */
#mail_form dt.q .q__q { font-style: normal; }

/* 診断後の特典：「さらに！」特別動画（s_3 と同じ見た目） */
.unlock { --g: #2f6b45; --g-d: #1f4f33; --y: #f6d65a; }
.s3more { margin: 4px 0 30px; text-align: center; }
.s3more .-big { display: inline-block; padding: 4px 22px; border-radius: 99px; background: var(--pk); color: #fff; font-weight: 900; font-size: calc(var(--fw) * .05); letter-spacing: .1em; box-shadow: 0 5px 12px rgba(194,0,90,.28); }
.s3more .-sub { display: block; margin-top: 10px; font-weight: 800; font-size: calc(var(--fw) * .034); color: var(--ink); }
.s3box { position: relative; margin: 0 -6px 4px; border: 3px solid var(--g); border-radius: 10px; background: #fff; }
.s3box.-gift { padding: 30px 0 0; }
.s3box__tab { position: absolute; left: 50%; top: 0; display: flex; align-items: center; gap: 6px; margin: 0; padding: 6px 22px; transform: translate(-50%, -55%); border-radius: 6px; background: var(--g); color: #fff; font-weight: 900; font-size: calc(var(--fw) * .034); white-space: nowrap; }
.s3box__tab .-gift { padding: 1px 8px; border-radius: 4px; background: var(--y); color: var(--g-d); font-size: .8em; letter-spacing: .1em; }
.s3box__body { padding: 0 12px 12px; }
.s3box__lead { margin: 0 0 12px; font-size: calc(var(--fw) * .029); font-weight: 700; line-height: 1.7; color: #333; text-align: center; }
.s3box__banner { margin: 12px 0 0; border: 1px solid #e5dcc4; }
.s3box__banner img { display: block; width: 100%; height: auto; }
.tk__video .-frame { position: relative; padding: 3px; border: 1px solid #d9b76a; background: #fff; }
.tk__video video { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #000; }
.tk__video .-play { position: absolute; left: 50%; top: 50%; width: 62px; height: 62px; margin: -31px 0 0 -31px; border-radius: 50%; background: rgba(31,74,53,.9); border: 2px solid #fff; box-shadow: 0 6px 16px rgba(0,0,0,.35); pointer-events: none; transition: opacity .4s; }
.tk__video .-play::after { content: ""; position: absolute; left: 23px; top: 17px; border-left: 18px solid #fff; border-top: 12px solid transparent; border-bottom: 12px solid transparent; }
.tk__video .-frame.is-playing .-play { opacity: 0; }

/* ================================================================
   スマホ表示の改行崩れ対策（2026-10-16）
   1文字だけ次の行に落ちる・語句の途中で切れるのを防ぐ
================================================================ */
.nw { white-space: nowrap; }
br.sp { display: none; }
h1, h2, h3, .madori__ttl, .why__ttl, .gate__ttl, .note__ttl, .closing__ttl, .hit__ttl, .notyet__ttl, .flow__list li b, .why__head { text-wrap: balance; }
p, li, small, figcaption { text-wrap: pretty; }
/* 設問見出し：「は？」の前の空きをなくし、長い設問は自然に折り返す */
#mail_form dt.q { display: block; padding-right: 54px; }
#mail_form dt.q .q__no { display: inline-block; margin-right: 8px; vertical-align: 2px; }
#mail_form dt.q .q__note { display: block; margin: 2px 0 0; }
/* 落とし穴カード：強調ラベルは途中で切らない */
.ncard__ttl mark { white-space: nowrap; }

@media (max-width: 430px) {
  br.sp { display: inline; }
  .gallery__ttl::before, .gallery__ttl::after { display: none; }
  .cta__lead { font-size: calc(var(--fw) * .037); white-space: nowrap; }
  .cta__lead::before { margin-right: 8px; } .cta__lead::after { margin-left: 8px; }
  .cta__lead .-tag { margin-right: 6px; padding: 1px 7px; font-size: 10.5px; }
  .fcard__txt { font-size: 12px; }
  #mail_form dt.q { font-size: calc(var(--fw) * .05); }
  .ncard__ttl { font-size: calc(var(--fw) * .05); }
  .madori__ttl { font-size: calc(var(--fw) * .064); }
  .gate__ttl { font-size: calc(var(--fw) * .048); }
  .gate__ttl .top5 { font-size: calc(var(--fw) * .084); }
  .gate__note { font-size: 10.5px; }
  /* 特典リスト：写真を小さくし、鍵マークは写真の上へ。文字の幅を確保 */
  .rank li { gap: 8px; }
  .rank__n { flex-basis: 30px; height: 30px; font-size: 15px; }
  .rank__img { flex-basis: 60px; height: 50px; }
  .rank__lock { right: auto; left: 64px; width: 26px; height: 26px; }
  .rank__body { padding-right: 4px; }
  .rank__t { font-size: 13px; }
  .rank.-perk .rank__m { font-size: 11px; }
  .why__head { font-size: calc(var(--fw) * .044); }
  .why__body { font-size: 13.5px; }
  .why__body img { flex-basis: 84px; width: 84px; height: 68px; }
  .gallery__ttl { font-size: calc(var(--fw) * .053); line-height: 1.5; }
  .flow__list li b { font-size: 15px; }
  .closing__ttl { font-size: calc(var(--fw) * .06); }
  .hit__ttl { font-size: calc(var(--fw) * .055); }
  /* 診断後の登録ボタン：文字を1行に収める */
  .btn { padding-left: 22px; padding-right: 40px; font-size: calc(var(--fw) * .045); }
  .btn small { font-size: 10.5px; letter-spacing: .02em; }
  .btn::after { right: 20px; }
  .btn__bubble { right: 16px; font-size: 11.5px; }
}
@media (max-width: 430px) {
  /* Q4：メール項目名（dt内の文字）はそのまま、表示だけ「建てたい家に／いちばん近いものは？」で改行 */
  #mail_form dt.q.-q4 { display: flex; flex-wrap: wrap; align-items: center; font-size: 0; }
  #mail_form dt.q.-q4::before { content: "建てたい家に\Aいちばん近いものは？"; white-space: pre; order: 1; font-size: calc(var(--fw) * .05); line-height: 1.45; }
  #mail_form dt.q.-q4 .q__no { order: 0; }
  #mail_form dt.q.-q4 .q__q { display: none; }
  #mail_form dt.q.-q4 .q__note { order: 2; flex-basis: 100%; font-size: 12px; }
  #form_submit_button { font-size: calc(var(--fw) * .05); }
  .notyet__ttl { text-wrap: wrap; }
}

/* 設問見出し：dt内は項目名だけ（mailformはdt内の<i>に「必須」を差し込み、項目名作成で崩れるため<i>/後ろのspanは置かない）
   「は？」は表示だけCSSで足す。メール項目名＝【ご希望エリア】等（s_2・s_3・リード反映GASと同じ） */
#mail_form dt.q { display: flex; flex-wrap: wrap; align-items: center; column-gap: 0; }
#mail_form dt.q .q__no { margin-right: 8px; }
#mail_form dt.q::before { content: "は？"; order: 1; }
.q__sub { margin: 0 0 10px; font-size: 12px; font-weight: 700; color: var(--sub); }
