

.sp-scrollable-table::after{
  content:"";
  position: sticky;
  right: 0;
  top: 0;
  width: 18px;
  min-height: 100%;
  display: block;
  background: linear-gradient(90deg, rgba(255,255,255,0) 0%, #fff 60%);
  pointer-events: none;
  z-index: 1;
}



/* テーブル共通 */
.sp-scrollable-table table{
  border-collapse: separate; /* sticky要素の重なりを安定させる */
  border-spacing: 0;
  width: 125%;              /* 既存のインラインstyleを尊重 */
  min-width: 960px;         /* 端末幅が狭いときの横スクロール発生用 */
  font-size: 14px;
  line-height: 1.5;
  color: #111827;
}

/* セル共通 */
.sp-scrollable-table th,
.sp-scrollable-table td{
  padding: 12px 14px;
  border-right: 1px solid #eef2f7;
  border-bottom: 1px solid #eef2f7;
  vertical-align: middle;
  text-align: center;
  background-clip: padding-box; /* sticky時の重なり対策 */
  white-space: nowrap; /* カラム幅を保つ。必要に応じて解除 */
}

.sp-scrollable-table tbody tr:first-child th{
  position: sticky;
  top: 0;
  z-index: 2;
  background: #f8fafc; /* ヘッダー背景 */
  font-weight: 700;
}

/* 先頭列（.fixed01）をsticky化（行見出し） */
.sp-scrollable-table .fixed01{
  position: sticky;
  left: 0;
  z-index: 3;             /* ヘッダーより前面に */
  background: #ffffff;
  box-shadow: 2px 0 0 0 #eef2f7 inset; /* 右境界の視認性 */
  text-align: left;
  min-width: 160px;
}


/* 交差セル（最上段の.fixed01）はさらに前面に */
.sp-scrollable-table tbody tr:first-child .fixed01{
  z-index: 4;
  background: #f8fafc;
}

/* 画像やロゴの見た目調整 */
.sp-scrollable-table th a img{
  display: block;
  margin: 6px auto 0;
  max-width: 130px;
  height: auto;
}

/* 赤強調（価格など） */
.post-red{
  color: #d32f2f;
  font-weight: 700;
}

/* 小さめ注記 */
.small{
  display: inline-block;
  font-size: 12px;
  color: #6b7280;
}

/* 「公式サイト」「詳細はこちら」の段落詰め */
.sp-scrollable-table td p{
  margin: 4px 0;
}

/* 行のホバーで可読性アップ（PC向け） */
@media (hover: hover){
  .sp-scrollable-table tbody tr:hover td,
  .sp-scrollable-table tbody tr:hover th:not(.fixed01){
    background: #fdfdfd;
  }
}

/* スマホ最適化：文字サイズとパディングを少し詰める */
@media (max-width: 768px){
  .sp-scrollable-table table{
    min-width: 840px;
    font-size: 13px;
  }
  .sp-scrollable-table th,
  .sp-scrollable-table td{
    padding: 10px 12px;
  }
  .sp-scrollable-table .fixed01{
    min-width: 140px;
  }
}

/* 角丸を綺麗に見せる（表外周のみ） */
.sp-scrollable-table table tr:first-child th:first-child{
  border-top-left-radius: 12px;
}
.sp-scrollable-table table tr:first-child th:last-child{
  border-top-right-radius: 12px;
}
.sp-scrollable-table table tr:last-child td:first-child,
.sp-scrollable-table table tr:last-child th.fixed01{
  border-bottom-left-radius: 12px;
}
.sp-scrollable-table table tr:last-child td:last-child{
  border-bottom-right-radius: 12px;
}

/* リンクの最小装飾（サイト全体の設計に合わせて調整可） */
.sp-scrollable-table a{
  text-decoration: underline;
  text-underline-offset: 2px;
}
