/* カードコンテナ */
.link-section .link-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
    max-width: 1200px; /* 最大4列用の幅制限 */
    margin-left: auto;
    margin-right: auto;
}

/* 4列までに制限 */
@media (min-width: 1201px) {
    .link-section .link-cards {
        grid-template-columns: repeat(4, 1fr);
    }
}

.link-section{
    margin:auto 10vw;
    text-align: left;
    font-size: 1rem;
}

/* カード全体 */
.link-section .link-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* ホバー時 */
.link-section .link-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* 画像比率固定（16:9） */
.link-section .link-card img {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    display: block;
}

/* コンテンツ部分 */
.link-section .card-content {
    padding: 15px;
}

/* タイトル */
.link-section .card-title {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 8px;
}

/* 説明文 */
.link-section .card-desc {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.4;
    text-align: left;
}


