@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){
  /*必要ならばここにコードを書く*/
}
/* --- 見出し共通：改行のルールと文字の切れ目対策 --- */
.article h2, .article h3, .article h4 {
    word-break: break-all !important;      /* どこでも切れるように強制 */
    overflow-wrap: anywhere !important;     /* 枠内に収める */
    line-break: anywhere !important;       /* 1行を優先 */
    text-align: left !important;
    padding-left: 5px !important;          /* 文字幅確保のため余白を削る */
    padding-right: 5px !important;
}

/* --- H2のデザイン（LCBO赤ライン） --- */
.article h2 {
    border-bottom: 2px solid #D21312 !important;
    border-left: none !important;
    background: none !important;
    font-weight: bold !important;
    margin-bottom: 30px !important;
}

/* --- スマホ表示（画面幅480px以下）の最適化 --- */
@media screen and (max-width: 480px) {
    .article h2 {
        font-size: 1.0rem !important;      /* 文字サイズを下げて1行に収める */
        letter-spacing: -0.05em !important; /* 文字間を詰める */
        line-height: 1.3 !important;
        margin-bottom: 20px !important;
    }
    .article h3 {
        font-size: 0.95rem !important;
        letter-spacing: -0.03em !important;
    }
    .article h4 {
        font-size: 0.9rem !important;
    }
}

/* --- 比較表のスマホ横スクロール対応（復活！） --- */
.entry-content table {
    display: block !important;
    overflow-x: auto !important;
    white-space: nowrap !important;
    -webkit-overflow-scrolling: touch !important; /* 指で滑らかに動くように */
}