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

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

:root{
  --shadow-color: 7px 10px 15px 3px rgba(0, 0, 0, .4);
  --shadow-color2: 7px 10px 15px 3px rgba(0, 0, 0, .4);
}


/*--------------------------------
コンテンツ上部ウィジェットのみ透明化
--------------------------------*/
.content-top .widget {
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
  display: flex;
  justify-content: center;
  align-items: center;
}
/* コンテンツ上部ウィジェットのエントリーカードの背景色を透明化 */
.content-top .widget-entry-cards .a-wrap {
  background-color: transparent !important;
}
/*コンテンツ上部ウィジェットのタイトルを非表示*/
h2.widget-content-top-title.main-widget-label.widget-title{
  display: none !important;
}

/*--------------------------------
メイン記事エリアのスタイリング
--------------------------------*/
.article {
  position: relative;
  padding-top: 0 !important;
  margin-top: 45px !important; /* ヘッダー分のマージンを追加 */
}
/* パンくずリストの位置調整とスタイリング */
#breadcrumb {
  position: absolute;
  top: 0px;
  left: 0px;
  width: 100%;
  margin: 0;
  padding: 12px 20px;
  background-color: var(--main-color);
  height: 45px;
  width: 100%;
  border-radius: 10px 10px 0 0;
  z-index: 1;
}
/* パンくずリストのテキストカラー */
#breadcrumb,
#breadcrumb a,
#breadcrumb div {
  color: #ffffff !important;
}
/* パンくずリストのホバー時 */
#breadcrumb a:hover {
  color: #f0f0f0 !important;
  text-decoration: underline;
}
/*ページナビゲーションのシャドウを無効化*/
.body .page-numbers {
  box-shadow: none !important;
}


/*--------------------------------
エントリーカードの抜粋文のスタイル
--------------------------------*/
/* エントリーカードの抜粋文のスタイル */
.entry-card-content:has(.admin-pv) .entry-card-snippet {/* エントリーカードのPVエリアがある場合のみ表示 */
  display: block !important;
  color: var(--cocoon-text-color) !important;
  padding: 20px !important;
}
/* エントリーカードのPVエリアの位置調整*/
.admin-pv{
  position: absolute;
  bottom: 0;
  left: 55px;
  line-height: 1;
}
/* エントリーカードのタイトルのスタイル */
.body .blogcard-title, .body .e-card .card-title {
  font-size: 18px !important;
}
/* エントリーカードのサムネイルのスタイル */
.a-wrap figure.entry-card-thumb{
  aspect-ratio: 3 / 2;/* サムネイルのアスペクト比 */
  width: 220px;/* サムネイルの幅 */
}




/*-----------------------------
サイドバーの検索ボックスのスタイル
-----------------------------*/
aside.widget-sidebar {
  border-radius: 10px;
  box-shadow: var(--shadow-color) !important;
  margin-bottom: 20px !important;
}

/* サイドバーの検索ボックスの上部の余白調整 */
.widget-sidebar form.search-box{
  padding-top: 10px !important;
}
/*--------------------------------------------
ウィジェットエントリーカードのコンテンツのスタイル
--------------------------------------------*/

/* ウィジェットのタイトル部底部の余白調整 */
aside.widget .widget-title {
  margin-bottom: 10px !important;
  border-radius: 10px 10px 0 0;
}
/* ウィジェットエントリーカード間の余白を無効化*/
.widget-entry-cards:not(.swiper){
  display: flex;
  flex-direction: column;
  gap: 0;
 }
/* ウィジェットエントリーカードのコンテンツのスタイル */
.body div.e-card.widget-entry-card{
  display: flex;
  align-items: center; /* 垂直方向の中央揃え */
  height: 120px; /* コンテンツの高さ */
  padding: 10px 0px;/* コンテンツの上下の余白 */
  border-bottom: 1px dotted var(--border-color);/* コンテンツの下部のボーダー */
}
/* ウィジェットエントリーカードのタイトルのスタイル */
.body .e-card .card-title.widget-entry-card-title {
  font-size: 14px !important;
}
/* ウィジェットエントリーカードのサムネイルのスタイル */
.a-wrap figure.widget-entry-card-thumb{
  display: flex;
  align-items: center; /* 垂直方向の中央揃え */
  aspect-ratio: 3 / 2;/* サムネイルのアスペクト比 */
  width: 150px;/* サムネイルの幅 */
}
/*--------------------------------
管理人カードのスタイル
--------------------------------*/
.author-box figure.author-thumb{
  margin-top: 0 !important;
}
.author-box .author-content{
  padding-bottom: 0 !important;
}
.nwa .author-box .author-description{
    text-align: center;
}


/*--------------------------------
カテゴリヘッダーのスタイル
--------------------------------*/
.article.category-content{
  margin-top: 0 !important;
  border-radius: 10px;
  box-shadow: var(--shadow-color) !important;
}

/* カテゴリヘッダーの位置調整とスタイリング */
header.category-header{
  width: 100%;
  margin: 0;
  padding: 8px 20px;
  background-color: var(--main-color);
  height: 45px;
  width: 100%;
  border-radius: 10px 10px 0 0;
  z-index: 1;
}

/* カテゴリヘッダーの位置調整とスタイリング (記事数が１)*/
main#main h1#archive-title{
  margin: 0;
  padding: 8px 20px;
  background-color: var(--main-color);
  height: 45px;
  width: 100%;
  border-radius: 10px;
  z-index: 1;
  box-shadow: var(--shadow-color) !important;
}
/*タイトルの位置調整スタイル */
header h1#archive-title{
  /*position: relative;
  top: 0;*/
  height: 30px;
  padding-top: 4px !important;
  padding-bottom: 3px !important;
  box-shadow: none !important;
  border-radius: 10px 10px 0 0 !important;
}
/*タイトルの文字色*/
.list-title-in{
  color: #ffffff !important;
}
/*タイトルのデコレーションを非表示*/
.list-title-in::before, .list-title-in::after{
  display: none;
}
/*カテゴリ説明欄のスタイル*/
.category-page-content.entry-content{
  margin-top: 0 !important;
  padding: 20px 30px;
  border-radius: 0 0 10px 10px !important;
  box-shadow: none !important;
}


/*フッターにシャドウを追加*/
#footer{
  box-shadow: var(--shadow-color) !important;
}


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

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

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