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

/************************************
** 子テーマ用のスタイルを書く
************************************/
/*必要ならばここにコードを書く*/
/************************************
** RSSフィード
************************************/
.external-posts {
    height: 230px;
    overflow-y: auto;
    border: 1px solid #ddd;
    padding: 8px 12px;
    background-color: #fafafa;
    font-size: 12px;
    line-height: 1.2;
    border-radius: 4px;
    
    /* Flexboxで横並び */
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.external-posts p {
    width: 48%; /* 2列で少し余白 */
    margin: 0 0 3px 0;
    padding: 2px 4px;
    border-bottom: 1px dotted #e0e0e0;
    box-sizing: border-box;
}

.external-posts a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.2s;
    display: block;
    font-size: 12px;
}

.external-posts a:hover {
    color: #0073aa;
    text-decoration: underline;
}

/* スクロールバー */
.external-posts::-webkit-scrollbar {
    width: 6px;
}

.external-posts::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.external-posts::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}
/************************************
** レスポンシブ
************************************/
/* レスポンシブ */
@media (max-width: 768px) {
    .external-posts p {
        width: 100%; /* スマホでは1列 */
    }
}

/* アフィリエイトボタンのCSSアニメーション */
.entry-card-affiliate-btn a:hover {
  background: #b82800 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 3px 6px rgba(0,0,0,0.4) !important;
}

/* モバイル対応 */
@media (max-width: 768px) {
  .entry-card-affiliate-btn {
    bottom: 4px !important;
    left: 4px !important;
  }
  .entry-card-affiliate-btn a {
    padding: 4px 8px !important;
    font-size: 11px !important;
  }
}

/* サムネイル画像エリアの相対位置設定 */
.entry-card-thumb {
  position: relative;
}

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

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

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