@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.2
*/

/************************************
** 子テーマ用のスタイルを書く
************************************/
/*必要ならばここにコードを書く*/

/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/
/*1023px以下*/
@media screen and (max-width: 1023px){
  /*必要ならばここにコードを書く*/
}

/*834px以下*/
@media screen and (max-width: 834px){
  /*必要ならばここにコードを書く*/
}

/*480px以下*/
@media screen and (max-width: 480px){
  /*必要ならばここにコードを書く*/
}

/*-- ↓2022/12/12:スマホ表示用改行クラスの追加
 * 参考＞ https://tcd-theme.com/2020/06/line-breaks-smartphone.html
 * 本文・タイトル等に入れた<br class="br-sp">の改行を
 * スマホ以外(768px以上の表示)になったら無効にする対応
 */
@media screen and (min-width: 768px){
	 .br-sp {display: none; }
}

/*-- ↓2023/01/06:PC表示用改行クラスの追加
 * 参考＞ https://tcd-theme.com/2020/06/line-breaks-smartphone.html
 * 本文・タイトル等に入れた<br class="br-pc">の改行を
 * スマホ(768px以上の表示)になったら無効にする対応
 */
@media screen and (max-width: 768px){
	 .br-pc {display: none; }
}

/*--↓2022/6/14:表の横スクロール機能追加
 * 参考＞　https://nelog.jp/scrollable-table
 * 2022/6/15 対象表の文字は他より小さくなる様にfont-sizeを設定*/
.scrollable-table table{
  border-collapse: collapse;
  margin: 1em 0;
  max-width: 100%;
	font-size: 75%;
}

.scrollable-table th{
  background-color: 
  background: #424242;
}

.scrollable-table th,
.scrollable-table td{
  border: solid 1px #ccc;
  padding: 3px 5px;
  white-space: nowrap;
}
/*--↓2022/6/15 横スクロール時に１行目固定を追加*/
.scrollable-table th:first-child {
  /* 横スクロールを固定 */
  position: sticky;
  left: 0;
  background: #424242;
}
.scrollable-table thead th:first-child {
  /* 一番左端のthead thが横スクロール時に隠れない様に */
  z-index: 2;
  background: #424242;
}

/*--↑2022/6/15 修正*/
.scrollable-table {
  overflow-x: auto;
  margin-bottom: 1em;
}
/*--↑2022/6/14修正。functions.php側も修正済*/

/*--↓2022/12/27:表の横スクロール機能に１列目固定も追加
 * 参考＞　https://nelog.jp/scrollable-table
 *         https://csshtml.work/table-scroll/
 * ＋ 対象表の文字は他より小さくなる様にfont-sizeも設定*/
.scrollable-table2{
    overflow: auto;
    width: 100%;
    max-height: 800px;
	font-size: 75%;
	margin-bottom: 1em;
}

.scrollable-table2 table{
	margin: 1em 0;
    border-spacing: 0;
}
.scrollable-table2 td{
    white-space: nowrap;
    border-right: 1px solid #999;
    border-bottom: 1px solid #999;
    padding: 5px;
}
.scrollable-table2 th{
    white-space: nowrap;
    border-right: 1px solid #FFF;
    border-bottom: 1px solid #FFF;
    background: #424242;
    position: sticky;
    top: 0;
    left: 0;
}
.scrollable-table2 tr:first-child th{
    border-top: 1px solid #FFF;
    border-bottom: 1px solid #FFF;
}
.scrollable-table2 th:first-child{
    border-left: 1px solid #FFF;
}
.scrollable-table2 tr:first-child th:first-child{
    z-index: 1;
}
/*--↑2022/12/27修正。対象のもののみdiv classで指定とし、functions.php側は修正しない*/