@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){
  /*必要ならばここにコードを書く*/
}

/* ================================
   カテゴリーウィジェット 折りたたみ（最終版）
================================ */

/* カテゴリリンク全体 */
.widget_categories ul li.cat-item > a {
  position: relative;
  padding-left: 0;   /* 疑似要素を使わないので余白不要 */
  display: block;
}

/* 疑似要素の + / ▶ は完全に無効化 */
.widget_categories ul li.cat-item > a::before,
.widget_categories ul li.cat-item > a::after {
  content: none !important;
}

/* 子カテゴリは初期状態で非表示 */
.widget_categories ul li.cat-item > ul.children {
  display: none;
  margin-left: 1.2em;
}

/* open が付いたら表示 */
.widget_categories ul li.cat-item.open > ul.children {
  display: block;
}

/* 子カテゴリの見た目 */
.widget_categories ul ul li.cat-item > a {
  padding-left: 0.3em;
  font-weight: normal;
}

/* ================================
   ＋／− ボタン（実体）
================================ */

.cat-toggle {
  display: inline-block;
  width: 1.2em;
  margin-right: 0.4em;
  font-weight: bold;
  cursor: pointer;
  text-align: center;
  user-select: none;
  font-size: 1.25em;
  color: #666;
  padding: 4px;
}
