/******* Do not edit this file *******
Simple Custom CSS and JS - by Silkypress.com
Saved: Nov 28 2025 | 01:55:13 */
/* --- 関連記事エリア全体 --- */
.related-posts {
    margin-top: 60px; /* 本文との余白 */
    width: 100%;
}

.related-heading {
    font-size: 1.2rem;
    margin-bottom: 20px;
    font-weight: bold;
    border-bottom: 2px solid #ddd; /* お好みで装飾 */
    padding-bottom: 10px;
}

/* --- グリッドレイアウト（PC/SP切替） --- */
.related-list {
    display: grid;
    grid-template-columns: 1fr; /* SPは1カラム */
    gap: 20px; /* カード間の隙間 */
    list-style: none; /* 点を消す */
    padding: 0;
    margin: 0;
}

/* PCサイズ（768px以上）で3カラムにする */
@media (min-width: 768px) {
    .related-list {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* --- カードのデザイン --- */
.related-item {
    background: #fff;
    border-radius: 8px; /* 角丸 */
    box-shadow: 0 4px 10px rgba(0,0,0,0.05); /* うっすら影 */
    overflow: hidden; /* 角丸からはみ出た画像をカット */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* ホバー時の動き（少し浮く） */
.related-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

.related-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%; /* 高さを揃える */
}

/* --- 画像部分（カードいっぱい・アスペクト比固定） --- */
.related-thumb {
    width: 100%;
    aspect-ratio: 16 / 9; /* 16:9の比率で固定 */
    position: relative;
    overflow: hidden;
}

.related-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 画像をトリミングして枠いっぱいに表示 */
    transition: transform 0.3s ease;
}

/* ホバーで画像が少しズームする演出 */
.related-item:hover .related-thumb img {
    transform: scale(1.05);
}

/* --- タイトル部分 --- */
.related-body {
    padding: 15px;
}

.related-title {
    font-size: 14px; /* 小さく */
    line-height: 1.5;
    font-weight: 600; /* 太字 */
    margin: 0;
    color: #333;
    
    /* 長いタイトルを2行で省略する（...にする） */
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

