/* =========================
   HERO PC（A案）
========================= */

.lp-hero {
  position: relative;
  overflow: hidden;
  padding: 58px 0 56px;
}

/* 背景（1440固定・中央） */
.lp-hero__bg {
  position: absolute;
  inset: 0;
  background: url("../img/lp/hero/hero_bg.png") center center / 1440px auto no-repeat;
  z-index: 0;
}

/* 中身 */
.lp-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- 左：黒パネル（FVの要） ---- */
.lp-hero__panel {
  position: relative;
  width: min(760px, 58%);
  background: tran;
  padding: 44px 44px 32px 110px;
  border-radius: 10px;
}

/* 対応エリア */
.lp-hero__areas {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.lp-hero__area {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 6px;
  background: #1d2088;
  color: #fff;
  font-weight: 800;
  line-height: 1;
  letter-spacing: .02em;
}

/* リード */
.lp-hero__lead {
  margin: 0 0 10px;
  color: #333;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: .02em;
}

/* 見出し */
.lp-hero__title {
  margin: 0;
  color: #1d2088;
  font-weight: 900;
  letter-spacing: .02em;
  line-height: 1.08;
  font-size: clamp(44px, 3.6vw, 58px);
}

/* 「トモクルにお任せ！」部分を青にして黄色ハイライト */
.lp-hero__title-em {
  position: relative;
  display: inline-block;
  color: #1d2088;
}

.lp-hero__title-em::after {
  content: "";
  position: absolute;
  left: -10px;
  right: -10px;
  bottom: 8px;
  height: 20px;
  background: #f4e26a;
  z-index: -1;
  border-radius: 3px;
}

/* 認定バッジ（パネル外に少し出す） */
.lp-hero__badge {
  position: absolute;
  right: -210px;
  top: 70px;
  width: 220px;
  height: 220px;
}

.lp-hero__badge img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

/* ---- 下段：ポイントバー ---- */
.lp-hero__bar {
  position: relative;
  margin-top: 26px;
  width: min(980px, 70%);
}

/* 猫：バーの左外に配置 */
.lp-hero__cat {
  position: absolute;
  left: -40px;
  bottom: -18px;
  width: 170px;
  height: auto;
  z-index: 2;
}
.lp-hero__cat img {
  width: 100%;
  height: auto;
  display: block;
}

/* バー本体 */
.lp-hero__bar-inner {
  position: relative;
  z-index: 1;
  background: #1d2088;
  border: 4px solid #f4e26a;
  border-radius: 18px;
  padding: 22px 22px 22px 96px; /* 猫の分、左に余白 */
  display: grid;
  grid-template-columns: 1fr 1px 1fr 1px 1fr;
  align-items: center;
  gap: 18px;
}

/* 仕切り線 */
.lp-hero__divider {
  width: 1px;
  height: 56px;
  background: rgba(255,255,255,.35);
  justify-self: center;
}

/* ポイント */
.lp-hero__point {
  display: flex;
  grid-template-columns: 64px 1fr;
  align-items: center;
  flex-direction: column;
  flex-wrap: nowrap;
}

.lp-hero__icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
}
.lp-hero__icon img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  display: block;
}

.lp-hero__point-txt {
  margin: 0;
  color: #fff;
  font-weight: 900;
  font-size: 22px;
  letter-spacing: .02em;
  line-height: 1.2;
}

/* =========================
   1440未満：黒パネル幅だけ追従
========================= */
@media (max-width: 1440px) {
  .lp-hero__panel { width: min(760px, 66%); }
  .lp-hero__bar { width: min(980px, 80%); }
}

/* =========================
   タブレット：PC寄せ（崩れ防止）
========================= */
@media (max-width: 1024px) {
  .lp-hero { padding: 96px 0 40px; }
  .lp-hero__panel { width: 100%; }
  .lp-hero__badge { position: absolute; right: 16px; top: 16px; width: 170px; height: 170px; }
  .lp-hero__bar { width: 100%; }
  .lp-hero__cat { left: -70px; }
  .lp-hero__bar-inner { padding-left: 88px; }
}

/* =========================
   SP：縦並び＋調整
========================= */
@media (max-width: 767px) {

  /* HERO全体：余白を整える */
  .lp-hero{
    padding: 18px 0 12px;
  }
  .lp-hero__inner{
    padding: 0 14px;
  }

  /* 背景：白を少し強めて可読性UP */
  .lp-hero__bg{
    background-image: url("../img/lp/hero/sp_hero_bg.png");
    background-repeat: no-repeat;
    background-position: center top;
    background-size: 100% auto;
  }
  .lp-hero__bg::after{
    content:"";
    position:absolute;
    inset:0;
  }


  /* 黒パネルを無効化（SPは白地） */
  .lp-hero__panel{
    width: 100%;
    background: transparent;
    padding: 0;
    border-radius: 0;
  }

  /* 見出し：窮屈さを解消 */
  .lp-hero__lead{
    font-size: 14px;
    margin: 8px 0 6px;
    color: rgba(0,0,0,.65);
  }
  .lp-hero__title{
    font-size: clamp(26px, 7.2vw, 34px);
    line-height: 1.18;
    margin-bottom: 8px;
  }
  .lp-hero__title-em::after{
    height: 16px;
    bottom: 6px;
  }

  /* 優良バッジ：最終調整 */
  .lp-hero__badge{
    width: 88px;
    height: 88px;
    right: 10px;
    top: 40px;   /* ← 少し上へ */
    z-index: 3;
  }

  /* エリアバッジ：詰まりすぎ防止 */
  .lp-hero__areas{
    gap: 6px;
    margin-bottom: 10px;
  }
  .lp-hero__area{
    padding: 8px 10px;
    font-size: 13px;
  }

  /* 下段バー：横切れ＆デカさ調整 */
  .lp-hero__bar{
    width: 100%;
    margin-top: 10px;
  }
  .lp-hero__cat{
    left: -6px;
    bottom: -8px;
    width: 86px;
  }
  .lp-hero__bar-inner{
    padding: 12px 10px 12px 74px; /* 猫ぶんだけ確保 */
    border-radius: 14px;
    gap: 5px;
  }
  .lp-hero__divider{
    height: 34px;
  }
  .lp-hero__icon img{
    width: 36px;
    height: 36px;
  }
  .lp-hero__point{
    grid-template-columns: 36px 1fr;
    gap: 6px;
  }
  .lp-hero__point-txt{
    font-size: 10px;
    line-height: 1.15;
  }
}

