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


.related-posts {
    display: flex;
    flex-wrap: wrap;
    gap: 10px; /* アイテム間の間隔 */
    justify-content: center; /* 中央揃え */
}

.related-post {
    flex: 1 0 calc(100% / 2 - 10px); /* スマートフォン用：2列 */
    max-width: calc(100% / 2 - 10px); /* スマートフォン用：2列 */
    margin-bottom: 20px; /* アイテム間の余白 */
    padding: 10px; /* 囲み枠の内側の余白 */
    border: 1px solid #ccc; /* 囲み枠の色と太さ */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* 囲み枠の影 */
    background-color: #fff; /* 囲み枠の背景色 */
    border-radius: 5px; /* 囲み枠の角の丸み */
}

@media (min-width: 768px) {
    .related-post {
        flex: 1 0 calc(100% / 4 - 10px); /* PC用：4列 */
        max-width: calc(100% / 4 - 10px); /* PC用：4列 */
    }
}

@media (max-width: 767px) {
    .related-post {
        flex: 1 0 calc(100% / 2 - 10px); /* スマートフォン用：2列 */
        max-width: calc(100% / 2 - 10px); /* スマートフォン用：2列 */
    }
}

.related-post-thumbnail-wrapper {
    position: relative;
    text-align: center;
}

.related-post-thumbnail {
    width: 100%; /* サムネイル画像をアイテム全体にフィット */
    height: auto; /* アスペクト比を保持 */
}

.related-post-tags {
    text-align: center; /* テキストの中央揃え */
    background-color: rgba(0, 0, 0, 0.7); /* 背景色と透明度 */
    color: #fff; /* 文字色 */
    padding: 5px 10px; /* 内側の余白 */
    border-radius: 5px; /* 角の丸み */
    margin-bottom: 10px; /* サムネイルとの間の余白 */
    font-size: 0.8em; /* フォントサイズを小さく */
}

.related-post-text {
    margin-top: 5px; /* サムネイルとテキストの間の余白 */
    margin-bottom: 3px; /* 作品詳細リンクの下の余白を狭く */
    text-align: center; /* テキストの中央揃え */
}
.related-post-title {
    background-color: rgba(0, 0, 0, 0.5); /* 背景色と透明度を薄く */
    color: #fff; /* 文字色 */
    padding: 5px 10px; /* 内側の余白 */
    border-radius: 5px 5px 0 0; /* 上部の角を丸く */
    display: block; /* タイトルの幅を親要素いっぱいに */
    text-align: center; /* テキストの中央揃え */
    margin: 0; /* タイトルの上下の余白をゼロに */
    box-sizing: border-box; /* パディングを含む幅計算 */
}



.manga-info {
    background: #fff; /* 背景色 */
    padding: 15px; /* 内側の余白 */
    border-radius: 8px; /* 角の丸み */
    border: 1px solid #ddd; /* 外枠の色 */
    box-shadow: 3px 3px 8px rgba(0, 0, 0, 0.2); /* 立体的な影 */
    max-width: 500px; /* 幅を制限 */
    margin: 20px auto; /* 上下の余白と中央寄せ */
}

.manga-info li {
    padding: 8px 10px; /* 各項目の内側の余白 */
    border-bottom: 1px solid #e0e0e0; /* 項目ごとの区切り線 */
    font-size: 14px; /* フォントサイズ */
    list-style: none; /* リストの点を非表示 */
}

.manga-info li:last-child {
    border-bottom: none; /* 最後の項目のボーダーを消す */
}

.manga-info .bold {
    font-weight: bold; /* 太字 */
    color: #333; /* 色を濃く */
}

