/* =====================================================================
   E案：C案をベースに、D案の「価値で語る見出し」と「場面を選べる仕組み図」を移植。
   セルフチェックは作り直し（進み具合のメーター＋あなたに合う使い方＋フォームへ引き継ぎ）。
   ===================================================================== */

/* ---- ヒーロー：見出しを主役に、元のコピーは一段下げる ---- */
.v-c .hero h1 { font-size: clamp(30px, 3.9vw, 56px); line-height: 1.3; }
.v-c .hero-lead { font-size: clamp(17px, 1.8vw, 22px); }
.v-c .hero-sub { max-width: 34em; line-height: 1.9; }

/* ---- 仕組み ---- */
.mech { background: var(--tint) !important; }
.mech-grid { display: grid; grid-template-columns: .9fr 1.25fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.mech-copy .h-blue-md { text-align: left; margin-bottom: 14px; }
.mech-lead { color: #3b4d60; font-size: 15px; margin-bottom: 26px; }
.steps { display: grid; gap: 10px; }
.step { display: flex; gap: 14px; align-items: flex-start; width: 100%; text-align: left; font: inherit; padding: 16px 18px; border: 1.5px solid var(--line); border-radius: var(--r); background: #fff; color: var(--ink); cursor: pointer; transition: border-color .2s, background .2s, box-shadow .2s; }
.step:hover { border-color: #9cc3dc; }
.step i { flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%; background: #e4edf3; color: var(--blue-text); font-style: normal; font-family: var(--num); font-weight: 600; font-size: 17px; display: grid; place-items: center; transition: background .2s, color .2s; }
.step b { display: block; font-family: var(--font-head); font-size: 16.5px; }
.step small { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; line-height: 1.7; }
.step[aria-pressed="true"] { border-color: var(--blue); background: #f2f8fc; box-shadow: 0 6px 18px rgba(29,91,134,.12); }
.step[aria-pressed="true"] i { background: var(--blue); color: #fff; }
.step:focus-visible { outline: 3px solid #2f7fb8; outline-offset: 2px; }

.mech-fig { margin: 0; background: #0f2338; border-radius: 12px; padding: 18px 18px 12px; position: relative; overflow: hidden; }
.mech-fig svg { display: block; width: 100%; height: auto; overflow: visible; }
.mech-fig figcaption { font-size: 11.5px; color: rgba(255,255,255,.55); text-align: center; padding-top: 6px; }
.mech-status { position: absolute; left: 22px; top: 18px; z-index: 2; display: flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: rgba(255,255,255,.1); color: #fff; font-size: 13px; font-weight: 700; }
.mech-status .dot { width: 9px; height: 9px; border-radius: 50%; background: #6cc4ff; transition: background .2s; }
.mech-fig[data-state="1"] .mech-status { background: rgba(217,66,31,.9); }
.mech-fig[data-state="1"] .mech-status .dot { background: #fff; }

.m-floor { fill: rgba(255,255,255,.04); }
.m-area { fill: rgba(108,196,255,.1); stroke: #6cc4ff; stroke-width: 3; stroke-dasharray: 14 10; }
.m-waves ellipse { fill: none; stroke: #6cc4ff; stroke-width: 2; opacity: 0; transform-box: fill-box; transform-origin: center; }
.m-shelf rect { fill: rgba(255,255,255,.14); stroke: rgba(255,255,255,.3); stroke-width: 2; }
.m-tags rect { fill: #6cc4ff; }
.m-body { fill: #fff; } .m-slot { fill: #c3d3df; }
.m-label { fill: #fff; font-size: 20px; font-family: var(--font-head); }
.m-area-label { fill: #6cc4ff; }
.m-item { transition: transform .9s cubic-bezier(.6,0,.2,1); }
.mech-fig[data-state="0"] .m-item { transform: translate(560px, 205px); }
.mech-fig[data-state="1"] .m-item { transform: translate(790px, 385px); }
.mech-fig[data-state="2"] .m-item { transform: translate(600px, 410px); }
.m-box { fill: #f3f6f9; stroke: #9fb3c6; stroke-width: 2; }
.m-tag { fill: #6cc4ff; transition: fill .2s; }
.mech-fig[data-state="1"] .m-tag { fill: #ff5a36; }
.m-rings circle { fill: none; stroke: #ff5a36; stroke-width: 3; opacity: 0; transform: translate(29px, -21px); transform-box: view-box; }
.m-bubble { opacity: 0; transition: opacity .25s .55s; }
.m-bubble rect, .m-bubble path { fill: #d9421f; }
.m-bubble text { fill: #fff; font-size: 26px; font-weight: 900; font-family: var(--font-head); }
.mech-fig[data-state="1"] .m-bubble { opacity: 1; }

.js-motion .m-waves ellipse { animation: m-wave 5s cubic-bezier(.3,.4,.3,1) infinite; }
.js-motion .m-waves ellipse:nth-child(2) { animation-delay: 2.5s; }
@keyframes m-wave { 0% { transform: scale(.08); opacity: .5; } 100% { transform: scale(1); opacity: 0; } }
.js-motion .mech-fig[data-state="1"] .m-rings circle { animation: m-ping 1.4s ease-out infinite; transform-origin: 29px -21px; }
.js-motion .mech-fig[data-state="1"] .m-rings circle:nth-child(2) { animation-delay: .45s; }
.js-motion .mech-fig[data-state="1"] .m-rings circle:nth-child(3) { animation-delay: .9s; }
@keyframes m-ping { 0% { transform: translate(29px,-21px) scale(.5); opacity: .9; } 100% { transform: translate(29px,-21px) scale(4.4); opacity: 0; } }
.js-motion .mech-fig[data-state="1"] .m-bubble { animation: m-shake .5s ease-in-out .9s 2; }
@keyframes m-shake { 0%, 100% { translate: 0 0; } 25% { translate: -5px 0; } 75% { translate: 5px 0; } }
@media (prefers-reduced-motion: reduce) { .m-item { transition: none; } }

/* ---- セルフチェック ---- */
.check { background: var(--paper) !important; }
.check-head { text-align: center; margin-bottom: 36px; }
.check-board { display: grid; grid-template-columns: 1.15fr 1fr; gap: 28px; align-items: start; max-width: 1060px; margin: 0 auto; }
.check-board .sg-grid { grid-template-columns: 1fr; gap: 10px; }
.check-board .sg-item { padding: 16px 18px; }
.check-board .sg-label { font-size: 15.5px; }
.check-result { position: sticky; top: 24px; background: var(--tint); border: 1px solid var(--line); border-radius: 12px; padding: 26px 26px 28px; transition: background .25s, border-color .25s; }
.meter { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; margin-bottom: 14px; }
.meter .seg { height: 8px; border-radius: 4px; background: #dbe5ec; transition: background .25s; }
.meter .seg.on { background: var(--blue); }
.check-result[data-level="2"] .meter .seg.on { background: #167a72; }
.check-result[data-level="3"] .meter .seg.on { background: #d9421f; }
.check-count { font-size: 13px; color: var(--muted); font-weight: 700; }
.check-title2 { font-size: 21px; line-height: 1.5; margin: 4px 0 8px; color: var(--ink); }
.check-sub { font-size: 14.5px; color: #3b4d60; }
.check-fit { margin-top: 16px; display: grid; gap: 8px; }
.check-fit li { position: relative; padding: 11px 14px 11px 38px; background: #fff; border-radius: var(--r); font-size: 14px; line-height: 1.8; box-shadow: 0 1px 3px rgba(16,40,70,.06); }
.check-fit li::before { content: ''; position: absolute; left: 14px; top: 17px; width: 14px; height: 8px; border-left: 3px solid var(--blue); border-bottom: 3px solid var(--blue); transform: rotate(-45deg) translate(1px,-2px); }
.js-motion .check-fit li { animation: fit-in .35s ease-out both; }
@keyframes fit-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.check-result .sg-cta { display: block; text-align: center; margin-top: 18px; padding: 15px 20px; font-size: 16px; }

@media (max-width: 900px) {
  .mech-grid, .check-board { grid-template-columns: 1fr; }
  .check-result { position: static; }
  .mech-status { font-size: 12px; left: 16px; top: 14px; }
}
@media (max-width: 600px) {
  .step { padding: 14px; }
  .m-label { font-size: 22px; }
}
