@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-sidebar .cat-item > a {
    padding-top: 2px !important;
    padding-bottom: 2px !important;
}

/* ========================================
   アーカイブの開閉設定
======================================== */

/* 年別アーカイブ全体 */
.year-month-archive {
  font-size: 0.95em;
}

/* 年ごとの項目 とりあえず不要なので none */
.year-month-archive__year {
  border-bottom: none;
}

/* 年の表示部分 */
.year-month-archive__year > summary {
  cursor: pointer;
  list-style: none;
}

/* 標準のマーカーを非表示 */
.year-month-archive__year > summary::-webkit-details-marker {
  display: none;
}

/* 年の左側に開閉マークを表示 */
.year-month-archive__year > summary::before {
  content: "▶";
  display: inline-block;
  margin-right: 8px;
  font-size: 0.75em;
  transition: transform 0.2s;
}

/* 開いたときはマークを回転 */
.year-month-archive__year[open] > summary::before {
  transform: rotate(90deg);
}

/* 月別一覧 */
.year-month-archive__months {
  margin: 0;
  padding: 0 0 8px 24px;
  list-style: none;
}

/* 月別リンク */
.year-month-archive__months a {
  text-decoration: none;
}

.year-month-archive__months a:hover {
  text-decoration: underline;
}
