@charset "UTF-8";

/*!
Theme Name: Cocoon Child
Template:   cocoon-master
Version:    1.0.6
*/

/************************************
** 子テーマ用のスタイルを書く
************************************/
/*必要ならばここにコードを書く*/

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

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

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

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

/* --- 広告エリア --- */
.after-content-ad-area {
    margin: 2em 0;
    padding: 1em 0;
    text-align: center;
}
 
.after-content-ad-widget {
    margin-bottom: 1em;
}
 
.after-content-ad-widget:last-child {
    margin-bottom: 0;
}
 
.after-content-ad-title {
    display: none; /* ウィジェットタイトルは非表示 */
}
 
/* --- 関連記事コンテナ --- */
.related-in-content {
    margin: 2em 0 0;
    padding: 1.5em 0 0;
    border-top: 2px solid #e0e0e0;
}
 
/* 見出し */
.related-in-content-title {
    font-size: 1.1em;
    font-weight: bold;
    margin-bottom: 1em;
    padding: 0;
}
 
/* 記事リスト（PC: 2列、モバイル: 1列） */
.related-in-content-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
 
/* 各記事アイテム */
.related-in-content-item a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
    padding: 8px;
    border-radius: 6px;
    transition: background-color 0.2s;
}
 
.related-in-content-item a:hover {
    background-color: rgba(0, 0, 0, 0.04);
}
 
/* サムネイル */
.related-in-content-thumb {
    flex-shrink: 0;
}
 
.related-in-content-thumb img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
}
 
/* サムネイルなし時のフォールバック */
.related-no-thumb {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background-color: #f0f0f0;
    border-radius: 4px;
    font-size: 0.7em;
    color: #999;
}
 
/* 記事タイトル */
.related-in-content-item-title {
    font-size: 0.9em;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
 
/* モバイル対応 */
@media (max-width: 767px) {
    .related-in-content-list {
        grid-template-columns: 1fr;
    }
 
    .related-in-content-thumb img,
    .related-no-thumb {
        width: 70px;
        height: 70px;
    }
}




/* --- 記事末尾プロモーションエリア --- */
.after-content-promo {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 1.5em 0;
}

.promo-item a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 6px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.15s, box-shadow 0.15s;
}

.promo-item a:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.promo-abema a {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #fff;
}

.promo-ranking a {
    background: #f8f8f8;
    border: 1px solid #e0e0e0;
    color: #333;
}

.promo-icon {
    font-size: 1em;
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.promo-abema .promo-icon {
    background: rgba(255, 255, 255, 0.15);
}

.promo-ranking .promo-icon {
    background: #fff3cd;
    color: #d4a017;
}

.promo-text {
    flex: 1;
    display: flex;
    align-items: baseline;
    gap: 8px;
    min-width: 0;
    flex-wrap: wrap;
}

.promo-label {
    display: inline-block;
    font-size: 0.55em;
    font-weight: bold;
    letter-spacing: 0.05em;
    padding: 1px 5px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.2);
}

.promo-main {
    font-size: 0.85em;
    font-weight: bold;
    line-height: 1.3;
}

.promo-sub {
    font-size: 0.72em;
    opacity: 0.6;
}

.promo-arrow {
    font-size: 0.9em;
    flex-shrink: 0;
    opacity: 0.4;
    transition: opacity 0.15s, transform 0.15s;
}

.promo-item a:hover .promo-arrow {
    opacity: 1;
    transform: translateX(3px);
}

@media (max-width: 767px) {
    .promo-item a {
        padding: 8px 12px;
    }
    .promo-text {
        flex-direction: column;
        gap: 0;
    }
}

/* 記事一覧カードのタイトルを省略せず全文表示 */
.entry-card-content .entry-card-title,
.entry-card-content h2.card-title,
.entry-card-title {
  display: block;
  overflow: visible;
  -webkit-line-clamp: unset;
  -webkit-box-orient: initial;
  text-overflow: clip;
  white-space: normal;