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

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

/* ギャラリー一覧調整用 */
.wp-block-embed :where(figcaption) {
    margin-top: -1.5em !important;
}

/** サイドカテゴリ開始 **/
.widget_categories ul li a,
.widget_archive ul li a {
    display: block;
    font-size: 85%;
    margin: 0;
    position: relative;
    border-bottom: dotted 1px #CCC;
}

.widget_categories ul li a{/*親カテゴリ 最上位*/
	background-color:#e3e3e3; /*背景色*/
}

.widget_categories ul li ul li a{/*親カテゴリ*/
	background-color:#f6f6f6; /*背景色*/
}
.widget_categories ul li ul li ul li a{/*子カテゴリ*/
	background-color:transparent;
}


.widget_categories ul li a::after,
.widget_archive ul li a::after{
    font-family: "fontawesome";
    content: '\f105';
    position: absolute;
    right: 0.2em;
    font-size: 1em;
    color: #1a1a1a;
}
.widget_recent_entries ul li a:hover, .widget_categories ul li a:hover, .widget_archive ul li a:hover, .widget_pages ul li a:hover, .widget_meta ul li a:hover, .widget_rss ul li a:hover, .widget_nav_menu ul li a:hover {
    background-color: #ffffcc!important;
}
.widget_archive ul li a .post-count,
.widget_categories ul li a .post-count {
    float: initial;
    display: initial;
}

.widget_archive ul li a .post-count::after, .widget_categories ul li a .post-count::after {
    content: ')';
}
.widget_archive ul li a .post-count::before, .widget_categories ul li a .post-count::before {
    content: '(';
}
/** サイドカテゴリ終了 **/

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

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

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

/*固定ページの投稿日、更新日、投稿者名を非表示にする*/
.page .date-tags,
.page .author-info {
    display: none;
}

/* ============================
   おまけイラスト風 + 4カラム対応
   ============================ */

/* カードの並び（PC最大4列） */
.pw-list.pw-type-card {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px;
  margin: 30px 0;
}

/* カード本体 */
.pw-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e6e6e6;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.pw-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 14px rgba(0,0,0,0.12);
}

/* サムネイル（横長を想定） */
.pw-card .pw-thumb img {
  width: 100%;
  height: auto;
  display: block;
  border-bottom: 1px solid #eee;
}

/* タイトル部分 */
.pw-card .pw-title {
  padding: 12px 14px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
}

.pw-card .pw-title a {
  color: #333;
  text-decoration: none;
}

.pw-card .pw-title a:hover {
  color: #0073aa;
}

/* ============================
   レスポンシブ（スマホ2列）
   ============================ */
@media (max-width: 768px) {
  .pw-list.pw-type-card {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

.entry-eye-catch {
    display: block !important;
}
