.elementor-1452 .elementor-element.elementor-element-56471815{--display:flex;--flex-direction:column;--container-widget-width:100%;--container-widget-height:initial;--container-widget-flex-grow:0;--container-widget-align-self:initial;--flex-wrap-mobile:wrap;}.elementor-1452 .elementor-element.elementor-element-648c24ef{--display:flex;--flex-direction:column;--container-widget-width:100%;--container-widget-height:initial;--container-widget-flex-grow:0;--container-widget-align-self:initial;--flex-wrap-mobile:wrap;}/* Start custom CSS for shortcode, class: .elementor-element-77d190d2 *//* 関連記事セクション全体 */
.related-posts {
    margin-top: 40px;
    padding: 20px;
    background: #fffaf5; /* 柔らかいベージュ */
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* 見出し */
.related-posts h3 {
    font-size: 1.3rem;
    font-weight: bold;
    color: #E67E22; /* 星標先生ページのオレンジ */
    margin-bottom: 16px;
    text-align: center;
}

/* カード一覧 */
.related-posts ul {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    padding: 0;
    margin: 0;
    list-style: none;
    justify-content: center;
}

/* 各カード */
.related-posts li {
    flex: 1 1 calc(33.3% - 16px);
    max-width: 300px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* カードホバー時 */
.related-posts li:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 14px rgba(0,0,0,0.12);
}

/* サムネイル画像 */
.related-posts img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

/* タイトル */
.related-posts p {
    margin: 0;
    padding: 12px;
    color: #333;
    font-size: 1rem;
    font-weight: bold;
    text-align: center;
    transition: color 0.2s ease;
}

.related-posts a:hover p {
    color: #D35400; /* 濃いオレンジ */
}

/* レスポンシブ対応 */
@media screen and (max-width: 768px) {
    .related-posts li {
        flex: 1 1 calc(50% - 16px);
    }
}

@media screen and (max-width: 480px) {
    .related-posts li {
        flex: 1 1 100%;
    }
}/* End custom CSS */