@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){
  /*必要ならばここにコードを書く*/
}

/****************************************
総ブログ新着
**************************************/
.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解除 */
    }
}

