/* ========================================
   比較表CSS - les SALON（Winbackスタイル完全コピー）
   ======================================== */

/* 比較セクション */
.comparison-section {
  background: linear-gradient(135deg, #FAF8F5 0%, #FFFFFF 100%);
  position: relative;
  overflow: hidden;
  padding: 4rem 0;
}

.comparison-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(201, 168, 130, 0.1) 0%, transparent 70%);
  border-radius: 50%;
}

/* 比較表ラッパー */
.comparison-table-wrapper {
  max-width: 1000px !important;
  margin: 3rem auto !important;
  overflow-x: auto !important;
  border-radius: 12px !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08) !important;
  background: #fff !important;
}

.comparison-table-wrapper:hover {
  box-shadow: 0 15px 80px rgba(139, 115, 85, 0.2);
  transform: translateY(-5px);
}

/* テーブル本体 */
.comparison-table {
  width: 100% !important;
  border-collapse: collapse !important;
  background: #fff !important;
  min-width: 600px !important;
  border-spacing: 0 !important;
}

/* ヘッダー全体（金色グラデーション） */
.comparison-table thead {
  background: linear-gradient(135deg, #D4AF37 0%, #F4D03F 100%) !important;
}

/* ヘッダーセル */
.comparison-table thead th {
  padding: 1.25rem 1rem !important;
  text-align: center !important;
  font-weight: 700 !important;
  font-size: 1.0625rem !important;
  border-right: 1px solid rgba(255, 255, 255, 0.2) !important;
  color: #fff !important;
  background: none !important;
}

.comparison-table thead th:last-child {
  border-right: none !important;
}

/* 最初の列ヘッダー（茶色） */
.comparison-table thead th:first-child {
  text-align: left !important;
  background: linear-gradient(135deg, #B8860B 0%, #D4AF37 100%) !important;
}

/* ハイライト列ヘッダー */
.comparison-table thead th.highlight {
  background: none !important;
}

/* ボディセル */
.comparison-table tbody td {
  padding: 1.25rem 1rem !important;
  text-align: center !important;
  border-bottom: 1px solid #eee !important;
  border-right: 1px solid #f5f5f5 !important;
  font-size: 0.9375rem !important;
  background: #fff !important;
  line-height: 1.6 !important;
  vertical-align: middle !important;
}

/* 最初の列 */
.comparison-table tbody td:first-child {
  font-weight: 600 !important;
  text-align: left !important;
  background: #FAFAFA !important;
  color: #333 !important;
}

/* ハイライト列 */
.comparison-table tbody td.highlight {
  background: linear-gradient(180deg, #FFF9E6 0%, #FFFEF8 100%) !important;
  font-weight: 600 !important;
  border-left: 3px solid #D4AF37 !important;
  border-right: 3px solid #D4AF37 !important;
}

/* 最終行のボーダー削除 */
.comparison-table tbody tr:last-child td {
  border-bottom: none !important;
}

/* ホバー */
.comparison-table tbody tr:hover {
  background: transparent !important;
}

.comparison-table tbody tr:hover td {
  background: #FFFEF8 !important;
}

.comparison-table tbody tr:hover td:first-child {
  background: #F5F5F5 !important;
}

.comparison-table tbody tr:hover td.highlight {
  background: linear-gradient(180deg, #FFF5CC 0%, #FFF9E6 100%) !important;
}

/* アイコン */
.check-icon {
  color: #27AE60 !important;
  font-weight: 900 !important;
  font-size: 1.25rem !important;
  margin-right: 0.75rem;
}

.cross-icon {
  color: #E74C3C !important;
  font-weight: 700 !important;
  font-size: 1.125rem !important;
  margin-right: 0.75rem;
}

/* レスポンシブ（タブレット） */
@media (max-width: 1023px) {
  .comparison-table thead th,
  .comparison-table td {
    padding: 1.25rem 1.5rem;
    font-size: 0.9rem;
  }
  
  .comparison-table thead th:first-child,
  .comparison-table td:first-child {
    font-size: 0.95rem;
  }
}

/* レスポンシブ（モバイル） */
@media (max-width: 767px) {
  .comparison-table-wrapper {
    border-radius: 15px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    position: relative;
    margin-bottom: 3rem;
  }
  
  .comparison-section::after {
    content: '← スクロールできます →';
    display: block;
    text-align: center;
    margin-top: 1rem;
    background: linear-gradient(135deg, #D4AF37, #F4D03F);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-size: 0.75rem;
    font-weight: 600;
    opacity: 0.9;
    animation: fadeInOut 3s ease-in-out infinite;
    box-shadow: 0 4px 15px rgba(139, 115, 85, 0.2);
  }
  
  @keyframes fadeInOut {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
  }
  
  .comparison-table {
    min-width: 650px;
  }
  
  .comparison-table thead th,
  .comparison-table td {
    padding: 1rem 1.25rem;
    font-size: 0.85rem;
    white-space: nowrap;
  }
  
  .comparison-table thead th:first-child,
  .comparison-table td:first-child {
    min-width: 100px;
    font-size: 0.9rem;
    position: sticky;
    left: 0;
    background: white;
    z-index: 2;
  }
  
  .comparison-table thead th:first-child {
    background: linear-gradient(135deg, #B8860B 0%, #D4AF37 100%);
  }
  
  .check-icon,
  .cross-icon {
    width: 24px;
    height: 24px;
    font-size: 0.9rem;
    margin-right: 0.5rem;
  }
}

/* バッジスタイル */
.badge-good {
  display: inline-block;
  color: #D4AF37;
  font-weight: 900;
  font-size: 1.1rem;
  margin-right: 0.25rem;
}

.badge-ok {
  display: inline-block;
  color: #999;
  font-weight: 700;
  font-size: 1.1rem;
  margin-right: 0.25rem;
}

.comparison-table small {
  display: block;
  font-size: 0.85rem;
  color: #666;
  margin-top: 0.25rem;
  line-height: 1.4;
}

/* 比較ノート */
.comparison-note {
  max-width: 900px;
  margin: 2rem auto 0;
  padding: 2rem;
  background: linear-gradient(135deg, #FFF9E6 0%, #FFFEF8 100%);
  border-left: 4px solid #D4AF37;
  border-radius: 8px;
}

.comparison-note .note-text {
  font-size: 0.95rem;
  line-height: 1.9;
  color: #333;
  margin: 0;
}

.comparison-note strong {
  color: #B8860B;
  font-size: 1.05rem;
}

