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

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

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

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

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


/* ==============================================
   記事内テーブル スタイル調整
   ============================================== */

/* フォントサイズを本文より小さく */
.entry-content table {
  font-size: 0.82em;
  border-collapse: collapse;
  min-width: max-content;
}

/* セルは折り返し禁止・パディング小さめ */
.entry-content table th,
.entry-content table td {
  padding: 5px 9px;
  vertical-align: middle;
  white-space: nowrap;
}

/* 最後の列（説明・ポイントなど長文列）だけ折り返し許可 */
.entry-content table th:last-child,
.entry-content table td:last-child {
  white-space: normal;
  min-width: 150px;
}

/* 横スクロール用ラッパー（JSで自動挿入） */
.entry-content .table-scroll-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
  margin: 1em 0;
}

/* WPブロックのfigureラッパーにも横スクロール */
.entry-content figure.wp-block-table {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
}