@charset "utf-8";
/* CSS Document */

/* ========== Edison Smart | spec2 (DIV Grid) CSS FULL ========== */

/* （任意）フォントを使うなら最上部で @import を置く
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600&display=swap');
*/

.spec2 {
  position: relative;
  margin: 24px 0;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  color: #0f0f10;
  /* テーマの表スタイル影響を受けにくくするために局所的なリセット */
  font: 400 14px/1.6 system-ui, -apple-system, "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
}
.spec2 * { box-sizing: border-box; }

.spec2-head {
  background: #0f0f10;
  color: #fff;
  padding: 12px 16px;
  font-weight: 600;
}

/* 横スクロールの器 */
.spec2-scroller {
  position: relative;              /* sticky の基準 */
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  touch-action: pan-x pinch-zoom;
  border-top: 1px solid #e5e7eb;
  outline: 0;                      /* focus-visible で輪郭表示 */
}

/* グリッド本体（列数はJSが設定） */
.spec2-grid {
  display: grid;
  min-width: 960px;                /* 予防的な下限 */
  position: relative;              /* z-index の土台 */
  isolation: isolate;              /* スタック競合を防ぐ */
}

/* セル共通 */
.spec2-cell {
  position: relative;              /* z-index を効かせる */
  z-index: 1;                      /* 基準の層 */
  background: #fff;
  padding: 10px 12px;
  border-right: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
  white-space: nowrap;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.spec2-cell.wrap { white-space: normal; }

/* ヘッダー行（最上段） */
.spec2-cell.head {
  position: sticky;
  top: 0;
  z-index: 90;            /* 通常セルより上 */
  background: #111;
  color: #fff;
  font-weight: 600;
}

/* 左端（項目名）— 横固定はJSで行う */
.spec2-cell.stub{
  position: relative;       /* ← sticky や left は使わない */
  left: auto;
  z-index: 100;
  background: #fff;
  border-right: 2px solid #e5e7eb;
  box-shadow: 8px 0 0 #fff, 10px 0 12px rgba(0,0,0,.06);
  will-change: transform;   /* スクロールに合わせて滑らかに */
}

/* 左上の交差セルは“縦だけ sticky”維持（ヘッダー固定用） */
.spec2-cell.head.stub{
  position: sticky;
  top: 0;
  z-index: 110;
}


/* しま模様（奇数データ行） */
.spec2-cell.row-odd:not(.head):not(.stub) { background: #fafafa; }
.spec2-cell.row-odd.stub { background: #fafafa; }

/* PCナビボタン（任意） */
.spec2-nav {
  display: none;
  position: absolute;
  top: 56px;
  bottom: 12px;
  width: 0;                 /* レイヤだけ確保 */
  pointer-events: none;
}
.spec2-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 64px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background: rgba(255,255,255,.9);
  box-shadow: 0 6px 20px rgba(0,0,0,.08);
  cursor: pointer;
  pointer-events: auto;
  user-select: none;
}
.spec2-btn:hover { background: #fff; }
.spec2-prev { left: 8px; }
.spec2-next { right: 8px; }




@media (min-width: 768px) {
  .spec2-nav { display: block; }
}

/* ヒント（モバイルのみ） */
.spec2-hint {
  display: block;
  font-size: 12px;
  color: #666;
  padding: 8px 12px;
}
@media (min-width: 768px) {
  .spec2-hint { display: none; }
}

/* 小さい画面での微調整 */
@media (max-width: 640px) {
  .spec2-head { padding: 10px 12px; font-size: 15px; }
  .spec2-cell { padding: 8px 10px; font-size: 13px; }
}

/* アクセシビリティ：フォーカス時の可視化 */
.spec2-scroller:focus-visible {
  outline: 2px solid #0ea5e9;       /* sky-500系 */
  outline-offset: -2px;
}
.spec2-btn:focus-visible {
  outline: 2px solid #0ea5e9;
  outline-offset: 2px;
}

/* 動きが苦手な環境向け：スムーススクロールを抑制 */
@media (prefers-reduced-motion: reduce) {
  .spec2-scroller { scroll-behavior: auto; }
}

/* ---- 競合対策（必要に応じて） ---- */
/* 特定テーマが祖先に overflow:hidden や transform を当てると sticky が壊れることがあるため、
   このページだけ上書きしたい場合は、下のコメントアウトを外してください。

.entry-content .spec2,
.entry-content .spec2 * {
  transform: none !important;
}
.entry-content .spec2 {
  overflow: visible !important;
}
*/
