@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){
  /*必要ならばここにコードを書く*/
}
/*ここから追加分*/
/*メインカラムの背景色*/
.header-container, 
.main, 
.sidebar, 
.footer {
  background-color: #000;
}
/*記事のタイトル色*/
.entry-card-title, 
.related-entry-card-title > span{
  color: #FFA500;
}
/*本文の色*/
.e-card-snippet,
.e-card-info > span{
  color: #fff;
  font-weight: normal;
}

/* サムネイルグリッド用CSS */
.custom-thumb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
  text-align: center;
}
.custom-thumb-grid img {
  max-width: 70%;
  border-radius: 8px;
  transition: transform 0.3s;
}
.custom-thumb-grid img:hover {
  transform: scale(1.05);
}
.custom-thumb-grid p {
  margin: 8px 0 0;
  font-size: 14px;
}
/* 人気記事2列表示 */
.popular-entry-cards {
  display: flex;
  flex-wrap: wrap;
}
.popular-entry-card-link {
  width: 50%;
  /* 3列にしたいは33%にすればできる */
}
/* Cocoon [c]人気記事ウィジェット サムネイル上＋タイトル下 */
.popular-entry-card {
  display: flex;
  flex-direction: column; /* 縦並び */
  align-items: center; /* 中央揃え */
  text-align: center;  /* タイトルを中央に */
}

.popular-entry-card-thumb {
  order: 1; /* サムネイルを上に */
  margin-bottom: 5px; /* タイトルとの余白 */
  width: 100%; /* 必要なら調整 */
  /*max-width: 150px; /* サムネイルの最大幅を指定（お好みで変更） */
}

.popular-entry-card-content {
  /*display:none;*/
  order: 2; /* タイトルを下に */
  margin: 0px;
  padding: 0px;
  width:100%;
}

/* 人気記事の画像を左右中央に配置 */
.popular-entry-card-thumb {
  text-align: center;  /* figure内のコンテンツを中央寄せ */
}

.popular-entry-card-thumb img {
  display: inline-block;
  margin: 0 auto;
}

/* 人気記事スライダーのアイテムを2行に並べる */
.widget_popular_entries .swiper-wrapper {
  flex-wrap: wrap; /* 折り返し可能にする */
  height: auto;    /* 高さを自動調整 */
}

.widget_popular_entries .swiper-slide {
  width: 48%;       /* 1行に2アイテムずつ表示 */
  margin: 1%;       /* アイテム間の余白 */
  box-sizing: border-box;
}

/* 人気記事スライダー矢印を非表示にする */
.widget_popular_entries .swiper-button-prev,
.widget_popular_entries .swiper-button-next {
  display: none;
}

/* 横スクロールを防ぐ */
.widget_popular_entries .swiper-wrapper {
  transform: none !important;  /* スライダーの移動を無効化 */
}
.widget-entry-cards .a-wrap,
.recent-comments .a-wrap {
   color: #FFA500;
}

.a-wrap:hover {
  background-color: #2A2A2A; /* 背景色 */
  color: #A9A9A9;            /* 文字色 */
}

a {
  text-decoration: none;
}

/* スクロールできるリンクリスト領域 */
.scrollable-link-list {
  background-color: #000;
  color: #ffcc00;
  width: 100%;
  max-width: 100%; /* 横幅は必要に応じて変更 */
  height: 200px; /* 高さを指定して、それ以上はスクロール */
  overflow-y: auto; /* 縦スクロールを許可 */
  border: 1px solid #333;
  padding: 10px;
  box-sizing: border-box;
  font-size: 13px; /* ← フォントサイズを小さくする */
  line-height: 1.5; /* 行間も少し詰め気味に */
}

/* リストスタイル */
.scrollable-link-list ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.scrollable-link-list li {
  border-bottom: 1px solid #333;
  padding: 4px 0;
}

.scrollable-link-list li:last-child {
  border-bottom: none;
}

/* リンク */
.scrollable-link-list a {
  color: #ffcc00;
  text-decoration: none;
  display: block;
  transition: color 0.3s ease;
}

/* マウスオーバー時に灰色へ */
.scrollable-link-list a:hover {
  color: #aaaaaa;
  text-decoration: underline;
}

/* スクロールバーのデザイン（Chrome/Edge用） */
.scrollable-link-list::-webkit-scrollbar {
  width: 8px;
}
.scrollable-link-list::-webkit-scrollbar-thumb {
  background-color: #555;
  border-radius: 4px;
}
.scrollable-link-list::-webkit-scrollbar-track {
  background-color: #111;
}

/*記事一覧のタイトルの文字サイズ*/
.entry-card-title,
.entry-title{
  font-size: 115%;
  color: #ffa500;
  background-color: #363636;
  padding: 7px;
}

.read-more-btn {
  margin-top: 15px;
  text-align: center;
}
/*記事一覧のつづきを読む*/
.more-link {
  display: inline-block;
  width: 50%;
  padding: 6px 6px;
  background-color: #114358;
  color: #05CDD2;
  border: 1px solid #05CDD2;
  text-decoration: none;
  font-size: 0.9em;
}

.more-link:hover {
  background-color:114358;
  color: #05CDD2;
}

/* 人気記事 */
.widget_popular_entries .widget-title {
    font-size: 110%;
}

/* 新着記事 */
.widget_new_entries .widget-title {
    font-size: 110%;
}
/* フッターの幅をメインカラム＋サイドバーと同じ幅にする */
.footer-container {
    max-width: 1020px; /* Cocoonのメインカラム＋サイドバー幅に合わせる */
    margin: 0 auto;    /* 中央に寄せる */
    padding: 20px;     /* 内側の余白 */
    box-sizing: border-box;
}
/* フッター内の文字を左揃え */
.copyright{
 text-align: left;
 font-weight: normal;
}
.copyright_foot{
 text-align: center;
 margin: 5px;
}
.footer-bottom {
 margin-top: 0px;
}

.entry-content{
 font-weight: normal;
}

/* 関連記事カードのタイトル文字色 */
.related-entry-card-title {
    color: #ffa500; /* お好みの文字色に変更 */
}
/*コメント欄*/
.comment-form-email, .comment-form-url, .comment-notes, .comment-form-cookies-consent {
  display: none;
}

.comment-form-comment label span.required {
    display: none;
}
.comment-area .comment-list .comment-title{
    display: none;
}
