#popup.loan-popup-sp {
  display: none;
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(25,30,60,0.62);
  z-index: 9999;
  font-family: "メイリオ", meiryo, "ヒラギノ角ゴ ProN", "Hiragino Kaku Gothic ProN", "Helvetica Neue", Arial, sans-serif;
  overscroll-behavior: contain;
}

.loan-popup-sp__content {
  position: relative;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 88vw;
  max-width: 320px;
  min-width: 240px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 34px rgba(40,40,80,0.14);
  padding: 24px 8vw 18px 8vw;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

/* タイトルや画像・ボタンは中央寄せ */
.loan-popup-sp__title,
.loan-popup-sp__title--label,
.loan-popup-sp__title--em,
.loan-popup-sp__steps,
.loan-popup-sp__result-main,
.loan-popup-sp__cta-btn,
.loan-popup-sp__result-logo,
.loan-popup-sp__result-tag  {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.loan-popup-sp__close {
  position: absolute;
  top: -10px;
  right: 0px;
  font-size: 35px;
  color: #aaa;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 10;
  transition: color .2s;
}
.loan-popup-sp__close:hover {
  color: #e10030;
}
h2.loan-popup-sp__title {
  font-size: 1.08rem;
  font-weight: bold;
  margin: 10px 0 13px 0;
  letter-spacing: .05em;
  color: #2176bd;
  text-align: center;
}
.loan-popup-sp__steps {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
  margin-bottom: 14px;
}
.loan-popup-sp__step {
  font-size: .96rem;
  font-weight: bold;
  color: #bbb;
  background: #eef1f6;
  border-radius: 100px;
  padding: 7px 15px;
  min-width: 52px;
  transition: background .25s, color .25s;
}
.loan-popup-sp__step.active,
.loan-popup-sp__step.visited {
  color: #fff;
  background: linear-gradient(90deg, #2176bd 0%, #14d0c5 100%);
}
.loan-popup-sp__step.visited {
  opacity: 0.7;
}

h3.loan-popup-sp__q {
  font-size: 1.25rem;
  font-weight: bold;
  margin-bottom: 16px;
  color: #134275;
  text-align: center;
  margin-top: 10px;
}
.loan-popup-sp__btn-group {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 10px;
  padding: 0;
}
.select-btn {
  background: #f8fafd;
  border-radius: 11px;
  padding: 13px 0;
  font-size: .99rem;
  color: #2176bd;
  cursor: pointer;
  font-weight: bold;
  box-shadow: 0 2px 11px rgba(33, 118, 189, 0.07);
}
.select-btn.selected {
  background: #2176bd;
  color: #fff;
}
h3.loan-popup-sp__result-title {
  color: #134275;
  font-size: 1.5rem;
  margin: 25px 0 7px 0;
  font-weight: 600;
}
.loan-popup-sp__result-main {
  font-size: 1.14rem;
  font-weight: bold;
  color: #2176bd;
  margin-bottom: 9px;
  letter-spacing: .04em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}
.loan-popup-sp__result-desc {
  text-align: left;
  font-size: .97rem;
  color: #28385a;
  margin-bottom: 14px;
  margin-top: 5px;
  line-height: 1.7;
}
/* 結果メイン（大きい画像＆中央寄せ・下線なども） */
.loan-popup-sp__result-main--large {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 20px;
}

.loan-popup-sp__result-logo {
  max-width: 200px;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 4px 14px rgba(33, 118, 189, .18);
  object-fit: cover;
  display: block;
  margin: 0 auto 6px auto;
  background: #fff;
}

.loan-popup-sp__result-name {
  display: inline-block;
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  border: 2.5px solid;
  border-radius: 7px;
  padding: 2.5px 50px;
  text-shadow: 0 2px 1.5px rgba(0,0,0,0.12);
}

.loan-popup-sp__result-name-promise {
  color: #005bac;
  border-color: #005bac;
  text-shadow: 0 2px 1.5px rgba(0,91,172,0.13);
}

@media (min-width: 601px) {
  .loan-popup-sp__result-logo {
    width: 140px;
    height: 140px;
  }
  .loan-popup-sp__result-name {
    font-size: 1.65rem;
  }
}

.loan-popup-sp__cta-btn {
  display: block;
  width: 78vw;
  max-width: 210px;
  background: linear-gradient(90deg, #2176bd 0%, #14d0c5 100%);
  color: #fff;
  font-weight: bold;
  font-size: 1rem;
  padding: 13px 0;
  border-radius: 11px;
  text-decoration: none;
  margin: 0 auto 8px auto;
  box-shadow: 0 4px 14px rgba(33, 118, 189, .14);
  transition: background .2s, box-shadow .2s;
}
.loan-popup-sp__close-btn {
  margin-top: 10px;
  background: none;
  border: none;
  color: #2176bd;
  font-size: .97rem;
  cursor: pointer;
  text-decoration: underline;
  transition: color .2s;
  margin-bottom: 11px;
}
.loan-popup-sp__close-btn:hover {
  color: #e10030;
}

/* 端末幅が小さい場合はさらに縮小 */
@media (max-width: 370px) {
  .loan-popup-sp__content {
    width: 97vw;
    max-width: 98vw;
    min-width: 0;
    padding: 15px 3vw 10px 3vw;
  }
  .loan-popup-sp__cta-btn { width: 97vw; max-width: 97vw; }
}

.loan-popup-sp__title--em {
  font-size: 1.24rem;
  font-weight: bold;
  color: #2176bd;
  text-align: center;
  margin: 6px 0 14px 0;
  position: relative;
  letter-spacing: .07em;
  border-bottom: 2px solid #2176bd;
  padding-bottom: 7px;
}
.loan-popup-sp__title--em .badge {
  background: #e10030;
  color: #fff;
  font-size: .81rem;
  border-radius: 11px;
  padding: 3px 12px;
  margin-right: 7px;
  vertical-align: middle;
}

h2.loan-popup-sp__title--label {
  display: inline-block;
  font-size: 1.5rem;
  font-weight: bold;
  color: #fff;
  background: linear-gradient(90deg, #2176bd 0%, #14d0c5 100%);
  padding: 10px 34px;
  border-radius: 18px;
  box-shadow: 0 4px 14px rgba(33, 118, 189, .13);
  margin-top: 30px;
  letter-spacing: .07em;
}

.loan-popup-sp__subtitle {
  font-size: 1.25rem;
  color: #888;
  margin: 0 0 13px 0;
  text-align: center;
  letter-spacing: .01em;
}

.loan-popup-sp__result-tag {
  font-size: .85rem;
}

/* PC用追加 */
@media (min-width: 601px) {
  .loan-popup-sp__content {
    width: 400px;
    max-width: 96vw;
    padding: 32px 36px 28px 36px;
  }
  h2.loan-popup-sp__title--label {
    font-size: 1.65rem;
    padding: 14px 48px;
    margin-top: 18px;
  }
  .loan-popup-sp__subtitle {
    font-size: 1.1rem;
  }
  .loan-popup-sp__close {
    font-size: 36px;
    top: -16px;
    right: -12px;
  }
}
