/* ==================================================
   ベーススタイル（表全体の配色・枠線）
================================================== */
.table-container {
  width: 100%;
  margin: 20px 0;
}

.product-compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.5;
  color: #333;
  text-align: center;
}

.product-compare-table th,
.product-compare-table td {
  border: 1px solid #b2b2b2;
  padding: 12px 8px;
  vertical-align: middle;
  background-color: #fff;
}

/* ヘッダーカラー（画像の色味に準拠） */
.product-compare-table .group-header {
  background-color: #a38c8c;
  color: #fff;
  font-size: 16px;
  font-weight: bold;
}

/* 項目名（1列目）の背景色 */
.product-compare-table .sticky-col {
  background-color: #fff;
  font-weight: bold;
  white-space: nowrap;
}

/* 画像のレスポンシブサイズ調整 */
.product-compare-table img {
  max-width: 120px;
  height: auto;
  display: block;
  margin: 0 auto;
}
/* PCでは非表示、スマホ（750px以下）でのみ表示 */
.scroll-hint {
  display: none;
}

/* ==================================================
   SP（スマホ）対応：750px以下
   1列目を固定 & 横スクロール設定
================================================== */
@media screen and (max-width: 750px) {
  .table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .product-compare-table {
    white-space: nowrap; /* テキストの意図しない改行を制御 */
  }

  /* テキストの折り返しが必要なセル */
  .product-compare-table td {
    white-space: normal;
    min-width: 160px; /* スクロール時の列幅を確保 */
  }

  /* 左端1列目を固定 */
  .product-compare-table .sticky-col {
    position: sticky;
    left: 0;
    z-index: 2;
    background-color: #fff;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.08); /* スクロール時の境界線の影 */
  }

  /* ヘッダー（空セル）の背景色調整 */
  .product-compare-table .header-empty {
    background-color: #a38c8c;
  }
	.scroll-hint {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    font-size: 12px;
    color: #666;
    margin-bottom: 8px;
  }

  .scroll-hint-icon {
    font-size: 10px;
    background: #eee;
    padding: 2px 6px;
    border-radius: 10px;
  }
	/* ヘッダーカラー（画像の色味に準拠） */
.product-compare-table .group-header {
 text-align: left;
}
}


/* ==================================================
   PC対応：1200px以上
   通常表示・均等配置
================================================== */
@media screen and (min-width: 1200px) {
  .table-container {
    overflow-x: visible;
  }

  .product-compare-table {
    table-layout: fixed;
  }

  /* 固定解除 */
  .product-compare-table .sticky-col {
    position: static;
    box-shadow: none;
  }
}