/*========================================
 WordPress　flextable表ブロック専用：試合スケジュール表
 対象：.wp-block-flexible-table-block-table.schedule-table
=========================================*/

.wp-block-flexible-table-block-table.schedule-table table {
  border: none !important;
  border-collapse: collapse;
  width: 100%;
}

/* セル共通 */
.wp-block-flexible-table-block-table.schedule-table th,
.wp-block-flexible-table-block-table.schedule-table td {
  padding: 8px;
  text-align: center;
  vertical-align: middle;
  font-size: 0.9em;
}

/* 見出し行 */
.wp-block-flexible-table-block-table.schedule-table thead th {
  background: #f7f7f7;
  font-weight: bold;
}
.wp-block-flexible-table-block-table.schedule-table thead {
  border-block-end: none !important;
}

/* 週セル */
.wp-block-flexible-table-block-table.schedule-table td.week {
  font-weight: bold;
  background: #f9f9f9;
}


/*----------------------------------------
 モバイル対応（スマホ時）
-----------------------------------------*/
@media (max-width: 768px) {
.wp-block-flexible-table-block-table.schedule-table table,
.wp-block-flexible-table-block-table.schedule-table thead,
.wp-block-flexible-table-block-table.schedule-table tbody,
.wp-block-flexible-table-block-table.schedule-table th,
.wp-block-flexible-table-block-table.schedule-table td,
.wp-block-flexible-table-block-table.schedule-table tr {
    display: block;
    width: 100%;
    box-sizing: border-box;
  }

  /* theadを非表示 */
.wp-block-flexible-table-block-table.schedule-table thead {
    display: none;
  }

  /* カード風 */
.wp-block-flexible-table-block-table.schedule-table tr {
    margin-bottom: 1em;
    overflow: hidden;
    background: #fff;
  }

  /* 試合日など各項目セル */
.wp-block-flexible-table-block-table.schedule-table td {
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px;
  }

  /* ラベルをbeforeで表示 */
.wp-block-flexible-table-block-table.schedule-table td.day::before {
    content: "試合日";
    font-weight: bold;
  }
.wp-block-flexible-table-block-table.schedule-table td.time::before {
    content: "開始";
    font-weight: bold;
  }
.wp-block-flexible-table-block-table.schedule-table td.result::before {
    content: "結果";
    font-weight: bold;
  }
.wp-block-flexible-table-block-table.schedule-table td.place::before {
    content: "球場";
    font-weight: bold;
  }
.wp-block-flexible-table-block-table.schedule-table td.detail::before {
    content: "詳細";
    font-weight: bold;
  }

  /* 週セルをカード外に切り離して太線で区切る */
.wp-block-flexible-table-block-table.schedule-table td.week {
    display: block;
    font-weight: bold;
    font-size: 1.1em;
    text-align: left;
    padding: 10px 8px;
    border: none;
    background: #344cb7;
    width: 100%;
    box-sizing: border-box;
    color: #fff;
  }

.wp-block-flexible-table-block-table.schedule-table td.card{
  font-weight: bold;
  background-color: #dcf3ff;
}

  /* 週セルの直後のtdとの境界調整 */
  .wp-block-table.schedule-table td.week + td {
    border-top: none;
  }
}
