/* =========================================================
   テーブル
   - Bootstrap の table クラスは使わない
   - .simple-table だけ、769px以上で3列に戻す
   - 左右開始位置は本文基準線が決まるまで触らない
   ========================================================= */

table {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  border-color: #ccc;
}

th,
td {
  padding: 14px;
  border: 0.8px solid #ccc;
  vertical-align: top;
}

th {
  background-color: #fcc;
  font-weight: 650;
  text-align: left;
}

/* ---------------------------------------------------------
   汎用3列テーブル（.simple-table）
   狭い画面では行をカードにする。
   thead は画面上から消し、中身は td の並びで読む。
   --------------------------------------------------------- */
.simple-table {
  width: 100%;
  margin: 1.5rem 0;
  font-size: 1rem;
}

.simple-table,
.simple-table thead,
.simple-table tbody,
.simple-table tr,
.simple-table th,
.simple-table td {
  display: block;
}

.simple-table thead {
  display: none;
}

.simple-table tr {
  margin: 0 0 18px;
  padding: 16px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.simple-table td {
  padding: 10px 0;
  border: none;
}

.simple-table td:first-child {
  padding-bottom: 6px;
  font-size: 1.2rem !important;
  font-weight: 500;
  color: #b133e3 !important;
}

.simple-table td:last-child img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}

/* 769px以上: 通常の表に戻す */
@media (min-width: 769px) {
  .simple-table,
  .simple-table thead,
  .simple-table tbody,
  .simple-table tr,
  .simple-table th,
  .simple-table td {
    display: revert;
  }

  .simple-table thead {
    display: table-header-group;
  }

  .simple-table tr {
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .simple-table th,
  .simple-table td {
    padding: 12px 14px;
    border: none;
    border-bottom: 1px solid #ddd;
  }

  .simple-table td:first-child {
    padding-bottom: 12px;
    font-size: inherit;
  }

}
