/**
 * H2見出しのカスタムスタイル
 * カスタマイザーのスタイルを上書き
 */

/* H2基本スタイル - カスタマイザーの設定を完全に上書き */
.entry-content h2,
article h2,
main h2,
.l--content h2,
.cmn--contents h2,
h2.wp-block-heading {
    /* リセット */
    background: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 2em 0 1em 0 !important;
    
    /* 新しいスタイル例1: 左ボーダーとグラデーション背景 */
    background: linear-gradient(to right, #f0f8ff, transparent) !important;
    border-left: 5px solid #67bded !important;
    padding: 0.8em 1em !important;
    font-size: 24px !important;
    color: #333 !important;
    font-weight: 700 !important;
    line-height: 1.5 !important;
    border-radius: 0 !important;
}

/* スタイル例2: 下線スタイル（コメントアウト中） */
/*
.entry-content h2,
article h2,
main h2 {
    background: none !important;
    border: none !important;
    border-bottom: 3px solid #67bded !important;
    padding: 0 0 0.5em 0 !important;
    position: relative !important;
}

.entry-content h2::after,
article h2::after,
main h2::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 60px;
    height: 3px;
    background: #0D3D8D;
}
*/

/* スタイル例3: 囲み枠スタイル（コメントアウト中） */
/*
.entry-content h2,
article h2,
main h2 {
    background: #fff !important;
    border: 2px solid #67bded !important;
    padding: 0.8em 1.2em !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
}
*/

/* スタイル例4: 番号付きスタイル（コメントアウト中） */
/*
.entry-content h2,
article h2,
main h2 {
    counter-increment: h2-counter;
    position: relative;
    padding-left: 3em !important;
}

.entry-content h2::before,
article h2::before,
main h2::before {
    content: counter(h2-counter, decimal-leading-zero);
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    background: #67bded;
    color: #fff;
    width: 2em;
    height: 2em;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}
*/

/* スタイル例5: リボンスタイル（コメントアウト中） */
/*
.entry-content h2,
article h2,
main h2 {
    position: relative;
    background: #67bded !important;
    color: #fff !important;
    padding: 0.8em 2em !important;
    margin-left: -10px !important;
    margin-right: -10px !important;
}

.entry-content h2::before,
article h2::before,
main h2::before {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    border-style: solid;
    border-width: 10px 10px 0 0;
    border-color: #4a7892 transparent transparent transparent;
}
*/

/* レスポンシブ対応 */
@media screen and (max-width: 768px) {
    .entry-content h2,
    article h2,
    main h2,
    h2.wp-block-heading {
        font-size: 20px !important;
        padding: 0.6em 0.8em !important;
        margin: 1.5em 0 0.8em 0 !important;
    }
}

@media screen and (max-width: 480px) {
    .entry-content h2,
    article h2,
    main h2,
    h2.wp-block-heading {
        font-size: 18px !important;
        padding: 0.5em 0.6em !important;
    }
}

/* 目次内のH2は除外 */
.toc h2,
.custom-toc h2,
#toc h2 {
    background: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
}