/* ============================================
   相続トップ：解決事例スライダー（stc- 専用）
   ============================================ */

/* セクション全体 */
.stc-case-section-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

.stc-case-section-header {
  text-align: center;
}

.stc-case-section-title {
  font-size: 26px;
  line-height: 1.6;
  letter-spacing: 0.08em;
  font-weight: 600;
}

/* スライダー土台 */
.stc-case-slider-wrapper {
  position: relative;
  padding: 0;
}

.stc-case-slider {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 4px 0 24px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;

  /* スクロールバー非表示 */
  scrollbar-width: none;
}
.stc-case-slider::-webkit-scrollbar {
  display: none;
}

/* ドラッグ中の見た目 */
.stc-case-slider.is-dragging,
.stc-case-slider.is-dragging * {
  cursor: grabbing;
  user-select: none;
  -webkit-user-select: none;
}

/* カード本体 */
.stc-case-card {
  flex: 0 0 300px;
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid #e5e5e5;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  overflow: hidden; /* 画像含めて角丸にする */
}

/* 画像まわり */
.stc-case-card-thumb {
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
}

.stc-case-card-img {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  border-radius: 14px 14px 0 0 !important;
}

/* --------------------------------------------
   画像とリード文の隙間まわりのリセット
   「ここをいじれば詰まる」ポイント
   -------------------------------------------- */

/* 画像直下の余白（ベースの隙間） */
.stc-case-card-body {
  padding: 0 20px 0 !important;  /* ← 上を 0 にして限界まで詰める */
  min-height: 170px;
  box-sizing: border-box;
}

/* p 自体の余白をリセット */
.stc-case-section .stc-case-card-text {
  margin: 0 0 16px !important;  /* ← 下だけ 16px にして上は 0 */
  padding: 0 !important;
  font-size: 17px !important;
  line-height: 1.9 !important;
  color: #555555 !important;
  font-weight: 400 !important;
}

/* a に付いているテーマ側の padding / margin / display をつぶす */
.stc-case-section .stc-case-card-text a {
  display: inline !important;        /* inline-block 指定を打ち消す */
  padding: 0 !important;             /* ← ここが縦の余白の犯人になりがち */
  margin: 0 !important;
  color: inherit !important;
  text-decoration: none !important;
}
.stc-case-section .stc-case-card-text a:hover {
  text-decoration: underline !important;
}

/* カード内ボタン */
.stc-case-card-more {
  padding: 0 20px 22px;
  margin: 0;
  margin-top: auto;
}

.stc-case-card-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 160px;
  padding: 6px 18px;
  border-radius: 999px;
  border: 1px solid var(--main_color, #009944);
  font-size: 14px;
  line-height: 1.4;
  font-weight: 500;
  color: var(--main_color, #009944);
  text-decoration: none;
  background: #ffffff;
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.stc-case-card-button:hover {
  background: var(--main_color, #009944);
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}

/* ============================================
   スライダー左右矢印
   （縦位置は top だけ見ればOK）
   ============================================ */

.stc-case-nav {
  position: absolute;

  /* 矢印の縦位置調整ポイント
     数字を小さくすると上に、大きくすると下に動きます */
  top: 50%;                 /* 例：もう少し下→ 26%, もっと上 → 18% など */
  transform: translateY(-50%);
  width: 24px;
  height: 64px;
  border-radius: 0%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  z-index: 5;
  background: var(--main_color, #009944);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.16);
  font-size: 18px;
  line-height: 1;
}

.stc-case-nav:hover {
  background: #007f38;
}

.stc-case-nav-prev {
  left: -36px;
}

.stc-case-nav-next {
  right: -36px;
}

/* 下部「解決事例一覧」ボタン */
.stc-case-more-list {
  margin-top: 36px;
  text-align: center;
}

/* 「解決事例一覧」ボタンの縦位置調整
   フレックス中央寄せにして、line-height は普通の値に戻す
*/
.stc-case-section .stc-case-more-link {
  display: inline-flex !important;
  align-items: center !important;      /* ← 文字を縦中央に */
  justify-content: center !important;
  padding-left: 48px !important;
  padding-right: 48px !important;
  line-height: 1px !important;         /* ← 極端な line-height は不要 */
}

/* レスポンシブ */
@media (max-width: 767px) {
  .stc-case-section {
    padding: 56px 0 48px;
  }

  .stc-case-section-inner {
    padding: 0 16px;
  }

  .stc-case-slider-wrapper {
    padding: 0 12px;
  }

  .stc-case-card {
    flex: 0 0 260px;
  }

  .stc-case-section-title {
    font-size: 22px;
  }

  .stc-case-nav {
    width: 28px;
    height: 28px;
    font-size: 16px;
  }

  .stc-case-card-body {
    min-height: 190px;
  }
}

/* ビルダー用の下余白調整 */
#content_builder section.stc-case-section {
  padding-bottom: 0 !important;
}

/* ============================================
   画像とリード文の隙間を「力技」で詰める調整
   ============================================ */

/* リード文の p を画像側にぐっと近づける
   数字を -4 / -6 / -8 などで微調整できます  */
.stc-case-section .stc-case-card-text {
padding-top: 1px!important;
margin-top: -35px!important;
}

/* 念のため、p の中の a には余白を一切持たせない */
.stc-case-section .stc-case-card-text a {
}
