/* 見積デジ LP — 3つの約束・使い方・自由帳票・データの扱い・料金表
 * （index.html だけが読む。lp-demo.css の後） */

.head--c { text-align: center; }
.head--c .kicker { justify-content: center; }
.head--c .lead { margin: 0 auto; }

/* ヒーローの3点 */
.hero__pts { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; margin-bottom: 26px; }
.hero__pts li { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; }

/* ── 3つの約束 ── */
.promise__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.pc { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 16px; background: var(--white); overflow: hidden; padding-bottom: 28px; }
.pc > :not(.pc__vis) { margin-left: 28px; margin-right: 28px; }
.pc--key { border-color: #BFD0F3; box-shadow: 0 0 0 3px var(--blue-50); }
.pc__vis { height: 168px; background: var(--gray-50); border-bottom: 1px solid var(--line); padding: 20px 22px; display: flex; flex-direction: column; justify-content: center; gap: 10px; letter-spacing: 0; margin-bottom: 24px; font-size: 12.5px; }
.pc__to { display: flex; align-items: center; gap: 8px; background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; font-weight: 700; }
.pc__to span { font-size: 11px; font-weight: 500; color: var(--ink-3); }
.pc__srcs { display: flex; align-items: center; gap: 6px; }
.pc__arrow { flex: 1; height: 2px; background: linear-gradient(90deg, var(--blue-100), var(--blue)); position: relative; margin-left: 4px; }
.pc__arrow::after { content: ""; position: absolute; right: -1px; top: -4px; border: 5px solid transparent; border-left: 7px solid var(--blue); border-right: 0; }
.pc__row { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; gap: 8px; align-items: center; background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; box-shadow: inset 3px 0 0 var(--blue); }
.pc__row span { color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc__tabs { display: flex; gap: 4px; }
.pc__tabs span { font-size: 11px; font-weight: 700; color: var(--ink-3); background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 3px 9px; white-space: nowrap; }
.pc__tabs .is-on { color: #fff; background: var(--ink); border-color: var(--ink); }
.pc__sheet { background: var(--white); border: 1px solid var(--line); }
.pc__sheet p { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, .8fr) minmax(0, .9fr); }
.pc__sheet p + p { border-top: 1px solid var(--line); }
.pc__sheet span { padding: 6px 8px; border-left: 1px solid var(--line-2); white-space: nowrap; overflow: hidden; }
.pc__sheet span:first-child { border-left: 0; }
.pc__sheet p:first-child span { background: #EEF3F8; font-weight: 700; font-size: 11.5px; }
.pc__sheet .num { text-align: right; }
.pc mark, .fx mark, .fx .m { background: var(--blue-100); color: var(--ink); border-radius: 3px; padding: 0 3px; box-shadow: inset 0 0 0 1px #A9C0EE; }
.pc__vis--price { align-items: center; text-align: center; }
.pc__yen { font-size: 16px; font-weight: 700; }
.pc__yen b { font-size: 46px; line-height: 1; letter-spacing: -.01em; margin-right: 2px; }
.pc__yen span { font-size: 13px; color: var(--ink-3); font-weight: 500; margin-left: 4px; }
.pc__chips { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.pc__chips span { font-size: 12px; font-weight: 700; color: var(--blue-2); background: var(--blue-50); border-radius: 999px; padding: 3px 12px; }
.pc__k { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; color: var(--ink-3); margin-bottom: 8px; }
.pc__k b { color: #fff; background: var(--blue); border-radius: 4px; padding: 1px 8px; font-size: 12px; }
.pc h3 { font-size: 21px; margin-bottom: 10px; }
.pc > p:last-child { font-size: 14.5px; color: var(--ink-2); line-height: 1.85; }

/* ── 使い方 ── */
.how__steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; counter-reset: hs; position: relative; }
.hs { position: relative; background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 28px; }
.hs:not(:last-child)::after { content: ""; position: absolute; right: -16px; top: 50px; width: 12px; height: 12px; border: solid var(--blue); border-width: 2px 2px 0 0; transform: rotate(45deg); z-index: 1; }
.hs__no { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; color: var(--blue); margin-bottom: 16px; }
.hs__no b { width: 28px; height: 28px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; font-size: 13px; }
.hs__ico { display: flex; gap: 8px; margin-bottom: 14px; }
.hs__ico svg { width: 40px; height: 40px; padding: 8px; border-radius: 10px; background: var(--blue-50); fill: none; stroke: var(--blue); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.hs h3 { font-size: 18px; margin-bottom: 8px; }
.hs > p:last-child { font-size: 14.5px; color: var(--ink-2); line-height: 1.85; }
.how__setup { margin-top: 28px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px 40px; align-items: center; background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 24px 28px; }
.how__setk { font-size: 17px; font-weight: 700; grid-row: span 2; }
.how__setup ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 28px; }
.how__setup li, .fx__pts li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; font-size: 14px; color: var(--ink-2); line-height: 1.75; }
.how__setup li .ck, .fx__pts li .ck { margin-top: 3px; }
.how__setup li b, .fx__pts li b { display: block; color: var(--ink); font-size: 15px; }
.how__setn { font-size: 13px; color: var(--ink-3); }

/* ── 書式の切り替え ── */
.fx { background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 20px; box-shadow: 0 40px 80px -48px rgba(15, 26, 38, .35); }
.fx__tabs { display: flex; gap: 4px; padding: 4px; background: var(--gray-100); border-radius: 12px; width: fit-content; max-width: 100%; margin: 0 auto 20px; overflow-x: auto; scrollbar-width: none; }
.fx__tabs::-webkit-scrollbar { display: none; }
.fx__tabs button { font: inherit; font-size: 14px; font-weight: 700; color: var(--ink-2); background: none; border: 0; border-radius: 9px; padding: 9px 18px; cursor: pointer; white-space: nowrap; transition: background .2s, color .2s; }
.fx__tabs button:hover { color: var(--ink); }
.fx__tabs button[aria-selected="true"] { background: var(--white); color: var(--ink); box-shadow: 0 1px 3px rgba(15, 26, 38, .12); }
.fx__panel { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 24px; align-items: start; }
.fx__panel[hidden] { display: none; }
.fx__src { background: var(--gray-50); border: 1px solid var(--line); border-radius: 12px; padding: 18px; }
.fx__k { font-size: 12px; font-weight: 700; color: var(--ink-3); margin-bottom: 6px; }
.fx__kv div { display: grid; grid-template-columns: 4.6em minmax(0, 1fr); gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.fx__kv dt { color: var(--ink-3); font-size: 12.5px; }
.fx__kv dd { font-weight: 700; }
.fx__note { margin-top: 12px; font-size: 13px; font-weight: 700; color: var(--blue-2); }
.fx__sheet { border: 1px solid #D9E0E8; border-radius: 12px; overflow: hidden; background: #F3F5F8; letter-spacing: 0; }
.fx__bar { display: flex; align-items: center; gap: 8px; padding: 8px 12px; background: var(--white); border-bottom: 1px solid var(--line); font-size: 12.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fx__paper { margin: 16px; background: var(--white); border: 1px solid var(--line); box-shadow: 0 2px 8px -4px rgba(15, 26, 38, .2); padding: 20px 22px 18px; font-size: 13px; min-height: 270px; }
.fx__title { text-align: center; font-size: 17px; font-weight: 700; letter-spacing: .3em; margin-bottom: 12px; }
.fx__title--l { text-align: left; letter-spacing: .08em; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-bottom: 2px solid var(--ink); padding-bottom: 6px; }
.fx__title small { font-size: 11px; font-weight: 500; letter-spacing: 0; color: var(--ink-2); }
.fx__to { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-weight: 700; border-bottom: 1px solid var(--ink); padding-bottom: 4px; margin-bottom: 12px; }
.fx__from { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 500; color: var(--ink-2); }
.fx__stamp { font-style: normal; width: 26px; height: 26px; border: 1.5px solid #C9473A; color: #C9473A; border-radius: 50%; display: grid; place-items: center; font-size: 10px; font-weight: 700; transform: rotate(-8deg); }
.xs { width: 100%; border: 1px solid #B8C1CC; margin-bottom: 10px; }
.xs th, .xs td { border: 1px solid #CBD2DB; padding: 6px 8px; text-align: left; font-size: 12.5px; }
.xs th { background: #EEF3F8; font-weight: 700; font-size: 12px; white-space: nowrap; }
.xs .num { text-align: right; }
.xs__sum td { font-weight: 700; background: var(--gray-50); }
.xs--kv th { width: 6.5em; }
.fx__meta { font-size: 12px; color: var(--ink-2); }
.fx__legend { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-top: 12px; font-size: 12px; color: var(--ink-3); }
/* 書き込むセルが順に入る */
.js .fx .m { transition: background-color .3s, box-shadow .3s, color .3s; transition-delay: calc(var(--d) * 140ms + 150ms); }
.js .fx__panel:not(.is-in) .m { background: transparent; box-shadow: none; color: transparent; transition: none; }
.fx__pts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 28px; margin-top: 40px; }

/* 書式の登録 */
.map { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 32px 56px; align-items: center; margin-top: 72px; }
.map__h { font-size: clamp(22px, 2.4vw, 28px); margin-bottom: 18px; }
.map__steps { display: grid; border-top: 1px solid var(--line); }
.map__steps li { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--ink-2); line-height: 1.75; }
.map__steps li > b { width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 12px; display: grid; place-items: center; margin-top: 2px; }
.map__steps strong { display: block; color: var(--ink); font-size: 15.5px; }
.map__n { margin-top: 14px; font-size: 13px; color: var(--ink-3); line-height: 1.8; }
.mp { background: var(--white); border: 1px solid #D9E0E8; border-radius: 14px; overflow: hidden; box-shadow: 0 40px 80px -48px rgba(15, 26, 38, .4); letter-spacing: 0; font-size: 13px; }
.mp__bar { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.mp__t { font-weight: 700; white-space: nowrap; }
.mp__f { flex: 1; min-width: 0; font-size: 12px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mp__save { font-size: 12px; font-weight: 700; color: #fff; background: var(--blue); border-radius: 6px; padding: 4px 12px; }
.mp__body { position: relative; padding: 16px; background: var(--gray-50); min-height: 236px; }
.mp__grid { background: var(--white); border: 1px solid #CBD2DB; }
.mp__r { display: grid; grid-template-columns: 26px minmax(0, .9fr) minmax(0, 1.2fr) minmax(0, .7fr) minmax(0, .9fr); }
.mp__r + .mp__r { border-top: 1px solid #DCE1E8; }
.mp__r > span { padding: 8px; min-height: 36px; border-left: 1px solid #DCE1E8; white-space: nowrap; overflow: hidden; display: flex; align-items: center; }
.mp__r > span:first-child { border-left: 0; justify-content: center; font-size: 11px; color: var(--ink-3); background: #F1F4F8; padding: 0; }
.mp__r--c > span { min-height: 22px; padding: 2px; justify-content: center; font-size: 11px; color: var(--ink-3); background: #F1F4F8; }
.mp__title { grid-column: 2 / -1; font-weight: 700; letter-spacing: .1em; }
.mp__h { background: #EEF3F8; font-weight: 700; font-size: 12px; }
.mp__c--w { grid-column: 3 / -1; }
.mp__c { position: relative; transition: box-shadow .15s; }
.mp__c em { font-style: normal; font-size: 11.5px; font-weight: 700; color: var(--blue-2); background: var(--blue-50); border: 1px solid #BFD0F3; border-radius: 4px; padding: 1px 7px; opacity: 0; transform: scale(.8); transition: opacity .2s, transform .25s var(--ease); }
.mp__c.is-sel { box-shadow: inset 0 0 0 2px var(--blue); }
.mp__c.is-set em { opacity: 1; transform: none; }
.mp__menu { position: absolute; left: 0; top: 0; z-index: 2; width: 168px; background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 8px; box-shadow: 0 16px 32px -12px rgba(15, 26, 38, .35); opacity: 0; transform: translateY(6px); pointer-events: none; transition: opacity .18s, transform .22s var(--ease); }
.mp__menu.is-on { opacity: 1; transform: none; }
.mp__menu p { font-size: 11px; color: var(--ink-3); padding: 2px 6px 6px; }
.mp__menu li { font-size: 12.5px; padding: 5px 8px; border-radius: 6px; }
.mp__menu li.is-hi { background: var(--blue); color: #fff; font-weight: 700; }
.mp__cursor { position: absolute; left: 0; top: 0; z-index: 3; width: 18px; height: 18px; transition: transform .55s var(--ease), opacity .2s; opacity: 0; }
.mp.is-run .mp__cursor { opacity: 1; }
.mp__cursor svg { width: 18px; height: 18px; fill: var(--ink); stroke: #fff; stroke-width: 1.2; }
.mp__foot { display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; border-top: 1px solid var(--line); font-size: 12.5px; }
.mp__done b { font-size: 14px; color: var(--blue); }
.mp__hint { color: var(--ink-3); }

/* ── データの扱い ── */
.safe__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.safe__grid li { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 24px; }
.safe__ico svg { width: 44px; height: 44px; padding: 10px; border-radius: 12px; background: var(--blue-50); fill: none; stroke: var(--blue); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 14px; }
.safe__grid h3 { font-size: 16.5px; margin-bottom: 6px; }
.safe__grid p { font-size: 14px; color: var(--ink-2); line-height: 1.8; }
.safe__note { margin-top: 20px; text-align: center; font-size: 13.5px; color: var(--ink-3); }

/* ── 料金 ── */
.pp { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.pp__card { position: relative; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 18px; padding: 32px 28px 28px; background: var(--white); }
.pp__card--rec { border: 2px solid var(--blue); box-shadow: 0 30px 60px -36px rgba(31, 91, 214, .45); }
.pp__card--opt { background: var(--gray-50); }
.pp__badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); font-size: 12px; font-weight: 700; color: #fff; background: var(--blue); border-radius: 999px; padding: 3px 14px; white-space: nowrap; }
.pp__name { font-size: 18px; font-weight: 700; }
.pp__for { font-size: 13.5px; color: var(--ink-3); margin-bottom: 14px; }
.pp__price { font-size: 18px; font-weight: 700; }
.pp__price b { font-size: 46px; line-height: 1.1; letter-spacing: -.01em; margin-right: 2px; }
.pp__price span { font-size: 13px; color: var(--ink-3); font-weight: 500; margin-left: 4px; }
.pp__early { margin: 8px 0 20px; font-size: 13px; font-weight: 700; color: var(--won); background: var(--won-bg); border-radius: 6px; padding: 5px 10px; }
.pp__early b { font-size: 15px; }
.pp__list { flex: 1; display: grid; align-content: start; gap: 0; margin-bottom: 24px; border-top: 1px solid var(--line-2); }
.pp__list li { position: relative; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; padding: 11px 0 11px 28px; border-bottom: 1px solid var(--line-2); font-size: 14px; color: var(--ink-2); }
.pp__list li::before { content: ""; position: absolute; left: 0; top: 13px; width: 18px; height: 18px; border-radius: 50%; background: var(--blue-50); }
.pp__list li::after { content: ""; position: absolute; left: 6.5px; top: 16.5px; width: 4.5px; height: 8px; border: solid var(--blue); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.pp__list b { margin-left: auto; color: var(--ink); font-size: 14.5px; }
.pp__list small { flex-basis: 100%; text-align: right; font-size: 12px; color: var(--ink-3); }
.pp__opt { font-size: 13px; color: var(--ink-3); text-align: center; }
.perk { margin-top: 28px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px 40px; align-items: start; border: 1px solid var(--line); border-radius: 16px; padding: 24px 28px; }
.perk__k { font-size: 16px; font-weight: 700; padding-top: 2px; }
.perk ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 28px; }
.perk li { font-size: 13.5px; color: var(--ink-2); line-height: 1.75; }
.perk li b { display: block; color: var(--ink); font-size: 15px; margin-bottom: 2px; }
.pp__note { margin-top: 14px; text-align: center; font-size: 12.5px; color: var(--ink-3); }

@media (max-width: 1080px) {
  .promise__grid { grid-template-columns: minmax(0, 1fr); }
  .pc { display: grid; grid-template-columns: 340px minmax(0, 1fr); align-content: start; padding: 0; }
  .pc__vis { grid-row: 1 / span 3; height: auto; margin: 0; border-bottom: 0; border-right: 1px solid var(--line); }
  .pc > :not(.pc__vis) { margin: 0 26px; }
  .pc__k { margin-top: 24px !important; }
  .pc > p:last-child { margin-bottom: 24px !important; }
  .how__steps { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .hs:not(:last-child)::after { right: auto; left: 50%; top: auto; bottom: -13px; transform: translateX(-50%) rotate(135deg); }
  .how__setup { grid-template-columns: minmax(0, 1fr); }
  .how__setk { grid-row: auto; }
  .fx__panel { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .fx__kv { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; }
  .map { grid-template-columns: minmax(0, 1fr); margin-top: 56px; }
  .fx__pts { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .safe__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pp { grid-template-columns: minmax(0, 1fr); max-width: 560px; margin: 0 auto; gap: 28px; }
  .perk { grid-template-columns: minmax(0, 1fr); }
  .perk ul { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .hero__pts { flex-direction: column; align-items: flex-start; gap: 8px; width: fit-content; margin-left: auto; margin-right: auto; }
  .hero__pts li { font-size: 14.5px; }
  .pc { display: flex; padding-bottom: 22px; }
  .pc__vis { border-right: 0; border-bottom: 1px solid var(--line); margin-bottom: 20px; padding: 16px; min-height: 150px; }
  .pc > :not(.pc__vis) { margin: 0 20px; }
  .pc__k { margin-top: 0 !important; }
  .pc > p:last-child { margin-bottom: 0 !important; }
  .pc h3 { font-size: 19px; }
  .hs { padding: 22px 20px; }
  .how__setup { padding: 20px; }
  .how__setup ul { grid-template-columns: minmax(0, 1fr); }
  .fx { padding: 12px; border-radius: 14px; }
  .fx__tabs { width: 100%; }
  .fx__tabs button { flex: 1; padding: 8px 10px; font-size: 12.5px; }
  .fx__tl { display: none; }
  .fx__kv { grid-template-columns: minmax(0, 1fr); }
  .fx__paper { margin: 10px; padding: 14px 12px; min-height: 0; }
  .fx__from { margin-left: 0; }
  .xs th, .xs td { padding: 5px 6px; font-size: 11.5px; }
  .xs--kv th { width: 5.5em; }
  .mp__r > span { padding: 6px; font-size: 11.5px; min-height: 32px; }
  .mp__r { grid-template-columns: 22px minmax(0, .9fr) minmax(0, 1.1fr) minmax(0, .7fr) minmax(0, .8fr); }
  .mp__hint { display: none; }
  .safe__grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .safe__grid li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 4px 16px; padding: 18px; }
  .safe__ico { grid-row: span 2; }
  .safe__ico svg { margin-bottom: 0; }
  .pp__card { padding: 28px 20px 22px; }
  .perk { padding: 20px; }
}
