/* ==========================================================================
   セールスPit LP（toC）02：市場価値チェック
   現行LP（sales-pit-lp-freelance.css）に重ねて読み込む。
   deploy-owned: sales-pit-lp-freelance-02
   ========================================================================== */

:root {
  --splfc-navy: #1e2b66;
  --splfc-blue: #3e6e9e;
  --splfc-gold: #f3dc8c;
  --splfc-red: #bd4834;
  --splfc-text-sub: #5b6478;
  --splfc-line: #d5dbe8;
  --splfc-orange: linear-gradient(90deg, #b93f2d 0%, #cd6d52 50%, #e39f7b 100%);
  --splfc-band: linear-gradient(100deg, #1e2b66 0%, #3e6e9e 100%);
  --splfc-shadow: 0 8px 24px rgb(30 43 102 / 10%);
}

/* ---- ファーストビューの CTA ------------------------------------------- */
.splfc-kv-cta__proof {
  margin-top: 12px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-align: center;
  color: var(--splfc-navy);
  text-shadow: 0 0 9px #fff;
}

.splfc-kv-cta__proof::before {
  content: "✓";
  display: inline-block;
  margin-right: 6px;
}

/* ---- オーバーレイ ----------------------------------------------------- */
html.splfc-open,
html.splfc-open body {
  overflow: hidden;
}

.splfc {
  --splfc-gutter: max(16px, calc((100% - 480px) / 2));

  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  font-family: var(--font-family-primary);
  color: var(--splfc-navy);
}

/* ログイン中の管理バーに隠れないようにする */
body.admin-bar .splfc {
  top: 32px;
}

@media screen and (width <= 782px) {
  body.admin-bar .splfc {
    top: 46px;
  }
}

.splfc[hidden] {
  display: none;
}

.splfc [hidden] {
  display: none !important;
}

.splfc__panel {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, #f6f7fa 0%, #e4edf4 100%);
}

.splfc__head {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  padding: 0 calc(var(--splfc-gutter) - 8px) 0 var(--splfc-gutter);
  background: #fff;
}

.splfc__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 0;
  background: none;
  color: var(--splfc-navy);
  cursor: pointer;
}

.splfc__band {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  gap: 10px;
  padding: 14px calc(var(--splfc-gutter) + 4px) 16px;
  background: var(--splfc-band);
}

.splfc__band-text {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 30px;
  letter-spacing: 0.04em;
  text-align: center;
  color: #fff;
}

.splfc__band-text b {
  margin: 0 4px;
  font-size: 30px;
  font-weight: 900;
  vertical-align: -2px;
  color: var(--splfc-gold);
}

.splfc__gold {
  color: var(--splfc-gold);
}

.splfc__segs {
  display: flex;
  gap: 6px;
}

.splfc__segs i {
  flex: 1;
  height: 6px;
  border-radius: 3px;
  background: rgb(255 255 255 / 28%);
}

.splfc__segs i.is-now {
  background: #fff;
}

.splfc__segs i.is-gold {
  background: var(--splfc-gold);
}

.splfc__body {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.splfc__step {
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
  min-height: 100%;
  padding: 32px var(--splfc-gutter) 28px;
}

.splfc__step--top {
  justify-content: flex-start;
  gap: 12px;
  padding-top: 16px;
}

.splfc__card {
  padding: 24px 20px 22px;
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--splfc-shadow);
}

.splfc__qno {
  margin: 0;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.06em;
  color: var(--splfc-blue);
}

.splfc__qno span {
  font-weight: 700;
  color: #8a93a8;
}

.splfc__q {
  margin: 6px 0 20px;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--splfc-navy);
}

.splfc__choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.splfc__choice {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 72px;
  padding: 12px 8px;
  border: 1.5px solid var(--splfc-line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 2px 0 #e3e8f1;
  font-family: inherit;
  font-size: 17px;
  font-weight: 700;
  color: var(--splfc-navy);
  cursor: pointer;
}

.splfc__choice:focus-visible {
  border-color: var(--splfc-blue);
}

@media (hover: hover) {
  .splfc__choice:hover {
    border-color: var(--splfc-blue);
  }
}

.splfc__choice--tall {
  min-height: 96px;
}

.splfc__choice--short {
  min-height: 60px;
  font-size: 16px;
}

.splfc__choice--short:last-child {
  grid-column: span 2;
}

.splfc__choice small {
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--splfc-text-sub);
}

.splfc__hint {
  margin: 18px 0 0;
  font-size: 12px;
  text-align: center;
  color: var(--splfc-text-sub);
}

.splfc__back {
  display: flex;
  align-items: center;
  align-self: center;
  gap: 4px;
  min-height: 44px;
  margin-top: 16px;
  border: 0;
  background: none;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  color: var(--splfc-blue);
  cursor: pointer;
}

.splfc__lock {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 12px 0 0;
  font-size: 12px;
  color: var(--splfc-text-sub);
}

/* ---- 試算の演出 ------------------------------------------------------- */
.splfc__loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px 22px 24px;
}

.splfc__ring {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 112px;
  height: 112px;
}

