/* 画像を囲む親要素を基準点にする */
.img-wrapper {
    position: relative;
    overflow: hidden; /* 角丸をはみ出さないようにする */
    border-radius: 12px; /* 写真の角丸をここに設定 */
}

/* 画像は親要素いっぱいに広げる */
.img-wrapper img {
    display: block;
    width: 100%;
    height: auto;
}

/* キャプションを画像の上に配置 */
.caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    color: #fff;
    padding: 10px 0;
    text-align: center;
    font-weight: 500;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}


/* セクションごとの個別幅設定（PC用） */
#purpose .grid-col { flex: 0 0 480px; max-width: 100%; }
#group .grid-col { flex: 0 0 175px; max-width: 100%; }
#publications .grid-col { flex: 0 0 300px; max-width: 100%; }
#tanteidan .grid-col { flex: 0 0 1000px; max-width: 100%; }

/* スマホ版（768px以下）の時だけトリミング */
@media (max-width: 768px) {
	
    #group .grid-row {
        justify-content: flex-start !important; 
        gap: 10px !important;
    }
    
    #group .grid-col {
        flex: 0 0 47% !important;
        max-width: 47% !important;
    }
	
    /* 画像の中の文字（キャプション）が重苦しくならないよう調整 */
    #group .caption {
        font-size: 0.85rem;
        padding: 8px 0;
    }
	
.tanteidan-img {
        height: 300px !important;
        object-fit: cover !important;
        object-position: center;
        width: 100% !important;
    }
}