
/* =========================
   LINE CTA（サイズ最適化済み）
========================= */
.contact_page_box{
  max-width: 980px;
  margin: clamp(20px, 4vw, 56px) auto;
  padding: 0 clamp(14px, 3vw, 22px);
}

/* aタグのデフォ（紫・下線）を潰す＋カード化 */
.line_cta{
  position: relative;
  display: block;
  text-decoration: none;
  color: inherit;

  /* ここで“カード感”を作る */
  padding: clamp(10px, 1.8vw, 18px);
  border-radius: 18px;
  background: #fff;

  box-shadow:
    0 12px 34px rgba(15, 23, 42, .12),
    0 2px 10px rgba(15, 23, 42, .08);

  transform: translateZ(0);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
  outline: none;
}

/* 画像：親幅いっぱいにせず、最大幅で制限して“デカすぎ”を解消 */
.line_cta img{
  display: block;
  width: min(720px, 100%);  /* ←ここでサイズ調整（600〜760推奨） */
  height: auto;
  margin: 0 auto;
  border-radius: 14px;      /* 画像自体も少し角丸に */
}

/* 左上ピル */
.line_cta__pill{
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;

  display: inline-flex;
  align-items: center;
  gap: 8px;

  padding: 10px 14px;
  border-radius: 999px;

  font-size: 14px;
  font-weight: 800;
  letter-spacing: .02em;
  line-height: 1;

  color: #fff;
  background: rgba(0, 0, 0, .55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  box-shadow: 0 8px 18px rgba(15, 23, 42, .18);

  pointer-events: none;
}

.line_cta__pill::before{
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34,197,94,.25);
}

/* hover */
@media (hover:hover){
  .line_cta:hover{
    transform: translateY(-4px);
    box-shadow:
      0 18px 44px rgba(15, 23, 42, .16),
      0 4px 14px rgba(15, 23, 42, .10);
    filter: brightness(1.02);
  }
  .line_cta:hover .line_cta__pill{
    background: rgba(0, 0, 0, .62);
  }
}

/* focus */
.line_cta:focus-visible{
  box-shadow:
    0 0 0 4px rgba(59,130,246,.35),
    0 18px 44px rgba(15, 23, 42, .16);
}

/* SP */
@media (max-width: 640px){
  .line_cta{
    border-radius: 14px;
    padding: 12px;
  }
  .line_cta img{
    width: 100%;
    border-radius: 12px;
  }
  .line_cta__pill{
    top: 10px;
    left: 10px;
    padding: 9px 12px;
    font-size: 13px;
  }
}