.splfc__ring::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 6px solid #e4eaf2;
  border-top-color: var(--splfc-blue);
  border-right-color: var(--splfc-navy);
  border-radius: 50%;
  animation: splfc-spin 1s linear infinite;
}

.splfc__ring span {
  font-size: 14px;
  font-weight: 700;
}

.splfc__ring b {
  font-size: 30px;
  font-weight: 900;
}

.splfc__loading-title {
  margin: 18px 0 4px;
  font-size: 17px;
  font-weight: 700;
}

.splfc__loading-sub {
  margin: 0 0 18px;
  font-size: 12px;
  color: var(--splfc-text-sub);
}

.splfc__bar {
  width: 100%;
  height: 8px;
  margin-bottom: 18px;
  overflow: hidden;
  border-radius: 4px;
  background: #e4eaf2;
}

.splfc__bar i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: 4px;
  background: var(--splfc-band);
}

.splfc__tasks {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.splfc__tasks li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  font-weight: 700;
  color: #8a93a8;
}

.splfc__tasks li::before {
  content: "";
  box-sizing: border-box;
  width: 20px;
  height: 20px;
  border: 2px solid var(--splfc-line);
  border-radius: 50%;
}

.splfc__tasks li.is-active,
.splfc__tasks li.is-done {
  color: var(--splfc-navy);
}

.splfc__tasks li.is-active::before {
  border-width: 3px;
  border-top-color: var(--splfc-blue);
  animation: splfc-spin 0.8s linear infinite;
}

.splfc__tasks li.is-done::before {
  border: 0;
  background: var(--splfc-blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7.5 12.5l3 3 6-6.5' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}

@keyframes splfc-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes splfc-fadein {
  from {
    opacity: 0;
  }
}

@keyframes splfc-fadeup {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

/* ---- 結果の手前（入力） ----------------------------------------------- */
.splfc__reveal {
  text-align: center;
}

.splfc__reveal-title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0.04em;
  color: var(--splfc-red);
}

.splfc__typed {
  min-height: 54px;
  margin: 6px 0 0;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.6;
  white-space: pre-line;
}

.splfc__gate {
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: splfc-fadeup 0.45s ease-out;
}

.splfc__blur {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 88px;
  overflow: hidden;
  border-radius: 14px;
  background: linear-gradient(150deg, #1e2b66 0%, #2c4a86 55%, #3a79a6 100%);
}

.splfc__blur span {
  font-size: 44px;
  font-weight: 900;
  letter-spacing: 0.04em;
  color: #fff;
}

.splfc__blur p {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
  background: rgb(30 43 102 / 25%);
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  animation: splfc-fadein 0.4s ease-out;
}

.splfc__form {
  display: flex;
  flex-direction: column;
  padding: 18px 18px 14px;
  animation: splfc-fadeup 0.45s ease-out;
}

.splfc__form-title {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
}

.splfc__form label {
  font-size: 13px;
  font-weight: 700;
}

.splfc__req {
  margin-left: 4px;
  color: #b8402c;
}

.splfc__form input {
  box-sizing: border-box;
  width: 100%;
  height: 48px;
  margin: 6px 0 12px;
  padding: 0 14px;
  border: 1.5px solid var(--splfc-line);
  border-radius: 10px;
  background: #fff;
  font-family: inherit;
  font-size: 16px;
  color: var(--splfc-navy);
}

.splfc__form input::placeholder {
  color: #8a93a8;
}

.splfc__error {
  margin: -8px 0 10px;
  font-size: 12px;
  font-weight: 700;
  color: #b8402c;
}

.splfc__error--center {
  margin: 10px 0 0;
  text-align: center;
}

.splfc__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.splfc__note {
  margin: 0 0 12px;
  font-size: 11.5px;
  line-height: 1.6;
  color: #3b4560;
}

.splfc__submit,
.splfc__line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 56px;
  border: 0;
  border-radius: 999px;
  background: var(--splfc-orange);
  box-shadow: 0 8px 18px rgb(185 63 45 / 25%);
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: #fff;
  text-decoration: none;
  cursor: pointer;
}

.splfc__submit:disabled {
  opacity: 0.6;
  cursor: wait;
}

.splfc__consent {
  margin: 10px 0 0;
  font-size: 10.5px;
  line-height: 1.6;
  text-align: center;
  color: var(--splfc-text-sub);
}

.splfc__consent a {
  color: var(--splfc-blue);
}

/* ---- 結果 ------------------------------------------------------------- */
.splfc__result {
  text-align: center;
}

.splfc__result-label {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}

.splfc__result-value {
  margin: 6px 0 8px;
  font-size: 22px;
  font-weight: 900;
  color: var(--splfc-red);
}

.splfc__result-value b {
  font-size: 44px;
  letter-spacing: -0.01em;
}

.splfc__result-value span {
  margin-left: 2px;
  font-size: 18px;
}

.splfc__basis {
  margin: 0;
  font-size: 11px;
  line-height: 1.6;
  text-align: left;
  color: var(--splfc-text-sub);
}

.splfc__found {
  margin: 8px 0 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
}

.splfc__slash {
  font-size: 15px;
}

.splfc__line {
  margin-top: 4px;
}

.splfc__line-note {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  color: var(--splfc-red);
}
