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

/************************************
** 子テーマ用のスタイルを書く
************************************/
/*必要ならばここにコードを書く*/
.post-120 .date-tags,
.post-187 .date-tags,
.post-919 .date-tags,
.post-575 .date-tags,
.post-918 .date-tags,
.post-147 .date-tags{
display: none;
}

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

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

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

/******************************
ブログリスト
*******************************/
/* グリッド全体 */
.new-posts-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin: 30px 0;
}

/* カード */
.post-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* リンク全体をカード化 */
.post-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* 画像 */
.post-card-img img {
    width: 100%;
    height: auto;
    display: block;
}

/* 本文 */
.post-card-body {
    padding: 14px 16px 18px;
}

/* メタ */
.post-meta {
    font-size: 12px;
    color: #888;
    margin-bottom: 6px;
}

.post-cat {
    margin-right: 8px;
}

/* タイトル */
.post-card-title {
    font-size: 16px;
    margin: 0px!important;
    line-height: 1.4;
    font-weight: 600;
}

/* 説明 */
.post-card-desc {
    font-size: 13px;
    color: #555;
    line-height: 1.6;
    margin-bottom:0!important;
}

/* ホバー */
.post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}

@media (max-width: 600px) {
    .new-posts-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

/****************************************
ブログ新着(総合タイプ現在使ってない)
**************************************/
.list-all-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-bottom:20px;
}
.list-all-grid a {
    text-decoration: none;
    color: #333;
}

.list-all-card {
    position: relative; /* ラベルをカード基準に絶対配置 */
    display: flex;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.list-all-image {
    position: relative;
    width: 35%; /* 左画像40% */
    min-width: 60px;
    overflow: hidden;
}

.list-all-image img, .list-all-image .no-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.brand-label {
    position: absolute;
    top: 0;    /* カードの上端 */
    left: 0;   /* 左端 */
    width: 20%; /* 横幅*/
    text-align: center;
    padding: 4px 0;
    color: #fff;
    font-size: 0.7rem;
    z-index: 10;
}
/*************右テキスト**************/
.list-all-content {
    width: 60%; /* 右文字60% */
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.list-all-title {
    font-size: 0.8rem;
    margin: 0 0 5px;
    display: block;          /* または inline-block */
    white-space: nowrap;     /* 改行禁止 */
    overflow: hidden;        /* はみ出した文字を隠す */
    text-overflow: ellipsis; /* 末尾に … を表示 */
     border:none;
}

.list-all-title a{
color: #222;
}

.list-all-desc {
    font-size: 0.85rem;
    color: #555;
    margin: 0 0 5px;
}

.list-all-date {
    font-size: 0.75rem;
    color: #999;
    margin-top: auto;
}


/* スマホ: 2列表示、縦並び解除 */
@media (max-width: 768px) {
    .list-all-title {
    font-size: 0.8rem;
    }
    .list-all-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .list-all-card {
        flex-direction: column; /* 画像上、文字下 */
        min-height: auto;
    }
    .list-all-content {
        width: 100%;
        padding: 5px;
    }
    .list-all-desc {
        display: none; /* 説明非表示 */
    }
    .list-all-date {
        font-size: 0.7rem;
    }
    .brand-label {
    width:38%;
    }
    .list-all-image {
     width: 100%; /* カード幅いっぱい */
     height: 150px; /* 高さ固定 */
     min-width: 0;  /* min-width解除 */
    }
}

