/* =========================
   One-stop (3 cards)
   base width: 1250px
========================= */

.lp-one-stop{
  padding: 56px 0;
}

/* 1250px基準。装飾はみ出しOK */
.lp-one-stop__inner{
  position: relative;
  max-width: 1250px;
  margin: 0 auto;
  padding: 24px;
  overflow: visible;
  border: 4px solid #1d2088;
  border-radius: 20px;
}

/* 上のカード3枚 */
.lp-one-stop__cards{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* カード */
.lp-one-stop__card{
  display: grid;
  gap: 12px;
  align-content: start;
}

/* -------------------------
   media（画像＋ラベル）
------------------------- */

/* 外側：ラベルを切らない */
.lp-one-stop__media{
  position: relative;
  overflow: visible;
}

/* 画像だけ角丸でclip */
.lp-one-stop__media-clip{
  border-radius: 18px;
  overflow: hidden;
  background: #f3f3f3;
  aspect-ratio: 4 / 3;
}

.lp-one-stop__media-clip img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.04); /* ちょい寄せで締まる */
}

/* 画像下の丸ラベル（同じ位置で揃える・切れない） */
.lp-one-stop__chip{
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translate(-50%, 50%); /* 半分だけ外へ */
  background: #1d2088;
  color: #fff;
  font-weight: 900;
  padding: 10px 28px;
  border-radius: 999px;
  line-height: 1;
  letter-spacing: .04em;
  white-space: nowrap;
  z-index: 2;
}

/* 説明文：ラベル分だけ上に詰めない */
.lp-one-stop__text{
  margin: 16px 0 0;  /* ←ラベルが外に出る分を確保 */
  font-size: 15px;
  line-height: 1.8;
  color: #222;
}

/* 下のキャッチ（黄色下線） */
.lp-one-stop__catch{
  margin: 26px 0 0;
  font-size: clamp(22px, 2.4vw, 32px);
  line-height: 1.25;
  font-weight: 900;
  color: #1d2088;
  text-align: center;
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
  padding: 0 6px;
}

.lp-one-stop__catch::after{
  content:"";
  position: absolute;
  left: -10px;
  right: -10px;
  bottom: 4px;
  height: 18px;
  background: #f4e26a;
  z-index: -1;
  border-radius: 3px;
}

/* =========================
   One-stop decoration
========================= */

.lp-one-stop__deco{
  position: absolute;
  width: 140px;
  height: 140px;
  background-repeat: no-repeat;
  background-size: contain;
  pointer-events: none;
  z-index: 0;
}

/* 左下（三角・左向き） */
.lp-one-stop__deco--l{
  left: 0px;
  bottom: -30px;
  background-image: url(../img/lp/deco/deco-triangle_left.png);
}

/* 右下（三角・右向き） */
.lp-one-stop__deco--r{
  right: -40px;
  bottom: -16px;
  background-image: url(../img/lp/deco/deco-triangle_right.png);
}

/* =========================
   Tablet
========================= */
@media (max-width: 1024px){
  .lp-one-stop__cards{
    gap: 22px;
  }
  .lp-one-stop__text{
    font-size: 14px;
  }
}

/* =========================
   SP
========================= */
@media (max-width: 767px){
  .lp-one-stop{
    padding: 12px;
  }
  .lp-one-stop__inner{
    padding: 16px;
  }
  .lp-one-stop__cards{
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .lp-one-stop__media-clip{
    aspect-ratio: 16 / 10;
    border-radius: 16px;
  }

  .lp-one-stop__chip{
    padding: 9px 18px;
    font-size: 14px;
    transform: translate(-50%, 50%);
  }

  .lp-one-stop__text{
    margin-top: 14px;
  }

  .lp-one-stop__catch{
    margin-top: 22px;
  }

  .lp-one-stop__deco{
    display: none;
  }
}

/* =========================
   One-stop SP tuning
========================= */
@media (max-width: 767px){

  /* 外枠：余白を詰めて密度UP */
  .lp-one-stop__frame{
    border-width: 2px;
    border-radius: 16px;
    padding: 14px 12px 16px;
  }

  /* カード間：詰めすぎない程度に */
  .lp-one-stop__cards{
    gap: 16px;
  }

  /* 画像：縦に長く見えるのを抑える */
  .lp-one-stop__media-clip{
    aspect-ratio: 16 / 10; /* ここが効く */
    border-radius: 16px;
  }

  /* ラベル：少し小さく＆出し量控えめ（切れない前提） */
  .lp-one-stop__chip{
    padding: 8px 16px;
    font-size: 13px;
    transform: translate(-50%, 42%);
  }

  /* 本文：読みやすいSP標準に寄せる */
  .lp-one-stop__text{
    margin-top: 12px;
    font-size: 14px;
    line-height: 1.75;
  }

  /* 下のタイトル：枠内で切れない＆行間詰まり防止 */
  .lp-one-stop__catch{
    margin-top: 18px;
    font-size: 20px;
    line-height: 1.25;
  }
  .lp-one-stop__catch::after{
    height: 14px;
    bottom: 4px;
  }

  /* 三角装飾：SPは基本ナシ（必要なら後で小さく出す） */
  .lp-one-stop__deco{
    display: none;
  }
}
