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

/************************************
** カテゴリ表示用のCSS
************************************/
/* 親カテゴリリスト全体 */
.parent-category-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* 親カテゴリひとまとまり */
.parent-category-item {
  margin-bottom: 0.75em;
}

/* 親カテゴリの1行（トグル＋名前＋投稿数） */
.parent-cat-row {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  column-gap: 0.4em;
  line-height: 1.4;
}

/* ＋／－ボタン */
.cat-toggle {
  background: none;
  border: none;
  font-size: 0.9em;
  line-height: 1;
  width: 1.5em;
  min-width: 1.5em;
  height: 1.5em;
  padding: 0;
  cursor: pointer;
  font-weight: bold;
}

.cat-toggle:focus {
  outline: 2px solid #999;
  outline-offset: 2px;
}

/* 子カテゴリがないときのダミー（位置合わせ用） */
.cat-toggle-empty {
  display: inline-block;
  width: 1.5em;
  min-width: 1.5em;
  height: 1.5em;
}

/* 親カテゴリのリンクを黒字・標準フォントに */
.parent-cat-name {
  color: #333;            /* Cocoon標準の文字色（黒系） */
  font-weight: normal;    /* 太字を解除 */
  text-decoration: none;  /* 下線を消す */
}

/* hover時に少しだけ濃くする */
.parent-cat-name:hover {
  color: #000;
  text-decoration: underline; /* もともとのCocoonっぽく下線で反応 */
}

/* 子カテゴリのリンクも統一 */
.child-cat-name {
  color: #333;
  font-weight: normal;
  text-decoration: none;
}

.child-cat-name:hover {
  color: #000;
  text-decoration: underline;
}


/* (投稿数) の見た目 */
.post-count {
  color: #777;
  font-size: 0.85em;
  line-height: 1;
  white-space: nowrap;
}

/* 子カテゴリのUL（開閉部分） */
.child-category-list {
  list-style: none;
  margin: 0.4em 0 0.5em 2em;
  padding: 0;
}

/* 子カテゴリ1行を横並びに */
.child-cat-row {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  column-gap: 0.4em;
  line-height: 1.4;
}

/* 子カテゴリの各項目 */
.child-category-item {
  margin: 0.25em 0;
}

