@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){
  /*必要ならばここにコードを書く*/
}
/* ==========================================
 * Cocoon×Ajax Load More 2列化 最終解決CSS
 * ========================================== */

/* 2列のグリッド配置を強制する */
.my-cocoon-ajax-grid .alm-listing {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: space-between !important;
    gap: 0 !important;
    margin: 0 -10px !important;
    width: auto !important;
}

/* 記事カードを1枠につき50%の幅にする */
.my-cocoon-ajax-grid .alm-listing > div,
.my-cocoon-ajax-grid .entry-card {
    width: calc(50% - 20px) !important;
    max-width: calc(50% - 20px) !important;
    margin: 10px !important;
    box-sizing: border-box !important;
    display: inline-block !important;
    vertical-align: top !important;
    background: #fff !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 4px !important;
    overflow: hidden !important;
}

/* リンクエリアを縦いっぱいに広げる */
.my-cocoon-ajax-grid .entry-card-wrap {
    display: flex !important;
    flex-direction: column !important;
    text-decoration: none !important;
    color: #333 !important;
}

/* アイキャッチ画像のサイズを横いっぱいに固定 */
.my-cocoon-ajax-grid .card-thumb img {
    width: 100% !important;
    height: 200px !important;
    object-fit: cover !important;
}

/* タイトルや日付の文字エリア */
.my-cocoon-ajax-grid .card-content {
    padding: 15px !important;
}

.my-cocoon-ajax-grid .card-title {
    font-size: 16px !important;
    line-height: 1.4 !important;
    margin: 0 0 10px 0 !important;
    font-weight: bold !important;
}

/* もっと読み込むボタンの位置を中央に戻す */
.my-cocoon-ajax-grid .alm-btn-wrap {
    width: 100% !important;
    text-align: center !important;
    margin-top: 20px !important;
    display: block !important;
    clear: both !important;
}

/* 【スマホ対応】スマホ画面（599px以下）では自動で1列にする */
@media screen and (max-width: 599px) {
    .my-cocoon-ajax-grid .alm-listing > div,
    .my-cocoon-ajax-grid .entry-card {
        width: calc(100% - 20px) !important;
        max-width: calc(100% - 20px) !important;
    }
}
