@charset "UTF-8";

/*!
Theme Name: Cocoon Child
Description: Cocoon専用の子テーマ
Theme URI: https://wp-cocoon.com/
Author: わいひら
Author URI: https://nelog.jp/
Template:   cocoon-master
Version:    1.1.3
*/

/************************************
** 子テーマ用のスタイルを書く
************************************/
/* =========================
   横スクロール用ラッパー
========================= */
.cmp-table-wrap{
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
}

/* =========================
   テーブル共通（基本：2列など）
========================= */
.cmp-table{
  border-collapse: collapse;
  width: 100%;
  min-width: 0;              /* ←重要 */
  table-layout: auto;        /* ←重要 */
  font-size: 13px;
  line-height: 1.4;
}

/* =========================
   横に広い表（8列など）
   ※ HTMLで class="cmp-table is-wide"
========================= */
/* @media screen and (max-width: 768px){
  .cmp-table.is-wide{
    min-width: 1100px;
    table-layout: fixed;
  }
} */


  .cmp-table.is-wide{
    min-width: 1100px;
    table-layout: fixed;
  }


/* =========================
   セル共通
========================= */
.cmp-table th,
.cmp-table td{
  border: 1px solid #dbe7f5;
  padding: 8px 10px;
  vertical-align: middle;
  word-break: break-word;
  background: #fff;
  text-align: center;
}

/* 列見出し */
.cmp-table th[scope="col"]{
  background: #eef6ff;
}

/* 行見出し（固定） */
.cmp-table th[scope="row"]{
  position: sticky;
  left: 0;
  z-index: 2;
  background: #eef6ff;
  font-weight: 700;
  white-space: nowrap;

  width: 160px;
  min-width: 160px;
  max-width: 160px;
}

/* 左上セル固定 */
.cmp-table tr:first-child th:first-child{
  position: sticky;
  left: 0;
  top: 0;
  z-index: 4;
  background: #eef6ff;
  font-weight: 700;

  width: 140px;
  min-width: 140px;
  max-width: 140px;
}

/* 見出しの重なり防止 */
.cmp-table tr:first-child th{
  z-index: 1;
}

/* =========================
   レスポンシブ調整
========================= */

/* 1023px以下 */
@media screen and (max-width: 1023px){
  .cmp-table{
    font-size: 12px;
  }

  .cmp-table th,
  .cmp-table td{
    padding: 7px 8px;
  }

  .cmp-table th[scope="row"],
  .cmp-table tr:first-child th:first-child{
    width: 120px;
    min-width: 120px;
    max-width: 120px;
  }
}

/* 834px以下 */
@media screen and (max-width: 834px){
  .cmp-table{
    font-size: 11px;
  }

  .cmp-table th,
  .cmp-table td{
    padding: 6px 7px;
  }
}

/* 480px以下 */
@media screen and (max-width: 480px){
  .cmp-table th[scope="row"],
  .cmp-table tr:first-child th:first-child{
    width: 100px;
    min-width: 100px;
    max-width: 100px;
  }
}
