@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%;
}

/* EMMUS article image frames: 16:9, independent of excerpt length (2026-10-30) */
.entry-card-wrap article.entry-card.e-card {
  width: 100% !important;
  flex: 1 1 100% !important;
  min-width: 0 !important;
}
.entry-card-wrap figure.entry-card-thumb.e-card-thumb {
  width: 266.666667px !important;
  min-width: 266.666667px !important;
  max-width: 266.666667px !important;
  height: 150px !important;
  aspect-ratio: 16 / 9;
  flex-shrink: 0 !important;
}
@media (max-width: 600px) {
  .entry-card-wrap figure.entry-card-thumb.e-card-thumb {
    width: 40% !important;
    min-width: 40% !important;
    max-width: 40% !important;
    height: auto !important;
    align-self: center !important;
  }
}
