@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_tag_cloud .widget-title {
  display: block;
  background-color: #E07487 !important;
  color: #fff !important;
  padding: 12px !important;
  font-size: 18px; /* 見出しも少し大きく */
  font-weight: 900 !important;
  border: none !important;
  border-radius: 6px;
  margin-bottom: 15px !important;
}

/* --- タグクラウド本体（3列） --- */
.tagcloud {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px; /* 隙間をわずかに詰め、文字スペースを確保 */
  padding: 0;
  border: none !important;
}

/* --- タグのデザイン（文字サイズ最大化版） --- */
.tagcloud a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 55px;          /* 文字が大きくても余裕があるよう高さを確保 */
  padding: 6px 2px;
  margin: 0 !important;
  
  /* ボタンの配色・文字設定 */
  background: #E07487;
  color: #fff !important;
  font-size: 14px !important; /* 文字を大きく設定 */
  font-weight: 900 !important;
  text-decoration: none !important;
  line-height: 1.2;
  text-align: center;
  word-break: break-all;      /* 長い単語でも強制改行して表示 */
  
  /* 立体感 */
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  text-shadow: 1px 1px 2px rgba(0,0,0,0.6);
  
  transition: all 0.2s ease;
}

/* ホバー時の動き */
.tagcloud a:hover {
  background: #ff8a9e;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.4);
  color: #fff !important;
}

/* スマホなど画面幅が狭い端末での調整 */
@media screen and (max-width: 480px) {
  .tagcloud a {
    font-size: 12px !important; /* スマホでは12px程度が限界値です */
    min-height: 50px;
    padding: 4px 1px;
  }
}
  
  /* 立体感と角丸（見本のrf-glow-buttonを再現） */
  border-radius: 6px;        /* 緩やかな角丸 */
  border: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3); /* 深めの影で浮き上がらせる */
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5); /* 文字の影で視認性確保 */
  
  transition: all 0.2s ease;
}

/* ホバー時の動き（少し浮き上がる） */
.tagcloud a:hover {
  background: #ff8a9e;       /* 少し明るい赤に */
  transform: translateY(-2px); /* 2px上に浮く */
  box-shadow: 0 6px 15px rgba(0,0,0,0.4); /* 浮いた分、影を強く */
  color: #fff !important;
}

/* 件数表示調整 */
.tag-link-count {
  display: inline-block;
  font-size: 10px;
  margin-left: 1px;
  letter-spacing: -0.5px;
  font-weight: bold;
  color: inherit;
}

.tag-link-count::after {
  content: "件";
  font-size: 9px;
}

/* エントリーカードタイトル */
.entry-card-title {
  min-height: 2.8em;
  max-height: 2.8em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-height: 1.4;
  margin-bottom: 10px !important;
}

/* カード全体の余白調整 */
.entry-card-content {
  padding: 10px !important;
  display: flex;
  flex-direction: column;
}

/* ======================================================
 * Cocoon エントリカード画像最大化＋5行高さ完全統一
 * ====================================================== */
.entry-card-wrap {
  display: flex;
  padding: 0 !important;
  margin-bottom: 20px;
}

.entry-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  border: 1px solid #eee;
  text-decoration: none !important;
  background-color: #fff;
}

.entry-card-thumb {
  width: 100% !important;
  margin: 0 !important;
  padding-top: 75%;
  position: relative;
  overflow: hidden;
  background-color: #f7f7f7;
}

.entry-card-thumb img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  object-position: center;
  border-radius: 0 !important;
  transition: transform 0.6s ease !important;
}

/* ホバー時画像拡大 */
.entry-card-link:hover .entry-card-thumb img {
  transform: scale(1.15) !important;
}

.entry-card-content {
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.entry-card-title {
  display: -webkit-box !important;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
  overflow: hidden;
  min-height: 7em;
  max-height: 7em;
  line-height: 1.4;
  font-size: 14px;
  margin: 0 0 10px 0 !important;
  color: #333;
  font-weight: bold;
}

.entry-card-info,
.entry-card-snippet {
  margin-top: auto;
  font-size: 11px;
  color: #777;
}

.entry-cards {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
}

.entry-card-link:hover {
  opacity: 0.9;
  transition: opacity 0.3s ease;
}

/* ==============================
   人気ラベル（左上表示・白文字）
============================== */
.entry-card-thumb {
  position: relative !important;
}

.random-popular .entry-card-thumb::after {
  content: "人気急上昇！";
  position: absolute;
  top: 10px;
  left: 10px;
  background: #dd9999;
  color: #fff;
  font-weight: bold;
  padding: 4px 8px;
  font-size: 11px;
  border-radius: 4px;
  z-index: 9999 !important;
  pointer-events: none;
  animation: blinkLabel 1.2s infinite;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}


/* WordPress標準のタイトル表示を消す魔法のコード */
@keyframes blinkLabel {
  0% {opacity: 1;}
  50% {opacity: 0.5;}
  100% {opacity: 1;}
}

.entry-title {
    display: none !important;
}

/* タブボタン全体の並び */
.tab-button-group {
  display: flex;
  flex-wrap: wrap; /* 2段に折り返し */
  gap: 8px;
  justify-content: center;
  margin-bottom: 20px;
}

/* ボタン単体のデザイン */
.tab-btn {
  flex: 1 1 calc(33.3% - 10px); /* PCで3列 */
  min-width: 100px;
  padding: 12px 5px;
  border: 1px solid #ccc;
  background: #fdfdfd;
  cursor: pointer;
  border-radius: 5px;
  font-size: 14px;
  transition: 0.2s;
}

/* 選択されているボタン */
.tab-btn.active {
  background: #333;
  color: #fff;
  border-color: #333;
}

/* スマホ表示（2列） */
@media screen and (max-width: 480px) {
  .tab-btn {
    flex: 1 1 calc(50% - 8px);
    font-size: 13px;
  }
}

/* 中身の表示エリア */
.tab-panel {
  display: none;
  animation: fadeIn 0.4s;
}

@keyframes fadeIn {
  from {opacity: 0;} to {opacity: 1;}
}


