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

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

/* スマホ版図解:PCでは幅を抑えて中央に置く */
.entry-content .wp-block-image.zu-sp{
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}
.entry-content .wp-block-image.zu-sp img{
  width: 100%;
  height: auto;
}

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

/* 834px以下：表を画面幅に収め、セル内で折り返す */
@media screen and (max-width: 834px){
  .entry-content table{
    width: 100% !important;
    max-width: 100% !important;
    table-layout: auto;
  }
  .entry-content table th,
  .entry-content table td{
    white-space: normal !important;   /* nowrap を解除 */
    min-width: 0 !important;
    overflow-wrap: anywhere;          /* 長い英単語やURLも折り返す */
    word-break: normal;
  }
}

/* 480px以下：余白と文字を少し詰めて、1列の幅を確保する */
@media screen and (max-width: 480px){
  .entry-content table th,
  .entry-content table td{
    padding: 6px 5px !important;
    font-size: 14px;
    line-height: 1.55;
  }
}