@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
*/

/************************************
** 子テーマ用のスタイルを書く
************************************/
/*必要ならばここにコードを書く*/


/*480px以下*/
@media screen and (max-width: 480px){
  /*必要ならばここにコードを書く*/
}


/* 目次全体デザイン */
.toc{
    background:#F9F9F9; /* 目次全体の背景色を変える場合はここを変更 */
    border:none;
    display:block;
    border-top:5px solid;
    border-top-color:#FFC679;
    box-shadow: 0 2px 2px rgba(0,0,0,0.2);
    padding: 20px 25px;
}
/* 目次の文字指定 */
.toc-title {
    text-align:left;
    margin: 0 20px 20px -10px;
    padding-left: -20px;
    font-size: 23px;
    font-weight: 700;
    color: #FFC679; /* 目次の文字色を変える場合はここを変更 */
}
/* 目次のアイコン設定 */
.toc-title:before {
    top: 0;
    left: -45px;
    width: 50px;
    height: 50px;
    font-family: "Font Awesome 5 Free";
    content : "\f03a"; /* アイコンを変える場合はここを変更 */
    font-size:20px;
    margin-right:5px;
    color:#FFF; /* アイコンの色を変える場合はここを変更 */
    background-color:#FFC679; /* アイコンの背景色を変える場合はここを変更 */
    border-radius: 50%;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    padding:14px;
}
/* 目次のデザインカスタマイズ */
.toc-content ol {
    padding: 0 0.5em;
    position: relative;
}
.toc-content ol li {
    line-height: 1.5;
    padding: 0.7em 0 0.5em 1.4em;
    border-bottom: dashed 1px silver;
    list-style-type: none!important;
}
/* 目次の各節の先頭にあるアイコンを設定 */
.toc-content ol li:before {
    font-family: "Font Awesome 5 Free";
    content: "\f138"; /* アイコンを変える場合はここを変更 */
    position: absolute;
    left : 0.5em;
    color: #FFC679; /* 色を変える場合はここを変更 */
    font-weight: bold;
}
.toc-content ol li:last-of-type {
    border-bottom: none;
}
.toc-content .toc-list li {
    font-weight:700; /* h2のみ太文字に */
}
.toc-content .toc-list li li {
    font-weight:normal; /* h3以降の文字サイズを普通に */
}

/* --- 外側の共通コンテナ (デフォルト: オレンジ枠線) --- */
.design-points-container {
    border: 1px solid #e7a57a; /* デフォルトのオレンジ系の枠線 */
    border-radius: 5px;
    padding: 0;
    overflow: hidden;
    max-width: 600px;
    margin: 20px auto;
}

/* --- ヘッダー部分 (デフォルト: オレンジ基調) --- */
.design-points-header {
    background-color: #f78d4a; /* デフォルトのオレンジの背景 */
    color: white;
    padding: 10px 15px;
    font-weight: bold;
    font-size: 1.2em;
    padding-left: 40px;
    position: relative;
    border-radius: 5px 5px 0 0;
    display: flex;
    align-items: center;
}

.design-points-header::before {
    /* チェックマークアイコン (白背景、レ点オレンジ) */
    content: "✓";
    color: #f78d4a; /* デフォルトのレ点色 */
    background-color: white;
    width: 20px;
    height: 20px;
    line-height: 20px; 
    text-align: center;
    border-radius: 3px;
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
}

/* li::after は引き続き無効 */
.points-list li::after {
    content: none; 
}

/* --- ULテーマ (pink-theme) が適用された場合の変更 --- */

/* 1. コンテナの枠線をピンクに変更 */
.pink-theme {
    border-color: #e88d9e; /* ピンク系の枠線 */
}

/* 2. ヘッダーの背景色・チェックマークの色をピンクに変更 */
.pink-theme .design-points-header {
    background-color: #e88d9e; /* ピンクの背景 */
}

.pink-theme .design-points-header::before {
    color: #e88d9e; /* レ点の色をピンクに */
}

/* --- UL (点付きリスト) の設定 --- */
ul.points-list {
    background-color: #fff5f7; /* 非常に薄いピンク系の背景 */
    list-style: none;
    padding: 20px 15px 20px 20px;
    margin: 0;
    color: #555;
}

ul.points-list li {
    padding: 10px 0 10px 30px; 
    margin-bottom: 5px;
    position: relative;
    font-size: 1em;
}

ul.points-list li::before {
    /* 修正点: カスタム点マークを丸に変更 */
    content: ""; /* 空のコンテンツ */
    
    /* 丸の作成 */
    background-color: #e88d9e; /* ピンク色 */
    width: 8px; /* 丸の直径 */
    height: 8px; /* 丸の直径 */
    border-radius: 50%; /* 円形にする */
    
    /* 配置 */
    position: absolute;
    left: 10px; /* 左端からの位置調整 */
    top: 50%;
    transform: translateY(-50%);
}

ul.points-list li a {
    color: #e88d9e; 
    text-decoration: underline;
}

/* --- OL (番号付きリスト) の設定 (変更なし) --- */
ol.points-list {
    background-color: #fcf1e7; /* 薄いオレンジ系の背景 */
    list-style: none;
    padding: 20px 15px 20px 20px;
    margin: 0;
    color: #555;
    counter-reset: list-point;
}

/* --- OL (番号付きリスト) の設定 --- */
ol.points-list {
    background-color: #fcf1e7; /* 薄いオレンジ系の背景 */
    list-style: none;
    padding: 20px 15px 20px 20px;
    margin: 0;
    color: #555;
    counter-reset: list-point;
}

ol.points-list li {
    padding: 10px 0 10px 35px;
    margin-bottom: 5px;
    position: relative;
    font-size: 1em;
}

ol.points-list li::before {
    /* カスタムリスト番号 (円形、オレンジ) */
    counter-increment: list-point;
    content: counter(list-point);
    background-color: #f7a268;
    color: white;
    width: 25px;
    height: 25px;
    line-height: 25px;
    text-align: center;
    border-radius: 50%;
    font-weight: bold;
    font-size: 0.9em;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}

ol.points-list li a {
    color: #f78d4a; /* リンク色 */
    text-decoration: underline;
}

/* --- メディアクエリ: スマホ・狭い画面幅での調整 --- */
@media (max-width: 600px) {
    
    /* 1. 外側コンテナの左右マージンを調整 */
    .design-points-container {
        /* 左右マージンを小さくして画面全体を使う */
        margin: 15px 10px;
    }
    
    /* 2. OL/ULリストの左右パディングを調整 */
    .points-list {
        /* 左右のパディングを狭くする */
        padding: 15px 10px 15px 15px;
    }

    /* 3. li要素内の左側パディングを微調整（番号/マークの位置は変えずにテキストとの距離を調整） */
    ol.points-list li {
        /* OLのli: 番号とテキストの間隔を維持しつつ、左側を詰める */
        padding: 8px 0 8px 30px; 
    }

    ul.points-list li {
        /* ULのli: マークとテキストの間隔を維持しつつ、左側を詰める */
        padding: 8px 0 8px 25px;
    }
    
    /* 4. ヘッダーのパディングも微調整 */
    .design-points-header {
        padding: 10px 10px; /* 左右のパディングを詰める */
        padding-left: 35px; /* チェックマークのための左のスペースも少し詰める */
        font-size: 1.1em; /* フォントも少し小さくして収まりを良くする */
    }
    
    /* 5. ULのリストマークの位置を調整 */
    ul.points-list li::before {
        left: 8px; /* マークの位置を左に詰める */
    }
}
