:root {
  --main-theme: #00bcd1;
  --sub-theme: #c0e8ed;
}

a.btn {
  border-radius: 10px;
  padding: 4px 15px;
  font-size: 14px;
  margin: 5px 10px;
  cursor: pointer;
  border: none;
  display: inline-block;
  text-decoration: none;
  background-color: #00bcd1;
  color: #FFFFFF;
  transition: background-color 0.3s ease;
}

a.btn:hover {
  background-color: #0097a7;
  color: #FFFFFF;
}

/* テーブルの外枠、角丸、サイズ調整を担うコンテナ */
.table-container {
  width: fit-content; /* PCで不要に広がらないようにする */
  max-width: 100%;    /* スマホで画面からはみ出さないようにする */
  border: 2px solid var(--main-theme);
  border-radius: 10px;
  overflow: hidden;   /* コンテナの角丸をテーブルに適用する */
}

/* .table-container の中にある table.table にだけスタイルを適用する */
.table-container table.table {
  /* table自体をスクロールコンテナにする */
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch; /* iOSでの慣性スクロール */
  border-collapse: separate; /* 枠線を表示するためにcollapseから変更 */
  border-spacing: 0;
  margin: 0;
}

/* .table-container の中のテーブルにだけ適用 */
.table-container tbody > tr.row {
  background: #fff;
}

/* .table-container の中のテーブルにだけ適用 */
.table-container thead > tr.row.header {
  color: #ffffff;
  background: var(--main-theme);
}

/* .table-container の中のテーブルにだけ適用 */
.table-container th.cell, .table-container td.cell {
  border: none; /* セルのデフォルトの境界線をすべて削除 */
  font-family: Poppins-Regular, sans-serif; /* 代替フォントを指定 */
  line-height: 1.2;
  font-weight: unset !important;
  white-space: nowrap; /* テキストが折り返されないように設定 */
  text-align: center;
  padding: 0 15px; /* padding-left と padding-right を一括指定 */
}

.table-container tbody > tr > td.cell {
  font-size: 15px;
  color: #666666;
  padding-top: 20px; /* padding-top と padding-bottom は個別指定のまま */
  padding-bottom: 20px;
  border-bottom: 1px solid #f2f2f2;
}

/* 最後の行のセルの下線は削除し、テーブル全体の枠線と二重にならないようにする */
.table-container tbody > tr.row:last-child > td.cell {
  border-bottom: none;
}

.table-container thead > tr > th.cell {
  font-size: 18px;
  color: #fff;
  padding-top: 19px;
  padding-bottom: 19px;
  border-bottom: 2px solid var(--main-theme); /* ヘッダーとボディの間の線 */
}

.table-container tbody > tr.row:hover {
  background-color: var(--sub-theme);
  cursor: pointer;
}

.table-container thead > tr.row.header:hover {
  background-color: var(--main-theme);
  cursor: default;
}