/* 見積デジ LP — トップページの動くもの（index.html だけが読む。styles.css の後）
 *
 * 自動で進む操作イメージ・触れるデモ・考え方と比較・取れた値段。
 * 完了・規約・404 は使わないので読ませない。 */

/* ================================================================
 *  v4: 動く操作イメージ・考え方・取れた値段・動き
 * ================================================================ */

:root { --ease: cubic-bezier(.22, .8, .24, 1); --navy: #0E1A2B; }

/* 見出しを大きく・詰めて */
.h2 { font-size: clamp(28px, 3.4vw, 44px); line-height: 1.35; letter-spacing: .01em; }
.sec, .pillars { padding: 104px 0; }
.head { margin-bottom: 56px; }

/* ── ヒーロー（中央寄せ＋大きな製品画面） ── */
.hero { position: relative; padding: 60px 0 0; border-bottom: 1px solid var(--line); overflow: hidden; }
.hero__inner { position: relative; text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero h1 { font-size: clamp(34px, 4.6vw, 58px); line-height: 1.24; letter-spacing: .01em; margin-bottom: 20px; }
.hero__lead { font-size: 17.5px; max-width: 36em; margin: 0 auto 26px; }
.quick { width: 100%; max-width: 760px; text-align: left; }
.quick__row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; }
.quick__row .submit { grid-column: auto; padding: 13px 26px; }
.quick__foot { text-align: center; }

/* ── 操作イメージ ── */
.player { position: relative; margin: 40px auto 96px; max-width: 1100px; padding: 10px; background: linear-gradient(#F3F6FB, #EEF2F8); border: 1px solid #DFE5EE; border-radius: 22px; box-shadow: 0 50px 100px -50px rgba(15, 26, 38, .35); }
.pl { position: relative; background: var(--white); border: 1px solid #D9E0E8; border-bottom: 0; border-radius: 16px 16px 0 0; overflow: hidden; font-size: 14px; line-height: 1.6; letter-spacing: 0; text-align: left; }
.pl__top { display: flex; align-items: center; gap: 14px; padding: 11px 16px; border-bottom: 1px solid var(--line); background: #FBFCFD; }
.pl__brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 13.5px; }
.pl__brand .brand__mark, .chat__src .brand__mark, .vs__me .brand__mark { width: 18px; height: 18px; border-radius: 5px; }
.pl__brand .brand__mark::before, .vs__me .brand__mark::before { top: 5.5px; left: 4.5px; right: 4.5px; height: 2px; }
.pl__brand .brand__mark::after, .vs__me .brand__mark::after { top: 10px; left: 4.5px; right: 7.5px; height: 2px; }
.pl__search { flex: 1; max-width: 420px; font-size: 12.5px; color: #98A1AD; background: var(--white); border: 1px solid var(--line); border-radius: 7px; padding: 5px 12px; }
.pl__bell { position: relative; margin-left: auto; width: 18px; height: 18px; border: 1.6px solid var(--ink-3); border-radius: 9px 9px 3px 3px; }
.pl__bell i { position: absolute; right: -4px; top: -4px; width: 8px; height: 8px; border-radius: 50%; background: var(--red); transform: scale(0); transition: transform .3s var(--ease); }
.pl.is-toast .pl__bell i, .pl.is-arrived .pl__bell i { transform: scale(1); }
.pl.is-rowpress .prow--new { transform: scale(.985); }
.prow--new { transform-origin: left center; }
.pl__user { width: 28px; height: 28px; border-radius: 50%; background: var(--blue-100); color: var(--blue-2); font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.pl__body { display: grid; grid-template-columns: 250px minmax(0, 1fr); min-height: 452px; }
.pl__list { background: var(--gray-50); border-right: 1px solid var(--line); }
.pl__cap { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700; padding: 12px 14px; }
.pl__cap b { font-size: 11px; color: #fff; background: var(--blue); border-radius: 999px; padding: 0 7px; min-width: 20px; text-align: center; }
.pl__rows { display: grid; }
.prow { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 11px 14px; border-top: 1px solid var(--line); font-size: 13px; transition: background .3s, box-shadow .3s; }
.prow span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-2); }
.prow span b { display: block; color: var(--ink); font-size: 13.5px; }
.prow .tag { min-width: 46px; }
.prow--new { max-height: 0; padding-top: 0; padding-bottom: 0; opacity: 0; overflow: hidden; border-top-width: 0; transition: max-height .5s var(--ease), padding .5s var(--ease), opacity .4s, background .6s, box-shadow .3s; }
.pl.is-arrived .prow--new { max-height: 70px; padding-top: 11px; padding-bottom: 11px; opacity: 1; border-top-width: 1px; background: #FFF8E6; }
.pl.is-sel .prow--new { background: var(--white); box-shadow: inset 3px 0 0 var(--blue); }
.pl__main { position: relative; padding: 20px 22px; min-width: 0; }
.pl__empty { position: absolute; inset: 0; display: grid; place-items: center; color: #98A1AD; font-size: 13px; transition: opacity .3s; }
.pl.is-open .pl__empty { opacity: 0; }
.pl__detail { opacity: 0; transform: translateY(8px); transition: opacity .45s var(--ease), transform .45s var(--ease); }
.pl.is-open .pl__detail { opacity: 1; transform: none; }
.pl__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.pl__head p { color: var(--ink-2); font-size: 13px; }
.pl__head p b { display: block; color: var(--ink); font-size: 16px; }
.pl__head .due { background: var(--lost-bg); border-radius: 4px; padding: 2px 8px; }
.pl__grid { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: 22px; }
.pl__fax { position: relative; overflow: hidden; background: #FBFAF6; border: 1px solid #DAD6CB; border-radius: 6px; padding: 12px 14px; font-size: 12px; }
.pl__faxhead { font-family: var(--num); font-size: 10.5px; color: #6B665C; border-bottom: 1px solid #DAD6CB; padding-bottom: 5px; margin-bottom: 8px; }
.pl__faxtitle { text-align: center; font-weight: 700; letter-spacing: .4em; font-size: 13px; margin-bottom: 6px; }
.pl__fax table { width: 100%; }
.pl__fax th, .pl__fax td { border: 1px solid #A9A499; padding: 3px 7px; text-align: left; }
.pl__fax th { width: 30%; font-weight: 500; background: #F0EEE7; }
.pl__fax .hw { font-size: 14px; }
.pl__faxnote { margin-top: 8px; font-size: 12.5px; }
.pl__hl { border-radius: 3px; transition: background .35s, box-shadow .35s; }
/* 状態の名前を h1〜h4 にしない。base.css の見出し .h2 / .h3 が当たって、画面全体が太字になる */
.pl.hl1 [data-hl="1"], .pl.hl2 [data-hl="2"], .pl.hl3 [data-hl="3"], .pl.hl4 [data-hl="4"] { background: rgba(31, 91, 214, .12); box-shadow: 0 0 0 2px rgba(31, 91, 214, .35); }
.pl__scan { position: absolute; left: 0; right: 0; top: -14%; height: 14%; background: linear-gradient(transparent, rgba(31, 91, 214, .12)); border-bottom: 2px solid var(--blue); opacity: 0; }
.pl.is-scan .pl__scan { animation: plscan 1.6s var(--ease) forwards; }
@keyframes plscan { 0% { top: -14%; opacity: 1; } 85% { opacity: 1; } 100% { top: 100%; opacity: 0; } }
.pl__k { display: flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700; color: var(--ink-3); margin-bottom: 4px; }
.pl__k + .pl__kv { margin-bottom: 16px; }
.pl__ai { width: 14px; height: 14px; border-radius: 4px; background: var(--blue); position: relative; }
.pl__ai::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: #fff; }
.pl__kv { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; }
.pl__kv div { display: grid; grid-template-columns: 38px 1fr; padding: 6px 0; border-bottom: 1px solid var(--line-2); }
.pl__kv dt { color: var(--ink-3); font-size: 12px; }
.pl__kv dd { font-weight: 700; opacity: 0; transform: translateX(-6px); transition: opacity .3s, transform .3s var(--ease); }
.pl.f1 [data-f="1"] dd, .pl.f2 [data-f="2"] dd, .pl.f3 [data-f="3"] dd, .pl.f4 [data-f="4"] dd { opacity: 1; transform: none; }
.pl__past { position: relative; min-height: 112px; }
.pl__shimmer { position: absolute; inset: 0; display: grid; gap: 8px; align-content: start; padding-top: 6px; opacity: 0; transition: opacity .2s; }
.pl__shimmer i { height: 26px; border-radius: 6px; background: linear-gradient(90deg, var(--gray-100) 0, #F7F9FB 50%, var(--gray-100) 100%); background-size: 200% 100%; animation: plshim 1s linear infinite; }
@keyframes plshim { from { background-position: 200% 0; } to { background-position: 0 0; } }
.pl.is-search .pl__shimmer { opacity: 1; }
.pl.p1 .pl__shimmer { opacity: 0; }
.ppast { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto auto 34px; gap: 10px; align-items: center; padding: 7px 6px; margin: 0; border-radius: 6px; font-size: 13px; opacity: 0; transform: translateY(6px); transition: opacity .35s, transform .35s var(--ease), background .4s; }
.ppast { position: relative; }
.ppast__why { position: static; transform: translateX(4px); font-style: normal; font-size: 10.5px; font-weight: 700; color: var(--hold); background: var(--hold-bg); border-radius: 4px; padding: 1px 5px; opacity: 0; transition: opacity .3s, transform .3s var(--ease); }
.pl.is-best .ppast__why { opacity: 1; transform: none; }
.ppast b { font-family: var(--num); font-weight: 600; }
.ppast span { color: var(--ink-2); font-family: var(--num); white-space: nowrap; }
.ppast .num { color: var(--ink); font-weight: 600; }
.pl.p1 [data-p="1"], .pl.p2 [data-p="2"], .pl.p3 [data-p="3"] { opacity: 1; transform: none; }
.pl.is-best [data-p="1"], .pl.is-best [data-p="3"] { background: var(--gray-50); }
.pl__foot { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-top: 14px; padding: 12px 14px; background: var(--gray-50); border-radius: 10px; opacity: 0; transform: translateY(6px); transition: opacity .4s, transform .4s var(--ease); }
.pl.is-draft .pl__foot { opacity: 1; transform: none; }
.pl__draft { display: flex; align-items: baseline; gap: 10px; font-size: 12px; color: var(--ink-2); min-width: 0; }
.pl__draft span { font-weight: 700; color: var(--hold); white-space: nowrap; }
.pl__draft b { font-size: 24px; color: var(--ink); white-space: nowrap; }
.pl__draft b i { font-style: normal; }
.pl__draft small { font-size: 11.5px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl__btn { flex: none; font-size: 13px; font-weight: 700; color: #fff; background: var(--blue); border-radius: 7px; padding: 9px 14px; transition: transform .15s, background .15s; }
.pl.is-press .pl__btn { transform: scale(.96); background: var(--blue-2); }
.pl__xl { position: absolute; inset: 14px 16px; background: var(--white); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 30px 60px -30px rgba(15, 26, 38, .45); transform: translateY(24px) scale(.98); opacity: 0; pointer-events: none; transition: opacity .45s var(--ease), transform .55s var(--ease); overflow: hidden; }
.pl.is-export .pl__xl { opacity: 1; transform: none; }
.pl.is-export .pl__detail { opacity: 0; transition: opacity .15s; }
.pl.is-export .pl__xl { transition-delay: .15s; }
.pl__body { transition: opacity .5s; }
.pl.is-fade .pl__cursor { opacity: 0; }
.pl__sr--meta { font-size: 12px; color: var(--ink-2); min-height: 32px; }
.pl__sr--meta span:first-child { grid-column: 1 / -1; }
.pl__xlbar { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: 13px; font-weight: 700; }
.pl__saved { margin-left: auto; font-size: 12px; font-weight: 700; color: var(--won); background: var(--won-bg); border-radius: 999px; padding: 2px 10px; opacity: 0; transform: translateY(4px); transition: opacity .3s, transform .3s var(--ease); }
.pl__saved::before { content: "✓ "; }
.pl.is-saved .pl__saved { opacity: 1; transform: none; }
.pl__sheet { padding: 18px 20px; font-size: 13px; }
.pl__sr { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, .7fr) minmax(0, .8fr) minmax(0, 1fr); border-bottom: 1px solid var(--line-2); min-height: 38px; align-items: center; }
.pl__sr > span { padding: 6px 10px; white-space: nowrap; overflow: hidden; }
.pl__sr .num { text-align: right; }
.pl__sr--title span { grid-column: 1 / -1; text-align: center; font-weight: 700; letter-spacing: .5em; font-size: 17px; }
.pl__sr--to .pl__cell { font-weight: 700; }
.pl__stamp { justify-self: center; width: 30px; height: 30px; border: 1.5px solid var(--red); color: var(--red); border-radius: 4px; display: grid !important; place-items: center; font-size: 12px; padding: 0 !important; opacity: .85; }
.pl__sr--h { background: #EEF3F8; font-weight: 700; font-size: 12px; }
.pl__sr--sum { font-weight: 700; }
.pl__cell { position: relative; color: transparent; transition: color .25s; }
.pl__cell::after { content: ""; position: absolute; inset: 4px; border-radius: 4px; box-shadow: inset 0 0 0 2px transparent; background: transparent; transition: background .3s, box-shadow .3s; }
.pl.x1 [data-x="1"], .pl.x2 [data-x="2"], .pl.x3 [data-x="3"], .pl.x4 [data-x="4"], .pl.x5 [data-x="5"], .pl.x6 [data-x="6"], .pl.x7 [data-x="7"], .pl.x8 [data-x="8"] { color: var(--ink); }
.pl.x1:not(.is-saved) [data-x="1"]::after, .pl.x2:not(.is-saved) [data-x="2"]::after, .pl.x3:not(.is-saved) [data-x="3"]::after, .pl.x4:not(.is-saved) [data-x="4"]::after, .pl.x5:not(.is-saved) [data-x="5"]::after, .pl.x6:not(.is-saved) [data-x="6"]::after, .pl.x7:not(.is-saved) [data-x="7"]::after, .pl.x8:not(.is-saved) [data-x="8"]::after { background: rgba(31, 91, 214, .08); box-shadow: inset 0 0 0 2px rgba(31, 91, 214, .45); }
.pl__toast { position: absolute; right: 18px; top: 58px; z-index: 3; display: flex; align-items: center; gap: 10px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 500; border-radius: 10px; padding: 10px 14px; box-shadow: 0 16px 32px -16px rgba(0, 0, 0, .5); opacity: 0; transform: translateY(-8px); transition: opacity .35s, transform .35s var(--ease); }
.pl.is-toast .pl__toast:not(.pl__toast--won):not(.pl__toast--sent), .pl.is-toast2 .pl__toast--won, .pl.is-toast3 .pl__toast--sent { opacity: 1; transform: none; }
.pl__toast--sent { background: var(--blue-2); }
.pl__toast--won { background: var(--won); }
.pl__toast--won .res { background: #fff; white-space: nowrap; }
.prow .due i { font-style: normal; }
.prow .d-b, .prow .d-c, .pl.is-sent .prow .d-a, .pl.is-won .prow .d-b { display: none; }
.pl.is-sent:not(.is-won) .prow .d-b { display: inline; color: var(--ink-3); }
.pl.is-won .prow .d-c { display: inline-block; }
.pl.is-won .pl__flag { background: var(--won); }
.pl.is-won .pl__flag b { background: var(--won); }
.pl.is-won .pl__flag b::after { content: " 受注"; }
.pl__cursor { position: absolute; left: 0; top: 0; z-index: 4; width: 22px; height: 22px; transform: translate(70%, 80%); transition: transform .9s var(--ease), opacity .3s; opacity: 0; pointer-events: none; }
.pl.is-cursor .pl__cursor { opacity: 1; }
.pl__cursor svg { width: 22px; height: 22px; fill: var(--ink); stroke: #fff; stroke-width: 1.4; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .25)); }
.pl__cursor::after { content: ""; position: absolute; left: -9px; top: -9px; width: 24px; height: 24px; border-radius: 50%; background: rgba(31, 91, 214, .35); transform: scale(0); opacity: 0; }
.pl__cursor.is-click::after { animation: plclick .5s ease-out; }
@keyframes plclick { 0% { transform: scale(.3); opacity: 1; } 100% { transform: scale(1.6); opacity: 0; } }

/* 結果の記録・送付 */
.pl__res { display: none; gap: 6px; }
.pl__res i { font-style: normal; font-size: 13px; font-weight: 700; border: 1px solid var(--line); background: var(--white); border-radius: 7px; padding: 8px 16px; color: var(--ink-2); transition: all .2s; }
.pl.is-result .pl__btn { display: none; }
.pl.is-result .pl__res { display: flex; }
.pl.is-wonpress .pl__won { transform: scale(.95); }
.pl.is-won .pl__won { background: var(--won); border-color: var(--won); color: #fff; }
.pl__send { font-size: 12px; font-weight: 700; color: #fff; background: var(--blue); border-radius: 6px; padding: 5px 12px; margin-left: 10px; opacity: 0; transition: opacity .3s, transform .15s; }
.pl.is-saved .pl__send { opacity: 1; }
.pl.is-sendpress .pl__send { transform: scale(.95); background: var(--blue-2); }
.pl__sr--no { min-height: 26px; font-size: 11.5px; color: var(--ink-3); border-bottom: 0; }
.pl__sr--no span:first-child { grid-column: 1 / 3; }
.pl__sr--no span:last-child { grid-column: 3 / 5; text-align: right; }
.pl__sr--to .pl__cell { grid-column: 1 / 3 !important; }
.pl__from { grid-column: 3; font-size: 11px; color: var(--ink-2); line-height: 1.4; white-space: normal !important; }
.pl__sr--sub { min-height: 30px; font-size: 12.5px; color: var(--ink-2); }
.pl__sr--sub span:first-child, .pl__sr--sum span:first-child { grid-column: 1 / 4; text-align: right; }
.pl__sr--sub span:nth-child(2), .pl__sr--sub span:nth-child(3), .pl__sr--sum span:nth-child(2), .pl__sr--sum span:nth-child(3) { display: none; }

/* 取れた価格帯の帯 */
.pl__band { position: relative; height: 62px; margin: 10px 0 0; opacity: 0; transition: opacity .4s; }
.pl.is-band .pl__band { opacity: 1; }
.pl__band::before { content: ""; position: absolute; left: 0; right: 0; top: 30px; height: 2px; background: var(--line); }
.pl__zone { position: absolute; top: 22px; height: 18px; background: var(--won-bg); border: 1px solid #A8D8BC; border-radius: 4px; transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease) .1s; }
.pl.is-band .pl__zone { transform: none; }
.pl__zone em { position: absolute; left: 0; top: 100%; margin-top: 4px; font-style: normal; font-size: 10px; font-weight: 700; color: var(--won); white-space: nowrap; margin-bottom: 1px; }
.pl__dot { position: absolute; left: var(--x); top: 25px; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; border: 2px solid #fff; }
.pl__dot.won { background: var(--won); } .pl__dot.lost { background: var(--lost); }
.pl__dot b { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); font-size: 10px; color: var(--ink-3); white-space: nowrap; }
.pl__flag { position: absolute; left: var(--x); top: 10px; width: 2px; height: 30px; background: var(--hold); transform: scaleY(0); transform-origin: bottom; transition: transform .4s var(--ease) .6s; }
.pl.is-band .pl__flag { transform: none; }
.pl__flag b { position: absolute; left: 4px; top: -6px; font-size: 10.5px; color: #fff; background: var(--hold); border-radius: 3px; padding: 0 5px; white-space: nowrap; }
.pl__past { min-height: 160px; }

/* 場面の切り替えボタン */
.pl__steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)) auto; background: var(--white); border: 1px solid #D9E0E8; border-radius: 0 0 16px 16px; overflow: hidden; }
.pl__steps button { position: relative; display: flex; align-items: center; gap: 10px; font: inherit; font-size: 14px; font-weight: 700; color: var(--ink-3); background: none; border: 0; border-left: 1px solid var(--line); padding: 16px 18px; cursor: pointer; text-align: left; letter-spacing: 0; }
.pl__steps button:first-child { border-left: 0; }
.pl__steps .sh { display: none; white-space: nowrap; }
.pl__steps button b { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid currentColor; font-family: var(--num); font-size: 11px; flex: none; }
.pl__steps button > i { position: absolute; left: 0; top: 0; height: 3px; width: 100%; background: var(--line-2); }
.pl__steps button > i::after { content: ""; position: absolute; inset: 0; width: 0; background: var(--blue); }
.pl__steps button.is-done > i::after { width: 100%; }
.pl__steps button.is-on { color: var(--ink); }
.pl__steps button.is-on b { background: var(--blue); border-color: var(--blue); color: #fff; }
.pl__steps button.is-on > i::after { animation: plprog var(--dur, 3s) linear forwards; }
.player.is-paused .pl__steps button.is-on > i::after { animation-play-state: paused; }
@keyframes plprog { from { width: 0; } to { width: 100%; } }
.pl__pause { width: 54px; justify-content: center; }
.pl__pause span { width: 10px; height: 12px; border-left: 3px solid var(--ink-3); border-right: 3px solid var(--ink-3); }
.player.is-paused .pl__pause span { width: 0; height: 0; border: 0; border-left: 10px solid var(--ink-3); border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.player figcaption { position: absolute; left: 0; right: 0; top: 100%; margin-top: 14px; text-align: center; font-size: 12.5px; color: var(--ink-3); }

/* ── 考え方と比較 ── */
.why { background: var(--white); }
.why__statement { max-width: 820px; margin: 0 auto 64px; text-align: center; }
.why__statement .kicker { justify-content: center; }
.why__h { font-size: clamp(32px, 4.6vw, 60px); line-height: 1.25; letter-spacing: .01em; margin-bottom: 24px; font-feature-settings: "palt" 1; }
.why__h em { font-style: normal; color: var(--blue); }
.why__statement .lead { margin: 0 auto; }
.vs { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--white); }
.vs__row { display: grid; grid-template-columns: 170px repeat(3, minmax(0, 1fr)) minmax(0, 1.15fr); border-top: 1px solid var(--line); }
.vs__row:first-child { border-top: 0; }
.vs__row > * { padding: 18px 20px; font-size: 14.5px; color: var(--ink-2); line-height: 1.7; word-break: auto-phrase; }
.vs__row > b { color: var(--ink); font-size: 14px; background: var(--gray-50); }
.vs__row--head > span { font-size: 13px; font-weight: 700; color: var(--ink-3); background: var(--gray-50); }
.vs__row--head > span:first-child { background: var(--gray-50); }
.vs__me { background: var(--blue-50); color: var(--ink) !important; font-weight: 700; box-shadow: inset 1px 0 0 #C7D6F5, inset -1px 0 0 #C7D6F5; }
.vs__row--head .vs__me { display: flex; align-items: center; gap: 8px; color: var(--blue-2) !important; font-size: 15px; background: var(--blue-50); }
.vs__me b { font-size: 20px; margin-right: 2px; }
.vs__note { margin-top: 12px; font-size: 12.5px; color: var(--ink-3); }

/* ── 柱カード（4列） ── */

/* ── 取れた値段がわかる（紺・スクロール連動） ── */
.win { background: var(--navy); color: #fff; padding: 128px 0; }
.head--dark .h2 { color: #fff; }
.head--dark .lead { color: #B5C0CF; }
.kicker--dark { color: #8FB0F2; }
.win__grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 72px; }
.win__step { min-height: 44vh; display: flex; flex-direction: column; justify-content: center; opacity: .35; transition: opacity .4s; border-left: 2px solid rgba(255, 255, 255, .12); padding-left: 28px; }
.win__step.is-on { opacity: 1; border-left-color: #6E97EE; }
.win__step:first-child { min-height: 46vh; justify-content: flex-start; padding-top: 40px; }
.win__no { font-size: 13px; font-weight: 700; color: #8FB0F2; margin-bottom: 6px; }
.win__step h3 { font-size: 24px; margin-bottom: 10px; }
.win__step p { color: #B5C0CF; font-size: 15.5px; line-height: 1.9; }
.win__stage { position: sticky; top: 150px; height: 340px; align-self: start; }
.wpanel { position: absolute; inset: 0; background: var(--white); color: var(--ink); border-radius: 16px; padding: 28px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 40px 80px -40px rgba(0, 0, 0, .6); opacity: 0; transform: translateY(16px) scale(.985); transition: opacity .5s var(--ease), transform .6s var(--ease); letter-spacing: 0; }
.wpanel.is-on { opacity: 1; transform: none; }
.wpanel__k { font-size: 13px; font-weight: 700; color: var(--ink-3); margin-bottom: 14px; }
.wres { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line-2); font-size: 14px; }
.wres span { color: var(--ink-2); }
.wres span b { color: var(--ink); margin-right: 10px; }
.wres__btns { display: flex; gap: 6px; font-style: normal; }
.wres__btns i { white-space: nowrap; font-style: normal; font-size: 12.5px; font-weight: 700; border: 1px solid var(--line); border-radius: 6px; padding: 4px 12px; color: var(--ink-3); transition: all .3s; }
.wpanel.is-on .wres__btns .is-won { background: var(--won); border-color: var(--won); color: #fff; transition-delay: .5s; }
.wpanel.is-on .wres__btns .is-lost { background: var(--lost); border-color: var(--lost); color: #fff; transition-delay: .9s; }
.wres__why { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 0 0 14px; font-size: 12.5px; }
.wres__why span { color: var(--ink-3); margin-right: 4px; }
.wres__why i { font-style: normal; border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; color: var(--ink-2); transition: all .3s; }
.wpanel.is-on .wres__why .is-on { background: var(--lost-bg); border-color: #F0B8AF; color: var(--lost); font-weight: 700; transition-delay: 1.3s; }
.wbar { display: grid; grid-template-columns: 90px minmax(0, 1fr) 48px; gap: 14px; align-items: center; padding: 11px 0; font-size: 14px; }
.wbar i { height: 12px; border-radius: 6px; background: var(--gray-100); position: relative; overflow: hidden; }
.wbar i::after { content: ""; position: absolute; inset: 0; width: 0; background: var(--blue); border-radius: 6px; transition: width 1s var(--ease); }
.wpanel.is-on .wbar i::after { width: var(--w); }
.wpanel.is-on .wbar:nth-child(3) i::after { transition-delay: .1s; } .wpanel.is-on .wbar:nth-child(4) i::after { transition-delay: .2s; } .wpanel.is-on .wbar:nth-child(5) i::after { transition-delay: .3s; } .wpanel.is-on .wbar:nth-child(6) i::after { transition-delay: .4s; }
.wbar b { text-align: right; font-size: 14px; }
.wstack { display: flex; height: 40px; border-radius: 8px; overflow: hidden; background: var(--gray-100); margin: 10px 0 20px; }
.wstack i { width: 0; transition: width .9s var(--ease); }
.wpanel.is-on .wstack i { width: var(--w); }
.c1 { background: var(--lost); } .c2 { background: #D9822B; } .c3 { background: #8E96A3; } .c4 { background: #C4CAD3; }
.wlegend { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 13.5px; }
.wlegend li { display: inline-flex; align-items: center; gap: 8px; }
.wlegend li > i { width: 12px; height: 12px; border-radius: 3px; }
.wlegend i.won { background: var(--won); border-radius: 50%; } .wlegend i.lost { background: var(--lost); border-radius: 50%; }
.wlegend b { margin-left: 2px; }
.wnote { margin-top: 22px; padding: 12px 14px; background: var(--gray-50); border-radius: 8px; font-size: 13.5px; color: var(--ink-2); }
.wchart { width: 100%; max-width: 520px; height: auto; margin-bottom: 10px; overflow: visible; }
.wchart__band { fill: var(--won-bg); }
.wchart__bandt { font-size: 11px; fill: var(--won); font-weight: 700; }
.wchart__ax { stroke: var(--line); }
.wchart__line { fill: none; stroke: #A9B4C2; stroke-width: 2; stroke-dasharray: 600; stroke-dashoffset: 600; transition: stroke-dashoffset 1.4s var(--ease); }
.wpanel.is-on .wchart__line { stroke-dashoffset: 0; }
.wchart circle { stroke: #fff; stroke-width: 2; transform-box: fill-box; transform-origin: center; transform: scale(0); transition: transform .35s var(--ease); }
.wpanel.is-on .wchart circle { transform: scale(1); }
.wpanel.is-on .wchart circle:nth-of-type(2) { transition-delay: .2s; } .wpanel.is-on .wchart circle:nth-of-type(3) { transition-delay: .4s; } .wpanel.is-on .wchart circle:nth-of-type(4) { transition-delay: .6s; } .wpanel.is-on .wchart circle:nth-of-type(5) { transition-delay: .8s; } .wpanel.is-on .wchart circle:nth-of-type(6) { transition-delay: 1s; }
.wchart circle.won { fill: var(--won); } .wchart circle.lost { fill: var(--lost); }
.wchart__t { font-size: 11px; fill: var(--ink-3); font-family: var(--num); }
.win__inline { display: none; }

/* ── 書式・AI の動き ── */
.chat[data-anim] { min-height: 190px; }
.chat__typing i:nth-child(2) { animation-delay: .15s; } .chat__typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%, 60%, 100% { transform: none; opacity: .5; } 30% { transform: translateY(-3px); opacity: 1; } }

/* ── スクロールで出す ── */
.js [data-reveal] { opacity: 0; transform: translateY(6px); transition: opacity .45s var(--ease), transform .45s var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; transform: none; filter: none; transition: none; }
  .pl *, .pl, .wpanel, .wpanel * { transition: none !important; animation: none !important; }
}

@media (max-width: 1080px) {
  .pl__body { grid-template-columns: 240px minmax(0, 1fr); }
  .pl__steps .lg { display: none; }
  .pl__steps .sh { display: inline; }
  .pl.is-result .pl__main { display: block; }
  .vs { overflow: visible; border: 0; background: none; display: grid; gap: 12px; }
  .vs__row { min-width: 0; grid-template-columns: minmax(0, 1fr); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--white); }
  .vs__row--head { display: none; }
  .vs__row > * { padding: 8px 14px; font-size: 13.5px; display: grid; grid-template-columns: 8.5em minmax(0, 1fr); gap: 8px; }
  .vs__row > b { display: block; padding: 10px 14px; }
  .vs__row > span::before { content: attr(data-l); font-size: 11.5px; font-weight: 700; color: var(--ink-3); }
  .vs__row > .vs__me::before { color: var(--blue); }
  .vs__me { box-shadow: none; }
  .vs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .win__grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .win__stage { display: none; }
  .win__step, .win__step:first-child { min-height: 0; opacity: 1; padding: 28px 0 28px 24px; }
  .win__inline { display: block; margin-top: 20px; }
  .win__inline .wpanel { position: relative; inset: auto; }
}
@media (max-width: 860px) {
  .quick__row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .quick__row .submit { grid-column: 1 / -1; }
  .pl__body { grid-template-columns: minmax(0, 1fr); min-height: 560px; }
  .pl__main { display: none; }
  .pl.is-open .pl__main { display: block; }
  .pl.is-open .pl__list { display: none; }
  .pl__body { min-height: 0; }
  .pl__steps { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .pl__steps button { flex-direction: column; align-items: flex-start; gap: 6px; font-size: 12px; padding: 12px 10px; }
  .pl__pause { display: none !important; }
}
@media (max-width: 720px) {
  .sec, .pillars, .win { padding: 72px 0; }
  .head { margin-bottom: 32px; }
  .hero { padding-top: 44px; }
  .hero__inner { text-align: left; align-items: stretch; }
  .hero h1 { font-size: clamp(28px, 8vw, 36px); }
  .hero__lead { font-size: 15.5px; margin-bottom: 26px; }
  .quick__row { grid-template-columns: minmax(0, 1fr); }
  .player { margin-top: 40px; }
  .pl__top .pl__search { display: none; }
  .pl__main { padding: 14px; }
  .pl__body { min-height: 0; }
  .pl__grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .pl__fax { padding: 8px 10px; font-size: 11px; }
  .pl__faxhead, .pl__faxnote, .pl__faxtitle { display: none; }
  .pl__fax .hw { font-size: 12.5px; }
  .pl__fax th, .pl__fax td { padding: 2px 6px; }
  .pl__steps .lg { display: none; }
  .pl__steps .sh { display: inline; }
  .pl__steps button { flex-direction: row; align-items: center; font-size: 12.5px; }
  .pl__body { min-height: 0; height: 640px; overflow: hidden; }
  .pl__sheet .num { padding-right: 8px !important; }
  .pl__toast { white-space: nowrap; }
  .pl__res i { padding: 8px 12px; }
  .pl__foot { gap: 10px; }
  .pl__xl { bottom: 8px; }
  .pl__xlbar { overflow: hidden; }
  .pl__saved { flex: none; }
  .wres { flex-wrap: wrap; }
  .wres > span { flex: 1 1 100%; }
  .wchart__t, .wchart__bandt { font-size: 16px; }
  .ppast { grid-template-columns: 58px minmax(0, 1fr) auto auto; }
  .pl.is-scan .pl__info { animation: none; }
  .pl__foot { flex-wrap: wrap; }
  .pl__draft small { font-size: 11px; }
  .pl__draft { flex-wrap: wrap; }
  .pl__btn { width: 100%; text-align: center; }
  .pl__xl { inset: 8px; }
  .ppast__why { display: none; }
  .pl__saved { white-space: nowrap; font-size: 11px; }
  .pl__xlbar { font-size: 12px; gap: 8px; }
  .pl__sheet { padding: 10px; font-size: 11.5px; }
  .pl__sr > span { padding: 5px 5px; }
  .pl__toast { left: 12px; right: 12px; top: 56px; bottom: auto; font-size: 12px; }
  .pl.is-search .pl__fax { display: none; }
  .pl__steps button { font-size: 11.5px; padding: 10px 6px; gap: 5px; }
  .pl__steps button b { width: 18px; height: 18px; font-size: 10px; }
  .player { margin-bottom: 76px; padding: 6px; border-radius: 18px; }
  .why__h { font-size: clamp(28px, 8.4vw, 38px); }
  .why__statement { text-align: left; }
  .why__statement .kicker { justify-content: flex-start; }
  .vs { grid-template-columns: minmax(0, 1fr); }

  .wpanel { padding: 20px; }
  .wbar { grid-template-columns: 76px minmax(0, 1fr) 40px; }
}

@media (hover: none) {
  .pl__cursor svg { display: none; }
}

/* v4.3 */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.quick .field input { min-height: 52px; }
.pl__fax { transform: rotate(-.4deg); box-shadow: 0 1px 2px rgba(0, 0, 0, .06); background-image: repeating-linear-gradient(0deg, rgba(0, 0, 0, .012) 0 1px, transparent 1px 3px); }
.pl__faxhead { display: flex; justify-content: space-between; gap: 8px; font-size: 9.5px !important; letter-spacing: .02em; }
.pl__dwg { display: block; width: 100%; max-width: 240px; margin: 8px auto 0; color: #56607A; opacity: .8; }
.pl__per { font-size: 12px; font-weight: 500; color: var(--ink-3); margin-left: 2px; }
.pl__fn { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl__sr--cols { min-height: 20px; background: var(--gray-50); border-bottom: 1px solid var(--line); margin: -18px -20px 6px; padding: 0 20px; }
.pl__sr--cols span { font-size: 10px; color: var(--ink-3); text-align: center; padding: 2px !important; }
.pl__mail { position: absolute; right: 36px; bottom: 40px; z-index: 2; width: 340px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px 16px; box-shadow: 0 24px 48px -20px rgba(15, 26, 38, .45); font-size: 12.5px; opacity: 0; transform: translateY(12px) scale(.98); pointer-events: none; transition: opacity .25s, transform .3s var(--ease); }
.pl.is-mail .pl__mail { opacity: 1; transform: none; }
.pl__mailk { font-weight: 700; font-size: 13px; margin-bottom: 8px; }
.pl__mail p:not(.pl__mailk) { display: flex; align-items: center; gap: 8px; padding: 5px 0; border-top: 1px solid var(--line-2); white-space: nowrap; overflow: hidden; }
.pl__mail p span { width: 32px; flex: none; color: var(--ink-3); font-size: 11.5px; }
.pl__mailbtn { display: inline-block; margin-top: 10px; font-weight: 700; color: #fff; background: var(--blue); border-radius: 6px; padding: 6px 18px; transition: transform .15s; }
.pl.is-mailpress .pl__mailbtn { transform: scale(.95); background: var(--blue-2); }
.pl__sentdue { display: none; background: var(--gray-100); color: var(--ink-2) !important; border-radius: 4px; padding: 2px 8px; }
.pl.is-sent .pl__due { display: none; }
.pl.is-sent .pl__sentdue { display: inline-block; }
.pl:not(.is-export) .pl__xl { transition-duration: .2s; }
.wchart__now { stroke: var(--hold); stroke-dasharray: 3 3; }
.wchart circle.draft { fill: var(--hold); }
.wlegend i.draft { background: var(--hold); border-radius: 50%; }
.wchart__v { font-size: 11px; fill: var(--ink-2); font-weight: 700; }
.wchart__v--draft { fill: var(--hold); }
.wbar i::after { transition-duration: .6s !important; }
@media (max-width: 720px) {
  .pl__from { display: none; }
  .pl__mail { left: 12px; right: 12px; width: auto; bottom: 20px; }
  .pl__faxhead { display: none; }
  .wchart__v { font-size: 15px; }
}

/* v4.4: ヒーローを詰める・書式の節・考え方の節 */
.hero { padding-top: 40px; }
.badge { margin-bottom: 16px; }
.hero h1 { font-size: clamp(32px, 4.2vw, 54px); line-height: 1.2; margin-bottom: 16px; }
.hero__lead { font-size: 17px; line-height: 1.8; margin-bottom: 22px; max-width: none; }
.player { margin-top: 30px; }
@media (max-width: 720px) { br.pc { display: none; } }

.why__statement { max-width: none; margin: 0 0 56px; text-align: left; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 24px 64px; align-items: end; }
.why__statement .kicker { grid-column: 1 / -1; justify-content: flex-start; margin-bottom: 0; }
.why__h { margin-bottom: 0; }
.why__statement .lead { margin: 0; padding-bottom: 10px; border-left: 2px solid var(--blue); padding-left: 20px; }

.win__step { min-height: 34vh !important; }
.win__step:first-child { min-height: 30vh !important; }

@media (max-width: 1080px) {
  .why__statement, .fmt__head { grid-template-columns: minmax(0, 1fr); }
}

/* v4.5 */
.pl__draft .dl-a, .pl__draft .dl-b { font-style: normal; }
.pl__draft .dl-b, .pl.is-won .pl__draft .dl-a { display: none; }
.pl.is-won .pl__draft .dl-b { display: inline; color: var(--won); }
.pl.is-won .pl__draft > span { color: var(--won); }
.pl__toast { left: 50%; right: auto; top: 8px; transform: translate(-50%, -8px); white-space: nowrap; }
.pl.is-toast .pl__toast:not(.pl__toast--won):not(.pl__toast--sent), .pl.is-toast2 .pl__toast--won, .pl.is-toast3 .pl__toast--sent { transform: translate(-50%, 0); }
.pl__main { transition: opacity .4s; }
.pl.is-fade .pl__main { opacity: 0; }
.win__step { min-height: 24vh !important; opacity: .6; }
.win__step:first-child { min-height: 24vh !important; }
.win__stage { height: 310px !important; }
.hero { padding-top: 28px; }
.hero h1 { margin-bottom: 12px; }
.hero__lead { margin-bottom: 18px; }
.player { margin-top: 24px; }
.pl__body { min-height: 420px; }
@media (max-width: 1080px) {
  .win__step { opacity: 1; }
}
@media (max-width: 720px) {
  .hero h1 { font-size: 28px; }
  .pc-only { display: none; }
  .pl__toast { left: 12px; right: 12px; transform: translateY(-8px); white-space: normal; }
  .pl.is-toast .pl__toast:not(.pl__toast--won):not(.pl__toast--sent), .pl.is-toast2 .pl__toast--won, .pl.is-toast3 .pl__toast--sent { transform: none; }
}
.pl__head .pl__sentdue { background: var(--gray-100); color: var(--ink-2); }

/* 操作イメージは player.js が差し込む。差し込むまでの間に高さが跳ねないよう、場所だけ取っておく */
.pl-slot { min-height: 560px; }
@media (max-width: 720px) { .pl-slot { min-height: 640px; } }
