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

/************************************
** 子テーマ用のスタイルを書く
************************************/
/*必要ならばここにコードを書く*/
/* カテゴリーバッジ文字色の安全装置（恒久対策① 2026-04-01 社長承認済）
   背景色と文字色が同一になる不具合を技術的に防止する */
.cat-link { color: #ffffff !important; }

/* 内部ブログカードに「続きを見る」を追加（2026-04-03 社長承認済） */
.blogcard-wrap.internal-blogcard-wrap {
    position: relative;
    padding-bottom: 36px;
}
.blogcard-wrap.internal-blogcard-wrap::after {
    content: "続きを見る";
    display: inline-block;
    border: 1px solid #ccc;
    border-radius: 2px;
    padding: 4px 12px;
    font-size: 12px;
    color: #999;
    position: absolute;
    right: 12px;
    bottom: 8px;
    background: #fff;
}

/* カルーセルのカテゴリーラベルを表示（2026-04-12 ブロ戦#8 社長承認済）
   Cocoonのrcs-center-titleモードではcard-thumbがvisibility:hiddenになるため
   cat-labelだけvisibility:visibleに上書きして表示する */
.carousel-entry-card .cat-label {
    visibility: visible !important;
    z-index: 2;
}

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

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

/*480px以下*/
@media screen and (max-width: 480px){
  .blogcard-wrap.internal-blogcard-wrap::after {
      right: 8px;
      bottom: 6px;
      font-size: 11px;
      padding: 3px 8px;
  }
}

/* === Add as Preferred Source inline card layout fix (v1.2.2 regression) 2026-06-10 === */
.adasprso-inline-layout-2{flex-direction:column !important;align-items:stretch !important;gap:10px !important}
.adasprso-inline-text-wrapper{width:100% !important;flex:0 0 auto !important;min-width:0 !important}
.adasprso-inline-button{width:100% !important;max-width:100% !important;box-sizing:border-box !important}
