/*
Theme Name: SECOND ORDER Theme
Version: 1.0
*/
/* ラップで横スクロール可（スマホ対策） */

.c-red {
  color: red !impotant;
}
.table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* テーブル本体 */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  font-size: 16px;
  line-height: 1.7;
  color: #111827; /* gray-900 */
  background: #fff;
  min-width: 720px; /* カラム潰れ防止 */
}

/* セル共通 */
.compare-table th,
.compare-table td {
  padding: 14px 16px;
  border-bottom: 1px solid #e5e7eb; /* gray-200 */
  vertical-align: top;
  text-align: left;
}

/* ヘッダー */
.compare-table thead th {
  background: #f3f4f6; /* gray-100 */
  white-space: nowrap;
  position: sticky; /* 横スクロール時にヘッダー固定 */
  top: 0;
  z-index: 1;
}

/* 偶数行の薄いストライプ */
.compare-table tbody tr:nth-child(even) {
  background: #fafafa;
}

/* 先頭列を少し強調（太字は使わず色で差） */
.compare-table tbody td:first-child {
  color: #374151; /* gray-700 */
  width: 18%;
  white-space: nowrap;
}

/* 角丸っぽい見た目（上部） */
.compare-table thead th:first-child { border-top-left-radius: 8px; }
.compare-table thead th:last-child  { border-top-right-radius: 8px; }

/* ダークモード対応（任意） */
@media (prefers-color-scheme: dark) {
  .compare-table {
    color: #e5e7eb;
    background: #0b0f14;
  }
  .compare-table thead th {
    background: #111827;
  }
  .compare-table th,
  .compare-table td {
    border-bottom-color: #1f2937;
  }
  .compare-table tbody tr:nth-child(even) {
    background: #0f1319;
  }
  .compare-table tbody td:first-child {
    color: #cbd5e1;
  }
}

/* 画面が広い時は読みやすく拡張 */
@media (min-width: 1024px) {
  .compare-table {
    font-size: 17px;
  }
}

/* スクリーンリーダー用（視覚的には非表示） */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}