/* 390px visual gate: PC problem-strength master reflowed as one continuous SP composition. */
@media (max-width: 840px) {
  body.sp-phase2-active #phase1-problem,
  body.sp-phase2-active #phase1-strength {
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: none !important;
    min-height: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #eaf9ff !important;
    color: #052454 !important;
    overflow: visible !important;
  }

  body.sp-phase2-active #phase1-problem {
    padding: 48px 14px 0 !important;
    scroll-margin-top: 84px;
  }

  body.sp-phase2-active #phase1-strength {
    padding: 0 14px 54px !important;
    scroll-margin-top: 84px;
  }

  body.sp-phase2-active #phase1-problem .p1-inner,
  body.sp-phase2-active #phase1-strength .p1-inner {
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 430px !important;
    margin: 0 auto !important;
    padding: 0 !important;
  }

  body.sp-phase2-active .ps-master-problem,
  body.sp-phase2-active .ps-master-strength {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    color: #052454 !important;
    font-family: "Noto Sans JP", "Yu Gothic", "Hiragino Kaku Gothic ProN", sans-serif;
  }

  body.sp-phase2-active .ps-master-heading {
    margin: 0 0 24px !important;
    text-align: center;
  }

  body.sp-phase2-active .ps-master-heading h2 {
    margin: 0 !important;
    color: #052454 !important;
    font-size: 25px !important;
    font-weight: 900 !important;
    line-height: 1.25 !important;
    letter-spacing: -.04em !important;
  }

  body.sp-phase2-active .ps-master-heading p {
    margin: 10px 0 0 !important;
    color: #14345e !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    line-height: 1.7 !important;
    letter-spacing: 0 !important;
  }

  body.sp-phase2-active .ps-problem-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  body.sp-phase2-active .ps-problem-card {
    min-width: 0 !important;
    overflow: hidden !important;
    border: 1px solid rgba(5, 70, 125, .07) !important;
    border-radius: 11px !important;
    background: #fff !important;
    box-shadow: 0 5px 14px rgba(4, 55, 94, .07) !important;
  }

  body.sp-phase2-active .ps-problem-photo {
    width: calc(100% - 12px) !important;
    aspect-ratio: 251 / 176 !important;
    margin: 6px 6px 0 !important;
    border-radius: 8px !important;
    background-image: url("assets/problem-strength/problem-strength-768.webp") !important;
    background-repeat: no-repeat !important;
    background-size: 474% auto !important;
  }

  body.sp-phase2-active .ps-problem-photo-1 { background-position: 4.5% 17.3% !important; }
  body.sp-phase2-active .ps-problem-photo-2 { background-position: 34.7% 17.3% !important; }
  body.sp-phase2-active .ps-problem-photo-3 { background-position: 65% 17.3% !important; }
  body.sp-phase2-active .ps-problem-photo-4 { background-position: 95.8% 17.3% !important; }

  body.sp-phase2-active .ps-problem-copy {
    padding: 12px 11px 15px !important;
  }

  body.sp-phase2-active .ps-problem-copy h3 {
    min-height: 48px !important;
    margin: 0 !important;
    color: #052454 !important;
    font-size: 18px !important;
    font-weight: 900 !important;
    line-height: 1.35 !important;
    letter-spacing: -.035em !important;
  }

  body.sp-phase2-active .ps-gold-rule {
    display: block !important;
    width: 36px !important;
    height: 3px !important;
    margin: 9px 0 9px !important;
    border-radius: 99px !important;
    background: #ffd400 !important;
  }

  body.sp-phase2-active .ps-problem-copy p {
    margin: 0 !important;
    color: #16365e !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    line-height: 1.65 !important;
    letter-spacing: 0 !important;
  }

  body.sp-phase2-active .ps-warning-band {
    display: grid !important;
    grid-template-columns: 36px 1fr !important;
    align-items: center !important;
    gap: 10px !important;
    margin: 18px 0 0 !important;
    padding: 13px 14px !important;
    border: 0 !important;
    border-radius: 9px !important;
    background: linear-gradient(110deg, #073968 0%, #001f4c 100%) !important;
    box-shadow: none !important;
  }

  body.sp-phase2-active .ps-warning-band b {
    display: grid !important;
    place-items: center !important;
    width: 34px !important;
    height: 34px !important;
    border-radius: 50% !important;
    background: #ffdd22 !important;
    color: #06315e !important;
    font-size: 23px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
  }

  body.sp-phase2-active .ps-warning-band p {
    margin: 0 !important;
    color: #fff !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    line-height: 1.58 !important;
    letter-spacing: 0 !important;
  }

  body.sp-phase2-active .ps-warning-band p span {
    color: #ffdd22 !important;
  }

  body.sp-phase2-active .ps-strength-heading {
    position: relative !important;
    margin: 0 !important;
    padding: 42px 0 24px !important;
    text-align: center !important;
  }

  body.sp-phase2-active .ps-strength-heading::before {
    content: "";
    position: absolute;
    left: -14px;
    right: -14px;
    top: 18px;
    height: 5px;
    background: #fff;
  }

  body.sp-phase2-active .ps-reason-badge {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin: 0 auto 18px !important;
    color: #fff !important;
  }

  body.sp-phase2-active .ps-reason-badge::before,
  body.sp-phase2-active .ps-reason-badge::after {
    content: "";
    flex: 1 1 14px;
    height: 1px;
    background: #052f61;
  }

  body.sp-phase2-active .ps-reason-badge span {
    display: inline-block !important;
    flex: 0 1 auto !important;
    padding: 8px 14px 9px !important;
    border-radius: 999px !important;
    background: linear-gradient(110deg, #083d70, #006eb1) !important;
    color: #fff !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    line-height: 1.35 !important;
    white-space: nowrap !important;
  }

  body.sp-phase2-active .ps-strength-heading h2 {
    margin: 0 !important;
    color: #052454 !important;
    font-size: 27px !important;
    font-weight: 900 !important;
    line-height: 1.42 !important;
    letter-spacing: -.05em !important;
  }

  body.sp-phase2-active .ps-strength-heading h2 em {
    position: relative !important;
    z-index: 0 !important;
    color: inherit !important;
    font-style: normal !important;
    white-space: nowrap !important;
  }

  body.sp-phase2-active .ps-strength-heading h2 em::after {
    content: "";
    position: absolute;
    z-index: -1;
    left: -3px;
    right: -3px;
    bottom: 1px;
    height: 8px;
    border-radius: 99px;
    background: rgba(255, 218, 28, .72);
  }

  body.sp-phase2-active .ps-strength-heading > p {
    margin: 11px 0 0 !important;
    color: #15365e !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    line-height: 1.7 !important;
  }

  body.sp-phase2-active .ps-strength-list {
    display: grid !important;
    gap: 13px !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  body.sp-phase2-active .ps-strength-card {
    overflow: hidden !important;
    margin: 0 !important;
    padding: 13px !important;
    border: 1px solid rgba(5, 70, 125, .08) !important;
    border-radius: 12px !important;
    background: #fff !important;
    box-shadow: 0 5px 15px rgba(4, 55, 94, .07) !important;
    color: #052454 !important;
  }

  body.sp-phase2-active .ps-strength-top {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 124px !important;
    align-items: stretch !important;
    gap: 9px !important;
  }

  body.sp-phase2-active .ps-strength-copy {
    min-width: 0 !important;
    overflow: hidden !important;
    padding: 2px 0 0 2px !important;
  }

  body.sp-phase2-active .ps-strength-no {
    display: grid !important;
    place-items: center !important;
    width: 48px !important;
    height: 48px !important;
    margin: 0 0 9px !important;
    border-radius: 50% !important;
    background: #0875d1 !important;
    color: #fff !important;
    font-size: 20px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
  }

  body.sp-phase2-active .ps-strength-copy h3 {
    margin: 0 !important;
    color: #052454 !important;
    font-size: 20px !important;
    font-weight: 900 !important;
    line-height: 1.35 !important;
    letter-spacing: -.035em !important;
  }

  body.sp-phase2-active .ps-strength-copy p {
    margin: 0 !important;
    color: #16365e !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    line-height: 1.65 !important;
  }

  body.sp-phase2-active .ps-strength-photo {
    width: 124px !important;
    height: 145px !important;
    border-radius: 8px !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: cover !important;
  }

  body.sp-phase2-active .ps-strength-photo-1 { background-image: url("assets/problem-strength/reason-01.webp") !important; }
  body.sp-phase2-active .ps-strength-photo-2 { background-image: url("assets/problem-strength/reason-02.webp") !important; }
  body.sp-phase2-active .ps-strength-photo-3 { background-image: url("assets/problem-strength/reason-03.webp") !important; }

  body.sp-phase2-active .ps-strength-card ul {
    display: grid !important;
    gap: 7px !important;
    margin: 10px 0 0 !important;
    padding: 9px 10px !important;
    border-radius: 9px !important;
    background: linear-gradient(110deg, #edf7ff, #f8fcff) !important;
    list-style: none !important;
  }

  body.sp-phase2-active .ps-strength-card li {
    position: relative !important;
    margin: 0 !important;
    padding: 0 0 0 30px !important;
    color: #052454 !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    line-height: 1.55 !important;
  }

  body.sp-phase2-active .ps-strength-card li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 50%;
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    transform: translateY(-50%);
    border-radius: 50%;
    background: #0875d1;
    color: #fff;
    font-size: 14px;
    font-weight: 900;
    line-height: 1;
  }
}
