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

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

.multisite-posts-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); /* 自動調整カード */
    gap: 20px; /* カード間の余白 */
    margin: 20px 0;
}

.multisite-post-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

.multisite-post-card:hover {
    transform: scale(1.05); /* ホバー時に拡大 */
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15); /* ホバー時の影 */
}

.post-thumbnail {
    width: 100%;
    height: 200px; /* アイキャッチ画像の高さ */
    object-fit: cover; /* 画像をカードにフィット */
}

.no-thumbnail {
    width: 100%;
    height: 200px;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: #666;
}

.card-content {
    padding: 16px;
    flex-grow: 1; /* 内容を縦方向に均等配置 */
}

.post-title {
    font-size: 1.2rem;
    margin: 0 0 8px;
    color: #333;
}

.post-excerpt {
    font-size: 0.9rem;
    color: #555;
    margin: 0 0 12px;
}

.post-meta {
    font-size: 0.8rem;
    color: #999;
    margin: 0;
}


/* child_sites_cards */
.child-sites-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); /* 自動調整カード */
    gap: 20px; /* カード間の余白 */
    margin: 20px 0;
}

.child-site-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.child-site-card:hover {
    transform: scale(1.05); /* ホバー時に拡大 */
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15); /* ホバー時の影 */
}

.site-icon {
    width: 100%;
    height: 200px; /* サイトアイコンの高さ */
    object-fit: cover; /* 画像をカードにフィット */
}

.no-site-icon {
    width: 100%;
    height: 200px;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: #666;
}

.card-content {
    padding: 16px;
    flex-grow: 1; /* 内容を縦方向に均等配置 */
}

.site-title {
    font-size: 1.2rem;
    margin: 0 0 8px;
    color: #333;
}

.site-description {
    font-size: 0.9rem;
    color: #555;
    margin: 0;
}


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

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

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