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

/************************************
** 子テーマ用のスタイルを書く
************************************/
/*必要ならばここにコードを書く*/
/* ============================================================
   注目記事セクション（インデックスリストトップ）スタイル
   ============================================================ */

/* セクションタイトル */
.widget-index-top-title {
  color: #e8d5ff !important;
  font-size: 1.2rem !important;
  font-weight: bold !important;
  padding: 10px 15px !important;
  margin-bottom: 15px !important;
  border-left: 4px solid #9b7fd4;
  border-bottom: 1px solid rgba(155, 127, 212, 0.3);
  letter-spacing: 0.05em;
}

/* 注目記事コンテナ */
.widget.widget-index-top.widget_popular_entries {
  padding: 15px 0 20px !important;
}

/* 人気記事カードを横並びグリッドに */
.widget-index-top .popular-entry-cards.card-large-image {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 12px !important;
  padding: 0 5px;
}

/* 各カードのスタイル */
.widget-index-top .popular-entry-card {
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  background: rgba(8, 12, 35, 0.75);
}

.widget-index-top .popular-entry-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(155, 127, 212, 0.4);
}

/* サムネイル画像 */
.widget-index-top .popular-entry-card-thumb img {
  width: 100% !important;
  height: 140px !important;
  object-fit: cover !important;
  display: block;
}

/* カードリンク */
.widget-index-top .popular-entry-card-link {
  display: block;
  text-decoration: none;
}

/* タイトルテキスト */
.widget-index-top .popular-entry-card-title {
  color: #f5f0ff !important;
  font-size: 0.88rem !important;
  padding: 8px 10px !important;
  line-height: 1.4 !important;
  font-weight: bold !important;
  text-shadow: 0 1px 3px rgba(0,0,0,0.9) !important;
}



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

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

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


/* ============================================================
   コメントリアクションボタン（いいね！/うーん…）
   ============================================================ */
.tft-reaction-buttons {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.tft-reaction-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 14px;
    border: 2px solid #ccc;
    border-radius: 20px;
    background: #f8f8f8;
    cursor: pointer;
    font-size: 13px;
    font-family: inherit;
    transition: all 0.2s ease;
    line-height: 1.4;
    color: #555;
}

.tft-reaction-btn:hover:not(:disabled) {
    border-color: #aaa;
    background: #eee;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}

.tft-like-btn:hover:not(:disabled) {
    border-color: #4a90d9;
    background: #e8f0fb;
    color: #4a90d9;
}

.tft-hmm-btn:hover:not(:disabled) {
    border-color: #e8a838;
    background: #fdf4e3;
    color: #c8860a;
}

.tft-reaction-btn.voted {
    opacity: 0.65;
    cursor: default;
}

.tft-like-btn.voted {
    border-color: #4a90d9;
    background: #e8f0fb;
    color: #4a90d9;
}

.tft-hmm-btn.voted {
    border-color: #e8a838;
    background: #fdf4e3;
    color: #c8860a;
}

.tft-reaction-btn:disabled {
    cursor: default;
}

.tft-reaction-btn.loading {
    opacity: 0.5;
    cursor: wait;
}

.tft-reaction-emoji {
    font-size: 15px;
    line-height: 1;
}

.tft-reaction-count {
    font-weight: bold;
    min-width: 16px;
    text-align: center;
}

@media screen and (max-width: 480px) {
    .tft-reaction-btn {
        padding: 5px 11px;
        font-size: 12px;
    }
}

/* コメントフォーム「メールアドレスは表示されません」非表示 */
.comment-notes { display: none !important; }


/* 広告エリアが空の場合はスペースを削減 */
.ad-index-top:empty,
.ad-index-top .ad-wrap:empty ~ .ad-label {
  display: none;
}
.ad-index-top .ad-wrap:empty {
  display: none;
}
/* 広告コンテンツがない場合のミニマム表示 */
.ad-index-top {
  min-height: 0 !important;
}
.ad-index-top .ad-label:only-child {
  display: none;
}



/* インデックストップの広告エリアのサイズ調整（広告が空の場合） */
.ad-index-top.ad-horizontal {
  min-height: 0 !important;
  overflow: hidden;
}
.ad-index-top .ad-wrap .ad-responsive {
  min-height: 0 !important;
}


/* ============================================================
   記事一覧セクション見出し
   ============================================================ */

/* 記事一覧の前に「記事一覧」見出しを表示 */
#list.front-page-type-index::before {
  content: "記事一覧";
  display: block;
  color: #e8d5ff;
  font-size: 1.2rem;
  font-weight: bold;
  padding: 10px 15px;
  margin-bottom: 15px;
  border-left: 4px solid #9b7fd4;
  border-bottom: 1px solid rgba(155, 127, 212, 0.3);
  letter-spacing: 0.05em;
}
