@charset "utf-8";
/* ============================================================================
   投稿本文（.single-content）読みやすさ最適化  v1 / たたき台
   五月女建設株式会社 家の傾き相談室（katamukisoudan.com）

   ■ このファイルの役割
     施工事例・お客様の声・お知らせ すべての本文（.single-content）に効きます。
     記事側の編集は不要。既存の全記事に一斉に反映されます。

   ■ 導入前にやること（specificity の衝突を避けるため）
     style.css から以下の“古い本文ブロック”を削除してください：
       ・1809〜1831行 : .single-content h2〜h5（!important 付き）
       ・1833〜1835行 : .single-content ul li
       ・1843〜1848行 : .single-content .wp-block-button__link
     mediaquery.css から以下を削除してください：
       ・2808〜2818行 / 2898〜2911行 : .single-content h2〜h4 のスマホ指定
     （テーブルのスマホ横スクロール 2864〜2874行 は残してOK。本ファイルと併用）

   ■ ブランドカラー
     navy #002266 / orange #fda61a・#fa7d00 / 淡青 #ebf2ff / 文字 #222222
   ========================================================================== */


/* ------------------------------------------------------------------
   本文ベース：段落と行間（50代以上でも疲れず読める設定）
   ------------------------------------------------------------------ */
.single-content {
    font-size: 17px;
    line-height: 1.9;
    color: #222222;
    letter-spacing: .02em;
}

.single-content p {
    margin: 0 0 1.6em;
}

/* 余白調整用に多数入っている“空の段落”を自動的に消す
   （手作業で1つずつ消す必要がなくなります） */
.single-content p:empty {
    display: none;
}


/* ------------------------------------------------------------------
   見出し：4階層を「見た瞬間に」区別できるように、色と形を変える
   ------------------------------------------------------------------ */

/* h2 ＝ 大セクション：淡青ベタ塗り + 太いネイビー左バー（最も目立つ） */
.single-content h2 {
    font-size: 26px;
    font-weight: 700;
    color: #002266;
    background: #ebf2ff;
    border-left: 6px solid #002266;
    border-radius: 0 6px 6px 0;
    padding: 16px 20px;
    margin: 3em 0 1em;
    line-height: 1.5;
}

/* h3 ＝ 中見出し：ネイビー文字 + ネイビー下線 */
.single-content h3 {
    font-size: 22px;
    font-weight: 700;
    color: #002266;
    border-bottom: 2px solid #002266;
    padding-bottom: 8px;
    margin: 2.4em 0 1em;
    line-height: 1.5;
}

/* h4 ＝ 小見出し：オレンジ左バー（h3 と“色”で差別化） */
.single-content h4 {
    font-size: 19px;
    font-weight: 700;
    color: #002266;
    border-left: 4px solid #fda61a;
    padding-left: 12px;
    margin: 2em 0 .8em;
    line-height: 1.5;
}

/* h5 ＝ 最小見出し：オレンジの角丸ドット + 小さめ */
.single-content h5 {
    font-size: 17px;
    font-weight: 700;
    color: #002266;
    position: relative;
    padding-left: 15px;
    margin: 1.6em 0 .6em;
    line-height: 1.5;
}
.single-content h5::before {
    content: "";
    position: absolute;
    left: 0;
    top: .55em;
    width: 8px;
    height: 8px;
    background: #fda61a;
    border-radius: 2px;
}


/* ------------------------------------------------------------------
   強調（strong）：本文で多用されているため、うるさくならない範囲で
   ブランドのネイビーに寄せる
   ------------------------------------------------------------------ */
.single-content strong {
    color: #002266;
    font-weight: 700;
}

