/* data-csv-1.css — デモ固有スタイル */

.csv-viewer {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ドロップエリア */
.csv-viewer__area {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 40px 24px;
  border: 2px dashed #C8D5E6;
  border-radius: 12px;
  background: #F7F9FC;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.csv-viewer__area:hover,
.csv-viewer__area.is-dragover {
  border-color: #2B7FE8;
  background: #EBF2FF;
}

.csv-viewer__icon {
  width: 40px;
  height: 40px;
  color: #9AA5B4;
}

.csv-viewer__text {
  font-size: 14px;
  color: #5A6A7A;
  font-weight: 600;
  text-align: center;
}

.csv-viewer__sub {
  font-size: 12px;
  color: #9AA5B4;
}

.csv-viewer__input { display: none; }

/* 擬似デモ注記 */
.csv-viewer__note {
  font-size: 12px;
  color: #B0BAC8;
  margin: 0;
  text-align: center;
}

/* アップロードエリアとテーブルの間のスペース */
.csv-viewer__result {
  margin-top: 8px;
}

/* ツールバー（件数 + リセットボタン） */
.csv-viewer__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

/* 件数表示 */
.csv-viewer__count {
  font-size: 13px;
  color: #5A6A7A;
  margin: 0;
}

/* リセットボタン */
.csv-viewer__reset {
  flex-shrink: 0;
  padding: 6px 18px;
  font-size: 13px;
  white-space: nowrap;
  color: #5A6A7A;
  background: #fff;
  border: 1.5px solid #D0D7E0;
  border-radius: 6px;
  cursor: pointer;
  font-family: sans-serif;
  transition: background 0.15s, border-color 0.15s;
}

.csv-viewer__reset:hover {
  background: #F4F6F9;
  border-color: #9AA5B4;
}

/* テーブルの縦スクロールを封じ込める */
.csv-viewer__scroll {
  overflow-x: auto;
  overflow-y: auto;
  max-height: 400px;
  border-radius: 8px;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.10);
}

.csv-viewer__table {
  border-collapse: collapse;
  width: 100%;
  font-size: 14px;
  background: #fff;
  white-space: nowrap;
}

/* ヘッダーをスクロール中も固定する */
.csv-viewer__table thead th {
  position: sticky;
  top: 0;
  background: #2B7FE8;
  color: #fff;
  padding: 10px 16px;
  text-align: left;
  font-weight: 600;
  z-index: 1;
}

.csv-viewer__table td {
  padding: 9px 16px;
  border-bottom: 1px solid #E5E9F2;
  color: #1A2332;
}

.csv-viewer__table tbody tr:last-child td { border-bottom: none; }

/* ストライプ */
.csv-viewer__table tbody tr:nth-child(even) td {
  background: #F4F7FF;
}

/* ホバー */
.csv-viewer__table tbody tr:hover td {
  background: #EBF2FF;
  transition: background 0.1s;
}


@media (max-width: 600px) {
  .csv-viewer__area { padding: 28px 16px; }
  .csv-viewer__table thead th,
  .csv-viewer__table td { padding: 8px 12px; }
}
