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

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

#navi .caption-wrap .item-label {
    color: #fff;
}

function sort_posts_by_modified_date($query) {
    if (
        !is_admin() &&
        $query->is_main_query() &&
        (is_home() || is_category() || is_tag() || is_archive())
    ) {
        $query->set('orderby', 'modified');
        $query->set('order', 'DESC');
    }
}
add_action('pre_get_posts', 'sort_posts_by_modified_date');

/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/
/*1023px以下*/
@media screen and (max-width: 1023px){
  /*必要ならばここにコードを書く*/
}

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

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

#navi .caption-wrap .item-label {
    color: #fff;
}

.entry-content .toc {
width: 80%;
/* 最大幅を解除 */
max-width: unset;
}