/* “本当に目立たせたい所”だけ：エディタの「追加CSSクラス」に marker を指定 */
.single-content .marker {
    background: linear-gradient(transparent 60%, #ffe89a 60%);
    font-weight: 700;
}


/* ------------------------------------------------------------------
   リスト：マーカーと余白を整え、ネストの階層も見えるように
   ------------------------------------------------------------------ */
.single-content ul,
.single-content ol {
    margin: 0 0 1.6em;
    padding-left: 0;
}

.single-content ul > li,
.single-content ol > li {
    line-height: 1.9;
    margin-bottom: .5em;
}

/* ul：ネイビーの四角マーカー */
.single-content ul > li {
    list-style: none;
    position: relative;
    padding-left: 1.4em;
}
.single-content ul > li::before {
    content: "";
    position: absolute;
    left: .2em;
    top: .72em;
    width: 8px;
    height: 8px;
    background: #002266;
    border-radius: 2px;
}

/* ネストした ul：オレンジの丸マーカー（親と区別） */
.single-content ul ul {
    margin: .5em 0;
}
.single-content ul ul > li::before {
    background: #fda61a;
    width: 6px;
    height: 6px;
    top: .8em;
    border-radius: 50%;
}

/* ol：ネイビーの丸番号（手順が明確に。50代以上にも分かりやすい） */
.single-content ol {
    list-style: none;
    counter-reset: li;
}
.single-content ol > li {
    position: relative;
    padding-left: 2.1em;
    counter-increment: li;
}
.single-content ol > li::before {
    content: counter(li);
    position: absolute;
    left: 0;
    top: .1em;
    width: 1.5em;
    height: 1.5em;
    background: #002266;
    color: #fff;
    font-size: .82em;
    font-weight: 700;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}


/* ------------------------------------------------------------------
   テーブル：テーマ既存の .custom-table の世界観をブロックにも適用
   （スマホの横スクロールは mediaquery.css 側の既存指定と併用）
   ------------------------------------------------------------------ */
.single-content .wp-block-table {
    margin: 1.5em 0;
}
.single-content .wp-block-table table {
    width: 100%;
    border-collapse: collapse;
    border: 2px solid #002266;
    font-size: 16px;
}
.single-content .wp-block-table th,
.single-content .wp-block-table td {
    border: 1px solid #002266;
    padding: 14px 12px;
    vertical-align: middle;
    color: #002266;
    line-height: 1.7;
}
/* ヘッダー行：コントラストを上げて視認性重視（ネイビー地に白文字）
   ※他ページの .custom-table に合わせて淡青ヘッダーにしたい場合は
     background を #ebf2ff、color を #002266 に変更してください */
.single-content .wp-block-table thead th {
    background: #002266;
    color: #fff;
    font-weight: 700;
}
/* 縞模様：行を目で追いやすく */
.single-content .wp-block-table tbody tr:nth-child(even) td {
    background: #f5f8ff;
}


/* ------------------------------------------------------------------
   画像：わずかに角丸で本文になじませる
   ------------------------------------------------------------------ */
.single-content .wp-block-image img {
    border-radius: 4px;
}


/* ------------------------------------------------------------------
   ボタン：50代以上でも押しやすい大きめタップ領域
   ------------------------------------------------------------------ */
.single-content .wp-block-button__link {
    display: inline-block;
    background: #fda61a;
    color: #fff;
    font-size: 1.3em;
    font-weight: 700;
    padding: 18px 40px;
    border-radius: 10px;
    box-shadow: 0 4px 0 #d98800;
    transition: .2s;
    margin: 10px auto;
}
.single-content .wp-block-button__link:hover {
    background: #fa7d00;
    transform: translateY(2px);
    box-shadow: 0 2px 0 #d98800;
}


/* ==================================================================
   スマホ
   ================================================================== */
@media screen and (max-width: 850px) {
    .single-content {
        font-size: 16px;
        line-height: 1.85;
    }
    .single-content h2 {
        font-size: 22px;
        padding: 12px 15px;
        margin: 2.4em 0 1em;
    }
    .single-content h3 {
        font-size: 19px;
    }
    .single-content h4 {
        font-size: 17px;
    }
    .single-content .wp-block-table th,
    .single-content .wp-block-table td {
        padding: 10px 12px;
    }
}

@media screen and (max-width: 450px) {
    .single-content h2 {
        font-size: 20px;
    }
    .single-content h3 {
        font-size: 18px;
    }
    .single-content h4 {
        font-size: 16.5px;
    }
    /* ボタンは全幅にして押しやすく */
    .single-content .wp-block-button__link {
        width: 100%;
        font-size: 1.15em;
        padding: 16px;
        box-sizing: border-box;
    }
}
