@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){
  /*必要ならばここにコードを書く*/
}

/************************************
** モバイル最適化 (2026-05-17)
************************************/

/* テーブルレスポンシブ対応 */
.entry-content table {
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
  font-size: 14px;
}

.entry-content table th,
.entry-content table td {
  white-space: nowrap;
  padding: 8px 10px;
}

/* モバイル: テーブルフォントサイズ縮小 */
@media screen and (max-width: 834px) {
  .entry-content table {
    font-size: 13px;
  }
  .entry-content table th,
  .entry-content table td {
    padding: 6px 8px;
    white-space: normal;
    min-width: 80px;
  }
}

/* モバイル: 読みやすさ向上 */
@media screen and (max-width: 480px) {
  .entry-content {
    font-size: 16px;
    line-height: 1.8;
  }
  .entry-content h2 {
    font-size: 1.3em;
    line-height: 1.4;
  }
  .entry-content h3 {
    font-size: 1.15em;
    line-height: 1.4;
  }
  .entry-content p {
    margin-bottom: 1.2em;
  }
  /* AdSense間隔確保 */
  .adsbygoogle {
    margin: 15px 0;
  }
  /* 画像はみ出し防止 */
  .entry-content img {
    max-width: 100%;
    height: auto;
  }
  /* TOC改善 */
  .toc {
    font-size: 14px;
  }
  /* リスト改善 */
  .entry-content ul,
  .entry-content ol {
    padding-left: 1.5em;
  }
}

/* CLS防止: 広告スロットの最小高さ */
.ad-area {
  min-height: 100px;
}

/* スムーズスクロール */
html {
  scroll-behavior: smooth;
}

/* FAQ要約ボックススタイル */
.article-summary-box {
  background: #f8f9fa;
  border: 1px solid #e2e8f0;
  border-left: 4px solid #2563eb;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 24px;
  font-size: 15px;
  line-height: 1.7;
}
.article-summary-box h2 {
  font-size: 1.1em;
  margin: 0 0 12px 0;
  color: #1e40af;
}
.article-summary-box ul {
  margin: 0;
  padding-left: 1.2em;
}
.article-summary-box li {
  margin-bottom: 6px;
}
