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

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

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

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

/*480px以下*/
@media screen and (max-width: 480px){
  /*必要ならばここにコードを書く*/
}
/* サムネ付きカード一覧 */
.post-card {
  border: 1px solid #eee;
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
  transition: box-shadow 0.2s;
}

.post-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.post-card-link {
  display: flex;
  color: inherit;
  text-decoration: none;
}

.post-card-thumb {
  width: 180px;
  flex-shrink: 0;
}

.post-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-card-body {
  padding: 12px;
}

.post-card-title {
  font-size: 16px;
  margin: 0 0 6px;
}

.post-card-excerpt {
  font-size: 13px;
  color: #666;
}

/* スマホ対応 */
@media (max-width: 768px) {
  .post-card-link {
    flex-direction: column;
  }

  .post-card-thumb {
    width: 100%;
    height: 200px;
  }
}
/* 日付・カテゴリ */
.post-card-meta {
  font-size: 12px;
  color: #888;
  margin-bottom: 6px;
}

.post-card-date {
  margin-right: 8px;
}

.post-card-category {
  background: #f2f2f2;
  padding: 2px 6px;
  border-radius: 3px;
}



/* 記事一覧をコンパクトな横型にする */
.post-cards-list {
    display: flex;
    flex-direction: column; /* 縦に並べる */
    gap: 15px; /* 記事同士の隙間 */
}

.post-card {
    display: flex;
    border: none !important;
    border-bottom: 1px solid #eee !important; /* 下線だけで区切る */
    border-radius: 0 !important;
    padding-bottom: 15px;
}

.post-card-link {
    display: flex; /* 横並びにする */
    width: 100%;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

/* サムネイルを小さく固定 */
.post-card-thumb {
    flex: 0 0 120px; /* 幅を120pxに固定 */
    margin-right: 15px;
}

.post-card-thumb img {
    width: 120px;
    height: 80px; /* 高さを抑える */
    object-fit: cover;
    border-radius: 4px;
}

/* 本文（抜粋）を非表示にしてタイトルを際立たせる */
.post-card-excerpt {
    display: none; 
}

.post-card-title {
    font-size: 1rem !important;
    margin: 5px 0 !important;
    line-height: 1.4;
}

.post-card-meta {
    font-size: 0.75rem;
    color: #888;
}



@media screen and (max-width: 480px) {
    .post-card-thumb {
        flex: 0 0 100px; /* スマホではさらに小さく */
    }
    .post-card-thumb img {
        width: 100px;
        height: 65px;
    }
    .post-card-title {
        font-size: 0.9rem !important;
    }
}